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AhjB,yBACAmxB,eACAC,KAEApxB,yBACAmxB,QACAC,YAGApO,WACAhjB,wBACAmxB,YACAC,MACM,gBACNpxB,wBACAmxB,OACAC,MAGApxB,UAgHA,gBAEAA,SADAgjB,cACAhjB,yBACAmxB,eACAC,KAEApxB,yBACAmxB,iCACAC,KAIApxB,SADAgjB,cACAhjB,yBACAmxB,eACAC,KAEApxB,yBACAmxB,QACAC,KAGApO,mBACAA,kBACAhjB,gCACAmxB,mBACAC,MACM,gBACNpxB,gCACAmxB,QACAC,OAGA1xB,uBAuGA,cACA,SAEA,8BACAsjB,qCAGAhjB,aACAgjB,4BAGAA,EA6BA,cACA,SAEA,8BACAA,4BAGAhjB,gBACAgjB,qCAGAhjB,oBACAgjB,6CAGAhjB,wBACAgjB,wCAGAA,GA/UA1C,aAoOA5N,sBACA,qDAA+FgT,iCAE/F,mBAxIA,gBAEA1lB,SADAgjB,cACAhjB,yBACAmxB,eACAC,KAEApxB,yBACAmxB,iCACAC,KAIApxB,SADAgjB,aACAhjB,wBACAmxB,cACAC,KAEApxB,wBACAmxB,QACAC,KAIApxB,SADAgjB,WACAhjB,sBACAmxB,YACAC,KAEApxB,sBACAmxB,QACAC,KAaA1xB,EATAM,SADAgjB,YACAhjB,uBACAmxB,aACAC,KAEApxB,uBACAmxB,QACAC,KAGApO,mBAEAhjB,SA+FA0iB,CADAM,2BACAhjB,WACAgjB,UAGAhjB,gBAEA6R,EADAmR,gCACAhjB,eACAgjB,UAGAhjB,kBAEA6R,EADAmR,kCACAhjB,iBACAgjB,UAGAhjB,SAzEA,uBACAgjB,+BACAA,sBACAhjB,oCAEA8iB,oDACA9iB,mCACAmxB,gCACAC,aAGAtO,oDACA9iB,mCACAmxB,gCACAC,MAIApxB,SADA8iB,kDACA9iB,iCACAmxB,gCACAC,KAEApxB,iCACAmxB,QACAC,KAIApxB,SADA8iB,kDACA9iB,iCACAmxB,gCACAC,KAEApxB,iCACAmxB,QACAC,KAaApxB,GATAA,SADA8iB,sBACA9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qBACA7Q,eAGAkR,oBACAL,sBACA7Q,eAGA7K,oBACA0b,sBACA7Q,eAGA5K,oBACAyb,qBACA7Q,eAGA+c,oBACAlM,uBACA7Q,eAGA2F,IACAkL,+BACAA,qCACAA,kCACAA,oBACAA,mBACAA,+BACAA,qBACAA,sBACAA,sBACAA,qBACAA,wBAgBA,uCACAla,cACAA,aAGAA,eADAumB,gBACAA,YAEAA,GAGAvmB,sBACAA,uBACAA,uBACAA,sBAGAA,sBADAsT,KAGA,EAGAtT,eASAqmB,0CACA,qCAEA,IACA,sCACIE,IACJ,mCAIA,SAFArvB,gCAOAmvB,+CACA,UACA,oBACA,2CAEM,4CACNzmB,WAKA,WACA0T,sBACAA,uBACAA,uBACAA,uBAEAA,kEAGAA,qBACAA,oBACAA,+BACAA,wBACAA,eAEA+S,0BAGAA,mCAEA,GADAtO,uCAEA,gDAGA,qEACA,MACA,wCAGA,2DACAyO,0DACA,UACA,gDAGA,4CASAH,kCAEA,8BACAC,GACApvB,iBACAA,eAGA,OACA,gCACAgjB,qCACAoM,IAGA,qDAoBA,OAhBAnV,0BACAmV,GACApvB,cACA6jB,EACAC,EACAvjB,GAEAP,WACAojB,EACAC,EACA/b,EACAC,EACA2nB,OASAjV,0BACAmV,GACApvB,cACA8jB,EACAvjB,GAEAP,aACAojB,EACAC,EACA/b,EACAC,EACA2nB,OASAjV,0BACAmV,GACApvB,cACAM,GAEAN,aACAojB,EACAC,EACA/b,EACAC,EACA2nB,OAUAjV,0BACAmV,GACApvB,cACAojB,GAEApjB,WACAuH,EACA8b,EACA/b,EACA4nB,OASAjV,0BACAmV,GACApvB,cACAsjB,GAEAtjB,aACAojB,EACAC,EACA/b,EACAC,KAvEAuB,4CA+EA9I,uBAUAmvB,oDACAC,KACAA,oBAGA,mBAGAG,GAFAtV,YAEA,KADAA,QAkBA,aACA8I,2BACAA,8BACA,KAlBA,CACA8P,oDACAC,oEAGA,CACAD,oDACAC,oEAGA,CACAD,oDACAC,oEAUA,MACA,IAe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EAhP,iEAMAua,kDAGA,OAFAN,qCACAja,iDAOAua,oCACA,yCACA,sBACAva,kDACAia,gBACAA,qBAMAM,sCACA,iCACAvL,mBACAA,sCACAhP,wBACAA,8FAAuFgP,uEAEvFhP,uBACAA,wBAMAua,sCACAva,wBACAA,4EACAA,yBAMAua,6BACAva,iBAMAua,8BACAva,eACAA,gBACAA,oCAOAua,8BAEAva,wBACAqmB,IAEArmB,wBAOAua,uCACAva,wEACA,yCAEAA,YACAqmB,eAEArX,UAGAhP,yBAOAua,mDACA,WACA,oBAYA,GAXA8L,qBACAC,IACAtX,kBACAqX,4EACAA,cAEArX,qBACAqX,iEAGArX,gCACAqX,UACArX,qBACAqX,oHACMA,kBAEN,GADArX,qBACAqX,uCACAA,qCACQ,yCACR,iGAEAA,qHAGAA,iCAGAA,uBACArX,QACAqX,SAOA9L,oDACA,yCACAvL,YACAA,wBAGAA,mBAEAA,mBACAhP,mFAGAgP,wBAIAhP,6BACAA,wBACAgP,qBACAqX,UAEArmB,sBACAA,2BAGAA,mCACIA,aACJA,0BAGAA,yBAQAua,wCACA,qFACAva,eACAA,gFACAA,4CACA,IAIAA,2BACA,IAMAua,0CACA,wBACAva,oEACAA,4BACA,KAUAua,kDAEA,QADAvL,QACAqX,IAAkBA,0BAA6BA,IAE/C,GADArX,uBACAhP,sBAEA,4CACA,8BACAqmB,GAEA,UAKArX,uBACA,SAIA,UAQAuL,2BACAvL,MAyCAuL,gBAnCA,iBACAva,qBACAA,oBACAA,6BAGAA,iDACA,wBACAia,uCACAqM,KAEAtmB,wBAEA,yDAEAA,sBACA,aACA,OACA,6EAEAumB,4BACApV,YACAnR,sBACAwmB,gBACArV,WAIAnR,kCACAA,oBACAA,yDAsCAua,kBA5BA,iBACAva,qBACAA,oBACAA,6BACA,SACAia,sBACAja,sBAEAA,wBACAsmB,MAEA,uDACAtmB,sBACAumB,4BACApV,YACAnR,sBACAgP,kBACAmC,YAGAnR,kCACAA,oBACAA,uDAEAA,kDAMA+S,cA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CACA,KACA7I,SACM,CACN,WACA6jB,mDACAA,6EACAA,gCACAA,wBACA7jB,aAQA8gB,6BACAjY,uBAMAiY,6BACAjY,iBAMAiY,8BACAjY,gBACAA,kBACAA,mBAOAiY,4BACAjY,aACAA,oBACAA,2BAGA+S,cAEC0W,0BACA,CAAE,sEAAwE,qBAC3E,YAiBA,kBACA1X,YACA1Y,oBAMA,cACA2G,YACAA,2BACAA,6BACAA,+CACAA,wBACAA,uDACAA,sBACAA,sBACAA,oBAQA,gBACA,mBACAka,WACAA,KAEA,IACA/iB,yCACA,sCAFA,8CAEAA,GAZA4a,gBAkBA7a,0CACA,iBACAmS,uCACA,WACA,wBACAA,MACA,uBACAA,MACA,oBACAA,kGAEA,UAOAnS,2CACA,yBACA+iB,WACAA,MAEA,kDAEA,mBACA,IAEA,GAQA/iB,wCACA,iCACA,sDAMAA,iCACA8I,2BACA,iCACA,+CACAA,mDAMA9I,8CACAgjB,OACAA,KAEA,UACA,eACA/iB,aAEAA,GAMAD,2CAGA,QAFA+iB,aACAC,IACA7Q,IAAiBA,2BAA8BA,KAC/CrJ,uBACAia,mDACAC,6BAEAla,2BAGAA,yBAMA9I,kCACA8I,qBACAA,qBAEA,WACA,6BACAka,qBAGAla,mBAMA9I,qCACA,iBACAmS,yCACA,MACA,oBACAlS,oBACAkS,cACAA,UACMlS,OACNkS,WAEArJ,sEACAA,2BAIAA,uCADAqJ,GAAauiB,qBAQb10B,iDACA,WACA,qBACA,OACA,MAEAE,GADAD,mBACA8iB,EAEA9iB,EAEA+iB,kBAQAhjB,qCACA,aACA+gB,kBAEAjY,gBAOA9I,wCACA,aACA+gB,qBAEAjY,mBAIA+S,cAEC0W,0BACA,CAAE,mDAAuD,oBAwB1D,cAEA3R,aAOA+T,kCACA,UAUA/T,0CAEA,MADA,CACAC,mBAWAD,uCAEA,MADA,CACAC,gBAaAD,2CACA,SACA,wBACA7J,GAYA6J,uCACA,SACA,qBACA7J,GAYA6J,+CACA,SACA,4BACA7J,GAY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,yBAGAC,6DACA5D,wCACAD,kDACA8D,uCACAC,iDAGAC,uBACAC,6CACAC,gDACAC,gDACAC,+CACAC,8DACAC,oDACAC,iEACAC,0CACAC,gCACAC,kCACAC,4CACAC,uDACAC,mCACAhB,6DACAiB,4CACAC,+EACAC,wCACAC,kCACAC,iDACAC,sCACAC,wCACAC,oDACAC,uEACAC,6CACAC,4CACAC,2DACAC,mDACAC,sCACAC,kCAGAC,sBACAC,qDACAC,gEACAC,2DACAC,gCACAC,8BACAC,kCACAC,kCACAC,oCACAC,oCACAC,qDACAC,sCACAC,2CACAC,2CACAC,6CACAC,iDAMChf,0BACA,CAAEif,cAAc,oBA6BjB5wB,0BACA,eACA,gCACA7J,GASA6J,2BACA,eACA,kCACA7J,GASA6J,6BACA,eACA,sCACA7J,GASA6J,6BACA,eACA,sCACA7J,IAEC,IAAG,oBAkCJ6J,qBACA,sBACA,0CASAA,oBACA,mBACAze,kBACAnC,kBACA+gB,kBACAgC,IACA/iB,OACA+iB,mBAGA,wBACAkL,kBACAA,oBACAA,kBACAA,kBACAA,kBACAA,kBACAlJ,oBA7CA,cAEA,QADA5iB,OACAA,SA2CA,GA1CAA,OAGA,SAuCA0e,kBAGA,WAEC,IAAG,oBAiBJ,aAEA7W,mCAKAvC,sCACA,MAGA,GADAtF,UADA,0DAGA,2DAEA,WAEC,CAAE,sCAAoC,oBA4EvC0Z,UAzDA,CACA41B,wFACAC,8FACAC,4FACAC,iGACAC,2FACAC,6GACAC,qEACAC,oGACAC,0FACAC,oJACAC,0HACAC,2EACAC,uCACAC,yGACAC,4FACAC,mGACAC,0LACAC,8FACAC,sFACAC,yFACAC,sFACAC,8IACAC,gEACAC,0KACAC,sGACAC,uEACAC,4GACAC,qEACAC,mEACAC,qGACAC,uEACAC,8GACAC,sGACAC,gHACAC,2EACAC,kEACAC,gIACAC,sEACAC,6CACAC,kDACAC,kEACAC,4HACAC,yJACAC,wHACAC,sGACAC,0GACAC,uFACAC,iGACAC,0EACAC,qGACAC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ApH,IACAA,cACAo1C,QAEAhuC,MAEAA,cACAguC,QAEAxxB,GACAA,YAGApiB,qBACAkf,uBACArgB,iBAEA+G,OACA+b,IACAzC,gCACMA,uBACNtgB,gBAQAsgB,8BACAiD,gBACA,8BACA,0BACAC,aAGAlD,gCACA,eACAzO,4BACA,sCACAA,8BACA,wCACAA,2CACAA,sCACA,mGAEA,iFAIAyO,yCACA,iCACA,kDAGA,8BACAmC,0BACA,+CACAA,4BACA,oDAEA,kGAKAnC,6BACA,yBACA,iEAQAA,gCACA,2CACA,SAGA,mBACA,OAAW20B,mCAMX,OACA,6CACA,6CACA,qDACA,qDACA,+CACA,2DACA,2CACAC,mBACAC,2BACAC,+BACAC,yBACAC,iBACAC,yBACAC,yBACAC,6BACAC,yCACAC,+CACAC,mDACAC,iCACAC,qCAOAx1B,2CACA,oDACA,IAIAlf,GADAA,YACA,mCAMAvB,EACAA,MACI,gCACJuB,kBAEAA,GAOAkf,0CACA,eACA,wBACA,MACA,sDACAA,6CAEAlf,wBAGA,qCACA,mCACAkf,gFACAA,iFASAA,+CACA,SACA,KACA,eACAiD,sBACAniB,qBACA,0BAEAoiB,WAKA,YAECyO,6CACA,CAAE,yIAAmJ,oBAiBtJ,sBACAxb,YAGA5U,EADA6H,yBACAoqB,cACAp0B,2CACA+gB,2CACAgC,cACAC,YACA7Q,iBACAlS,wBACAC,kBACAC,sBAIA,gBACA,MACAmjB,EACAD,cACA,aACA,IAGAA,cACA,SAEAC,gBAGAF,QAhBAxC,aA0BAy1B,iCACA,MAOA,OALA30C,kBACA4F,IACA+b,MAGAD,mBACA,4CAKAC,KACA,GAJA/b,wEAaAsZ,yBACA,eAA0B01B,iBAC1B,2DAEA,UASA11B,0BACA,qBACA,qDAEA,SAEA,GADAwC,4CACAA,uCAA2EkzB,iBAC3E,uEAIA,GADAlzB,qDACAA,2CAA+EkzB,iBAC/E,yEAGA,oCACA,qDAIA,UASA11B,4BACA,IAEAtZ,EAOA,OALA5F,kBACA4F,IACA8b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,oBAEAA,kBADAka,aACAA,aAEA,EAGAla,gBADAka,WACAA,WAEAyR,iBAOAtyB,6BACA2G,uBAMA3G,+BACAnC,IACAA,MAGAA,oBACAA,yCAGA,WACA8I,+FACA,KACAiY,SACM,CACN,oEACA5O,oBAGAA,oBAAuCspC,KADvC,gCACuCC,UAGvC34B,eACAA,mBACAA,aAQA5gB,sCACA,uDAEA,YACA2G,6BACA9I,kBACAA,iBACAA,2BAOAmC,qCACA2G,oBACA,IACA,SACA,mBACA,6BACA,sCACA,+DACAA,yBACAiY,aACYjY,2BACZ,SAGA,gBACA,OAGAA,mCAKAA,sBAOA3G,0CAGA,QAFA4gB,qBACAC,KACA7Q,IAA2BA,WAA+BA,KAC1D,kEACArJ,0BACAka,aACMla,4BACN,SAGA,gBACA,OAGA,WAUA,GARA7I,cACAA,SACAA,qBACA6I,kCACA7I,4BACAA,cACAA,OAEAA,wBACA,MACMA,0BAGNA,4CACAA,sCACAA,uBACAA,kBACA6I,+BAKAA,wBAEAiY,KAMA5e,6BACA2G,iBAMA3G,8BACA2G,gBACAA,kBACAA,uBAOA3G,4BACA2G,aACAA,oBACAA,2BAGA+S,aAEC,CAAE,0EAA0E,oBAiB7E,gBACA9E,6CACA8D,wCAKA,oBACA1Y,4BAGA2G,mBADAka,eACAA,eAEAnI,6CAGA/R,mBADAka,eACAA,eAEAnI,iDAEA/R,yDACAA,gCAGA+X,gBAEAhF,aAEC,CAAE,4FAA4F,oBAkB/F,sBAEA9E,qCACA8D,SAEA7a,EADA+W,YACAua,gBA6CA,gBACAtO,IACAla,kBAGAqJ,IACArJ,aAIAiY,oBACA,YAEA,eACA,uBACA,oBAEAlG,6CACQ,gBACR,wCACA1I,QACA0I,6CAEA1I,wBAKA,sCACAA,uDAIA,2BACAA,yDAGA,gBACAA,kCAGA,+BACAA,6DAGAA,GAGA,OACAwpC,6BACAC,6BACAroC,YACAsoC,iCACAC,qBACAC,+BACAC,wCACAC,6BACAC,iDACAC,mCACAC,uBAEAC,cAC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,6CAEAiM,wBAKA,6BACAA,8DAIA,8BACAA,+DAIA,qBACAA,wCAGAA,GAGAjC,iDACA,WAEA5O,iBACA4E,6DACAA,kEAIA5E,iBACAA,kCACAA,iCACAA,+BACAA,qCACAA,4BACAA,qDACAA,wCAGA,8BACA6Q,+DAIA,qBACAA,wCAGAA,sBACAA,wDACAD,0BACAC,8CAIA,+BAEAA,gEAWAnH,aACC,CAAE,0DAAwD,oBAkB3D,IACA9E,EADA/M,6CACAsnB,gBAqBA,oBACAnvB,IACA2G,kBAGA9I,IACA8I,aAGAiY,IACAjY,WAGAia,IACAja,aAIA+R,iDACA,YAEA7a,sBACAA,qBAGAA,0BACAA,qCAGAA,iBACAA,iDAGA6b,aACC,CAAE,oCAAkC,oBAwErCA,UAhDA,CAOA29B,yBACAjjB,SACAE,WACAG,UACAC,WACAC,UASAimB,gBACApD,qBASAqD,uBACAzC,SACAre,cACAjF,aASAgmB,4BACAC,iCAKC,IAAG,oBAwBJ,IAoFAnmC,EApFA8J,GAOA24B,yBACA2D,UACA3mB,QACAE,WACAG,YASAumB,eACAC,oDACAC,0DACAC,iDASAC,gBACAC,UACAC,UACAC,SASAC,kBACAC,WACAC,eACAC,kBACAC,2BACAC,eACAC,yBASAC,SACAC,oBACAC,oBACAC,kBACAC,kBACAC,oBACAC,wBACAC,gBACAC,uBAeAC,iBAEA7nC,gBACA,OAA+B8E,KAC/B,WACA7b,OAEAA,GAGA,CACA6+C,iBAEAC,kBACA,6BAGAC,kBACA,6BAGAC,mBACA,8BAGAC,oBACA,+BAGAC,mBACA,8BAGAC,iBACA,4BAGAC,mBACA,8BAGAC,qBACA,mCAMAxjC,aACC,IAAG,oBACJ,aAEA+E,aAuCA,cACA,WAEAtgB,OACA,UAFAwjB,KAEAxjB,QA1CAsgB,cAiDA,cACA,MAcArZ,EAbAhH,OACAD,OACAgjB,OAEAF,QAVA,kBACA,mBASAjR,SAEAkR,IAGA/b,MACAhH,IACAA,EAGA,QAAciH,IAASA,KACvBuc,EACA/M,uBACAA,yBACAA,wBACAA,qBACAqM,iBACAA,gBACAA,aAGA,eACAU,EACA/M,sBACAA,wBACAqM,cAGA,QACAU,EACA/M,uBACAA,wBACAA,wBACAqM,gBACAA,cAGAA,GA3FAxC,gBAkHA,cAQA,QAPAkD,EACAvjB,WACAD,MACAgjB,KACAF,QAGAC,UAA2CA,IAAUA,KACrDC,SACAO,kBAKA,aAEAP,OACAzC,GAFAiD,WAEA,GACAjD,WACA,MAEI,OAEJyC,OACAzC,GAFAiD,uBAEA,IACAjD,WACAA,WACA,KAIAyC,YA3IA,QALAzC,KACA9J,KACA8D,yCAEA1Y,qEACAnC,eAAmCA,MAASA,EAC5C6gB,UACA9J,qBAQA,cACA,eAEA,SACA,kEAKA,qBAOA,OANA,aAMA,GAJAxW,MACA,EACA,OA+DA,cACA,mBACAsgB,YACAA,WACAA,QAGA,kBAGA,QADAyC,KACAF,IAAsBA,IAASA,KAK/BE,UAHAO,oBACAA,kBACA,cAGA,kBAjGA9M,wBACAA,yBAsIC,IAAG,sBAEH,IAAG,oBAEJ,aACA,iBACAuoC,qBACA,6CAEA,4CAEAC,wCACAC,OACA,kCACAC,8BACAC,4BACAC,4BACAC,kCACAC,kCACAC,8BACAC,oCACAC,mCACAC,gCACAC,gCACAC,+BACAC,0BACAC,oCACAC,8BACAC,4BACAC,6BACAC,8BACAC,4BACAC,4BACAC,sBACAC,6BACAC,0BACAC,0BACAC,sBACAC,8BACAC,4BACAC,8BACAC,0BACAC,+BACAC,yCACAC,4BACAC,4BACAC,wBACAC,iCACAC,+BACAC,+BACAC,iCACAC,4BACAC,uBACAC,+BACAC,6BACAC,6BACAC,6BACAC,gCACAC,wBACAC,2CACAC,oCACAC,kCACAC,4BACAC,4BACAC,uBACAC,wBACAC,uBACAC,yBACAC,yBACAC,sBACAC,+BACAC,+BACAC,+BACAC,+BACAC,8BACAC,gCACAC,iCACAC,+BACAC,+BACAC,gCACAC,+BACAC,kCACAC,sBACAC,oCACAC,sBACAC,8BACAC,6BACAC,8BACAC,6BACAC,6BACAC,wBACAC,sCACAC,sBACAC,gCACAC,gCACAC,gCACAC,6BACAC,yBACAC,6BACAC,6BACAC,kCACAC,uBACAC,gCACAC,4BACAC,2BACAC,mCACAC,0BACAC,0BACAlgD,4BACAmgD,6BACAC,4BACAC,0BACAC,+BACAC,0BACAC,8BACAC,0CACAC,oCACAC,0CACAC,kCACAC,oCACAC,gCACAC,2BACAC,0BACAC,0BACAC,sBACAC,4BACAC,kCACAC,mCACAC,kCACAC,mCACAC,sBACAC,4CACAC,iDACAC,0BACAC,2BACAC,4BACAC,8BACAC,qCACAC,wBACAC,6BACAC,0BACAC,4BACAC,4BACAC,0BACAC,gCACAC,6BACAC,mCACAC,wCACAC,wCACAC,sCACAC,kCACAC,uCACAC,wCACAC,wCACAC,+BACAC,8BACAC,gCACAC,kEACAC,+CACAC,gCACAC,iCACAC,oCACAC,kCACAC,oCACAC,4CACAC,4CACAC,mCACAC,2CACAC,gCACAC,8CACAC,6DACAC,0DACAC,2CACAC,2CACAC,qCACAC,yCACAC,6CACAC,iCACAC,wCACAC,0BACAC,sCACAC,qCACAC,2CACAC,iCACAC,+BACAC,kCACAC,oCACAC,oCACAC,oCACAC,oCACAC,oCACAC,sDACAC,0DACAC,kCACAC,uCACAC,kCACAC,qCACAC,8CACAC,6CACAC,8CACAC,8CACAC,4CACAC,gCACAC,+BACAC,+BACAC,mCACAC,4BACAC,sCACAC,gCACAC,iCACAC,gCACAC,iCACAC,oCACAC,qCACAC,uCACAC,wCACAC,+BACAC,gCACAC,mDACAC,0BACAC,gCACAC,8BACAC,oCACAC,mCACAC,8BACAC,kCACAC,8BACAC,mCACAC,8BACAC,gCACAC,gCACAC,uCACAC,iCACAC,gCACAC,mCACAC,mCACAC,kCACAC,oCACAC,0BACAC,mCACAC,iCACAC,qCACAC,iCACAC,oCACAC,gCACAC,mCACAC,mCACAC,kCACAC,kCACAC,kCACAC,oCACAC,oCACAC,qCACAC,qCACAC,sCACAC,uCACAC,oCACAC,0CACAC,iDACAC,iCACAC,uCACAC,oCACAC,oCACAC,wCACAC,wCACAC,8BACAC,8BACAC,+BACAC,0BACAC,2CACAC,uCACAC,6BACAC,6BACAC,qCACAC,kCACAC,8CACAC,sCACAC,0CACAtuC,2CACAuuC,mCACAC,8BACAC,iDACAC,4BACAC,wCACAC,+BACAC,+BACAC,6BACAC,8BACAC,6BACAC,iCACA,mDACAC,kCACAC,iCACAC,qCACAC,sCACAC,4CACAC,0CACAC,iCACAC,iCACAC,+BACAC,sCACAC,sCACAC,iCACAC,uCACAC,uCACAC,+BACAC,+BACAC,+BACAC,kDACAC,8CACAC,6BACAC,+BACAC,0BACAC,4CACAC,4BACAC,0CACAC,8BACAC,8BACAC,oCACAC,kCACAC,mCACAC,gCACAC,kCACAC,qCACAC,qCACAC,kCACAC,gCACAC,gCACAC,kCACAC,mCACAC,4BACAC,4BACAC,2BACAC,2BACAC,2BACAC,2BACAC,uCACAC,qCACAC,yDACAC,8DACAC,qCACAC,sCACAC,kCACAC,sCACAC,sCACAC,oCACAC,2CACAC,0BACAC,kCACAC,2CACAC,2BACAC,2BACAC,qCACAC,qCACAC,0BACAC,iCACAC,iCACAC,iCACAC,iCACAC,iCACAC,iCACAC,iCACAC,yCACAC,yCACAC,sCACAC,kCACAC,wCACAC,+BACAC,+BACAC,+BACAC,+BACAC,+BACAC,+BACAC,sDACAC,6DACAC,sDACAC,yDACAC,oCACAC,kCACAC,6BACAC,6BACAC,sCACAC,oCACAC,iCACAC,oCACAC,oCACAC,oCACAC,2DACAC,kEACAC,2DACAC,+DACAC,8DACAC,iCACAC,iCACAC,wDACAC,wDACAC,+BACAC,+BACAC,+BACAC,+BACAC,6BACAC,qCACAC,4BACAC,+BACAC,mCACAC,+BACAC,wCACAC,2BACAC,4BACAC,yCACAC,sCACAC,mCACAC,0CACA,wDACAC,0CACAC,2CACAC,mCACAC,mCACAC,mCACAC,+CACAC,wDACAC,kDACAC,iDACAC,2DACAC,kDACAC,2DACAC,+CACAC,wDACAC,sDACAC,+DACAC,qDACAC,8DACAC,8CACAC,qDACAC,uDACAC,kDACAC,gCACAC,kCACAC,8CACAC,iFACAC,0EACAC,8EACAC,6EACAC,yEACAC,4EACAC,+EACAC,+EACAC,6CACAC,6BACAC,qCACAC,2BACAC,2BACAC,4BACAC,gCACAC,gCACAC,gCACAC,8BACAC,gCACAC,kCACAC,oCACAC,yCACAC,uCACAC,4CACAC,iCACAC,wCACAC,wCACAC,wCACAC,wCACAC,wCACAC,wCACAC,kCACAC,yCACAC,kDACAC,4CACAC,8BACAC,kCACAC,wCACAC,4CACAl4D,0CACAm4D,8BACAC,4BACAC,4BACAC,4BACAC,8CACAC,kDACAC,iDACAC,6CACAC,yCACAC,0CACAC,2BACAC,wCACAC,uCACAC,uCACAC,mCACAC,mCACAC,wCACAC,wCACAC,2CACAC,wCACAC,0CACAC,0CACAC,iDACAC,0CACAxvC,yCACAyvC,mCACAC,4CACAC,mCACAC,4CACAC,sCACAC,+CACAC,mCACAC,qCACAC,4CACAC,8CACAC,mCACAC,oCACAC,0BACAC,sCACAC,uCACAC,iCACAC,sCACAC,oCACAC,gDACAC,oCACAC,mCACAC,mCACAC,qCACAC,+BACAC,mCACAC,8BACAC,2BACAC,4BACAC,gCACAC,6BACAC,iCACAC,gCACAC,0BACAC,4BACAC,4BACAC,4BACAC,4BACAC,gCACAC,0BACAC,kCACAC,gCACAC,uCACAC,+BACAC,qCACAC,kCACAC,0BACAC,6BACAC,2BACAC,4BACAC,oCACAC,uCACAC,sCACAC,6CACAC,2DACAC,wCACAC,yCACAC,8CACAC,0BACAC,2BACAC,qCACAC,gCACAC,yBACAC,yBACAC,4BACAC,oCACA,mCACAC,4BACAC,mCACAC,oCACAC,mCACAC,mCACAC,mCACAC,mCACAC,mCACAC,mCACAC,4BACAC,mCACAC,0BACAC,4BACAC,wBACAC,0BACAC,0BACAC,wBACAC,wBACAC,wBACAC,wBACAC,wBACAC,2BACAC,mCACAC,0BACAC,8BACAC,+BACAC,0BACAC,wBACAC,mCACAC,oCACAC,mCACA5gE,6BACA6gE,6BACAC,6BACAC,6BACAC,6BACAC,6BACAC,6BACAC,6BACAC,6BACAC,yBACAC,+BACAC,+BACAC,oCACAC,wBACAC,0BACAC,wBACAC,6BACAC,qCACAC,mCACAC,6BACAC,6BACAC,6BACAC,6BACAC,6BACAC,+BACAC,+BACAC,+BACAC,+BACAC,+BACAC,4BACAC,iCACAC,mCACAC,0BACAC,kCACAC,kCACAC,0BACAC,wBACAC,6CACAC,kCACAC,oCACAC,4BACAC,mCACAC,mCACAC,wBACAC,qCACAC,sCACAC,2CACAC,gCACAC,2BACAC,+BACAC,6BACAC,6BACAC,6BACAC,+BACAC,2BACAC,+BACAC,+BACAC,+BACAC,+BACAC,+BACAC,gCACAC,gCACAC,gCACAC,+BACAC,+BACAC,+BACAC,4BACAC,gCACAC,+BACAC,+BACAC,4BACAC,0BACAC,2BACAC,wBACAC,2BACAC,2BACAC,uCACAC,uCACAC,sCACAC,mCACAC,0CACAC,sBACAC,0BACAC,oCACAC,oCACAC,wBACAC,4BACAC,8BACAC,2BACAC,gCACAC,8BACAC,8BACAC,yBACAC,wBACAC,wBACAC,wBACAC,4BACAC,gCACAC,6BACAC,yBACAC,4BACAC,gCACAC,iCACAC,iCACAC,yBACAC,8BACAC,8BACAC,sBACAC,4BACAC,4BACAC,4BACAC,4BACAC,4BACAC,4BACAC,4BACAC,4BACAC,4BACAC,gCACAC,4BACAC,8BACAC,4BACAx3D,sBACAy3D,sBACAC,0BACAC,0BACAC,4BACAC,4BACAC,4BACAC,0BACAC,2BACAC,0BACAC,yBACAC,wBACAC,0BACAC,sBACAC,kBACAC,iBACAC,kBACAC,iBACAC,kBACAC,iBACAC,iBACAC,iBACAC,kBACAC,iBACAC,kBACAC,iBACAC,iBACAC,iBACAC,gBACAC,gBACAC,gBACAC,gBACAC,iBACAC,2BACAC,4BACAC,8BACAC,oBACAC,oBACAC,yBACAC,6BACAC,uCACAC,sCACAC,sCACAC,sCACAC,oBACAC,kBACAC,kBACAC,mBACAC,oBACAC,oBACAC,kBACAC,oBACAC,uBACAC,sBACAC,qBACAC,qBACAC,2BACAC,0BACAC,kCACAC,kBACAC,cACAC,qBACAC,qBACAC,uBACAC,qBACAC,uBACAC,qBACAC,gBACAC,gBACAC,iBACAC,gBACAC,gBACAC,kBACAC,iBACAC,iBACAC,gBACAC,gBACAC,sBACAC,gBACAC,oBACAC,qBACAC,kBACAC,iBACAC,gCACAC,6BACAC,8BACAC,6BACAC,8BACAC,4BACAC,sBACAC,qBACAC,oBACAC,oBACAC,6BACAC,oBACAC,oBACAC,qCACAC,qCACAC,wBACAC,yBACAC,wBACAC,0BACAC,qBACAC,kBACA,oBACAC,yBACAC,kBACAC,sBACAC,uBACAC,uBACAC,uBACAC,uBACAC,mBACAC,0BACAC,kBACAC,mBACAC,mBACAC,8BACAC,8BACAC,+BACAC,8BACAC,kBACAC,kBACAC,sBACAC,sBACAC,0BACAC,qBACAC,sBACAC,iBACAC,kBACAC,iBACAC,kBACAC,kBACAC,4BACAC,oBACAC,oBACAC,oBACAC,oBACAC,oBACAC,iBACAC,kBACAC,wBACAC,yBACAC,sBACAC,uBACAC,oBACAC,qBACAC,+BACAC,oBACAC,oBACA/kE,eACAglE,eACAtmE,iBACAumE,gBACAC,aACAljD,iBACAnrB,kBACAsuE,kBACAC,iBACAC,kBACAC,iBACAC,gBACAC,yBACAC,oBACAC,iBACAC,gBACAC,gCACAljE,eACAmjE,gBACAC,kBACAC,iBACAnyE,gBACAoyE,gBACAC,kBACAtiD,oBACAuiD,qBACAC,qBACAC,mBACAC,qBACAC,4BACAC,4BACAC,4BACAC,mBACAC,4BACAC,uBACA,4BACAC,0BACAC,uCACAC,uBACAC,8BACAj2E,eACAk2E,iBACAtsE,aACAusE,cACAC,eACAC,eACAvsE,aACAwsE,cACAC,eACAh2D,mBACA5O,qBACA6kE,qBACAC,qBACAC,0BACAC,mBACA/2E,kBACAg3E,oBACAC,iBACAC,oBACAC,iBACAC,qBACAC,uBACAC,mBACA,mBACA,oBACAC,kBACAC,kBACAC,kBACAC,kBACAC,gBACAC,iBACAC,gBACAC,iBACAC,gBACAC,iBACAC,iBACAC,kBACAC,iBACAC,iBACAC,iBACAC,iBACAC,gBACAC,qBACAC,sBACAC,wBACAC,yBACAC,4BACAC,6BACAC,wBACAC,yBACAC,wBACAC,yBACAC,2BACAC,4BACAC,yBACAC,oBACAC,wBACAC,wBACAC,uCACAC,yBACAC,0BACAC,qBACAC,kBACAC,kBACAC,kBACAC,kBACAC,kBACAC,uBACAC,wBACAC,uBACAC,kBACAC,qBACAC,qBACAC,qBACAC,mBACAC,qBACAC,qBACAC,qBACAC,sBACAC,0BACAC,kBACAC,8BACAC,eACAC,qCACAC,uBACAC,+BACAhnD,kCACAinD,sBACAC,gBACAC,gBACA,mCACAC,6CACAC,iBACAC,kCACAC,2BACAxtD,qBACAytD,uBAEAC,YACA,gCACA,8BACA,8BACA,oCACA,oCACA,gCACA,sCACA,qCACA,kCACA,kCACA,iCACA,4BACA,sCACA,gCACA,8BACA,+BACA,gCACA,8BACA,8BACA,wBACA,+BACA,4BACA,4BACA,wBACA,gCACA,8BACA,4BACA,iCACA,2CACA,8BACA,8BACA,0BACA,mCACA,iCACA,iCACA,mCACA,8BACA,yBACA,iCACA,+BACA,kCACA,0BACA,6CACA,sCACA,oCACA,8BACA,8BACA,yBACA,yBACA,2BACA,wBACA,iCACA,wBACA,sCACA,wBACA,gCACA,+BACA,0BACA,wCACA,wBACA,kCACA,kCACA,+BACA,2BACA,+BACA,oCACA,yBACA,kCACA,8BACA,6BACA,qCACA,4BACA,4BACA,8BACA,4BACA,iCACA,4BACA,gCACA,4CACA,sCACA,4CACA,oCACA,sCACA,kCACA,6BACA,4BACA,4BACA,wBACA,8BACA,oCACA,qCACA,oCACA,qCACA,wBACA,8CACA,mDACA,4BACA,6BACA,gCACA,uCACA,0BACA,+BACA,4BACA,8BACA,8BACA,4BACA,+BACA,qCACA,0CACA,0CACA,wCACA,oCACA,yCACA,0CACA,0CACA,iCACA,gCACA,oEACA,iDACA,kCACA,sCACA,oCACA,sCACA,8CACA,8CACA,qCACA,6CACA,kCACA,gDACA,+DACA,4DACA,6CACA,6CACA,uCACA,2CACA,+CACA,mCACA,0CACA,4BACA,wCACA,uCACA,6CACA,mCACA,iCACA,oCACA,sCACA,wDACA,4DACA,oCACA,yCACA,oCACA,uCACA,gDACA,+CACA,gDACA,gDACA,8CACA,kCACA,iCACA,iCACA,qCACA,8BACA,wCACA,kCACA,sCACA,yCACA,iCACA,qDACA,4BACA,kCACA,gCACA,sCACA,qCACA,gCACA,oCACA,gCACA,qCACA,gCACA,kCACA,kCACA,yCACA,mCACA,kCACA,qCACA,oCACA,sCACA,4BACA,qCACA,mCACA,mCACA,sCACA,kCACA,oCACA,oCACA,sCACA,sCACA,uCACA,uCACA,wCACA,yCACA,sCACA,4CACA,mDACA,mCACA,yCACA,sCACA,sCACA,0CACA,gCACA,gCACA,iCACA,4BACA,6CACA,yCACA,+BACA,uCACA,oCACA,gDACA,wCACA,4CACA,6CACA,qCACA,gCACA,mDACA,8BACA,0CACA,iCACA,iCACA,+BACA,gCACA,+BACA,mCACA,mDACA,oCACA,mCACA,8CACA,4CACA,mCACA,iCACA,wCACA,wCACA,mCACA,yCACA,iCACA,iCACA,iCACA,oDACA,gDACA,+BACA,iCACA,4BACA,8CACA,8BACA,4CACA,gCACA,sCACA,oCACA,qCACA,kCACA,oCACA,uCACA,oCACA,kCACA,oCACA,qCACA,8BACA,6BACA,yCACA,uCACA,2DACA,gEACA,oCACA,uCACA,wCACA,oCACA,wCACA,wCACA,sCACA,6CACA,4BACA,oCACA,6CACA,6BACA,6BACA,uCACA,uCACA,4BACA,mCACA,mCACA,mCACA,mCACA,mCACA,mCACA,mCACA,2CACA,2CACA,wCACA,oCACA,0CACA,iCACA,wDACA,+DACA,wDACA,2DACA,sCACA,oCACA,+BACA,+BACA,wCACA,sCACA,mCACA,sCACA,6DACA,oEACA,6DACA,iEACA,gEACA,mCACA,0DACA,0DACA,iCACA,+BACA,uCACA,8BACA,iCACA,qCACA,iCACA,0CACA,6BACA,2CACA,wCACA,qCACA,4CACA,wDACA,4CACA,6CACA,qCACA,qCACA,qCACA,iDACA,0DACA,oDACA,mDACA,6DACA,oDACA,6DACA,iDACA,0DACA,wDACA,iEACA,uDACA,gEACA,gDACA,uDACA,yDACA,oDACA,kCACA,oCACA,gDACA,mFACA,4EACA,gFACA,+EACA,2EACA,8EACA,iFACA,iFACA,+CACA,+BACA,uCACA,6BACA,kCACA,kCACA,kCACA,gCACA,kCACA,oCACA,sCACA,2CACA,yCACA,8CACA,mCACA,0CACA,oCACA,2CACA,oDACA,8CACA,gCACA,oCACA,0CACA,8CACA,4CACA,gCACA,8BACA,8BACA,8BACA,gDACA,oDACA,mDACA,+CACA,2CACA,6BACA,0CACA,yCACA,qCACA,qCACA,0CACA,0CACA,6CACA,0CACA,4CACA,mDACA,4CACA,2CACA,qCACA,8CACA,qCACA,8CACA,wCACA,iDACA,qCACA,uCACA,8CACA,gDACA,qCACA,4BACA,wCACA,mCACA,wCACA,sCACA,kDACA,sCACA,uCACA,iCACA,qCACA,gCACA,6BACA,kCACA,+BACA,mCACA,kCACA,4BACA,8BACA,kCACA,4BACA,oCACA,kCACA,yCACA,iCACA,uCACA,oCACA,4BACA,+BACA,6BACA,8BACA,sCACA,yCACA,wCACA,+CACA,6DACA,0CACA,2CACA,gDACA,4BACA,uCACA,kCACA,2BACA,2BACA,8BACA,sCACA,mCACA,8BACA,qCACA,sCACA,qCACA,qCACA,qCACA,8BACA,qCACA,4BACA,0BACA,4BACA,0BACA,6BACA,qCACA,4BACA,gCACA,iCACA,4BACA,0BACA,qCACA,qCACA,+BACA,2BACA,iCACA,iCACA,sCACA,0BACA,4BACA,0BACA,+BACA,uCACA,qCACA,+BACA,+BACA,+BACA,+BACA,iCACA,iCACA,8BACA,mCACA,qCACA,4BACA,oCACA,oCACA,4BACA,0BACA,+CACA,oCACA,sCACA,8BACA,qCACA,0BACA,uCACA,6CACA,kCACA,6BACA,6BACA,+BACA,+BACA,+BACA,iCACA,6BACA,iCACA,kCACA,iCACA,8BACA,kCACA,iCACA,iCACA,8BACA,4BACA,0BACA,6BACA,yCACA,wCACA,qCACA,4CACA,wBACA,4BACA,sCACA,sCACA,0BACA,8BACA,gCACA,6BACA,kCACA,gCACA,gCACA,2BACA,0BACA,0BACA,0BACA,8BACA,kCACA,2BACA,8BACA,kCACA,mCACA,2BACA,gCACA,gCACA,wBACA,8BACA,8BACA,kCACA,8BACA,gCACA,wBACA,4BACA,4BACA,8BACA,8BACA,8BACA,4BACA,0BACA,4BACA,wBACA,oBACA,mBACA,mBACA,mBACA,oBACA,kBACA,kBACA,mBACA,6BACA,gCACA,sBACA,sBACA,2BACA,+BACA,yCACA,wCACA,wCACA,wCACA,sBACA,oBACA,oBACA,qBACA,oBACA,sBACA,yBACA,wBACA,uBACA,uBACA,6BACA,oCACA,oBACA,gBACA,uBACA,uBACA,yBACA,uBACA,yBACA,uBACA,kBACA,kBACA,mBACA,kBACA,kBACA,oBACA,kBACA,kBACA,wBACA,kBACA,sBACA,oBACA,kCACA,+BACA,+BACA,wBACA,sBACA,sBACA,+BACA,sBACA,sBACA,uCACA,uCACA,0BACA,2BACA,0BACA,4BACA,uBACA,oBACA,oBACA,2BACA,oBACA,wBACA,qBACA,4BACA,oBACA,qBACA,gCACA,gCACA,iCACA,gCACA,oBACA,oBACA,wBACA,wBACA,4BACA,uBACA,mBACA,mBACA,8BACA,sBACA,sBACA,sBACA,sBACA,sBACA,mBACA,0BACA,wBACA,sBACA,iCACA,sBACA,iBACA,iBACA,mBACA,eACA,mBACA,2BACA,sBACA,mBACA,kCACA,iBACA,oBACA,sBACA,qBACA,uBACA,8BACA,8BACA,8BACA,8BACA,qBACA,8BACA,yBACA,4BACA,4BACA,yCACA,yBACA,gCACA,iBACA,eACA,qBACA,4BACA,qBACA,oBACA,mBACA,sBACA,mBACA,uBACA,yBACA,qBACA,mBACA,oBACA,oBACA,oBACA,oBACA,oBACA,kBACA,kBACA,kBACA,oBACA,kBACA,uBACA,0BACA,8BACA,0BACA,0BACA,6BACA,2BACA,sBACA,0BACA,yCACA,2BACA,uBACA,oBACA,oBACA,oBACA,oBACA,oBACA,yBACA,oBACA,uBACA,uBACA,qBACA,uBACA,uBACA,uBACA,wBACA,4BACA,oBACA,gCACA,iBACA,uCACA,yBACA,kBACA,mCACA,+CACA,mBACA,oCACA,8BAEAC,sBACA,yCAA8C,iBAC9C,2BAEAj0D,mBACA,gBAGA,QAFA5lB,OAEAnC,IAAoBA,WAAiBA,IAMrC8I,mBAIAA,qBACAA,2BAIAmzE,UAAe38B,qBAEf,qCAGAz+B,2BACAA,iCACC,IAAG,qBACJ,aAEC,YAGD,8BACAD,cACAze,0BACA0Z,cACA7b,yBAEAA,cACAA,cACAA,cAEA+W,KAQA,MAiCAmY,EA9BAnM,aAGAC,KAUAziB,UACAD,iBACAgjB,8BAGAF,GACA84D,2DACA,6DACA,iCAKA50E,aACAC,sBAaA,eACA,2BAWA,iBAGA,QAFAkT,YACAxP,MACAwP,MACAxP,iBAEA,UAaA,kBACA,oBACAA,MAWA,OAVAwP,cAGAxP,aACAqO,SAMArO,GADAkkB,GAFA7V,oBACA6iE,WACA1sD,cAiBA,eAMA,QAFAvlB,GACAgQ,EAJAuV,MACAhV,KACAxP,YAGAwP,QACAvQ,wBACA,wBAGA,eADAgQ,uBAEAuV,yCAIAA,YACAhV,MAGAgV,YAGA,UAWA,eACA,wBACA,UACA,kBAEAhV,OADAgV,aACA,eACAA,kBAEAhV,WAEG2hE,SAYH,eACA,eACA9iE,KAEAA,QACAA,KAEAA,QACAA,KAEA0J,EAcA,kBAGA,mCAQA,qBACA,SAGA,IAFA1J,SA1LA,KA0LAA,KACAA,WACgCA,MAAmCrO,MACnEqO,MA3KA0J,IA6KA,oBAhMA,KA0MA,eAEA,IAEA/X,GAIAoO,EACAhP,EACAF,EACAa,EACAL,EACA+kB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AjO,QAEAypB,sFACA,IAAG,oBAsBJ,aAIA,8BAGAxb,4BAEA,QADAuM,SACAA,qBACA,iIACA,iBAEA,WA4CA,cAEA,MACA,OAFAxa,cAXA,cACA,MA/BA,cACA,mBAEA,QADAsa,IAEA,cACA,WACA,QACA,iBACA,WACA,YACA,cACA,WACA,oBACA,aACA,SACA,mBACA,aACA,YACA,MACA,iBAEA,YACAE,uBACAF,MAQAvI,IACA,yFACA,YAQA1Y,IAEA2G,mBACA,UACAA,YACAA,WACAsa,IACA,UACA,OACAta,gBACAsa,IACA,UACA,SACAta,YACAA,WACAsa,IACA,cAIA,OAFAta,kBACAA,YAGAA,gBACAA,iBACAA,+BAoCA,cACA,gBAA6Bwa,UAAsCA,WAAsCA,WACzGA,cA2DA,cACA,mCACAD,EAtBA,kBACA,mBACA,oBACA,SAEA,6BACA,mBACA,oBACA,SAEA,6BACA,gBACA,oBACA,UASAL,SACA,oBACAla,yBACAwa,wCACAxa,yDAEAwa,wCACAxa,0BA2BA,gBACA,sBACA,8BACA,MACA,+BACA,sBACA,uBACAA,iBACAA,+BACAA,+BACAua,cAGA,SAEA,uBACAva,iBACAA,+BACAwa,mCAKA,cACA,mCACA,qBAEAF,qCADAta,8BAGAsa,EAGA,gBACA,qBACA,qCACAta,kBACAA,iBACA,MACAA,gCAEAA,+BACAA,gCAEAwa,mCAGA,cACA,mCACA,0EACAF,EAIA,cACA,iCAGA,cACA,oCAzNAxC,kBA6BA5gB,8BACA,yBACA,MACAqjB,EACA,kBAEA,aADAD,oBACA,SACAC,gBACAva,qBAEAua,IAEA,oDACAD,OAGApjB,gBAwGA,cACA,mCACA,gCACAojB,GAxGApjB,iBA0FA,gBACA,MArEA,kBACA,iBACA,gBACA,cACA,aACAuH,sBACAA,KAEAD,eACAC,YACA,GACAA,sBACAA,KAEAD,eACAC,YACA,GACAA,MACA,UAA2B+b,gBAE3B/b,GAEA,EA+CAwb,WACA,8CACAja,iBACA,iCACA,iCACAwa,wBA7FAtjB,iCACA,2BACA,0EACA8I,uDAEAwa,8DACAxa,0BAkKC,CAAE,mBAAiB,qBACpB,YASA,aAEA,qBACA+R,eAEA+F,WACAA,aAwTA,cACA,cACA0G,KAEAvE,aA3TAnC,uBAEA,iBAwDA,cACA,OACA,uEAGA,wBACA,4CACArI,EAaA,kBAEA,uBACA,sBACA,oBACA,sEAGA,YAEA,gBAgBA,kBACA,sBACA,OAiHA,gBAKA,IAJA,8BACAA,WAGAwK,gBACA,4CAGA,eACArX,OAEAJ,gBAEA,gBAIAI,iBAGAA,EAtIAvL,MAGA,yBACA,YAGA,WACA,gBACA,yHACAmnB,GAIA,qBACAA,2BACA,OAkIA,kBACA,uBACA,6DAGA,yBACA,6DAGA,MACA,OACA5b,OADA,kBACA,uBACI,MACJ,oBAEA,sBAIAW,qCAEAX,EAvJAmY,QAGA,sBACA,oBACA,yEAIA,6BACA,kBACA,qBAGA,OA4IA,cACA,kBACA,oBACApL,OAEA,qBAIA6O,gBACA7O,EAGA,yBACA,uCACAsI,KAEArf,KAGA,yCACAA,eADA,EAhKAoiB,IACA,gBAEA,gDACA,yCACA,cACAwD,qCAIA,oBACA,yHACAA,GAqBA,cACA,sBACA,8DACI,OACJ,uEA4BA,cACA,YACAvG,gBAwCA,cAGA,QAFAxI,6BACAE,OACA/M,IAAkBA,IAAYA,KAC9B+M,cAEA,SAoDA,cAGA,QACA,+EACAtW,yBAEA,WA8FA,gBACA,iBACA,gBAEA,2CACA,oBAEA,sBACA,oBACA,kGACAmlB,GAIA,eACA5b,wCACA,sBAIA,QADAJ,QAEA,cACA,YACA,aACA,SACA,aACA,WACA,QACA,uBACA,WACA,YACA,cACA,WACA,eACA,MACA,iBACA,SACA,2BAEA,MACA,wBAEAiN,uBACAjN,OAMA,kBACA,SA8BA,SArBA,cACAiN,KAIAA,sBAIA,wBACAE,eAGAA,QAKAA,UACAF,QAGA,SAKA,IAFA+O,gBAGA,cACA,MACA,wBAEA,WACA,QACA,wBAEA,QACA,wBAEA,aACA,SACA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ACAA,sDACAqY,8BACA,oBACA,yEAIA,kBAKA,QAHArX,WACAJ,YAEAoN,uBAAwCA,QAASA,GACjD,kBACAhN,QACAJ,SACA,MAIA,eACAA,OACA,GAGAyX,yBACA,oCACA,UACA,WACA,YACA,YACA,aACA,aACA,aACA,WACA,YACA,cACA,WACA,iBAEA,WAIAA,uBACA,qBACA,mEAGA,gBACA,kBAGA,MACA,cAEA,IADAtK,IACA/M,IAAgBA,aAAiBA,EACjC+M,eAIA,wBACAC,KACA,QAAchN,aAAiBA,GAC/B,YAIA,GAHAhB,mBACAiO,gBAEAoK,eACA,mEAEApK,eACAD,cAEA,WAkDAqK,eA8EAA,yBAQAA,8BACA,kBACA,UACA,kEAEA,YAAkBtK,IAASA,KAC3B4K,cAEA,aAGAN,8BACA,kBACA,UACA,kEAEA,YAAkBtK,IAASA,KAC3B4K,cACAA,gBAEA,aAGAN,8BACA,kBACA,UACA,kEAEA,YAAkBtK,IAASA,KAC3B4K,cACAA,gBACAA,gBACAA,gBAEA,aAUAN,2BAPAA,gCACA,kBACA,gBACA,kCACAK,yBAKAL,+BACA,mEACA,iBACA,uBAGAA,+BACA,SACAtK,sBACA,oDAAmD,cACnD3P,4BACA,kBAGAia,0CAIA,GAHArY,kBACA6N,oCAEAwK,cACA,oBACA,wFACAxK,GAiBA,QAbA,QACAE,UAEA,QACA/M,qBAEA,SACAJ,WAEA,SACAoN,gBAGAD,sCACA,2CAGA,gBACA,SAEA,UACA,SAEA,QACA,SAQA,qBASA,QAPAE,IAJAD,UADApN,SAMAsN,IAPAlN,SADA+M,QASAI,mBAEAoa,qBACAvW,gBAEAF,KAAkBA,QAASA,GAC3B,oBACA7D,UACAC,UACA,MAIA,gBACAA,QACA,GA4HAmK,qCACA,gCAGAA,oCACA,yBAGAA,wCACA,yBAgDAA,qCAEA,cACAzX,UACAI,cACA+M,iBAEI,0BACJnN,KACAI,cACA+M,aAEIqkE,YAUJ,gBACA,2EAVArkE,OACAqkE,aACApxE,YACA,sBAEAJ,KACAI,UAQA,qBAGA,SAFA,qBAEA6M,sCACA,+DAGAjN,gBAGA,QADAqN,QAEA,eACA,MACA,yBAEA,WACA,QACA,0BAEA,QACA,yBAEA,aACA,SACA,0BAEA,SAEA,0BAEA,WACA,YACA,cACA,WACA,8BAGA,mDACArN,yBACAqN,QAKAoK,8BACA,OACA3iB,cACAwK,qDAsJAmY,gCACA,mBACAxK,OAGA,GACAA,MACA,SACIA,MACJA,MANAE,oBASA,GACAA,MACA,SACIA,MACJA,KAGAA,WAEA,0BAEA,6CAEAnN,IAWAyX,uCACAxK,OACAE,OACA/M,uBAKA,QAHAJ,WACAoN,KACAC,OACAA,iBACArN,kBAGA,WAGAyX,uCACAxK,OACAE,OACA/M,GACA+jB,oBAKA,QAFAnkB,eACAoN,KACAD,gBACAnN,mBAGA,WAGAyX,oCACA,cACAtK,uBACA3P,SAGAia,uCACA,cACAtK,uBACA3P,sBAGAia,uCACA,cACAtK,uBACA3P,sBAGAia,uCACA,cACAtK,wBAEA3P,QACAA,aACAA,eACA,oBAGAia,uCACA,cACAtK,uBAEA,kBACA3P,cACAA,aACAA,YAGAia,sCACAxK,OACAE,OACA/M,uBAKA,QAHAJ,WACAoN,KACAC,OACAA,iBACArN,kBAEA,OAEAA,KAFAoN,WAEApN,qBAEAA,IAGAyX,sCACAxK,OACAE,OACA/M,uBAKA,QAHAJ,KACAoN,KACAC,gBACArN,iBACAqN,oBAEA,OAEAA,KAFAD,WAEAC,qBAEAA,IAGAoK,mCAGA,OAFAxK,OACAE,uBACA,aACA,kBADA3P,SAIAia,sCACAxK,OACAE,uBACA,2BACA,+BAGAsK,sCACAxK,OACAE,uBACA,2BACA,+BAGAsK,sCACA,cACAtK,uBAEA3P,QACAA,aACAA,cACAA,eAGAia,sCACA,cACAtK,uBAEA3P,YACAA,cACAA,aACAA,WAGAia,sCACA,cACAtK,uBACAoC,wBAGAkI,sCACA,cACAtK,uBACAoC,wBAGAkI,uCACA,cACAtK,uBACAoC,wBAGAkI,uCACA,cACAtK,uBACAoC,wBASAkI,2CACAxK,KACAE,OACA/M,OACAJ,IAEAmP,cADAsK,kBACA,GAGA,SACAnM,KAEA,IADA9P,gBACA8P,iBACA9P,oBAGA,YAGAia,2CACAxK,KACAE,OACA/M,OACAJ,IAEAmP,cADAsK,kBACA,GAGA,WACAnM,KAEA,IADA9P,mBACA6P,kBACA7P,oBAGA,YAGAia,uCACA,YACAtK,OACA/M,wBACA5C,cACA2P,KAGAsK,0CACA,YACAtK,OACA/M,0BACA5C,cACAA,gBACA2P,KAGAsK,0CACA,YACAtK,OACA/M,0BACA5C,cACAA,gBACA2P,KAGAsK,0CACA,YACAtK,OACA/M,+BACA5C,iBACAA,iBACAA,gBACAA,cACA2P,KAGAsK,0CACA,YACAtK,OACA/M,+BACA5C,eACAA,iBACAA,gBACAA,gBACA2P,KAGAsK,0CAGA,GAFAxK,KACAE,QACAnN,IACA,yBAEAmP,wBAGA,SACA7B,KACAC,KAEA,IADA/P,gBACA6P,iBACAJ,gCACAM,MAEA/P,4BAGA,YAGAia,0CAGA,GAFAxK,KACAE,QACAnN,IACA,yBAEAmP,wBAGA,WACA7B,KACAC,KAEA,IADA/P,mBACA6P,kBACAJ,gCACAM,MAEA/P,4BAGA,YAGAia,sCACA,YACAtK,OACA/M,2BACA6M,iBACAzP,cACA2P,KAGAsK,yCACA,YACAtK,OACA/M,+BACA5C,cACAA,gBACA2P,KAGAsK,yCACA,YACAtK,OACA/M,+BACA5C,cACAA,gBACA2P,KAGAsK,yCACA,YACAtK,OACA/M,yCACA5C,cACAA,gBACAA,iBACAA,iBACA2P,KAGAsK,yCACA,YACAtK,OACA/M,yCACA6M,wBACAzP,eACAA,iBACAA,gBACAA,gBACA2P,KAkBAsK,yCACA,0BAGAA,yCACA,0BAaAA,0CACA,yBAGAA,0CACA,yBAIAA,oCACA,qEASA,GARArX,UACAJ,6BACAmN,0BACAA,SACAnN,mBAGAA,QACA,uCAGA,OACA,kDAEA,kEACA,wDAGAA,iCACAi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ACA,sBACA,eACA,WACA,sBACA,0BACA,wBACA,mBACA,6BACA,4BACA,yBACA,mBACA,0BACA,2BACA,aACA,wBACA,2BACA,uBACA,4BACA,wBACA,sCACA,oCACA,4BACA,sBACA,kBACA,0BACA,sBACA,iCACA,8BACA,2BACA,oBACA,+BACA,mBACA,wCAGC,IAAG,qBACJ,YAyGA,cACA,yCA3EA+E,UANA,cACA,qBACAm8D,iBAEA,yBAOAn8D,YAHA,cACA,2BAOAA,SAHA,cACA,iBAOAA,oBAHA,cACA,gBAOAA,WAHA,cACA,0BAOAA,WAHA,cACA,0BAOAA,WAHA,cACA,0BAOAA,cAHA,cACA,mBAOAA,WAHA,cACA,gCAOAA,WAHA,cACA,oCAOAA,SAHA,cACA,8BAOAA,UAHA,cACA,mDAOAA,aAHA,cACA,4BAYAA,cARA,cACA,iBACA,qBACA,oBACA,oBACA,2BACAtgB,OAIAsgB,wBAMC2R,WAAayqD,0CACb,CAAE,gCAA8B,oBAsBjC,qBAoeA,cACA,oBACA,sBACA,QAteAjmE,eAweA,cACA,UACA,4DACAqY,YAEA,WA5eAvU,2BA8eA,eACA,YACA,kBACA,+BA/eA,eACA/R,uEACAA,qBACAA,qBAGAA,8CAEA+S,YAGA1Z,iBAEAA,2BACAA,iCAIA,IAEA4e,EAFA/gB,KAGA,IACA,SACAqM,oDAA6DtF,UAC7Dga,gBACgBA,KA4BhB,cACA,gCACA5e,sBACAgtB,gBAYA,oBACA,MACAA,gBAIA,QAFAE,YACAC,WACAC,KAAoBA,QAASA,GAC7BD,gBAGA,uBACA,MACAH,mBAIA,QAFAG,YACAC,WACAC,KAAoBA,QAASA,GAC7BD,mBAGA,0BACA,MACAJ,sBAIA,QAFAI,YACAC,WACA9mB,KAAoBA,QAASA,GAC7B8mB,sBAGA,6BACA,MACAL,yBAIA,QAFAK,YACA9mB,WACA0T,KAAoBA,QAASA,GAC7B1T,yBAIA,uBACA,MACAymB,oBAIA,QAFAG,YACAC,WACAC,KAAoBA,QAASA,GAC7BD,oBA6DA,uBACA,OACAA,GACAC,GAEA,yBACA,8DAoBA,IAlBAD,eAOAA,iBACAJ,wBACAlV,4BAIAsV,cAEAC,YAbAD,qBACAJ,kBAeAK,IAGA,GAEA,sBAEAA,UACAH,mBAGAA,GACAG,eAEAA,aAKAA,YACAF,UACAA,oBACAE,aACA,gEACAA,iGAGA9mB,sCACAA,aACAA,WACAA,mBACA,wCACA4P,gDA9BAkX,eACAL,eAmCA,SAcA,aACA,eAGA,OAFArmB,kDACAA,cACAF,uBACA,EACA,4CACA,EACA,yDACA,EACA,sEACA,EACA,gEACAA,sBAGA,QADAumB,8BACAC,KAAwBA,cAAiBA,GACzCD,oBACArmB,oCAKA,oBACA,QAAgBO,qDAChBimB,gBACA,sBACAD,aACAC,GA0HA,oBACA,iBAEA,OACA,SAEA,cACA,UAGA,sBACArV,0BAEAA,GAsDA,cAEA,QADAmV,uBACAnV,KAAkBA,eAAgBA,GAClCmV,6BAEA,UA3DA9nB,qBALA,GAyBA,cACA,oBAEA,OACA,aAEA,yBACA,SACM,MACN,iBAIA,SAcA,iBAEA,QADA2S,iBACAoV,KAAkBA,QAAOA,GACzBpV,aACA,UA3bA8G,EACA1U,+CACAC,cACA7L,eACA,UAEA6J,gBAGA,iCACA,uEACAtK,OAIAmC,wBAKAA,yCACA,wCACA,8DACA,6BACA2G,MASA3G,uCACA,gBA4DAA,8BACA,sBACAia,gBAGA,GADA1T,gBAEA0T,+BACAA,GACA,SAGA,OAGA,GAFAxT,qBACAqR,iBACAA,oBACA,SAGA,sDACA,oBACA5B,GAOA,KAFAgX,WAGA,SAEA,6BAEA,OADAC,qBACA,KAEA,EACAnd,cACA,WACA,EACAlS,2BACA,WACA,EACAC,wCACA,WACA,EACAC,qDACA,cAIA,IADAovB,mBACAC,KAAkBA,MAASA,KAC3BD,uBACA7tB,iBAGA,UA0EAS,eAJAA,wCACA,yBAKAA,4BACA,gBACA,yBAkCAA,iCACA,yBACA,8DACA,iCACA2G,MAGA3G,gCACA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C,SACA9iB,KACSA,IAAU4gB,+BAEnBA,kBAGC,IAAG,oBAGJhF,UAFA,iCAEA,cACAhB,IACA9D,WACAA,uCACA7J,aACAnG,QACAuF,cACA2S,YACA49D,qBAOA,cACA,MACA9lE,WACA,mBACA5U,wBACA4U,kBACAA,6BAKC,IAAG,oBAcJ,cACA,4FALA8E,sBACA,uBAQA,cACA,oFATA9E,sBAYC,IAAG,oBACJ,SAAiBJ,SAEjBkF,qCACA,oCAGC,IAAG,oBAuBJ,aAEA,gBACA9E,iBAQA,aACA,iCACAjO,iDACAA,yCACAA,oBATA+X,gBAkBA,oBACA,WACAmC,KAQA,oBACAhjB,gBACAA,cACAA,eACAA,eAEA,qBACA,4CACAiuB,0CACAnlB,sCACA,4CACAA,4BACAA,2CAnBA,gBACA,2BACAia,uBACAA,4BACAA,uBAiBA5Q,iBAGA6Q,4CAIAla,gDADAka,EACAla,2BAEAiY,IAIAlG,QACAgB,aACC,CAAEshE,wBAA0B,qBAC7B,YAGA,SAEAtiE,iBACA1Y,kBACAnC,mBACA+gB,oBACAgC,YACAC,YACA7Q,WACAlS,YACAC,WACAC,cACAuB,cAEAmiB,aACAC,YACAvjB,aACAD,aACAgjB,aACAF,cACAC,cACA/b,cACAC,cACA2nB,aACApX,cACAqX,aACAC,gBACAnV,gBACAoV,gBACAC,gBACAC,gBACAC,iBACA9mB,iBACA0T,iBAEA/D,eACA2D,aAEA1C,eACAmW,eAGA,cACA3mB,cACAA,kBAEAA,mBACAA,oBAEAA,gBACAA,iBACAA,cACAA,cACAA,uBACAA,yBACAA,iBAAsB,kCAGtBA,eAIA2R,uBAEA,QADAP,iBACAyV,eAAmCA,IAAOA,KAC1C,WACA,aAA2B,SAE3B,iCAGA,oBACA1kB,wBAAiC,UACjCA,4BACAnC,cACAA,yIAEAmC,sBACA,oCAEA,QADAiP,EACAyV,gBAAqCA,IAAOA,IAC5C,oBAGA,GAFAzV,QACApR,cACA,QAAsBA,4BACf,QAAqBA,4BACrB,OAAqBA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mBACnB,GACRA,gBACL,gBACa,4BADmBA,mBACnB,GACRA,gBACL,gBACa,4BADmBA,cAAqBA,mBAA4BA,oBACpE,GACRA,gBACL,gBACa,4BADmBA,oBACnB,GACRA,iBACL,gBACa,4BADmBA,mBACnB,GACRA,gBACL,gBACa,4BADmBA,cAAqBA,qBAA0BA,iBAK/EmC,4BAIAA,6BACAnC,cACAA,0HAEAmC,mBACAnC,iBAAmB/B,gDAEnBkE,kBACA,kBACAiP,mBACApR,mBACAA,eACAA,iBACAA,cACAA,YAAoBA,gBAEpBmC,qBACAnC,YAAmBA,cACnBA,kBAEAmC,0BAGAA,0BACA,mBACA,0CACAnC,aACAA,wBAEAA,qBACKoB,OACLpB,YAEAA,WADAA,WACAA,wBAEA,GAEAA,gBACAA,cACAA,oBACKoB,OACLpB,YAEAA,WADAA,WACAA,wBAEA,GAEAA,WACAA,aACAA,sBACKoB,OACL,kBAGA,6BAFApB,eAEA,IAEKoB,OAOL,6BANA,kBAGA,6BAFApB,gBAKA,GAEGA,gBACH,UACAA,WACAA,qBACMoB,OAGN,6BAFApB,gBAEA,GAEGA,eACH,WACW,6BADgBA,kBAChB,IACRA,eAWH,6BAVA,UACAA,gBAAiCA,WAAYA,eAC7CA,gBAAuCA,yBAEjCoB,+CAGN,6BAFApB,cASA2R,OAEAoB,eAEC0W,+BACA,CAAE+B,YAAY,qBACf,YACA,aACA,oBACAzZ,iBAEA1Y,gBAEA,aACA0Y,gBAGA/R,mBACAA,mBACAA,mBACAA,kBA+GA,gBACA,qBAGA,0BACA,mCAGA,0BACA,mCAGA,0BACA,gCAGA,0BACA,mCA7HAiO,OAEA/W,+BAEA,QADAE,IACAC,IAAkBA,OAAQA,oCAE1B,cACA0jB,UACAC,UACAvjB,UAEAmB,+BACAnB,gCACAujB,+BACAD,gCACAniB,+BACAnB,gCACAujB,gCACAD,gCACAniB,+BACAnB,gCACAujB,iCACAD,iCACAniB,gCACAnB,iCACAujB,iCAGApiB,MAFAmiB,iCAEAC,uBACAvjB,+BACAujB,gCACAD,gCACAniB,+BACAnB,8BACAujB,iCACAD,gCACAniB,8BACAnB,gCACAujB,gCACAD,gCACAniB,gCACAnB,+BACAujB,gCAGApiB,MAFAmiB,iCAEAC,uBACAvjB,gCACAujB,iCACAD,iCACAniB,+BACAnB,gCACAujB,gCACAD,iCACAniB,+BACAnB,gCACAujB,gCACAD,8BACAniB,+BACAnB,iCACAujB,gCAGApiB,MAFAmiB,gCAEAC,uBACAvjB,gCACAujB,iCACAD,gCACAniB,gCACAnB,gCACAujB,iCACAD,gCACAniB,+BACAnB,iCACAujB,gCACAD,iCACAniB,+BACAnB,iCACAujB,+BACAD,gCAEA/a,oBACAA,oBACAA,oBACAA,qBAGA9I,+BAEA8I,qCACAA,uBACAA,yCACAA,eACAA,qBAGAA,yCACAA,8CACAA,8CACAA,eAGA,gBACA,iCACA5I,0BACAA,0BACAA,2BACAA,GAuBA2b,cAEC0W,+BACA,CAAE+B,uCAAyC,oBAC5C1T,wBAAmC,YAEnCA,sBACA,2BACAw8D,kBAEA,IAGAx8D,qBAAgC,UAEhCA,oBAA+B,UAE/BA,qBACA,yBAGAA,sBACA,yBAGAA,kBAA6B,UAE7BA,kBAA6B,iBAE7BA,qBACA,4BACAy8D,qBAEA,IAGAz8D,oBACAA,uBACA,WAAgB,UAEhBA,kBAA6B,oBAE7BA,sBAAiC,iBAEjCA,6BACA,cAGAA,WAEAA,qBACA,YAGC,IAAG,qBACJ,YACA,aAKA/E,WAHAgF,WACA,8BACA,6DAMA,oBACA,wBACA,8DAEA,IACAmC,IADAD,mBAEA,eACA,OACA,EACA,0BACA,EACA,6BACAlI,sBAEA,EACA,6BACAA,wBAEA,EACA,6BACAA,6BAKA,IAFAmI,iBACA7Q,IACAA,YACA6Q,oBAEA,6BACAnI,oBAhCAgG,aAqCC0R,0BACA,CAAEif,cAAc,oBAEjB,IAOAz6B,EACA8D,EARAgG,eAUA,aACA,mDAEA,aACA,qDAsBA,cACA,kBAEA,uBAGA,2BAC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AD,eAnCAF,gBA8DCkD,mDACA,CAAE,gJAAwJ,oBAC3J1W,6CAEC,CAAE,oCAAkC,oBACrC,iBACA,IACA,2BAFA,IAKA+E,4CACA88D,YACA98D,aACAA,0CACAA,sCACAA,4CACAA,iDAEC,CAAE,+JAA6J,oBAChK/E,2CAEC,CAAE,kCAAgC,oBACnCA,0CAEC,CAAE,iCAA+B,oBAElC,kBACA9E,WAGA,gBACA,eACAgK,UAWA,kBACA,gBATAhK,kDACA8E,aAGAhB,OACA+F,YAOAze,uCAGA0Y,OAEA1Y,uBACA,sBACA,qDAEA,iBAGAA,wBACA,sBACA,iDAEA,WACA,kBACA,mBACA6gB,YAEAA,UAGAA,UAEAA,GAGA7gB,0BACA,sBACA,iDAEA,aAGAA,8BACA,sBACA,iDAEA,yBAGC,CAAEmyB,YAAY,qBACf,aAEC,YAEDvd,uBAAsC,mBACtCA,cACAA,cACAA,eAgKA,gBACA,mBAtJAA,0BAEA,OACA,oDACA,oDACA,gCAuBA,gBACA,0CAEA,YAiFA,cACA,uBAAsC5M,IAAOA,IAC7CE,YAlFA0W,IACA/V,WACAA,0CACAA,YACAA,qDACAA,wDACAA,UACAA,mCACAA,mBACAA,aACAA,kCACAA,iBACAA,qCACAA,gBAKAA,qCAGAA,oCACAA,kBACAA,8BAEAukB,gBAjDAxY,SACA,QACA,wBACA,kBACA,UACA,UACA,YACA,UACA,WACA,YACA,QACA,aACA,QACA,MACA,QACA,SACA,gBACA,kBAmCA1K,0CACA,aAAkBvD,iBAClB,qBACA,QAGAuD,0DACA,qBAGAA,sCACA,SACA,8CACA,WAyDAlK,YACA,CAAIlB,eAAmB+a,UACvB2hE,MAwvBA,cACA,WACA,+BACA,wBACA,wDACA,yBAEA,QADA3yE,SACAb,qBAQA,OAPAA,kBACAA,aACA,UACAA,SACAA,YACQA,YAERA,cAEAmlB,SACA,SACAnlB,qBACAA,+BACUklB,UAGV/V,wCACAnP,aACAA,iBAEA,cAEAmlB,QACA,6BAEA,QADAI,MACA/kB,sBACAA,kBACAR,kBACAA,aACA,UACAA,SACAA,YACgBA,YAGhBA,+BAEA,SACAA,qBACAA,gCAEAklB,qCACA/V,uCACA,+BACAnP,eAEA,cAEAmlB,UAEA,QACAnlB,yBACUA,YACV,cAEAmlB,iBACA,QACAnlB,sBAEAA,gBACAA,mBAEA,cAEAmlB,aAEA,SACAnlB,qBACAA,eACU8P,UAEAA,SACV9P,oBACAA,aACU,SACVA,qBACAA,cACU,SACVA,qBACAA,mCAEAmP,mBAEAnP,kCAEAQ,YADAR,+BACAiyE,aAEAjyE,kBACAA,kBAEA,cAEAmlB,aA1uBA,aA2uBAnlB,6BACAqlB,oBACArlB,iBACAA,cACAA,YACUA,qBACVA,mBACAA,aACAA,eAlvBA,aAmvBUA,6BACVA,oBACAA,2BACA,+CACAA,aACAA,eACU,SACVqlB,qCACArlB,cACAA,kBACU8P,UACV9P,6BACAA,eAEA,cAEAmlB,oBACA3kB,UACAR,qBACAA,QAEAA,cACA,cAEAmlB,WACA,SACAnlB,gBACAqlB,4BACArlB,eAEAA,aACA,+BACA8P,UACA9P,0BACAA,QAGA,cAEAmlB,kBACAnlB,aACAQ,UACAR,OACAA,oBAEA,cAEAmlB,eACAnlB,aACA,2BACA8P,UACA9P,8BACAA,OAEA,cAEAmlB,sBACAnlB,aACAQ,UACAR,uBACAA,QAEA,cAEAmlB,WACA,kCACAnlB,aACA,cAEAmlB,kBACA,SACAnlB,yBACAA,8BACAA,uCACAA,eAEAA,iBACAA,oBAEA,cAEAmlB,iBACA,SACAhW,yBAGAnP,kBACAA,oBACUA,gBACV,cAEAmlB,SACA,gCACAnlB,WACA,cAEAmlB,gBACA,mCAEAnlB,eACAA,kBAEA,cAEAmlB,kBACA,SACAnlB,iCACAqlB,qBACArlB,WACAA,iBACU,QACVA,cAEAA,gBACAA,kBAEA,cAEAmlB,aACA,oCACArV,kCACA9P,kBACA,cAEAmlB,kBACA,qCACA,oCACAnlB,kBACA,cAEAmlB,oBACA,SACAE,gCACAtc,oBACAugB,sBAEAtpB,iCACAA,kBAEAA,sBACAA,2BAEA,cAEAmlB,YACArV,uBAEAwV,MACA,cACA,mCAEAJ,WACAllB,mCACAA,oBAGA,cAEAmlB,kBACA,SACAplB,SACAgQ,OAEAZ,sDACAnP,mBAEA,cAEAmlB,UAEA,oBACA,cACA,kCACArV,SACA9P,eACAA,iBACAA,wBACUmP,8BACV,cAEAgW,eACA,gCACA,SACAhW,+BACAnP,2BACAc,MACAf,OAEA+P,yCACAA,yBACAX,8BACA,cAEAgW,yBACA,uCACA,qBAEAhW,+BACAnP,kCACAA,iBACAqlB,mBACA,CAAqBtc,6BACrB/I,gBACA,cACA8P,SACA9P,eACAA,yBAEAmP,8BACAnP,mBAGA,cAEAmlB,gBACA,oBACArV,SACA9P,MACAA,iCAEAmP,gCACAnP,iCACAA,iBAEA,cAEAmlB,uBACA,YACA,yCACAnlB,iBACA,SAEAc,MACAd,OACAA,+BACA,cAEAmlB,uBACArV,QACA9P,kBACU,cACV,kCACA8P,SACAX,wCACAnP,eACAA,iBACAA,wBACUmP,8BACV,cAEAgW,yBACA,YACA,yCACAnlB,iBACA,SAEAc,MACA,cACAd,kBACA,cAEAmlB,aACA,aAWA,aACArV,sBACA9P,UACAA,yBACAA,aACAA,oBAEAklB,aACA,kCACAllB,oCApBA,CACA,oBACAklB,QACAllB,UACAA,iBACAA,mBAEAmP,uCAEYnP,YAaZ,cAEAmlB,uBACA,oBACA,aACAhW,yCACA,cAEAgW,oBACAA,8BACAA,yBACA,qBACAA,eACA,2BACA,WAEAA,yBACA5kB,yCACA,WAEA4kB,yBACA5kB,2CAGA,SACAP,WACAA,YACAA,WAEA8P,qBAEAX,gCACAnP,qBACAA,YACAA,WAEA,iBAGA,6CAQA,0CAzuCA,cAGA,QAFAA,mCACAa,IACAL,eAAsCA,IAAOA,KAC7C,qBACA,OAKA,iBACA,WACAjC,MACA,UAEA,QACA8mB,wBACAnlB,WACA,UAEA,SACAmlB,0BACAnlB,YACA,cAGAgO,0CAGArN,gBAGAX,4CACAA,WAwsCArK,IACAmK,GAjrCAyzE,kBAA0B,uBAAmB90E,MAC7CmZ,iBAAyB,yBACzB47D,kBAjBA,cACAn1E,MACA,eACA8mB,wBACAnlB,YAEA,gBACAmlB,0BACAnlB,aASyB0Y,SAGzB,IACA,+BAEAC,eAIA,kCACA,+BAOA,gBACA,0CAEAA,cAEAla,wBACAA,iBACAA,iBAGA,WAEAA,8BACAkC,eAGAlC,iCACAkC,kBAIAA,sBAGAlC,mBAEAqJ,sBACA9F,gCACA5L,eAAyB,0BACzB6J,gBACA,MACA,+BACAU,oBAEAA,WAEAsB,cACAuwE,qBAKA38E,sCACA,CAAIgN,aAAenG,YAEnB42E,kBACA,yBACA,+BACA98D,eACA,mBACA,wCACA/X,4BAEAuB,yBAGA,wCACAvB,qBACA,GAGA5I,4BACA,kCACA4I,oBACA,GAGA5I,6BACA,WACA,8CACA8K,6BACA,0CACA+xE,4BACApyE,gBACAK,oBAIAgY,4BAMA,gBAGAthB,eACAmiB,yDAEAC,QACAvjB,UACAD,QAGA+iB,yCACA/b,kCACAC,GAAeqM,eAGfzT,OACAuB,OACAmiB,OAQA,kKAEA/L,oMAMA,cACA,wCACA,eACA3N,GACG,IAOH,iBACA,OALA,eACA,4DAIAilB,sBAGA,iBACA,eApBAtL,OACAvjB,OACAD,OAqBA,SA6SA,cA5SAyW,QACA,CAAE+mE,WACFC,UACAC,iBACAC,eACAC,eACAC,sBACAC,aACAC,oBACAC,iBACAC,wBACAC,sBACAC,aACAC,oBACAC,mBACAC,WACAC,kBACAC,oBACAC,eACAC,oBACAC,sBACAC,cACAC,oBACAC,YACAC,iBACAC,2BACAC,kBACAC,yBACAC,yBACAC,2BACAC,2BACAC,2BACAC,eACAC,yBACAC,YACAC,oBAGAjpE,WACA,CAAEkpE,QACFx5E,OACAhD,OACAy8E,SACAC,SACAC,UACAC,WACAC,UACAC,WACAC,UACAC,WACAC,SACAC,WACAC,QACAC,WACAC,UACAC,WACAC,SACAC,WACAC,UACAC,WACAC,SACAC,WACAC,WACAC,UACAC,WACAC,WACAC,WACAC,SACAC,UACAC,WACAC,UACAC,WACAC,SACAC,WACAC,WACAC,UACAC,UACAC,WACAC,UACAC,WACAC,SACAC,WACAC,WACAC,UACAC,WACAC,QACAC,SACAC,WACAC,UACAC,WACAC,SACAC,WACAC,WACAC,UACAC,WACAC,WACAC,WACAC,SACAC,UACAC,UACAC,WACAC,UACAC,WACAC,SACAC,WACAC,SACA5uC,SACA6uC,QACAC,SACAC,UACAC,SACAC,UACAC,WACAC,QACAC,WACAC,SACAC,QACAC,SACAC,UACAr/E,QACAs/E,QACAC,SACAC,QACAC,WACAC,SACAC,SACAC,SACAC,UACAC,UACAC,SACAC,WACAC,UACAC,SACAC,UACAC,WACAC,WACAC,WACAC,WACAC,UACAC,WACAC,UACAC,UACAC,WACAC,WACAC,SACAC,SACAC,SACAC,UACAC,UACAC,SACAC,UACAC,UACAC,YACAC,SACAC,QACAC,UACAC,SACAC,UACAC,WACAC,OACAC,OACAC,OACAC,YACAC,OACAC,QACAC,UACAC,QACAC,YACAC,QACAC,QACAC,QACAC,UACAC,UACAC,SACAC,UACAC,UACAC,YACAC,SACAC,QACAC,UACA/+B,SACAg/B,UACAC,WACAC,OACAC,OACAC,OACAC,YACAC,OACAC,QACAC,WACAC,UACAC,QACAC,YACAC,QACAC,QACAC,QACAC,UACAC,aACAC,UACAC,QACAC,UACAC,UACAC,YACAC,UACAC,SACA7zB,SACA8zB,SACAC,WACAC,WACAC,WACAC,WACAC,WACAC,WACAC,WACAC,WACAC,YACAC,YACAC,UACAC,YACAC,YACAC,WACAC,WACAC,YACAC,YACAC,WACAC,WACAC,UACAC,WACAC,YACAC,UACAC,WACAC,aACAC,UACAC,UACAC,UACAC,UACAC,UACAC,WACAC,UACAC,UACAC,UACAC,UACAC,UACAC,YACAC,UACAC,WACAxmF,WACAymF,WACAC,UACAC,WACAnuE,QACAouE,UACAC,SACAC,WACAC,YACAC,WACAp7E,UACAq7E,WACAC,SACAC,SACAC,QACApuB,SACAquB,SACAC,SACAC,YACAC,SACAC,UACAC,WACAvsF,QACAwsF,WACAx+D,QACAC,QACAuhD,SACAid,SACAC,UACAC,UACAC,UACAC,WACAC,YACAC,UACAC,UACAC,WACAC,WACAC,YACAC,YACA7oF,UACA8oF,UACAC,SACAC,YACAC,WACAC,YACAC,YAGAziF,4CACA,oBACArB,8CACA+L,kBAGAA,gCAKA,mBACA1M,cAGA,mBACAA,kBACAklB,UAGA,eACAllB,gCACAA,sCACAA,cAGA,iBACA,4BACAA,uCACAF,EAGA,iBACA,aACAE,kBACAF,qBACA,sBACA,gBAEAA,eACAE,UACAklB,kBACAllB,EAGA,eACA,8CACAA,8DACA3B,MACA2B,OACAA,YACAklB,cACAptB,yBACAkI,EAGA,gBACA,yCACA,0CACAA,kBAGA,eACAA,+CACA,iCACAW,SAA2BkI,8BAG3B7I,yBACAA,sBAGA,iBACA,IACAM,EADAN,eACA,sBACAqlB,OACAjlB,OAGA,wBACAilB,UACAjlB,MAGA,CAAWskF,kBAGX,eAGA,GAFA1kF,sDAEA,wCACAA,8CACA,qCAGA,gBACA,0BAEAM,UAEA,aAHAR,SAKA,gCACAmP,IACA,+CACAjP,uBACQ,+BACRiP,IACA,iDACAjP,mBACQ,CACR,YACAI,6BACAilB,cACAA,0BAEAA,sBAOArlB,qDAGAA,6CACAmlB,KACA,cACA,CAAgBtc,kBAChBnM,sBAGAsD,8BAGA,iBACA,gBAEA,YAGAM,gBACAK,kBACAA,gBACAA,yBAEAA,mBACAsO,iCACA01E,2BACAhkF,gBAIAA,OADAX,4BACA4kF,WACA5iF,uCACAmjB,KACA,kBACA,CAAoBu/D,2BAOpB,kCAAkDtkF,IAAOA,KACzD,sBACA6c,OACA/O,OACAE,WACA/M,WAEAgN,wBACAC,IAAgBzF,OAChBnM,QACAgoF,SACAG,MALAz2E,QAMA2a,QAKA1nB,qBACA4N,iCACA01E,mBACAr2E,UAEAtO,uBACAmlB,uBAEAn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y,aACAnC,4BACA+gB,WAEAgC,IAEAA,wBAEAC,EADA,mBACAjC,WAEA5e,KAKA,8DAEAjC,gBACAC,qBACAuB,SACAmiB,cAGA1jB,yBACAA,aAGA6iB,qCACAA,yCACAA,wBAIA,eACA,UACAc,mBACAA,GAGAf,oBACA,qBACA,eACA7iB,GAGA6iB,kBACAA,oCAEAA,qBACAA,4BAEAA,0BAEAA,iBAEAA,WACA,WACA,UACA,OACA,SACA,MACA,OACA,OACA,WACA,QACA,aACA,QACA,OACA,SACA,UACA,QACA,OACA,WACA,YACA,QACA,MACA,SACA,SACA,YACA,QACA,SACA,iBAECwP,sFACA,CAAE,qFAAuF,qBAC1F,YAUA,MACA,aAEA,uBAEA,qBACAxb,uBAIA,IACAA,+DAEAA,aAIAA,OAEA,SAGA,cACA,UACA,eACA,IACA,wBACAgM,0BAEA,SAgBA,cACA,2BAvDAnC,wCAEAA,qCAEAA,uCAuCAA,wCAIAA,oCACAA,+DAIAA,2DAMA7J,SAECwb,sFACA,IAAG,qBACJ,gBACA,wBACAvyB,gBACA+gB,kBACAgC,uBAEAC,oBACA7Q,gBAgBAjS,wBACA,WACA6iB,mBAEAe,UACAA,WACAA,cACAD,QACAC,wEACAzX,2CACAyX,8BAGA,MACAxjB,KACA,sEAEAA,KACAC,aACG,4BAGHA,aACG,oCAEHA,8BACGsjB,mDAIH,+CAFAtjB,KAIAujB,QA9CA,gBACA,kBACA,QACG3hB,wBACH,0BACGA,WACH,YACGA,iBACH,cAEA,OAoCAlC,MACA6jB,mBAEAA,yBACAA,iBAIA9jB,gBAEAE,oCACA,IACAI,mBAIA,mBALAwI,KAQAumF,aACAn8E,OACAnM,WAIA7G,kCACA,qCACA,SACA4jB,QACA,MAGA5jB,4CACA4I,KACAumF,2BAGAnvF,iCACA,WAEA,iBAEA,eAEAK,aACAD,OACA,sCACAA,oBACAF,6BAAmD2G,aAKnD,SAaA,GAZAsF,mCACA,iBACA8iB,aACA4tD,iBACA5tD,uBACA7L,kBAGAA,iBAIA,mBACA,WAEA,sBACA,0BACAF,WACAS,0BAEA,6CACAA,sCACAA,yBACAA,yBACAA,iCACKC,mBAIL/M,qBACA8Y,sBACAsC,UACAsB,eACAnB,YACAg9D,sDACAC,WACG1lF,iBACHga,mBACAA,cACG,YACH9M,8BACA8M,cACAA,wBAEG,CACH,kCACA,IACAtc,4CACI2nB,GAIJ,YAHArO,sBACAgD,oBAMA,qBACAtc,wBAEA,wBACAA,uCAEA,0CACAA,yDAEA,uBACAA,2BACAA,uBACAsc,2BAIAP,sBACA/b,gCAGAsc,iBACAtc,gCACA,0BACA4K,eACAA,OACA0R,qBAMA,sCACAtc,wBACAsc,qBAIAtc,qBACAsc,cAEAA,wCAGA,IACAtc,gBACI2nB,GAIJ,YAHArO,sBACAgD,wBAqBA3jB,sCACA,YAVA,cACA,IACA,eACA,6BAEA,UAOAC,yBAGA0jB,aACAA,aAEAA,+BAGA3jB,gCACA,WAEA2jB,eAGAA,iEACAA,mCACAA,oBAGAA,iCAGA3jB,mCACA4I,KAEA0mF,cACAjvF,KAGAL,iDACA,WACA2jB,gBACA9M,8BACA8M,cACAA,2BACAA,OACAA,eACAA,yBACAA,iCAGA3jB,gCAEA,uBACAK,IACAsjB,UAGAd,8BANAja,KAMA+a,QAGA3jB,sCACAA,oCACAA,oCACAA,4CAGA,OACA,iBACA,kBACA,iCACA,gCACA,aACA,iBACA,SACA,UACA,OACA,MACA,SACA,OACA,aACA,SACA,UACA,KACA,UACA,oBACA,UACA,SAGCqyB,kGAAyJvoB,qBACzJ,CAAE,4FAAgG,qBACnG,gBACA,wBACAhK,gBACA+gB,uBAEAgC,iBACA0sE,SACAC,SACAC,mBACAC,UACAC,QAGA7sE,sCACA,WAiBA,GAhBAjC,mBAEArf,UACAA,aACAA,gBACAA,cACAA,iBAGAA,sBAEAmf,sBACAnf,oBAIA,aA+CA,iBACAoiB,0BACA,iBAEA,WAGA,OAFA/M,uBACArV,aAGAA,wBACA2hB,OACI5Z,kBACJsN,kBACAr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A,UACA7b,KAAkBqC,eAClB0e,gBAA0C,eAA0B/gB,yBAA6D,aAAkB8I,mBAA4B,+BAAmCka,kBAA8BA,wBAAoCA,GACpRD,gBAA+B,kBAAmB,8BAElD5gB,WAEA4U,cAEA8D,cACA,8DAGA+F,YACA,IACAw9E,mBACAx8F,QACAy8F,aACAC,iBACAC,YACAC,YACAC,iBACAC,eACAC,cACAC,gBACAC,eACAC,SACAC,oBACAC,cACAC,mBACAC,SACAC,WAEA,IACAf,mBACAx8F,QACAy8F,aACAC,iBACAC,YACAC,YACAC,iBACAC,eACAC,cACAC,gBACAC,eACAC,SACAC,oBACAC,cACAC,mBACAC,SACAC,YAIAv+E,8BAGA,cACA9X,eAGA,OANAiY,OAMA5O,EAPA,CASG0e,OAEHjQ,qBAGA,cAGA,QACA,GAHA9X,0CACAA,gCAEAA,0BACA,uBAIA,SAFAA,gBACApH,kBAEA1B,cAEA8I,gBADApH,MAGA,YACA1B,cAEA8I,gBADA7I,MAGA6I,qBACAA,iDAEAA,aAGA,OA3BAiY,OA2BA5O,6BACA,cACA2R,OACA,iCACAhb,6CACAlH,QACAy8F,aACAS,2BAEA3+F,KACA2I,mCACA,MACA,YACAgb,mBAGAhb,mDACAA,uBACA+a,KACA5jB,uBACAC,uBACA4I,qCACA,UAGA,IAFAwa,MACApjB,OACA4jB,sBAEA,SADAV,gBAEApjB,gBACAC,iCACAqjB,SAEAQ,qBACAR,qBAEAA,yBAIA,sEACAQ,kBACAR,uBACA8P,UACA87D,gBAGArrE,WAEA/a,qCACA,oBAwBA,GAtBAsa,GADAC,WACA,gBACAA,WACA9iB,iBACA8iB,QACA9b,gBACA8b,yBACA/iB,cACA+iB,OAEAS,iBACAT,kBAEAS,sBACAT,4BAAuD,aAEvD,yDACAA,SAGAxI,OACAwI,oDAEA,2BACA6L,iBACA,YAEA,IADAE,MACAtX,gBAA8CA,KAAWA,KAEzDsX,SADA9L,SACA,UAEA,UAPA,GAQW87E,oBACX,IACA/7E,yCACYvL,IA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,aAGAvB,6BACA,OACA,0BACAuQ,iBACAhP,sDACAA,MAGAvB,8BACA,OACA,0BACAuQ,iBACAhP,uDACAA,MAGAvB,gCACA,OACA,0BACAuQ,iBACAhP,yDACAA,MAGAvB,4BACA,OACA,0BACAuQ,iBACAhP,qDACAA,MAGAvB,uCACA,eAQA,GAPAuB,mBACA,UACAomB,eAEA,WACApX,iBAEAilE,iBACA,oBAAyC5tD,KAASA,IAElDrmB,iBADAsmB,cACA,GAEQ9L,KACR,aACAhc,cAEAwB,oBADAomB,YAIA5uB,QACAwX,eAEAwX,oBACAxmB,uEAEA,aAGAvB,yCACA,OAEA,GADAuB,mBACAA,qBACA,wDAEA,6BACAA,6DACAA,MAGAvB,qCAEA,GADAuB,mBACA,QACA,0CAEA,aACA,wDAEA,yCACAA,gCACAA,6BACAA,oBACAA,kDACAA,MAGAvB,sCACA,MACA,0BACA4nB,mBACArmB,2DACAA,MAGAvB,2CACA,OACA,0BACA8nB,4BACAvmB,4DACAA,MAGAvB,kCACA,MACA,0BACA4nB,sBACArmB,0DACAA,MAGAvB,mCACA,MACA,0BACA4nB,sBACArmB,0DACAA,MAGAvB,oCACA,MACA,0BACA4nB,mBACArmB,4DACAA,MAGAvB,0BACA,uBACA,mDAEA,yBACAuB,0BACAA,iCAEAA,gCAEAA,uBAEAA,wDAEAA,iCACAA,oBACAA,MAGAvB,2BACA,2BACAuB,UAEA,qBAGAvB,mCACA,oBACA,oCACAuB,iCAIAvB,iCACA,aACA,0DACAuB,aAEAA,uDACAomB,aAIA3nB,kCACA,eACA,+DACA2nB,eAIA3nB,+BACA,+BACAuB,wBAGAvB,6BACA,iCACAuB,sBAGAvB,2BACA,2CAGAA,iCACA,0BAGAA,4BACA,qBAGAA,4BACA,sBAGAA,4BACA,wBAGAA,+BACA,+BAGAA,iCACA,iCAGAA,iCACA,6BAGAA,+BACA,6BAGAA,+BACA,0BAGAA,0BACA,qBAGAA,0BACA,sBAGAA,0BACA,wBAGAA,0BACA,oBAGAA,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DwQ,gBADAvX,WACA,GAEQL,KACR4X,mCACQ3X,MACR,WACA,eAQA,GANAD,EADAmvB,WAEAA,eAEAlvB,eACAkvB,UAEAvmB,yGACAgP,6EACYhP,mDACZ,qBAA2CvB,KAAUA,KAErD6b,MACA8L,GAFAG,MAGAvX,wBAEY3X,OACZ2X,oBACAiC,YAEAjC,2BAKAA,IADAhP,2GACAA,cACUA,6GACVA,eACUA,iHACVA,iBACUA,yGACVA,aACUA,uGACVA,iEAEAA,iBAGA,YACA,0DAEA,WAGAgb,yCACA,UACA,eACA,wDAEA,4CACAxc,iCACA8b,6BACA25D,mDACA35D,GAGAU,wCACA,UACA,eACA,wDAEA,4CACAxc,mCACA8b,6BACA25D,mDACA35D,GAGAU,8BACA,MACA,eACA,kDAEA,4CACA,2DACAhb,aAGAgb,iCACA,QACA,iBACAvjB,eAEAD,UACAA,cACAH,OACAmjB,uBAEAF,kBACA,SACAA,UAEAta,sBACAsa,GAGAU,6BACA,MACA,uBACAhb,sBACAA,MAGAgb,8BACA,MACA,uBACAhb,sBACAA,MAGAgb,gCACA,MACA,uBACAhb,sBACAA,MAGAgb,sCACA,QACA,4CACAV,iCACAta,uBACAi0E,mDACAj0E,MAGAgb,qCACA,QACA,4CACAV,mCACAta,uBACAi0E,mDACAj0E,MAGAgb,4BACA,MACA,uBACAhb,sBACAA,MAGAgb,sCACA,YAOA,GANA,UACAvjB,eAEA,UACAD,eAEAy8E,iBACA,mBAAyCz1E,IAASA,IAElDwB,iBADAwa,aACA,GAEQnjB,KACR,YACA0jB,aAEA/a,mBADAvI,WAIAL,OACAI,aAEA+iB,kBACAva,sBAEA,aAGAgb,4CACA,QACA,4CACAT,iCACAva,6BACAi0E,mDACAj0E,MAGAgb,2CACA,QACA,4CACAT,mCACAva,6BACAi0E,mDACAj0E,MAGAgb,wCACA,QACA,yBACAT,iBACAD,0BACAA,gBAEAA,sBAEAA,aAGAU,kCACA,yBAIA,IAHAV,kBACAC,eAEA/b,UADA8nB,eACAvZ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A,GARAD,SACAvL,iBACAA,+BACAsL,iBACAtL,0CACQsL,UACRtL,6BAEAsL,qBAIA,IAHAtL,SACAA,iBAEAvQ,OADA4nB,cACAtZ,OAAsCtO,IAASA,IAC/CD,OACAwQ,eACA,iBACAxQ,gBACA,oCACAA,gBACA,oCACAA,gBACA,mCACAA,gBACA,qCACAA,gBACA,+BACAA,gBACA,iCACAA,gBACA,iDAEA,gEAEWirB,WAEXza,QAEA,sCACAhP,cAIAwa,kCACA,qCAcA,UAbAD,SACAjH,MACAtT,oBACAA,gBACAA,iBAEAA,iCACAA,gCAGAumB,MACAA,KAFA3mB,kBAEA,WACA4mB,iBAEA/uB,gBAEA8uB,mBADAC,SAGA,wDACA,sBAGAD,IADAvmB,gBACA,8BAEAA,gDAEQA,8DACRumB,QACAA,wBACAA,qCACQ,CACR,4BAEA,WADAE,eACA1Z,OAAyCqZ,IAASA,IAElD,UADA3nB,SACAR,OACA+B,qBACAsT,MACA,MAWA,IAPAtT,qBACAA,gBACAA,eACAJ,kBAEA2mB,qBAEAvX,SADA0X,eACA3Z,OAAwCiC,MAAUA,KAClDvQ,SACA8nB,eACA,iBACA9nB,gBACA,+BACAA,gBACA,iCACAA,gBACA,iCACAA,gBACA,6BACAA,gBACA,8BACAA,gBACA,iDAEA,gEAEWgrB,WAEXnW,IACAtT,qBAEAA,qBACAA,iCACAA,gCAEAumB,oCAEA,WAGA/L,gDACA,MACA,qCACAF,UACA9b,gBAEAA,6CAIAgc,8BACA,2CAGAA,+BACA,2CAGAA,qCACA,MACA,0FACA,kCACAhc,2BAEA8b,iBACA9b,4BAEAA,4CAIAgc,qCACA,6FAGAA,oCACA,MACA,kCACAF,OACA9b,SAEAA,cACA8b,QACA9b,qBAEA8b,iBACA9b,yCACU8b,UACV9b,4BAEA8b,UACA9b,uBAGAA,4CAIAgc,sCACA,MACA,4CACAF,iBACA9b,yCACQ8b,QACR9b,2BACQ8b,UACR9b,4BAEAA,4CAIAgc,mCACA,WAEA,GADAD,SACA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AA6K,oCAA4D,iCAAsB,mDAA4E,8CAAmD,0VAA2X,uFAA6G,mPAA2R,8OAA6O,qCAAiE,4CAA+B,4HAAmJ,yWAA4W,iHAAqJ,wSAA+Up4F,iBAAiH,GAAtE,sBAA+B6nB,KAAoBrX,QAAmBhP,mBAAgC,+BAAqD,wEAA76f,IAAshgBmR,qBAA8D,kCAA2B,QAAa/G,kBAAkC,oCAA2Cmc,6BAA0CA,IAAgBvmB,uBAAuB,QAASu3F,gBAAwB,gCAAmChxE,IAAYvmB,0BAA0B,QAAYk3F,yBAAiD,mCAAyC3wE,IAAevmB,0BAA0B,QAAYoK,kBAAkC,mCAAyCmc,IAAevmB,sBAAsB,QAAQoK,kBAAkC,+BAAiCmc,IAAWvmB,0BAA0B,OAAOw3F,8HAA8Hx3F,sBAAsB,WAAWA,wBAA8B,aAAYA,MAAaA,MAAaxB,UAAz+hB,SAAqgiBA,WAAkBi5F,aAAvhiB,QAAuhiBC,WAAuCl5F,OAAcm5F,gBAA2Bn5F,UAAiBo5F,kFAAxniB,YAA6viBp5F,UAAiBi5F,kBAA2Bj5F,MAAai5F,yBAA2Bv4E,oBAAgCC,6BAA+CD,0BAAgCA,oBAA+B,sCAA2CD,kBAAkB,WAAkBloB,IAAgBA,cAA0B,6BAA4C,aAAa,YAAwB0H,mBAAwBA,oBAAoB,kBAAuBA,sBAA4B2nB,YAAuB,oBAA8B,gBAAwB3nB,iBAR93jB,CAQy5jB","names":["j","B","window","r","o","g","p","type","C","P","s","jquery","get","pushStack","each","map","slice","first","last","eq","end","push","_e","ne","expando","noop","isPlainObject","isEmptyObject","globalEval","v","H","trim","makeArray","inArray","merge","grep","K","guid","w","oi","hasOwnProperty","Te","pn","ID","Mi","Wi","St","Fn","Re","Oe","xe","dir","Ct","apply","Li","ke","me","mt","je","ze","lt","Ie","Ge","D","Qe","dt","Mt","at","Ne","st","Ht","Fe","z","ae","X","cacheLength","find","relative","preFilter","ATTR","CHILD","PSEUDO","filter","TAG","CLASS","pt","zt","ai","yt","Mn","pseudos","not","has","contains","lang","target","root","focus","enabled","selected","empty","parent","header","input","button","text","even","odd","gt","radio","submit","Rt","Un","Lt","value","replace","Yt","Yn","be","Le","a","q","Z","is","prototype","children","closest","index","add","addBack","parents","parentsUntil","next","prev","nextAll","prevAll","nextUntil","prevUntil","siblings","firstChild","contents","Se","Ce","arguments","remove","this","disable","disabled","lock","locked","fireWith","fire","fired","Deferred","state","always","catch","pipe","He","promise","then","Ot","when","e","isReady","ve","c","cache","h","set","access","hasData","V","Y","I","data","removeData","_data","_removeData","S","ce","queue","dequeue","_queueHooks","clearQueue","de","show","hide","toggle","J","option","pe","$e","setAttribute","global","dispatch","handle","handlers","elem","addProp","Object","enumerable","fix","special","load","noBubble","trigger","delegateType","blur","click","_default","beforeunload","postDispatch","constructor","stopPropagation","stopImmediatePropagation","altKey","mouseenter","on","one","off","htmlPrefilter","clone","Xt","cleanData","detach","append","prepend","before","after","html","nodeType","replaceWith","appendTo","Bi","Pe","boxSizingReliable","pixelBoxStyles","pixelPosition","reliableMarginLeft","scrollboxSize","position","Zi","letterSpacing","Ji","wn","cssHooks","opacity","cssNumber","animationIterationCount","cssProps","style","css","marginLeft","margin","expand","cur","run","init","scrollTop","linear","swing","fi","ci","height","specialEasing","easing","stop","Ci","tweeners","tweener","prefilters","ut","display","prefilter","complete","fadeTo","animate","finish","slideDown","fadeOut","fadeToggle","slow","attr","removeAttr","attrHooks","rn","_i","prop","removeProp","propHooks","tabIndex","propFix","for","t","addClass","removeClass","toggleClass","hasClass","val","valHooks","ei","select","simulate","triggerHandler","setup","teardown","serialize","serializeArray","name","Nn","Dn","Ei","active","etag","ajaxSettings","url","test","accepts","xml","responseFields","converters","flatOptions","ajaxSetup","ajaxPrefilter","Wt","bt","readyState","Nt","getAllResponseHeaders","setRequestHeader","overrideMimeType","statusCode","abort","ht","_t","Ut","bi","Ni","getJSON","getScript","wrapAll","wrapInner","wrap","unwrap","Bt","send","binary","script","charset","jsonp","done","length","setOffset","offset","top","pageYOffset","offsetParent","scrollLeft","Height","padding","hover","bind","unbind","delegate","undelegate","toString","fe","Q","Ue","m","right","left","Xe","qe","De","width","bottom","key","Ye","area","sort","et","Je","rt","re","instance","arrowStyles","attributes","flipped","Ee","passive","We","console","N","M","O","Ae","Me","Ve","Ke","isDestroyed","placement","onUpdate","modifiers","shift","order","start","b","W","preventOverflow","primary","secondary","ft","forEach","priority","keepTogether","arrow","element","flip","ue","U","behavior","inner","boundaries","computeStyle","gpuAcceleration","applyStyle","ye","onLoad","ie","tt","y","TRANSITION_END","getSelectorFromElement","getTransitionDurationFromElement","reflow","triggerTransitionEnd","supportsTransitionEnd","isElement","typeCheckConfig","match","findShadowRoot","setTimeout","bindType","CLOSE","emulateTransitionEnd","he","_","CLICK_DATA_API","interval","we","SLIDE","TOUCH","document","Be","relatedTarget","wt","ri","ot","SHOW","nt","HIDE","Pt","tn","Qt","boundariesElement","backdrop","Sn","At","Ui","$t","qi","Ti","animation","Ze","AUTO","In","yi","Vi","clearTimeout","onCreate","Dt","delay","popper","content","ACTIVATE","Ri","ii","xt","ct","CLICK_DISMISS","ni","Yi","itemClass","activeItemClass","menuClass","isOpened","itemsSelector","_tempChain","writable","defaults","event","direction","breakpoint","animationIn","animationOut","rtl","hideTimeOut","sideBarRatio","pageContainer","classMap","initialized","mobileState","subMenu","hasSubMenu","hasSubMenuActive","megaMenu","hasMegaMenu","hasMegaMenuActive","mobileSpeed","mobileEasing","isMenuOpened","beforeOpen","beforeClose","afterOpen","afterClose","d","l","f","n","hideTimeOutId","duration","jQuery","loop","preload","ajax","settings","fancybox","iframe","tpl","scrolling","animationEffect","spinnerTpl","btnTpl","slideShow","fullScreen","thumbs","close","smallBtn","parentEl","autoStart","touch","vertical","hash","onInit","clickSlide","clickContent","dblclickContent","dblclickSlide","en","transition","i","u","container","translate","createGroup","R","F","A","srcset","infobar","addEvents","removeEvents","previous","jumpTo","T","E","createSlide","pos","scaleToActual","scaleToFit","getFitPos","$refs","update","updateSlide","updateCursor","isZoomable","isScaledDown","canPan","loadSlide","error","setImage","setBigImage","Math","setIframe","setContent","setError","showLoading","current","opts","hideLoading","afterLoad","revealContent","getThumbPos","activate","cleanUp","updateControls","hideControls","showControls","toggleControls","version","open","destroy","isMobile","getTranslate","setTranslate","selector","options","items","youtube","matcher","params","autoplay","paramPlace","vimeo","metacafe","dailymotion","additionalInfos","vine","instagram","gmap_place","gmap_search","x","scaleX","timer","clear","request","exit","isFullscreen","$button","create","define","exports","module","accessibility","adaptiveHeight","appendArrows","appendDots","arrows","asNavFor","prevArrow","nextArrow","autoplaySpeed","centerMode","centerPadding","cssEase","customPaging","dots","dotsClass","draggable","edgeFriction","fade","focusOnSelect","focusOnChange","infinite","initialSlide","lazyLoad","mobileFirst","pauseOnHover","pauseOnFocus","pauseOnDotsHover","respondTo","responsive","rows","slide","slidesPerRow","slidesToShow","slidesToScroll","speed","swipe","swipeToSlide","touchMove","touchThreshold","useCSS","useTransform","variableWidth","verticalSwiping","waitForAnimate","zIndex","animating","dragging","autoPlayTimer","currentDirection","currentLeft","currentSlide","$dots","listWidth","listHeight","loadIndex","$nextArrow","$prevArrow","slideCount","slideWidth","$slideTrack","$slides","sliding","slideOffset","swipeLeft","swiping","$list","touchObject","transformsEnabled","unslicked","tabindex","animStart","step","$slider","getNavTarget","clearInterval","getNavigableIndexes","shouldClick","changeSlide","message","role","id","action","checkResponsive","setPosition","autoPlayClear","paused","onload","prependTo","autoPlay","interrupted","slick","components","helpers","getRandomValueFromRange","detectIE","parseInt","bootstrapNavOptions","mobileHideOnScroll","sm","md","lg","xl","_baseConfig","baseClass","slideClass","slideSpeedCoefficient","closeBtn","baseTpl","pageCollection","initFancyBox","beforeShow","initSlickCarousel","$","G","le","ge","te","oe","se","ee","k","L","videoSupport","method","func","initTextAnimation","self","AzureStorage","Blob","generateAccountSignedQueryString","EMERGENCY","ALERT","CRITICAL","ERROR","WARNING","NOTICE","INFO","DEBUG","toISOString","Error","underscore","retryInterval","retryCount","locationMode","currentLocation","ArgumentError","HttpVerbs","some","HeaderConstants","AclConstants","ele","txt","up","ServicePropertiesConstants","parse","inherits","scheme","host","port","path","agent","headers","withCredentials","localAddress","mode","call","DEFAULT_PROTOCOL","signRequest","protocol","hostname","pathname","primaryHost","secondaryHost","outputData","outputStream","it","contentMD5","proxy","uri","xml2jsSettings","code","response","isSuccessful","body","md5","parseString","withQueryOption","withHeader","withBody","INITED","QUEUED","RUNNING","COMPLETE","CALLBACK","BlobConstants","stream","buffer","size","util","Number","timeStamp","generateEmptyCondition","USER_AGENT_PRODUCT_NAME","USER_AGENT_PRODUCT_VERSION","DEFAULT_PARALLEL_OPERATION_THREAD_COUNT","DEFAULT_ENABLE_REUSE_SOCKET","KB","MB","GB","HTTP","HTTPS","DEFAULT_HTTP_PORT","DEFAULT_HTTPS_PORT","DEFAULT_CLIENT_REQUEST_TIMEOUT_IN_MS","XML_METADATA_MARKER","XML_VALUE_MARKER","ServiceType","Queue","Table","File","RequestLocationMode","PRIMARY_ONLY","SECONDARY_ONLY","PRIMARY_OR_SECONDARY","StorageLocation","PRIMARY","SECONDARY","AccountSasConstants","Permissions","READ","ADD","CREATE","UPDATE","PROCESS","WRITE","DELETE","LIST","Services","BLOB","FILE","QUEUE","TABLE","Resources","SERVICE","CONTAINER","OBJECT","Protocols","HTTPSONLY","HTTPSORHTTP","ACCESS_POLICY","EXPIRY","PERMISSION","SIGNED_IDENTIFIER_ELEMENT","SIGNED_IDENTIFIERS_ELEMENT","START","STORAGE_SERVICE_PROPERTIES_ELEMENT","DEFAULT_ANALYTICS_VERSION","LOGGING_ELEMENT","VERSION_ELEMENT","DELETE_ELEMENT","READ_ELEMENT","WRITE_ELEMENT","RETENTION_POLICY_ELEMENT","ENABLED_ELEMENT","DAYS_ELEMENT","HOUR_METRICS_ELEMENT","MINUTE_METRICS_ELEMENT","CORS_ELEMENT","CORS_RULE_ELEMENT","ALLOWED_ORIGINS_ELEMENT","ALLOWED_METHODS_ELEMENT","MAX_AGE_IN_SECONDS_ELEMENT","EXPOSED_HEADERS_ELEMENT","ALLOWED_HEADERS_ELEMENT","INCLUDE_APIS_ELEMENT","DEFAULT_SERVICE_VERSION_ELEMENT","DEFAULT_DELETE_RETENTION_POLICY_ELEMENT","DEFAULT_STATIC_WEBSITE_ELEMENT","DEFAULT_INDEX_DOCUMENT_ELEMENT","DEFAULT_ERROR_DOCUMENT_404_PATH_ELEMENT","LATEST_ELEMENT","UNCOMMITTED_ELEMENT","BLOCK_LIST_ELEMENT","COMMITTED_ELEMENT","DEFAULT_WRITE_PAGE_SIZE_IN_BYTES","MIN_WRITE_PAGE_SIZE_IN_BYTES","DEFAULT_SINGLE_BLOB_PUT_THRESHOLD_IN_BYTES","DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES","DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES","DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES","DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES","MAX_BLOCK_BLOB_BLOCK_SIZE","MAX_APPEND_BLOB_BLOCK_SIZE","MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES","MAX_RANGE_GET_SIZE_WITH_MD5","MAX_UPDATE_PAGE_SIZE","MAX_QUEUED_WRITE_DISK_BUFFER_SIZE","MAX_SINGLE_GET_PAGE_RANGE_SIZE","PAGE_SIZE","ResourceTypes","ListBlobTypes","Directory","PageWriteOptions","CLEAR","BlobTypes","BLOCK","PAGE","APPEND","LeaseOperation","ACQUIRE","RENEW","CHANGE","RELEASE","BREAK","FileConstants","DEFAULT_WRITE_SIZE_IN_BYTES","MAX_UPDATE_FILE_SIZE","DEFAULT_SINGLE_FILE_GET_THRESHOLD_IN_BYTES","MIN_WRITE_FILE_SIZE_IN_BYTES","RangeWriteOptions","SHARE","QueueConstants","QUEUE_MESSAGE_ELEMENT","MESSAGE_TEXT_ELEMENT","TableConstants","CHANGESET_DELIMITER","BATCH_DELIMITER","CONTINUATION_NEXT_ROW_KEY","CONTINUATION_NEXT_PARTITION_KEY","CONTINUATION_NEXT_TABLE_NAME","NEXT_ROW_KEY","NEXT_PARTITION_KEY","NEXT_TABLE_NAME","ODATA_PREFIX","ODATA_TYPE_SUFFIX","ODATA_METADATA_MARKER","ODATA_VALUE_MARKER","ODATA_TYPE_MARKER","DEFAULT_DATA_SERVICE_VERSION","TABLE_NAME","TABLE_SERVICE_TABLE_NAME","Operations","RETRIEVE","INSERT","REPLACE","MERGE","INSERT_OR_REPLACE","INSERT_OR_MERGE","ACCEPT_RANGES","CONTENT_TRANSFER_ENCODING","TRANSFER_ENCODING","SERVER","LOCATION","LAST_MODIFIED","CREATION_TIME","DATA_SERVICE_VERSION","MAX_DATA_SERVICE_VERSION","PREFIX_FOR_STORAGE","CLIENT_REQUEST_ID","APPROXIMATE_MESSAGES_COUNT","AUTHORIZATION","FORCE_NO_CACHE_IN_BROWSER","BLOB_PUBLIC_ACCESS","HAS_IMMUTABILITY_POLICY","HAS_LEGAL_HOLD","BLOB_TYPE","TYPE","BLOCK_BLOB","CACHE_CONTROL","BLOB_CACHE_CONTROL","FILE_CACHE_CONTROL","COPY_STATUS","COPY_COMPLETION_TIME","COPY_STATUS_DESCRIPTION","COPY_ID","COPY_PROGRESS","COPY_ACTION","INCREMENTAL_COPY","COPY_DESTINATION_SNAPSHOT","CONTENT_ID","CONTENT_ENCODING","BLOB_CONTENT_ENCODING","FILE_CONTENT_ENCODING","CONTENT_LANGUAGE","BLOB_CONTENT_LANGUAGE","FILE_CONTENT_LANGUAGE","CONTENT_LENGTH","BLOB_CONTENT_LENGTH","FILE_CONTENT_LENGTH","CONTENT_DISPOSITION","BLOB_CONTENT_DISPOSITION","FILE_CONTENT_DISPOSITION","CONTENT_MD5","BLOB_CONTENT_MD5","FILE_CONTENT_MD5","CONTENT_RANGE","CONTENT_TYPE","BLOB_CONTENT_TYPE","FILE_CONTENT_TYPE","COPY_SOURCE","DATE","MS_DATE","DELETE_SNAPSHOT","ETAG","IF_MATCH","IF_MODIFIED_SINCE","IF_NONE_MATCH","IF_UNMODIFIED_SINCE","INCLUDE_SNAPSHOTS_VALUE","JSON_CONTENT_TYPE_VALUE","SKU_NAME","ACCOUNT_KIND","LEASE_ID","LEASE_BREAK_PERIOD","PROPOSED_LEASE_ID","LEASE_DURATION","SOURCE_LEASE_ID","LEASE_TIME","LEASE_STATUS","LEASE_STATE","PAGE_BLOB","PAGE_WRITE","FILE_WRITE","PREFER","PREFER_CONTENT","PREFER_NO_CONTENT","PREFIX_FOR_STORAGE_METADATA","PREFIX_FOR_STORAGE_PROPERTIES","RANGE","SOURCE_RANGE","RANGE_GET_CONTENT_MD5","RANGE_HEADER_FORMAT","REQUEST_ID","SEQUENCE_NUMBER","SEQUENCE_NUMBER_EQUAL","SEQUENCE_NUMBER_LESS_THAN","SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL","SEQUENCE_NUMBER_ACTION","SIZE","SNAPSHOT","SNAPSHOTS_ONLY_VALUE","SOURCE_IF_MATCH","SOURCE_IF_MODIFIED_SINCE","SOURCE_IF_NONE_MATCH","SOURCE_IF_UNMODIFIED_SINCE","STORAGE_RANGE","STORAGE_VERSION","TARGET_STORAGE_VERSION","USER_AGENT","POP_RECEIPT","TIME_NEXT_VISIBLE","APPROXIMATE_MESSAGE_COUNT","LEASE_ACTION","ACCEPT","ACCEPT_CHARSET","HOST","CORRELATION_ID","GROUP_ID","SHARE_QUOTA","BLOB_CONDITION_MAX_SIZE","BLOB_CONDITION_APPEND_POSITION","BLOB_APPEND_OFFSET","BLOB_COMMITTED_BLOCK_COUNT","REQUEST_SERVER_ENCRYPTED","SERVER_ENCRYPTED","ACCESS_TIER","ACCESS_TIER_CHANGE_TIME","ACCESS_TIER_INFERRED","ARCHIVE_STATUS","QueryStringConstants","API_VERSION","COMP","RESTYPE","SHARE_SNAPSHOT","PREV_SNAPSHOT","TIMEOUT","SIGNED_START","SIGNED_EXPIRY","SIGNED_RESOURCE","SIGNED_PERMISSIONS","SIGNED_SERVICES","SIGNED_RESOURCE_TYPES","SIGNED_IP","SIGNED_PROTOCOL","SIGNED_IDENTIFIER","SIGNATURE","SIGNED_VERSION","BLOCK_ID","BLOCK_LIST_TYPE","PREFIX","MARKER","MAX_RESULTS","DELIMITER","INCLUDE","PEEK_ONLY","NUM_OF_MESSAGES","VISIBILITY_TIMEOUT","MESSAGE_TTL","SELECT","FILTER","TOP","SKIP","LOCK_ID","TABLENAME","STARTPK","STARTRK","ENDPK","ENDRK","StorageServiceClientConstants","EnvironmentVariables","AZURE_STORAGE_ACCOUNT","AZURE_STORAGE_ACCESS_KEY","AZURE_STORAGE_DNS_SUFFIX","AZURE_STORAGE_CONNECTION_STRING","HTTP_PROXY","HTTPS_PROXY","EMULATED","DEVSTORE_STORAGE_ACCOUNT","DEVSTORE_STORAGE_ACCESS_KEY","DEV_STORE_URI","DEVSTORE_DEFAULT_PROTOCOL","DEVSTORE_BLOB_HOST","DEVSTORE_QUEUE_HOST","DEVSTORE_TABLE_HOST","CLOUD_BLOB_HOST","CLOUD_QUEUE_HOST","CLOUD_TABLE_HOST","CLOUD_FILE_HOST","HttpConstants","PUT","GET","POST","HEAD","HttpResponseCodes","Ok","Created","Accepted","NoContent","PartialContent","BadRequest","Unauthorized","Forbidden","NotFound","Conflict","LengthRequired","PreconditionFailed","CompatibleVersionConstants","AUGUST_2013","FEBRUARY_2012","BlobErrorCodeStrings","INVALID_BLOCK_ID","BLOB_NOT_FOUND","BLOB_ALREADY_EXISTS","CONTAINER_ALREADY_EXISTS","CONTAINER_NOT_FOUND","INVALID_BLOB_OR_BLOCK","INVALID_BLOCK_LIST","FileErrorCodeStrings","SHARE_ALREADY_EXISTS","SHARE_NOT_FOUND","FILE_NOT_FOUND","QueueErrorCodeStrings","QUEUE_NOT_FOUND","QUEUE_DISABLED","QUEUE_ALREADY_EXISTS","QUEUE_NOT_EMPTY","QUEUE_BEING_DELETED","POP_RECEIPT_MISMATCH","INVALID_PARAMETER","MESSAGE_NOT_FOUND","MESSAGE_TOO_LARGE","INVALID_MARKER","StorageErrorCodeStrings","CONDITION_NOT_MET","MISSING_REQUIRED_HEADER","MISSING_REQUIRED_XML_NODE","UNSUPPORTED_HEADER","UNSUPPORTED_XML_NODE","INVALID_HEADER_VALUE","INVALID_XML_NODE_VALUE","MISSING_REQUIRED_QUERY_PARAMETER","UNSUPPORTED_QUERY_PARAMETER","INVALID_QUERY_PARAMETER_VALUE","OUT_OF_RANGE_QUERY_PARAMETER_VALUE","REQUEST_URL_FAILED_TO_PARSE","INVALID_URI","INVALID_HTTP_VERB","EMPTY_METADATA_KEY","INVALID_XML_DOCUMENT","MD5_MISMATCH","INVALID_MD5","OUT_OF_RANGE_INPUT","INVALID_AUTHENTICATION_INFO","INVALID_INPUT","INVALID_METADATA","INVALID_RESOURCE_NAME","METADATA_TOO_LARGE","CONDITION_HEADER_NOT_SUPPORTED","MULTIPLE_CONDITION_HEADER_NOT_SUPPORTED","AUTHENTICATION_FAILED","INSUFFICIENT_ACCOUNT_PERMISSIONS","RESOURCE_NOT_FOUND","ACCOUNT_IS_DISABLED","UNSUPPORTED_HTTP_VERB","ACCOUNT_ALREADY_EXISTS","ACCOUNT_BEING_CREATED","RESOURCE_ALREADY_EXISTS","RESOURCE_TYPE_MISMATCH","MISSING_CONTENT_LENGTH_HEADER","REQUEST_BODY_TOO_LARGE","INVALID_RANGE","INTERNAL_ERROR","OPERATION_TIMED_OUT","SERVER_BUSY","UPDATE_CONDITION_NOT_SATISFIED","CONTAINER_DISABLED","CONTAINER_BEING_DELETED","TableErrorCodeStrings","XMETHOD_NOT_USING_POST","XMETHOD_INCORRECT_VALUE","XMETHOD_INCORRECT_COUNT","TABLE_HAS_NO_PROPERTIES","DUPLICATE_PROPERTIES_SPECIFIED","TABLE_HAS_NO_SUCH_PROPERTY","DUPLICATE_KEY_PROPERTY_SPECIFIED","TABLE_ALREADY_EXISTS","TABLE_NOT_FOUND","ENTITY_NOT_FOUND","ENTITY_ALREADY_EXISTS","PARTITION_KEY_NOT_SPECIFIED","OPERATOR_INVALID","PROPERTIES_NEED_VALUE","PARTITION_KEY_PROPERTY_CANNOT_BE_UPDATED","TOO_MANY_PROPERTIES","ENTITY_TOO_LARGE","PROPERTY_VALUE_TOO_LARGE","INVALID_VALUE_TYPE","TABLE_BEING_DELETED","TABLE_SERVER_OUT_OF_MEMORY","PRIMARY_KEY_PROPERTY_IS_INVALID_TYPE","PROPERTY_NAME_TOO_LONG","PROPERTY_NAME_INVALID","BATCH_OPERATION_NOT_SUPPORTED","JSON_FORMAT_NOT_SUPPORTED","METHOD_NOT_ALLOWED","NOT_IMPLEMENTED","ConnectionStringKeys","USE_DEVELOPMENT_STORAGE_NAME","DEVELOPMENT_STORAGE_PROXY_URI_NAME","DEFAULT_ENDPOINTS_PROTOCOL_NAME","ACCOUNT_NAME_NAME","ACCOUNT_KEY_NAME","BLOB_ENDPOINT_NAME","FILE_ENDPOINT_NAME","QUEUE_ENDPOINT_NAME","TABLE_ENDPOINT_NAME","SHARED_ACCESS_SIGNATURE_NAME","ENDPOINT_SUFFIX_NAME","BLOB_BASE_DNS_NAME","FILE_BASE_DNS_NAME","QUEUE_BASE_DNS_NAME","TABLE_BASE_DNS_NAME","_process","ANONYMOUS_ACCESS_BLOBSERVICE_ONLY","ARGUMENT_NULL_OR_EMPTY","ARGUMENT_NULL_OR_UNDEFINED","ARGUMENT_OUT_OF_RANGE_ERROR","BATCH_ONE_PARTITION_KEY","BATCH_ONE_RETRIEVE","BATCH_TOO_LARGE","BLOB_INVALID_SEQUENCE_NUMBER","BLOB_TYPE_MISMATCH","CANNOT_CREATE_SAS_WITHOUT_ACCOUNT_KEY","CONTENT_LENGTH_MISMATCH","CONTENT_TYPE_MISSING","EMPTY_BATCH","EXCEEDED_SIZE_LIMITATION","HASH_MISMATCH","INCORRECT_ENTITY_KEYS","INVALID_BLOB_LENGTH","INVALID_CONNECTION_STRING","INVALID_CONNECTION_STRING_BAD_KEY","INVALID_CONNECTION_STRING_DUPLICATE_KEY","INVALID_CONNECTION_STRING_EMPTY_KEY","INVALID_DELETE_SNAPSHOT_OPTION","INVALID_EDM_TYPE","INVALID_FILE_LENGTH","INVALID_FILE_RANGE_FOR_UPDATE","INVALID_HEADERS","INVALID_MESSAGE_ID","INVALID_PAGE_BLOB_LENGTH","INVALID_PAGE_END_OFFSET","INVALID_PAGE_RANGE_FOR_UPDATE","INVALID_PAGE_START_OFFSET","INVALID_POP_RECEIPT","INVALID_PROPERTY_RESOLVER","INVALID_RANGE_FOR_MD5","INVALID_SAS_VERSION","INVALID_SAS_TOKEN","INVALID_SIGNED_IDENTIFIERS","INVALID_STREAM_LENGTH","INVALID_STRING_ERROR","INVALID_TABLE_OPERATION","INVALID_TEXT_LENGTH","MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION","MD5_NOT_POSSIBLE","MD5_NOT_PRESENT_ERROR","METADATA_KEY_INVALID","METADATA_VALUE_INVALID","NO_CREDENTIALS_PROVIDED","PRIMARY_ONLY_COMMAND","QUERY_OPERATOR_REQUIRES_WHERE","SECONDARY_ONLY_COMMAND","STORAGE_HOST_LOCATION_REQUIRED","STORAGE_HOST_MISSING_LOCATION","TYPE_NOT_SUPPORTED","MAX_BLOB_SIZE_CONDITION_NOT_MEET","LocationMode","PRIMARY_THEN_SECONDARY","SECONDARY_THEN_PRIMARY","major","minor","patch","copy","fill","bytesCopied","leaseId","leaseStatus","leaseDuration","leaseState","copyId","copyStatus","copySource","copyProgress","copyCompletionTime","copyStatusDescription","copyDestinationSnapshot","publicAccess","incrementalCopy","isValidEnumValue","require_tld","string","stringAllowEmpty","object","exists","function","nonEmptyArray","callback","tableNameIsValid","browserFileIsValid","containerNameIsValid","shareNameIsValid","blobNameIsValid","blobTierNameIsValid","pageRangesAreValid","queueNameIsValid","blobTypeIsValid","shareACLIsValid","shareQuotaIsValid","entries","continuationToken","nextMarker","targetLocation","contentSettings","webResource","blob","timeoutIntervalInMs","clientRequestTimeoutInMs","snapshotId","accessConditions","withRawResponse","isCleared","performRequest","calcContentMd5","logger","callInOrder","callbackInOrder","enableReuseSocket","operationMemoryUsage","operationExpiryTime","maxBlobSize","appendPosition","initialAppendPosition","absorbConditionalErrorsOnRetry","UncommittedBlocks","rangeStart","rangeEnd","responseEncoding","blockListFilter","withQueryOptions","SharedAccessPermissions","BlobListingDetails","SNAPSHOTS","METADATA","UNCOMMITTED_BLOBS","COPY","DELETED","SnapshotDeleteOptions","SNAPSHOTS_ONLY","BLOB_AND_SNAPSHOTS","BlockListFilter","ALL","COMMITTED","UNCOMMITTED","BlobContainerPublicAccessType","OFF","SequenceNumberAction","MAX","INCREMENT","BlobTier","PremiumPageBlobTier","P4","P6","P10","P20","P30","P40","P50","P60","StandardBlobTier","HOT","COOL","ARCHIVE","Name","Size","lastModified","creationTime","sequenceNumber","blobType","contentLength","blobContentLength","contentRange","committedBlockCount","serverEncrypted","requestId","range","blobRange","getContentMd5","acceptRanges","appendOffset","accessTier","accessTierChangeTime","accessTierInferred","archiveStatus","isIncrementalCopy","ListingDetails","SharePublicAccessType","ShareSnapshotDeleteOptions","SHARE_AND_SNAPSHOTS","QUERY","PayloadFormat","FULL_METADATA","MINIMAL_METADATA","NO_METADATA","TableOperators","AND","NOT","OR","QueryComparisons","EQUAL","NOT_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","EdmType","STRING","BINARY","INT64","INT32","DOUBLE","DATETIME","GUID","BOOLEAN","entityGenerator","EntityProperty","Int32","Int64","Binary","Boolean","String","Guid","Double","DateTime","lookup","default_type","types","ez","aw","atom","atomcat","atomsvc","ccxml","cdmia","cdmic","cdmid","cdmio","cdmiq","cu","davmount","dbk","dssc","xdssc","ecma","emma","epub","exi","pfr","gml","gpx","gxf","stk","ink","inkml","ipfix","jar","ser","class","js","json","jsonml","lostxml","hqx","cpt","mads","mrc","mrcx","ma","nb","mb","mathml","mbox","mscml","metalink","meta4","mets","mods","m21","mp21","mp4s","doc","dot","mxf","bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","oda","opf","ogx","omdoc","onetoc","onetoc2","onetmp","onepkg","oxps","xer","pdf","pgp","asc","sig","prf","p10","p7m","p7c","p7s","p8","ac","cer","crl","pkipath","pki","pls","eps","ps","cww","pskcxml","rdf","rif","rnc","rl","rld","rs","gbr","mft","roa","rsd","rss","rtf","sbml","scq","scs","spq","spp","sdp","setpay","setreg","shf","smi","smil","rq","srx","gram","grxml","sru","ssdl","ssml","tei","teicorpus","tfi","tsd","plb","psb","pvb","tcap","pwn","aso","imp","acu","atc","acutc","air","fcdt","fxp","fxpl","xdp","xfdf","ahead","azf","azs","azw","acc","ami","apk","cii","fti","atx","mpkg","m3u8","swi","iota","aep","mpm","bmi","rep","cdxml","mmd","cdy","cla","rp9","c4g","c4d","c4f","c4p","c4u","c11amc","c11amz","csp","cdbcmsg","cmc","clkx","clkk","clkp","clkt","clkw","wbs","pml","ppd","car","pcurl","dart","rdz","uvf","uvvf","uvd","uvvd","uvt","uvvt","uvx","uvvx","uvz","uvvz","fe_launch","dna","mlp","dpg","dfac","kpxx","ait","svc","geo","mag","nml","esf","msf","qam","slt","ssf","es3","et3","ez2","ez3","fdf","mseed","seed","dataless","gph","ftc","fm","frame","maker","book","fnc","ltf","fsc","oas","oa2","oa3","fg5","bh2","ddd","xdw","xbd","fzs","txd","ggb","ggt","gex","gre","gxt","g2w","g3w","gmx","kml","kmz","gqf","gqs","gac","ghf","gim","grv","gtm","vcg","hal","zmm","hbci","les","hpgl","hpid","hps","jlt","pcl","pclxl","mpy","afp","listafp","list3820","irm","sc","icc","icm","igl","ivp","ivu","igm","xpw","xpx","i2g","qbo","qfx","rcprofile","irp","xpr","fcs","jam","rms","jisp","joda","ktz","ktr","karbon","chrt","kfo","flw","kon","kpr","kpt","ksp","kwd","kwt","htke","kia","kne","knp","skp","skd","skt","skm","sse","lasxml","lbd","lbe","apr","pre","nsf","org","scm","lwp","portpkg","mcd","mc1","cdkey","mwf","mfm","flo","igx","mif","daf","dis","mbk","mqy","msl","plc","txf","mpn","mpc","xul","cil","cab","xls","xlm","xla","xlc","xlt","xlw","xlam","xlsb","xlsm","xltm","eot","chm","ims","lrm","thmx","cat","stl","ppt","pps","pot","ppam","pptm","sldm","ppsm","potm","mpp","mpt","docm","dotm","wps","wks","wcm","wdb","wpl","xps","mseq","mus","msty","taglet","nlu","ntf","nitf","nnd","nns","nnw","ngdat","rpst","rpss","edm","edx","ext","odc","otc","odb","odf","odft","odg","otg","odi","oti","odp","otp","ods","ots","odt","odm","ott","oth","xo","dd2","oxt","pptx","sldx","ppsx","potx","xlsx","xltx","docx","dotx","mgp","dp","esa","pdb","pqa","oprc","paw","str","ei6","efif","wg","plf","pbd","box","mgz","qps","ptid","qxd","qxt","qwd","qwt","qxl","qxb","bed","mxl","musicxml","cryptonote","cod","rm","rmvb","link66","see","sema","semd","semf","ifm","itp","iif","ipk","twd","twds","mmf","teacher","sdkm","sdkd","dxp","sfs","sdc","sda","sdd","smf","sdw","vor","sgl","smzip","sxc","stc","sxd","std","sxi","sti","sxm","sxw","sxg","stw","sus","susp","svd","sis","sisx","xsm","bdm","xdm","tao","pcap","cap","dmp","tmo","tpt","mxs","tra","ufd","ufdl","utz","umj","unityweb","uoml","vcx","vsd","vst","vss","vsw","vis","vsf","wbxml","wmlc","wmlsc","wtb","nbp","wpd","wqd","stf","xar","xfdl","hvd","hvs","hvp","osf","osfpvg","saf","spf","cmp","zir","zirz","zaz","vxml","wgt","hlp","wsdl","wspolicy","abw","ace","dmg","aab","x32","u32","vox","aam","aas","bcpio","torrent","blb","blorb","bz","bz2","boz","cbr","cba","cbt","cbz","cb7","vcd","cfs","chat","pgn","nsc","cpio","csh","deb","udeb","dgc","dcr","dxr","cst","cct","cxt","w3d","fgd","swa","wad","ncx","dtb","res","dvi","evy","eva","bdf","gsf","psf","otf","pcf","snf","ttf","ttc","pfa","pfb","pfm","afm","woff","arc","spl","gca","ulx","gnumeric","gramps","gtar","hdf","install","iso","jnlp","latex","lzh","lha","mie","prc","mobi","application","lnk","wmd","wmz","xbap","mdb","obd","crd","clp","exe","dll","com","bat","msi","mvb","m13","m14","wmf","emf","emz","mny","pub","scd","trm","wri","nc","cdf","nzb","p12","pfx","p7b","spc","p7r","rar","ris","sh","shar","swf","xap","sql","sit","sitx","srt","sv4cpio","sv4crc","t3","gam","tar","tcl","tex","tfm","texinfo","texi","obj","ustar","src","der","crt","fig","xlf","xpi","xz","z1","z2","z3","z4","z5","z6","z7","z8","xaml","xdf","xenc","xhtml","xht","xsl","dtd","xop","xpl","xslt","xspf","mxml","xhvml","xvml","xvm","yang","yin","zip","adp","au","snd","mid","midi","kar","rmi","mp4a","mpga","mp2","mp2a","mp3","m2a","m3a","oga","ogg","spx","s3m","sil","uva","uvva","eol","dra","dts","dtshd","lvp","pya","ecelp4800","ecelp7470","ecelp9600","rip","weba","aac","aif","aiff","aifc","caf","flac","mka","m3u","wax","wma","ram","ra","rmp","wav","xm","cdx","cif","cmdf","cml","csml","xyz","bmp","cgm","g3","gif","ief","jpeg","jpg","jpe","ktx","png","btif","sgi","svg","svgz","tiff","tif","psd","uvi","uvvi","uvg","uvvg","sub","djvu","djv","dwg","dxf","fbs","fpx","fst","mmr","rlc","mdi","wdp","npx","wbmp","xif","webp","ras","cmx","fh","fhc","fh4","fh5","fh7","ico","sid","pcx","pic","pct","pnm","pbm","pgm","ppm","rgb","tga","xbm","xpm","xwd","eml","mime","igs","iges","msh","mesh","silo","dae","dwf","gdl","gtw","mts","vtu","wrl","vrml","x3db","x3dbz","x3dv","x3dvz","x3d","x3dz","appcache","ics","ifb","csv","htm","n3","conf","def","list","log","in","dsc","rtx","sgml","sgm","tsv","tr","roff","man","ms","ttl","uris","urls","vcard","curl","dcurl","scurl","mcurl","fly","flx","gv","spot","jad","wml","wmls","asm","cc","cxx","cpp","hh","dic","f77","f90","java","opml","pas","nfo","etx","sfv","uu","vcs","vcf","h261","h263","h264","jpgv","jpm","jpgm","mj2","mjp2","mp4","mp4v","mpg4","mpeg","mpg","mpe","m1v","m2v","ogv","qt","mov","uvh","uvvh","uvm","uvvm","uvp","uvvp","uvs","uvvs","uvv","uvvv","dvb","fvt","mxu","m4u","pyv","uvu","uvvu","viv","webm","f4v","fli","flv","m4v","mkv","mk3d","mks","mng","asf","asx","vob","wm","wmv","wmx","wvx","avi","movie","smv","ice","vtt","crx","htc","manifest","m4p","m4a","ts","webapp","lua","luac","markdown","mkd","extensions","extension","charsets","overflow","split","join","ucs2","decode","encode","toASCII","toUnicode","Uint8Array","foo","Symbol","configurable","isFinite","Array","isBuffer","http","isNaN","jsonparse","location","navigator","encodeURIComponent","objectMode","deprecate","corked","Stream","write","resume","flush","BEGIN","TEXT","TEXT_ENTITY","OPEN_WAKA","SGML_DECL","SGML_DECL_QUOTED","DOCTYPE","DOCTYPE_QUOTED","DOCTYPE_DTD","DOCTYPE_DTD_QUOTED","COMMENT_STARTING","COMMENT","COMMENT_ENDING","COMMENT_ENDED","CDATA","CDATA_ENDING","CDATA_ENDING_2","PROC_INST","PROC_INST_BODY","PROC_INST_ENDING","OPEN_TAG","OPEN_TAG_SLASH","ATTRIB","ATTRIB_NAME","ATTRIB_NAME_SAW_WHITE","ATTRIB_VALUE","ATTRIB_VALUE_QUOTED","ATTRIB_VALUE_CLOSED","ATTRIB_VALUE_UNQUOTED","ATTRIB_VALUE_ENTITY_Q","ATTRIB_VALUE_ENTITY_U","CLOSE_TAG","CLOSE_TAG_SAW_WHITE","SCRIPT","SCRIPT_ENDING","amp","quot","apos","AElig","Aacute","Acirc","Agrave","Aring","Atilde","Auml","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","Iacute","Icirc","Igrave","Iuml","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","aelig","agrave","aring","atilde","auml","ccedil","eacute","ecirc","egrave","eth","euml","iacute","icirc","igrave","iuml","ntilde","oacute","ocirc","ograve","oslash","otilde","ouml","szlig","thorn","uacute","ucirc","ugrave","uuml","yacute","yuml","reg","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","ordf","laquo","shy","macr","deg","plusmn","sup1","sup2","sup3","acute","micro","para","middot","cedil","ordm","raquo","frac14","frac12","frac34","iquest","times","divide","OElig","oelig","Scaron","scaron","Yuml","fnof","circ","tilde","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","delta","epsilon","zeta","eta","theta","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","ensp","emsp","thinsp","zwnj","zwj","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","bull","hellip","permil","prime","Prime","lsaquo","rsaquo","oline","frasl","euro","image","weierp","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","part","exist","nabla","isin","notin","prod","sum","minus","lowast","radic","infin","ang","and","or","cup","int","there4","sim","cong","asymp","equiv","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","rang","loz","spades","clubs","hearts","diams","prefix","JSON","ns","local","charAt","events","_headers","credentials","signal","_body","UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE","_resumeFetch","TypeError","getHighWaterMark","emitExperimentalWarning","hasUnpiped","afterTransform","needTransform","transforming","writecb","writechunk","writeencoding","chunk","encoding","isBuf","Buffer","inspect","depth","customInspect","undestroy","readable","dup","charCodeAt","criteria","propertyIsEnumerable","evaluate","interpolate","escape","javascript","https","ftp","gopher","file","toLowerCase","isString","isObject","isNull","isNullOrUndefined","seen","stylize","indexOf","bold","italic","underline","inverse","white","grey","black","blue","cyan","green","magenta","red","yellow","number","boolean","undefined","null","date","regexp","msCrypto","node","random","Et","It","li","Ki","Qi","Jt","Tt","nn","Tn","Hi","hi","ln","An","Cn","default","toDate","toFloat","toInt","toBoolean","equals","matches","isEmail","isURL","isMACAddress","isIP","isFQDN","isBoolean","isAlpha","isAlphanumeric","isNumeric","isPort","isLowercase","isUppercase","isAscii","isFullWidth","isHalfWidth","isVariableWidth","isMultibyte","isSurrogatePair","isInt","isFloat","isDecimal","isHexadecimal","isDivisibleBy","isHexColor","isISRC","isMD5","isHash","isJSON","isEmpty","isLength","isByteLength","isUUID","isMongoId","isAfter","isBefore","isIn","isCreditCard","isISIN","isISBN","isISSN","isMobilePhone","isPostalCode","isCurrency","isISO8601","isISO31661Alpha2","isBase64","isDataURI","isMimeType","isLatLong","ltrim","rtrim","unescape","stripLow","whitelist","blacklist","isWhitelisted","normalizeEmail","ar","symbol","require_symbol","allow_space_after_symbol","symbol_after_digits","allow_negatives","parens_for_negatives","negative_sign_before_digits","negative_sign_after_digits","allow_negative_sign_placeholder","thousands_separator","decimal_separator","allow_decimal","require_decimal","digits_after_decimal","allow_space_after_digits","locale","force_decimal","decimal_digits","require_display_name","max","allow_display_name","allow_utf8_local_part","allow_trailing_dot","allow_underscores","md4","sha1","sha256","sha384","sha512","ripemd128","ripemd160","tiger128","tiger160","tiger192","crc32","crc32b","min","AT","AU","BE","BG","CA","CH","CZ","DE","DK","DZ","ES","FI","FR","GR","IL","IN","IS","IT","JP","KE","LI","MX","NL","NO","PL","PT","RO","RU","SA","SE","TW","US","ZA","ZM","protocols","require_protocol","require_host","require_valid_protocol","allow_protocol_relative_urls","all","all_lowercase","gmail_lowercase","gmail_remove_dots","gmail_remove_subaddress","gmail_convert_googlemaildotcom","outlookdotcom_lowercase","outlookdotcom_remove_subaddress","yahoo_lowercase","yahoo_remove_subaddress","icloud_lowercase","icloud_remove_subaddress","parseFloat","explicitCharkey","normalize","normalizeTags","attrkey","charkey","explicitArray","ignoreAttrs","mergeAttrs","explicitRoot","validator","xmlns","explicitChildren","childkey","charsAsChildren","async","strict","concat","isRoot","isLastRootNode","extend","lowerize","rgx","browser","oldsafari","device","amazon","model","sprint","vendor","HTC","os","windows","ME","architecture","ua","NAME","VERSION","ARCHITECTURE","MODEL"],"sourceRoot":"webpack:///","sources":["node_modules\\jquery\\dist\\jquery.min.js","node_modules\\popper.js\\dist\\umd\\popper.min.js","node_modules\\bootstrap\\dist\\js\\bootstrap.min.js","src\\assets\\vendor\\hs-megamenu\\src\\hs.megamenu.js","src\\assets\\vendor\\fancybox\\jquery.fancybox.min.js","src\\assets\\vendor\\slick-carousel\\slick\\slick.js","src\\assets\\js\\hs.core.js","src\\assets\\js\\components\\hs.fancybox.js","src\\assets\\js\\components\\hs.slick-carousel.js","src\\assets\\js\\azure-storage.blob.js","src\\assets\\js\\ua.parser.min.js"],"sourcesContent":["/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */\n!function(e,t){\"use strict\";\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error(\"jQuery requires a window with a document\");return t(e)}:t(e)}(\"undefined\"!=typeof window?window:this,function(e,t){\"use strict\";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return\"function\"==typeof t&&\"number\"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement(\"script\");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?l[c.call(e)]||\"object\":typeof e}var b=\"3.3.1\",w=function(e,t){return new w.fn.init(e,t)},T=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;w.fn=w.prototype={jquery:\"3.3.1\",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for(\"boolean\"==typeof a&&(l=a,a=arguments[s]||{},s++),\"object\"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&w.isPlainObject(n)?n:{},a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:\"jQuery\"+(\"3.3.1\"+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||\"[object Object]\"!==c.call(e))&&(!(t=i(e))||\"function\"==typeof(n=f.call(t,\"constructor\")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){m(e)},each:function(e,t){var n,r=0;if(C(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?\"\":(e+\"\").replace(T,\"\")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,\"string\"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)(r=!t(e[o],o))!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),\"function\"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),function(e,t){l[\"[object \"+t+\"]\"]=t.toLowerCase()});function C(e){var t=!!e&&\"length\"in e&&e.length,n=x(e);return!g(e)&&!y(e)&&(\"array\"===n||0===t||\"number\"==typeof t&&t>0&&t-1 in e)}var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b=\"sizzle\"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",M=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",R=\"(?:\\\\\\\\.|[\\\\w-]|[^\\0-\\\\xa0])+\",I=\"\\\\[\"+M+\"*(\"+R+\")(?:\"+M+\"*([*^$|!~]?=)\"+M+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+R+\"))|)\"+M+\"*\\\\]\",W=\":(\"+R+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+I+\")*)|.*)\\\\)|)\",$=new RegExp(M+\"+\",\"g\"),B=new RegExp(\"^\"+M+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+M+\"+$\",\"g\"),F=new RegExp(\"^\"+M+\"*,\"+M+\"*\"),_=new RegExp(\"^\"+M+\"*([>+~]|\"+M+\")\"+M+\"*\"),z=new RegExp(\"=\"+M+\"*([^\\\\]'\\\"]*?)\"+M+\"*\\\\]\",\"g\"),X=new RegExp(W),U=new RegExp(\"^\"+R+\"$\"),V={ID:new RegExp(\"^#(\"+R+\")\"),CLASS:new RegExp(\"^\\\\.(\"+R+\")\"),TAG:new RegExp(\"^(\"+R+\"|[*])\"),ATTR:new RegExp(\"^\"+I),PSEUDO:new RegExp(\"^\"+W),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+M+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+M+\"*(?:([+-]|)\"+M+\"*(\\\\d+)|))\"+M+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+P+\")$\",\"i\"),needsContext:new RegExp(\"^\"+M+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+M+\"*((?:-\\\\d)?\\\\d*)\"+M+\"*\\\\)|)(?=[^-]|$)\",\"i\")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\\d$/i,Q=/^[^{]+\\{\\s*\\[native \\w/,J=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,K=/[+~]/,Z=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+M+\"?|(\"+M+\")|.)\",\"ig\"),ee=function(e,t,n){var r=\"0x\"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,ne=function(e,t){return t?\"\\0\"===e?\"\\ufffd\":e.slice(0,-1)+\"\\\\\"+e.charCodeAt(e.length-1).toString(16)+\" \":\"\\\\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&(\"form\"in e||\"label\"in e)},{dir:\"parentNode\",next:\"legend\"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,v,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],\"string\"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+\" \"]&&(!y||!y.test(e))){if(1!==T)m=t,v=e;else if(\"object\"!==t.nodeName.toLowerCase()){(c=t.getAttribute(\"id\"))?c=c.replace(te,ne):t.setAttribute(\"id\",c=b),s=(h=a(e)).length;while(s--)h[s]=\"#\"+c+\" \"+ve(h[s]);v=h.join(\",\"),m=K.test(e)&&ge(t.parentNode)||t}if(v)try{return L.apply(r,m.querySelectorAll(v)),r}catch(e){}finally{c===b&&t.removeAttribute(\"id\")}}}return u(e.replace(B,\"$1\"),t,r,i)}function ae(){var e=[];function t(n,i){return e.push(n+\" \")>r.cacheLength&&delete t[e.shift()],t[n+\" \"]=i}return t}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement(\"fieldset\");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){var n=e.split(\"|\"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return\"input\"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||\"button\"===n)&&t.type===e}}function de(e){return function(t){return\"form\"in t?t.parentNode&&!1===t.disabled?\"label\"in t?\"label\"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:\"label\"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&\"undefined\"!=typeof e.getElementsByTagName&&e}n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&\"HTML\"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(d=a,h=d.documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener(\"unload\",re,!1):i.attachEvent&&i.attachEvent(\"onunload\",re)),n.attributes=ue(function(e){return e.className=\"i\",!e.getAttribute(\"className\")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment(\"\")),!e.getElementsByTagName(\"*\").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute(\"id\")===t}},r.find.ID=function(e,t){if(\"undefined\"!=typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=\"undefined\"!=typeof e.getAttributeNode&&e.getAttributeNode(\"id\");return n&&n.value===t}},r.find.ID=function(e,t){if(\"undefined\"!=typeof t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode(\"id\"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode(\"id\"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return\"undefined\"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(\"*\"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(\"undefined\"!=typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],y=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML=\"<a id='\"+b+\"'></a><select id='\"+b+\"-\\r\\\\' msallowcapture=''><option selected=''></option></select>\",e.querySelectorAll(\"[msallowcapture^='']\").length&&y.push(\"[*^$]=\"+M+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\"[selected]\").length||y.push(\"\\\\[\"+M+\"*(?:value|\"+P+\")\"),e.querySelectorAll(\"[id~=\"+b+\"-]\").length||y.push(\"~=\"),e.querySelectorAll(\":checked\").length||y.push(\":checked\"),e.querySelectorAll(\"a#\"+b+\"+*\").length||y.push(\".#.+[+~]\")}),ue(function(e){e.innerHTML=\"<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>\";var t=d.createElement(\"input\");t.setAttribute(\"type\",\"hidden\"),e.appendChild(t).setAttribute(\"name\",\"D\"),e.querySelectorAll(\"[name=d]\").length&&y.push(\"name\"+M+\"*[*^$|!~]?=\"),2!==e.querySelectorAll(\":enabled\").length&&y.push(\":enabled\",\":disabled\"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(\":disabled\").length&&y.push(\":enabled\",\":disabled\"),e.querySelectorAll(\"*,:x\"),y.push(\",.*:\")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,\"*\"),m.call(e,\"[s!='']:x\"),v.push(\"!=\",W)}),y=y.length&&new RegExp(y.join(\"|\")),v=v.length&&new RegExp(v.join(\"|\")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,\"='$1']\"),n.matchesSelector&&g&&!S[t+\" \"]&&(!v||!v.test(t))&&(!y||!y.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+\"\").replace(te,ne)},oe.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n=\"\",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if(\"string\"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||\"\").replace(Z,ee),\"~=\"===e[2]&&(e[3]=\" \"+e[3]+\" \"),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),\"nth\"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(\"even\"===e[3]||\"odd\"===e[3])),e[5]=+(e[7]+e[8]||\"odd\"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||\"\":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(\")\",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return\"*\"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+\" \"];return t||(t=new RegExp(\"(^|\"+M+\")\"+e+\"(\"+M+\"|$)\"))&&E(e,function(e){return t.test(\"string\"==typeof e.className&&e.className||\"undefined\"!=typeof e.getAttribute&&e.getAttribute(\"class\")||\"\")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?\"!=\"===t:!t||(i+=\"\",\"=\"===t?i===n:\"!=\"===t?i!==n:\"^=\"===t?n&&0===i.indexOf(n):\"*=\"===t?n&&i.indexOf(n)>-1:\"$=\"===t?n&&i.slice(-n.length)===n:\"~=\"===t?(\" \"+i.replace($,\" \")+\" \").indexOf(n)>-1:\"|=\"===t&&(i===n||i.slice(0,n.length+1)===n+\"-\"))}},CHILD:function(e,t,n,r,i){var o=\"nth\"!==e.slice(0,3),a=\"last\"!==e.slice(-4),s=\"of-type\"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?\"nextSibling\":\"previousSibling\",y=t.parentNode,v=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(y){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g=\"only\"===e&&!h&&\"nextSibling\"}return!0}if(h=[a?y.firstChild:y.lastChild],a&&m){x=(d=(l=(c=(f=(p=y)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&y.childNodes[d];while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===v:1===p.nodeType)&&++x&&(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p===t))break;return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error(\"unsupported pseudo: \"+e);return i[b]?i(t):i.length>1?(n=[e,e,\"\",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){var r,o=i(e,t),a=o.length;while(a--)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,\"$1\"));return r[b]?se(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||\"\")||oe.error(\"unsupported lang: \"+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute(\"xml:lang\")||t.getAttribute(\"lang\"))return(n=n.toLowerCase())===e||0===n.indexOf(e+\"-\")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&!!e.checked||\"option\"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&\"button\"===e.type||\"button\"===t},text:function(e){var t;return\"input\"===e.nodeName.toLowerCase()&&\"text\"===e.type&&(null==(t=e.getAttribute(\"type\"))||\"text\"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=oe.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+\" \"];if(c)return t?0:c.slice(0);s=e,u=[],l=r.preFilter;while(s){n&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=_.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B,\" \")}),s=s.slice(n.length));for(a in r.filter)!(i=V[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):k(e,u).slice(0)};function ve(e){for(var t=0,n=e.length,r=\"\";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&\"parentNode\"===o,s=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){while(t=t[r])if((1===t.nodeType||a)&&e(t,n,u))return!0}else while(t=t[r])if(1===t.nodeType||a)if(f=t[b]||(t[b]={}),c=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}function we(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Te(e,t,n,r,i,o){return r&&!r[b]&&(r=Te(r)),i&&!i[b]&&(i=Te(i,o)),se(function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||be(t||\"*\",s.nodeType?[s]:s,[]),y=!e||!o&&t?g:we(g,p,e,s,u),v=n?i||(o?e:h||r)?[]:a:y;if(n&&n(y,v,s,u),r){l=we(v,d),r(l,[],s,u),c=l.length;while(c--)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f))}if(o){if(i||e){if(i){l=[],c=v.length;while(c--)(f=v[c])&&l.push(y[c]=f);i(null,v=[],l,u)}c=v.length;while(c--)(f=v[c])&&(l=i?O(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else v=we(v===a?v.splice(h,v.length):v),i?i(null,a,v,u):L.apply(a,v)})}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[\" \"],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[me(xe(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o;i++)if(r.relative[e[i].type])break;return Te(u>1&&xe(p),u>1&&ve(e.slice(0,u-1).concat({value:\" \"===e[u-2].type?\"*\":\"\"})).replace(B,\"$1\"),n,u<i&&Ce(e.slice(u,i)),i<o&&Ce(e=e.slice(i)),i<o&&ve(e))}p.push(n)}return xe(p)}function Ee(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,y,v=0,m=\"0\",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG(\"*\",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){h=0,a||f.ownerDocument===d||(p(f),s=!g);while(y=e[h++])if(y(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!y&&f)&&v--,o&&x.push(f))}if(v+=m,n&&m!==v){h=0;while(y=t[h++])y(x,b,a,s);if(o){if(v>0)while(m--)x[m]||b[m]||(b[m]=j.call(u));b=we(b)}L.apply(u,b),c&&!o&&b.length>0&&v+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}return s=oe.compile=function(e,t){var n,r=[],i=[],o=S[e+\" \"];if(!o){t||(t=a(e)),n=t.length;while(n--)(o=Ce(t[n]))[b]?r.push(o):i.push(o);(o=S(e,Ee(i,r))).selector=e}return o},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p=\"function\"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&\"ID\"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}o=V.needsContext.test(e)?0:u.length;while(o--){if(l=u[o],r.relative[c=l.type])break;if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ve(u)))return L.apply(n,i),n;break}}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split(\"\").sort(D).join(\"\")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement(\"fieldset\"))}),ue(function(e){return e.innerHTML=\"<a href='#'></a>\",\"#\"===e.firstChild.getAttribute(\"href\")})||le(\"type|href|height|width\",function(e,t,n){if(!n)return e.getAttribute(t,\"type\"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML=\"<input/>\",e.firstChild.setAttribute(\"value\",\"\"),\"\"===e.firstChild.getAttribute(\"value\")})||le(\"value\",function(e,t,n){if(!n&&\"input\"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute(\"disabled\")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);w.find=E,w.expr=E.selectors,w.expr[\":\"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape;var k=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=w.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;function j(e,t,n){return g(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):\"string\"!=typeof t?w.grep(e,function(e){return u.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=\":not(\"+e+\")\"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(\"string\"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,\"string\"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var q,L=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||q,\"string\"==typeof e){if(!(i=\"<\"===e[0]&&\">\"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&w.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(r);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a=\"string\"!=typeof e&&w(e);if(!D.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?\"string\"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,\"parentNode\")},parentsUntil:function(e,t,n){return k(e,\"parentNode\",n)},next:function(e){return P(e,\"nextSibling\")},prev:function(e){return P(e,\"previousSibling\")},nextAll:function(e){return k(e,\"nextSibling\")},prevAll:function(e){return k(e,\"previousSibling\")},nextUntil:function(e,t,n){return k(e,\"nextSibling\",n)},prevUntil:function(e,t,n){return k(e,\"previousSibling\",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return N(e,\"iframe\")?e.contentDocument:(N(e,\"template\")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return\"Until\"!==e.slice(-5)&&(r=n),r&&\"string\"==typeof r&&(i=w.filter(r,i)),this.length>1&&(O[e]||w.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\\x20\\t\\r\\n\\f]+/g;function R(e){var t={};return w.each(e.match(M)||[],function(e,n){t[n]=!0}),t}w.Callbacks=function(e){e=\"string\"==typeof e?R(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1){n=a.shift();while(++s<o.length)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1)}e.memory||(n=!1),t=!1,i&&(o=n?[]:\"\")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){w.each(n,function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&\"string\"!==x(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return w.each(arguments,function(e,t){var n;while((n=w.inArray(t,o,n))>-1)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n=\"\",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=\"\"),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function I(e){return e}function W(e){throw e}function $(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.extend({Deferred:function(t){var n=[[\"notify\",\"progress\",w.Callbacks(\"memory\"),w.Callbacks(\"memory\"),2],[\"resolve\",\"done\",w.Callbacks(\"once memory\"),w.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",w.Callbacks(\"once memory\"),w.Callbacks(\"once memory\"),1,\"rejected\"]],r=\"pending\",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},\"catch\":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+\"With\"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError(\"Thenable self-resolution\");l=e&&(\"object\"==typeof e||\"function\"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,I,i),a(o,n,W,i)):(o++,l.call(e,a(o,n,I,i),a(o,n,W,i),a(o,n,I,n.notifyWith))):(r!==I&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==W&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:I,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:I)),n[2][3].add(a(0,e,g(r)?r:W))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+\"With\"](this===o?void 0:this,arguments),this},o[t[0]+\"With\"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&($(e,a.done(s(n)).resolve,a.reject,!t),\"pending\"===a.state()||g(i[n]&&i[n].then)))return a.then();while(n--)$(i[n],s(n),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn(\"jQuery.Deferred exception: \"+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var F=w.Deferred();w.fn.ready=function(e){return F.then(e)[\"catch\"](function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(r,[w]))}}),w.ready.then=F.then;function _(){r.removeEventListener(\"DOMContentLoaded\",_),e.removeEventListener(\"load\",_),w.ready()}\"complete\"===r.readyState||\"loading\"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(w.ready):(r.addEventListener(\"DOMContentLoaded\",_),e.addEventListener(\"load\",_));var z=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if(\"object\"===x(n)){i=!0;for(s in n)z(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},X=/^-ms-/,U=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function G(e){return e.replace(X,\"ms-\").replace(U,V)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=w.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(\"string\"==typeof t)i[G(t)]=n;else for(r in t)i[G(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&\"string\"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in r?[t]:t.match(M)||[]).length;while(n--)delete r[t[n]]}(void 0===t||w.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var J=new Q,K=new Q,Z=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,ee=/[A-Z]/g;function te(e){return\"true\"===e||\"false\"!==e&&(\"null\"===e?null:e===+e+\"\"?+e:Z.test(e)?JSON.parse(e):e)}function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r=\"data-\"+t.replace(ee,\"-$&\").toLowerCase(),\"string\"==typeof(n=e.getAttribute(r))){try{n=te(n)}catch(e){}K.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return K.hasData(e)||J.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=K.get(o),1===o.nodeType&&!J.get(o,\"hasDataAttrs\"))){n=a.length;while(n--)a[n]&&0===(r=a[n].name).indexOf(\"data-\")&&(r=G(r.slice(5)),ne(o,r,i[r]));J.set(o,\"hasDataAttrs\",!0)}return i}return\"object\"==typeof e?this.each(function(){K.set(this,e)}):z(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=K.get(o,e)))return n;if(void 0!==(n=ne(o,e)))return n}else this.each(function(){K.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||\"fx\")+\"queue\",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||\"fx\";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t),a=function(){w.dequeue(e,t)};\"inprogress\"===i&&(i=n.shift(),r--),i&&(\"fx\"===t&&n.unshift(\"inprogress\"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+\"queueHooks\";return J.get(e,n)||J.access(e,n,{empty:w.Callbacks(\"once memory\").add(function(){J.remove(e,[t+\"queue\",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return\"string\"!=typeof e&&(t=e,e=\"fx\",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),\"fx\"===e&&\"inprogress\"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||\"fx\",[])},promise:function(e,t){var n,r=1,i=w.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};\"string\"!=typeof e&&(t=e,e=void 0),e=e||\"fx\";while(a--)(n=J.get(o[a],e+\"queueHooks\"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,ie=new RegExp(\"^(?:([+-])=|)(\"+re+\")([a-z%]*)$\",\"i\"),oe=[\"Top\",\"Right\",\"Bottom\",\"Left\"],ae=function(e,t){return\"none\"===(e=t||e).style.display||\"\"===e.style.display&&w.contains(e.ownerDocument,e)&&\"none\"===w.css(e,\"display\")},se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return w.css(e,t,\"\")},u=s(),l=n&&n[3]||(w.cssNumber[t]?\"\":\"px\"),c=(w.cssNumber[t]||\"px\"!==l&&+u)&&ie.exec(w.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)w.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,w.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var le={};function ce(e){var t,n=e.ownerDocument,r=e.nodeName,i=le[r];return i||(t=n.body.appendChild(n.createElement(r)),i=w.css(t,\"display\"),t.parentNode.removeChild(t),\"none\"===i&&(i=\"block\"),le[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?(\"none\"===n&&(i[o]=J.get(r,\"display\")||null,i[o]||(r.style.display=\"\")),\"\"===r.style.display&&ae(r)&&(i[o]=ce(r))):\"none\"!==n&&(i[o]=\"none\",J.set(r,\"display\",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}w.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return\"boolean\"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?w(this).show():w(this).hide()})}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]+)/i,he=/^$|^module$|\\/(?:java|ecma)script/i,ge={option:[1,\"<select multiple='multiple'>\",\"</select>\"],thead:[1,\"<table>\",\"</table>\"],col:[2,\"<table><colgroup>\",\"</colgroup></table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:[0,\"\",\"\"]};ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;function ye(e,t){var n;return n=\"undefined\"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||\"*\"):\"undefined\"!=typeof e.querySelectorAll?e.querySelectorAll(t||\"*\"):[],void 0===t||t&&N(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],\"globalEval\",!t||J.get(t[n],\"globalEval\"))}var me=/<|&#?\\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if(\"object\"===x(o))w.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement(\"div\")),s=(de.exec(o)||[\"\",\"\"])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+w.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;w.merge(p,a.childNodes),(a=f.firstChild).textContent=\"\"}else p.push(t.createTextNode(o));f.textContent=\"\",d=0;while(o=p[d++])if(r&&w.inArray(o,r)>-1)i&&i.push(o);else if(l=w.contains(o.ownerDocument,o),a=ye(f.appendChild(o),\"script\"),l&&ve(a),n){c=0;while(o=a[c++])he.test(o.type||\"\")&&n.push(o)}return f}!function(){var e=r.createDocumentFragment().appendChild(r.createElement(\"div\")),t=r.createElement(\"input\");t.setAttribute(\"type\",\"radio\"),t.setAttribute(\"checked\",\"checked\"),t.setAttribute(\"name\",\"t\"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML=\"<textarea>x</textarea>\",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var be=r.documentElement,we=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Se(){try{return r.activeElement}catch(e){}}function De(e,t,n,r,i,o){var a,s;if(\"object\"==typeof t){\"string\"!=typeof n&&(r=r||n,n=void 0);for(s in t)De(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&(\"string\"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,r,n)})}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.get(e);if(y){n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(be,i),n.guid||(n.guid=w.guid++),(u=y.events)||(u=y.events={}),(a=y.handle)||(a=y.handle=function(t){return\"undefined\"!=typeof w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||\"\").match(M)||[\"\"]).length;while(l--)d=g=(s=Ce.exec(t[l])||[])[1],h=(s[2]||\"\").split(\".\").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(\".\")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.hasData(e)&&J.get(e);if(y&&(u=y.events)){l=(t=(t||\"\").match(M)||[\"\"]).length;while(l--)if(s=Ce.exec(t[l])||[],d=g=s[1],h=(s[2]||\"\").split(\".\").sort(),d){f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp(\"(^|\\\\.)\"+h.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&(\"**\"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,y.handle)||w.removeEvent(e,d,y.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&J.remove(e,\"handle events\")}},dispatch:function(e){var t=w.event.fix(e),n,r,i,o,a,s,u=new Array(arguments.length),l=(J.get(this,\"events\")||{})[t.type]||[],c=w.event.special[t.type]||{};for(u[0]=t,n=1;n<arguments.length;n++)u[n]=arguments[n];if(t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){s=w.event.handlers.call(this,t,l),n=0;while((o=s[n++])&&!t.isPropagationStopped()){t.currentTarget=o.elem,r=0;while((a=o.handlers[r++])&&!t.isImmediatePropagationStopped())t.rnamespace&&!t.rnamespace.test(a.namespace)||(t.handleObj=a,t.data=a.data,void 0!==(i=((w.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!(\"click\"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(\"click\"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+\" \"]&&(a[i]=r.needsContext?w(i,this).index(l)>-1:w.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Se()&&this.focus)return this.focus(),!1},delegateType:\"focusin\"},blur:{trigger:function(){if(this===Se()&&this.blur)return this.blur(),!1},delegateType:\"focusout\"},click:{trigger:function(){if(\"checkbox\"===this.type&&this.click&&N(this,\"input\"))return this.click(),!1},_default:function(e){return N(e.target,\"a\")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,\"char\":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||w.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,r){return De(this,e,t,n,r)},one:function(e,t,n,r){return De(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+\".\"+r.namespace:r.origType,r.selector,r.handler),this;if(\"object\"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&\"function\"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each(function(){w.event.remove(this,e,n,t)})}});var Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,Ae=/<script|<style|<link/i,je=/checked\\s*(?:[^=]|=\\s*.checked.)/i,qe=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;function Le(e,t){return N(e,\"table\")&&N(11!==t.nodeType?t:t.firstChild,\"tr\")?w(e).children(\"tbody\")[0]||e:e}function He(e){return e.type=(null!==e.getAttribute(\"type\"))+\"/\"+e.type,e}function Oe(e){return\"true/\"===(e.type||\"\").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute(\"type\"),e}function Pe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(J.hasData(e)&&(o=J.access(e),a=J.set(t,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n<r;n++)w.event.add(t,i,l[i][n])}K.hasData(e)&&(s=K.access(e),u=w.extend({},s),K.set(t,u))}}function Me(e,t){var n=t.nodeName.toLowerCase();\"input\"===n&&pe.test(e.type)?t.checked=e.checked:\"input\"!==n&&\"textarea\"!==n||(t.defaultValue=e.defaultValue)}function Re(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,y=t[0],v=g(y);if(v||p>1&&\"string\"==typeof y&&!h.checkClone&&je.test(y))return e.each(function(i){var o=e.eq(i);v&&(t[0]=y.call(this,i,o.html())),Re(o,t,n,r)});if(p&&(i=xe(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=w.map(ye(i,\"script\"),He)).length;f<p;f++)l=i,f!==d&&(l=w.clone(l,!0,!0),u&&w.merge(s,ye(l,\"script\"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,w.map(s,Oe),f=0;f<u;f++)l=s[f],he.test(l.type||\"\")&&!J.access(l,\"globalEval\")&&w.contains(c,l)&&(l.src&&\"module\"!==(l.type||\"\").toLowerCase()?w._evalUrl&&w._evalUrl(l.src):m(l.textContent.replace(qe,\"\"),c,l))}return e}function Ie(e,t,n){for(var r,i=t?w.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||w.cleanData(ye(r)),r.parentNode&&(n&&w.contains(r.ownerDocument,r)&&ve(ye(r,\"script\")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e.replace(Ne,\"<$1></$2>\")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=w.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ye(s),r=0,i=(o=ye(e)).length;r<i;r++)Me(o[r],a[r]);if(t)if(n)for(o=o||ye(e),a=a||ye(s),r=0,i=o.length;r<i;r++)Pe(o[r],a[r]);else Pe(e,s);return(a=ye(s,\"script\")).length>0&&ve(a,!u&&ye(e,\"script\")),s},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return z(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ye(e,!1)),e.textContent=\"\");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return z(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if(\"string\"==typeof e&&!Ae.test(e)&&!ge[(de.exec(e)||[\"\",\"\"])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(ye(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(e,t){w.fn[e]=function(e){for(var n,r=[],i=w(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),w(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var We=new RegExp(\"^(\"+re+\")(?!px)[a-z%]+$\",\"i\"),$e=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Be=new RegExp(oe.join(\"|\"),\"i\");!function(){function t(){if(c){l.style.cssText=\"position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0\",c.style.cssText=\"position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%\",be.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i=\"1%\"!==t.top,u=12===n(t.marginLeft),c.style.right=\"60%\",s=36===n(t.right),o=36===n(t.width),c.style.position=\"absolute\",a=36===c.offsetWidth||\"absolute\",be.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement(\"div\"),c=r.createElement(\"div\");c.style&&(c.style.backgroundClip=\"content-box\",c.cloneNode(!0).style.backgroundClip=\"\",h.clearCloneStyle=\"content-box\"===c.style.backgroundClip,w.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();function Fe(e,t,n){var r,i,o,a,s=e.style;return(n=n||$e(e))&&(\"\"!==(a=n.getPropertyValue(t)||n[t])||w.contains(e.ownerDocument,e)||(a=w.style(e,t)),!h.pixelBoxStyles()&&We.test(a)&&Be.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+\"\":a}function _e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}var ze=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ue={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Ve={letterSpacing:\"0\",fontWeight:\"400\"},Ge=[\"Webkit\",\"Moz\",\"ms\"],Ye=r.createElement(\"div\").style;function Qe(e){if(e in Ye)return e;var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;while(n--)if((e=Ge[n]+t)in Ye)return e}function Je(e){var t=w.cssProps[e];return t||(t=w.cssProps[e]=Qe(e)||e),t}function Ke(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||\"px\"):t}function Ze(e,t,n,r,i,o){var a=\"width\"===t?1:0,s=0,u=0;if(n===(r?\"border\":\"content\"))return 0;for(;a<4;a+=2)\"margin\"===n&&(u+=w.css(e,n+oe[a],!0,i)),r?(\"content\"===n&&(u-=w.css(e,\"padding\"+oe[a],!0,i)),\"margin\"!==n&&(u-=w.css(e,\"border\"+oe[a]+\"Width\",!0,i))):(u+=w.css(e,\"padding\"+oe[a],!0,i),\"padding\"!==n?u+=w.css(e,\"border\"+oe[a]+\"Width\",!0,i):s+=w.css(e,\"border\"+oe[a]+\"Width\",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e[\"offset\"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function et(e,t,n){var r=$e(e),i=Fe(e,t,r),o=\"border-box\"===w.css(e,\"boxSizing\",!1,r),a=o;if(We.test(i)){if(!n)return i;i=\"auto\"}return a=a&&(h.boxSizingReliable()||i===e.style[t]),(\"auto\"===i||!parseFloat(i)&&\"inline\"===w.css(e,\"display\",!1,r))&&(i=e[\"offset\"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Ze(e,t,n||(o?\"border\":\"content\"),a,r,i)+\"px\"}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fe(e,\"opacity\");return\"\"===n?\"1\":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=G(t),u=Xe.test(t),l=e.style;if(u||(t=Je(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&\"get\"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];\"string\"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o=\"number\"),null!=n&&n===n&&(\"number\"===o&&(n+=i&&i[3]||(w.cssNumber[s]?\"\":\"px\")),h.clearCloneStyle||\"\"!==n||0!==t.indexOf(\"background\")||(l[t]=\"inherit\"),a&&\"set\"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=G(t);return Xe.test(t)||(t=Je(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&\"get\"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Fe(e,t,r)),\"normal\"===i&&t in Ve&&(i=Ve[t]),\"\"===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each([\"height\",\"width\"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!ze.test(w.css(e,\"display\"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,r):se(e,Ue,function(){return et(e,t,r)})},set:function(e,n,r){var i,o=$e(e),a=\"border-box\"===w.css(e,\"boxSizing\",!1,o),s=r&&Ze(e,t,r,a,o);return a&&h.scrollboxSize()===o.position&&(s-=Math.ceil(e[\"offset\"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ze(e,t,\"border\",!1,o)-.5)),s&&(i=ie.exec(n))&&\"px\"!==(i[3]||\"px\")&&(e.style[t]=n,n=w.css(e,t)),Ke(e,n,s)}}}),w.cssHooks.marginLeft=_e(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Fe(e,\"marginLeft\"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+\"px\"}),w.each({margin:\"\",padding:\"\",border:\"Width\"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o=\"string\"==typeof n?n.split(\" \"):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},\"margin\"!==e&&(w.cssHooks[e+t].set=Ke)}),w.fn.extend({css:function(e,t){return z(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=$e(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,arguments.length>1)}});function tt(e,t,n,r,i){return new tt.prototype.init(e,t,n,r,i)}w.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?\"\":\"px\")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,\"\"))&&\"auto\"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[w.cssProps[e.prop]]&&!w.cssHooks[e.prop]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:\"swing\"},w.fx=tt.prototype.init,w.fx.step={};var nt,rt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){rt&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(at):e.setTimeout(at,w.fx.interval),w.fx.tick())}function st(){return e.setTimeout(function(){nt=void 0}),nt=Date.now()}function ut(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i[\"margin\"+(n=oe[r])]=i[\"padding\"+n]=e;return t&&(i.opacity=i.width=e),i}function lt(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners[\"*\"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ct(e,t,n){var r,i,o,a,s,u,l,c,f=\"width\"in t||\"height\"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),y=J.get(e,\"fxshow\");n.queue||(null==(a=w._queueHooks(e,\"fx\")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,w.queue(e,\"fx\").length||a.empty.fire()})}));for(r in t)if(i=t[r],it.test(i)){if(delete t[r],o=o||\"toggle\"===i,i===(g?\"hide\":\"show\")){if(\"show\"!==i||!y||void 0===y[r])continue;g=!0}d[r]=y&&y[r]||w.style(e,r)}if((u=!w.isEmptyObject(t))||!w.isEmptyObject(d)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=y&&y.display)&&(l=J.get(e,\"display\")),\"none\"===(c=w.css(e,\"display\"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=w.css(e,\"display\"),fe([e]))),(\"inline\"===c||\"inline-block\"===c&&null!=l)&&\"none\"===w.css(e,\"float\")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l=\"none\"===c?\"\":c)),h.display=\"inline-block\")),n.overflow&&(h.overflow=\"hidden\",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in d)u||(y?\"hidden\"in y&&(g=y.hidden):y=J.access(e,\"fxshow\",{display:l}),o&&(y.hidden=!g),g&&fe([e],!0),p.done(function(){g||fe([e]),J.remove(e,\"fxshow\");for(r in d)w.style(e,r,d[r])})),u=lt(g?y[r]:0,r,p),r in y||(y[r]=u.start,g&&(u.end=u.start,u.start=0))}}function ft(e,t){var n,r,i,o,a;for(n in e)if(r=G(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=w.cssHooks[r])&&\"expand\"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=w.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=nt||st(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:nt||st(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(ft(c,l.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(w._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,lt,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),w.fx.timer(w.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}w.Animation=w.extend(pt,{tweeners:{\"*\":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=[\"*\"]):e=e.match(M);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[ct],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&\"object\"==typeof e?w.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return w.fx.off?r.duration=0:\"number\"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue=\"fx\"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css(\"opacity\",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),o=w.speed(t,n,r),a=function(){var t=pt(this,w.extend({},e),o);(i||J.get(this,\"finish\"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return\"string\"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||\"fx\",[]),this.each(function(){var t=!0,i=null!=e&&e+\"queueHooks\",o=w.timers,a=J.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ot.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||\"fx\"),this.each(function(){var t,n=J.get(this),r=n[e+\"queue\"],i=n[e+\"queueHooks\"],o=w.timers,a=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),w.each([\"toggle\",\"show\",\"hide\"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||\"boolean\"==typeof e?n.apply(this,arguments):this.animate(ut(t,!0),e,r,i)}}),w.each({slideDown:ut(\"show\"),slideUp:ut(\"hide\"),slideToggle:ut(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(nt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),nt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){rt||(rt=!0,at())},w.fx.stop=function(){rt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx?w.fx.speeds[t]||t:t,n=n||\"fx\",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=r.createElement(\"input\"),t=r.createElement(\"select\").appendChild(r.createElement(\"option\"));e.type=\"checkbox\",h.checkOn=\"\"!==e.value,h.optSelected=t.selected,(e=r.createElement(\"input\")).value=\"t\",e.type=\"radio\",h.radioValue=\"t\"===e.value}();var dt,ht=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return z(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return\"undefined\"==typeof e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):i&&\"set\"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+\"\"),n):i&&\"get\"in i&&null!==(r=i.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&\"radio\"===t&&N(e,\"input\")){var n=e.value;return e.setAttribute(\"type\",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(M);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\\w+/g),function(e,t){var n=ht[t]||w.find.attr;ht[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ht[a],ht[a]=i,i=null!=n(e,t,r)?a:null,ht[a]=o),i}});var gt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;w.fn.extend({prop:function(e,t){return z(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.propHooks[t]),void 0!==n?i&&\"set\"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&\"get\"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,\"tabindex\");return t?parseInt(t,10):gt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{\"for\":\"htmlFor\",\"class\":\"className\"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){w.propFix[this.toLowerCase()]=this});function vt(e){return(e.match(M)||[]).join(\" \")}function mt(e){return e.getAttribute&&e.getAttribute(\"class\")||\"\"}function xt(e){return Array.isArray(e)?e:\"string\"==typeof e?e.match(M)||[]:[]}w.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).addClass(e.call(this,t,mt(this)))});if((t=xt(e)).length)while(n=this[u++])if(i=mt(n),r=1===n.nodeType&&\" \"+vt(i)+\" \"){a=0;while(o=t[a++])r.indexOf(\" \"+o+\" \")<0&&(r+=o+\" \");i!==(s=vt(r))&&n.setAttribute(\"class\",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr(\"class\",\"\");if((t=xt(e)).length)while(n=this[u++])if(i=mt(n),r=1===n.nodeType&&\" \"+vt(i)+\" \"){a=0;while(o=t[a++])while(r.indexOf(\" \"+o+\" \")>-1)r=r.replace(\" \"+o+\" \",\" \");i!==(s=vt(r))&&n.setAttribute(\"class\",s)}return this},toggleClass:function(e,t){var n=typeof e,r=\"string\"===n||Array.isArray(e);return\"boolean\"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,mt(this),t),t)}):this.each(function(){var t,i,o,a;if(r){i=0,o=w(this),a=xt(e);while(t=a[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else void 0!==e&&\"boolean\"!==n||((t=mt(this))&&J.set(this,\"__className__\",t),this.setAttribute&&this.setAttribute(\"class\",t||!1===e?\"\":J.get(this,\"__className__\")||\"\"))})},hasClass:function(e){var t,n,r=0;t=\" \"+e+\" \";while(n=this[r++])if(1===n.nodeType&&(\" \"+vt(mt(n))+\" \").indexOf(t)>-1)return!0;return!1}});var bt=/\\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=g(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i=\"\":\"number\"==typeof i?i+=\"\":Array.isArray(i)&&(i=w.map(i,function(e){return null==e?\"\":e+\"\"})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&\"set\"in t&&void 0!==t.set(this,i,\"value\")||(this.value=i))});if(i)return(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&\"get\"in t&&void 0!==(n=t.get(i,\"value\"))?n:\"string\"==typeof(n=i.value)?n.replace(bt,\"\"):null==n?\"\":n}}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,\"value\");return null!=t?t:vt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a=\"select-one\"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,\"optgroup\"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=w.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=w.inArray(w.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each([\"radio\",\"checkbox\"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute(\"value\")?\"on\":e.value})}),h.focusin=\"onfocusin\"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,v=[i||r],m=f.call(t,\"type\")?t.type:t,x=f.call(t,\"namespace\")?t.namespace.split(\".\"):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!wt.test(m+w.event.triggered)&&(m.indexOf(\".\")>-1&&(m=(x=m.split(\".\")).shift(),x.sort()),c=m.indexOf(\":\")<0&&\"on\"+m,t=t[w.expando]?t:new w.Event(m,\"object\"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=x.join(\".\"),t.rnamespace=t.namespace?new RegExp(\"(^|\\\\.)\"+x.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),d=w.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!y(i)){for(l=d.delegateType||m,wt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)v.push(s),u=s;u===(i.ownerDocument||r)&&v.push(u.defaultView||u.parentWindow||e)}a=0;while((s=v[a++])&&!t.isPropagationStopped())h=s,t.type=a>1?l:d.bindType||m,(p=(J.get(s,\"events\")||{})[t.type]&&J.get(s,\"handle\"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&Y(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),n)||!Y(i)||c&&g(i[m])&&!y(i)&&((u=i[c])&&(i[c]=null),w.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Tt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Tt),w.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:\"focusin\",blur:\"focusout\"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}});var Ct=e.location,Et=Date.now(),kt=/\\?/;w.parseXML=function(t){var n;if(!t||\"string\"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,\"text/xml\")}catch(e){n=void 0}return n&&!n.getElementsByTagName(\"parsererror\").length||w.error(\"Invalid XML: \"+t),n};var St=/\\[\\]$/,Dt=/\\r?\\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))w.each(t,function(t,i){n||St.test(e)?r(e,i):jt(e+\"[\"+(\"object\"==typeof i&&null!=i?t:\"\")+\"]\",i,n,r)});else if(n||\"object\"!==x(t))r(e,t);else for(i in t)jt(e+\"[\"+i+\"]\",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+\"=\"+encodeURIComponent(null==n?\"\":n)};if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.name,this.value)});else for(n in e)jt(n,e[n],t,i);return r.join(\"&\")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,\"elements\");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(\":disabled\")&&At.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(Dt,\"\\r\\n\")}}):{name:t.name,value:n.replace(Dt,\"\\r\\n\")}}).get()}});var qt=/%20/g,Lt=/#.*$/,Ht=/([?&])_=[^&]*/,Ot=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Rt=/^\\/\\//,It={},Wt={},$t=\"*/\".concat(\"*\"),Bt=r.createElement(\"a\");Bt.href=Ct.href;function Ft(e){return function(t,n){\"string\"!=typeof t&&(n=t,t=\"*\");var r,i=0,o=t.toLowerCase().match(M)||[];if(g(n))while(r=o[i++])\"+\"===r[0]?(r=r.slice(1)||\"*\",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function _t(e,t,n,r){var i={},o=e===Wt;function a(s){var u;return i[s]=!0,w.each(e[s]||[],function(e,s){var l=s(t,n,r);return\"string\"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i[\"*\"]&&a(\"*\")}function zt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}function Xt(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while(\"*\"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader(\"Content-Type\"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+\" \"+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function Ut(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if(\"*\"===o)o=u;else if(\"*\"!==u&&u!==o){if(!(a=l[u+\" \"+o]||l[\"* \"+o]))for(i in l)if((s=i.split(\" \"))[1]===o&&(a=l[u+\" \"+s[0]]||l[\"* \"+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e[\"throws\"])t=a(t);else try{t=a(t)}catch(e){return{state:\"parsererror\",error:a?e:\"No conversion from \"+u+\" to \"+o}}}return{state:\"success\",data:t}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:\"GET\",isLocal:Pt.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":$t,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/\\bxml\\b/,html:/\\bhtml/,json:/\\bjson\\b/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":JSON.parse,\"text xml\":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,w.ajaxSettings),t):zt(w.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(Wt),ajax:function(t,n){\"object\"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=w.ajaxSetup({},n),g=h.context||h,y=h.context&&(g.nodeType||g.jquery)?w(g):w.event,v=w.Deferred(),m=w.Callbacks(\"once memory\"),x=h.statusCode||{},b={},T={},C=\"canceled\",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s){s={};while(t=Ot.exec(a))s[t[1].toLowerCase()]=t[2]}t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(v.promise(E),h.url=((t||h.url||Ct.href)+\"\").replace(Rt,Ct.protocol+\"//\"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||\"*\").toLowerCase().match(M)||[\"\"],null==h.crossDomain){l=r.createElement(\"a\");try{l.href=h.url,l.href=l.href,h.crossDomain=Bt.protocol+\"//\"+Bt.host!=l.protocol+\"//\"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&\"string\"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),_t(It,h,n,E),c)return E;(f=w.event&&h.global)&&0==w.active++&&w.event.trigger(\"ajaxStart\"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),o=h.url.replace(Lt,\"\"),h.hasContent?h.data&&h.processData&&0===(h.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(h.data=h.data.replace(qt,\"+\")):(d=h.url.slice(o.length),h.data&&(h.processData||\"string\"==typeof h.data)&&(o+=(kt.test(o)?\"&\":\"?\")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ht,\"$1\"),d=(kt.test(o)?\"&\":\"?\")+\"_=\"+Et+++d),h.url=o+d),h.ifModified&&(w.lastModified[o]&&E.setRequestHeader(\"If-Modified-Since\",w.lastModified[o]),w.etag[o]&&E.setRequestHeader(\"If-None-Match\",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader(\"Content-Type\",h.contentType),E.setRequestHeader(\"Accept\",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+(\"*\"!==h.dataTypes[0]?\", \"+$t+\"; q=0.01\":\"\"):h.accepts[\"*\"]);for(p in h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C=\"abort\",m.add(h.complete),E.done(h.success),E.fail(h.error),i=_t(Wt,h,n,E)){if(E.readyState=1,f&&y.trigger(\"ajaxSend\",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout(function(){E.abort(\"timeout\")},h.timeout));try{c=!1,i.send(b,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,\"No Transport\");function k(t,n,r,s){var l,p,d,b,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||\"\",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(b=Xt(h,E,r)),b=Ut(h,b,E,l),l?(h.ifModified&&((T=E.getResponseHeader(\"Last-Modified\"))&&(w.lastModified[o]=T),(T=E.getResponseHeader(\"etag\"))&&(w.etag[o]=T)),204===t||\"HEAD\"===h.type?C=\"nocontent\":304===t?C=\"notmodified\":(C=b.state,p=b.data,l=!(d=b.error))):(d=C,!t&&C||(C=\"error\",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+\"\",l?v.resolveWith(g,[p,C,E]):v.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&y.trigger(l?\"ajaxSuccess\":\"ajaxError\",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(y.trigger(\"ajaxComplete\",[E,h]),--w.active||w.event.trigger(\"ajaxStop\")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,\"json\")},getScript:function(e,t){return w.get(e,void 0,t,\"script\")}}),w.each([\"get\",\"post\"],function(e,t){w[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e){return w.ajax({url:e,type:\"GET\",dataType:\"script\",cache:!0,async:!1,global:!1,\"throws\":!0})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not(\"body\").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Gt=w.ajaxSettings.xhr();h.cors=!!Gt&&\"withCredentials\"in Gt,h.ajax=Gt=!!Gt,w.ajaxTransport(function(t){var n,r;if(h.cors||Gt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i[\"X-Requested-With\"]||(i[\"X-Requested-With\"]=\"XMLHttpRequest\");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,\"abort\"===e?s.abort():\"error\"===e?\"number\"!=typeof s.status?o(0,\"error\"):o(s.status,s.statusText):o(Vt[s.status]||s.status,s.statusText,\"text\"!==(s.responseType||\"text\")||\"string\"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n(\"error\"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n(\"abort\");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{\"text script\":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter(\"script\",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type=\"GET\")}),w.ajaxTransport(\"script\",function(e){if(e.crossDomain){var t,n;return{send:function(i,o){t=w(\"<script>\").prop({charset:e.scriptCharset,src:e.url}).on(\"load error\",n=function(e){t.remove(),n=null,e&&o(\"error\"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Yt=[],Qt=/(=)\\?(?=&|$)|\\?\\?/;w.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var e=Yt.pop()||w.expando+\"_\"+Et++;return this[e]=!0,e}}),w.ajaxPrefilter(\"json jsonp\",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Qt.test(t.url)?\"url\":\"string\"==typeof t.data&&0===(t.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Qt.test(t.data)&&\"data\");if(s||\"jsonp\"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Qt,\"$1\"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?\"&\":\"?\")+t.jsonp+\"=\"+i),t.converters[\"script json\"]=function(){return a||w.error(i+\" was not called\"),a[0]},t.dataTypes[0]=\"json\",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?w(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Yt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0}),\"script\"}),h.createHTMLDocument=function(){var e=r.implementation.createHTMLDocument(\"\").body;return e.innerHTML=\"<form></form><form></form>\",2===e.childNodes.length}(),w.parseHTML=function(e,t,n){if(\"string\"!=typeof e)return[];\"boolean\"==typeof t&&(n=t,t=!1);var i,o,a;return t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument(\"\")).createElement(\"base\")).href=r.location.href,t.head.appendChild(i)):t=r),o=A.exec(e),a=!n&&[],o?[t.createElement(o[1])]:(o=xe([e],t,a),a&&a.length&&w(a).remove(),w.merge([],o.childNodes))},w.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(\" \");return s>-1&&(r=vt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&\"object\"==typeof t&&(i=\"POST\"),a.length>0&&w.ajax({url:e,type:i||\"GET\",dataType:\"html\",data:t}).done(function(e){o=arguments,a.html(r?w(\"<div>\").append(w.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},w.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=w.css(e,\"position\"),f=w(e),p={};\"static\"===c&&(e.style.position=\"relative\"),s=f.offset(),o=w.css(e,\"top\"),u=w.css(e,\"left\"),(l=(\"absolute\"===c||\"fixed\"===c)&&(o+u).indexOf(\"auto\")>-1)?(a=(r=f.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),\"using\"in t?t.using.call(e,p):f.css(p)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(\"fixed\"===w.css(r,\"position\"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&\"static\"===w.css(e,\"position\"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,\"borderTopWidth\",!0),i.left+=w.css(e,\"borderLeftWidth\",!0))}return{top:t.top-i.top-w.css(r,\"marginTop\",!0),left:t.left-i.left-w.css(r,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&\"static\"===w.css(e,\"position\"))e=e.offsetParent;return e||be})}}),w.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(e,t){var n=\"pageYOffset\"===t;w.fn[e]=function(r){return z(this,function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),w.each([\"top\",\"left\"],function(e,t){w.cssHooks[t]=_e(h.pixelPosition,function(e,n){if(n)return n=Fe(e,t),We.test(n)?w(e).position()[t]+\"px\":n})}),w.each({Height:\"height\",Width:\"width\"},function(e,t){w.each({padding:\"inner\"+e,content:t,\"\":\"outer\"+e},function(n,r){w.fn[r]=function(i,o){var a=arguments.length&&(n||\"boolean\"!=typeof i),s=n||(!0===i||!0===o?\"margin\":\"border\");return z(this,function(t,n,i){var o;return y(t)?0===r.indexOf(\"outer\")?t[\"inner\"+e]:t.document.documentElement[\"client\"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body[\"scroll\"+e],o[\"scroll\"+e],t.body[\"offset\"+e],o[\"offset\"+e],o[\"client\"+e])):void 0===i?w.css(t,n,s):w.style(t,n,i,s)},t,a?i:void 0,a)}})}),w.each(\"blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu\".split(\" \"),function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,\"**\"):this.off(t,e||\"**\",n)}}),w.proxy=function(e,t){var n,r,i;if(\"string\"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),i=function(){return e.apply(t||this,r.concat(o.call(arguments)))},i.guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=N,w.isFunction=g,w.isWindow=y,w.camelCase=G,w.type=x,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return(\"number\"===t||\"string\"===t)&&!isNaN(e-parseFloat(e))},\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return w});var Jt=e.jQuery,Kt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Kt),t&&e.jQuery===w&&(e.jQuery=Jt),w},t||(e.jQuery=e.$=w),w});\n","/*\n Copyright (C) Federico Zivolo 2020\n Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).\n */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'])+parseFloat(e['border'+n+'Width'])}function h(e,t,o,n){return ee(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?parseInt(o['offset'+e])+parseInt(n['margin'+('Height'===e?'Top':'Left')])+parseInt(n['margin'+('Height'===e?'Bottom':'Right')]):0)}function c(e){var t=e.body,o=e.documentElement,n=r(10)&&getComputedStyle(o);return{height:h('Height',t,o,n),width:h('Width',t,o,n)}}function g(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c(e.ownerDocument):{},d=s.width||e.clientWidth||p.width,a=s.height||e.clientHeight||p.height,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth),c=parseFloat(m.borderLeftWidth);i&&s&&(a.top=ee(a.top,0),a.left=ee(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var w=parseFloat(m.marginTop),y=parseFloat(m.marginLeft);b.top-=h-w,b.bottom-=h-w,b.left-=c-y,b.right-=c-y,b.marginTop=w,b.marginLeft=y}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function w(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=ee(o.clientWidth,window.innerWidth||0),r=ee(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function y(e){var n=e.nodeName;if('BODY'===n||'HTML'===n)return!1;if('fixed'===t(e,'position'))return!0;var i=o(e);return!!i&&y(i)}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,r,p){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],d={top:0,left:0},l=s?E(e):a(e,i(t));if('viewport'===p)d=w(l,s);else{var f;'scrollParent'===p?(f=n(o(t)),'BODY'===f.nodeName&&(f=e.ownerDocument.documentElement)):'window'===p?f=e.ownerDocument.documentElement:f=p;var m=b(f,l,s);if('HTML'===f.nodeName&&!y(l)){var h=c(e.ownerDocument),g=h.height,u=h.width;d.top+=m.top-m.marginTop,d.bottom=g+m.top,d.left+=m.left-m.marginLeft,d.right=u+m.left}else d=m}r=r||0;var v='number'==typeof r;return d.left+=v?r:r.left||0,d.top+=v?r:r.top||0,d.right-=v?r:r.right||0,d.bottom-=v?r:r.bottom||0,d}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,n,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=v(o,n,r,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return le({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function L(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=n?E(t):a(t,i(o));return b(o,r,n)}function S(e){var t=e.ownerDocument.defaultView,o=t.getComputedStyle(e),n=parseFloat(o.marginTop||0)+parseFloat(o.marginBottom||0),i=parseFloat(o.marginLeft||0)+parseFloat(o.marginRight||0),r={width:e.offsetWidth+i,height:e.offsetHeight+n};return r}function T(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function C(e,t,o){o=o.split('-')[0];var n=S(e),i={width:n.width,height:n.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return i[p]=t[p]+t[d]/2-n[d]/2,i[s]=o===s?t[s]-n[a]:t[T(s)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var n=D(e,function(e){return e[t]===o});return e.indexOf(n)}function P(t,o,n){var i=void 0===n?t:t.slice(0,N(t,'name',n));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,n=e.enabled;return n&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function H(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||M(n(p.parentNode),t,o,i),i.push(p)}function F(e,t,o,i){o.updateBound=i,A(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return M(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function I(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function R(e,t){return A(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Y(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t){Object.keys(t).forEach(function(o){var n='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&Y(t[o])&&(n='px'),e.style[o]=t[o]+n})}function j(e,t){Object.keys(t).forEach(function(o){var n=t[o];!1===n?e.removeAttribute(o):e.setAttribute(o,t[o])})}function q(e,t){var o=e.offsets,n=o.popper,i=o.reference,r=$,p=function(e){return e},s=r(i.width),d=r(n.width),a=-1!==['left','right'].indexOf(e.placement),l=-1!==e.placement.indexOf('-'),f=t?a||l||s%2==d%2?r:Z:p,m=t?r:p;return{left:f(1==s%2&&1==d%2&&!l&&t?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:f(n.right)}}function K(e,t,o){var n=D(e,function(e){var o=e.name;return o===t}),i=!!n&&e.some(function(e){return e.name===o&&e.enabled&&e.order<n.order});if(!i){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return i}function z(e){return'end'===e?'start':'start'===e?'end':e}function G(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=he.indexOf(e),n=he.slice(o+1).concat(he.slice(0,o));return t?n.reverse():n}function _(e,t,o,n){var i=e.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/),r=+i[1],p=i[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=n;}var d=g(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?ee(document.documentElement.clientHeight,window.innerHeight||0):ee(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function X(e,t,o,n){var i=[0,0],r=-1!==['right','left'].indexOf(n),p=e.split(/(\\+|\\-)/).map(function(e){return e.trim()}),s=p.indexOf(D(p,function(e){return-1!==e.search(/,|\\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\\s*,\\s*|\\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,n){var i=(1===n?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return _(e,i,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,n){Y(o)&&(i[t]+=o*('-'===e[n-1]?-1:1))})}),i}function J(e,t){var o,n=t.offset,i=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=i.split('-')[0];return o=Y(+n)?[+n,0]:X(n,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}var Q=Math.min,Z=Math.floor,$=Math.round,ee=Math.max,te='undefined'!=typeof window&&'undefined'!=typeof document&&'undefined'!=typeof navigator,oe=function(){for(var e=['Edge','Trident','Firefox'],t=0;t<e.length;t+=1)if(te&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),ne=te&&window.Promise,ie=ne?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oe))}},re=te&&!!(window.MSInputMethodContext&&document.documentMode),pe=te&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},de=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),ae=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},le=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fe=te&&/Firefox/i.test(navigator.userAgent),me=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],he=me.slice(3),ce={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ge=function(){function t(o,n){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};se(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=le({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(le({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=le({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return le({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return de(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return I.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();return ge.Utils=('undefined'==typeof window?global:window).PopperUtils,ge.placements=me,ge.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],n=t.split('-')[1];if(n){var i=e.offsets,r=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:ae({},d,r[d]),end:ae({},d,r[d]+r[a]-p[a])};e.offsets.popper=le({},p,l[n])}return e}},offset:{order:200,enabled:!0,fn:J,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var n=B('transform'),i=e.instance.popper.style,r=i.top,s=i.left,d=i[n];i.top='',i.left='',i[n]='';var a=v(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=r,i.left=s,i[n]=d,t.boundaries=a;var l=t.priority,f=e.offsets.popper,m={primary:function(e){var o=f[e];return f[e]<a[e]&&!t.escapeWithReference&&(o=ee(f[e],a[e])),ae({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=f[o];return f[e]>a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(n[d])&&(e.offsets.popper[d]=r(n[d])-o[a]),o[d]>r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!K(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[c]-u)),d[m]+u>s[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f]),E=parseFloat(w['border'+f+'Width']),v=b-e.offsets.popper[m]-y-E;return v=ee(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,$(v)),ae(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ce.FLIP:p=[n,i];break;case ce.CLOCKWISE:p=G(n);break;case ce.COUNTERCLOCKWISE:p=G(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)<f(l.right)||'top'===n&&f(a.bottom)>f(l.top)||'bottom'===n&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexOf(n),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u),E=!!t.flipVariationsByContent&&(w&&'start'===r&&c||w&&'end'===r&&h||!w&&'start'===r&&u||!w&&'end'===r&&g),v=y||E;(m||b||v)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),v&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport',flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=D(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,n=t.y,i=e.offsets.popper,r=D(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===r?t.gpuAcceleration:r,l=p(e.instance.popper),f=u(l),m={position:i.position},h=q(e,2>window.devicePixelRatio||!fe),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=B('transform');if(d='bottom'==c?'HTML'===l.nodeName?-l.clientHeight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'HTML'===l.nodeName?-l.clientWidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willChange=c+', '+g}var E={\"x-placement\":e.placement};return e.attributes=le({},E,e.attributes),e.styles=le({},m,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return V(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),V(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ge});\n//# sourceMappingURL=popper.min.js.map\n","/*!\n  * Bootstrap v4.3.1 (https://getbootstrap.com/)\n  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\n  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n  */\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports,require(\"jquery\"),require(\"popper.js\")):\"function\"==typeof define&&define.amd?define([\"exports\",\"jquery\",\"popper.js\"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){\"use strict\";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},e=Object.keys(r);\"function\"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.forEach(function(t){var e,n,i;e=o,i=r[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return o}g=g&&g.hasOwnProperty(\"default\")?g.default:g,u=u&&u.hasOwnProperty(\"default\")?u.default:u;var e=\"transitionend\";function n(t){var e=this,n=!1;return g(this).one(_.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||_.triggerTransitionEnd(e)},t),this}var _={TRANSITION_END:\"bsTransitionEnd\",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute(\"data-target\");if(!e||\"#\"===e){var n=t.getAttribute(\"href\");e=n&&\"#\"!==n?n.trim():\"\"}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=g(t).css(\"transition-duration\"),n=g(t).css(\"transition-delay\"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(\",\")[0],n=n.split(\",\")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){g(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&_.isElement(r)?\"element\":(a=r,{}.toString.call(a).match(/\\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option \"'+i+'\" provided type \"'+s+'\" but expected type \"'+o+'\".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if(\"function\"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?_.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};g.fn.emulateTransitionEnd=n,g.event.special[_.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(g(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var o=\"alert\",r=\"bs.alert\",a=\".\"+r,c=g.fn[o],h={CLOSE:\"close\"+a,CLOSED:\"closed\"+a,CLICK_DATA_API:\"click\"+a+\".data-api\"},f=\"alert\",d=\"fade\",m=\"show\",p=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){g.removeData(this._element,r),this._element=null},t._getRootElement=function(t){var e=_.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=g(t).closest(\".\"+f)[0]),n},t._triggerCloseEvent=function(t){var e=g.Event(h.CLOSE);return g(t).trigger(e),e},t._removeElement=function(e){var n=this;if(g(e).removeClass(m),g(e).hasClass(d)){var t=_.getTransitionDurationFromElement(e);g(e).one(_.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){g(t).detach().trigger(h.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(r);e||(e=new i(this),t.data(r,e)),\"close\"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}}]),i}();g(document).on(h.CLICK_DATA_API,'[data-dismiss=\"alert\"]',p._handleDismiss(new p)),g.fn[o]=p._jQueryInterface,g.fn[o].Constructor=p,g.fn[o].noConflict=function(){return g.fn[o]=c,p._jQueryInterface};var v=\"button\",y=\"bs.button\",E=\".\"+y,C=\".data-api\",T=g.fn[v],S=\"active\",b=\"btn\",I=\"focus\",D='[data-toggle^=\"button\"]',w='[data-toggle=\"buttons\"]',A='input:not([type=\"hidden\"])',N=\".active\",O=\".btn\",k={CLICK_DATA_API:\"click\"+E+C,FOCUS_BLUR_DATA_API:\"focus\"+E+C+\" blur\"+E+C},P=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(w)[0];if(n){var i=this._element.querySelector(A);if(i){if(\"radio\"===i.type)if(i.checked&&this._element.classList.contains(S))t=!1;else{var o=n.querySelector(N);o&&g(o).removeClass(S)}if(t){if(i.hasAttribute(\"disabled\")||n.hasAttribute(\"disabled\")||i.classList.contains(\"disabled\")||n.classList.contains(\"disabled\"))return;i.checked=!this._element.classList.contains(S),g(i).trigger(\"change\")}i.focus(),e=!1}}e&&this._element.setAttribute(\"aria-pressed\",!this._element.classList.contains(S)),t&&g(this._element).toggleClass(S)},t.dispose=function(){g.removeData(this._element,y),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(y);t||(t=new n(this),g(this).data(y,t)),\"toggle\"===e&&t[e]()})},s(n,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}}]),n}();g(document).on(k.CLICK_DATA_API,D,function(t){t.preventDefault();var e=t.target;g(e).hasClass(b)||(e=g(e).closest(O)),P._jQueryInterface.call(g(e),\"toggle\")}).on(k.FOCUS_BLUR_DATA_API,D,function(t){var e=g(t.target).closest(O)[0];g(e).toggleClass(I,/^focus(in)?$/.test(t.type))}),g.fn[v]=P._jQueryInterface,g.fn[v].Constructor=P,g.fn[v].noConflict=function(){return g.fn[v]=T,P._jQueryInterface};var L=\"carousel\",j=\"bs.carousel\",H=\".\"+j,R=\".data-api\",x=g.fn[L],F={interval:5e3,keyboard:!0,slide:!1,pause:\"hover\",wrap:!0,touch:!0},U={interval:\"(number|boolean)\",keyboard:\"boolean\",slide:\"(boolean|string)\",pause:\"(string|boolean)\",wrap:\"boolean\",touch:\"boolean\"},W=\"next\",q=\"prev\",M=\"left\",K=\"right\",Q={SLIDE:\"slide\"+H,SLID:\"slid\"+H,KEYDOWN:\"keydown\"+H,MOUSEENTER:\"mouseenter\"+H,MOUSELEAVE:\"mouseleave\"+H,TOUCHSTART:\"touchstart\"+H,TOUCHMOVE:\"touchmove\"+H,TOUCHEND:\"touchend\"+H,POINTERDOWN:\"pointerdown\"+H,POINTERUP:\"pointerup\"+H,DRAG_START:\"dragstart\"+H,LOAD_DATA_API:\"load\"+H+R,CLICK_DATA_API:\"click\"+H+R},B=\"carousel\",V=\"active\",Y=\"slide\",z=\"carousel-item-right\",X=\"carousel-item-left\",$=\"carousel-item-next\",G=\"carousel-item-prev\",J=\"pointer-event\",Z=\".active\",tt=\".active.carousel-item\",et=\".carousel-item\",nt=\".carousel-item img\",it=\".carousel-item-next, .carousel-item-prev\",ot=\".carousel-indicators\",rt=\"[data-slide], [data-slide-to]\",st='[data-ride=\"carousel\"]',at={TOUCH:\"touch\",PEN:\"pen\"},lt=function(){function r(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(ot),this._touchSupported=\"ontouchstart\"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=r.prototype;return t.next=function(){this._isSliding||this._slide(W)},t.nextWhenVisible=function(){!document.hidden&&g(this._element).is(\":visible\")&&\"hidden\"!==g(this._element).css(\"visibility\")&&this.next()},t.prev=function(){this._isSliding||this._slide(q)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(it)&&(_.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(tt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)g(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?W:q;this._slide(i,this._items[t])}},t.dispose=function(){g(this._element).off(H),g.removeData(this._element,j),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},F,t),_.typeCheckConfig(L,t,U),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&g(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),\"hover\"===this._config.pause&&g(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var e=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),\"hover\"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))};g(this._element.querySelectorAll(nt)).on(Q.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(g(this._element).on(Q.POINTERDOWN,function(t){return e(t)}),g(this._element).on(Q.POINTERUP,function(t){return i(t)}),this._element.classList.add(J)):(g(this._element).on(Q.TOUCHSTART,function(t){return e(t)}),g(this._element).on(Q.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),g(this._element).on(Q.TOUCHEND,function(t){return i(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===W,i=t===q,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===q?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(tt)),o=g.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return g(this._element).trigger(o),o},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Z));g(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&g(n).addClass(V)}},t._slide=function(t,e){var n,i,o,r=this,s=this._element.querySelector(tt),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(o=t===W?(n=X,i=$,M):(n=z,i=G,K),l&&g(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=g.Event(Q.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(g(this._element).hasClass(Y)){g(l).addClass(i),_.reflow(l),g(s).addClass(n),g(l).addClass(n);var f=parseInt(l.getAttribute(\"data-interval\"),10);this._config.interval=f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,f):this._config.defaultInterval||this._config.interval;var d=_.getTransitionDurationFromElement(s);g(s).one(_.TRANSITION_END,function(){g(l).removeClass(n+\" \"+i).addClass(V),g(s).removeClass(V+\" \"+i+\" \"+n),r._isSliding=!1,setTimeout(function(){return g(r._element).trigger(u)},0)}).emulateTransitionEnd(d)}else g(s).removeClass(V),g(l).addClass(V),this._isSliding=!1,g(this._element).trigger(u);h&&this.cycle()}},r._jQueryInterface=function(i){return this.each(function(){var t=g(this).data(j),e=l({},F,g(this).data());\"object\"==typeof i&&(e=l({},e,i));var n=\"string\"==typeof i?i:e.slide;if(t||(t=new r(this,e),g(this).data(j,t)),\"number\"==typeof i)t.to(i);else if(\"string\"==typeof n){if(\"undefined\"==typeof t[n])throw new TypeError('No method named \"'+n+'\"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},r._dataApiClickHandler=function(t){var e=_.getSelectorFromElement(this);if(e){var n=g(e)[0];if(n&&g(n).hasClass(B)){var i=l({},g(n).data(),g(this).data()),o=this.getAttribute(\"data-slide-to\");o&&(i.interval=!1),r._jQueryInterface.call(g(n),i),o&&g(n).data(j).to(o),t.preventDefault()}}},s(r,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"Default\",get:function(){return F}}]),r}();g(document).on(Q.CLICK_DATA_API,rt,lt._dataApiClickHandler),g(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(st)),e=0,n=t.length;e<n;e++){var i=g(t[e]);lt._jQueryInterface.call(i,i.data())}}),g.fn[L]=lt._jQueryInterface,g.fn[L].Constructor=lt,g.fn[L].noConflict=function(){return g.fn[L]=x,lt._jQueryInterface};var ct=\"collapse\",ht=\"bs.collapse\",ut=\".\"+ht,ft=g.fn[ct],dt={toggle:!0,parent:\"\"},gt={toggle:\"boolean\",parent:\"(string|element)\"},_t={SHOW:\"show\"+ut,SHOWN:\"shown\"+ut,HIDE:\"hide\"+ut,HIDDEN:\"hidden\"+ut,CLICK_DATA_API:\"click\"+ut+\".data-api\"},mt=\"show\",pt=\"collapse\",vt=\"collapsing\",yt=\"collapsed\",Et=\"width\",Ct=\"height\",Tt=\".show, .collapsing\",St='[data-toggle=\"collapse\"]',bt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle=\"collapse\"][href=\"#'+e.id+'\"],[data-toggle=\"collapse\"][data-target=\"#'+e.id+'\"]'));for(var n=[].slice.call(document.querySelectorAll(St)),i=0,o=n.length;i<o;i++){var r=n[i],s=_.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){g(this._element).hasClass(mt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!g(this._element).hasClass(mt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Tt)).filter(function(t){return\"string\"==typeof n._config.parent?t.getAttribute(\"data-parent\")===n._config.parent:t.classList.contains(pt)})).length&&(t=null),!(t&&(e=g(t).not(this._selector).data(ht))&&e._isTransitioning))){var i=g.Event(_t.SHOW);if(g(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(g(t).not(this._selector),\"hide\"),e||g(t).data(ht,null));var o=this._getDimension();g(this._element).removeClass(pt).addClass(vt),this._element.style[o]=0,this._triggerArray.length&&g(this._triggerArray).removeClass(yt).attr(\"aria-expanded\",!0),this.setTransitioning(!0);var r=\"scroll\"+(o[0].toUpperCase()+o.slice(1)),s=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){g(n._element).removeClass(vt).addClass(pt).addClass(mt),n._element.style[o]=\"\",n.setTransitioning(!1),g(n._element).trigger(_t.SHOWN)}).emulateTransitionEnd(s),this._element.style[o]=this._element[r]+\"px\"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&g(this._element).hasClass(mt)){var e=g.Event(_t.HIDE);if(g(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+\"px\",_.reflow(this._element),g(this._element).addClass(vt).removeClass(pt).removeClass(mt);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=_.getSelectorFromElement(r);if(null!==s)g([].slice.call(document.querySelectorAll(s))).hasClass(mt)||g(r).addClass(yt).attr(\"aria-expanded\",!1)}this.setTransitioning(!0);this._element.style[n]=\"\";var a=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){t.setTransitioning(!1),g(t._element).removeClass(vt).addClass(pt).trigger(_t.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){g.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},dt,t)).toggle=Boolean(t.toggle),_.typeCheckConfig(ct,t,gt),t},t._getDimension=function(){return g(this._element).hasClass(Et)?Et:Ct},t._getParent=function(){var t,n=this;_.isElement(this._config.parent)?(t=this._config.parent,\"undefined\"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle=\"collapse\"][data-parent=\"'+this._config.parent+'\"]',i=[].slice.call(t.querySelectorAll(e));return g(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var n=g(t).hasClass(mt);e.length&&g(e).toggleClass(yt,!n).attr(\"aria-expanded\",n)},a._getTargetFromElement=function(t){var e=_.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=g(this),e=t.data(ht),n=l({},dt,t.data(),\"object\"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(ht,e)),\"string\"==typeof i){if(\"undefined\"==typeof e[i])throw new TypeError('No method named \"'+i+'\"');e[i]()}})},s(a,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"Default\",get:function(){return dt}}]),a}();g(document).on(_t.CLICK_DATA_API,St,function(t){\"A\"===t.currentTarget.tagName&&t.preventDefault();var n=g(this),e=_.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));g(i).each(function(){var t=g(this),e=t.data(ht)?\"toggle\":n.data();bt._jQueryInterface.call(t,e)})}),g.fn[ct]=bt._jQueryInterface,g.fn[ct].Constructor=bt,g.fn[ct].noConflict=function(){return g.fn[ct]=ft,bt._jQueryInterface};var It=\"dropdown\",Dt=\"bs.dropdown\",wt=\".\"+Dt,At=\".data-api\",Nt=g.fn[It],Ot=new RegExp(\"38|40|27\"),kt={HIDE:\"hide\"+wt,HIDDEN:\"hidden\"+wt,SHOW:\"show\"+wt,SHOWN:\"shown\"+wt,CLICK:\"click\"+wt,CLICK_DATA_API:\"click\"+wt+At,KEYDOWN_DATA_API:\"keydown\"+wt+At,KEYUP_DATA_API:\"keyup\"+wt+At},Pt=\"disabled\",Lt=\"show\",jt=\"dropup\",Ht=\"dropright\",Rt=\"dropleft\",xt=\"dropdown-menu-right\",Ft=\"position-static\",Ut='[data-toggle=\"dropdown\"]',Wt=\".dropdown form\",qt=\".dropdown-menu\",Mt=\".navbar-nav\",Kt=\".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)\",Qt=\"top-start\",Bt=\"top-end\",Vt=\"bottom-start\",Yt=\"bottom-end\",zt=\"right-start\",Xt=\"left-start\",$t={offset:0,flip:!0,boundary:\"scrollParent\",reference:\"toggle\",display:\"dynamic\"},Gt={offset:\"(number|string|function)\",flip:\"boolean\",boundary:\"(string|element)\",reference:\"(string|element)\",display:\"string\"},Jt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)){var t=c._getParentFromElement(this._element),e=g(this._menu).hasClass(Lt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=g.Event(kt.SHOW,n);if(g(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if(\"undefined\"==typeof u)throw new TypeError(\"Bootstrap's dropdowns require Popper.js (https://popper.js.org/)\");var o=this._element;\"parent\"===this._config.reference?o=t:_.isElement(this._config.reference)&&(o=this._config.reference,\"undefined\"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),\"scrollParent\"!==this._config.boundary&&g(t).addClass(Ft),this._popper=new u(o,this._menu,this._getPopperConfig())}\"ontouchstart\"in document.documentElement&&0===g(t).closest(Mt).length&&g(document.body).children().on(\"mouseover\",null,g.noop),this._element.focus(),this._element.setAttribute(\"aria-expanded\",!0),g(this._menu).toggleClass(Lt),g(t).toggleClass(Lt).trigger(g.Event(kt.SHOWN,n))}}}},t.show=function(){if(!(this._element.disabled||g(this._element).hasClass(Pt)||g(this._menu).hasClass(Lt))){var t={relatedTarget:this._element},e=g.Event(kt.SHOW,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)&&g(this._menu).hasClass(Lt)){var t={relatedTarget:this._element},e=g.Event(kt.HIDE,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.HIDDEN,t)))}},t.dispose=function(){g.removeData(this._element,Dt),g(this._element).off(wt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;g(this._element).on(kt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,g(this._element).data(),t),_.typeCheckConfig(It,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=g(this._element.parentNode),e=Vt;return t.hasClass(jt)?(e=Qt,g(this._menu).hasClass(xt)&&(e=Bt)):t.hasClass(Ht)?e=zt:t.hasClass(Rt)?e=Xt:g(this._menu).hasClass(xt)&&(e=Yt),e},t._detectNavbar=function(){return 0<g(this._element).closest(\".navbar\").length},t._getOffset=function(){var e=this,t={};return\"function\"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return\"static\"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},c._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(Dt);if(t||(t=new c(this,\"object\"==typeof e?e:null),g(this).data(Dt,t)),\"string\"==typeof e){if(\"undefined\"==typeof t[e])throw new TypeError('No method named \"'+e+'\"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&(\"keyup\"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Ut)),n=0,i=e.length;n<i;n++){var o=c._getParentFromElement(e[n]),r=g(e[n]).data(Dt),s={relatedTarget:e[n]};if(t&&\"click\"===t.type&&(s.clickEvent=t),r){var a=r._menu;if(g(o).hasClass(Lt)&&!(t&&(\"click\"===t.type&&/input|textarea/i.test(t.target.tagName)||\"keyup\"===t.type&&9===t.which)&&g.contains(o,t.target))){var l=g.Event(kt.HIDE,s);g(o).trigger(l),l.isDefaultPrevented()||(\"ontouchstart\"in document.documentElement&&g(document.body).children().off(\"mouseover\",null,g.noop),e[n].setAttribute(\"aria-expanded\",\"false\"),g(a).removeClass(Lt),g(o).removeClass(Lt).trigger(g.Event(kt.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=_.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||g(t.target).closest(qt).length)):Ot.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!g(this).hasClass(Pt))){var e=c._getParentFromElement(this),n=g(e).hasClass(Lt);if(n&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var o=i.indexOf(t.target);38===t.which&&0<o&&o--,40===t.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===t.which){var r=e.querySelector(Ut);g(r).trigger(\"focus\")}g(this).trigger(\"click\")}}},s(c,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"Default\",get:function(){return $t}},{key:\"DefaultType\",get:function(){return Gt}}]),c}();g(document).on(kt.KEYDOWN_DATA_API,Ut,Jt._dataApiKeydownHandler).on(kt.KEYDOWN_DATA_API,qt,Jt._dataApiKeydownHandler).on(kt.CLICK_DATA_API+\" \"+kt.KEYUP_DATA_API,Jt._clearMenus).on(kt.CLICK_DATA_API,Ut,function(t){t.preventDefault(),t.stopPropagation(),Jt._jQueryInterface.call(g(this),\"toggle\")}).on(kt.CLICK_DATA_API,Wt,function(t){t.stopPropagation()}),g.fn[It]=Jt._jQueryInterface,g.fn[It].Constructor=Jt,g.fn[It].noConflict=function(){return g.fn[It]=Nt,Jt._jQueryInterface};var Zt=\"modal\",te=\"bs.modal\",ee=\".\"+te,ne=g.fn[Zt],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},oe={backdrop:\"(boolean|string)\",keyboard:\"boolean\",focus:\"boolean\",show:\"boolean\"},re={HIDE:\"hide\"+ee,HIDDEN:\"hidden\"+ee,SHOW:\"show\"+ee,SHOWN:\"shown\"+ee,FOCUSIN:\"focusin\"+ee,RESIZE:\"resize\"+ee,CLICK_DISMISS:\"click.dismiss\"+ee,KEYDOWN_DISMISS:\"keydown.dismiss\"+ee,MOUSEUP_DISMISS:\"mouseup.dismiss\"+ee,MOUSEDOWN_DISMISS:\"mousedown.dismiss\"+ee,CLICK_DATA_API:\"click\"+ee+\".data-api\"},se=\"modal-dialog-scrollable\",ae=\"modal-scrollbar-measure\",le=\"modal-backdrop\",ce=\"modal-open\",he=\"fade\",ue=\"show\",fe=\".modal-dialog\",de=\".modal-body\",ge='[data-toggle=\"modal\"]',_e='[data-dismiss=\"modal\"]',me=\".fixed-top, .fixed-bottom, .is-fixed, .sticky-top\",pe=\".sticky-top\",ve=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(fe),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){g(this._element).hasClass(he)&&(this._isTransitioning=!0);var n=g.Event(re.SHOW,{relatedTarget:t});g(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g(this._element).on(re.CLICK_DISMISS,_e,function(t){return e.hide(t)}),g(this._dialog).on(re.MOUSEDOWN_DISMISS,function(){g(e._element).one(re.MOUSEUP_DISMISS,function(t){g(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=g.Event(re.HIDE);if(g(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=g(this._element).hasClass(he);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g(document).off(re.FOCUSIN),g(this._element).removeClass(ue),g(this._element).off(re.CLICK_DISMISS),g(this._dialog).off(re.MOUSEDOWN_DISMISS),i){var o=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return g(t).off(ee)}),g(document).off(re.FOCUSIN),g.removeData(this._element,te),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ie,t),_.typeCheckConfig(Zt,t,oe),t},t._showElement=function(t){var e=this,n=g(this._element).hasClass(he);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display=\"block\",this._element.removeAttribute(\"aria-hidden\"),this._element.setAttribute(\"aria-modal\",!0),g(this._dialog).hasClass(se)?this._dialog.querySelector(de).scrollTop=0:this._element.scrollTop=0,n&&_.reflow(this._element),g(this._element).addClass(ue),this._config.focus&&this._enforceFocus();var i=g.Event(re.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,g(e._element).trigger(i)};if(n){var r=_.getTransitionDurationFromElement(this._dialog);g(this._dialog).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;g(document).off(re.FOCUSIN).on(re.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===g(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?g(this._element).on(re.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||g(this._element).off(re.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?g(window).on(re.RESIZE,function(t){return e.handleUpdate(t)}):g(window).off(re.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display=\"none\",this._element.setAttribute(\"aria-hidden\",!0),this._element.removeAttribute(\"aria-modal\"),this._isTransitioning=!1,this._showBackdrop(function(){g(document.body).removeClass(ce),t._resetAdjustments(),t._resetScrollbar(),g(t._element).trigger(re.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(g(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=g(this._element).hasClass(he)?he:\"\";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement(\"div\"),this._backdrop.className=le,n&&this._backdrop.classList.add(n),g(this._backdrop).appendTo(document.body),g(this._element).on(re.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&(\"static\"===e._config.backdrop?e._element.focus():e.hide())}),n&&_.reflow(this._backdrop),g(this._backdrop).addClass(ue),!t)return;if(!n)return void t();var i=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){g(this._backdrop).removeClass(ue);var o=function(){e._removeBackdrop(),t&&t()};if(g(this._element).hasClass(he)){var r=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+\"px\"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+\"px\")},t._resetAdjustments=function(){this._element.style.paddingLeft=\"\",this._element.style.paddingRight=\"\"},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(me)),e=[].slice.call(document.querySelectorAll(pe));g(t).each(function(t,e){var n=e.style.paddingRight,i=g(e).css(\"padding-right\");g(e).data(\"padding-right\",n).css(\"padding-right\",parseFloat(i)+o._scrollbarWidth+\"px\")}),g(e).each(function(t,e){var n=e.style.marginRight,i=g(e).css(\"margin-right\");g(e).data(\"margin-right\",n).css(\"margin-right\",parseFloat(i)-o._scrollbarWidth+\"px\")});var n=document.body.style.paddingRight,i=g(document.body).css(\"padding-right\");g(document.body).data(\"padding-right\",n).css(\"padding-right\",parseFloat(i)+this._scrollbarWidth+\"px\")}g(document.body).addClass(ce)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(me));g(t).each(function(t,e){var n=g(e).data(\"padding-right\");g(e).removeData(\"padding-right\"),e.style.paddingRight=n||\"\"});var e=[].slice.call(document.querySelectorAll(\"\"+pe));g(e).each(function(t,e){var n=g(e).data(\"margin-right\");\"undefined\"!=typeof n&&g(e).css(\"margin-right\",n).removeData(\"margin-right\")});var n=g(document.body).data(\"padding-right\");g(document.body).removeData(\"padding-right\"),document.body.style.paddingRight=n||\"\"},t._getScrollbarWidth=function(){var t=document.createElement(\"div\");t.className=ae,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=g(this).data(te),e=l({},ie,g(this).data(),\"object\"==typeof n&&n?n:{});if(t||(t=new o(this,e),g(this).data(te,t)),\"string\"==typeof n){if(\"undefined\"==typeof t[n])throw new TypeError('No method named \"'+n+'\"');t[n](i)}else e.show&&t.show(i)})},s(o,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"Default\",get:function(){return ie}}]),o}();g(document).on(re.CLICK_DATA_API,ge,function(t){var e,n=this,i=_.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=g(e).data(te)?\"toggle\":l({},g(e).data(),g(this).data());\"A\"!==this.tagName&&\"AREA\"!==this.tagName||t.preventDefault();var r=g(e).one(re.SHOW,function(t){t.isDefaultPrevented()||r.one(re.HIDDEN,function(){g(n).is(\":visible\")&&n.focus()})});ve._jQueryInterface.call(g(e),o,this)}),g.fn[Zt]=ve._jQueryInterface,g.fn[Zt].Constructor=ve,g.fn[Zt].noConflict=function(){return g.fn[Zt]=ne,ve._jQueryInterface};var ye=[\"background\",\"cite\",\"href\",\"itemtype\",\"longdesc\",\"poster\",\"src\",\"xlink:href\"],Ee={\"*\":[\"class\",\"dir\",\"id\",\"lang\",\"role\",/^aria-[\\w-]*$/i],a:[\"target\",\"href\",\"title\",\"rel\"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[\"src\",\"alt\",\"title\",\"width\",\"height\"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Te=/^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Se(t,s,e){if(0===t.length)return t;if(e&&\"function\"==typeof e)return e(t);for(var n=(new window.DOMParser).parseFromString(t,\"text/html\"),a=Object.keys(s),l=[].slice.call(n.body.querySelectorAll(\"*\")),i=function(t,e){var n=l[t],i=n.nodeName.toLowerCase();if(-1===a.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),\"continue\";var o=[].slice.call(n.attributes),r=[].concat(s[\"*\"]||[],s[i]||[]);o.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===ye.indexOf(n)||Boolean(t.nodeValue.match(Ce)||t.nodeValue.match(Te));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1})(t,r)||n.removeAttribute(t.nodeName)})},o=0,r=l.length;o<r;o++)i(o);return n.body.innerHTML}var be=\"tooltip\",Ie=\"bs.tooltip\",De=\".\"+Ie,we=g.fn[be],Ae=\"bs-tooltip\",Ne=new RegExp(\"(^|\\\\s)\"+Ae+\"\\\\S+\",\"g\"),Oe=[\"sanitize\",\"whiteList\",\"sanitizeFn\"],ke={animation:\"boolean\",template:\"string\",title:\"(string|element|function)\",trigger:\"string\",delay:\"(number|object)\",html:\"boolean\",selector:\"(string|boolean)\",placement:\"(string|function)\",offset:\"(number|string|function)\",container:\"(string|element|boolean)\",fallbackPlacement:\"(string|array)\",boundary:\"(string|element)\",sanitize:\"boolean\",sanitizeFn:\"(null|function)\",whiteList:\"object\"},Pe={AUTO:\"auto\",TOP:\"top\",RIGHT:\"right\",BOTTOM:\"bottom\",LEFT:\"left\"},Le={animation:!0,template:'<div class=\"tooltip\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"tooltip-inner\"></div></div>',trigger:\"hover focus\",title:\"\",delay:0,html:!1,selector:!1,placement:\"top\",offset:0,container:!1,fallbackPlacement:\"flip\",boundary:\"scrollParent\",sanitize:!0,sanitizeFn:null,whiteList:Ee},je=\"show\",He=\"out\",Re={HIDE:\"hide\"+De,HIDDEN:\"hidden\"+De,SHOW:\"show\"+De,SHOWN:\"shown\"+De,INSERTED:\"inserted\"+De,CLICK:\"click\"+De,FOCUSIN:\"focusin\"+De,FOCUSOUT:\"focusout\"+De,MOUSEENTER:\"mouseenter\"+De,MOUSELEAVE:\"mouseleave\"+De},xe=\"fade\",Fe=\"show\",Ue=\".tooltip-inner\",We=\".arrow\",qe=\"hover\",Me=\"focus\",Ke=\"click\",Qe=\"manual\",Be=function(){function i(t,e){if(\"undefined\"==typeof u)throw new TypeError(\"Bootstrap's tooltips require Popper.js (https://popper.js.org/)\");this._isEnabled=!0,this._timeout=0,this._hoverState=\"\",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=g(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.getTipElement()).hasClass(Fe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),g.removeData(this.element,this.constructor.DATA_KEY),g(this.element).off(this.constructor.EVENT_KEY),g(this.element).closest(\".modal\").off(\"hide.bs.modal\"),this.tip&&g(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if(\"none\"===g(this.element).css(\"display\"))throw new Error(\"Please use show on visible elements\");var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var n=_.findShadowRoot(this.element),i=g.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=_.getUID(this.constructor.NAME);o.setAttribute(\"id\",r),this.element.setAttribute(\"aria-describedby\",r),this.setContent(),this.config.animation&&g(o).addClass(xe);var s=\"function\"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();g(o).data(this.constructor.DATA_KEY,this),g.contains(this.element.ownerDocument.documentElement,this.tip)||g(o).appendTo(l),g(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,o,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:We},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),g(o).addClass(Fe),\"ontouchstart\"in document.documentElement&&g(document.body).children().on(\"mouseover\",null,g.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,g(e.element).trigger(e.constructor.Event.SHOWN),t===He&&e._leave(null,e)};if(g(this.tip).hasClass(xe)){var h=_.getTransitionDurationFromElement(this.tip);g(this.tip).one(_.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=g.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==je&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute(\"aria-describedby\"),g(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(g(this.element).trigger(i),!i.isDefaultPrevented()){if(g(n).removeClass(Fe),\"ontouchstart\"in document.documentElement&&g(document.body).children().off(\"mouseover\",null,g.noop),this._activeTrigger[Ke]=!1,this._activeTrigger[Me]=!1,this._activeTrigger[qe]=!1,g(this.tip).hasClass(xe)){var r=_.getTransitionDurationFromElement(n);g(n).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=\"\"}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Ae+\"-\"+t)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(Ue)),this.getTitle()),g(t).removeClass(xe+\" \"+Fe)},t.setElementContent=function(t,e){\"object\"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Se(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text())},t.getTitle=function(){var t=this.element.getAttribute(\"data-original-title\");return t||(t=\"function\"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return\"function\"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:_.isElement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getAttachment=function(t){return Pe[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(\" \").forEach(function(t){if(\"click\"===t)g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Qe){var e=t===qe?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===qe?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),g(this.element).closest(\".modal\").on(\"hide.bs.modal\",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:\"manual\",selector:\"\"}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute(\"data-original-title\");(this.element.getAttribute(\"title\")||\"string\"!==t)&&(this.element.setAttribute(\"data-original-title\",this.element.getAttribute(\"title\")||\"\"),this.element.setAttribute(\"title\",\"\"))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger[\"focusin\"===t.type?Me:qe]=!0),g(e.getTipElement()).hasClass(Fe)||e._hoverState===je?e._hoverState=je:(clearTimeout(e._timeout),e._hoverState=je,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===je&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger[\"focusout\"===t.type?Me:qe]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=He,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===He&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=g(this.element).data();return Object.keys(e).forEach(function(t){-1!==Oe.indexOf(t)&&delete e[t]}),\"number\"==typeof(t=l({},this.constructor.Default,e,\"object\"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),\"number\"==typeof t.title&&(t.title=t.title.toString()),\"number\"==typeof t.content&&(t.content=t.content.toString()),_.typeCheckConfig(be,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr(\"class\").match(Ne);null!==e&&e.length&&t.removeClass(e.join(\"\"))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute(\"x-placement\")&&(g(t).removeClass(xe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ie),e=\"object\"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ie,t)),\"string\"==typeof n)){if(\"undefined\"==typeof t[n])throw new TypeError('No method named \"'+n+'\"');t[n]()}})},s(i,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"Default\",get:function(){return Le}},{key:\"NAME\",get:function(){return be}},{key:\"DATA_KEY\",get:function(){return Ie}},{key:\"Event\",get:function(){return Re}},{key:\"EVENT_KEY\",get:function(){return De}},{key:\"DefaultType\",get:function(){return ke}}]),i}();g.fn[be]=Be._jQueryInterface,g.fn[be].Constructor=Be,g.fn[be].noConflict=function(){return g.fn[be]=we,Be._jQueryInterface};var Ve=\"popover\",Ye=\"bs.popover\",ze=\".\"+Ye,Xe=g.fn[Ve],$e=\"bs-popover\",Ge=new RegExp(\"(^|\\\\s)\"+$e+\"\\\\S+\",\"g\"),Je=l({},Be.Default,{placement:\"right\",trigger:\"click\",content:\"\",template:'<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"></div><h3 class=\"popover-header\"></h3><div class=\"popover-body\"></div></div>'}),Ze=l({},Be.DefaultType,{content:\"(string|element|function)\"}),tn=\"fade\",en=\"show\",nn=\".popover-header\",on=\".popover-body\",rn={HIDE:\"hide\"+ze,HIDDEN:\"hidden\"+ze,SHOW:\"show\"+ze,SHOWN:\"shown\"+ze,INSERTED:\"inserted\"+ze,CLICK:\"click\"+ze,FOCUSIN:\"focusin\"+ze,FOCUSOUT:\"focusout\"+ze,MOUSEENTER:\"mouseenter\"+ze,MOUSELEAVE:\"mouseleave\"+ze},sn=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){g(this.getTipElement()).addClass($e+\"-\"+t)},o.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setContent=function(){var t=g(this.getTipElement());this.setElementContent(t.find(nn),this.getTitle());var e=this._getContent();\"function\"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(on),e),t.removeClass(tn+\" \"+en)},o._getContent=function(){return this.element.getAttribute(\"data-content\")||this.config.content},o._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr(\"class\").match(Ge);null!==e&&0<e.length&&t.removeClass(e.join(\"\"))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ye),e=\"object\"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ye,t)),\"string\"==typeof n)){if(\"undefined\"==typeof t[n])throw new TypeError('No method named \"'+n+'\"');t[n]()}})},s(i,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"Default\",get:function(){return Je}},{key:\"NAME\",get:function(){return Ve}},{key:\"DATA_KEY\",get:function(){return Ye}},{key:\"Event\",get:function(){return rn}},{key:\"EVENT_KEY\",get:function(){return ze}},{key:\"DefaultType\",get:function(){return Ze}}]),i}(Be);g.fn[Ve]=sn._jQueryInterface,g.fn[Ve].Constructor=sn,g.fn[Ve].noConflict=function(){return g.fn[Ve]=Xe,sn._jQueryInterface};var an=\"scrollspy\",ln=\"bs.scrollspy\",cn=\".\"+ln,hn=g.fn[an],un={offset:10,method:\"auto\",target:\"\"},fn={offset:\"number\",method:\"string\",target:\"(string|element)\"},dn={ACTIVATE:\"activate\"+cn,SCROLL:\"scroll\"+cn,LOAD_DATA_API:\"load\"+cn+\".data-api\"},gn=\"dropdown-item\",_n=\"active\",mn='[data-spy=\"scroll\"]',pn=\".nav, .list-group\",vn=\".nav-link\",yn=\".nav-item\",En=\".list-group-item\",Cn=\".dropdown\",Tn=\".dropdown-item\",Sn=\".dropdown-toggle\",bn=\"offset\",In=\"position\",Dn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement=\"BODY\"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+\" \"+vn+\",\"+this._config.target+\" \"+En+\",\"+this._config.target+\" \"+Tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g(this._scrollElement).on(dn.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?bn:In,o=\"auto\"===this._config.method?t:this._config.method,r=o===In?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=_.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[g(e)[o]().top+r,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){g.removeData(this._element,ln),g(this._scrollElement).off(cn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if(\"string\"!=typeof(t=l({},un,\"object\"==typeof t&&t?t:{})).target){var e=g(t.target).attr(\"id\");e||(e=_.getUID(an),g(t.target).attr(\"id\",e)),t.target=\"#\"+e}return _.typeCheckConfig(an,t,fn),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(\"undefined\"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(\",\").map(function(t){return t+'[data-target=\"'+e+'\"],'+t+'[href=\"'+e+'\"]'}),n=g([].slice.call(document.querySelectorAll(t.join(\",\"))));n.hasClass(gn)?(n.closest(Cn).find(Sn).addClass(_n),n.addClass(_n)):(n.addClass(_n),n.parents(pn).prev(vn+\", \"+En).addClass(_n),n.parents(pn).prev(yn).children(vn).addClass(_n)),g(this._scrollElement).trigger(dn.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(_n)}).forEach(function(t){return t.classList.remove(_n)})},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(ln);if(t||(t=new n(this,\"object\"==typeof e&&e),g(this).data(ln,t)),\"string\"==typeof e){if(\"undefined\"==typeof t[e])throw new TypeError('No method named \"'+e+'\"');t[e]()}})},s(n,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"Default\",get:function(){return un}}]),n}();g(window).on(dn.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(mn)),e=t.length;e--;){var n=g(t[e]);Dn._jQueryInterface.call(n,n.data())}}),g.fn[an]=Dn._jQueryInterface,g.fn[an].Constructor=Dn,g.fn[an].noConflict=function(){return g.fn[an]=hn,Dn._jQueryInterface};var wn=\"bs.tab\",An=\".\"+wn,Nn=g.fn.tab,On={HIDE:\"hide\"+An,HIDDEN:\"hidden\"+An,SHOW:\"show\"+An,SHOWN:\"shown\"+An,CLICK_DATA_API:\"click\"+An+\".data-api\"},kn=\"dropdown-menu\",Pn=\"active\",Ln=\"disabled\",jn=\"fade\",Hn=\"show\",Rn=\".dropdown\",xn=\".nav, .list-group\",Fn=\".active\",Un=\"> li > .active\",Wn='[data-toggle=\"tab\"], [data-toggle=\"pill\"], [data-toggle=\"list\"]',qn=\".dropdown-toggle\",Mn=\"> .dropdown-menu .active\",Kn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(Pn)||g(this._element).hasClass(Ln))){var t,i,e=g(this._element).closest(xn)[0],o=_.getSelectorFromElement(this._element);if(e){var r=\"UL\"===e.nodeName||\"OL\"===e.nodeName?Un:Fn;i=(i=g.makeArray(g(e).find(r)))[i.length-1]}var s=g.Event(On.HIDE,{relatedTarget:this._element}),a=g.Event(On.SHOW,{relatedTarget:i});if(i&&g(i).trigger(s),g(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,e);var l=function(){var t=g.Event(On.HIDDEN,{relatedTarget:n._element}),e=g.Event(On.SHOWN,{relatedTarget:i});g(i).trigger(t),g(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){g.removeData(this._element,wn),this._element=null},t._activate=function(t,e,n){var i=this,o=(!e||\"UL\"!==e.nodeName&&\"OL\"!==e.nodeName?g(e).children(Fn):g(e).find(Un))[0],r=n&&o&&g(o).hasClass(jn),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=_.getTransitionDurationFromElement(o);g(o).removeClass(Hn).one(_.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){g(e).removeClass(Pn);var i=g(e.parentNode).find(Mn)[0];i&&g(i).removeClass(Pn),\"tab\"===e.getAttribute(\"role\")&&e.setAttribute(\"aria-selected\",!1)}if(g(t).addClass(Pn),\"tab\"===t.getAttribute(\"role\")&&t.setAttribute(\"aria-selected\",!0),_.reflow(t),t.classList.contains(jn)&&t.classList.add(Hn),t.parentNode&&g(t.parentNode).hasClass(kn)){var o=g(t).closest(Rn)[0];if(o){var r=[].slice.call(o.querySelectorAll(qn));g(r).addClass(Pn)}t.setAttribute(\"aria-expanded\",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(wn);if(e||(e=new i(this),t.data(wn,e)),\"string\"==typeof n){if(\"undefined\"==typeof e[n])throw new TypeError('No method named \"'+n+'\"');e[n]()}})},s(i,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}}]),i}();g(document).on(On.CLICK_DATA_API,Wn,function(t){t.preventDefault(),Kn._jQueryInterface.call(g(this),\"show\")}),g.fn.tab=Kn._jQueryInterface,g.fn.tab.Constructor=Kn,g.fn.tab.noConflict=function(){return g.fn.tab=Nn,Kn._jQueryInterface};var Qn=\"toast\",Bn=\"bs.toast\",Vn=\".\"+Bn,Yn=g.fn[Qn],zn={CLICK_DISMISS:\"click.dismiss\"+Vn,HIDE:\"hide\"+Vn,HIDDEN:\"hidden\"+Vn,SHOW:\"show\"+Vn,SHOWN:\"shown\"+Vn},Xn=\"fade\",$n=\"hide\",Gn=\"show\",Jn=\"showing\",Zn={animation:\"boolean\",autohide:\"boolean\",delay:\"number\"},ti={animation:!0,autohide:!0,delay:500},ei='[data-dismiss=\"toast\"]',ni=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t=this;g(this._element).trigger(zn.SHOW),this._config.animation&&this._element.classList.add(Xn);var e=function(){t._element.classList.remove(Jn),t._element.classList.add(Gn),g(t._element).trigger(zn.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove($n),this._element.classList.add(Jn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Gn)&&(g(this._element).trigger(zn.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Gn)&&this._element.classList.remove(Gn),g(this._element).off(zn.CLICK_DISMISS),g.removeData(this._element,Bn),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},ti,g(this._element).data(),\"object\"==typeof t&&t?t:{}),_.typeCheckConfig(Qn,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;g(this._element).on(zn.CLICK_DISMISS,ei,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add($n),g(t._element).trigger(zn.HIDDEN)};if(this._element.classList.remove(Gn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(Bn);if(e||(e=new i(this,\"object\"==typeof n&&n),t.data(Bn,e)),\"string\"==typeof n){if(\"undefined\"==typeof e[n])throw new TypeError('No method named \"'+n+'\"');e[n](this)}})},s(i,null,[{key:\"VERSION\",get:function(){return\"4.3.1\"}},{key:\"DefaultType\",get:function(){return Zn}},{key:\"Default\",get:function(){return ti}}]),i}();g.fn[Qn]=ni._jQueryInterface,g.fn[Qn].Constructor=ni,g.fn[Qn].noConflict=function(){return g.fn[Qn]=Yn,ni._jQueryInterface},function(){if(\"undefined\"==typeof g)throw new TypeError(\"Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.\");var t=g.fn.jquery.split(\" \")[0].split(\".\");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error(\"Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0\")}(),t.Util=_,t.Alert=p,t.Button=P,t.Carousel=lt,t.Collapse=bt,t.Dropdown=Jt,t.Modal=ve,t.Popover=sn,t.Scrollspy=Dn,t.Tab=Kn,t.Toast=ni,t.Tooltip=Be,Object.defineProperty(t,\"__esModule\",{value:!0})});\n//# sourceMappingURL=bootstrap.min.js.map","/*\r\n * HS Mega Menu - jQuery Plugin\r\n * @version: 1.0.0 (Sun, 26 Feb 2017)\r\n * @requires: jQuery v1.6 or later\r\n * @author: HtmlStream\r\n * @event-namespace: .HSMegaMenu\r\n * @browser-support: IE9+\r\n * @license:\r\n *\r\n * Copyright 2017 HtmlStream\r\n *\r\n */\r\n;(function ($) {\r\n  'use strict';\r\n\r\n  /**\r\n   * Creates a mega menu.\r\n   *\r\n   * @constructor\r\n   * @param {HTMLElement|jQuery} element - The element to create the mega menu for.\r\n   * @param {Object} options - The options\r\n   */\r\n\r\n  var MegaMenu = window.MegaMenu || {};\r\n\r\n  MegaMenu = (function () {\r\n\r\n    function MegaMenu(element, options) {\r\n      var self = this;\r\n\r\n      /**\r\n       * Current element.\r\n       *\r\n       * @public\r\n       */\r\n      this.$element = $(element);\r\n\r\n      /**\r\n       * Current options set by the caller including defaults.\r\n       *\r\n       * @public\r\n       */\r\n      this.options = $.extend(true, {}, MegaMenu.defaults, options);\r\n\r\n\r\n      /**\r\n       * Collection of menu elements.\r\n       *\r\n       * @private\r\n       */\r\n      this._items = $();\r\n\r\n\r\n      Object.defineProperties(this, {\r\n\r\n        /**\r\n         * Contains composed selector of menu items.\r\n         *\r\n         * @public\r\n         */\r\n        itemsSelector: {\r\n          get: function () {\r\n            return self.options.classMap.hasSubMenu + ',' +\r\n              self.options.classMap.hasMegaMenu;\r\n          }\r\n        },\r\n\r\n        /**\r\n         * Contains chain of active items.\r\n         *\r\n         * @private\r\n         */\r\n        _tempChain: {\r\n          value: null,\r\n          writable: true\r\n        },\r\n\r\n        /**\r\n         * Contains current behavior state.\r\n         *\r\n         * @public\r\n         */\r\n        state: {\r\n          value: null,\r\n          writable: true\r\n        }\r\n\r\n      });\r\n\r\n      this.initialize();\r\n\r\n    }\r\n\r\n    return MegaMenu;\r\n\r\n  }());\r\n\r\n\r\n  /**\r\n   * Default options of the mega menu.\r\n   *\r\n   * @public\r\n   */\r\n  MegaMenu.defaults = {\r\n    event: 'hover',\r\n    direction: 'horizontal',\r\n    breakpoint: 991,\r\n    animationIn: false,\r\n    animationOut: false,\r\n\r\n    rtl: false,\r\n    hideTimeOut: 300,\r\n\r\n    // For 'vertical' direction only\r\n    sideBarRatio: 1 / 4,\r\n    pageContainer: $('body'),\r\n\r\n    classMap: {\r\n      initialized: '.hs-menu-initialized',\r\n      mobileState: '.hs-mobile-state',\r\n\r\n      subMenu: '.hs-sub-menu',\r\n      hasSubMenu: '.hs-has-sub-menu',\r\n      hasSubMenuActive: '.hs-sub-menu-opened',\r\n\r\n      megaMenu: '.hs-mega-menu',\r\n      hasMegaMenu: '.hs-has-mega-menu',\r\n      hasMegaMenuActive: '.hs-mega-menu-opened'\r\n    },\r\n\r\n    mobileSpeed: 400,\r\n    mobileEasing: 'linear',\r\n\r\n    isMenuOpened: false,\r\n\r\n    beforeOpen: function () {},\r\n    beforeClose: function () {},\r\n    afterOpen: function () {},\r\n    afterClose: function () {}\r\n  };\r\n\r\n  /**\r\n   * Initialization of the plugin.\r\n   *\r\n   * @protected\r\n   */\r\n  MegaMenu.prototype.initialize = function () {\r\n    var self = this,\r\n      $w = $(window);\r\n\r\n    if (this.options.rtl) this.$element.addClass('hs-rtl');\r\n\r\n    this.$element\r\n      .addClass(this.options.classMap.initialized.slice(1))\r\n      .addClass('hs-menu-' + this.options.direction);\r\n\r\n\r\n    // Independent events\r\n    $w.on('resize.HSMegaMenu', function (e) {\r\n\r\n      if (self.resizeTimeOutId) clearTimeout(self.resizeTimeOutId);\r\n\r\n      self.resizeTimeOutId = setTimeout(function () {\r\n\r\n        if (window.innerWidth <= self.options.breakpoint && self.state === 'desktop') self.initMobileBehavior();\r\n        else if (window.innerWidth > self.options.breakpoint && self.state === 'mobile') self.initDesktopBehavior();\r\n\r\n        self.refresh();\r\n\r\n      }, 50);\r\n\r\n    });\r\n\r\n    if(window.innerWidth >= 768) {\r\n\r\n      $(document).on('click.HSMegaMenu touchstart.HSMegaMenu', 'body', function (e) {\r\n\r\n        var $parents = $(e.target).parents(self.itemsSelector);\r\n\r\n        self.closeAll($parents.add($(e.target)));\r\n\r\n      });\r\n\r\n    }\r\n\r\n    $w.on('keyup.HSMegaMenu', function (e) {\r\n\r\n      if (e.keyCode && e.keyCode === 27) {\r\n\r\n        self.closeAll();\r\n\r\n        self.options.isMenuOpened = false;\r\n      }\r\n\r\n    });\r\n\r\n    if (window.innerWidth <= this.options.breakpoint) this.initMobileBehavior();\r\n    else if (window.innerWidth > this.options.breakpoint) this.initDesktopBehavior();\r\n\r\n    this.smartPositions();\r\n\r\n    return this;\r\n\r\n  };\r\n\r\n  MegaMenu.prototype.smartPositions = function () {\r\n\r\n    var self = this,\r\n      $submenus = this.$element.find(this.options.classMap.subMenu);\r\n\r\n    $submenus.each(function (i, el) {\r\n\r\n      MenuItem.smartPosition($(el), self.options);\r\n\r\n    });\r\n\r\n  };\r\n\r\n  /**\r\n   * Binding events to menu elements.\r\n   *\r\n   * @protected\r\n   */\r\n  MegaMenu.prototype.bindEvents = function () {\r\n\r\n    var self = this,\r\n      selector;\r\n\r\n    // Hover case\r\n    if (this.options.event === 'hover' && !_isTouch()) {\r\n      this.$element\r\n        .on(\r\n          'mouseenter.HSMegaMenu',\r\n          this.options.classMap.hasMegaMenu + ':not([data-event=\"click\"]),' +\r\n          this.options.classMap.hasSubMenu + ':not([data-event=\"click\"])',\r\n          function (e) {\r\n\r\n            var $this = $(this),\r\n              $chain = $this.parents(self.itemsSelector);\r\n\r\n            // Lazy initialization\r\n            if (!$this.data('HSMenuItem')) {\r\n              self.initMenuItem($this, self.getType($this));\r\n            }\r\n\r\n            $chain = $chain.add($this);\r\n\r\n            self.closeAll($chain);\r\n\r\n            $chain.each(function (i, el) {\r\n\r\n              var HSMenuItem = $(el).data('HSMenuItem');\r\n\r\n              if (HSMenuItem.hideTimeOutId) clearTimeout(HSMenuItem.hideTimeOutId);\r\n              HSMenuItem.desktopShow();\r\n\r\n            });\r\n\r\n            self._items = self._items.not($chain);\r\n            self._tempChain = $chain;\r\n\r\n            e.preventDefault();\r\n            e.stopPropagation();\r\n          }\r\n        )\r\n        .on(\r\n          'mouseleave.HSMegaMenu',\r\n          this.options.classMap.hasMegaMenu + ':not([data-event=\"click\"]),' +\r\n          this.options.classMap.hasSubMenu + ':not([data-event=\"click\"])',\r\n          function (e) {\r\n\r\n            if (!$(this).data('HSMenuItem')) return;\r\n\r\n            var $this = $(this),\r\n              HSMenuItem = $this.data('HSMenuItem'),\r\n              $chain = $(e.relatedTarget).parents(self.itemsSelector);\r\n\r\n            HSMenuItem.hideTimeOutId = setTimeout(function () {\r\n              self.closeAll($chain);\r\n            }, self.options.hideTimeOut);\r\n\r\n            self._items = self._items.add(self._tempChain);\r\n            self._tempChain = null;\r\n\r\n            e.preventDefault();\r\n            e.stopPropagation();\r\n          }\r\n        )\r\n        .on(\r\n          'click.HSMegaMenu touchstart.HSMegaMenu',\r\n          this.options.classMap.hasMegaMenu + '[data-event=\"click\"] > a, ' +\r\n          this.options.classMap.hasSubMenu + '[data-event=\"click\"] > a',\r\n          function (e) {\r\n\r\n            var $this = $(this).parent('[data-event=\"click\"]'),\r\n              HSMenuItem;\r\n\r\n            // Lazy initialization\r\n            if (!$this.data('HSMenuItem')) {\r\n              self.initMenuItem($this, self.getType($this));\r\n            }\r\n\r\n\r\n            self.closeAll($this.add(\r\n              $this.parents(self.itemsSelector)\r\n            ));\r\n\r\n            HSMenuItem = $this\r\n              .data('HSMenuItem');\r\n\r\n            if (HSMenuItem.isOpened) {\r\n              HSMenuItem.desktopHide();\r\n            } else {\r\n              HSMenuItem.desktopShow();\r\n            }\r\n\r\n\r\n            e.preventDefault();\r\n            e.stopPropagation();\r\n\r\n          }\r\n        );\r\n    }\r\n    // Click case\r\n    else {\r\n\r\n      this.$element\r\n        .on(\r\n          'click.HSMegaMenu',\r\n          (_isTouch() ?\r\n            this.options.classMap.hasMegaMenu + ' > a, ' +\r\n            this.options.classMap.hasSubMenu + ' > a' :\r\n            this.options.classMap.hasMegaMenu + ':not([data-event=\"hover\"]) > a,' +\r\n            this.options.classMap.hasSubMenu + ':not([data-event=\"hover\"]) > a'),\r\n          function (e) {\r\n\r\n            var $this = $(this).parent(),\r\n              HSMenuItem,\r\n              $parents = $this.parents(self.itemsSelector);\r\n\r\n            // Lazy initialization\r\n            if (!$this.data('HSMenuItem')) {\r\n              self.initMenuItem($this, self.getType($this));\r\n            }\r\n\r\n            self.closeAll($this.add(\r\n              $this.parents(self.itemsSelector)\r\n            ));\r\n\r\n            HSMenuItem = $this\r\n              .addClass('hs-event-prevented')\r\n              .data('HSMenuItem');\r\n\r\n            if (HSMenuItem.isOpened) {\r\n              HSMenuItem.desktopHide();\r\n            } else {\r\n              HSMenuItem.desktopShow();\r\n            }\r\n\r\n            e.preventDefault();\r\n            e.stopPropagation();\r\n          }\r\n        );\r\n\r\n      if (!_isTouch()) {\r\n        this.$element\r\n          .on(\r\n            'mouseenter.HSMegaMenu',\r\n            this.options.classMap.hasMegaMenu + '[data-event=\"hover\"],' +\r\n            this.options.classMap.hasSubMenu + '[data-event=\"hover\"]',\r\n            function (e) {\r\n\r\n              var $this = $(this),\r\n                $parents = $this.parents(self.itemsSelector);\r\n\r\n              // Lazy initialization\r\n              if (!$this.data('HSMenuItem')) {\r\n                self.initMenuItem($this, self.getType($this));\r\n              }\r\n\r\n              self.closeAll($this.add($parents));\r\n\r\n              $parents.add($this).each(function (i, el) {\r\n\r\n                var HSMenuItem = $(el).data('HSMenuItem');\r\n\r\n                if (HSMenuItem.hideTimeOutId) clearTimeout(HSMenuItem.hideTimeOutId);\r\n                HSMenuItem.desktopShow();\r\n\r\n              });\r\n\r\n              e.preventDefault();\r\n              e.stopPropagation();\r\n            }\r\n          )\r\n          .on(\r\n            'mouseleave.HSMegaMenu',\r\n            this.options.classMap.hasMegaMenu + '[data-event=\"hover\"],' +\r\n            this.options.classMap.hasSubMenu + '[data-event=\"hover\"]',\r\n            function (e) {\r\n\r\n              var $this = $(this),\r\n                HSMenuItem = $this.data('HSMenuItem');\r\n\r\n              HSMenuItem.hideTimeOutId = setTimeout(function () {\r\n\r\n                self.closeAll(\r\n                  $(e.relatedTarget).parents(self.itemsSelector)\r\n                );\r\n\r\n              }, self.options.hideTimeOut);\r\n\r\n              e.preventDefault();\r\n              e.stopPropagation();\r\n            }\r\n          )\r\n      }\r\n    }\r\n\r\n    this.$element.on('keydown.HSMegaMenu',\r\n      this.options.classMap.hasMegaMenu + ' > a,' +\r\n      this.options.classMap.hasSubMenu + ' > a',\r\n      function (e) {\r\n\r\n        var $this = $(this),\r\n          $parent = $this.parent(),\r\n          HSMenuItem;\r\n\r\n        // Lazy initialization\r\n        if (!$parent.data('HSMenuItem')) {\r\n\r\n          self.initMenuItem($parent, self.getType($parent));\r\n\r\n        }\r\n\r\n        HSMenuItem = $parent.data('HSMenuItem');\r\n\r\n        if ($this.is(':focus')) {\r\n\r\n          if (e.keyCode && e.keyCode === 40) {\r\n\r\n            e.preventDefault();\r\n\r\n            HSMenuItem.desktopShow();\r\n\r\n            self.options.isMenuOpened = true;\r\n\r\n          }\r\n\r\n          if (e.keyCode && e.keyCode === 13) {\r\n\r\n            if (self.options.isMenuOpened === true) {\r\n\r\n              HSMenuItem.desktopHide();\r\n\r\n              self.options.isMenuOpened = false;\r\n\r\n            } else {\r\n\r\n              HSMenuItem.desktopShow();\r\n\r\n              self.options.isMenuOpened = true;\r\n\r\n            }\r\n\r\n          }\r\n\r\n        }\r\n\r\n        $this.on('focusout', function () {\r\n\r\n          self.options.isMenuOpened = false;\r\n\r\n        });\r\n\r\n        HSMenuItem.menu.find('a').on('focusout', function () {\r\n\r\n          setTimeout(function () {\r\n\r\n            if (!HSMenuItem.menu.find('a').is(':focus')) {\r\n\r\n              HSMenuItem.desktopHide();\r\n\r\n              self.options.isMenuOpened = false;\r\n\r\n            }\r\n\r\n          });\r\n\r\n        });\r\n\r\n      })\r\n  };\r\n\r\n  /**\r\n   * Initialization of certain menu item.\r\n   *\r\n   * @protected\r\n   */\r\n  MegaMenu.prototype.initMenuItem = function (element, type) {\r\n\r\n    var self = this,\r\n      Item = new MenuItem(\r\n        element,\r\n        element.children(\r\n          self.options.classMap[type === 'mega-menu' ? 'megaMenu' : 'subMenu']\r\n        ),\r\n        $.extend(true, {type: type}, self.options, element.data()),\r\n        self.$element\r\n      );\r\n\r\n    element.data('HSMenuItem', Item);\r\n    this._items = this._items.add(element);\r\n\r\n  };\r\n\r\n  /**\r\n   * Destroys of desktop behavior, then makes initialization of mobile behavior.\r\n   *\r\n   * @protected\r\n   */\r\n  MegaMenu.prototype.initMobileBehavior = function () {\r\n\r\n    var self = this;\r\n\r\n    this.state = 'mobile';\r\n\r\n    this.$element\r\n      .off('.HSMegaMenu')\r\n      .addClass(this.options.classMap.mobileState.slice(1))\r\n      .on('click.HSMegaMenu', self.options.classMap.hasSubMenu + ' > a, ' + self.options.classMap.hasMegaMenu + ' > a', function (e) {\r\n\r\n        var $this = $(this).parent(),\r\n          MenuItemInstance;\r\n\r\n        // Lazy initialization\r\n        if (!$this.data('HSMenuItem')) {\r\n          self.initMenuItem($this, self.getType($this));\r\n        }\r\n\r\n        self.closeAll($this.parents(self.itemsSelector).add($this));\r\n\r\n        MenuItemInstance = $this\r\n          .data('HSMenuItem');\r\n\r\n        if (MenuItemInstance.isOpened) {\r\n          MenuItemInstance.mobileHide();\r\n        } else {\r\n          MenuItemInstance.mobileShow();\r\n        }\r\n\r\n        e.preventDefault();\r\n        e.stopPropagation();\r\n\r\n      })\r\n      .find(this.itemsSelector)\r\n      .not(\r\n        this.options.classMap.hasSubMenuActive + ',' +\r\n        this.options.classMap.hasMegaMenuActive\r\n      )\r\n      .children(\r\n        this.options.classMap.subMenu + ',' +\r\n        this.options.classMap.megaMenu\r\n      )\r\n      .hide();\r\n\r\n  };\r\n\r\n  /**\r\n   * Destroys of mobile behavior, then makes initialization of desktop behavior.\r\n   *\r\n   * @protected\r\n   */\r\n  MegaMenu.prototype.initDesktopBehavior = function () {\r\n\r\n    this.state = 'desktop';\r\n\r\n    this.$element\r\n      .removeClass(this.options.classMap.mobileState.slice(1))\r\n      .off('.HSMegaMenu')\r\n      .find(this.itemsSelector)\r\n      .not(\r\n        this.options.classMap.hasSubMenuActive + ',' +\r\n        this.options.classMap.hasMegaMenuActive\r\n      )\r\n      .children(\r\n        this.options.classMap.subMenu + ',' +\r\n        this.options.classMap.megaMenu\r\n      )\r\n      .hide();\r\n\r\n    this.bindEvents();\r\n\r\n  };\r\n\r\n  /**\r\n   * Hides all of opened submenus/megamenus.\r\n   *\r\n   * @param {jQuery} except - collection of elements, which shouldn't be closed.\r\n   * @return {jQuery}\r\n   * @public\r\n   */\r\n  MegaMenu.prototype.closeAll = function (except) {\r\n\r\n    var self = this;\r\n\r\n    return this._items.not(except && except.length ? except : $()).each(function (i, el) {\r\n\r\n      $(el)\r\n        .removeClass('hs-event-prevented')\r\n        .data('HSMenuItem')[self.state === 'mobile' ? 'mobileHide' : 'desktopHide']();\r\n\r\n    });\r\n\r\n  };\r\n\r\n  /**\r\n   * Returns type of sub menu based on specified menu item.\r\n   *\r\n   * @param {jQuery} item\r\n   * @return {String|null}\r\n   * @public\r\n   */\r\n  MegaMenu.prototype.getType = function (item) {\r\n\r\n    if (!item || !item.length) return null;\r\n\r\n    return item.hasClass(this.options.classMap.hasSubMenu.slice(1)) ? 'sub-menu' :\r\n      (item.hasClass(this.options.classMap.hasMegaMenu.slice(1)) ? 'mega-menu' : null);\r\n\r\n  };\r\n\r\n  /**\r\n   * Returns current menu state.\r\n   *\r\n   * @return {String}\r\n   * @public\r\n   */\r\n  MegaMenu.prototype.getState = function () {\r\n    return this.state;\r\n  };\r\n\r\n  /**\r\n   * Updates bounds of all menu items.\r\n   *\r\n   * @return {jQuery}\r\n   * @public\r\n   */\r\n  MegaMenu.prototype.refresh = function () {\r\n\r\n    return this._items.add(this._tempChain).each(function (i, el) {\r\n      $(el).data('HSMenuItem')._updateMenuBounds();\r\n    });\r\n\r\n  };\r\n\r\n\r\n  /**\r\n   * Creates a mega-menu element.\r\n   *\r\n   * @param {jQuery} element\r\n   * @param {jQuery} menu\r\n   * @param {Object} options\r\n   * @param {jQuery} container\r\n   * @constructor\r\n   */\r\n  function MenuItem(element, menu, options, container) {\r\n\r\n    var self = this;\r\n\r\n    /**\r\n     * Current menu item element.\r\n     *\r\n     * @public\r\n     */\r\n    this.$element = element;\r\n\r\n    /**\r\n     * Current mega menu element.\r\n     *\r\n     * @public\r\n     */\r\n    this.menu = menu;\r\n\r\n    /**\r\n     * Item options.\r\n     *\r\n     * @public\r\n     */\r\n    this.options = options;\r\n\r\n\r\n    /**\r\n     * MegaMenu container.\r\n     *\r\n     * @public\r\n     */\r\n    this.$container = container;\r\n\r\n    Object.defineProperties(this, {\r\n\r\n      /**\r\n       * Contains css class of menu item element.\r\n       *\r\n       * @public\r\n       */\r\n      itemClass: {\r\n        get: function () {\r\n          return self.options.type === 'mega-menu' ?\r\n            self.options.classMap.hasMegaMenu :\r\n            self.options.classMap.hasSubMenu;\r\n        }\r\n      },\r\n\r\n      /**\r\n       * Contains css active-class of menu item element.\r\n       *\r\n       * @public\r\n       */\r\n      activeItemClass: {\r\n        get: function () {\r\n          return self.options.type === 'mega-menu' ?\r\n            self.options.classMap.hasMegaMenuActive :\r\n            self.options.classMap.hasSubMenuActive;\r\n        }\r\n      },\r\n\r\n      /**\r\n       * Contains css class of menu element.\r\n       *\r\n       * @public\r\n       */\r\n      menuClass: {\r\n        get: function () {\r\n          return self.options.type === 'mega-menu' ?\r\n            self.options.classMap.megaMenu :\r\n            self.options.classMap.subMenu;\r\n        }\r\n      },\r\n\r\n      isOpened: {\r\n        get: function () {\r\n          return this.$element.hasClass(this.activeItemClass.slice(1));\r\n        }\r\n      }\r\n\r\n    });\r\n\r\n\r\n    this.menu.addClass('animated').on('click.HSMegaMenu', function (e) {\r\n      self._updateMenuBounds();\r\n    });\r\n\r\n    if (this.$element.data('max-width')) this.menu.css('max-width', this.$element.data('max-width'));\r\n    if (this.$element.data('position')) this.menu.addClass('hs-position-' + this.$element.data('position'));\r\n\r\n\r\n    if (this.options.animationOut) {\r\n\r\n      this.menu.on('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function (e) {\r\n\r\n        if (self.menu.hasClass(self.options.animationOut)) {\r\n          self.$element.removeClass(self.activeItemClass.slice(1));\r\n          self.options.afterClose.call(self, self.$element, self.menu);\r\n        }\r\n\r\n        if (self.menu.hasClass(self.options.animationIn)) {\r\n          self.options.afterOpen.call(self, self.$element, self.menu);\r\n        }\r\n\r\n        e.stopPropagation();\r\n        e.preventDefault();\r\n      });\r\n    }\r\n\r\n  }\r\n\r\n  /**\r\n   * Shows the mega-menu item.\r\n   *\r\n   * @public\r\n   * @return {MenuItem}\r\n   */\r\n  MenuItem.prototype.desktopShow = function () {\r\n    if (!this.menu.length) return this;\r\n\r\n    this.$element.addClass(this.activeItemClass.slice(1));\r\n\r\n    this._updateMenuBounds();\r\n\r\n    this.menu.show();\r\n\r\n    if (this.options.direction === 'horizontal') this.smartPosition(this.menu, this.options);\r\n\r\n    if (this.options.animationOut) {\r\n      this.menu.removeClass(this.options.animationOut);\r\n    } else {\r\n      this.options.afterOpen.call(this, this.$element, this.menu);\r\n    }\r\n\r\n    if (this.options.animationIn) {\r\n      this.menu.addClass(this.options.animationIn)\r\n    }\r\n\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Hides the mega-menu item.\r\n   *\r\n   * @public\r\n   * @return {MenuItem}\r\n   */\r\n  MenuItem.prototype.desktopHide = function () {\r\n\r\n    var self = this;\r\n\r\n    if (!this.menu.length) return this;\r\n\r\n    this.$element.removeClass(this.activeItemClass.slice(1));\r\n\r\n    this.menu.hide();\r\n\r\n    if (this.options.animationIn) {\r\n      this.menu.removeClass(this.options.animationIn);\r\n    }\r\n    if (this.options.animationOut) {\r\n      this.menu.addClass(this.options.animationOut);\r\n    } else {\r\n      this.options.afterClose.call(this, this.$element, this.menu);\r\n    }\r\n\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Shows the mega-menu item.\r\n   *\r\n   * @public\r\n   * @return {MenuItem}\r\n   */\r\n  MenuItem.prototype.mobileShow = function () {\r\n    var self = this;\r\n\r\n    if (!this.menu.length) return this;\r\n\r\n\r\n    this.menu\r\n      .removeClass(this.options.animationIn)\r\n      .removeClass(this.options.animationOut)\r\n      .stop()\r\n      .slideDown({\r\n        duration: self.options.mobileSpeed,\r\n        easing: self.options.mobileEasing,\r\n        complete: function () {\r\n          self.options.afterOpen.call(self, self.$element, self.menu);\r\n        }\r\n      });\r\n\r\n    this.$element.addClass(this.activeItemClass.slice(1));\r\n\r\n    return this;\r\n  };\r\n\r\n  /**\r\n   * Hides the mega-menu item.\r\n   *\r\n   * @public\r\n   * @return {MenuItem}\r\n   */\r\n  MenuItem.prototype.mobileHide = function () {\r\n    var self = this;\r\n\r\n    if (!this.menu.length) return this;\r\n\r\n    this.menu.stop().slideUp({\r\n      duration: self.options.mobileSpeed,\r\n      easing: self.options.mobileEasing,\r\n      complete: function () {\r\n        self.options.afterClose.call(self, self.$element, self.menu);\r\n      }\r\n    });\r\n\r\n    this.$element.removeClass(this.activeItemClass.slice(1));\r\n\r\n    return this;\r\n  };\r\n\r\n  /**\r\n   * Check, if element is in viewport.\r\n   *\r\n   * @param {jQuery} element\r\n   * @param {Object} options\r\n   * @public\r\n   */\r\n  MenuItem.prototype.smartPosition = function (element, options) {\r\n\r\n    MenuItem.smartPosition(element, options);\r\n\r\n  };\r\n\r\n  /**\r\n   * Check, if element is in viewport.\r\n   *\r\n   * @param {jQuery} element\r\n   * @param {Object} options\r\n   * @static\r\n   * @public\r\n   */\r\n  MenuItem.smartPosition = function (element, options) {\r\n    if (!element && !element.length) return;\r\n\r\n    var $w = $(window);\r\n\r\n    element.removeClass('hs-reversed');\r\n\r\n    if (!options.rtl) {\r\n\r\n      if (element.offset().left + element.outerWidth() > window.innerWidth) {\r\n        element.addClass('hs-reversed');\r\n      }\r\n\r\n    } else {\r\n\r\n      if (element.offset().left < 0) {\r\n        element.addClass('hs-reversed');\r\n      }\r\n\r\n    }\r\n  };\r\n\r\n  /**\r\n   * Updates bounds of current opened menu.\r\n   *\r\n   * @private\r\n   */\r\n  MenuItem.prototype._updateMenuBounds = function () {\r\n\r\n    var width = 'auto';\r\n\r\n    if (this.options.direction === 'vertical' && this.options.type === 'mega-menu') {\r\n\r\n      if (this.$container && this.$container.data('HSMegaMenu').getState() === 'desktop') {\r\n        if (!this.options.pageContainer.length) this.options.pageContainer = $('body');\r\n        width = this.options.pageContainer.outerWidth() * (1 - this.options.sideBarRatio);\r\n      } else {\r\n        width = 'auto';\r\n      }\r\n\r\n\r\n      this.menu.css({\r\n        'width': width,\r\n        'height': 'auto'\r\n      });\r\n\r\n      if (this.menu.outerHeight() > this.$container.outerHeight()) {\r\n        return;\r\n      }\r\n\r\n      this.menu.css('height', '100%');\r\n    }\r\n\r\n  };\r\n\r\n  /**\r\n   * The jQuery plugin for the MegaMenu.\r\n   *\r\n   * @public\r\n   */\r\n\r\n  $.fn.HSMegaMenu = function () {\r\n    var _ = this,\r\n      opt = arguments[0],\r\n      args = Array.prototype.slice.call(arguments, 1),\r\n      l = _.length,\r\n      i,\r\n      ret;\r\n    for (i = 0; i < l; i++) {\r\n      if (typeof opt === 'object' || typeof opt === 'undefined')\r\n        _[i].MegaMenu = new MegaMenu(_[i], opt);\r\n      else\r\n        ret = _[i].MegaMenu[opt].apply(_[i].MegaMenu, args);\r\n      if (typeof ret != 'undefined') return ret;\r\n    }\r\n    return _;\r\n  };\r\n\r\n  /**\r\n   * Helper function for detect touch events in the environment.\r\n   *\r\n   * @return {Boolean}\r\n   * @private\r\n   */\r\n  function _isTouch() {\r\n    return ('ontouchstart' in window);\r\n  }\r\n\r\n})(jQuery);\r\n","// ==================================================\r\n// fancyBox v3.1.24\r\n//\r\n// Licensed GPLv3 for open source use\r\n// or fancyBox Commercial License for commercial use\r\n//\r\n// http://fancyapps.com/fancybox/\r\n// Copyright 2017 fancyApps\r\n//\r\n// ==================================================\r\n!function(t,e,n,o){\"use strict\";function i(t){var e=t.currentTarget,o=t.data?t.data.options:{},i=o.selector?n(o.selector):t.data?t.data.items:[],a=n(e).attr(\"data-fancybox\")||\"\",s=0,r=n.fancybox.getInstance();t.preventDefault(),t.stopPropagation(),r&&r.current.opts.$orig.is(e)||(a?(i=i.length?i.filter('[data-fancybox=\"'+a+'\"]'):n('[data-fancybox=\"'+a+'\"]'),s=i.index(e),s<0&&(s=0)):i=[e],n.fancybox.open(i,o,s))}if(n){if(n.fn.fancybox)return void n.error(\"fancyBox already initialized\");var a={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:[\"slideShow\",\"fullScreen\",\"thumbs\",\"close\"],idleTime:4,smallBtn:\"auto\",protect:!1,modal:!1,image:{preload:\"auto\"},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id=\"fancybox-frame{rnd}\" name=\"fancybox-frame{rnd}\" class=\"fancybox-iframe\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency=\"true\" src=\"\"></iframe>',preload:!0,css:{},attr:{scrolling:\"auto\"}},animationEffect:\"zoom\",animationDuration:366,zoomOpacity:\"auto\",transitionEffect:\"fade\",transitionDuration:366,slideClass:\"\",baseClass:\"\",baseTpl:'<div class=\"fancybox-container\" role=\"dialog\" tabindex=\"-1\"><div class=\"fancybox-bg\"></div><div class=\"fancybox-inner\"><div class=\"fancybox-infobar\"><button data-fancybox-prev title=\"{{PREV}}\" class=\"fancybox-button fancybox-button--left\"></button><div class=\"fancybox-infobar__body\"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><button data-fancybox-next title=\"{{NEXT}}\" class=\"fancybox-button fancybox-button--right\"></button></div><div class=\"fancybox-toolbar\">{{BUTTONS}}</div><div class=\"fancybox-navigation\"><button data-fancybox-prev title=\"{{PREV}}\" class=\"fancybox-arrow fancybox-arrow--left\" /><button data-fancybox-next title=\"{{NEXT}}\" class=\"fancybox-arrow fancybox-arrow--right\" /></div><div class=\"fancybox-stage\"></div><div class=\"fancybox-caption-wrap\"><div class=\"fancybox-caption\"></div></div></div></div>',spinnerTpl:'<div class=\"fancybox-loading\"></div>',errorTpl:'<div class=\"fancybox-error\"><p>{{ERROR}}<p></div>',btnTpl:{slideShow:'<button data-fancybox-play class=\"fancybox-button fancybox-button--play\" title=\"{{PLAY_START}}\"></button>',fullScreen:'<button data-fancybox-fullscreen class=\"fancybox-button fancybox-button--fullscreen\" title=\"{{FULL_SCREEN}}\"></button>',thumbs:'<button data-fancybox-thumbs class=\"fancybox-button fancybox-button--thumbs\" title=\"{{THUMBS}}\"></button>',close:'<button data-fancybox-close class=\"fancybox-button fancybox-button--close\" title=\"{{CLOSE}}\"></button>',smallBtn:'<button data-fancybox-close class=\"fancybox-close-small\" title=\"{{CLOSE}}\"></button>'},parentEl:\"body\",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0},onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return\"image\"===t.type&&\"zoom\"},clickSlide:\"close\",clickOutside:\"close\",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(t,e){return\"image\"===t.type&&\"toggleControls\"},clickSlide:function(t,e){return\"image\"===t.type?\"toggleControls\":\"close\"},dblclickContent:function(t,e){return\"image\"===t.type&&\"zoom\"},dblclickSlide:function(t,e){return\"image\"===t.type&&\"zoom\"}},lang:\"en\",i18n:{en:{CLOSE:\"Close\",NEXT:\"Next\",PREV:\"Previous\",ERROR:\"The requested content cannot be loaded. <br/> Please try again later.\",PLAY_START:\"Start slideshow\",PLAY_STOP:\"Pause slideshow\",FULL_SCREEN:\"Full screen\",THUMBS:\"Thumbnails\"},de:{CLOSE:\"Schliessen\",NEXT:\"Weiter\",PREV:\"Zurück\",ERROR:\"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.\",PLAY_START:\"Diaschau starten\",PLAY_STOP:\"Diaschau beenden\",FULL_SCREEN:\"Vollbild\",THUMBS:\"Vorschaubilder\"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},u=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),d=function(){var t,n=e.createElement(\"fakeelement\"),i={transition:\"transitionend\",OTransition:\"oTransitionEnd\",MozTransition:\"transitionend\",WebkitTransition:\"webkitTransitionEnd\"};for(t in i)if(n.style[t]!==o)return i[t]}(),f=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,o,i){var s=this;s.opts=n.extend(!0,{index:i},a,o||{}),o&&n.isArray(o.buttons)&&(s.opts.buttons=o.buttons),s.id=s.opts.id||++c,s.group=[],s.currIndex=parseInt(s.opts.index,10)||0,s.prevIndex=null,s.prevPos=null,s.currPos=0,s.firstRun=null,s.createGroup(t),s.group.length&&(s.$lastFocus=n(e.activeElement).blur(),s.slides={},s.init(t))};n.extend(h.prototype,{init:function(){var t,e,o,i=this,a=i.group[i.currIndex].opts;i.scrollTop=r.scrollTop(),i.scrollLeft=r.scrollLeft(),n.fancybox.getInstance()||n.fancybox.isMobile||\"hidden\"===n(\"body\").css(\"overflow\")||(t=n(\"body\").width(),n(\"html\").addClass(\"fancybox-enabled\"),t=n(\"body\").width()-t,t>1&&n(\"head\").append('<style id=\"fancybox-style-noscroll\" type=\"text/css\">.compensate-for-scrollbar, .fancybox-enabled body { margin-right: '+t+\"px; }</style>\")),o=\"\",n.each(a.buttons,function(t,e){o+=a.btnTpl[e]||\"\"}),e=n(i.translate(i,a.baseTpl.replace(\"{{BUTTONS}}\",o))).addClass(\"fancybox-is-hidden\").attr(\"id\",\"fancybox-container-\"+i.id).addClass(a.baseClass).data(\"FancyBox\",i).prependTo(a.parentEl),i.$refs={container:e},[\"bg\",\"inner\",\"infobar\",\"toolbar\",\"stage\",\"caption\"].forEach(function(t){i.$refs[t]=e.find(\".fancybox-\"+t)}),(!a.arrows||i.group.length<2)&&e.find(\".fancybox-navigation\").remove(),a.infobar||i.$refs.infobar.remove(),a.toolbar||i.$refs.toolbar.remove(),i.trigger(\"onInit\"),i.activate(),i.jumpTo(i.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\\{\\{(\\w+)\\}\\}/g,function(t,e){var i=n[e];return i===o?t:i})},createGroup:function(t){var e=this,i=n.makeArray(t);n.each(i,function(t,i){var a,s,r,c,l={},u={},d=[];n.isPlainObject(i)?(l=i,u=i.opts||i):\"object\"===n.type(i)&&n(i).length?(a=n(i),d=a.data(),u=\"options\"in d?d.options:{},u=\"object\"===n.type(u)?u:{},l.src=\"src\"in d?d.src:u.src||a.attr(\"href\"),[\"width\",\"height\",\"thumb\",\"type\",\"filter\"].forEach(function(t){t in d&&(u[t]=d[t])}),\"srcset\"in d&&(u.image={srcset:d.srcset}),u.$orig=a,l.type||l.src||(l.type=\"inline\",l.src=i)):l={type:\"html\",src:i+\"\"},l.opts=n.extend(!0,{},e.opts,u),n.fancybox.isMobile&&(l.opts=n.extend(!0,{},l.opts,l.opts.mobile)),s=l.type||l.opts.type,r=l.src||\"\",!s&&r&&(r.match(/(^data:image\\/[a-z0-9+\\/=]*,)|(\\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\\?|#).*)?$)/i)?s=\"image\":r.match(/\\.(pdf)((\\?|#).*)?$/i)?s=\"pdf\":\"#\"===r.charAt(0)&&(s=\"inline\")),l.type=s,l.index=e.group.length,l.opts.$orig&&!l.opts.$orig.length&&delete l.opts.$orig,!l.opts.$thumb&&l.opts.$orig&&(l.opts.$thumb=l.opts.$orig.find(\"img:first\")),l.opts.$thumb&&!l.opts.$thumb.length&&delete l.opts.$thumb,\"function\"===n.type(l.opts.caption)?l.opts.caption=l.opts.caption.apply(i,[e,l]):\"caption\"in d&&(l.opts.caption=d.caption),l.opts.caption=l.opts.caption===o?\"\":l.opts.caption+\"\",\"ajax\"===s&&(c=r.split(/\\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),\"auto\"==l.opts.smallBtn&&(n.inArray(s,[\"html\",\"inline\",\"ajax\"])>-1?(l.opts.toolbar=!1,l.opts.smallBtn=!0):l.opts.smallBtn=!1),\"pdf\"===s&&(l.type=\"iframe\",l.opts.iframe.preload=!1),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),e.group.push(l)})},addEvents:function(){var o=this;o.removeEvents(),o.$refs.container.on(\"click.fb-close\",\"[data-fancybox-close]\",function(t){t.stopPropagation(),t.preventDefault(),o.close(t)}).on(\"click.fb-prev touchend.fb-prev\",\"[data-fancybox-prev]\",function(t){t.stopPropagation(),t.preventDefault(),o.previous()}).on(\"click.fb-next touchend.fb-next\",\"[data-fancybox-next]\",function(t){t.stopPropagation(),t.preventDefault(),o.next()}),s.on(\"orientationchange.fb resize.fb\",function(t){t&&t.originalEvent&&\"resize\"===t.originalEvent.type?u(function(){o.update()}):(o.$refs.stage.hide(),setTimeout(function(){o.$refs.stage.show(),o.update()},500))}),r.on(\"focusin.fb\",function(t){var i=n.fancybox?n.fancybox.getInstance():null;i.isClosing||!i.current||!i.current.opts.trapFocus||n(t.target).hasClass(\"fancybox-container\")||n(t.target).is(e)||i&&\"fixed\"!==n(t.target).css(\"position\")&&!i.$refs.container.has(t.target).length&&(t.stopPropagation(),i.focus(),s.scrollTop(o.scrollTop).scrollLeft(o.scrollLeft))}),r.on(\"keydown.fb\",function(t){var e=o.current,i=t.keyCode||t.which;if(e&&e.opts.keyboard&&!n(t.target).is(\"input\")&&!n(t.target).is(\"textarea\"))return 8===i||27===i?(t.preventDefault(),void o.close(t)):37===i||38===i?(t.preventDefault(),void o.previous()):39===i||40===i?(t.preventDefault(),void o.next()):void o.trigger(\"afterKeydown\",t,i)}),o.group[o.currIndex].opts.idleTime&&(o.idleSecondsCounter=0,r.on(\"mousemove.fb-idle mouseenter.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle\",function(){o.idleSecondsCounter=0,o.isIdle&&o.showControls(),o.isIdle=!1}),o.idleInterval=t.setInterval(function(){o.idleSecondsCounter++,o.idleSecondsCounter>=o.group[o.currIndex].opts.idleTime&&(o.isIdle=!0,o.idleSecondsCounter=0,o.hideControls())},1e3))},removeEvents:function(){var e=this;s.off(\"orientationchange.fb resize.fb\"),r.off(\"focusin.fb keydown.fb .fb-idle\"),this.$refs.container.off(\".fb-close .fb-prev .fb-next\"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e,i){var a,s,r,c,l,u,d,h=this,p=h.group.length;if(!(h.isSliding||h.isClosing||h.isAnimating&&h.firstRun)){if(t=parseInt(t,10),s=h.current?h.current.opts.loop:h.opts.loop,!s&&(t<0||t>=p))return!1;if(a=h.firstRun=null===h.firstRun,!(p<2&&!a&&h.isSliding)){if(c=h.current,h.prevIndex=h.currIndex,h.prevPos=h.currPos,r=h.createSlide(t),p>1&&((s||r.index>0)&&h.createSlide(t-1),(s||r.index<p-1)&&h.createSlide(t+1)),h.current=r,h.currIndex=r.index,h.currPos=r.pos,h.trigger(\"beforeShow\",a),h.updateControls(),u=n.fancybox.getTranslate(r.$slide),r.isMoved=(0!==u.left||0!==u.top)&&!r.$slide.hasClass(\"fancybox-animated\"),r.forcedDuration=o,n.isNumeric(e)?r.forcedDuration=e:e=r.opts[a?\"animationDuration\":\"transitionDuration\"],e=parseInt(e,10),a)return r.opts.animationEffect&&e&&h.$refs.container.css(\"transition-duration\",e+\"ms\"),h.$refs.container.removeClass(\"fancybox-is-hidden\"),f(h.$refs.container),h.$refs.container.addClass(\"fancybox-is-open\"),r.$slide.addClass(\"fancybox-slide--current\"),h.loadSlide(r),void h.preload();n.each(h.slides,function(t,e){n.fancybox.stop(e.$slide)}),r.$slide.removeClass(\"fancybox-slide--next fancybox-slide--previous\").addClass(\"fancybox-slide--current\"),r.isMoved?(l=Math.round(r.$slide.width()),n.each(h.slides,function(t,o){var i=o.pos-r.pos;n.fancybox.animate(o.$slide,{top:0,left:i*l+i*o.opts.gutter},e,function(){o.$slide.removeAttr(\"style\").removeClass(\"fancybox-slide--next fancybox-slide--previous\"),o.pos===h.currPos&&(r.isMoved=!1,h.complete())})})):h.$refs.stage.children().removeAttr(\"style\"),r.isLoaded?h.revealContent(r):h.loadSlide(r),h.preload(),c.pos!==r.pos&&(d=\"fancybox-slide--\"+(c.pos>r.pos?\"next\":\"previous\"),c.$slide.removeClass(\"fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous\"),c.isComplete=!1,e&&(r.isMoved||r.opts.transitionEffect)&&(r.isMoved?c.$slide.addClass(d):(d=\"fancybox-animated \"+d+\" fancybox-fx-\"+r.opts.transitionEffect,n.fancybox.animate(c.$slide,d,e,function(){c.$slide.removeClass(d).removeAttr(\"style\")}))))}}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class=\"fancybox-slide\"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var a,s,r,c,l,u=this,d=u.current,f=d.$content,h=parseInt(d.$slide.width(),10),p=parseInt(d.$slide.height(),10),g=d.width,b=d.height;\"image\"!=d.type||d.hasError||!f||u.isAnimating||(n.fancybox.stop(f),u.isAnimating=!0,t=t===o?.5*h:t,e=e===o?.5*p:e,a=n.fancybox.getTranslate(f),c=g/a.width,l=b/a.height,s=.5*h-.5*g,r=.5*p-.5*b,g>h&&(s=a.left*c-(t*c-t),s>0&&(s=0),s<h-g&&(s=h-g)),b>p&&(r=a.top*l-(e*l-e),r>0&&(r=0),r<p-b&&(r=p-b)),u.updateCursor(g,b),n.fancybox.animate(f,{top:r,left:s,scaleX:c,scaleY:l},i||330,function(){u.isAnimating=!1}),u.SlideShow&&u.SlideShow.isActive&&u.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;\"image\"!=i.type||i.hasError||!a||o.isAnimating||(n.fancybox.stop(a),o.isAnimating=!0,e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||330,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,r,c=this,l=t.$content,u=t.width,d=t.height,f=t.opts.margin;return!(!l||!l.length||!u&&!d)&&(\"number\"===n.type(f)&&(f=[f,f]),2==f.length&&(f=[f[0],f[1],f[0],f[1]]),s.width()<800&&(f=[0,0,0,0]),e=parseInt(c.$refs.stage.width(),10)-(f[1]+f[3]),o=parseInt(c.$refs.stage.height(),10)-(f[0]+f[2]),i=Math.min(1,e/u,o/d),a=Math.floor(i*u),r=Math.floor(i*d),{top:Math.floor(.5*(o-r))+f[0],left:Math.floor(.5*(e-a))+f[3],width:a,height:r})},update:function(){var t=this;n.each(t.slides,function(e,n){t.updateSlide(n)})},updateSlide:function(t){var e=this,o=t.$content;o&&(t.width||t.height)&&(n.fancybox.stop(o),n.fancybox.setTranslate(o,e.getFitPos(t)),t.pos===e.currPos&&e.updateCursor()),t.$slide.trigger(\"refresh\"),e.trigger(\"onUpdate\",t)},updateCursor:function(t,e){var n,i=this,a=i.$refs.container.removeClass(\"fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut\");i.current&&!i.isClosing&&(i.isZoomable()?(a.addClass(\"fancybox-is-zoomable\"),n=t!==o&&e!==o?t<i.current.width&&e<i.current.height:i.isScaledDown(),n?a.addClass(\"fancybox-can-zoomIn\"):i.current.opts.touch?a.addClass(\"fancybox-can-drag\"):a.addClass(\"fancybox-can-zoomOut\")):i.current.opts.touch&&a.addClass(\"fancybox-can-drag\"))},isZoomable:function(){var t,e=this,o=e.current;if(o&&!e.isClosing)return!!(\"image\"===o.type&&o.isLoaded&&!o.hasError&&(\"zoom\"===o.opts.clickContent||n.isFunction(o.opts.clickContent)&&\"zoom\"===o.opts.clickContent(o))&&(t=e.getFitPos(o),o.width>t.width||o.height>t.height))},isScaledDown:function(){var t=this,e=t.current,o=e.$content,i=!1;return o&&(i=n.fancybox.getTranslate(o),i=i.width<e.width||i.height<e.height),i},canPan:function(){var t=this,e=t.current,n=e.$content,o=!1;return n&&(o=t.getFitPos(e),o=Math.abs(n.width()-o.width)>1||Math.abs(n.height()-o.height)>1),o},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){switch(t.isLoading=!0,a.trigger(\"beforeLoad\",t),e=t.type,o=t.$slide,o.off(\"refresh\").trigger(\"onReset\").addClass(\"fancybox-slide--\"+(e||\"unknown\")).addClass(t.opts.slideClass),e){case\"image\":a.setImage(t);break;case\"iframe\":a.setIframe(t);break;case\"html\":a.setContent(t,t.src||t.content);break;case\"inline\":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case\"ajax\":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){\"success\"===n&&a.setContent(t,e)},error:function(e,n){e&&\"abort\"!==n&&a.setError(t)}})),o.one(\"onReset\",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(e){var o,i,a,s,r=this,c=e.opts.image.srcset;if(c){a=t.devicePixelRatio||1,s=t.innerWidth*a,i=c.split(\",\").map(function(t){var e={};return t.trim().split(/\\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),i.sort(function(t,e){return t.value-e.value});for(var l=0;l<i.length;l++){var u=i[l];if(\"w\"===u.postfix&&u.value>=s||\"x\"===u.postfix&&u.value>=a){o=u;break}}!o&&i.length&&(o=i[i.length-1]),o&&(e.src=o.url,e.width&&e.height&&\"w\"==o.postfix&&(e.height=e.width/e.height*o.value,e.width=o.value))}e.$content=n('<div class=\"fancybox-image-wrap\"></div>').addClass(\"fancybox-is-hidden\").appendTo(e.$slide),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)?(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n(\"<img />\").one(\"error\",function(){n(this).remove(),e.$ghost=null,r.setBigImage(e)}).one(\"load\",function(){r.afterLoad(e),r.setBigImage(e)}).addClass(\"fancybox-image\").appendTo(e.$content).attr(\"src\",e.opts.thumb||e.opts.$thumb.attr(\"src\"))):r.setBigImage(e)},setBigImage:function(t){var e=this,o=n(\"<img />\");t.$image=o.one(\"error\",function(){e.setError(t)}).one(\"load\",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&o.attr(\"sizes\",\"100vw\").attr(\"srcset\",t.opts.image.srcset),e.hideLoading(t),t.$ghost?t.timouts=setTimeout(function(){t.timouts=null,t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))):e.afterLoad(t))}).addClass(\"fancybox-image\").attr(\"src\",t.src).appendTo(t.$content),o[0].complete?o.trigger(\"load\"):o[0].error?o.trigger(\"error\"):t.timouts=setTimeout(function(){o[0].complete||t.hasError||e.showLoading(t)},100)},setIframe:function(t){var e,i=this,a=t.opts.iframe,s=t.$slide;t.$content=n('<div class=\"fancybox-content'+(a.preload?\" fancybox-is-hidden\":\"\")+'\"></div>').css(a.css).appendTo(s),e=n(a.tpl.replace(/\\{rnd\\}/g,(new Date).getTime())).attr(a.attr).appendTo(t.$content),a.preload?(i.showLoading(t),e.on(\"load.fb error.fb\",function(e){this.isReady=1,t.$slide.trigger(\"refresh\"),i.afterLoad(t)}),s.on(\"refresh.fb\",function(){var n,i,s,r,c,l=t.$content;if(1===e[0].isReady){try{n=e.contents(),i=n.find(\"body\")}catch(t){}i&&i.length&&(a.css.width===o||a.css.height===o)&&(s=e[0].contentWindow.document.documentElement.scrollWidth,r=Math.ceil(i.outerWidth(!0)+(l.width()-s)),c=Math.ceil(i.outerHeight(!0)),l.css({width:a.css.width===o?r+(l.outerWidth()-l.innerWidth()):a.css.width,height:a.css.height===o?c+(l.outerHeight()-l.innerHeight()):a.css.height})),l.removeClass(\"fancybox-is-hidden\")}})):this.afterLoad(t),e.attr(\"src\",t.src),t.opts.smallBtn===!0&&t.$content.prepend(i.translate(t,t.opts.btnTpl.smallBtn)),s.one(\"onReset\",function(){try{n(this).find(\"iframe\").hide().attr(\"src\",\"//about:blank\")}catch(t){}n(this).empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$slide.empty(),l(e)&&e.parent().length?(e.parent(\".fancybox-slide--inline\").trigger(\"onReset\"),t.$placeholder=n(\"<div></div>\").hide().insertAfter(e),e.css(\"display\",\"inline-block\")):t.hasError||(\"string\"===n.type(e)&&(e=n(\"<div>\").append(n.trim(e)).contents(),3===e[0].nodeType&&(e=n(\"<div>\").html(e))),t.opts.filter&&(e=n(\"<div>\").html(e).find(t.opts.filter))),t.$slide.one(\"onReset\",function(){t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1)}),t.$content=n(e).appendTo(t.$slide),t.opts.smallBtn&&!t.$smallBtn&&(t.$smallBtn=n(o.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.removeClass(\"fancybox-slide--\"+t.type),this.setContent(t,this.translate(t,t.opts.errorTpl))},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger(\"afterLoad\",t),e.hideLoading(t),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on(\"contextmenu.fb\",function(t){return 2==t.button&&t.preventDefault(),!0}),\"image\"===t.type&&n('<div class=\"fancybox-spaceball\"></div>').appendTo(t.$content)),e.revealContent(t))},revealContent:function(t){var e,i,a,s,r,c=this,l=t.$slide,u=!1;return e=t.opts[c.firstRun?\"animationEffect\":\"transitionEffect\"],a=t.opts[c.firstRun?\"animationDuration\":\"transitionDuration\"],a=parseInt(t.forcedDuration===o?a:t.forcedDuration,10),!t.isMoved&&t.pos===c.currPos&&a||(e=!1),\"zoom\"!==e||t.pos===c.currPos&&a&&\"image\"===t.type&&!t.hasError&&(u=c.getThumbPos(t))||(e=\"fade\"),\"zoom\"===e?(r=c.getFitPos(t),r.scaleX=r.width/u.width,r.scaleY=r.height/u.height,delete r.width,delete r.height,s=t.opts.zoomOpacity,\"auto\"==s&&(s=Math.abs(t.width/t.height-u.width/u.height)>.1),s&&(u.opacity=.1,r.opacity=1),n.fancybox.setTranslate(t.$content.removeClass(\"fancybox-is-hidden\"),u),f(t.$content),void n.fancybox.animate(t.$content,r,a,function(){c.complete()})):(c.updateSlide(t),e?(n.fancybox.stop(l),i=\"fancybox-animated fancybox-slide--\"+(t.pos>c.prevPos?\"next\":\"previous\")+\" fancybox-fx-\"+e,l.removeAttr(\"style\").removeClass(\"fancybox-slide--current fancybox-slide--next fancybox-slide--previous\").addClass(i),t.$content.removeClass(\"fancybox-is-hidden\"),f(l),void n.fancybox.animate(l,\"fancybox-slide--current\",a,function(e){l.removeClass(i).removeAttr(\"style\"),t.pos===c.currPos&&c.complete()},!0)):(f(l),t.$content.removeClass(\"fancybox-is-hidden\"),void(t.pos===c.currPos&&c.complete())))},getThumbPos:function(o){var i,a=this,s=!1,r=function(e){for(var o,i=e[0],a=i.getBoundingClientRect(),s=[];null!==i.parentElement;)\"hidden\"!==n(i.parentElement).css(\"overflow\")&&\"auto\"!==n(i.parentElement).css(\"overflow\")||s.push(i.parentElement.getBoundingClientRect()),i=i.parentElement;return o=s.every(function(t){var e=Math.min(a.right,t.right)-Math.max(a.left,t.left),n=Math.min(a.bottom,t.bottom)-Math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left<n(t).width()&&a.top<n(t).height()},c=o.opts.$thumb,l=c?c.offset():0;return l&&c[0].ownerDocument===e&&r(c)&&(i=a.$refs.stage.offset(),s={top:l.top-i.top+parseFloat(c.css(\"border-top-width\")||0),left:l.left-i.left+parseFloat(c.css(\"border-left-width\")||0),width:c.width(),height:c.height(),scaleX:1,scaleY:1}),s},complete:function(){var t=this,o=t.current,i={};o.isMoved||!o.isLoaded||o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger(\"onReset\"),f(o.$slide),o.$slide.addClass(\"fancybox-slide--complete\"),n.each(t.slides,function(e,o){o.pos>=t.currPos-1&&o.pos<=t.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.unbind().remove())}),t.slides=i,t.updateCursor(),t.trigger(\"afterShow\"),(n(e.activeElement).is(\"[disabled]\")||o.opts.autoFocus&&\"image\"!=o.type&&\"iframe\"!==o.type)&&t.focus())},preload:function(){var t,e,n=this;n.group.length<2||(t=n.slides[n.currPos+1],e=n.slides[n.currPos-1],t&&\"image\"===t.type&&n.loadSlide(t),e&&\"image\"===e.type&&n.loadSlide(e))},focus:function(){var t,e=this.current;this.isClosing||(t=e&&e.isComplete?e.$slide.find(\"button,:input,[tabindex],a\").filter(\":not([disabled]):visible:first\"):null,t=t&&t.length?t:this.$refs.container,t.focus())},activate:function(){var t=this;n(\".fancybox-container\").each(function(){var e=n(this).data(\"FancyBox\");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger(\"onDeactivate\")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(e.body),t.updateControls()),t.trigger(\"onActivate\"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l=this,f=l.current,h=function(){l.cleanUp(t)};return!l.isClosing&&(l.isClosing=!0,l.trigger(\"beforeClose\",t)===!1?(l.isClosing=!1,u(function(){l.update()}),!1):(l.removeEvents(),f.timouts&&clearTimeout(f.timouts),a=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.off(d).removeClass(\"fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated\"),f.$slide.siblings().trigger(\"onReset\").remove(),i&&l.$refs.container.removeClass(\"fancybox-is-open\").addClass(\"fancybox-is-closing\"),l.hideLoading(f),l.hideControls(),l.updateCursor(),\"zoom\"!==o||t!==!0&&a&&i&&\"image\"===f.type&&!f.hasError&&(c=l.getThumbPos(f))||(o=\"fade\"),\"zoom\"===o?(n.fancybox.stop(a),r=n.fancybox.getTranslate(a),r.width=r.width*r.scaleX,r.height=r.height*r.scaleY,s=f.opts.zoomOpacity,\"auto\"==s&&(s=Math.abs(f.width/f.height-c.width/c.height)>.1),s&&(c.opacity=0),r.scaleX=r.width/c.width,r.scaleY=r.height/c.height,r.width=c.width,r.height=c.height,n.fancybox.setTranslate(f.$content,r),n.fancybox.animate(f.$content,c,i,h),!0):(o&&i?t===!0?setTimeout(h,i):n.fancybox.animate(f.$slide.removeClass(\"fancybox-slide--current\"),\"fancybox-animated fancybox-slide--previous fancybox-fx-\"+o,i,h):h(),!0)))},cleanUp:function(t){var e,o=this;o.current.$slide.trigger(\"onReset\"),o.$refs.container.empty().remove(),o.trigger(\"afterClose\",t),o.$lastFocus&&o.current.opts.backFocus&&o.$lastFocus.focus(),o.current=null,e=n.fancybox.getInstance(),e?e.activate():(s.scrollTop(o.scrollTop).scrollLeft(o.scrollLeft),n(\"html\").removeClass(\"fancybox-enabled\"),n(\"#fancybox-style-noscroll\").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void(\"afterClose\"===t?r.trigger(t+\".fb\",i):a.$refs.container.trigger(t+\".fb\",i))},updateControls:function(t){var e=this,o=e.current,i=o.index,a=o.opts,s=a.caption,r=e.$refs.caption;o.$slide.trigger(\"refresh\"),e.$caption=s&&s.length?r.html(s):null,e.isHiddenControls||e.showControls(),n(\"[data-fancybox-count]\").html(e.group.length),n(\"[data-fancybox-index]\").html(i+1),n(\"[data-fancybox-prev]\").prop(\"disabled\",!a.loop&&i<=0),n(\"[data-fancybox-next]\").prop(\"disabled\",!a.loop&&i>=e.group.length-1)},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass(\"fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav\")},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass(\"fancybox-show-toolbar\",!(!e.toolbar||!e.buttons)).toggleClass(\"fancybox-show-infobar\",!!(e.infobar&&t.group.length>1)).toggleClass(\"fancybox-show-nav\",!!(e.arrows&&t.group.length>1)).toggleClass(\"fancybox-is-modal\",!!e.modal),t.$caption?n.addClass(\"fancybox-show-caption \"):n.removeClass(\"fancybox-show-caption\")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:\"3.1.24\",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(\".fancybox-is-closing\"):first').data(\"FancyBox\"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&(\"string\"===n.type(t)?e[t].apply(e,o):\"function\"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.off(\"click.fb-start\")},isMobile:e.createTouch!==o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var n=e.createElement(\"div\");return t.getComputedStyle&&t.getComputedStyle(n).getPropertyValue(\"transform\")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;if(!t||!t.length)return!1;if(e=t.eq(0).css(\"transform\"),e&&e.indexOf(\"matrix\")!==-1?(e=e.split(\"(\")[1],e=e.split(\")\")[0],e=e.split(\",\")):e=[],e.length)e=e.length>10?[e[13],e[12],e[0],e[5]]:[e[5],e[4],e[0],e[3]],e=e.map(parseFloat);else{e=[0,0,1,1];var n=/\\.*translate\\((.*)px,(.*)px\\)/i,o=n.exec(t.eq(0).attr(\"style\"));o&&(e[0]=parseFloat(o[2]),e[1]=parseFloat(o[1]))}return{top:e[0],left:e[1],scaleX:e[2],scaleY:e[3],opacity:parseFloat(t.css(\"opacity\")),width:t.width(),height:t.height()}},setTranslate:function(t,e){var n=\"\",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+\"px, \"+(e.top===o?t.position().top:e.top)+\"px\",n=this.use3d?\"translate3d(\"+n+\", 0px)\":\"translate(\"+n+\")\"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+\" \":\"\")+\"scale(\"+e.scaleX+\", \"+e.scaleY+\")\"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){var r=d||\"transitionend\";n.isFunction(i)&&(a=i,i=null),n.isPlainObject(e)||t.removeAttr(\"style\"),t.on(r,function(i){(!i||!i.originalEvent||t.is(i.originalEvent.target)&&\"z-index\"!=i.originalEvent.propertyName)&&(t.off(r),n.isPlainObject(e)?e.scaleX!==o&&e.scaleY!==o&&(t.css(\"transition-duration\",\"0ms\"),e.width=Math.round(t.width()*e.scaleX),e.height=Math.round(t.height()*e.scaleY),e.scaleX=1,e.scaleY=1,n.fancybox.setTranslate(t,e)):s!==!0&&t.removeClass(e),n.isFunction(a)&&a(i))}),n.isNumeric(i)&&t.css(\"transition-duration\",i+\"ms\"),n.isPlainObject(e)?n.fancybox.setTranslate(t,e):t.addClass(e),t.data(\"timer\",setTimeout(function(){t.trigger(\"transitionend\")},i+16))},stop:function(t){clearTimeout(t.data(\"timer\")),t.off(d)}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n(\"body\").off(\"click.fb-start\",e).on(\"click.fb-start\",e,{options:t},i):this.off(\"click.fb-start\").on(\"click.fb-start\",{items:this,options:t},i),this},r.on(\"click.fb-start\",\"[data-fancybox]\",i)}}(window,document,window.jQuery),function(t){\"use strict\";var e=function(e,n,o){if(e)return o=o||\"\",\"object\"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace(\"$\"+t,n||\"\")}),o.length&&(e+=(e.indexOf(\"?\")>0?\"&\":\"?\")+o),e},n={youtube:{matcher:/(youtube\\.com|youtu\\.be|youtube\\-nocookie\\.com)\\/(watch\\?(.*&)?v=|v\\/|u\\/|embed\\/?)?(videoseries\\?list=(.*)|[\\w-]{11}|\\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:\"transparent\",enablejsapi:1,html5:1},paramPlace:8,type:\"iframe\",url:\"//www.youtube.com/embed/$4\",thumb:\"//img.youtube.com/vi/$4/hqdefault.jpg\"},vimeo:{matcher:/^.+vimeo.com\\/(.*\\/)?([\\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:\"iframe\",url:\"//player.vimeo.com/video/$2\"},metacafe:{matcher:/metacafe.com\\/watch\\/(\\d+)\\/(.*)?/,type:\"iframe\",url:\"//www.metacafe.com/embed/$1/?ap=1\"},dailymotion:{matcher:/dailymotion.com\\/video\\/(.*)\\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:\"iframe\",url:\"//www.dailymotion.com/embed/video/$1\"},vine:{matcher:/vine.co\\/v\\/([a-zA-Z0-9\\?\\=\\-]+)/,type:\"iframe\",url:\"//vine.co/v/$1/embed/simple\"},instagram:{matcher:/(instagr\\.am|instagram\\.com)\\/p\\/([a-zA-Z0-9_\\-]+)\\/?/i,type:\"image\",url:\"//$1/p/$2/media/?size=l\"},gmap_place:{matcher:/(maps\\.)?google\\.([a-z]{2,3}(\\.[a-z]{2})?)\\/(((maps\\/(place\\/(.*)\\/)?\\@(.*),(\\d+.?\\d+?)z))|(\\?ll=))(.*)?/i,type:\"iframe\",url:function(t){return\"//maps.google.\"+t[2]+\"/?ll=\"+(t[9]?t[9]+\"&z=\"+Math.floor(t[10])+(t[12]?t[12].replace(/^\\//,\"&\"):\"\"):t[12])+\"&output=\"+(t[12]&&t[12].indexOf(\"layer=c\")>0?\"svembed\":\"embed\")}},gmap_search:{matcher:/(maps\\.)?google\\.([a-z]{2,3}(\\.[a-z]{2})?)\\/(maps\\/search\\/)(.*)/i,type:\"iframe\",url:function(t){return\"//maps.google.\"+t[2]+\"/maps?q=\"+t[5].replace(\"query=\",\"q=\").replace(\"api=1\",\"\")+\"&output=embed\"}}};t(document).on(\"onInit.fb\",function(o,i){t.each(i.group,function(o,i){var a,s,r,c,l,u,d,f=i.src||\"\",h=!1;i.type||(a=t.extend(!0,{},n,i.opts.media),t.each(a,function(n,o){if(r=f.match(o.matcher),u={},d=n,r){if(h=o.type,o.paramPlace&&r[o.paramPlace]){l=r[o.paramPlace],\"?\"==l[0]&&(l=l.substring(1)),l=l.split(\"&\");for(var a=0;a<l.length;++a){var p=l[a].split(\"=\",2);2==p.length&&(u[p[0]]=decodeURIComponent(p[1].replace(/\\+/g,\" \")))}}return c=t.extend(!0,{},o.params,i.opts[n],u),f=\"function\"===t.type(o.url)?o.url.call(this,r,c,i):e(o.url,r,c),s=\"function\"===t.type(o.thumb)?o.thumb.call(this,r,c,i):e(o.thumb,r),\"vimeo\"===d&&(f=f.replace(\"&%23\",\"#\")),!1}}),h?(i.src=f,i.type=h,i.opts.thumb||i.opts.$thumb&&i.opts.$thumb.length||(i.opts.thumb=s),\"iframe\"===h&&(t.extend(!0,i.opts,{iframe:{preload:!1,attr:{scrolling:\"no\"}}}),i.contentProvider=d,\r\ni.opts.slideClass+=\" fancybox-slide--\"+(\"gmap_place\"==d||\"gmap_search\"==d?\"map\":\"video\"))):i.type=\"image\")})})}(window.jQuery),function(t,e,n){\"use strict\";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?\"x\"===n?t.x-e.x:\"y\"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is(\"a,button,input,select,textarea\")||n.isFunction(t.get(0).onclick))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if(\"data-fancybox-\"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)[\"overflow-y\"],o=t.getComputedStyle(e)[\"overflow-x\"],i=(\"scroll\"===n||\"auto\"===n)&&e.scrollHeight>e.clientHeight,a=(\"scroll\"===o||\"auto\"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass(\"fancybox-stage\")||t.is(\"body\"))break}return e},u=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on(\"touchstart.fb.touch mousedown.fb.touch\",n.proxy(e,\"ontouchstart\"))};u.prototype.destroy=function(){this.$container.off(\".fb.touch\")},u.prototype.ontouchstart=function(o){var i=this,c=n(o.target),u=i.instance,d=u.current,f=d.$content,h=\"touchstart\"==o.type;if(h&&i.$container.off(\"mousedown.fb.touch\"),!d||i.instance.isAnimating||i.instance.isClosing)return o.stopPropagation(),void o.preventDefault();if((!o.originalEvent||2!=o.originalEvent.button)&&c.length&&!r(c)&&!r(c.parent())&&!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left)&&(i.startPoints=a(o),i.startPoints&&!(i.startPoints.length>1&&u.isSliding))){if(i.$target=c,i.$content=f,i.canTap=!0,n(e).off(\".fb.touch\"),n(e).on(h?\"touchend.fb.touch touchcancel.fb.touch\":\"mouseup.fb.touch mouseleave.fb.touch\",n.proxy(i,\"ontouchend\")),n(e).on(h?\"touchmove.fb.touch\":\"mousemove.fb.touch\",n.proxy(i,\"ontouchmove\")),o.stopPropagation(),!u.current.opts.touch&&!u.canPan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is(\"img\")&&o.preventDefault());n.fancybox.isMobile&&(l(i.$target)||l(i.$target.parent()))||o.preventDefault(),i.canvasWidth=Math.round(d.$slide[0].clientWidth),i.canvasHeight=Math.round(d.$slide[0].clientHeight),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.sliderStartPos=i.sliderLastPos||{top:0,left:0},i.contentStartPos=n.fancybox.getTranslate(i.$content),i.contentLastPos=null,1!==i.startPoints.length||i.isZooming||(i.canTap=!u.isSliding,\"image\"===d.type&&(i.contentStartPos.width>i.canvasWidth+1||i.contentStartPos.height>i.canvasHeight+1)?(n.fancybox.stop(i.$content),i.$content.css(\"transition-duration\",\"0ms\"),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass(\"fancybox-controls--isGrabbing\")),2!==i.startPoints.length||u.isAnimating||d.hasError||\"image\"!==d.type||!d.isLoaded&&!d.$ghost||(i.isZooming=!0,i.isSwiping=!1,i.isPanning=!1,n.fancybox.stop(i.$content),i.$content.css(\"transition-duration\",\"0ms\"),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))}},u.prototype.ontouchmove=function(t){var e=this;if(e.newPoints=a(t),n.fancybox.isMobile&&(l(e.$target)||l(e.$target.parent())))return t.stopPropagation(),void(e.canTap=!1);if((e.instance.current.opts.touch||e.instance.canPan())&&e.newPoints&&e.newPoints.length&&(e.distanceX=s(e.newPoints[0],e.startPoints[0],\"x\"),e.distanceY=s(e.newPoints[0],e.startPoints[0],\"y\"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0)){if(!e.$target.is(e.$stage)&&!e.$stage.find(e.$target).length)return;t.stopPropagation(),t.preventDefault(),e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()}},u.prototype.onSwipe=function(){var e,a=this,s=a.isSwiping,r=a.sliderStartPos.left||0;s===!0?Math.abs(a.distance)>10&&(a.canTap=!1,a.instance.group.length<2&&a.instance.opts.touch.vertical?a.isSwiping=\"y\":a.instance.isSliding||a.instance.opts.touch.vertical===!1||\"auto\"===a.instance.opts.touch.vertical&&n(t).width()>800?a.isSwiping=\"x\":(e=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=e>45&&e<135?\"y\":\"x\"),a.instance.isSliding=a.isSwiping,a.startPoints=a.newPoints,n.each(a.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css(\"transition-duration\",\"0ms\"),e.inTransition=!1,e.pos===a.instance.current.pos&&(a.sliderStartPos.left=n.fancybox.getTranslate(e.$slide).left)}),a.instance.SlideShow&&a.instance.SlideShow.isActive&&a.instance.SlideShow.stop()):(\"x\"==s&&(a.distanceX>0&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?r+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?r-=Math.pow(-a.distanceX,.8):r+=a.distanceX),a.sliderLastPos={top:\"x\"==s?0:a.sliderStartPos.top+a.distanceY,left:r},a.requestId&&(i(a.requestId),a.requestId=null),a.requestId=o(function(){a.sliderLastPos&&(n.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass(\"fancybox-is-sliding\"))}))},u.prototype.onPan=function(){var t,e,a,s=this;s.canTap=!1,t=s.contentStartPos.width>s.canvasWidth?s.contentStartPos.left+s.distanceX:s.contentStartPos.left,e=s.contentStartPos.top+s.distanceY,a=s.limitMovement(t,e,s.contentStartPos.width,s.contentStartPos.height),a.scaleX=s.contentStartPos.scaleX,a.scaleY=s.contentStartPos.scaleY,s.contentLastPos=a,s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){n.fancybox.setTranslate(s.$content,s.contentLastPos)})},u.prototype.limitMovement=function(t,e,n,o){var i,a,s,r,c=this,l=c.canvasWidth,u=c.canvasHeight,d=c.contentStartPos.left,f=c.contentStartPos.top,h=c.distanceX,p=c.distanceY;return i=Math.max(0,.5*l-.5*n),a=Math.max(0,.5*u-.5*o),s=Math.min(l-n,.5*l-.5*n),r=Math.min(u-o,.5*u-.5*o),n>l&&(h>0&&t>i&&(t=i-1+Math.pow(-i+d+h,.8)||0),h<0&&t<s&&(t=s+1-Math.pow(s-d-h,.8)||0)),o>u&&(p>0&&e>a&&(e=a-1+Math.pow(-a+f+p,.8)||0),p<0&&e<r&&(e=r+1-Math.pow(r-f-p,.8)||0)),{top:e,left:t}},u.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},u.prototype.onZoom=function(){var e=this,a=e.contentStartPos.width,r=e.contentStartPos.height,c=e.contentStartPos.left,l=e.contentStartPos.top,u=s(e.newPoints[0],e.newPoints[1]),d=u/e.startDistanceBetweenFingers,f=Math.floor(a*d),h=Math.floor(r*d),p=(a-f)*e.percentageOfImageAtPinchPointX,g=(r-h)*e.percentageOfImageAtPinchPointY,b=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),m=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=b-e.centerPointStartX,v=m-e.centerPointStartY,x=c+(p+y),w=l+(g+v),$={top:w,left:x,scaleX:e.contentStartPos.scaleX*d,scaleY:e.contentStartPos.scaleY*d};e.canTap=!1,e.newWidth=f,e.newHeight=h,e.contentLastPos=$,e.requestId&&(i(e.requestId),e.requestId=null),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},u.prototype.ontouchend=function(t){var o=this,s=Math.max((new Date).getTime()-o.startTime,1),r=o.isSwiping,c=o.isPanning,l=o.isZooming;return o.endPoints=a(t),o.$container.removeClass(\"fancybox-controls--isGrabbing\"),n(e).off(\".fb.touch\"),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.canTap?o.onTap(t):(o.speed=366,o.velocityX=o.distanceX/s*.5,o.velocityY=o.distanceY/s*.5,o.speedX=Math.max(.5*o.speed,Math.min(1.5*o.speed,1/Math.abs(o.velocityX)*o.speed)),void(c?o.endPanning():l?o.endZooming():o.endSwiping(r)))},u.prototype.endSwiping=function(t){var e=this,o=!1;e.instance.isSliding=!1,e.sliderLastPos=null,\"y\"==t&&Math.abs(e.distanceY)>50?(n.fancybox.animate(e.instance.current.$slide,{top:e.sliderStartPos.top+e.distanceY+150*e.velocityY,opacity:0},150),o=e.instance.close(!0,300)):\"x\"==t&&e.distanceX>50&&e.instance.group.length>1?o=e.instance.previous(e.speedX):\"x\"==t&&e.distanceX<-50&&e.instance.group.length>1&&(o=e.instance.next(e.speedX)),o!==!1||\"x\"!=t&&\"y\"!=t||e.instance.jumpTo(e.instance.current.index,150),e.$container.removeClass(\"fancybox-is-sliding\")},u.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(i.instance.current.opts.touch.momentum===!1?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+i.velocityX*i.speed,e=i.contentLastPos.top+i.velocityY*i.speed),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,330))},u.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.setTranslate(a.content,n.fancybox.getTranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},u.prototype.onTap=function(t){var e,o=this,i=n(t.target),s=o.instance,r=s.current,c=t&&a(t)||o.startPoints,l=c[0]?c[0].x-o.$stage.offset().left:0,u=c[0]?c[0].y-o.$stage.offset().top:0,d=function(e){var i=r.opts[e];if(n.isFunction(i)&&(i=i.apply(s,[r,t])),i)switch(i){case\"close\":s.close(o.startEvent);break;case\"toggleControls\":s.toggleControls(!0);break;case\"next\":s.next();break;case\"nextOrClose\":s.group.length>1?s.next():s.close(o.startEvent);break;case\"zoom\":\"image\"==r.type&&(r.isLoaded||r.$ghost)&&(s.canPan()?s.scaleToFit():s.isScaledDown()?s.scaleToActual(l,u):s.group.length<2&&s.close(o.startEvent))}};if(!(t.originalEvent&&2==t.originalEvent.button||s.isSliding||l>i[0].clientWidth+i.offset().left)){if(i.is(\".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container\"))e=\"Outside\";else if(i.is(\".fancybox-slide\"))e=\"Slide\";else{if(!s.current.$content||!s.current.$content.has(t.target).length)return;e=\"Content\"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,Math.abs(l-o.tapX)>50||Math.abs(u-o.tapY)>50||s.isSliding)return this;d(\"dblclick\"+e)}else o.tapX=l,o.tapY=u,r.opts[\"dblclick\"+e]&&r.opts[\"dblclick\"+e]!==r.opts[\"click\"+e]?o.tapped=setTimeout(function(){o.tapped=null,d(\"click\"+e)},300):d(\"click\"+e);return this}},n(e).on(\"onActivate.fb\",function(t,e){e&&!e.Guestures&&(e.Guestures=new u(e))}),n(e).on(\"beforeClose.fb\",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,window.jQuery),function(t,e){\"use strict\";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find(\"[data-fancybox-play]\").on(\"click\",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currIndex].opts.slideShow)&&t.$button.hide()},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)?t.timer=setTimeout(function(){t.instance.next()},t.instance.current.opts.slideShow.speed||t.speed):(t.stop(),t.instance.idleSecondsCounter=0,t.instance.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null},start:function(){var t=this,e=t.instance.current;t.instance&&e&&(e.opts.loop||e.index<t.instance.group.length-1)&&(t.isActive=!0,t.$button.attr(\"title\",e.opts.i18n[e.opts.lang].PLAY_STOP).addClass(\"fancybox-button--pause\"),e.isComplete&&t.set())},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr(\"title\",e.opts.i18n[e.opts.lang].PLAY_START).removeClass(\"fancybox-button--pause\"),t.isActive=!1},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({\"onInit.fb\":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},\"beforeShow.fb\":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},\"afterShow.fb\":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},\"afterKeydown.fb\":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is(\"button,a,input\")||(a.preventDefault(),r.toggle())},\"beforeClose.fb onDeactivate.fb\":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on(\"visibilitychange\",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,window.jQuery),function(t,e){\"use strict\";var n=function(){var e,n,o,i=[[\"requestFullscreen\",\"exitFullscreen\",\"fullscreenElement\",\"fullscreenEnabled\",\"fullscreenchange\",\"fullscreenerror\"],[\"webkitRequestFullscreen\",\"webkitExitFullscreen\",\"webkitFullscreenElement\",\"webkitFullscreenEnabled\",\"webkitfullscreenchange\",\"webkitfullscreenerror\"],[\"webkitRequestFullScreen\",\"webkitCancelFullScreen\",\"webkitCurrentFullScreenElement\",\"webkitCancelFullScreen\",\"webkitfullscreenchange\",\"webkitfullscreenerror\"],[\"mozRequestFullScreen\",\"mozCancelFullScreen\",\"mozFullScreenElement\",\"mozFullScreenEnabled\",\"mozfullscreenchange\",\"mozfullscreenerror\"],[\"msRequestFullscreen\",\"msExitFullscreen\",\"msFullscreenElement\",\"msFullscreenEnabled\",\"MSFullscreenChange\",\"MSFullscreenError\"]],a={};for(n=0;n<i.length;n++)if(e=i[n],e&&e[1]in t){for(o=0;o<e.length;o++)a[i[0][o]]=e[o];return a}return!1}();if(!n)return void(e.fancybox.defaults.btnTpl.fullScreen=!1);var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e(t).on({\"onInit.fb\":function(t,e){var n,i=e.$refs.toolbar.find(\"[data-fancybox-fullscreen]\");e&&!e.FullScreen&&e.group[e.currIndex].opts.fullScreen?(n=e.$refs.container,n.on(\"click.fb-fullscreen\",\"[data-fancybox-fullscreen]\",function(t){t.stopPropagation(),t.preventDefault(),o.toggle(n[0])}),e.opts.fullScreen&&e.opts.fullScreen.autoStart===!0&&o.request(n[0]),e.FullScreen=o):i.hide()},\"afterKeydown.fb\":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle(e.$refs.container[0]))},\"beforeClose.fb\":function(t){t&&t.FullScreen&&o.exit()}}),e(t).on(n.fullscreenchange,function(){var t=e.fancybox.getInstance();t.current&&\"image\"===t.current.type&&t.isAnimating&&(t.current.$content.css(\"transition\",\"none\"),t.isAnimating=!1,t.update(!0,!0,0))})}(document,window.jQuery),function(t,e){\"use strict\";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,init:function(){var t=this,e=t.instance.group[0],n=t.instance.group[1];t.$button=t.instance.$refs.toolbar.find(\"[data-fancybox-thumbs]\"),t.instance.group.length>1&&t.instance.group[t.instance.currIndex].opts.thumbs&&(\"image\"==e.type||e.opts.thumb||e.opts.$thumb)&&(\"image\"==n.type||n.opts.thumb||n.opts.$thumb)?(t.$button.on(\"click\",function(){t.toggle()}),t.isActive=!0):(t.$button.hide(),t.isActive=!1)},create:function(){var t,n,o=this.instance;this.$grid=e('<div class=\"fancybox-thumbs\"></div>').appendTo(o.$refs.container),t=\"<ul>\",e.each(o.group,function(e,o){n=o.opts.thumb||(o.opts.$thumb?o.opts.$thumb.attr(\"src\"):null),n||\"image\"!==o.type||(n=o.src),n&&n.length&&(t+='<li data-index=\"'+e+'\"  tabindex=\"0\" class=\"fancybox-thumbs-loading\"><img data-src=\"'+n+'\" /></li>')}),t+=\"</ul>\",this.$list=e(t).appendTo(this.$grid).on(\"click\",\"li\",function(){o.jumpTo(e(this).data(\"index\"))}),this.$list.find(\"img\").hide().one(\"load\",function(){var t,n,o,i,a=e(this).parent().removeClass(\"fancybox-thumbs-loading\"),s=a.outerWidth(),r=a.outerHeight();t=this.naturalWidth||this.width,n=this.naturalHeight||this.height,o=t/s,i=n/r,o>=1&&i>=1&&(o>i?(t/=i,n=r):(t=s,n/=o)),e(this).css({width:Math.floor(t),height:Math.floor(n),\"margin-top\":Math.min(0,Math.floor(.3*r-.3*n)),\"margin-left\":Math.min(0,Math.floor(.5*s-.5*t))}).show()}).each(function(){this.src=e(this).data(\"src\")})},focus:function(){this.instance.current&&this.$list.children().removeClass(\"fancybox-thumbs-active\").filter('[data-index=\"'+this.instance.current.index+'\"]').addClass(\"fancybox-thumbs-active\").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass(\"fancybox-show-thumbs\",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger(\"onThumbsShow\"),this.focus()):this.$grid&&this.instance.trigger(\"onThumbsHide\"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({\"onInit.fb\":function(t,e){e&&!e.Thumbs&&(e.Thumbs=new n(e))},\"beforeShow.fb\":function(t,e,n,o){var i=e&&e.Thumbs;if(i&&i.isActive){if(n.modal)return i.$button.hide(),void i.hide();o&&e.opts.thumbs.autoStart===!0&&i.show(),i.isVisible&&i.focus()}},\"afterKeydown.fb\":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},\"beforeClose.fb\":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&e.opts.thumbs.hideOnClose!==!1&&n.close()}})}(document,window.jQuery),function(t,e,n){\"use strict\";function o(){var t=e.location.hash.substr(1),n=t.split(\"-\"),o=n.length>1&&/^\\+?\\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join(\"-\");return o<1&&(o=1),{hash:t,index:o,gallery:i}}function i(t){var e;\"\"!==t.gallery&&(e=n(\"[data-fancybox='\"+n.escapeSelector(t.gallery)+\"']\").eq(t.index-1),e.length||(e=n(\"#\"+n.escapeSelector(t.gallery))),e.length&&(s=!1,e.trigger(\"click\")))}function a(t){var e;return!!t&&(e=t.current?t.current.opts:t.opts,e.$orig?e.$orig.data(\"fancybox\"):e.hash||\"\")}n.escapeSelector||(n.escapeSelector=function(t){var e=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\x80-\\uFFFF\\w-]/g,n=function(t,e){return e?\"\\0\"===t?\"�\":t.slice(0,-1)+\"\\\\\"+t.charCodeAt(t.length-1).toString(16)+\" \":\"\\\\\"+t};return(t+\"\").replace(e,n)});var s=!0,r=null,c=null;n(function(){setTimeout(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({\"onInit.fb\":function(t,e){var n,i;e.group[e.currIndex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},\"beforeShow.fb\":function(n,o,i){var l;i.opts.hash!==!1&&(l=a(o),l&&\"\"!==l&&(e.location.hash.indexOf(l)<0&&(o.opts.origHash=e.location.hash),r=l+(o.group.length>1?\"-\"+(i.index+1):\"\"),\"replaceState\"in e.history?(c&&clearTimeout(c),c=setTimeout(function(){e.history[s?\"pushState\":\"replaceState\"]({},t.title,e.location.pathname+e.location.search+\"#\"+r),c=null,s=!1},300)):e.location.hash=r))},\"beforeClose.fb\":function(o,i,s){var l,u;c&&clearTimeout(c),s.opts.hash!==!1&&(l=a(i),u=i&&i.opts.origHash?i.opts.origHash:\"\",l&&\"\"!==l&&(\"replaceState\"in history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+u):(e.location.hash=u,n(e).scrollTop(i.scrollTop).scrollLeft(i.scrollLeft))),r=null)}}),n(e).on(\"hashchange.fb\",function(){var t=o();n.fancybox.getInstance()?!r||r===t.gallery+\"-\"+t.index||1===t.index&&r==t.gallery||(r=null,n.fancybox.close(),s=!0):\"\"!==t.gallery&&i(t)}),i(o()))},50)})}(document,window,window.jQuery);","/*\r\n     _ _      _       _\r\n ___| (_) ___| | __  (_)___\r\n/ __| | |/ __| |/ /  | / __|\r\n\\__ \\ | | (__|   < _ | \\__ \\\r\n|___/_|_|\\___|_|\\_(_)/ |___/\r\n                   |__/\r\n\r\n Version: 1.8.0\r\n  Author: Ken Wheeler\r\n Website: http://kenwheeler.github.io\r\n    Docs: http://kenwheeler.github.io/slick\r\n    Repo: http://github.com/kenwheeler/slick\r\n  Issues: http://github.com/kenwheeler/slick/issues\r\n\r\n */\r\n/* global window, document, define, jQuery, setInterval, clearInterval */\r\n;(function(factory) {\r\n  'use strict';\r\n  if (typeof define === 'function' && define.amd) {\r\n    define(['jquery'], factory);\r\n  } else if (typeof exports !== 'undefined') {\r\n    module.exports = factory(require('jquery'));\r\n  } else {\r\n    factory(jQuery);\r\n  }\r\n\r\n}(function($) {\r\n  'use strict';\r\n  var Slick = window.Slick || {};\r\n\r\n  Slick = (function() {\r\n\r\n    var instanceUid = 0;\r\n\r\n    function Slick(element, settings) {\r\n\r\n      var _ = this, dataSettings;\r\n\r\n      _.defaults = {\r\n        accessibility: true,\r\n        adaptiveHeight: false,\r\n        appendArrows: $(element),\r\n        appendDots: $(element),\r\n        arrows: true,\r\n        asNavFor: null,\r\n        prevArrow: '<button class=\"slick-prev\" aria-label=\"Previous\" type=\"button\">Previous</button>',\r\n        nextArrow: '<button class=\"slick-next\" aria-label=\"Next\" type=\"button\">Next</button>',\r\n        autoplay: false,\r\n        autoplaySpeed: 3000,\r\n        centerMode: false,\r\n        centerPadding: '50px',\r\n        cssEase: 'ease',\r\n        customPaging: function(slider, i) {\r\n          return $('<button type=\"button\" />').text(i + 1);\r\n        },\r\n        dots: false,\r\n        dotsClass: 'slick-dots',\r\n        draggable: true,\r\n        easing: 'linear',\r\n        edgeFriction: 0.35,\r\n        fade: false,\r\n        focusOnSelect: false,\r\n        focusOnChange: false,\r\n        infinite: true,\r\n        initialSlide: 0,\r\n        lazyLoad: 'ondemand',\r\n        mobileFirst: false,\r\n        pauseOnHover: true,\r\n        pauseOnFocus: true,\r\n        pauseOnDotsHover: false,\r\n        respondTo: 'window',\r\n        responsive: null,\r\n        rows: 1,\r\n        rtl: false,\r\n        slide: '',\r\n        slidesPerRow: 1,\r\n        slidesToShow: 1,\r\n        slidesToScroll: 1,\r\n        speed: 500,\r\n        swipe: true,\r\n        swipeToSlide: false,\r\n        touchMove: true,\r\n        touchThreshold: 5,\r\n        useCSS: true,\r\n        useTransform: true,\r\n        variableWidth: false,\r\n        vertical: false,\r\n        verticalSwiping: false,\r\n        waitForAnimate: true,\r\n        zIndex: 1000\r\n      };\r\n\r\n      _.initials = {\r\n        animating: false,\r\n        dragging: false,\r\n        autoPlayTimer: null,\r\n        currentDirection: 0,\r\n        currentLeft: null,\r\n        currentSlide: 0,\r\n        direction: 1,\r\n        $dots: null,\r\n        listWidth: null,\r\n        listHeight: null,\r\n        loadIndex: 0,\r\n        $nextArrow: null,\r\n        $prevArrow: null,\r\n        scrolling: false,\r\n        slideCount: null,\r\n        slideWidth: null,\r\n        $slideTrack: null,\r\n        $slides: null,\r\n        sliding: false,\r\n        slideOffset: 0,\r\n        swipeLeft: null,\r\n        swiping: false,\r\n        $list: null,\r\n        touchObject: {},\r\n        transformsEnabled: false,\r\n        unslicked: false\r\n      };\r\n\r\n      $.extend(_, _.initials);\r\n\r\n      _.activeBreakpoint = null;\r\n      _.animType = null;\r\n      _.animProp = null;\r\n      _.breakpoints = [];\r\n      _.breakpointSettings = [];\r\n      _.cssTransitions = false;\r\n      _.focussed = false;\r\n      _.interrupted = false;\r\n      _.hidden = 'hidden';\r\n      _.paused = true;\r\n      _.positionProp = null;\r\n      _.respondTo = null;\r\n      _.rowCount = 1;\r\n      _.shouldClick = true;\r\n      _.$slider = $(element);\r\n      _.$slidesCache = null;\r\n      _.transformType = null;\r\n      _.transitionType = null;\r\n      _.visibilityChange = 'visibilitychange';\r\n      _.windowWidth = 0;\r\n      _.windowTimer = null;\r\n\r\n      dataSettings = $(element).data('slick') || {};\r\n\r\n      _.options = $.extend({}, _.defaults, settings, dataSettings);\r\n\r\n      _.currentSlide = _.options.initialSlide;\r\n\r\n      _.originalSettings = _.options;\r\n\r\n      if (typeof document.mozHidden !== 'undefined') {\r\n        _.hidden = 'mozHidden';\r\n        _.visibilityChange = 'mozvisibilitychange';\r\n      } else if (typeof document.webkitHidden !== 'undefined') {\r\n        _.hidden = 'webkitHidden';\r\n        _.visibilityChange = 'webkitvisibilitychange';\r\n      }\r\n\r\n      _.autoPlay = $.proxy(_.autoPlay, _);\r\n      _.autoPlayClear = $.proxy(_.autoPlayClear, _);\r\n      _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);\r\n      _.changeSlide = $.proxy(_.changeSlide, _);\r\n      _.clickHandler = $.proxy(_.clickHandler, _);\r\n      _.selectHandler = $.proxy(_.selectHandler, _);\r\n      _.setPosition = $.proxy(_.setPosition, _);\r\n      _.swipeHandler = $.proxy(_.swipeHandler, _);\r\n      _.dragHandler = $.proxy(_.dragHandler, _);\r\n      _.keyHandler = $.proxy(_.keyHandler, _);\r\n\r\n      _.instanceUid = instanceUid++;\r\n\r\n      // A simple way to check for HTML strings\r\n      // Strict HTML recognition (must start with <)\r\n      // Extracted from jQuery v1.11 source\r\n      _.htmlExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*)$/;\r\n\r\n\r\n      _.registerBreakpoints();\r\n      _.init(true);\r\n\r\n    }\r\n\r\n    return Slick;\r\n\r\n  }());\r\n\r\n  Slick.prototype.activateADA = function() {\r\n    var _ = this;\r\n\r\n    _.$slideTrack.find('.slick-active').attr({\r\n      'aria-hidden': 'false'\r\n    }).find('a, input, button, select').attr({\r\n      'tabindex': '0'\r\n    });\r\n\r\n  };\r\n\r\n  Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {\r\n\r\n    var _ = this;\r\n\r\n    if (typeof(index) === 'boolean') {\r\n      addBefore = index;\r\n      index = null;\r\n    } else if (index < 0 || (index >= _.slideCount)) {\r\n      return false;\r\n    }\r\n\r\n    _.unload();\r\n\r\n    if (typeof(index) === 'number') {\r\n      if (index === 0 && _.$slides.length === 0) {\r\n        $(markup).appendTo(_.$slideTrack);\r\n      } else if (addBefore) {\r\n        $(markup).insertBefore(_.$slides.eq(index));\r\n      } else {\r\n        $(markup).insertAfter(_.$slides.eq(index));\r\n      }\r\n    } else {\r\n      if (addBefore === true) {\r\n        $(markup).prependTo(_.$slideTrack);\r\n      } else {\r\n        $(markup).appendTo(_.$slideTrack);\r\n      }\r\n    }\r\n\r\n    _.$slides = _.$slideTrack.children(this.options.slide);\r\n\r\n    _.$slideTrack.children(this.options.slide).detach();\r\n\r\n    _.$slideTrack.append(_.$slides);\r\n\r\n    _.$slides.each(function(index, element) {\r\n      $(element).attr('data-slick-index', index);\r\n    });\r\n\r\n    _.$slidesCache = _.$slides;\r\n\r\n    _.reinit();\r\n\r\n  };\r\n\r\n  Slick.prototype.animateHeight = function() {\r\n    var _ = this;\r\n    // Old\r\n    // if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {\r\n    if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true) {\r\n      var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);\r\n      _.$list.animate({\r\n        height: targetHeight\r\n      }, _.options.speed);\r\n    }\r\n  };\r\n\r\n  Slick.prototype.animateSlide = function(targetLeft, callback) {\r\n\r\n    var animProps = {},\r\n      _ = this;\r\n\r\n    _.animateHeight();\r\n\r\n    if (_.options.rtl === true && _.options.vertical === false) {\r\n      targetLeft = -targetLeft;\r\n    }\r\n    if (_.transformsEnabled === false) {\r\n      if (_.options.vertical === false) {\r\n        _.$slideTrack.animate({\r\n          left: targetLeft\r\n        }, _.options.speed, _.options.easing, callback);\r\n      } else {\r\n        _.$slideTrack.animate({\r\n          top: targetLeft\r\n        }, _.options.speed, _.options.easing, callback);\r\n      }\r\n\r\n    } else {\r\n\r\n      if (_.cssTransitions === false) {\r\n        if (_.options.rtl === true) {\r\n          _.currentLeft = -(_.currentLeft);\r\n        }\r\n        $({\r\n          animStart: _.currentLeft\r\n        }).animate({\r\n          animStart: targetLeft\r\n        }, {\r\n          duration: _.options.speed,\r\n          easing: _.options.easing,\r\n          step: function(now) {\r\n            now = Math.ceil(now);\r\n\r\n            if (_.options.vertical === false) {\r\n              animProps[_.animType] = 'translate(' +\r\n                now + 'px, 0px)';\r\n              _.$slideTrack.css(animProps);\r\n            } else {\r\n              animProps[_.animType] = 'translate(0px,' +\r\n                now + 'px)';\r\n              _.$slideTrack.css(animProps);\r\n            }\r\n          },\r\n          complete: function() {\r\n            if (callback) {\r\n              callback.call();\r\n            }\r\n          }\r\n        });\r\n\r\n      } else {\r\n\r\n        _.applyTransition();\r\n        targetLeft = Math.ceil(targetLeft);\r\n\r\n        if (_.options.vertical === false) {\r\n          animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';\r\n        } else {\r\n          animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';\r\n        }\r\n        _.$slideTrack.css(animProps);\r\n\r\n        if (callback) {\r\n          setTimeout(function() {\r\n\r\n            _.disableTransition();\r\n\r\n            callback.call();\r\n          }, _.options.speed);\r\n        }\r\n\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.getNavTarget = function() {\r\n\r\n    var _ = this,\r\n      asNavFor = _.options.asNavFor;\r\n\r\n    if ( asNavFor && asNavFor !== null ) {\r\n      asNavFor = $(asNavFor).not(_.$slider);\r\n    }\r\n\r\n    return asNavFor;\r\n\r\n  };\r\n\r\n  Slick.prototype.asNavFor = function(index) {\r\n\r\n    var _ = this,\r\n      asNavFor = _.getNavTarget();\r\n\r\n    if ( asNavFor !== null && typeof asNavFor === 'object' ) {\r\n      asNavFor.each(function() {\r\n        var target = $(this).slick('getSlick');\r\n        if(!target.unslicked) {\r\n          target.slideHandler(index, true);\r\n        }\r\n      });\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.applyTransition = function(slide) {\r\n\r\n    var _ = this,\r\n      transition = {};\r\n\r\n    if (_.options.fade === false) {\r\n      transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;\r\n    } else {\r\n      transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;\r\n    }\r\n\r\n    if (_.options.fade === false) {\r\n      _.$slideTrack.css(transition);\r\n    } else {\r\n      _.$slides.eq(slide).css(transition);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.autoPlay = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.autoPlayClear();\r\n\r\n    if ( _.slideCount > _.options.slidesToShow ) {\r\n      _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.autoPlayClear = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.autoPlayTimer) {\r\n      clearInterval(_.autoPlayTimer);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.autoPlayIterator = function() {\r\n\r\n    var _ = this,\r\n      slideTo = _.currentSlide + _.options.slidesToScroll;\r\n\r\n    if ( !_.paused && !_.interrupted && !_.focussed ) {\r\n\r\n      if ( _.options.infinite === false ) {\r\n\r\n        if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {\r\n          _.direction = 0;\r\n        }\r\n\r\n        else if ( _.direction === 0 ) {\r\n\r\n          slideTo = _.currentSlide - _.options.slidesToScroll;\r\n\r\n          if ( _.currentSlide - 1 === 0 ) {\r\n            _.direction = 1;\r\n          }\r\n\r\n        }\r\n\r\n      }\r\n\r\n      _.slideHandler( slideTo );\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.buildArrows = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.arrows === true ) {\r\n\r\n      _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');\r\n      _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');\r\n\r\n      if( _.slideCount > _.options.slidesToShow ) {\r\n\r\n        _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');\r\n        _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');\r\n\r\n        if (_.htmlExpr.test(_.options.prevArrow)) {\r\n          _.$prevArrow.prependTo(_.options.appendArrows);\r\n        }\r\n\r\n        if (_.htmlExpr.test(_.options.nextArrow)) {\r\n          _.$nextArrow.appendTo(_.options.appendArrows);\r\n        }\r\n\r\n        if (_.options.infinite !== true) {\r\n          _.$prevArrow\r\n            .addClass('slick-disabled')\r\n            .attr('aria-disabled', 'true');\r\n        }\r\n\r\n      } else {\r\n\r\n        _.$prevArrow.add( _.$nextArrow )\r\n\r\n          .addClass('slick-hidden')\r\n          .attr({\r\n            'aria-disabled': 'true',\r\n            'tabindex': '-1'\r\n          });\r\n\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.buildDots = function() {\r\n\r\n    var _ = this,\r\n      i, dot;\r\n\r\n    if (_.options.dots === true) {\r\n\r\n      _.$slider.addClass('slick-dotted');\r\n\r\n      dot = $('<ul />').addClass(_.options.dotsClass);\r\n\r\n      for (i = 0; i <= _.getDotCount(); i += 1) {\r\n        dot.append($('<li />').append(_.options.customPaging.call(this, _, i)));\r\n      }\r\n\r\n      _.$dots = dot.appendTo(_.options.appendDots);\r\n\r\n      _.$dots.find('li').first().addClass('slick-active');\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.buildOut = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.$slides =\r\n      _.$slider\r\n        .children( _.options.slide + ':not(.slick-cloned)')\r\n        .addClass('slick-slide');\r\n\r\n    _.slideCount = _.$slides.length;\r\n\r\n    _.$slides.each(function(index, element) {\r\n      $(element)\r\n        .attr('data-slick-index', index)\r\n        .data('originalStyling', $(element).attr('style') || '');\r\n    });\r\n\r\n    _.$slider.addClass('slick-slider');\r\n\r\n    _.$slideTrack = (_.slideCount === 0) ?\r\n      $('<div class=\"slick-track\"/>').appendTo(_.$slider) :\r\n      _.$slides.wrapAll('<div class=\"slick-track\"/>').parent();\r\n\r\n    _.$list = _.$slideTrack.wrap(\r\n      '<div class=\"slick-list\"/>').parent();\r\n    _.$slideTrack.css('opacity', 0);\r\n\r\n    if (_.options.centerMode === true || _.options.swipeToSlide === true) {\r\n      _.options.slidesToScroll = 1;\r\n    }\r\n\r\n    $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');\r\n\r\n    _.setupInfinite();\r\n\r\n    _.buildArrows();\r\n\r\n    _.buildDots();\r\n\r\n    _.updateDots();\r\n\r\n\r\n    _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);\r\n\r\n    if (_.options.draggable === true) {\r\n      _.$list.addClass('draggable');\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.buildRows = function() {\r\n\r\n    var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection;\r\n\r\n    newSlides = document.createDocumentFragment();\r\n    originalSlides = _.$slider.children();\r\n\r\n    if(_.options.rows > 1) {\r\n\r\n      slidesPerSection = _.options.slidesPerRow * _.options.rows;\r\n      numOfSlides = Math.ceil(\r\n        originalSlides.length / slidesPerSection\r\n      );\r\n\r\n      for(a = 0; a < numOfSlides; a++){\r\n        var slide = document.createElement('div');\r\n        for(b = 0; b < _.options.rows; b++) {\r\n          var row = document.createElement('div');\r\n          for(c = 0; c < _.options.slidesPerRow; c++) {\r\n            var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c));\r\n            if (originalSlides.get(target)) {\r\n              row.appendChild(originalSlides.get(target));\r\n            }\r\n          }\r\n          slide.appendChild(row);\r\n        }\r\n        newSlides.appendChild(slide);\r\n      }\r\n\r\n      _.$slider.empty().append(newSlides);\r\n      _.$slider.children().children().children()\r\n        .css({\r\n          'width':(100 / _.options.slidesPerRow) + '%',\r\n          'display': 'inline-block'\r\n        });\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.checkResponsive = function(initial, forceUpdate) {\r\n\r\n    var _ = this,\r\n      breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false;\r\n    var sliderWidth = _.$slider.width();\r\n    var windowWidth = window.innerWidth || $(window).width();\r\n\r\n    if (_.respondTo === 'window') {\r\n      respondToWidth = windowWidth;\r\n    } else if (_.respondTo === 'slider') {\r\n      respondToWidth = sliderWidth;\r\n    } else if (_.respondTo === 'min') {\r\n      respondToWidth = Math.min(windowWidth, sliderWidth);\r\n    }\r\n\r\n    if ( _.options.responsive &&\r\n      _.options.responsive.length &&\r\n      _.options.responsive !== null) {\r\n\r\n      targetBreakpoint = null;\r\n\r\n      for (breakpoint in _.breakpoints) {\r\n        if (_.breakpoints.hasOwnProperty(breakpoint)) {\r\n          if (_.originalSettings.mobileFirst === false) {\r\n            if (respondToWidth < _.breakpoints[breakpoint]) {\r\n              targetBreakpoint = _.breakpoints[breakpoint];\r\n            }\r\n          } else {\r\n            if (respondToWidth > _.breakpoints[breakpoint]) {\r\n              targetBreakpoint = _.breakpoints[breakpoint];\r\n            }\r\n          }\r\n        }\r\n      }\r\n\r\n      if (targetBreakpoint !== null) {\r\n        if (_.activeBreakpoint !== null) {\r\n          if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) {\r\n            _.activeBreakpoint =\r\n              targetBreakpoint;\r\n            if (_.breakpointSettings[targetBreakpoint] === 'unslick') {\r\n              _.unslick(targetBreakpoint);\r\n            } else {\r\n              _.options = $.extend({}, _.originalSettings,\r\n                _.breakpointSettings[\r\n                  targetBreakpoint]);\r\n              if (initial === true) {\r\n                _.currentSlide = _.options.initialSlide;\r\n              }\r\n              _.refresh(initial);\r\n            }\r\n            triggerBreakpoint = targetBreakpoint;\r\n          }\r\n        } else {\r\n          _.activeBreakpoint = targetBreakpoint;\r\n          if (_.breakpointSettings[targetBreakpoint] === 'unslick') {\r\n            _.unslick(targetBreakpoint);\r\n          } else {\r\n            _.options = $.extend({}, _.originalSettings,\r\n              _.breakpointSettings[\r\n                targetBreakpoint]);\r\n            if (initial === true) {\r\n              _.currentSlide = _.options.initialSlide;\r\n            }\r\n            _.refresh(initial);\r\n          }\r\n          triggerBreakpoint = targetBreakpoint;\r\n        }\r\n      } else {\r\n        if (_.activeBreakpoint !== null) {\r\n          _.activeBreakpoint = null;\r\n          _.options = _.originalSettings;\r\n          if (initial === true) {\r\n            _.currentSlide = _.options.initialSlide;\r\n          }\r\n          _.refresh(initial);\r\n          triggerBreakpoint = targetBreakpoint;\r\n        }\r\n      }\r\n\r\n      // only trigger breakpoints during an actual break. not on initialize.\r\n      if( !initial && triggerBreakpoint !== false ) {\r\n        _.$slider.trigger('breakpoint', [_, triggerBreakpoint]);\r\n      }\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.changeSlide = function(event, dontAnimate) {\r\n\r\n    var _ = this,\r\n      $target = $(event.currentTarget),\r\n      indexOffset, slideOffset, unevenOffset;\r\n\r\n    // If target is a link, prevent default action.\r\n    if($target.is('a')) {\r\n      event.preventDefault();\r\n    }\r\n\r\n    // If target is not the <li> element (ie: a child), find the <li>.\r\n    if(!$target.is('li')) {\r\n      $target = $target.closest('li');\r\n    }\r\n\r\n    unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0);\r\n    indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll;\r\n\r\n    switch (event.data.message) {\r\n\r\n      case 'previous':\r\n        slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset;\r\n        if (_.slideCount > _.options.slidesToShow) {\r\n          _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate);\r\n        }\r\n        break;\r\n\r\n      case 'next':\r\n        slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset;\r\n        if (_.slideCount > _.options.slidesToShow) {\r\n          _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate);\r\n        }\r\n        break;\r\n\r\n      case 'index':\r\n        var index = event.data.index === 0 ? 0 :\r\n          event.data.index || $target.index() * _.options.slidesToScroll;\r\n\r\n        _.slideHandler(_.checkNavigable(index), false, dontAnimate);\r\n        $target.children().trigger('focus');\r\n        break;\r\n\r\n      default:\r\n        return;\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.checkNavigable = function(index) {\r\n\r\n    var _ = this,\r\n      navigables, prevNavigable;\r\n\r\n    navigables = _.getNavigableIndexes();\r\n    prevNavigable = 0;\r\n    if (index > navigables[navigables.length - 1]) {\r\n      index = navigables[navigables.length - 1];\r\n    } else {\r\n      for (var n in navigables) {\r\n        if (index < navigables[n]) {\r\n          index = prevNavigable;\r\n          break;\r\n        }\r\n        prevNavigable = navigables[n];\r\n      }\r\n    }\r\n\r\n    return index;\r\n  };\r\n\r\n  Slick.prototype.cleanUpEvents = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.dots && _.$dots !== null) {\r\n\r\n      $('li', _.$dots)\r\n        .off('click.slick', _.changeSlide)\r\n        .off('mouseenter.slick', $.proxy(_.interrupt, _, true))\r\n        .off('mouseleave.slick', $.proxy(_.interrupt, _, false));\r\n\r\n      if (_.options.accessibility === true) {\r\n        _.$dots.off('keydown.slick', _.keyHandler);\r\n      }\r\n    }\r\n\r\n    _.$slider.off('focus.slick blur.slick');\r\n\r\n    if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {\r\n      _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide);\r\n      _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);\r\n\r\n      if (_.options.accessibility === true) {\r\n        _.$prevArrow && _.$prevArrow.off('keydown.slick', _.keyHandler);\r\n        _.$nextArrow && _.$nextArrow.off('keydown.slick', _.keyHandler);\r\n      }\r\n    }\r\n\r\n    _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler);\r\n    _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler);\r\n    _.$list.off('touchend.slick mouseup.slick', _.swipeHandler);\r\n    _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler);\r\n\r\n    _.$list.off('click.slick', _.clickHandler);\r\n\r\n    $(document).off(_.visibilityChange, _.visibility);\r\n\r\n    _.cleanUpSlideEvents();\r\n\r\n    if (_.options.accessibility === true) {\r\n      _.$list.off('keydown.slick', _.keyHandler);\r\n    }\r\n\r\n    if (_.options.focusOnSelect === true) {\r\n      $(_.$slideTrack).children().off('click.slick', _.selectHandler);\r\n    }\r\n\r\n    $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange);\r\n\r\n    $(window).off('resize.slick.slick-' + _.instanceUid, _.resize);\r\n\r\n    $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);\r\n\r\n    $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);\r\n\r\n  };\r\n\r\n  Slick.prototype.cleanUpSlideEvents = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true));\r\n    _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false));\r\n\r\n  };\r\n\r\n  Slick.prototype.cleanUpRows = function() {\r\n\r\n    var _ = this, originalSlides;\r\n\r\n    if(_.options.rows > 1) {\r\n      originalSlides = _.$slides.children().children();\r\n      originalSlides.removeAttr('style');\r\n      _.$slider.empty().append(originalSlides);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.clickHandler = function(event) {\r\n\r\n    var _ = this;\r\n\r\n    if (_.shouldClick === false) {\r\n      event.stopImmediatePropagation();\r\n      event.stopPropagation();\r\n      event.preventDefault();\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.destroy = function(refresh) {\r\n\r\n    var _ = this;\r\n\r\n    _.autoPlayClear();\r\n\r\n    _.touchObject = {};\r\n\r\n    _.cleanUpEvents();\r\n\r\n    $('.slick-cloned', _.$slider).detach();\r\n\r\n    if (_.$dots) {\r\n      _.$dots.remove();\r\n    }\r\n\r\n    if ( _.$prevArrow && _.$prevArrow.length ) {\r\n\r\n      _.$prevArrow\r\n        .removeClass('slick-disabled slick-arrow slick-hidden')\r\n        .removeAttr('aria-hidden aria-disabled tabindex')\r\n        .css('display','');\r\n\r\n      if ( _.htmlExpr.test( _.options.prevArrow )) {\r\n        _.$prevArrow.remove();\r\n      }\r\n    }\r\n\r\n    if ( _.$nextArrow && _.$nextArrow.length ) {\r\n\r\n      _.$nextArrow\r\n        .removeClass('slick-disabled slick-arrow slick-hidden')\r\n        .removeAttr('aria-hidden aria-disabled tabindex')\r\n        .css('display','');\r\n\r\n      if ( _.htmlExpr.test( _.options.nextArrow )) {\r\n        _.$nextArrow.remove();\r\n      }\r\n    }\r\n\r\n\r\n    if (_.$slides) {\r\n\r\n      _.$slides\r\n        .removeClass('slick-slide slick-active slick-center slick-visible slick-current')\r\n        .removeAttr('aria-hidden')\r\n        .removeAttr('data-slick-index')\r\n        .each(function(){\r\n          $(this).attr('style', $(this).data('originalStyling'));\r\n        });\r\n\r\n      _.$slideTrack.children(this.options.slide).detach();\r\n\r\n      _.$slideTrack.detach();\r\n\r\n      _.$list.detach();\r\n\r\n      _.$slider.append(_.$slides);\r\n    }\r\n\r\n    _.cleanUpRows();\r\n\r\n    _.$slider.removeClass('slick-slider');\r\n    _.$slider.removeClass('slick-initialized');\r\n    _.$slider.removeClass('slick-dotted');\r\n\r\n    _.unslicked = true;\r\n\r\n    if(!refresh) {\r\n      _.$slider.trigger('destroy', [_]);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.disableTransition = function(slide) {\r\n\r\n    var _ = this,\r\n      transition = {};\r\n\r\n    transition[_.transitionType] = '';\r\n\r\n    if (_.options.fade === false) {\r\n      _.$slideTrack.css(transition);\r\n    } else {\r\n      _.$slides.eq(slide).css(transition);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.fadeSlide = function(slideIndex, callback) {\r\n\r\n    var _ = this;\r\n\r\n    if (_.cssTransitions === false) {\r\n\r\n      _.$slides.eq(slideIndex).css({\r\n        zIndex: _.options.zIndex\r\n      });\r\n\r\n      _.$slides.eq(slideIndex).animate({\r\n        opacity: 1\r\n      }, _.options.speed, _.options.easing, callback);\r\n\r\n    } else {\r\n\r\n      _.applyTransition(slideIndex);\r\n\r\n      _.$slides.eq(slideIndex).css({\r\n        opacity: 1,\r\n        zIndex: _.options.zIndex\r\n      });\r\n\r\n      if (callback) {\r\n        setTimeout(function() {\r\n\r\n          _.disableTransition(slideIndex);\r\n\r\n          callback.call();\r\n        }, _.options.speed);\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.fadeSlideOut = function(slideIndex) {\r\n\r\n    var _ = this;\r\n\r\n    if (_.cssTransitions === false) {\r\n\r\n      _.$slides.eq(slideIndex).animate({\r\n        opacity: 0,\r\n        zIndex: _.options.zIndex - 2\r\n      }, _.options.speed, _.options.easing);\r\n\r\n    } else {\r\n\r\n      _.applyTransition(slideIndex);\r\n\r\n      _.$slides.eq(slideIndex).css({\r\n        opacity: 0,\r\n        zIndex: _.options.zIndex - 2\r\n      });\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) {\r\n\r\n    var _ = this;\r\n\r\n    if (filter !== null) {\r\n\r\n      _.$slidesCache = _.$slides;\r\n\r\n      _.unload();\r\n\r\n      _.$slideTrack.children(this.options.slide).detach();\r\n\r\n      _.$slidesCache.filter(filter).appendTo(_.$slideTrack);\r\n\r\n      _.reinit();\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.focusHandler = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.$slider\r\n      .off('focus.slick blur.slick')\r\n      .on('focus.slick blur.slick', '*', function(event) {\r\n\r\n        event.stopImmediatePropagation();\r\n        var $sf = $(this);\r\n\r\n        setTimeout(function() {\r\n\r\n          if( _.options.pauseOnFocus ) {\r\n            _.focussed = $sf.is(':focus');\r\n            _.autoPlay();\r\n          }\r\n\r\n        }, 0);\r\n\r\n      });\r\n  };\r\n\r\n  Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() {\r\n\r\n    var _ = this;\r\n    return _.currentSlide;\r\n\r\n  };\r\n\r\n  Slick.prototype.getDotCount = function() {\r\n\r\n    var _ = this;\r\n\r\n    var breakPoint = 0;\r\n    var counter = 0;\r\n    var pagerQty = 0;\r\n\r\n    if (_.options.infinite === true) {\r\n      if (_.slideCount <= _.options.slidesToShow) {\r\n        ++pagerQty;\r\n      } else {\r\n        while (breakPoint < _.slideCount) {\r\n          ++pagerQty;\r\n          breakPoint = counter + _.options.slidesToScroll;\r\n          counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;\r\n        }\r\n      }\r\n    } else if (_.options.centerMode === true) {\r\n      pagerQty = _.slideCount;\r\n    } else if(!_.options.asNavFor) {\r\n      pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);\r\n    }else {\r\n      while (breakPoint < _.slideCount) {\r\n        ++pagerQty;\r\n        breakPoint = counter + _.options.slidesToScroll;\r\n        counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;\r\n      }\r\n    }\r\n\r\n    return pagerQty - 1;\r\n\r\n  };\r\n\r\n  Slick.prototype.getLeft = function(slideIndex) {\r\n\r\n    var _ = this,\r\n      targetLeft,\r\n      verticalHeight,\r\n      verticalOffset = 0,\r\n      targetSlide,\r\n      coef,\r\n      slidesHeightsArray = [],\r\n      newslidesHeightsArray = [];\r\n\r\n    for(var i = 0; i < _.$slides.length; i++) {\r\n      slidesHeightsArray[i] = _.$slides[i].clientHeight;\r\n    }\r\n\r\n    _.slideOffset = 0;\r\n    verticalHeight = _.$slides.first().outerHeight(true);\r\n\r\n    if (_.options.infinite === true) {\r\n      if (_.slideCount > _.options.slidesToShow) {\r\n        _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;\r\n        coef = -1\r\n\r\n        if (_.options.vertical === true && _.options.centerMode === true) {\r\n          if (_.options.slidesToShow === 2) {\r\n            coef = -1.5;\r\n          } else if (_.options.slidesToShow === 1) {\r\n            coef = -2;\r\n          }\r\n        }\r\n\r\n        if (_.options.vertical === true && _.options.infinite === true) {\r\n          verticalHeight = _.$slides.last().outerHeight(true);\r\n        }\r\n\r\n        verticalOffset = (verticalHeight * _.options.slidesToShow) * coef;\r\n      }\r\n      if (_.slideCount % _.options.slidesToScroll !== 0) {\r\n        if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {\r\n          if (slideIndex > _.slideCount) {\r\n            _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1;\r\n            verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1;\r\n          } else {\r\n            _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1;\r\n            verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1;\r\n          }\r\n        }\r\n      }\r\n    } else {\r\n      if (slideIndex + _.options.slidesToShow > _.slideCount) {\r\n        _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;\r\n        verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;\r\n      }\r\n    }\r\n\r\n    if (_.slideCount <= _.options.slidesToShow) {\r\n      _.slideOffset = 0;\r\n      verticalOffset = 0;\r\n    }\r\n\r\n    if (_.options.centerMode === true && _.slideCount <= _.options.slidesToShow) {\r\n      _.slideOffset = ((_.slideWidth * Math.floor(_.options.slidesToShow)) / 2) - ((_.slideWidth * _.slideCount) / 2);\r\n    } else if (_.options.centerMode === true && _.options.infinite === true) {\r\n      _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;\r\n    } else if (_.options.centerMode === true) {\r\n      _.slideOffset = 0;\r\n      _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);\r\n    }\r\n\r\n    if (_.options.vertical === false) {\r\n      targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;\r\n    } else {\r\n      newslidesHeightsArray = slidesHeightsArray.slice(0, slideIndex);\r\n\r\n      var total = newslidesHeightsArray.length !== 0 ? newslidesHeightsArray.reduce(function(a, b) {\r\n        return a + b;\r\n      }) : 0;\r\n\r\n      targetLeft = (total * -1) + verticalOffset;\r\n    }\r\n\r\n    if (_.options.variableWidth === true) {\r\n\r\n      if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {\r\n        targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);\r\n      } else {\r\n        targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow);\r\n      }\r\n\r\n      if (_.options.rtl === true) {\r\n        if (targetSlide[0]) {\r\n          targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;\r\n        } else {\r\n          targetLeft =  0;\r\n        }\r\n      } else {\r\n        targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;\r\n      }\r\n\r\n      if (_.options.centerMode === true) {\r\n        if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {\r\n          targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);\r\n        } else {\r\n          targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1);\r\n        }\r\n\r\n        if (_.options.rtl === true) {\r\n          if (targetSlide[0]) {\r\n            targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;\r\n          } else {\r\n            targetLeft =  0;\r\n          }\r\n        } else {\r\n          targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;\r\n        }\r\n\r\n        targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2;\r\n      }\r\n    }\r\n\r\n    return targetLeft;\r\n\r\n  };\r\n\r\n  Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) {\r\n\r\n    var _ = this;\r\n\r\n    return _.options[option];\r\n\r\n  };\r\n\r\n  Slick.prototype.getNavigableIndexes = function() {\r\n\r\n    var _ = this,\r\n      breakPoint = 0,\r\n      counter = 0,\r\n      indexes = [],\r\n      max;\r\n\r\n    if (_.options.infinite === false) {\r\n      max = _.slideCount;\r\n    } else {\r\n      breakPoint = _.options.slidesToScroll * -1;\r\n      counter = _.options.slidesToScroll * -1;\r\n      max = _.slideCount * 2;\r\n    }\r\n\r\n    while (breakPoint < max) {\r\n      indexes.push(breakPoint);\r\n      breakPoint = counter + _.options.slidesToScroll;\r\n      counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;\r\n    }\r\n\r\n    return indexes;\r\n\r\n  };\r\n\r\n  Slick.prototype.getSlick = function() {\r\n\r\n    return this;\r\n\r\n  };\r\n\r\n  Slick.prototype.getSlideCount = function() {\r\n\r\n    var _ = this,\r\n      slidesTraversed, swipedSlide, centerOffset;\r\n\r\n    centerOffset = _.options.centerMode === true ? _.slideWidth * Math.floor(_.options.slidesToShow / 2) : 0;\r\n\r\n    if (_.options.swipeToSlide === true) {\r\n      _.$slideTrack.find('.slick-slide').each(function(index, slide) {\r\n        if (slide.offsetLeft - centerOffset + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) {\r\n          swipedSlide = slide;\r\n          return false;\r\n        }\r\n      });\r\n\r\n      slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1;\r\n\r\n      return slidesTraversed;\r\n\r\n    } else {\r\n      return _.options.slidesToScroll;\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {\r\n\r\n    var _ = this;\r\n\r\n    _.changeSlide({\r\n      data: {\r\n        message: 'index',\r\n        index: parseInt(slide)\r\n      }\r\n    }, dontAnimate);\r\n\r\n  };\r\n\r\n  Slick.prototype.init = function(creation) {\r\n\r\n    var _ = this;\r\n\r\n    if (!$(_.$slider).hasClass('slick-initialized')) {\r\n\r\n      $(_.$slider).addClass('slick-initialized');\r\n\r\n      _.buildRows();\r\n      _.buildOut();\r\n      _.setProps();\r\n      _.startLoad();\r\n      _.loadSlider();\r\n      _.initializeEvents();\r\n      _.updateArrows();\r\n      _.updateDots();\r\n      _.checkResponsive(true);\r\n      _.focusHandler();\r\n\r\n    }\r\n\r\n    if (creation) {\r\n      _.$slider.trigger('init', [_]);\r\n    }\r\n\r\n    if (_.options.accessibility === true) {\r\n      _.initADA();\r\n    }\r\n\r\n    if ( _.options.autoplay ) {\r\n\r\n      _.paused = false;\r\n      _.autoPlay();\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.initADA = function() {\r\n    var _ = this,\r\n      numDotGroups = Math.ceil(_.slideCount / _.options.slidesToShow),\r\n      tabControlIndexes = _.getNavigableIndexes().filter(function(val) {\r\n        return (val >= 0) && (val < _.slideCount);\r\n      });\r\n\r\n    _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({\r\n      'aria-hidden': 'true',\r\n      'tabindex': '-1'\r\n    }).find('a, input, button, select').attr({\r\n      'tabindex': '-1'\r\n    });\r\n\r\n    if (_.$dots !== null) {\r\n      _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) {\r\n        var slideControlIndex = tabControlIndexes.indexOf(i);\r\n\r\n        $(this).attr({\r\n          'role': 'tabpanel',\r\n          'id': 'slick-slide' + _.instanceUid + i,\r\n          'tabindex': -1\r\n        });\r\n\r\n        if (slideControlIndex !== -1) {\r\n          $(this).attr({\r\n            'aria-describedby': 'slick-slide-control' + _.instanceUid + slideControlIndex\r\n          });\r\n        }\r\n      });\r\n\r\n      _.$dots.attr('role', 'tablist').find('li').each(function(i) {\r\n        var mappedSlideIndex = tabControlIndexes[i];\r\n\r\n        $(this).attr({\r\n          'role': 'presentation'\r\n        });\r\n\r\n        $(this).find('button').first().attr({\r\n          'role': 'tab',\r\n          'id': 'slick-slide-control' + _.instanceUid + i,\r\n          'aria-controls': 'slick-slide' + _.instanceUid + mappedSlideIndex,\r\n          'aria-label': (i + 1) + ' of ' + numDotGroups,\r\n          'aria-selected': null,\r\n          'tabindex': '-1'\r\n        });\r\n\r\n      }).eq(_.currentSlide).find('button').attr({\r\n        'aria-selected': 'true',\r\n        'tabindex': '0'\r\n      }).end();\r\n    }\r\n\r\n    for (var i=_.currentSlide, max=i+_.options.slidesToShow; i < max; i++) {\r\n      _.$slides.eq(i).attr('tabindex', 0);\r\n    }\r\n\r\n    _.activateADA();\r\n\r\n  };\r\n\r\n  Slick.prototype.initArrowEvents = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {\r\n      _.$prevArrow\r\n        .off('click.slick')\r\n        .on('click.slick', {\r\n          message: 'previous'\r\n        }, _.changeSlide);\r\n      _.$nextArrow\r\n        .off('click.slick')\r\n        .on('click.slick', {\r\n          message: 'next'\r\n        }, _.changeSlide);\r\n\r\n      if (_.options.accessibility === true) {\r\n        _.$prevArrow.on('keydown.slick', _.keyHandler);\r\n        _.$nextArrow.on('keydown.slick', _.keyHandler);\r\n      }\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.initDotEvents = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.dots === true) {\r\n      $('li', _.$dots).on('click.slick', {\r\n        message: 'index'\r\n      }, _.changeSlide);\r\n\r\n      if (_.options.accessibility === true) {\r\n        _.$dots.on('keydown.slick', _.keyHandler);\r\n      }\r\n    }\r\n\r\n    if ( _.options.dots === true && _.options.pauseOnDotsHover === true ) {\r\n\r\n      $('li', _.$dots)\r\n        .on('mouseenter.slick', $.proxy(_.interrupt, _, true))\r\n        .on('mouseleave.slick', $.proxy(_.interrupt, _, false));\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.initSlideEvents = function() {\r\n\r\n    var _ = this;\r\n\r\n    if ( _.options.pauseOnHover ) {\r\n\r\n      _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true));\r\n      _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false));\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.initializeEvents = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.initArrowEvents();\r\n\r\n    _.initDotEvents();\r\n    _.initSlideEvents();\r\n\r\n    _.$list.on('touchstart.slick mousedown.slick', {\r\n      action: 'start'\r\n    }, _.swipeHandler);\r\n    _.$list.on('touchmove.slick mousemove.slick', {\r\n      action: 'move'\r\n    }, _.swipeHandler);\r\n    _.$list.on('touchend.slick mouseup.slick', {\r\n      action: 'end'\r\n    }, _.swipeHandler);\r\n    _.$list.on('touchcancel.slick mouseleave.slick', {\r\n      action: 'end'\r\n    }, _.swipeHandler);\r\n\r\n    _.$list.on('click.slick', _.clickHandler);\r\n\r\n    $(document).on(_.visibilityChange, $.proxy(_.visibility, _));\r\n\r\n    if (_.options.accessibility === true) {\r\n      _.$list.on('keydown.slick', _.keyHandler);\r\n    }\r\n\r\n    if (_.options.focusOnSelect === true) {\r\n      $(_.$slideTrack).children().on('click.slick', _.selectHandler);\r\n    }\r\n\r\n    $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));\r\n\r\n    $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));\r\n\r\n    $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);\r\n\r\n    $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);\r\n    $(_.setPosition);\r\n\r\n  };\r\n\r\n  Slick.prototype.initUI = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {\r\n\r\n      _.$prevArrow.show();\r\n      _.$nextArrow.show();\r\n\r\n    }\r\n\r\n    if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {\r\n\r\n      _.$dots.show();\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.keyHandler = function(event) {\r\n\r\n    var _ = this;\r\n    //Dont slide if the cursor is inside the form fields and arrow keys are pressed\r\n    if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) {\r\n      if (event.keyCode === 37 && _.options.accessibility === true) {\r\n        _.changeSlide({\r\n          data: {\r\n            message: _.options.rtl === true ? 'next' :  'previous'\r\n          }\r\n        });\r\n      } else if (event.keyCode === 39 && _.options.accessibility === true) {\r\n        _.changeSlide({\r\n          data: {\r\n            message: _.options.rtl === true ? 'previous' : 'next'\r\n          }\r\n        });\r\n      }\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.lazyLoad = function() {\r\n\r\n    var _ = this,\r\n      loadRange, cloneRange, rangeStart, rangeEnd;\r\n\r\n    function loadImages(imagesScope) {\r\n\r\n      $('img[data-lazy]', imagesScope).each(function() {\r\n\r\n        var image = $(this),\r\n          imageSource = $(this).attr('data-lazy'),\r\n          imageSrcSet = $(this).attr('data-srcset'),\r\n          imageSizes  = $(this).attr('data-sizes') || _.$slider.attr('data-sizes'),\r\n          imageToLoad = document.createElement('img');\r\n\r\n        imageToLoad.onload = function() {\r\n\r\n          image\r\n            .animate({ opacity: 0 }, 100, function() {\r\n\r\n              if (imageSrcSet) {\r\n                image\r\n                  .attr('srcset', imageSrcSet );\r\n\r\n                if (imageSizes) {\r\n                  image\r\n                    .attr('sizes', imageSizes );\r\n                }\r\n              }\r\n\r\n              image\r\n                .attr('src', imageSource)\r\n                .animate({ opacity: 1 }, 200, function() {\r\n                  image\r\n                    .removeAttr('data-lazy data-srcset data-sizes')\r\n                    .removeClass('slick-loading');\r\n                });\r\n              _.$slider.trigger('lazyLoaded', [_, image, imageSource]);\r\n            });\r\n\r\n        };\r\n\r\n        imageToLoad.onerror = function() {\r\n\r\n          image\r\n            .removeAttr( 'data-lazy' )\r\n            .removeClass( 'slick-loading' )\r\n            .addClass( 'slick-lazyload-error' );\r\n\r\n          _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);\r\n\r\n        };\r\n\r\n        imageToLoad.src = imageSource;\r\n\r\n      });\r\n\r\n    }\r\n\r\n    if (_.options.centerMode === true) {\r\n      if (_.options.infinite === true) {\r\n        rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1);\r\n        rangeEnd = rangeStart + _.options.slidesToShow + 2;\r\n      } else {\r\n        rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1));\r\n        rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide;\r\n      }\r\n    } else {\r\n      rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;\r\n      rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);\r\n      if (_.options.fade === true) {\r\n        if (rangeStart > 0) rangeStart--;\r\n        if (rangeEnd <= _.slideCount) rangeEnd++;\r\n      }\r\n    }\r\n\r\n    loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd);\r\n\r\n    if (_.options.lazyLoad === 'anticipated') {\r\n      var prevSlide = rangeStart - 1,\r\n        nextSlide = rangeEnd,\r\n        $slides = _.$slider.find('.slick-slide');\r\n\r\n      for (var i = 0; i < _.options.slidesToScroll; i++) {\r\n        if (prevSlide < 0) prevSlide = _.slideCount - 1;\r\n        loadRange = loadRange.add($slides.eq(prevSlide));\r\n        loadRange = loadRange.add($slides.eq(nextSlide));\r\n        prevSlide--;\r\n        nextSlide++;\r\n      }\r\n    }\r\n\r\n    loadImages(loadRange);\r\n\r\n    if (_.slideCount <= _.options.slidesToShow) {\r\n      cloneRange = _.$slider.find('.slick-slide');\r\n      loadImages(cloneRange);\r\n    } else\r\n    if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {\r\n      cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow);\r\n      loadImages(cloneRange);\r\n    } else if (_.currentSlide === 0) {\r\n      cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1);\r\n      loadImages(cloneRange);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.loadSlider = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.setPosition();\r\n\r\n    _.$slideTrack.css({\r\n      opacity: 1\r\n    });\r\n\r\n    _.$slider.removeClass('slick-loading');\r\n\r\n    _.initUI();\r\n\r\n    if (_.options.lazyLoad === 'progressive') {\r\n      _.progressiveLazyLoad();\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.next = Slick.prototype.slickNext = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.changeSlide({\r\n      data: {\r\n        message: 'next'\r\n      }\r\n    });\r\n\r\n  };\r\n\r\n  Slick.prototype.orientationChange = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.checkResponsive();\r\n    _.setPosition();\r\n\r\n  };\r\n\r\n  Slick.prototype.pause = Slick.prototype.slickPause = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.autoPlayClear();\r\n    _.paused = true;\r\n\r\n  };\r\n\r\n  Slick.prototype.play = Slick.prototype.slickPlay = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.autoPlay();\r\n    _.options.autoplay = true;\r\n    _.paused = false;\r\n    _.focussed = false;\r\n    _.interrupted = false;\r\n\r\n  };\r\n\r\n  Slick.prototype.postSlide = function(index) {\r\n\r\n    var _ = this;\r\n\r\n    if( !_.unslicked ) {\r\n\r\n      _.$slider.trigger('afterChange', [_, index]);\r\n\r\n      _.animating = false;\r\n\r\n      if (_.slideCount > _.options.slidesToShow) {\r\n        _.setPosition();\r\n      }\r\n\r\n      _.swipeLeft = null;\r\n\r\n      if ( _.options.autoplay ) {\r\n        _.autoPlay();\r\n      }\r\n\r\n      if (_.options.accessibility === true) {\r\n        _.initADA();\r\n\r\n        if (_.options.focusOnChange) {\r\n          var $currentSlide = $(_.$slides.get(_.currentSlide));\r\n          $currentSlide.attr('tabindex', 0).focus();\r\n        }\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.prev = Slick.prototype.slickPrev = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.changeSlide({\r\n      data: {\r\n        message: 'previous'\r\n      }\r\n    });\r\n\r\n  };\r\n\r\n  Slick.prototype.preventDefault = function(event) {\r\n\r\n    event.preventDefault();\r\n\r\n  };\r\n\r\n  Slick.prototype.progressiveLazyLoad = function( tryCount ) {\r\n\r\n    tryCount = tryCount || 1;\r\n\r\n    var _ = this,\r\n      $imgsToLoad = $( 'img[data-lazy]', _.$slider ),\r\n      image,\r\n      imageSource,\r\n      imageSrcSet,\r\n      imageSizes,\r\n      imageToLoad;\r\n\r\n    if ( $imgsToLoad.length ) {\r\n\r\n      image = $imgsToLoad.first();\r\n      imageSource = image.attr('data-lazy');\r\n      imageSrcSet = image.attr('data-srcset');\r\n      imageSizes  = image.attr('data-sizes') || _.$slider.attr('data-sizes');\r\n      imageToLoad = document.createElement('img');\r\n\r\n      imageToLoad.onload = function() {\r\n\r\n        if (imageSrcSet) {\r\n          image\r\n            .attr('srcset', imageSrcSet );\r\n\r\n          if (imageSizes) {\r\n            image\r\n              .attr('sizes', imageSizes );\r\n          }\r\n        }\r\n\r\n        image\r\n          .attr( 'src', imageSource )\r\n          .removeAttr('data-lazy data-srcset data-sizes')\r\n          .removeClass('slick-loading');\r\n\r\n        if ( _.options.adaptiveHeight === true ) {\r\n          _.setPosition();\r\n        }\r\n\r\n        _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]);\r\n        _.progressiveLazyLoad();\r\n\r\n      };\r\n\r\n      imageToLoad.onerror = function() {\r\n\r\n        if ( tryCount < 3 ) {\r\n\r\n          /**\r\n           * try to load the image 3 times,\r\n           * leave a slight delay so we don't get\r\n           * servers blocking the request.\r\n           */\r\n          setTimeout( function() {\r\n            _.progressiveLazyLoad( tryCount + 1 );\r\n          }, 500 );\r\n\r\n        } else {\r\n\r\n          image\r\n            .removeAttr( 'data-lazy' )\r\n            .removeClass( 'slick-loading' )\r\n            .addClass( 'slick-lazyload-error' );\r\n\r\n          _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);\r\n\r\n          _.progressiveLazyLoad();\r\n\r\n        }\r\n\r\n      };\r\n\r\n      imageToLoad.src = imageSource;\r\n\r\n    } else {\r\n\r\n      _.$slider.trigger('allImagesLoaded', [ _ ]);\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.refresh = function( initializing ) {\r\n\r\n    var _ = this, currentSlide, lastVisibleIndex;\r\n\r\n    lastVisibleIndex = _.slideCount - _.options.slidesToShow;\r\n\r\n    // in non-infinite sliders, we don't want to go past the\r\n    // last visible index.\r\n    if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) {\r\n      _.currentSlide = lastVisibleIndex;\r\n    }\r\n\r\n    // if less slides than to show, go to start.\r\n    if ( _.slideCount <= _.options.slidesToShow ) {\r\n      _.currentSlide = 0;\r\n\r\n    }\r\n\r\n    currentSlide = _.currentSlide;\r\n\r\n    _.destroy(true);\r\n\r\n    $.extend(_, _.initials, { currentSlide: currentSlide });\r\n\r\n    _.init();\r\n\r\n    if( !initializing ) {\r\n\r\n      _.changeSlide({\r\n        data: {\r\n          message: 'index',\r\n          index: currentSlide\r\n        }\r\n      }, false);\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.registerBreakpoints = function() {\r\n\r\n    var _ = this, breakpoint, currentBreakpoint, l,\r\n      responsiveSettings = _.options.responsive || null;\r\n\r\n    if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) {\r\n\r\n      _.respondTo = _.options.respondTo || 'window';\r\n\r\n      for ( breakpoint in responsiveSettings ) {\r\n\r\n        l = _.breakpoints.length-1;\r\n\r\n        if (responsiveSettings.hasOwnProperty(breakpoint)) {\r\n          currentBreakpoint = responsiveSettings[breakpoint].breakpoint;\r\n\r\n          // loop through the breakpoints and cut out any existing\r\n          // ones with the same breakpoint number, we don't want dupes.\r\n          while( l >= 0 ) {\r\n            if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) {\r\n              _.breakpoints.splice(l,1);\r\n            }\r\n            l--;\r\n          }\r\n\r\n          _.breakpoints.push(currentBreakpoint);\r\n          _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings;\r\n\r\n        }\r\n\r\n      }\r\n\r\n      _.breakpoints.sort(function(a, b) {\r\n        return ( _.options.mobileFirst ) ? a-b : b-a;\r\n      });\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.reinit = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.$slides =\r\n      _.$slideTrack\r\n        .children(_.options.slide)\r\n        .addClass('slick-slide');\r\n\r\n    _.slideCount = _.$slides.length;\r\n\r\n    if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) {\r\n      _.currentSlide = _.currentSlide - _.options.slidesToScroll;\r\n    }\r\n\r\n    if (_.slideCount <= _.options.slidesToShow) {\r\n      _.currentSlide = 0;\r\n    }\r\n\r\n    _.registerBreakpoints();\r\n\r\n    _.setProps();\r\n    _.setupInfinite();\r\n    _.buildArrows();\r\n    _.updateArrows();\r\n    _.initArrowEvents();\r\n    _.buildDots();\r\n    _.updateDots();\r\n    _.initDotEvents();\r\n    _.cleanUpSlideEvents();\r\n    _.initSlideEvents();\r\n\r\n    _.checkResponsive(false, true);\r\n\r\n    if (_.options.focusOnSelect === true) {\r\n      $(_.$slideTrack).children().on('click.slick', _.selectHandler);\r\n    }\r\n\r\n    _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);\r\n\r\n    _.setPosition();\r\n    _.focusHandler();\r\n\r\n    _.paused = !_.options.autoplay;\r\n    _.autoPlay();\r\n\r\n    _.$slider.trigger('reInit', [_]);\r\n\r\n  };\r\n\r\n  Slick.prototype.resize = function() {\r\n\r\n    var _ = this;\r\n\r\n    if ($(window).width() !== _.windowWidth) {\r\n      clearTimeout(_.windowDelay);\r\n      _.windowDelay = window.setTimeout(function() {\r\n        _.windowWidth = $(window).width();\r\n        _.checkResponsive();\r\n        if( !_.unslicked ) { _.setPosition(); }\r\n      }, 50);\r\n    }\r\n  };\r\n\r\n  Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {\r\n\r\n    var _ = this;\r\n\r\n    if (typeof(index) === 'boolean') {\r\n      removeBefore = index;\r\n      index = removeBefore === true ? 0 : _.slideCount - 1;\r\n    } else {\r\n      index = removeBefore === true ? --index : index;\r\n    }\r\n\r\n    if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) {\r\n      return false;\r\n    }\r\n\r\n    _.unload();\r\n\r\n    if (removeAll === true) {\r\n      _.$slideTrack.children().remove();\r\n    } else {\r\n      _.$slideTrack.children(this.options.slide).eq(index).remove();\r\n    }\r\n\r\n    _.$slides = _.$slideTrack.children(this.options.slide);\r\n\r\n    _.$slideTrack.children(this.options.slide).detach();\r\n\r\n    _.$slideTrack.append(_.$slides);\r\n\r\n    _.$slidesCache = _.$slides;\r\n\r\n    _.reinit();\r\n\r\n  };\r\n\r\n  Slick.prototype.setCSS = function(position) {\r\n\r\n    var _ = this,\r\n      positionProps = {},\r\n      x, y;\r\n\r\n    if (_.options.rtl === true) {\r\n      position = -position;\r\n    }\r\n    x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';\r\n    y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px';\r\n\r\n    positionProps[_.positionProp] = position;\r\n\r\n    if (_.transformsEnabled === false) {\r\n      _.$slideTrack.css(positionProps);\r\n    } else {\r\n      positionProps = {};\r\n      if (_.cssTransitions === false) {\r\n        positionProps[_.animType] = 'translate(' + x + ', ' + y + ')';\r\n        _.$slideTrack.css(positionProps);\r\n      } else {\r\n        positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)';\r\n        _.$slideTrack.css(positionProps);\r\n      }\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.setDimensions = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.vertical === false) {\r\n      if (_.options.centerMode === true) {\r\n        _.$list.css({\r\n          padding: ('0px ' + _.options.centerPadding)\r\n        });\r\n      }\r\n    } else {\r\n      _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow);\r\n      if (_.options.centerMode === true) {\r\n        _.$list.css({\r\n          padding: (_.options.centerPadding + ' 0px')\r\n        });\r\n      }\r\n    }\r\n\r\n    _.listWidth = _.$list.width();\r\n    _.listHeight = _.$list.height();\r\n\r\n\r\n    if (_.options.vertical === false && _.options.variableWidth === false) {\r\n      _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);\r\n      _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));\r\n\r\n    } else if (_.options.variableWidth === true) {\r\n      _.$slideTrack.width(5000 * _.slideCount);\r\n    } else {\r\n      _.slideWidth = Math.ceil(_.listWidth);\r\n      _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));\r\n    }\r\n\r\n    var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width();\r\n    if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset);\r\n\r\n  };\r\n\r\n  Slick.prototype.setFade = function() {\r\n\r\n    var _ = this,\r\n      targetLeft;\r\n\r\n    _.$slides.each(function(index, element) {\r\n      targetLeft = (_.slideWidth * index) * -1;\r\n      if (_.options.rtl === true) {\r\n        $(element).css({\r\n          position: 'relative',\r\n          right: targetLeft,\r\n          top: 0,\r\n          zIndex: _.options.zIndex - 2,\r\n          opacity: 0\r\n        });\r\n      } else {\r\n        $(element).css({\r\n          position: 'relative',\r\n          left: targetLeft,\r\n          top: 0,\r\n          zIndex: _.options.zIndex - 2,\r\n          opacity: 0\r\n        });\r\n      }\r\n    });\r\n\r\n    _.$slides.eq(_.currentSlide).css({\r\n      zIndex: _.options.zIndex - 1,\r\n      opacity: 1\r\n    });\r\n\r\n  };\r\n\r\n  Slick.prototype.setHeight = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true) {\r\n      var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);\r\n      _.$list.css('height', targetHeight);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.setOption =\r\n    Slick.prototype.slickSetOption = function() {\r\n\r\n      /**\r\n       * accepts arguments in format of:\r\n       *\r\n       *  - for changing a single option's value:\r\n       *     .slick(\"setOption\", option, value, refresh )\r\n       *\r\n       *  - for changing a set of responsive options:\r\n       *     .slick(\"setOption\", 'responsive', [{}, ...], refresh )\r\n       *\r\n       *  - for updating multiple values at once (not responsive)\r\n       *     .slick(\"setOption\", { 'option': value, ... }, refresh )\r\n       */\r\n\r\n      var _ = this, l, item, option, value, refresh = false, type;\r\n\r\n      if( $.type( arguments[0] ) === 'object' ) {\r\n\r\n        option =  arguments[0];\r\n        refresh = arguments[1];\r\n        type = 'multiple';\r\n\r\n      } else if ( $.type( arguments[0] ) === 'string' ) {\r\n\r\n        option =  arguments[0];\r\n        value = arguments[1];\r\n        refresh = arguments[2];\r\n\r\n        if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) {\r\n\r\n          type = 'responsive';\r\n\r\n        } else if ( typeof arguments[1] !== 'undefined' ) {\r\n\r\n          type = 'single';\r\n\r\n        }\r\n\r\n      }\r\n\r\n      if ( type === 'single' ) {\r\n\r\n        _.options[option] = value;\r\n\r\n\r\n      } else if ( type === 'multiple' ) {\r\n\r\n        $.each( option , function( opt, val ) {\r\n\r\n          _.options[opt] = val;\r\n\r\n        });\r\n\r\n\r\n      } else if ( type === 'responsive' ) {\r\n\r\n        for ( item in value ) {\r\n\r\n          if( $.type( _.options.responsive ) !== 'array' ) {\r\n\r\n            _.options.responsive = [ value[item] ];\r\n\r\n          } else {\r\n\r\n            l = _.options.responsive.length-1;\r\n\r\n            // loop through the responsive object and splice out duplicates.\r\n            while( l >= 0 ) {\r\n\r\n              if( _.options.responsive[l].breakpoint === value[item].breakpoint ) {\r\n\r\n                _.options.responsive.splice(l,1);\r\n\r\n              }\r\n\r\n              l--;\r\n\r\n            }\r\n\r\n            _.options.responsive.push( value[item] );\r\n\r\n          }\r\n\r\n        }\r\n\r\n      }\r\n\r\n      if ( refresh ) {\r\n\r\n        _.unload();\r\n        _.reinit();\r\n\r\n      }\r\n\r\n    };\r\n\r\n  Slick.prototype.setPosition = function() {\r\n\r\n    var _ = this;\r\n\r\n    _.setDimensions();\r\n\r\n    _.setHeight();\r\n\r\n    if (_.options.fade === false) {\r\n      _.setCSS(_.getLeft(_.currentSlide));\r\n    } else {\r\n      _.setFade();\r\n    }\r\n\r\n    _.$slider.trigger('setPosition', [_]);\r\n\r\n  };\r\n\r\n  Slick.prototype.setProps = function() {\r\n\r\n    var _ = this,\r\n      bodyStyle = document.body.style;\r\n\r\n    _.positionProp = _.options.vertical === true ? 'top' : 'left';\r\n\r\n    if (_.positionProp === 'top') {\r\n      _.$slider.addClass('slick-vertical');\r\n    } else {\r\n      _.$slider.removeClass('slick-vertical');\r\n    }\r\n\r\n    if (bodyStyle.WebkitTransition !== undefined ||\r\n      bodyStyle.MozTransition !== undefined ||\r\n      bodyStyle.msTransition !== undefined) {\r\n      if (_.options.useCSS === true) {\r\n        _.cssTransitions = true;\r\n      }\r\n    }\r\n\r\n    if ( _.options.fade ) {\r\n      if ( typeof _.options.zIndex === 'number' ) {\r\n        if( _.options.zIndex < 3 ) {\r\n          _.options.zIndex = 3;\r\n        }\r\n      } else {\r\n        _.options.zIndex = _.defaults.zIndex;\r\n      }\r\n    }\r\n\r\n    if (bodyStyle.OTransform !== undefined) {\r\n      _.animType = 'OTransform';\r\n      _.transformType = '-o-transform';\r\n      _.transitionType = 'OTransition';\r\n      if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;\r\n    }\r\n    if (bodyStyle.MozTransform !== undefined) {\r\n      _.animType = 'MozTransform';\r\n      _.transformType = '-moz-transform';\r\n      _.transitionType = 'MozTransition';\r\n      if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;\r\n    }\r\n    if (bodyStyle.webkitTransform !== undefined) {\r\n      _.animType = 'webkitTransform';\r\n      _.transformType = '-webkit-transform';\r\n      _.transitionType = 'webkitTransition';\r\n      if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;\r\n    }\r\n    if (bodyStyle.msTransform !== undefined) {\r\n      _.animType = 'msTransform';\r\n      _.transformType = '-ms-transform';\r\n      _.transitionType = 'msTransition';\r\n      if (bodyStyle.msTransform === undefined) _.animType = false;\r\n    }\r\n    if (bodyStyle.transform !== undefined && _.animType !== false) {\r\n      _.animType = 'transform';\r\n      _.transformType = 'transform';\r\n      _.transitionType = 'transition';\r\n    }\r\n    _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false);\r\n  };\r\n\r\n\r\n  Slick.prototype.setSlideClasses = function(index) {\r\n\r\n    var _ = this,\r\n      centerOffset, allSlides, indexOffset, remainder;\r\n\r\n    allSlides = _.$slider\r\n      .find('.slick-slide')\r\n      .removeClass('slick-active slick-center slick-current')\r\n      .attr('aria-hidden', 'true');\r\n\r\n    _.$slides\r\n      .eq(index)\r\n      .addClass('slick-current');\r\n\r\n    if (_.options.centerMode === true) {\r\n\r\n      var evenCoef = _.options.slidesToShow % 2 === 0 ? 1 : 0;\r\n\r\n      centerOffset = Math.floor(_.options.slidesToShow / 2);\r\n\r\n      if (_.options.infinite === true) {\r\n\r\n        if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) {\r\n          _.$slides\r\n            .slice(index - centerOffset + evenCoef, index + centerOffset + 1)\r\n            .addClass('slick-active')\r\n            .attr('aria-hidden', 'false');\r\n\r\n        } else {\r\n\r\n          indexOffset = _.options.slidesToShow + index;\r\n          allSlides\r\n            .slice(indexOffset - centerOffset + 1 + evenCoef, indexOffset + centerOffset + 2)\r\n            .addClass('slick-active')\r\n            .attr('aria-hidden', 'false');\r\n\r\n        }\r\n\r\n        if (index === 0) {\r\n\r\n          allSlides\r\n            .eq(allSlides.length - 1 - _.options.slidesToShow)\r\n            .addClass('slick-center');\r\n\r\n        } else if (index === _.slideCount - 1) {\r\n\r\n          allSlides\r\n            .eq(_.options.slidesToShow)\r\n            .addClass('slick-center');\r\n\r\n        }\r\n\r\n      }\r\n\r\n      _.$slides\r\n        .eq(index)\r\n        .addClass('slick-center');\r\n\r\n    } else {\r\n\r\n      if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) {\r\n\r\n        _.$slides\r\n          .slice(index, index + _.options.slidesToShow)\r\n          .addClass('slick-active')\r\n          .attr('aria-hidden', 'false');\r\n\r\n      } else if (allSlides.length <= _.options.slidesToShow) {\r\n\r\n        allSlides\r\n          .addClass('slick-active')\r\n          .attr('aria-hidden', 'false');\r\n\r\n      } else {\r\n\r\n        remainder = _.slideCount % _.options.slidesToShow;\r\n        indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index;\r\n\r\n        if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {\r\n\r\n          allSlides\r\n            .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder)\r\n            .addClass('slick-active')\r\n            .attr('aria-hidden', 'false');\r\n\r\n        } else {\r\n\r\n          allSlides\r\n            .slice(indexOffset, indexOffset + _.options.slidesToShow)\r\n            .addClass('slick-active')\r\n            .attr('aria-hidden', 'false');\r\n\r\n        }\r\n\r\n      }\r\n\r\n    }\r\n\r\n    if (_.options.lazyLoad === 'ondemand' || _.options.lazyLoad === 'anticipated') {\r\n      _.lazyLoad();\r\n    }\r\n  };\r\n\r\n  Slick.prototype.setupInfinite = function() {\r\n\r\n    var _ = this,\r\n      i, slideIndex, infiniteCount;\r\n\r\n    if (_.options.fade === true) {\r\n      _.options.centerMode = false;\r\n    }\r\n\r\n    if (_.options.infinite === true && _.options.fade === false) {\r\n\r\n      slideIndex = null;\r\n\r\n      if (_.slideCount > _.options.slidesToShow) {\r\n\r\n        if (_.options.centerMode === true) {\r\n          infiniteCount = _.options.slidesToShow + 1;\r\n        } else {\r\n          infiniteCount = _.options.slidesToShow;\r\n        }\r\n\r\n        for (i = _.slideCount; i > (_.slideCount -\r\n          infiniteCount); i -= 1) {\r\n          slideIndex = i - 1;\r\n          $(_.$slides[slideIndex]).clone(true).attr('id', '')\r\n            .attr('data-slick-index', slideIndex - _.slideCount)\r\n            .prependTo(_.$slideTrack).addClass('slick-cloned');\r\n        }\r\n        for (i = 0; i < infiniteCount  + _.slideCount; i += 1) {\r\n          slideIndex = i;\r\n          $(_.$slides[slideIndex]).clone(true).attr('id', '')\r\n            .attr('data-slick-index', slideIndex + _.slideCount)\r\n            .appendTo(_.$slideTrack).addClass('slick-cloned');\r\n        }\r\n        _.$slideTrack.find('.slick-cloned').find('[id]').each(function() {\r\n          $(this).attr('id', '');\r\n        });\r\n\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.interrupt = function( toggle ) {\r\n\r\n    var _ = this;\r\n\r\n    if( !toggle ) {\r\n      _.autoPlay();\r\n    }\r\n    _.interrupted = toggle;\r\n\r\n  };\r\n\r\n  Slick.prototype.selectHandler = function(event) {\r\n\r\n    var _ = this;\r\n\r\n    var targetElement =\r\n      $(event.target).is('.slick-slide') ?\r\n        $(event.target) :\r\n        $(event.target).parents('.slick-slide');\r\n\r\n    var index = parseInt(targetElement.attr('data-slick-index'));\r\n\r\n    if (!index) index = 0;\r\n\r\n    if (_.slideCount <= _.options.slidesToShow) {\r\n\r\n      _.slideHandler(index, false, true);\r\n      return;\r\n\r\n    }\r\n\r\n    _.slideHandler(index);\r\n\r\n  };\r\n\r\n  Slick.prototype.slideHandler = function(index, sync, dontAnimate) {\r\n\r\n    var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null,\r\n      _ = this, navTarget;\r\n\r\n    sync = sync || false;\r\n\r\n    if (_.animating === true && _.options.waitForAnimate === true) {\r\n      return;\r\n    }\r\n\r\n    if (_.options.fade === true && _.currentSlide === index) {\r\n      return;\r\n    }\r\n\r\n    if (sync === false) {\r\n      _.asNavFor(index);\r\n    }\r\n\r\n    targetSlide = index;\r\n    targetLeft = _.getLeft(targetSlide);\r\n    slideLeft = _.getLeft(_.currentSlide);\r\n\r\n    _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;\r\n\r\n    if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) {\r\n\r\n      if (_.options.fade === false) {\r\n        targetSlide = _.currentSlide;\r\n        if (dontAnimate !== true) {\r\n          _.animateSlide(slideLeft, function() {\r\n            _.postSlide(targetSlide);\r\n          });\r\n        } else {\r\n          _.postSlide(targetSlide);\r\n        }\r\n      }\r\n      return;\r\n    } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {\r\n\r\n      if (_.options.fade === false) {\r\n        targetSlide = _.currentSlide;\r\n        if (dontAnimate !== true) {\r\n          _.animateSlide(slideLeft, function() {\r\n            _.postSlide(targetSlide);\r\n          });\r\n        } else {\r\n          _.postSlide(targetSlide);\r\n        }\r\n      }\r\n      return;\r\n    }\r\n\r\n    if ( _.options.autoplay ) {\r\n      clearInterval(_.autoPlayTimer);\r\n    }\r\n\r\n    if (targetSlide < 0) {\r\n      if (_.slideCount % _.options.slidesToScroll !== 0) {\r\n        animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll);\r\n      } else {\r\n        animSlide = _.slideCount + targetSlide;\r\n      }\r\n    } else if (targetSlide >= _.slideCount) {\r\n      if (_.slideCount % _.options.slidesToScroll !== 0) {\r\n        animSlide = 0;\r\n      } else {\r\n        animSlide = targetSlide - _.slideCount;\r\n      }\r\n    } else {\r\n      animSlide = targetSlide;\r\n    }\r\n\r\n    _.animating = true;\r\n\r\n    _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]);\r\n\r\n    oldSlide = _.currentSlide;\r\n    _.currentSlide = animSlide;\r\n\r\n    _.setSlideClasses(_.currentSlide);\r\n\r\n    if ( _.options.asNavFor ) {\r\n\r\n      navTarget = _.getNavTarget();\r\n      navTarget = navTarget.slick('getSlick');\r\n\r\n      if ( navTarget.slideCount <= navTarget.options.slidesToShow ) {\r\n        navTarget.setSlideClasses(_.currentSlide);\r\n      }\r\n\r\n    }\r\n\r\n    _.updateDots();\r\n    _.updateArrows();\r\n\r\n    if (_.options.fade === true) {\r\n      if (dontAnimate !== true) {\r\n\r\n        _.fadeSlideOut(oldSlide);\r\n\r\n        _.fadeSlide(animSlide, function() {\r\n          _.postSlide(animSlide);\r\n        });\r\n\r\n      } else {\r\n        _.postSlide(animSlide);\r\n      }\r\n      _.animateHeight();\r\n      return;\r\n    }\r\n\r\n    if (dontAnimate !== true) {\r\n      // if (_.options.vertical === false && dontAnimate !== true) {\r\n      _.animateSlide(targetLeft, function() {\r\n        _.postSlide(animSlide);\r\n      });\r\n    }\r\n    // else if (_.options.vertical === true && dontAnimate !== true) {\r\n    //   _.animateSlide(targetLeft, function() {    //\r\n    //     _.postSlide(_.getLeft(index - 1));\r\n    //   });\r\n    // }\r\n    else {\r\n      _.postSlide(animSlide);\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.startLoad = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {\r\n\r\n      _.$prevArrow.hide();\r\n      _.$nextArrow.hide();\r\n\r\n    }\r\n\r\n    if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {\r\n\r\n      _.$dots.hide();\r\n\r\n    }\r\n\r\n    _.$slider.addClass('slick-loading');\r\n\r\n  };\r\n\r\n  Slick.prototype.swipeDirection = function() {\r\n\r\n    var xDist, yDist, r, swipeAngle, _ = this;\r\n\r\n    xDist = _.touchObject.startX - _.touchObject.curX;\r\n    yDist = _.touchObject.startY - _.touchObject.curY;\r\n    r = Math.atan2(yDist, xDist);\r\n\r\n    swipeAngle = Math.round(r * 180 / Math.PI);\r\n    if (swipeAngle < 0) {\r\n      swipeAngle = 360 - Math.abs(swipeAngle);\r\n    }\r\n\r\n    if ((swipeAngle <= 45) && (swipeAngle >= 0)) {\r\n      return (_.options.rtl === false ? 'left' : 'right');\r\n    }\r\n    if ((swipeAngle <= 360) && (swipeAngle >= 315)) {\r\n      return (_.options.rtl === false ? 'left' : 'right');\r\n    }\r\n    if ((swipeAngle >= 135) && (swipeAngle <= 225)) {\r\n      return (_.options.rtl === false ? 'right' : 'left');\r\n    }\r\n    if (_.options.verticalSwiping === true) {\r\n      if ((swipeAngle >= 35) && (swipeAngle <= 135)) {\r\n        return 'down';\r\n      } else {\r\n        return 'up';\r\n      }\r\n    }\r\n\r\n    return 'vertical';\r\n\r\n  };\r\n\r\n  Slick.prototype.swipeEnd = function(event) {\r\n\r\n    var _ = this,\r\n      slideCount,\r\n      direction;\r\n\r\n    _.dragging = false;\r\n    _.swiping = false;\r\n\r\n    if (_.scrolling) {\r\n      _.scrolling = false;\r\n      return false;\r\n    }\r\n\r\n    _.interrupted = false;\r\n    _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true;\r\n\r\n    if ( _.touchObject.curX === undefined ) {\r\n      return false;\r\n    }\r\n\r\n    if ( _.touchObject.edgeHit === true ) {\r\n      _.$slider.trigger('edge', [_, _.swipeDirection() ]);\r\n    }\r\n\r\n    if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) {\r\n\r\n      direction = _.swipeDirection();\r\n\r\n      switch ( direction ) {\r\n\r\n        case 'left':\r\n        case 'down':\r\n\r\n          slideCount =\r\n            _.options.swipeToSlide ?\r\n              _.checkNavigable( _.currentSlide + _.getSlideCount() ) :\r\n              _.currentSlide + _.getSlideCount();\r\n\r\n          _.currentDirection = 0;\r\n\r\n          break;\r\n\r\n        case 'right':\r\n        case 'up':\r\n\r\n          slideCount =\r\n            _.options.swipeToSlide ?\r\n              _.checkNavigable( _.currentSlide - _.getSlideCount() ) :\r\n              _.currentSlide - _.getSlideCount();\r\n\r\n          _.currentDirection = 1;\r\n\r\n          break;\r\n\r\n        default:\r\n\r\n\r\n      }\r\n\r\n      if( direction != 'vertical' ) {\r\n\r\n        _.slideHandler( slideCount );\r\n        _.touchObject = {};\r\n        _.$slider.trigger('swipe', [_, direction ]);\r\n\r\n      }\r\n\r\n    } else {\r\n\r\n      if ( _.touchObject.startX !== _.touchObject.curX ) {\r\n\r\n        _.slideHandler( _.currentSlide );\r\n        _.touchObject = {};\r\n\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.swipeHandler = function(event) {\r\n\r\n    var _ = this;\r\n\r\n    if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) {\r\n      return;\r\n    } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) {\r\n      return;\r\n    }\r\n\r\n    _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ?\r\n      event.originalEvent.touches.length : 1;\r\n\r\n    _.touchObject.minSwipe = _.listWidth / _.options\r\n      .touchThreshold;\r\n\r\n    if (_.options.verticalSwiping === true) {\r\n      _.touchObject.minSwipe = _.listHeight / _.options\r\n        .touchThreshold;\r\n    }\r\n\r\n    switch (event.data.action) {\r\n\r\n      case 'start':\r\n        _.swipeStart(event);\r\n        break;\r\n\r\n      case 'move':\r\n        _.swipeMove(event);\r\n        break;\r\n\r\n      case 'end':\r\n        _.swipeEnd(event);\r\n        break;\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.swipeMove = function(event) {\r\n\r\n    var _ = this,\r\n      edgeWasHit = false,\r\n      curLeft, swipeDirection, swipeLength, positionOffset, touches, verticalSwipeLength;\r\n\r\n    touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;\r\n\r\n    if (!_.dragging || _.scrolling || touches && touches.length !== 1) {\r\n      return false;\r\n    }\r\n\r\n    curLeft = _.getLeft(_.currentSlide);\r\n\r\n    _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;\r\n    _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;\r\n\r\n    _.touchObject.swipeLength = Math.round(Math.sqrt(\r\n      Math.pow(_.touchObject.curX - _.touchObject.startX, 2)));\r\n\r\n    verticalSwipeLength = Math.round(Math.sqrt(\r\n      Math.pow(_.touchObject.curY - _.touchObject.startY, 2)));\r\n\r\n    if (!_.options.verticalSwiping && !_.swiping && verticalSwipeLength > 4) {\r\n      _.scrolling = true;\r\n      return false;\r\n    }\r\n\r\n    if (_.options.verticalSwiping === true) {\r\n      _.touchObject.swipeLength = verticalSwipeLength;\r\n    }\r\n\r\n    swipeDirection = _.swipeDirection();\r\n\r\n    if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) {\r\n      _.swiping = true;\r\n      event.preventDefault();\r\n    }\r\n\r\n    positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1);\r\n    if (_.options.verticalSwiping === true) {\r\n      positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1;\r\n    }\r\n\r\n\r\n    swipeLength = _.touchObject.swipeLength;\r\n\r\n    _.touchObject.edgeHit = false;\r\n\r\n    if (_.options.infinite === false) {\r\n      if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) {\r\n        swipeLength = _.touchObject.swipeLength * _.options.edgeFriction;\r\n        _.touchObject.edgeHit = true;\r\n      }\r\n    }\r\n\r\n    if (_.options.vertical === false) {\r\n      _.swipeLeft = curLeft + swipeLength * positionOffset;\r\n    } else {\r\n      _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset;\r\n    }\r\n    if (_.options.verticalSwiping === true) {\r\n      _.swipeLeft = curLeft + swipeLength * positionOffset;\r\n    }\r\n\r\n    if (_.options.fade === true || _.options.touchMove === false) {\r\n      return false;\r\n    }\r\n\r\n    if (_.animating === true) {\r\n      _.swipeLeft = null;\r\n      return false;\r\n    }\r\n\r\n    _.setCSS(_.swipeLeft);\r\n\r\n  };\r\n\r\n  Slick.prototype.swipeStart = function(event) {\r\n\r\n    var _ = this,\r\n      touches;\r\n\r\n    _.interrupted = true;\r\n\r\n    if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {\r\n      _.touchObject = {};\r\n      return false;\r\n    }\r\n\r\n    if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) {\r\n      touches = event.originalEvent.touches[0];\r\n    }\r\n\r\n    _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX;\r\n    _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY;\r\n\r\n    _.dragging = true;\r\n\r\n  };\r\n\r\n  Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.$slidesCache !== null) {\r\n\r\n      _.unload();\r\n\r\n      _.$slideTrack.children(this.options.slide).detach();\r\n\r\n      _.$slidesCache.appendTo(_.$slideTrack);\r\n\r\n      _.reinit();\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.unload = function() {\r\n\r\n    var _ = this;\r\n\r\n    $('.slick-cloned', _.$slider).remove();\r\n\r\n    if (_.$dots) {\r\n      _.$dots.remove();\r\n    }\r\n\r\n    if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) {\r\n      _.$prevArrow.remove();\r\n    }\r\n\r\n    if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) {\r\n      _.$nextArrow.remove();\r\n    }\r\n\r\n    _.$slides\r\n      .removeClass('slick-slide slick-active slick-visible slick-current')\r\n      .attr('aria-hidden', 'true')\r\n      .css('width', '');\r\n\r\n  };\r\n\r\n  Slick.prototype.unslick = function(fromBreakpoint) {\r\n\r\n    var _ = this;\r\n    _.$slider.trigger('unslick', [_, fromBreakpoint]);\r\n    _.destroy();\r\n\r\n  };\r\n\r\n  Slick.prototype.updateArrows = function() {\r\n\r\n    var _ = this,\r\n      centerOffset;\r\n\r\n    centerOffset = Math.floor(_.options.slidesToShow / 2);\r\n\r\n    if ( _.options.arrows === true &&\r\n      _.slideCount > _.options.slidesToShow &&\r\n      !_.options.infinite ) {\r\n\r\n      _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');\r\n      _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');\r\n\r\n      if (_.currentSlide === 0) {\r\n\r\n        _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true');\r\n        _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');\r\n\r\n      } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {\r\n\r\n        _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');\r\n        _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');\r\n\r\n      } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) {\r\n\r\n        _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');\r\n        _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');\r\n\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.updateDots = function() {\r\n\r\n    var _ = this;\r\n\r\n    if (_.$dots !== null) {\r\n\r\n      _.$dots\r\n        .find('li')\r\n        .removeClass('slick-active')\r\n        .end();\r\n\r\n      _.$dots\r\n        .find('li')\r\n        .eq(Math.floor(_.currentSlide / _.options.slidesToScroll))\r\n        .addClass('slick-active');\r\n\r\n    }\r\n\r\n  };\r\n\r\n  Slick.prototype.visibility = function() {\r\n\r\n    var _ = this;\r\n\r\n    if ( _.options.autoplay ) {\r\n\r\n      if ( document[_.hidden] ) {\r\n\r\n        _.interrupted = true;\r\n\r\n      } else {\r\n\r\n        _.interrupted = false;\r\n\r\n      }\r\n\r\n    }\r\n\r\n  };\r\n\r\n  $.fn.slick = function() {\r\n    var _ = this,\r\n      opt = arguments[0],\r\n      args = Array.prototype.slice.call(arguments, 1),\r\n      l = _.length,\r\n      i,\r\n      ret;\r\n    for (i = 0; i < l; i++) {\r\n      if (typeof opt == 'object' || typeof opt == 'undefined')\r\n        _[i].slick = new Slick(_[i], opt);\r\n      else\r\n        ret = _[i].slick[opt].apply(_[i].slick, args);\r\n      if (typeof ret != 'undefined') return ret;\r\n    }\r\n    return _;\r\n  };\r\n\r\n}));\r\n","/**\r\n * HSCore -\r\n *\r\n * @author HtmlStream\r\n * @version 1.0\r\n */\r\n;\r\n(function ($) {\r\n\r\n  'use strict';\r\n\r\n  $.HSCore = {\r\n\r\n    /**\r\n     *\r\n     *\r\n     * @param\r\n     *\r\n     * @return\r\n     */\r\n    init: function () {\r\n\r\n      $(document).ready(function (e) {\r\n        // Botostrap Tootltips\r\n        $('[data-toggle=\"tooltip\"]').tooltip();\r\n\r\n        // Bootstrap Popovers\r\n        $('[data-toggle=\"popover\"]').popover();\r\n\r\n        // Detect Internet Explorer (IE)\r\n        $.HSCore.helpers.detectIE();\r\n\r\n        // Bootstrap Navigation Options\r\n        $.HSCore.helpers.bootstrapNavOptions.init();\r\n\r\n      });\r\n\r\n    },\r\n\r\n    /**\r\n     *\r\n     *\r\n     * @var\r\n     */\r\n    components: {},\r\n\r\n    /**\r\n     *\r\n     *\r\n     * @var\r\n     */\r\n    helpers: {\r\n\r\n        Math: {\r\n\r\n          getRandomValueFromRange: function(startPoint, endPoint, fixed) {\r\n\r\n            var fixedInner = fixed ? fixed : false;\r\n\r\n            Math.random();\r\n\r\n            return fixedInner ? (Math.random() * (endPoint - startPoint) + startPoint) : (Math.floor(Math.random() * (endPoint - startPoint + 1)) + startPoint);\r\n\r\n          }\r\n\r\n      },\r\n\r\n\r\n      /**\r\n       * Detect Internet Explorer (IE)\r\n       *\r\n       * @return version of IE or false, if browser is not Internet Explorer\r\n       */\r\n\r\n      detectIE: function() {\r\n\r\n          var ua = window.navigator.userAgent;\r\n\r\n          var trident = ua.indexOf('Trident/');\r\n          if (trident > 0) {\r\n              // IE 11 => return version number\r\n              var rv = ua.indexOf('rv:');\r\n              var ieV = parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\r\n              document.querySelector('body').className += ' IE';\r\n          }\r\n\r\n          var edge = ua.indexOf('Edge/');\r\n          if (edge > 0) {\r\n             // IE 12 (aka Edge) => return version number\r\n             var ieV = parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);\r\n              document.querySelector('body').className += ' IE';\r\n          }\r\n\r\n          // other browser\r\n          return false;\r\n\r\n      },\r\n\r\n\r\n      /**\r\n       * Bootstrap navigation options\r\n       *\r\n       */\r\n      bootstrapNavOptions: {\r\n        init: function () {\r\n          this.mobileHideOnScroll();\r\n        },\r\n\r\n        mobileHideOnScroll: function () {\r\n          var $collection = $('.navbar');\r\n          if (!$collection.length) return;\r\n\r\n          var $w = $(window),\r\n            breakpointsMap = {\r\n              'sm': 576,\r\n              'md': 768,\r\n              'lg': 992,\r\n              'xl': 1200\r\n            };\r\n\r\n          $('body').on('click.HSMobileHideOnScroll', '.navbar-toggler', function (e) {\r\n            var $navbar = $(this).closest('.navbar');\r\n\r\n            if ($navbar.length) {\r\n              $navbar.data('mobile-menu-scroll-position', $w.scrollTop());\r\n            }\r\n            e.preventDefault();\r\n          });\r\n\r\n          $w.on('scroll.HSMobileHideOnScroll', function (e) {\r\n            $collection.each(function (i, el) {\r\n              var $this = $(el), $toggler, $nav, offset, $hamburgers, breakpoint;\r\n              if ($this.hasClass('navbar-expand-xl')) breakpoint = breakpointsMap['xl'];\r\n              else if ($this.hasClass('navbar-expand-lg')) breakpoint = breakpointsMap['lg'];\r\n              else if ($this.hasClass('navbar-expand-md')) breakpoint = breakpointsMap['md'];\r\n              else if ($this.hasClass('navbar-expand-xs')) breakpoint = breakpointsMap['xs'];\r\n\r\n              if ($w.width() > breakpoint) return;\r\n\r\n              $toggler = $this.find('.navbar-toggler');\r\n              $nav = $this.find('.navbar-collapse');\r\n\r\n              if (!$nav.data('mobile-scroll-hide')) return;\r\n\r\n              if ($nav.length) {\r\n                offset = $this.data('mobile-menu-scroll-position');\r\n\r\n                if (Math.abs($w.scrollTop() - offset) > 40 && $nav.hasClass('show')) {\r\n                  $toggler.trigger('click');\r\n                  $hamburgers = $toggler.find('.is-active');\r\n                  if ($hamburgers.length) {\r\n                    $hamburgers.removeClass('is-active');\r\n                  }\r\n                }\r\n              }\r\n            });\r\n          });\r\n        }\r\n      }\r\n\r\n    },\r\n\r\n    /**\r\n     *\r\n     *\r\n     * @var\r\n     */\r\n    settings: {\r\n      rtl: false\r\n    }\r\n\r\n  };\r\n\r\n  $.HSCore.init();\r\n\r\n})(jQuery);","/**\r\n * Fancybox wrapper.\r\n *\r\n * @author Htmlstream\r\n * @version 1.0\r\n * @requires\r\n *\r\n */\r\n;\r\n(function ($) {\r\n  'use strict';\r\n\r\n  $.HSCore.components.HSFancyBox = {\r\n    /**\r\n     *\r\n     *\r\n     * @var Object _baseConfig\r\n     */\r\n    _baseConfig: {\r\n      parentEl: 'html',\r\n      baseClass: 'u-fancybox-theme',\r\n      slideClass: 'u-fancybox-slide',\r\n      speed: 1000,\r\n      slideSpeedCoefficient: 1,\r\n      infobar: false,\r\n      fullScreen: true,\r\n      thumbs: true,\r\n      closeBtn: true,\r\n      baseTpl: '<div class=\"fancybox-container\" role=\"dialog\" tabindex=\"-1\">' +\r\n        '<div class=\"fancybox-content\">' +\r\n        '<div class=\"fancybox-bg\"></div>' +\r\n        '<div class=\"fancybox-controls\" style=\"position: relative; z-index: 99999;\">' +\r\n        '<div class=\"fancybox-infobar\">' +\r\n        '<div class=\"fancybox-infobar__body\">' +\r\n        '<span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span>' +\r\n        '</div>' +\r\n        '</div>' +\r\n        '<div class=\"fancybox-toolbar\">{{BUTTONS}}</div>' +\r\n        '</div>' +\r\n        '<div class=\"fancybox-slider-wrap\">' +\r\n        '<button data-fancybox-prev class=\"fancybox-arrow fancybox-arrow--left\" title=\"Previous\"></button>' +\r\n        '<button data-fancybox-next class=\"fancybox-arrow fancybox-arrow--right\" title=\"Next\"></button>' +\r\n        '<div class=\"fancybox-stage\"></div>' +\r\n        '</div>' +\r\n        '<div class=\"fancybox-caption-wrap\">' +\r\n        '<div class=\"fancybox-caption\"></div>' +\r\n        '</div>' +\r\n        '</div>' +\r\n        '</div>',\r\n      animationEffect: 'fade'\r\n    },\r\n\r\n    /**\r\n     *\r\n     *\r\n     * @var jQuery pageCollection\r\n     */\r\n    pageCollection: $(),\r\n\r\n    /**\r\n     * Initialization of Fancybox wrapper.\r\n     *\r\n     * @param String selector (optional)\r\n     * @param Object config (optional)\r\n     *\r\n     * @return jQuery pageCollection - collection of initialized items.\r\n     */\r\n\r\n    init: function (selector, config) {\r\n      if (!selector) return;\r\n\r\n      var $collection = $(selector);\r\n\r\n      if (!$collection.length) return;\r\n\r\n      config = config && $.isPlainObject(config) ? $.extend(true, {}, this._baseConfig, config) : this._baseConfig;\r\n\r\n      this.initFancyBox(selector, config);\r\n    },\r\n\r\n    initFancyBox: function (el, conf) {\r\n      var $fancybox = $(el);\r\n\r\n      $fancybox.on('click', function () {\r\n        var $this = $(this),\r\n          animationDuration = $this.data('speed'),\r\n          isGroup = $this.data('fancybox'),\r\n          isInfinite = Boolean($this.data('is-infinite')),\r\n          isSlideShowAutoStart = Boolean($this.data('is-slideshow-auto-start')),\r\n          slideShowSpeed = $this.data('slideshow-speed');\r\n\r\n        $.fancybox.defaults.animationDuration = animationDuration;\r\n\r\n        if (isInfinite === true) {\r\n          $.fancybox.defaults.loop = true;\r\n        }\r\n\r\n        if (isSlideShowAutoStart === true) {\r\n          $.fancybox.defaults.slideShow.autoStart = true;\r\n        } else {\r\n          $.fancybox.defaults.slideShow.autoStart = false;\r\n        }\r\n\r\n        if (isGroup) {\r\n          $.fancybox.defaults.transitionEffect = 'slide';\r\n          $.fancybox.defaults.slideShow.speed = slideShowSpeed;\r\n        }\r\n      });\r\n\r\n      $fancybox.fancybox($.extend(true, {}, conf, {\r\n        beforeShow: function (instance, slide) {\r\n          var $fancyModal = $(instance.$refs.container),\r\n            $fancyOverlay = $(instance.$refs.bg[0]),\r\n            $fancySlide = $(instance.current.$slide),\r\n\r\n            animateIn = instance.current.opts.$orig[0].dataset.animateIn,\r\n            animateOut = instance.current.opts.$orig[0].dataset.animateOut,\r\n            speed = instance.current.opts.$orig[0].dataset.speed,\r\n            overlayBG = instance.current.opts.$orig[0].dataset.overlayBg,\r\n            overlayBlurBG = instance.current.opts.$orig[0].dataset.overlayBlurBg;\r\n\r\n          if (animateIn && $('body').hasClass('u-first-slide-init')) {\r\n            var $fancyPrevSlide = $(instance.slides[instance.prevPos].$slide);\r\n\r\n            $fancySlide.addClass('has-animation');\r\n\r\n            $fancyPrevSlide.addClass('animated ' + animateOut);\r\n\r\n            setTimeout(function () {\r\n              $fancySlide.addClass('animated ' + animateIn);\r\n            }, speed / 2);\r\n          } else if (animateIn) {\r\n            var $fancyPrevSlide = $(instance.slides[instance.prevPos].$slide);\r\n\r\n            $fancySlide.addClass('has-animation');\r\n\r\n            $fancySlide.addClass('animated ' + animateIn);\r\n\r\n            $('body').addClass('u-first-slide-init');\r\n\r\n            $fancySlide.on('animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd', function (e) {\r\n              $fancySlide.removeClass(animateIn);\r\n            });\r\n          }\r\n\r\n          if (speed) {\r\n            $fancyOverlay.css('transition-duration', speed + 'ms');\r\n          } else {\r\n            $fancyOverlay.css('transition-duration', '1000ms');\r\n          }\r\n\r\n          if (overlayBG) {\r\n            $fancyOverlay.css('background-color', overlayBG);\r\n          }\r\n\r\n          if (overlayBlurBG) {\r\n            $('body').addClass('u-blur-30');\r\n          }\r\n        },\r\n\r\n        beforeClose: function (instance, slide) {\r\n          var $fancyModal = $(instance.$refs.container),\r\n            $fancySlide = $(instance.current.$slide),\r\n\r\n            animateIn = instance.current.opts.$orig[0].dataset.animateIn,\r\n            animateOut = instance.current.opts.$orig[0].dataset.animateOut,\r\n            overlayBlurBG = instance.current.opts.$orig[0].dataset.overlayBlurBg;\r\n\r\n          if (animateOut) {\r\n            $fancySlide.removeClass(animateIn).addClass(animateOut);\r\n            $('body').removeClass('u-first-slide-init')\r\n          }\r\n\r\n          if (overlayBlurBG) {\r\n            $('body').removeClass('u-blur-30')\r\n          }\r\n        }\r\n      }));\r\n    }\r\n  }\r\n})(jQuery);\r\n","/**\r\n * Slick Carousel wrapper.\r\n *\r\n * @author Htmlstream\r\n * @version 1.0\r\n * @requires\r\n *\r\n */\r\n;\r\n(function ($) {\r\n\t'use strict';\r\n\t\r\n\t$.HSCore.components.HSSlickCarousel = {\r\n\t\t/**\r\n\t\t *\r\n\t\t *\r\n\t\t * @var Object _baseConfig\r\n\t\t */\r\n\t\t_baseConfig: {\r\n\t\t\tautoplay: false,\r\n\t\t\tinfinite: true\r\n\t\t},\r\n\t\t\r\n\t\t/**\r\n\t\t *\r\n\t\t *\r\n\t\t * @var jQuery pageCollection\r\n\t\t */\r\n\t\tpageCollection: $(),\r\n\t\t\r\n\t\t/**\r\n\t\t * Initialization of Slick Carousel wrapper.\r\n\t\t *\r\n\t\t * @param String selector (optional)\r\n\t\t * @param Object config (optional)\r\n\t\t *\r\n\t\t * @return jQuery pageCollection - collection of initialized items.\r\n\t\t */\r\n\t\tinit: function (selector, config) {\r\n\t\t\tthis.collection = selector && $(selector).length ? $(selector) : $();\r\n\t\t\tif (!$(selector).length) return;\r\n\t\t\t\r\n\t\t\tthis.config = config && $.isPlainObject(config) ?\r\n\t\t\t\t$.extend({}, this._baseConfig, config) : this._baseConfig;\r\n\t\t\t\r\n\t\t\tthis.config.itemSelector = selector;\r\n\t\t\t\r\n\t\t\tthis.initSlickCarousel();\r\n\t\t\t\r\n\t\t\treturn this.pageCollection;\r\n\t\t},\r\n\t\t\r\n\t\tinitSlickCarousel: function () {\r\n\t\t\t//Variables\r\n\t\t\tvar $self = this,\r\n\t\t\t\tconfig = $self.config,\r\n\t\t\t\tcollection = $self.pageCollection;\r\n\t\t\t\r\n\t\t\t//Actions\r\n\t\t\tthis.collection.each(function (i, el) {\r\n\t\t\t\t//Variables\r\n\t\t\t\tvar $this = $(el),\r\n\t\t\t\t\tid = $this.attr('id'),\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Markup elements\r\n\t\t\t\t\ttarget = $this.data('nav-for'),\r\n\t\t\t\t\t\r\n\t\t\t\t\tisThumb = $this.data('is-thumbs'),\r\n\t\t\t\t\tisThumbProgress = Boolean($this.data('is-thumbs-progress')),\r\n\t\t\t\t\tthumbProgressOptions = JSON.parse(el.getAttribute('data-thumbs-progress-options')),\r\n\t\t\t\t\tthumbProgressElLength = 0,\r\n\t\t\t\t\tthumbProgressContainer = $this.data('thumbs-progress-container'),\r\n\t\t\t\t\tinitialDelay = 600,\r\n\t\t\t\t\t\r\n\t\t\t\t\tarrowsClasses = $this.data('arrows-classes'),\r\n\t\t\t\t\tarrowLeftClasses = $this.data('arrow-left-classes'),\r\n\t\t\t\t\tarrowRightClasses = $this.data('arrow-right-classes'),\r\n\t\t\t\t\tpagiClasses = $this.data('pagi-classes'),\r\n\t\t\t\t\tpagiHelper = $this.data('pagi-helper'),\r\n\t\t\t\t\t$pagiIcons = $this.data('pagi-icons'),\r\n\t\t\t\t\t$prevMarkup = '<div class=\"js-prev ' + arrowsClasses + ' ' + arrowLeftClasses + '\"></div>',\r\n\t\t\t\t\t$nextMarkup = '<div class=\"js-next ' + arrowsClasses + ' ' + arrowRightClasses + '\"></div>',\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Setters\r\n\t\t\t\t\tsetSlidesToShow = $this.data('slides-show'),\r\n\t\t\t\t\tsetSlidesToScroll = $this.data('slides-scroll'),\r\n\t\t\t\t\tsetAutoplay = $this.data('autoplay'),\r\n\t\t\t\t\tsetAnimation = $this.data('animation'),\r\n\t\t\t\t\tsetEasing = $this.data('easing'),\r\n\t\t\t\t\tsetFade = $this.data('fade'),\r\n\t\t\t\t\tsetSpeed = $this.data('autoplay-speed'),\r\n\t\t\t\t\tsetSlidesRows = $this.data('rows'),\r\n\t\t\t\t\tsetCenterMode = $this.data('center-mode'),\r\n\t\t\t\t\tsetCenterPadding = $this.data('center-padding'),\r\n\t\t\t\t\tsetPauseOnHover = $this.data('pause-hover'),\r\n\t\t\t\t\tsetVariableWidth = $this.data('variable-width'),\r\n\t\t\t\t\tsetInitialSlide = $this.data('initial-slide'),\r\n\t\t\t\t\tsetVertical = $this.data('vertical'),\r\n\t\t\t\t\tsetRtl = $this.data('rtl'),\r\n\t\t\t\t\tsetInEffect = $this.data('in-effect'),\r\n\t\t\t\t\tsetOutEffect = $this.data('out-effect'),\r\n\t\t\t\t\tsetInfinite = $this.data('infinite'),\r\n\t\t\t\t\tsetDataTitlePosition = $this.data('title-pos-inside'),\r\n\t\t\t\t\tsetFocusOnSelect = $this.data('focus-on-select'),\r\n\t\t\t\t\tsetLazyLoad = $this.data('lazy-load'),\r\n\t\t\t\t\tisAdaptiveHeight = $this.data('adaptive-height'),\r\n\t\t\t\t\tnumberedPaging = $this.data('numbered-pagination'),\r\n\t\t\t\t\tsetResponsive = JSON.parse(el.getAttribute('data-responsive'));\r\n\t\t\t\t\r\n\t\t\t\tif ($this.find('[data-slide-type]').length) {\r\n\t\t\t\t\t$self.videoSupport($this);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this.on('init', function (event, slick) {\r\n\t\t\t\t\t$(slick.$slides).css('height', 'auto');\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (isThumb && setSlidesToShow >= $(slick.$slides).length) {\r\n\t\t\t\t\t\t$this.addClass('slick-transform-off');\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\t$this.on('init', function (event, slick) {\r\n\t\t\t\t\tvar slide = $(slick.$slides)[slick.currentSlide],\r\n\t\t\t\t\t\tanimatedElements = $(slide).find('[data-scs-animation-in]');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$(animatedElements).each(function () {\r\n\t\t\t\t\t\tvar animationIn = $(this).data('scs-animation-in'),\r\n\t\t\t\t\t\t\tanimationDelay = $(this).data('scs-animation-delay'),\r\n\t\t\t\t\t\t\tanimationDuration = $(this).data('scs-animation-duration');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$(this).css({\r\n\t\t\t\t\t\t\t'animation-delay': animationDelay + 'ms',\r\n\t\t\t\t\t\t\t'animation-duration': animationDuration + 'ms'\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$(this).addClass('animated ' + animationIn).css('opacity', 1);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif (setInEffect && setOutEffect) {\r\n\t\t\t\t\t$this.on('init', function (event, slick) {\r\n\t\t\t\t\t\t$(slick.$slides).addClass('single-slide');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (pagiHelper) {\r\n\t\t\t\t\t$this.on('init', function (event, slick) {\r\n\t\t\t\t\t\tvar $pagination = $this.find('.js-pagination');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (!$pagination.length) return;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$pagination.append('<span class=\"u-dots-helper\"></span>');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isThumb) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (isThumbProgress) {\r\n\t\t\t\t\t\t$this.on('init', function (event, slick) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$(slick.$slides).each(function () {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tvar defColor = '#000',\r\n\t\t\t\t\t\t\t\t\tdefWidth = 4,\r\n\t\t\t\t\t\t\t\t\tel = '<span class=\"u-slick-thumb-progress\">' +\r\n\t\t\t\t\t\t\t\t\t\t'<svg version=\"1.1\" viewBox=\"0 0 160 160\">' +\r\n\t\t\t\t\t\t\t\t\t\t'<path class=\"u-slick-thumb-progress__path\" fill=\"transparent\" stroke=\"' + (thumbProgressOptions && thumbProgressOptions.color ? thumbProgressOptions.color : defColor) + '\" stroke-width=\"' + (thumbProgressOptions && thumbProgressOptions.width ? thumbProgressOptions.width : defWidth) + '\" d=\"M 79.98452083651917 4.000001576345426 A 76 76 0 1 1 79.89443752470656 4.0000733121155605 Z\"></path>' +\r\n\t\t\t\t\t\t\t\t\t\t'</svg>' +\r\n\t\t\t\t\t\t\t\t\t\t'</span>',\r\n\t\t\t\t\t\t\t\t\t$el = $(el),\r\n\t\t\t\t\t\t\t\t\t$svg = $el.find('svg'),\r\n\t\t\t\t\t\t\t\t\t$path = $svg.find('path'),\r\n\t\t\t\t\t\t\t\t\tstyle = '<style type=\"text/css\"></style>',\r\n\t\t\t\t\t\t\t\t\t$style = $(style);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tthumbProgressElLength = parseInt($path[0].getTotalLength());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$path.css({\r\n\t\t\t\t\t\t\t\t\t\"stroke-dashoffset\": thumbProgressElLength,\r\n\t\t\t\t\t\t\t\t\t\"stroke-dasharray\": thumbProgressElLength\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$style.text('.slick-current:not(.slick-initial-slide) .u-slick-thumb-progress__path {' +\r\n\t\t\t\t\t\t\t\t\t'animation: dash ' + (slick.options.autoplaySpeed + slick.options.speed) + 'ms linear alternate' +\r\n\t\t\t\t\t\t\t\t\t'}' +\r\n\t\t\t\t\t\t\t\t\t'@keyframes dash {' +\r\n\t\t\t\t\t\t\t\t\t'from {stroke-dashoffset: ' + thumbProgressElLength + ';} ' +\r\n\t\t\t\t\t\t\t\t\t'to {stroke-dashoffset: 0;}' +\r\n\t\t\t\t\t\t\t\t\t'}');\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$el.appendTo($(this).find(thumbProgressContainer));\r\n\t\t\t\t\t\t\t\t$style.appendTo($(this).find(thumbProgressContainer))\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('#' + id).on('click', '.slick-slide', function (e) {\r\n\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Variables\r\n\t\t\t\t\t\tvar i = $(this).data('slick-index');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ($('#' + id).slick('slickCurrentSlide') !== i) {\r\n\t\t\t\t\t\t\t$('#' + id).slick('slickGoTo', i);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this.on('init', function (event, slider) {\r\n\t\t\t\t\tvar $pagination = $this.find('.js-pagination');\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!$pagination.length) return;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$($pagination[0].children[0]).addClass('slick-current');\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\t$this.on('init', function (event, slick) {\r\n\t\t\t\t\tvar slide = $(slick.$slides)[0],\r\n\t\t\t\t\t\tanimatedElements = $(slide).find('[data-scs-animation-in]');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$(animatedElements).each(function () {\r\n\t\t\t\t\t\tvar animationIn = $(this).data('scs-animation-in');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$(this).addClass('animated ' + animationIn).css('opacity', 1);\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif (numberedPaging) {\r\n\t\t\t\t\t$this.on('init', function (event, slick) {\r\n\t\t\t\t\t\t$(numberedPaging).html('<span class=\"u-paging__current\">1</span><span class=\"u-paging__divider\"></span><span class=\"u-paging__total\">' + slick.slideCount + '</span>');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this.slick({\r\n\t\t\t\t\tautoplay: (setAutoplay || ($(target)[0] && $(target)[0].dataset.isThumbsProgress)) ? true : false,\r\n\t\t\t\t\tautoplaySpeed: setSpeed ? setSpeed : 3000,\r\n\t\t\t\t\t\r\n\t\t\t\t\tcssEase: setAnimation ? setAnimation : 'ease',\r\n\t\t\t\t\teasing: setEasing ? setEasing : 'linear',\r\n\t\t\t\t\tfade: setFade ? true : false,\r\n\t\t\t\t\t\r\n\t\t\t\t\tinfinite: setInfinite ? true : false,\r\n\t\t\t\t\tinitialSlide: setInitialSlide ? setInitialSlide - 1 : 0,\r\n\t\t\t\t\tslidesToShow: setSlidesToShow ? setSlidesToShow : 1,\r\n\t\t\t\t\tslidesToScroll: setSlidesToScroll ? setSlidesToScroll : 1,\r\n\t\t\t\t\tcenterMode: setCenterMode ? true : false,\r\n\t\t\t\t\tvariableWidth: setVariableWidth ? true : false,\r\n\t\t\t\t\tpauseOnHover: setPauseOnHover ? true : false,\r\n\t\t\t\t\trows: setSlidesRows ? setSlidesRows : 1,\r\n\t\t\t\t\tvertical: setVertical ? true : false,\r\n\t\t\t\t\tverticalSwiping: setVertical ? true : false,\r\n\t\t\t\t\trtl: setRtl ? true : false,\r\n\t\t\t\t\tcenterPadding: setCenterPadding ? setCenterPadding : 0,\r\n\t\t\t\t\tfocusOnSelect: setFocusOnSelect ? true : false,\r\n\t\t\t\t\tlazyLoad: setLazyLoad ? setLazyLoad : false,\r\n\t\t\t\t\t\r\n\t\t\t\t\tasNavFor: target ? target : false,\r\n\t\t\t\t\tprevArrow: arrowsClasses ? $prevMarkup : false,\r\n\t\t\t\t\tnextArrow: arrowsClasses ? $nextMarkup : false,\r\n\t\t\t\t\tdots: pagiClasses ? true : false,\r\n\t\t\t\t\tdotsClass: 'js-pagination ' + pagiClasses,\r\n\t\t\t\t\tadaptiveHeight: !!isAdaptiveHeight,\r\n\t\t\t\t\t\r\n\t\t\t\t\tcustomPaging: function (slider, i) {\r\n\t\t\t\t\t\tvar title = $(slider.$slides[i]).data('title');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (title && $pagiIcons) {\r\n\t\t\t\t\t\t\treturn '<span>' + title + '</span>' + $pagiIcons;\r\n\t\t\t\t\t\t} else if ($pagiIcons) {\r\n\t\t\t\t\t\t\treturn '<span></span>' + $pagiIcons;\r\n\t\t\t\t\t\t} else if (title && setDataTitlePosition) {\r\n\t\t\t\t\t\t\treturn '<span>' + title + '</span>';\r\n\t\t\t\t\t\t} else if (title && !setDataTitlePosition) {\r\n\t\t\t\t\t\t\treturn '<span></span>' + '<strong class=\"u-dot-title\">' + title + '</strong>';\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\treturn '<span></span>';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tresponsive: setResponsive\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif ($(target)[0] && $(target)[0].dataset.isThumbsProgress) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this.slick('slickPause');\r\n\t\t\t\t\t\r\n\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$this.slick('slickPlay');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}, initialDelay);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this.on('beforeChange', function (event, slider, currentSlide, nextSlide) {\r\n\t\t\t\t\tvar nxtSlide = $(slider.$slides)[nextSlide],\r\n\t\t\t\t\t\tslide = $(slider.$slides)[currentSlide],\r\n\t\t\t\t\t\t$pagination = $this.find('.js-pagination'),\r\n\t\t\t\t\t\tanimatedElements = $(nxtSlide).find('[data-scs-animation-in]'),\r\n\t\t\t\t\t\totherElements = $(slide).find('[data-scs-animation-in]');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$(otherElements).each(function () {\r\n\t\t\t\t\t\tvar animationIn = $(this).data('scs-animation-in');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$(this).removeClass('animated ' + animationIn);\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\t$(animatedElements).each(function () {\r\n\t\t\t\t\t\t$(this).css('opacity', 0);\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!$pagination.length) return;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (currentSlide > nextSlide) {\r\n\t\t\t\t\t\t$($pagination[0].children).removeClass('slick-active-right');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$($pagination[0].children[nextSlide]).addClass('slick-active-right');\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$($pagination[0].children).removeClass('slick-active-right');\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$($pagination[0].children).removeClass('slick-current');\r\n\t\t\t\t\t\r\n\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\t$($pagination[0].children[nextSlide]).addClass('slick-current');\r\n\t\t\t\t\t}, .25);\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif (numberedPaging) {\r\n\t\t\t\t\t$this.on('beforeChange', function (event, slick, currentSlide, nextSlide) {\r\n\t\t\t\t\t\tvar i = (nextSlide ? nextSlide : 0) + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$(numberedPaging).html('<span class=\"u-paging__current\">' + i + '</span><span class=\"u-paging__divider\"></span><span class=\"u-paging__total\">' + slick.slideCount + '</span>');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this.on('afterChange', function (event, slick, currentSlide) {\r\n\t\t\t\t\tvar slide = $(slick.$slides)[currentSlide],\r\n\t\t\t\t\t\tanimatedElements = $(slide).find('[data-scs-animation-in]');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$(animatedElements).each(function () {\r\n\t\t\t\t\t\tvar animationIn = $(this).data('scs-animation-in'),\r\n\t\t\t\t\t\t\tanimationDelay = $(this).data('scs-animation-delay'),\r\n\t\t\t\t\t\t\tanimationDuration = $(this).data('scs-animation-duration');\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$(this).css({\r\n\t\t\t\t\t\t\t'animation-delay': animationDelay + 'ms',\r\n\t\t\t\t\t\t\t'animation-duration': animationDuration + 'ms'\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$(this).addClass('animated ' + animationIn).css('opacity', 1);\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif (setInEffect && setOutEffect) {\r\n\t\t\t\t\t$this.on('afterChange', function (event, slick, currentSlide, nextSlide) {\r\n\t\t\t\t\t\t$(slick.$slides).removeClass('animated set-position ' + setInEffect + ' ' + setOutEffect);\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this.on('beforeChange', function (event, slick, currentSlide) {\r\n\t\t\t\t\t\t$(slick.$slides[currentSlide]).addClass('animated ' + setOutEffect);\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this.on('setPosition', function (event, slick) {\r\n\t\t\t\t\t\t$(slick.$slides[slick.currentSlide]).addClass('animated set-position ' + setInEffect);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Actions\r\n\t\t\t\tcollection = collection.add($this);\r\n\t\t\t});\r\n\t\t},\r\n\t\t\r\n\t\t/**\r\n\t\t * Implementation of video support.\r\n\t\t *\r\n\t\t * @param jQuery carousel\r\n\t\t * @param String videoSupport\r\n\t\t *\r\n\t\t * @return undefined\r\n\t\t */\r\n\t\tvideoSupport: function (carousel) {\r\n\t\t\tif (!carousel.length) return;\r\n\t\t\t\r\n\t\t\tcarousel.on('beforeChange', function (event, slick, currentSlide, nextSlide) {\r\n\t\t\t\tvar slideType = $(slick.$slides[currentSlide]).data('slide-type'),\r\n\t\t\t\t\tplayer = $(slick.$slides[currentSlide]).find('iframe').get(0),\r\n\t\t\t\t\tcommand;\r\n\t\t\t\t\r\n\t\t\t\tif (slideType == 'vimeo') {\r\n\t\t\t\t\tcommand = {\r\n\t\t\t\t\t\t\"method\": \"pause\",\r\n\t\t\t\t\t\t\"value\": \"true\"\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (slideType == 'youtube') {\r\n\t\t\t\t\tcommand = {\r\n\t\t\t\t\t\t\"event\": \"command\",\r\n\t\t\t\t\t\t\"func\": \"pauseVideo\"\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (player != undefined) {\r\n\t\t\t\t\tplayer.contentWindow.postMessage(JSON.stringify(command), '*');\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\t\r\n\t\t/**\r\n\t\t * Implementation of text animation.\r\n\t\t *\r\n\t\t * @param jQuery carousel\r\n\t\t * @param String textAnimationSelector\r\n\t\t *\r\n\t\t * @requires charming.js, anime.js, textfx.js\r\n\t\t *\r\n\t\t * @return undefined\r\n\t\t */\r\n\t\tinitTextAnimation: function (carousel, textAnimationSelector) {\r\n\t\t\tif (!window.TextFx || !window.anime || !carousel.length) return;\r\n\t\t\t\r\n\t\t\tvar $text = carousel.find(textAnimationSelector);\r\n\t\t\t\r\n\t\t\tif (!$text.length) return;\r\n\t\t\t\r\n\t\t\t$text.each(function (i, el) {\r\n\t\t\t\tvar $this = $(el);\r\n\t\t\t\t\r\n\t\t\t\tif (!$this.data('TextFx')) {\r\n\t\t\t\t\t$this.data('TextFx', new TextFx($this.get(0)));\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tcarousel.on('beforeChange', function (event, slick, currentSlide, nextSlide) {\r\n\t\t\t\tvar targets = slick.$slider\r\n\t\t\t\t\t.find('.slick-track')\r\n\t\t\t\t\t.children();\r\n\t\t\t\t\r\n\t\t\t\tvar currentTarget = targets.eq(currentSlide),\r\n\t\t\t\t\tnextTarget = targets.eq(nextSlide);\r\n\t\t\t\t\r\n\t\t\t\tcurrentTarget = currentTarget.find(textAnimationSelector);\r\n\t\t\t\tnextTarget = nextTarget.find(textAnimationSelector);\r\n\t\t\t\t\r\n\t\t\t\tif (currentTarget.length) {\r\n\t\t\t\t\tcurrentTarget.data('TextFx').hide(currentTarget.data('effect') ? currentTarget.data('effect') : 'fx1');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (nextTarget.length) {\r\n\t\t\t\t\tnextTarget.data('TextFx').show(nextTarget.data('effect') ? nextTarget.data('effect') : 'fx1');\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n})(jQuery);\r\n","// Azure Storage JavaScript Client Library 3.0.100\r\n// Copyright (c) Microsoft and contributors. All rights reserved.\r\n/* eslint-disable */\r\n(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}(g.AzureStorage || (g.AzureStorage = {})).Blob = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nmodule.exports.generateDevelopmentStorageCredentials = function (proxyUri) {\r\n  var devStore = 'UseDevelopmentStorage=true;';\r\n  if(proxyUri){\r\n    devStore += 'DevelopmentStorageProxyUri=' + proxyUri;\r\n  }\r\n\r\n  return devStore;\r\n};\r\n\r\nvar BlobService = require('../lib/services/blob/blobservice.browser');\r\n\r\nmodule.exports.BlobService = BlobService;\r\nmodule.exports.BlobUtilities = require('../lib/services/blob/blobutilities');\r\n\r\nmodule.exports.createBlobService = function (storageAccountOrConnectionString, storageAccessKey, host) {\r\n  return new BlobService(storageAccountOrConnectionString, storageAccessKey, host, null);\r\n};\r\n\r\nmodule.exports.createBlobServiceWithSas = function (host, sasToken) {\r\n  return new BlobService(null, null, host, sasToken);\r\n};\r\n\r\nmodule.exports.createBlobServiceWithTokenCredential = function (host, tokenCredential) {\r\n  return new BlobService(null, null, host, null, null, tokenCredential);\r\n};\r\n\r\nmodule.exports.createBlobServiceAnonymous = function (host) {\r\n  return new BlobService(null, null, host, null);\r\n};\r\n\r\nvar azureCommon = require('../lib/common/common.browser');\r\nvar StorageServiceClient = azureCommon.StorageServiceClient;\r\nvar SharedKey = azureCommon.SharedKey;\r\n\r\nmodule.exports.generateAccountSharedAccessSignature = function(storageAccountOrConnectionString, storageAccessKey, sharedAccessAccountPolicy)\r\n{\r\n  var storageSettings = StorageServiceClient.getStorageSettings(storageAccountOrConnectionString, storageAccessKey);\r\n  var sharedKey = new SharedKey(storageSettings._name, storageSettings._key);\r\n  \r\n  return sharedKey.generateAccountSignedQueryString(sharedAccessAccountPolicy);\r\n};\r\n\r\nmodule.exports.Constants = azureCommon.Constants;\r\nmodule.exports.StorageUtilities = azureCommon.StorageUtilities;\r\nmodule.exports.AccessCondition = azureCommon.AccessCondition;\r\n\r\nmodule.exports.SR = azureCommon.SR;\r\nmodule.exports.StorageServiceClient = StorageServiceClient;\r\nmodule.exports.Logger = azureCommon.Logger;\r\nmodule.exports.WebResource = azureCommon.WebResource;\r\nmodule.exports.Validate = azureCommon.validate;\r\nmodule.exports.date = azureCommon.date;\r\nmodule.exports.TokenCredential = azureCommon.TokenCredential;\r\n\r\n// Other filters\r\nmodule.exports.LinearRetryPolicyFilter = azureCommon.LinearRetryPolicyFilter;\r\nmodule.exports.ExponentialRetryPolicyFilter = azureCommon.ExponentialRetryPolicyFilter;\r\nmodule.exports.RetryPolicyFilter = azureCommon.RetryPolicyFilter;\r\n},{\"../lib/common/common.browser\":2,\"../lib/services/blob/blobservice.browser\":40,\"../lib/services/blob/blobutilities\":42}],2:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar azureCommon = require('./common.core');\r\n\r\nazureCommon.BrowserFileReadStream = require('./streams/browserfilereadstream');\r\n\r\nmodule.exports = azureCommon;\r\n},{\"./common.core\":3,\"./streams/browserfilereadstream\":24}],3:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar exports = module.exports;\r\n\r\nvar azureutil = require('./util/util');\r\n\r\nrequire('./util/patch-xmlbuilder');\r\n\r\nvar nodeVersion = azureutil.getNodeVersion();\r\nif (nodeVersion.major === 0 && nodeVersion.minor > 8 && !(nodeVersion.minor > 10 || (nodeVersion.minor === 10 && nodeVersion.patch >= 3))) {\r\n  throw new Error('The Microsoft Azure node SDK does not work with node versions > 0.9.0 and < 0.10.3. Please upgrade to node >= 0.10.3');\r\n}\r\n\r\nexports.xmlbuilder = require('xmlbuilder');\r\nexports.xml2js = require('xml2js');\r\n\r\nexports.Logger = require('./diagnostics/logger');\r\nexports.WebResource = require('./http/webresource');\r\n\r\n// Services\r\nexports.StorageServiceClient = require('./services/storageserviceclient');\r\n\r\n// Models\r\nexports.ServicePropertiesResult = require('./models/servicepropertiesresult');\r\nexports.ServiceStatsParser = require('./models/servicestatsparser');\r\nexports.AclResult = require('./models/aclresult');\r\nexports.TokenCredential = require('./models/tokencredential');\r\n\r\n// Filters\r\nexports.LinearRetryPolicyFilter = require('./filters/linearretrypolicyfilter');\r\nexports.ExponentialRetryPolicyFilter = require('./filters/exponentialretrypolicyfilter');\r\nexports.RetryPolicyFilter = require('./filters/retrypolicyfilter');\r\n\r\n// Signing\r\nexports.SharedAccessSignature = require('./signing/sharedaccesssignature');\r\nexports.SharedKey = require('./signing/sharedkey');\r\n\r\n// Streams\r\nexports.BatchOperation = require('./streams/batchoperation');\r\nexports.ChunkAllocator = require('./streams/chunkallocator');\r\nexports.ChunkStream = require('./streams/chunkstream');\r\nexports.ChunkStreamWithStream = require('./streams/chunkstreamwithstream');\r\nexports.SpeedSummary = require('./streams/speedsummary');\r\nexports.BufferStream = require('./streams/bufferstream');\r\n\r\n// Utilities\r\nexports.Constants = require('./util/constants');\r\nexports.SR = require('./util/sr');\r\nexports.date = require('./util/date');\r\nexports.ISO8061Date = require('./util/iso8061date');\r\nexports.util = require('./util/util');\r\nexports.validate = require('./util/validate');\r\nexports.StorageUtilities = require('./util/storageutilities');\r\nexports.AccessCondition = require('./util/accesscondition');\r\n},{\"./diagnostics/logger\":4,\"./filters/exponentialretrypolicyfilter\":6,\"./filters/linearretrypolicyfilter\":7,\"./filters/retrypolicyfilter\":8,\"./http/webresource\":9,\"./models/aclresult\":12,\"./models/servicepropertiesresult\":13,\"./models/servicestatsparser\":14,\"./models/tokencredential\":15,\"./services/storageserviceclient\":18,\"./signing/sharedaccesssignature\":20,\"./signing/sharedkey\":21,\"./streams/batchoperation\":23,\"./streams/bufferstream\":25,\"./streams/chunkallocator\":26,\"./streams/chunkstream\":27,\"./streams/chunkstreamwithstream\":28,\"./streams/speedsummary\":30,\"./util/accesscondition\":31,\"./util/constants\":32,\"./util/date\":33,\"./util/iso8061date\":34,\"./util/patch-xmlbuilder\":35,\"./util/sr\":36,\"./util/storageutilities\":37,\"./util/util\":38,\"./util/validate\":39,\"xml2js\":194,\"xmlbuilder\":216}],4:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n/**\r\n* Creates a new Logger object\r\n* @class\r\n* The Logger class is used to write log information.\r\n* \r\n* @constructor\r\n*\r\n* @param {string} [level]           The log level. Refer to Logger.LogLevels.\r\n* @param {object} [loggerFunction]  The function to write log information.\r\n*/\r\nfunction Logger(level, loggerFunction) {\r\n  /**\r\n   * The log level. Refer to the Logger.LogLevels for available log levels. \r\n   * @name  Logger#level\r\n   * @type  {string}\r\n   * @see Logger.LogLevels\r\n   */\r\n  this.level = level;\r\n  \r\n  this.loggerFunction = loggerFunction;\r\n\r\n  if (!this.loggerFunction) {\r\n    this.loggerFunction = this.defaultLoggerFunction;\r\n  }\r\n}\r\n\r\n/**\r\n* The available log levels.\r\n*\r\n* @const\r\n* @enum {string}\r\n*/\r\nLogger.LogLevels = {\r\n  /**\r\n  * System is unusable.\r\n  */\r\n  EMERGENCY: 'emergency',\r\n\r\n  /**\r\n  * Action must be taken immediately.\r\n  */\r\n  ALERT : 'alert',\r\n\r\n  /**\r\n  * Critical condition.\r\n  */\r\n  CRITICAL : 'critical',\r\n\r\n  /**\r\n  * Error condition.\r\n  */\r\n  ERROR : 'error',\r\n\r\n  /**\r\n  * Warning condition.\r\n  */\r\n  WARNING : 'warning',\r\n\r\n  /**\r\n  * Normal but significant condition.\r\n  */\r\n  NOTICE : 'notice',\r\n\r\n  /**\r\n  * Purely informational message.\r\n  */\r\n  INFO : 'info',\r\n\r\n  /**\r\n  * Application debug messages.\r\n  */\r\n  DEBUG : 'debug'\r\n};\r\n\r\nLogger.logPriority = [\r\n  Logger.LogLevels.EMERGENCY,\r\n  Logger.LogLevels.ALERT,\r\n  Logger.LogLevels.CRITICAL,\r\n  Logger.LogLevels.ERROR,\r\n  Logger.LogLevels.WARNING,\r\n  Logger.LogLevels.NOTICE,\r\n  Logger.LogLevels.INFO,\r\n  Logger.LogLevels.DEBUG\r\n];\r\n\r\nLogger.prototype.log = function (level, msg) {\r\n  this.loggerFunction(level, msg);\r\n};\r\n\r\nLogger.prototype.emergency = function(msg) {\r\n  this.log(Logger.LogLevels.EMERGENCY, msg);\r\n};\r\n\r\nLogger.prototype.critical = function(msg) {\r\n  this.log(Logger.LogLevels.CRITICAL, msg);\r\n};\r\n\r\nLogger.prototype.alert = function(msg) {\r\n  this.log(Logger.LogLevels.ALERT, msg);\r\n};\r\n\r\nLogger.prototype.error = function(msg) {\r\n  this.log(Logger.LogLevels.ERROR, msg);\r\n};\r\n\r\nLogger.prototype.warn = function(msg) {\r\n  this.log(Logger.LogLevels.WARNING, msg);\r\n};\r\n\r\nLogger.prototype.notice = function(msg) {\r\n  this.log(Logger.LogLevels.NOTICE, msg);\r\n};\r\n\r\nLogger.prototype.info = function(msg) {\r\n  this.log(Logger.LogLevels.INFO, msg);\r\n};\r\n\r\nLogger.prototype.debug = function(msg) {\r\n  this.log(Logger.LogLevels.DEBUG, msg);\r\n};\r\n\r\nLogger.prototype.defaultLoggerFunction = function(logLevel , msg) {\r\n  var currentLevelIndex = Logger.logPriority.indexOf(this.level);\r\n  var logLevelIndex = Logger.logPriority.indexOf(logLevel);\r\n  var time = new Date();\r\n  var timeStamp = time.toISOString();\r\n  if (logLevelIndex <= currentLevelIndex) {\r\n    console.log('[' + timeStamp + ']' + this.level + ' : ' + msg);\r\n  }\r\n};\r\n\r\nmodule.exports = Logger;\r\n\r\n},{}],5:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar util = require('util');\r\nvar _ = require('underscore');\r\n\r\nfunction captureStackTrace(targetObject, constructorOpt) {\r\n  if (Error.captureStackTrace) {\r\n    Error.captureStackTrace(targetObject, constructorOpt);\r\n  }\r\n}\r\n\r\nfunction ArgumentError(argumentName, message) {\r\n  captureStackTrace(this, this.constructor); \r\n  this.name = this.constructor.name;\r\n  this.argumentName = argumentName;\r\n  this.message = message || util.format('Invalid or missing argument supplied: %s', argumentName);\r\n}\r\nutil.inherits(ArgumentError, Error);\r\n\r\nfunction ArgumentNullError(argumentName, message) {\r\n  captureStackTrace(this, this.constructor); \r\n  this.name = this.constructor.name;\r\n  this.argumentName = argumentName;\r\n  this.message = message || util.format('Missing argument: %s', argumentName);\r\n}\r\n\r\nutil.inherits(ArgumentNullError, Error);\r\n\r\nfunction StorageError(message, properties) {\r\n  captureStackTrace(this, this.constructor); \r\n  this.name = this.constructor.name;\r\n  this.message = message;\r\n  \r\n  if(properties){\r\n    _.extend(this, properties);\r\n  }\r\n}\r\n\r\nutil.inherits(StorageError, Error);\r\n\r\nfunction TimeoutError(message) {\r\n  captureStackTrace(this, this.constructor); \r\n  this.name = this.constructor.name;\r\n  this.message = message;\r\n}\r\n\r\nutil.inherits(TimeoutError, Error);\r\n\r\nmodule.exports.ArgumentError = ArgumentError;\r\nmodule.exports.ArgumentNullError = ArgumentNullError;\r\nmodule.exports.StorageError = StorageError;\r\nmodule.exports.TimeoutError = TimeoutError;\r\nmodule.exports.captureStackTrace = captureStackTrace;\r\n},{\"underscore\":111,\"util\":117}],6:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n'use strict';\r\n\r\nvar RetryPolicyFilter = require('./retrypolicyfilter');\r\n/**\r\n* Creates a new 'ExponentialRetryPolicyFilter' instance.\r\n* @class\r\n* The ExponentialRetryPolicyFilter allows you to retry operations,\r\n* using an exponential back-off interval between retries.\r\n* To apply a filter to service operations, use `withFilter`\r\n* and specify the filter to be used when creating a service.\r\n* @constructor\r\n* @param {number} [retryCount=3]            The client retry count.\r\n* @param {number} [retryInterval=30000]     The client retry interval, in milliseconds.\r\n* @param {number} [minRetryInterval=3000]   The minimum retry interval, in milliseconds.\r\n* @param {number} [maxRetryInterval=90000]  The maximum retry interval, in milliseconds.\r\n* \r\n* @example\r\n* var azure = require('azure-storage');\r\n* var retryOperations = new azure.ExponentialRetryPolicyFilter();\r\n* var blobService = azure.createBlobService().withFilter(retryOperations)\r\n*/\r\nfunction ExponentialRetryPolicyFilter(retryCount, retryInterval, minRetryInterval, maxRetryInterval) {\r\n  this.retryCount = retryCount ? retryCount : ExponentialRetryPolicyFilter.DEFAULT_CLIENT_RETRY_COUNT;\r\n  this.retryInterval = retryInterval ? retryInterval : ExponentialRetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL;\r\n  this.minRetryInterval = minRetryInterval ? minRetryInterval : ExponentialRetryPolicyFilter.DEFAULT_CLIENT_MIN_RETRY_INTERVAL;\r\n  this.maxRetryInterval = maxRetryInterval ? maxRetryInterval : ExponentialRetryPolicyFilter.DEFAULT_CLIENT_MAX_RETRY_INTERVAL;\r\n}\r\n\r\n/**\r\n* Represents the default client retry interval, in milliseconds.\r\n*/\r\nExponentialRetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL = 1000 * 30;\r\n\r\n/**\r\n* Represents the default client retry count.\r\n*/\r\nExponentialRetryPolicyFilter.DEFAULT_CLIENT_RETRY_COUNT = 3;\r\n\r\n/**\r\n* Represents the default maximum retry interval, in milliseconds.\r\n*/\r\nExponentialRetryPolicyFilter.DEFAULT_CLIENT_MAX_RETRY_INTERVAL = 1000 * 90;\r\n\r\n/**\r\n* Represents the default minimum retry interval, in milliseconds.\r\n*/\r\nExponentialRetryPolicyFilter.DEFAULT_CLIENT_MIN_RETRY_INTERVAL = 1000 * 3;\r\n\r\n/**\r\n * Determines if the operation should be retried and how long to wait until the next retry.\r\n *\r\n * @param {number} statusCode The HTTP status code.\r\n * @param {object} requestOptions  The request options.\r\n * @return {retryInfo} Information about whether the operation qualifies for a retry and the retryInterval.\r\n */\r\nExponentialRetryPolicyFilter.prototype.shouldRetry = function (statusCode, requestOptions) {\r\n  var retryData = (requestOptions && requestOptions.retryContext) ? requestOptions.retryContext : {};\r\n\r\n  // Adjust retry interval\r\n  var incrementDelta = Math.pow(2, retryData.retryCount) - 1;\r\n  var boundedRandDelta = this.retryInterval * 0.8 + Math.floor(Math.random() * (this.retryInterval * 1.2 - this.retryInterval * 0.8));\r\n  incrementDelta *= boundedRandDelta;\r\n      \r\n  retryData.retryInterval = Math.min(this.minRetryInterval + incrementDelta, this.maxRetryInterval);\r\n\r\n  return RetryPolicyFilter._shouldRetryOnError(statusCode, requestOptions);\r\n};\r\n\r\n/**\r\n* Handles an operation with an exponential retry policy.\r\n*\r\n* @param {Object}   requestOptions The original request options.\r\n* @param {function} next           The next filter to be handled.\r\n*/\r\nExponentialRetryPolicyFilter.prototype.handle = function (requestOptions, next) {\r\n  RetryPolicyFilter._handle(this, requestOptions, next);\r\n};\r\n\r\nmodule.exports = ExponentialRetryPolicyFilter;\r\n\r\n},{\"./retrypolicyfilter\":8}],7:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n//\r\n'use strict';\r\n \r\nvar RetryPolicyFilter = require('./retrypolicyfilter');\r\n\r\n/**\r\n* Creates a new LinearRetryPolicyFilter instance.\r\n* @class\r\n* The LinearRetryPolicyFilter allows you to retry operations,\r\n* using an linear back-off interval between retries.\r\n* To apply a filter to service operations, use `withFilter`\r\n* and specify the filter to be used when creating a service.\r\n* @constructor\r\n* @param {number} [retryCount=3]            The client retry count.\r\n* @param {number} [retryInterval=30000]     The client retry interval, in milliseconds.\r\n*\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var retryOperations = new azure.LinearRetryPolicyFilter();\r\n* var blobService = azure.createBlobService().withFilter(retryOperations)\r\n*/\r\nfunction LinearRetryPolicyFilter(retryCount, retryInterval) {\r\n  this.retryCount = retryCount ? retryCount : LinearRetryPolicyFilter.DEFAULT_CLIENT_RETRY_COUNT;\r\n  this.retryInterval = retryInterval ? retryInterval : LinearRetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL;\r\n}\r\n\r\n/**\r\n* Represents the default client retry interval, in milliseconds.\r\n*/\r\nLinearRetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL = 1000 * 30;\r\n\r\n/**\r\n* Represents the default client retry count.\r\n*/\r\nLinearRetryPolicyFilter.DEFAULT_CLIENT_RETRY_COUNT = 3;\r\n\r\n/**\r\n* Determines if the operation should be retried and how long to wait until the next retry.\r\n*\r\n * @param {number} statusCode       The HTTP status code.\r\n * @param {object} requestOptions   The request options.\r\n * @return {retryInfo} Information about whether the operation qualifies for a retry and the retryInterval.\r\n*/\r\nLinearRetryPolicyFilter.prototype.shouldRetry = function (statusCode, requestOptions) {\r\n  var retryData = (requestOptions && requestOptions.retryContext) ? requestOptions.retryContext : {};\r\n  retryData.retryInterval = this.retryInterval;\r\n\r\n  return RetryPolicyFilter._shouldRetryOnError(statusCode, requestOptions);\r\n};\r\n\r\n/**\r\n* Handles an operation with a linear retry policy.\r\n*\r\n* @param {Object}   requestOptions The original request options.\r\n* @param {function} next           The next filter to be handled.\r\n*/\r\nLinearRetryPolicyFilter.prototype.handle = function (requestOptions, next) {\r\n  RetryPolicyFilter._handle(this, requestOptions, next);\r\n};\r\n\r\nmodule.exports = LinearRetryPolicyFilter;\r\n\r\n},{\"./retrypolicyfilter\":8}],8:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar azureutil = require('../util/util');\r\nvar Constants = require('../util/constants');\r\nvar StorageUtilities = require('../util/storageutilities');\r\nvar extend = require('util')._extend;\r\n\r\n/**\r\n* Creates a new RetryPolicyFilter instance.\r\n* @class\r\n* The RetryPolicyFilter allows you to retry operations,\r\n* using a custom retry policy. Users are responsible to \r\n* define the shouldRetry method.\r\n* To apply a filter to service operations, use `withFilter`\r\n* and specify the filter to be used when creating a service.\r\n* @constructor\r\n* @param {number} [retryCount=30000]        The client retry count.\r\n* @param {number} [retryInterval=3]     The client retry interval, in milliseconds.\r\n*\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var retryPolicy = new azure.RetryPolicyFilter();\r\n* retryPolicy.retryCount = 3;\r\n* retryPolicy.retryInterval = 3000;\r\n* retryPolicy.shouldRetry = function(statusCode, retryContext) {\r\n*\r\n* };\r\n* var blobService = azure.createBlobService().withFilter(retryPolicy);\r\n*/\r\nfunction RetryPolicyFilter(retryCount, retryInterval) {\r\n  this.retryCount = retryCount ? retryCount : RetryPolicyFilter.DEFAULT_CLIENT_RETRY_COUNT;\r\n  this.retryInterval = retryInterval ? retryInterval : RetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL;\r\n}\r\n\r\n/**\r\n* Represents the default client retry interval, in milliseconds.\r\n*/\r\nRetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL = 1000 * 30;\r\n\r\n/**\r\n* Represents the default client retry count.\r\n*/\r\nRetryPolicyFilter.DEFAULT_CLIENT_RETRY_COUNT = 3;\r\n\r\n/**\r\n* Handles an operation with a retry policy.\r\n*\r\n* @param {Object}   requestOptions The original request options.\r\n* @param {function} next           The next filter to be handled.\r\n*/\r\nRetryPolicyFilter.prototype.handle = function (requestOptions, next) {\r\n  RetryPolicyFilter._handle(this, requestOptions, next);\r\n};\r\n\r\n/**\r\n* Handles an operation with a retry policy.\r\n*\r\n* @param {Object}   requestOptions The original request options.\r\n* @param {function} next           The next filter to be handled.\r\n*/\r\nRetryPolicyFilter._handle = function (self, requestOptions, next) {\r\n\r\n  var retryRequestOptions = extend({}, requestOptions);\r\n  retryRequestOptions.retryInterval = 0;\r\n\r\n  // Initialize retryContext because that will be passed to the shouldRetry method which users will implement \r\n  retryRequestOptions.retryContext = {\r\n    retryCount: 0,\r\n    error: null,\r\n    retryInterval: retryRequestOptions.retryInterval,\r\n    locationMode: retryRequestOptions.locationMode,\r\n    currentLocation: retryRequestOptions.currentLocation\r\n  };\r\n\r\n  var lastPrimaryAttempt;\r\n  var lastSecondaryAttempt;\r\n  var operation = function () {\r\n    // retry policies dont really do anything to the request options\r\n    // so move on to next\r\n    if (next) {\r\n      next(retryRequestOptions, function (returnObject, finalCallback, nextPostCallback) {\r\n        // Previous operation ended so update the retry data\r\n        if (returnObject.error) {\r\n          if (retryRequestOptions.retryContext.error) {\r\n            returnObject.error.innerError = retryRequestOptions.retryContext.error;\r\n          }\r\n\r\n          retryRequestOptions.retryContext.error = returnObject.error;\r\n        }\r\n\r\n        // If a request sent to the secondary location fails with 404 (Not Found), it is possible\r\n        // that the resource replication is not finished yet. So, in case of 404 only in the secondary\r\n        // location, the failure should still be retryable.\r\n        var secondaryNotFound = (retryRequestOptions.currentLocation === Constants.StorageLocation.SECONDARY) && ((returnObject.response && returnObject.response.statusCode === 404) || (returnObject.error && returnObject.error.code === 'ENOTFOUND'));\r\n \r\n        var notExceedMaxRetryCount = retryRequestOptions.retryContext.retryCount ? retryRequestOptions.retryContext.retryCount <= self.retryCount : true;\r\n        var retryInfo = self.shouldRetry(secondaryNotFound ? 500 : (azureutil.objectIsNull(returnObject.response) ? 306 : returnObject.response.statusCode), retryRequestOptions);\r\n        retryRequestOptions.retryContext.retryCount++;\r\n\r\n        if (retryInfo.ignore) {\r\n          returnObject.error = null;\r\n        }\r\n\r\n        // If the custom retry logic(shouldRetry) does not return a targetLocation, calculate based on the previous location and locationMode.\r\n        if(azureutil.objectIsNull(retryInfo.targetLocation)) {\r\n          retryInfo.targetLocation = azureutil.getNextLocation(retryRequestOptions.currentLocation, retryRequestOptions.locationMode);\r\n        }\r\n\r\n        // If the custom retry logic(shouldRetry) does not return a retryInterval, try to set it to the value on the instance if it is available. Otherwise, the default(30000) will be used.\r\n        if(azureutil.objectIsNull(retryInfo.retryInterval)) {\r\n          retryInfo.retryInterval = self.retryInterval;\r\n        }\r\n        \r\n        // Only in the case of success from server but client side failure like MD5 or length mismatch, returnObject.retryable has a value(we explicitly set it to false). \r\n        // In this case, we should not retry the request.\r\n        // If the output stream already get sent to server and get error back, \r\n        // we should NOT retry within the SDK as the stream data is not valid anymore if we retry directly.\r\n        if (\r\n            !returnObject.outputStreamSent && returnObject.error && azureutil.objectIsNull(returnObject.retryable) && notExceedMaxRetryCount &&\r\n            (\r\n              (!azureutil.objectIsNull(returnObject.response) && retryInfo.retryable) || \r\n              (\r\n                returnObject.error.code === 'ECONNREFUSED' ||\r\n                returnObject.error.code === 'ETIMEDOUT' ||\r\n                returnObject.error.code === 'ESOCKETTIMEDOUT' || \r\n                returnObject.error.code === 'ECONNRESET' || \r\n                returnObject.error.code === 'EAI_AGAIN' ||\r\n                returnObject.error.message === 'XHR error' // stream-http XHR network error message in browsers\r\n              )\r\n            )\r\n          ) {\r\n          if (retryRequestOptions.currentLocation === Constants.StorageLocation.PRIMARY) {\r\n            lastPrimaryAttempt = returnObject.operationEndTime;\r\n          } else {\r\n            lastSecondaryAttempt = returnObject.operationEndTime;\r\n          }\r\n\r\n          // Moreover, in case of 404 when trying the secondary location, instead of retrying on the\r\n          // secondary, further requests should be sent only to the primary location, as it most\r\n          // probably has a higher chance of succeeding there.\r\n          if (secondaryNotFound && (retryRequestOptions.locationMode !== StorageUtilities.LocationMode.SECONDARY_ONLY))\r\n          {\r\n            retryInfo.locationMode = StorageUtilities.LocationMode.PRIMARY_ONLY;\r\n            retryInfo.targetLocation = Constants.StorageLocation.PRIMARY;\r\n          }\r\n\r\n          // Now is the time to calculate the exact retry interval. ShouldRetry call above already\r\n          // returned back how long two requests to the same location should be apart from each other.\r\n          // However, for the reasons explained above, the time spent between the last attempt to\r\n          // the target location and current time must be subtracted from the total retry interval\r\n          // that ShouldRetry returned.\r\n          var lastAttemptTime = retryInfo.targetLocation === Constants.StorageLocation.PRIMARY ? lastPrimaryAttempt : lastSecondaryAttempt;\r\n          if (!azureutil.objectIsNull(lastAttemptTime)) {\r\n            var sinceLastAttempt = new Date().getTime() - lastAttemptTime.getTime();\r\n            if (sinceLastAttempt < 0) {\r\n              sinceLastAttempt = 0;\r\n            }\r\n\r\n            retryRequestOptions.retryInterval = retryInfo.retryInterval - sinceLastAttempt;\r\n          }\r\n          else {\r\n            retryRequestOptions.retryInterval = 0;\r\n          }\r\n\r\n          if(!azureutil.objectIsNull(retryInfo.locationMode)) {\r\n            retryRequestOptions.locationMode = retryInfo.locationMode;\r\n          }\r\n\r\n          retryRequestOptions.currentLocation = retryInfo.targetLocation;\r\n          operation();\r\n        } else {\r\n          if (nextPostCallback) {\r\n            nextPostCallback(returnObject);\r\n          } else if (finalCallback) {\r\n            finalCallback(returnObject);\r\n          }\r\n        }\r\n      });\r\n    }\r\n  };\r\n\r\n  operation();\r\n};\r\n\r\nRetryPolicyFilter._shouldRetryOnError = function (statusCode, requestOptions) {\r\n  var retryInfo = (requestOptions && requestOptions.retryContext) ? requestOptions.retryContext : {};\r\n\r\n  // Non-timeout Cases\r\n  if (statusCode >= 300 && statusCode != 408) {\r\n    // Always no retry on \"not implemented\" and \"version not supported\"\r\n    if (statusCode == 501 || statusCode == 505) {\r\n      retryInfo.retryable = false;\r\n      return retryInfo;\r\n    }\r\n    \r\n    // When absorbConditionalErrorsOnRetry is set (for append blob)\r\n    if (requestOptions && requestOptions.absorbConditionalErrorsOnRetry) {\r\n      if (statusCode == 412) {\r\n        // When appending block with precondition failure and their was a server error before, we ignore the error.\r\n        if (retryInfo.lastServerError) {\r\n          retryInfo.ignore = true;\r\n          retryInfo.retryable = true;\r\n        } else {\r\n          retryInfo.retryable = false;\r\n        }\r\n      } else if (statusCode >= 500 && statusCode < 600) {\r\n        // Retry on the server error\r\n        retryInfo.retryable = true;\r\n        retryInfo.lastServerError = true;\r\n      }\r\n    } else if (statusCode < 500) {\r\n      // No retry on the client error\r\n      retryInfo.retryable = false;\r\n    }\r\n  }\r\n\r\n  return retryInfo;\r\n};\r\n\r\nmodule.exports = RetryPolicyFilter;\r\n\r\n},{\"../util/constants\":32,\"../util/storageutilities\":37,\"../util/util\":38,\"util\":117}],9:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar azureutil = require('../util/util');\r\nvar SR = require('../util/sr');\r\nvar Constants = require('../util/constants');\r\nvar errors = require('../errors/errors');\r\nvar ArgumentError = errors.ArgumentError;\r\nvar HeaderConstants = Constants.HeaderConstants;\r\nvar HttpConstants = Constants.HttpConstants;\r\nvar HttpConstants = Constants.HttpConstants;\r\nvar HttpVerbs = HttpConstants.HttpVerbs;\r\n\r\nfunction encodeSpecialCharacters(path) {\r\n  return path.replace(/'/g, '%27');\r\n}\r\n\r\n/**\r\n* Creates a new WebResource object.\r\n*\r\n* This class provides an abstraction over a REST call by being library / implementation agnostic and wrapping the necessary\r\n* properties to initiate a request.\r\n*\r\n* @constructor\r\n*/\r\nfunction WebResource() {\r\n  this.rawResponse = false;\r\n  this.queryString = {};\r\n}\r\n\r\n/**\r\n* Creates a new put request web resource.\r\n*\r\n* @param {string} path The path for the put operation.\r\n* @return {WebResource} A new webresource with a put operation for the given path.\r\n*/\r\nWebResource.put = function (path) {\r\n  var webResource = new WebResource();\r\n  webResource.path = path ? encodeSpecialCharacters(path) : null;\r\n  webResource.method = HttpConstants.HttpVerbs.PUT;\r\n  return webResource;\r\n};\r\n\r\n/**\r\n* Creates a new get request web resource.\r\n*\r\n* @param {string} path The path for the get operation.\r\n* @return {WebResource} A new webresource with a get operation for the given path.\r\n*/\r\nWebResource.get = function (path) {\r\n  var webResource = new WebResource();\r\n  webResource.path = path ? encodeSpecialCharacters(path) : null;\r\n  webResource.method = HttpConstants.HttpVerbs.GET;\r\n  return webResource;\r\n};\r\n\r\n/**\r\n* Creates a new head request web resource.\r\n*\r\n* @param {string} path The path for the head operation.\r\n* @return {WebResource} A new webresource with a head operation for the given path.\r\n*/\r\nWebResource.head = function (path) {\r\n  var webResource = new WebResource();\r\n  webResource.path = path ? encodeSpecialCharacters(path) : null;\r\n  webResource.method = HttpConstants.HttpVerbs.HEAD;\r\n  return webResource;\r\n};\r\n\r\n/**\r\n* Creates a new delete request web resource.\r\n*\r\n* @param {string} path The path for the delete operation.\r\n* @return {WebResource} A new webresource with a delete operation for the given path.\r\n*/\r\nWebResource.del = function (path) {\r\n  var webResource = new WebResource();\r\n  webResource.path = path ? encodeSpecialCharacters(path) : null;\r\n  webResource.method = HttpConstants.HttpVerbs.DELETE;\r\n  return webResource;\r\n};\r\n\r\n/**\r\n* Creates a new post request web resource.\r\n*\r\n* @param {string} path The path for the post operation.\r\n* @return {WebResource} A new webresource with a post operation for the given path.\r\n*/\r\nWebResource.post = function (path) {\r\n  var webResource = new WebResource();\r\n  webResource.path = path ? encodeSpecialCharacters(path) : null;\r\n  webResource.method = HttpConstants.HttpVerbs.POST;\r\n  return webResource;\r\n};\r\n\r\n/**\r\n* Creates a new merge request web resource.\r\n*\r\n* @param {string} path The path for the merge operation.\r\n* @return {WebResource} A new webresource with a merge operation for the given path.\r\n*/\r\nWebResource.merge = function (path) {\r\n  var webResource = new WebResource();\r\n  webResource.path = path ? encodeSpecialCharacters(path) : null;\r\n  webResource.method = HttpConstants.HttpVerbs.MERGE;\r\n  return webResource;\r\n};\r\n\r\n/**\r\n* Specifies a custom property in the web resource.\r\n*\r\n* @param {string} name  The property name.\r\n* @param {string} value The property value.\r\n* @return {WebResource} The webresource.\r\n*/\r\nWebResource.prototype.withProperty = function (name, value) {\r\n  if (!this.properties) {\r\n    this.properties = {};\r\n  }\r\n\r\n  this.properties[name] = value;\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n* Specifies if the response should be parsed or not.\r\n*\r\n* @param {bool} rawResponse true if the response should not be parsed; false otherwise.\r\n* @return {WebResource} The webresource.\r\n*/\r\nWebResource.prototype.withRawResponse = function (rawResponse) {\r\n  this.rawResponse = rawResponse;\r\n\r\n  if (azureutil.objectIsNull(this.rawResponse)) {\r\n    this.rawResponse = true;\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\nWebResource.prototype.withHeadersOnly = function (headersOnly) {\r\n  if (headersOnly !== undefined) {\r\n    this.headersOnly = headersOnly;\r\n  } else {\r\n    this.headersOnly = true;\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n* Adds an optional query string parameter.\r\n*\r\n* @param {Object} name          The name of the query string parameter.\r\n* @param {Object} value         The value of the query string parameter.\r\n* @param {Object} defaultValue  The default value for the query string parameter to be used if no value is passed.\r\n* @return {Object} The web resource.\r\n*/\r\nWebResource.prototype.withQueryOption = function (name, value, defaultValue) {\r\n  if (!azureutil.objectIsNull(value)) {\r\n    this.queryString[name] = value;\r\n  } else if (defaultValue) {\r\n    this.queryString[name] = defaultValue;\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n* Adds optional query string parameters.\r\n*\r\n* Additional arguments will be the needles to search in the haystack. \r\n*\r\n* @param {Object} object  The haystack of query string parameters.\r\n* @return {Object} The web resource.\r\n*/\r\nWebResource.prototype.withQueryOptions = function (object) {\r\n  if (object) {\r\n    for (var i = 1; i < arguments.length; i++) {\r\n      if (object[arguments[i]]) {\r\n        this.withQueryOption(arguments[i], object[arguments[i]]);\r\n      }\r\n    }\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n* Adds an optional header parameter.\r\n*\r\n* @param {Object} name  The name of the header parameter.\r\n* @param {Object} value The value of the header parameter.\r\n* @return {Object} The web resource.\r\n*/\r\nWebResource.prototype.withHeader = function (name, value) {\r\n  if (!this.headers) {\r\n    this.headers = {};\r\n  }\r\n\r\n  if (!azureutil.IsNullOrEmptyOrUndefinedOrWhiteSpace(value)) {\r\n    value = value instanceof Date ? value.toUTCString() : value;\r\n    \r\n    this.headers[name] = value;\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n* Adds an optional body.\r\n*\r\n* @param {Object} body  The request body.\r\n* @return {Object} The web resource.\r\n*/\r\nWebResource.prototype.withBody = function (body) {\r\n  this.body = body;\r\n  return this;\r\n};\r\n\r\n/**\r\n* Adds optional query string parameters.\r\n*\r\n* Additional arguments will be the needles to search in the haystack. \r\n*\r\n* @param {Object} object  The haystack of headers.\r\n* @return {Object} The web resource.\r\n*/\r\nWebResource.prototype.withHeaders = function (object) {\r\n  if (object) {\r\n    for (var i = 1; i < arguments.length; i++) {\r\n      if (object[arguments[i]]) {\r\n        this.withHeader(arguments[i], object[arguments[i]]);\r\n      }\r\n    }\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\nWebResource.prototype.addOptionalMetadataHeaders = function (metadata) {\r\n  var self = this;\r\n\r\n  if (metadata) {\r\n    Object.keys(metadata).forEach(function (metadataKey) {\r\n      if (azureutil.IsNullOrEmptyOrUndefinedOrWhiteSpace(metadataKey)) {\r\n        throw new ArgumentError('metadata', SR.METADATA_KEY_INVALID);\r\n      }\r\n\r\n      var value = metadata[metadataKey];\r\n      if (azureutil.IsNullOrEmptyOrUndefinedOrWhiteSpace(value)) {\r\n        throw new ArgumentError('metadata', SR.METADATA_VALUE_INVALID);\r\n      }\r\n      \r\n      var metadataHeaderName = HeaderConstants.PREFIX_FOR_STORAGE_METADATA + metadataKey;\r\n      var existingMetadataHeaderName = '';\r\n      var headers = self.headers ? self.headers : {};\r\n      if (Object.keys(headers).some(function (headerName) {\r\n        existingMetadataHeaderName = headerName;\r\n        return headerName.toString().toLowerCase() === metadataHeaderName.toLowerCase();\r\n      })) {        \r\n        self.withHeader(existingMetadataHeaderName, self.headers[existingMetadataHeaderName] + ',' + value);\r\n      } else {\r\n        self.withHeader(metadataHeaderName, value);\r\n      }\r\n    });\r\n  }\r\n\r\n  return this;\r\n};\r\n\r\n/**\r\n* Determines if a status code corresponds to a valid response according to the WebResource's expected status codes.\r\n*\r\n* @param {int} statusCode The response status code.\r\n* @return true if the response is valid; false otherwise.\r\n*/\r\nWebResource.validResponse = function (statusCode) {\r\n  if (statusCode >= 200 && statusCode < 300) {\r\n    return true;\r\n  }\r\n\r\n  return false;\r\n};\r\n\r\nfunction isMethodWithBody(verb) {\r\n  return verb === HttpVerbs.PUT ||\r\n    verb === HttpVerbs.POST ||\r\n    verb === HttpVerbs.MERGE;\r\n}\r\n\r\n/**\r\n* Hook up the given input stream to a destination output stream if the WebResource method\r\n* requires a request body and a body is not already set.\r\n*\r\n* @param {Stream} inputStream the stream to pipe from\r\n* @param {Stream} outputStream the stream to pipe to\r\n*\r\n* @return destStream\r\n*/\r\nWebResource.prototype.pipeInput = function(inputStream, destStream) {\r\n  if (isMethodWithBody(this.method) && !this.hasOwnProperty('body')) {\r\n    inputStream.pipe(destStream);\r\n  }\r\n\r\n  return destStream;\r\n};\r\n\r\nmodule.exports = WebResource;\r\n},{\"../errors/errors\":5,\"../util/constants\":32,\"../util/sr\":36,\"../util/util\":38}],10:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n//\r\n \r\nvar MD5 = require('md5.js');\r\n\r\nvar Md5Wrapper = function () {\r\n};\r\n\r\nMd5Wrapper.prototype.createMd5Hash = function() {\r\n    return new MD5();\r\n};\r\n\r\nmodule.exports = Md5Wrapper;\r\n},{\"md5.js\":69}],11:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar Constants = require('../util/constants');\r\nvar HeaderConstants = Constants.HeaderConstants;\r\n\r\nexports.parse = function (headers) {\r\n  var accountPropertiesResult = {};\r\n\r\n  if (headers[HeaderConstants.SKU_NAME]) {\r\n    accountPropertiesResult.SkuName = headers[HeaderConstants.SKU_NAME];\r\n  }\r\n\r\n  if (headers[HeaderConstants.ACCOUNT_KIND]) {\r\n    accountPropertiesResult.AccountKind = headers[HeaderConstants.ACCOUNT_KIND];\r\n  }\r\n\r\n  return accountPropertiesResult;\r\n};\r\n},{\"../util/constants\":32}],12:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar _ = require('underscore');\r\nvar xmlbuilder = require('xmlbuilder');\r\n\r\nvar azureutil = require('../util/util');\r\nvar ISO8061Date = require('../util/iso8061date');\r\nvar Constants = require('../util/constants');\r\nvar AclConstants = Constants.AclConstants;\r\n\r\nexports = module.exports;\r\n\r\n/**\r\n* Builds an XML representation for container acl permissions.\r\n*\r\n* @param  {Object.<string, AccessPolicy>}  entity The signed identifiers.\r\n* @return {string} The XML container acl permissions.\r\n*/\r\nexports.serialize = function (signedIdentifiersJs) {\r\n  var doc = xmlbuilder.create(AclConstants.SIGNED_IDENTIFIERS_ELEMENT, { version: '1.0', encoding: 'utf-8' });\r\n\r\n  var keys = Object.keys(signedIdentifiersJs);\r\n  if (keys.length > 0) {\r\n    keys.forEach(function (key) {\r\n      var accessPolicy = signedIdentifiersJs[key];\r\n      doc = doc\r\n        .ele(AclConstants.SIGNED_IDENTIFIER_ELEMENT)\r\n          .ele(AclConstants.ID)\r\n            .txt(key)\r\n          .up()\r\n          .ele(AclConstants.ACCESS_POLICY);\r\n\r\n      if (accessPolicy.Start) {\r\n        var startIsoString = accessPolicy.Start;\r\n        if (!_.isDate(startIsoString)) {\r\n          startIsoString = new Date(startIsoString);\r\n        }\r\n\r\n        // Convert to expected ISO 8061 date format\r\n        startIsoString = ISO8061Date.format(startIsoString);\r\n\r\n        doc = doc\r\n            .ele(AclConstants.START)\r\n              .txt(startIsoString)\r\n            .up();\r\n      }\r\n\r\n      if (accessPolicy.Expiry) {\r\n        var expiryIsoString = accessPolicy.Expiry;\r\n        if (!_.isDate(expiryIsoString)) {\r\n          expiryIsoString = new Date(expiryIsoString);\r\n        }\r\n\r\n        // Convert to expected ISO 8061 date format\r\n        expiryIsoString = ISO8061Date.format(expiryIsoString);\r\n\r\n        doc = doc\r\n            .ele(AclConstants.EXPIRY)\r\n              .txt(expiryIsoString)\r\n            .up();\r\n      }\r\n\r\n      if (accessPolicy.Permissions) {\r\n        doc = doc\r\n            .ele(AclConstants.PERMISSION)\r\n              .txt(accessPolicy.Permissions)\r\n            .up();\r\n      }\r\n\r\n      doc = doc.up().up();\r\n    });\r\n  }\r\n  return doc.doc().toString();\r\n};\r\n\r\nexports.parse = function (signedIdentifiersXml) {\r\n  var signedIdentifiers = {};\r\n\r\n  signedIdentifiersXml = azureutil.tryGetValueChain(signedIdentifiersXml, [ 'SignedIdentifiers', 'SignedIdentifier' ]);\r\n  if (signedIdentifiersXml) {\r\n    if (!_.isArray(signedIdentifiersXml)) {\r\n      signedIdentifiersXml = [ signedIdentifiersXml ];\r\n    }\r\n\r\n    signedIdentifiersXml.forEach(function (signedIdentifier) {\r\n      var accessPolicy = {};\r\n      if (signedIdentifier.AccessPolicy) {\r\n        if (signedIdentifier.AccessPolicy.Start) {\r\n          accessPolicy.Start = ISO8061Date.parse(signedIdentifier.AccessPolicy.Start);\r\n        }\r\n\r\n        if (signedIdentifier.AccessPolicy.Expiry) {\r\n          accessPolicy.Expiry = ISO8061Date.parse(signedIdentifier.AccessPolicy.Expiry);\r\n        }\r\n\r\n        if (signedIdentifier.AccessPolicy.Permission) {\r\n          accessPolicy.Permissions = signedIdentifier.AccessPolicy.Permission;\r\n        }\r\n      }\r\n\r\n      signedIdentifiers[signedIdentifier.Id] = accessPolicy;\r\n    });\r\n  }\r\n\r\n  return signedIdentifiers;\r\n};\r\n},{\"../util/constants\":32,\"../util/iso8061date\":34,\"../util/util\":38,\"underscore\":111,\"xmlbuilder\":216}],13:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar _ = require('underscore');\r\nvar xmlbuilder = require('xmlbuilder');\r\n\r\nvar Constants = require('../util/constants');\r\nvar ServicePropertiesConstants = Constants.ServicePropertiesConstants;\r\n\r\nexports = module.exports;\r\n\r\nfunction serializeRetentionPolicy(doc, policy) {\r\n  if (policy !== null) {\r\n    if (typeof policy === 'undefined') {\r\n      policy = {};\r\n    }\r\n\r\n    doc = doc.ele(ServicePropertiesConstants.RETENTION_POLICY_ELEMENT);\r\n    if (typeof policy.Enabled !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n        .txt(policy.Enabled)\r\n        .up();\r\n    } else {\r\n      doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n        .txt(false)\r\n        .up();\r\n    }\r\n\r\n    if (typeof policy.Days !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.DAYS_ELEMENT)\r\n        .txt(policy.Days)\r\n        .up();\r\n    } else if (policy.Enabled === true) {\r\n      doc = doc.ele(ServicePropertiesConstants.DAYS_ELEMENT)\r\n        .txt(1)\r\n        .up();\r\n    }\r\n\r\n    doc = doc.up();\r\n  }\r\n}\r\n\r\nfunction serializeDeleteRetentionPolicy(doc, policy) {\r\n  if (policy !== null) {\r\n    if (typeof policy === 'undefined') {\r\n      policy = {};\r\n    }\r\n\r\n    if (typeof policy.Enabled !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n        .txt(policy.Enabled)\r\n        .up();\r\n    } else {\r\n      doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n        .txt(false)\r\n        .up();\r\n    }\r\n\r\n    if (typeof policy.Days !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.DAYS_ELEMENT)\r\n        .txt(policy.Days)\r\n        .up();\r\n    } else if (policy.Enabled === true) {\r\n      doc = doc.ele(ServicePropertiesConstants.DAYS_ELEMENT)\r\n        .txt(1)\r\n        .up();\r\n    }\r\n\r\n    doc = doc.up();\r\n  }\r\n}\r\n\r\nfunction serializeStaticWebsite(doc, staticWebsite) {\r\n  if (staticWebsite !== null) {\r\n    if (typeof staticWebsite === 'undefined') {\r\n      staticWebsite = {};\r\n    }\r\n\r\n    if (typeof staticWebsite.Enabled !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n        .txt(staticWebsite.Enabled)\r\n        .up();\r\n    } else {\r\n      doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n        .txt(false)\r\n        .up();\r\n    }\r\n\r\n    if (typeof staticWebsite.IndexDocument !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.DEFAULT_INDEX_DOCUMENT_ELEMENT)\r\n        .txt(staticWebsite.IndexDocument)\r\n        .up();\r\n    }\r\n\r\n    if (typeof staticWebsite.ErrorDocument404Path !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.DEFAULT_ERROR_DOCUMENT_404_PATH_ELEMENT)\r\n        .txt(staticWebsite.ErrorDocument404Path)\r\n        .up();\r\n    }\r\n\r\n    doc = doc.up();\r\n  }\r\n}\r\n\r\nfunction serializeLogging(doc, logging) {\r\n  if (typeof logging.Version !== 'undefined') {\r\n    doc = doc.ele(ServicePropertiesConstants.VERSION_ELEMENT)\r\n      .txt(logging.Version)\r\n      .up();\r\n  } else {\r\n    doc = doc.ele(ServicePropertiesConstants.VERSION_ELEMENT)\r\n      .txt(ServicePropertiesConstants.DEFAULT_ANALYTICS_VERSION)\r\n      .up();\r\n  }\r\n\r\n  if (typeof logging.Delete !== 'undefined') {\r\n    doc = doc.ele(ServicePropertiesConstants.DELETE_ELEMENT)\r\n      .txt(logging.Delete)\r\n      .up();\r\n  } else {\r\n    doc = doc.ele(ServicePropertiesConstants.DELETE_ELEMENT)\r\n      .txt(false)\r\n      .up();\r\n  }\r\n\r\n  if (typeof logging.Read !== 'undefined') {\r\n    doc = doc.ele(ServicePropertiesConstants.READ_ELEMENT)\r\n      .txt(logging.Read)\r\n      .up();\r\n  } else {\r\n    doc = doc.ele(ServicePropertiesConstants.READ_ELEMENT)\r\n      .txt(false)\r\n      .up();\r\n  }\r\n\r\n  if (typeof logging.Write !== 'undefined') {\r\n    doc = doc.ele(ServicePropertiesConstants.WRITE_ELEMENT)\r\n      .txt(logging.Write)\r\n      .up();\r\n  } else {\r\n    doc = doc.ele(ServicePropertiesConstants.WRITE_ELEMENT)\r\n      .txt(false)\r\n      .up();\r\n  }\r\n\r\n  serializeRetentionPolicy(doc, logging.RetentionPolicy);\r\n\r\n  doc = doc.up();\r\n}\r\n\r\nfunction serializeMetrics(doc, metrics) {\r\n  if (typeof metrics.Version !== 'undefined') {\r\n    doc = doc.ele(ServicePropertiesConstants.VERSION_ELEMENT)\r\n      .txt(metrics.Version)\r\n      .up();\r\n  } else {\r\n    doc = doc.ele(ServicePropertiesConstants.VERSION_ELEMENT)\r\n      .txt(ServicePropertiesConstants.DEFAULT_ANALYTICS_VERSION)\r\n      .up();\r\n  }\r\n\r\n  if (typeof metrics.Enabled !== 'undefined') {\r\n    doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n      .txt(metrics.Enabled)\r\n      .up();\r\n  } else {\r\n    doc = doc.ele(ServicePropertiesConstants.ENABLED_ELEMENT)\r\n      .txt(false)\r\n      .up();\r\n  }\r\n\r\n  if (metrics.Enabled) {\r\n    if (typeof metrics.IncludeAPIs !== 'undefined') {\r\n      doc = doc.ele(ServicePropertiesConstants.INCLUDE_APIS_ELEMENT)\r\n        .txt(metrics.IncludeAPIs)\r\n        .up();\r\n    } else if (metrics.Enabled === true) {\r\n      doc = doc.ele(ServicePropertiesConstants.INCLUDE_APIS_ELEMENT)\r\n        .txt(false)\r\n        .up();\r\n    }\r\n  }\r\n  serializeRetentionPolicy(doc, metrics.RetentionPolicy);\r\n}\r\n\r\nfunction serializeCorsRules(doc, rules) {\r\n  if (typeof rules !== 'undefined' && rules !== null && _.isArray(rules)) {\r\n    rules.forEach(function (rule) {\r\n      doc = doc.ele(ServicePropertiesConstants.CORS_RULE_ELEMENT);\r\n\r\n      if (typeof rule.AllowedMethods !== 'undefined' && _.isArray(rule.AllowedMethods)) {\r\n        doc = doc.ele(ServicePropertiesConstants.ALLOWED_METHODS_ELEMENT)\r\n          .txt(rule.AllowedMethods.join(','))\r\n          .up();\r\n      }\r\n\r\n      if (typeof rule.AllowedOrigins !== 'undefined' && _.isArray(rule.AllowedOrigins)) {\r\n        doc = doc.ele(ServicePropertiesConstants.ALLOWED_ORIGINS_ELEMENT)\r\n          .txt(rule.AllowedOrigins.join(','))\r\n          .up();\r\n      }\r\n\r\n      if (typeof rule.AllowedHeaders !== 'undefined' && _.isArray(rule.AllowedHeaders)) {\r\n        doc = doc.ele(ServicePropertiesConstants.ALLOWED_HEADERS_ELEMENT)\r\n          .txt(rule.AllowedHeaders.join(','))\r\n          .up();\r\n      } else {\r\n        doc = doc.ele(ServicePropertiesConstants.ALLOWED_HEADERS_ELEMENT)\r\n          .txt('')\r\n          .up();\r\n      }\r\n\r\n      if (typeof rule.ExposedHeaders !== 'undefined' && _.isArray(rule.ExposedHeaders)) {\r\n        doc = doc.ele(ServicePropertiesConstants.EXPOSED_HEADERS_ELEMENT)\r\n          .txt(rule.ExposedHeaders.join(','))\r\n          .up();\r\n      } else {\r\n        doc = doc.ele(ServicePropertiesConstants.EXPOSED_HEADERS_ELEMENT)\r\n          .txt('')\r\n          .up();\r\n      }\r\n\r\n      if (typeof rule.MaxAgeInSeconds !== 'undefined') {\r\n        doc = doc.ele(ServicePropertiesConstants.MAX_AGE_IN_SECONDS_ELEMENT)\r\n          .txt(rule.MaxAgeInSeconds)\r\n          .up();\r\n      } else {\r\n        doc = doc.ele(ServicePropertiesConstants.MAX_AGE_IN_SECONDS_ELEMENT)\r\n          .txt('0')\r\n          .up();\r\n      }\r\n\r\n      doc = doc.up();\r\n    });\r\n  }\r\n}\r\n\r\nexports.serialize = function (servicePropertiesJs) {\r\n  var doc = xmlbuilder.create(ServicePropertiesConstants.STORAGE_SERVICE_PROPERTIES_ELEMENT, { version: '1.0', encoding: 'utf-8' });\r\n\r\n  if (servicePropertiesJs.Logging) {\r\n    doc = doc.ele(ServicePropertiesConstants.LOGGING_ELEMENT);\r\n    serializeLogging(doc, servicePropertiesJs.Logging);\r\n    doc = doc.up();\r\n  }\r\n\r\n  if (servicePropertiesJs.HourMetrics) {\r\n    doc = doc.ele(ServicePropertiesConstants.HOUR_METRICS_ELEMENT);\r\n    serializeMetrics(doc, servicePropertiesJs.HourMetrics);\r\n    doc = doc.up();\r\n  }\r\n\r\n  if (servicePropertiesJs.MinuteMetrics) {\r\n    doc = doc.ele(ServicePropertiesConstants.MINUTE_METRICS_ELEMENT);\r\n    serializeMetrics(doc, servicePropertiesJs.MinuteMetrics);\r\n    doc = doc.up();\r\n  }\r\n\r\n  if (servicePropertiesJs.Cors) {\r\n    doc = doc.ele(ServicePropertiesConstants.CORS_ELEMENT);\r\n    serializeCorsRules(doc, servicePropertiesJs.Cors.CorsRule);\r\n    doc = doc.up();\r\n  }\r\n\r\n  if (servicePropertiesJs.DefaultServiceVersion) {\r\n    doc = doc.ele(ServicePropertiesConstants.DEFAULT_SERVICE_VERSION_ELEMENT)\r\n      .txt(servicePropertiesJs.DefaultServiceVersion)\r\n      .up();\r\n  }\r\n\r\n  if (servicePropertiesJs.DeleteRetentionPolicy) {\r\n    doc = doc.ele(ServicePropertiesConstants.DEFAULT_DELETE_RETENTION_POLICY_ELEMENT);\r\n    serializeDeleteRetentionPolicy(doc, servicePropertiesJs.DeleteRetentionPolicy);\r\n    doc = doc.up();\r\n  }\r\n\r\n  if (servicePropertiesJs.StaticWebsite) {\r\n    doc = doc.ele(ServicePropertiesConstants.DEFAULT_STATIC_WEBSITE_ELEMENT);\r\n    serializeStaticWebsite(doc, servicePropertiesJs.StaticWebsite);\r\n    doc = doc.up();\r\n  }\r\n\r\n  return doc.doc().toString();\r\n};\r\n\r\nfunction parseRetentionPolicy(policyXml) {\r\n  var policy = {};\r\n\r\n  if (typeof policyXml.Enabled !== 'undefined') {\r\n    policy.Enabled = policyXml.Enabled === 'true';\r\n  }\r\n\r\n  if (typeof policyXml.Days !== 'undefined') {\r\n    policy.Days = parseInt(policyXml.Days, 10);\r\n  }\r\n\r\n  return policy;\r\n}\r\n\r\nfunction parseLogging(loggingXml) {\r\n  var logging = {};\r\n\r\n  if (typeof loggingXml.Version !== 'undefined') {\r\n    logging.Version = loggingXml.Version;\r\n  }\r\n\r\n  if (typeof loggingXml.Delete !== 'undefined') {\r\n    logging.Delete = loggingXml.Delete === 'true';\r\n  }\r\n\r\n  if (typeof loggingXml.Read !== 'undefined') {\r\n    logging.Read = loggingXml.Read === 'true';\r\n  }\r\n\r\n  if (typeof loggingXml.Write !== 'undefined') {\r\n    logging.Write = loggingXml.Write === 'true';\r\n  }\r\n\r\n  if (typeof loggingXml.RetentionPolicy !== 'undefined') {\r\n    logging.RetentionPolicy = parseRetentionPolicy(loggingXml.RetentionPolicy);\r\n  }\r\n\r\n  return logging;\r\n}\r\n\r\nfunction parseMetrics(metricsXml) {\r\n  var metrics = {};\r\n\r\n  if (typeof metricsXml.Version !== 'undefined') {\r\n    metrics.Version = metricsXml.Version;\r\n  }\r\n\r\n  if (typeof metricsXml.Enabled !== 'undefined') {\r\n    metrics.Enabled = metricsXml.Enabled === 'true';\r\n  }\r\n\r\n  if (typeof metricsXml.IncludeAPIs !== 'undefined') {\r\n    metrics.IncludeAPIs = metricsXml.IncludeAPIs === 'true';\r\n  }\r\n\r\n  if (typeof metricsXml.RetentionPolicy !== 'undefined') {\r\n    metrics.RetentionPolicy = parseRetentionPolicy(metricsXml.RetentionPolicy);\r\n  }\r\n\r\n  return metrics;\r\n}\r\n\r\nfunction parseCors(corsXml) {\r\n  var cors = {};\r\n\r\n  if (typeof corsXml.CorsRule !== 'undefined') {\r\n    var rulesXml = corsXml.CorsRule;\r\n    if (!_.isArray(rulesXml)) {\r\n      rulesXml = [rulesXml];\r\n    }\r\n\r\n    cors.CorsRule = [];\r\n    rulesXml.forEach(function (ruleXml) {\r\n      var rule = {};\r\n\r\n      if (typeof ruleXml.AllowedMethods !== 'undefined') {\r\n        if (ruleXml.AllowedMethods !== '') {\r\n          rule.AllowedMethods = ruleXml.AllowedMethods.split(',');\r\n        }\r\n        else {\r\n          rule.AllowedMethods = [];\r\n        }\r\n      }\r\n\r\n      if (typeof ruleXml.AllowedOrigins !== 'undefined') {\r\n        if (ruleXml.AllowedOrigins !== '') {\r\n          rule.AllowedOrigins = ruleXml.AllowedOrigins.split(',');\r\n        }\r\n        else {\r\n          rule.AllowedOrigins = [];\r\n        }\r\n      }\r\n\r\n      if (typeof ruleXml.AllowedHeaders !== 'undefined') {\r\n        if (ruleXml.AllowedHeaders !== '') {\r\n          rule.AllowedHeaders = ruleXml.AllowedHeaders.split(',');\r\n        }\r\n        else {\r\n          rule.AllowedHeaders = [];\r\n        }\r\n      }\r\n\r\n      if (typeof ruleXml.ExposedHeaders !== 'undefined') {\r\n        if (ruleXml.ExposedHeaders !== '') {\r\n          rule.ExposedHeaders = ruleXml.ExposedHeaders.split(',');\r\n        }\r\n        else {\r\n          rule.ExposedHeaders = [];\r\n        }\r\n      }\r\n\r\n      if (typeof ruleXml.MaxAgeInSeconds !== 'undefined') {\r\n        rule.MaxAgeInSeconds = parseInt(ruleXml.MaxAgeInSeconds, 10);\r\n      }\r\n\r\n      cors.CorsRule.push(rule);\r\n    });\r\n  }\r\n\r\n  return cors;\r\n}\r\n\r\nfunction parseDeleteRetentionPolicy(deleteRetentionPolicyXml) {\r\n  var deleteRetentionPolicy = {};\r\n\r\n  if (typeof deleteRetentionPolicyXml.Enabled !== 'undefined') {\r\n    deleteRetentionPolicy.Enabled = deleteRetentionPolicyXml.Enabled === 'true';\r\n  }\r\n\r\n  if (typeof deleteRetentionPolicyXml.Days !== 'undefined') {\r\n    deleteRetentionPolicy.Days = parseInt(deleteRetentionPolicyXml.Days);\r\n  }\r\n\r\n  return deleteRetentionPolicy;\r\n}\r\n\r\nfunction parseStaticWebsite(staticWebsiteXml) {\r\n  var staticWebsite = {};\r\n\r\n  if (typeof staticWebsiteXml.Enabled !== 'undefined') {\r\n    staticWebsite.Enabled = staticWebsiteXml.Enabled === 'true';\r\n  }\r\n\r\n  if (typeof staticWebsiteXml.IndexDocument !== 'undefined') {\r\n    staticWebsite.IndexDocument = staticWebsiteXml.IndexDocument;\r\n  }\r\n\r\n  if (typeof staticWebsiteXml.ErrorDocument404Path !== 'undefined') {\r\n    staticWebsite.ErrorDocument404Path = staticWebsiteXml.ErrorDocument404Path;\r\n  }\r\n\r\n  return staticWebsite;\r\n}\r\n\r\nexports.parse = function (servicePropertiesXml) {\r\n  var serviceProperties = {};\r\n\r\n  if (typeof servicePropertiesXml.Logging !== 'undefined') {\r\n    serviceProperties.Logging = parseLogging(servicePropertiesXml.Logging);\r\n  }\r\n\r\n  if (typeof servicePropertiesXml.HourMetrics !== 'undefined') {\r\n    serviceProperties.HourMetrics = parseMetrics(servicePropertiesXml.HourMetrics);\r\n  }\r\n\r\n  if (typeof servicePropertiesXml.MinuteMetrics !== 'undefined') {\r\n    serviceProperties.MinuteMetrics = parseMetrics(servicePropertiesXml.MinuteMetrics);\r\n  }\r\n\r\n  if (typeof servicePropertiesXml.Cors !== 'undefined') {\r\n    serviceProperties.Cors = parseCors(servicePropertiesXml.Cors);\r\n  }\r\n\r\n  if (typeof servicePropertiesXml.DefaultServiceVersion !== 'undefined') {\r\n    serviceProperties.DefaultServiceVersion = servicePropertiesXml.DefaultServiceVersion;\r\n  }\r\n\r\n  if (typeof servicePropertiesXml.DeleteRetentionPolicy !== 'undefined') {\r\n    serviceProperties.DeleteRetentionPolicy = parseDeleteRetentionPolicy(servicePropertiesXml.DeleteRetentionPolicy);\r\n  }\r\n\r\n  if (typeof servicePropertiesXml.StaticWebsite !== 'undefined') {\r\n    serviceProperties.StaticWebsite = parseStaticWebsite(servicePropertiesXml.StaticWebsite);\r\n  }\r\n\r\n  return serviceProperties;\r\n};\r\n},{\"../util/constants\":32,\"underscore\":111,\"xmlbuilder\":216}],14:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\nexports = module.exports;\r\n\r\nexports.parse = function (serviceStatsXml) {\r\n  var serviceStats = {};\r\n\r\n  if (typeof serviceStatsXml.GeoReplication !== 'undefined') {   \r\n    serviceStats.GeoReplication = {};\r\n\r\n    if (typeof serviceStatsXml.GeoReplication.Status !== 'undefined') {\r\n      serviceStats.GeoReplication.Status = serviceStatsXml.GeoReplication.Status;\r\n    }\r\n\r\n    if (typeof serviceStatsXml.GeoReplication.LastSyncTime !== 'undefined' && serviceStatsXml.GeoReplication.LastSyncTime !== '') {\r\n      serviceStats.GeoReplication.LastSyncTime = new Date(serviceStatsXml.GeoReplication.LastSyncTime);\r\n    }\r\n  }\r\n\r\n  return serviceStats;\r\n};\r\n},{}],15:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n/**\r\n* Creates a new TokenCredential object.\r\n* @class\r\n* The TokenCredential class is used to store the access token string.\r\n* \r\n* @constructor\r\n* @param {string} token The access token, such as an OAuth access token in string type.\r\n*\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var tokenCredential = new azure.TokenCredential('myOAuthAccessToken');\r\n* var blobService = azure.createBlobServiceWithTokenCredential('https://account.blob.core.windows.net', tokenCredential);\r\n* tokenCredential.set('updatedOAuthAccessToken');\r\n*/\r\nfunction TokenCredential (token) {\r\n  this.token = token;\r\n}\r\n\r\n/**\r\n* Get current access token.\r\n*\r\n* @return {string} The current access token in string type.\r\n*/\r\nTokenCredential.prototype.get = function () {\r\n  return this.token;\r\n};\r\n\r\n/**\r\n* Renew the access token.\r\n*\r\n* @param {string} token The new access token in string.\r\n*/\r\nTokenCredential.prototype.set = function (token) {\r\n  this.token = token;\r\n};\r\n\r\nmodule.exports = TokenCredential;\r\n},{}],16:[function(require,module,exports){\r\n(function (Buffer){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n//\r\n\r\nvar azureCommon = require('../common.browser');\r\nvar Duplex = require('stream').Duplex;\r\nvar extend = require('extend');\r\nvar http = require('http');\r\nvar https = require('https');\r\nvar url = require('url');\r\nvar util = require('util');\r\n\r\n/**\r\n* Creates a new Request object.\r\n*\r\n* @constructor\r\n* @param {object} options    The options for a Request object.\r\n* @param {function} callback Callback\r\n*/\r\nfunction Request(options, callback) {\r\n    Duplex.call(this);\r\n\r\n    this._init(options, callback);\r\n    this._send();\r\n}\r\n\r\nutil.inherits(Request, Duplex);\r\n\r\nRequest.prototype._init = function (options, callback) {\r\n    this.callback = callback;\r\n\r\n    var nonReservedProperties = azureCommon.util.filterOutNonReservedProperties(this, options);\r\n    extend(this, nonReservedProperties);\r\n\r\n    this.agent = this.agent || false;\r\n    this.timeout = this.timeout || Math.pow(2, 32) * 1000;\r\n\r\n    this._initUri();\r\n    this._initHeaders();\r\n};\r\n\r\nRequest.prototype._initUri = function () {\r\n    if (!this.uri) {\r\n        return this.emit('error', new Error('options.uri is a required argument'));\r\n    }\r\n\r\n    if (typeof this.uri === 'string') {\r\n        this.uri = url.parse(this.uri);\r\n    }\r\n\r\n    if (!this.uri.href) {\r\n        this.uri.href = url.format(this.uri);\r\n    }\r\n};\r\n\r\nRequest.prototype._initHeaders = function () {\r\n    this.headers = this.headers || {};\r\n    this.headers['content-length'] = this.headers['content-length'] || 0;\r\n};\r\n\r\nRequest.prototype._send = function () {\r\n    this._sent = true;\r\n\r\n    var protocol = this.uri.protocol || '';\r\n    var iface = (protocol === 'https:' ? https : http);\r\n\r\n    var options = {\r\n        scheme: protocol.replace(/:$/, ''),\r\n        method: this.method,\r\n        host: this.uri.hostname,\r\n        port: Number(this.uri.port) || (protocol === 'https:' ? 443 : 80),\r\n        path: this.uri.path,\r\n        agent: this.agent,\r\n        headers: this.headers,\r\n        withCredentials: this.withCredentials,\r\n        localAddress: this.localAddress,\r\n        mode: this.mode\r\n    };\r\n\r\n    if (protocol === 'https:') {\r\n        options.pfx = this.pfx;\r\n        options.key = this.key;\r\n        options.cert = this.cert;\r\n        options.ca = this.ca;\r\n        options.ciphers = this.ciphers;\r\n        options.rejectUnauthorized = this.rejectUnauthorized;\r\n        options.secureProtocol = this.secureProtocol;\r\n    }\r\n\r\n    var httpRequest = iface.request(options);\r\n    if (this.timeout && httpRequest.setTimeout) {\r\n        httpRequest.setTimeout(this.timeout);\r\n    }\r\n\r\n    this.httpRequest = httpRequest;\r\n    this.emit('request', httpRequest);\r\n\r\n    this._sendBody();\r\n    this._listenHttpResponse();\r\n    this._listenHttpError();\r\n\r\n    return httpRequest;\r\n};\r\n\r\nRequest.prototype._sendBody = function () {\r\n    if (this.body) {\r\n        this.httpRequest.write(this.body);\r\n        this.httpRequest.end();\r\n        return;\r\n    }\r\n\r\n    if (this.headers['content-length'] == '0') {\r\n        this.httpRequest.end();\r\n        return;\r\n    }\r\n};\r\n\r\nRequest.prototype._listenHttpError = function() {\r\n    var self = this;\r\n\r\n    self.httpRequest.on('error', function(error) {\r\n        self.emit('error', error);\r\n    });\r\n\r\n    self.on('error', function(error) {\r\n        if (self.callback) {\r\n            self.callback(error);\r\n        }\r\n    });\r\n};\r\n\r\nRequest.prototype._listenHttpResponse = function () {\r\n    var self = this;\r\n\r\n    self.httpRequest.on('response', function (response) {\r\n        var buffers = [];\r\n        var bufferLength = 0;\r\n\r\n        self.response = response;\r\n\r\n        response.on('data', function (chunk) {\r\n            self.push(chunk);\r\n            buffers.push(chunk);\r\n            bufferLength += chunk.length;\r\n        });\r\n\r\n        response.on('error', function (error) {\r\n            self.emit('error', error);\r\n        });\r\n\r\n        response.on('end', function () {\r\n            self.push(null);\r\n\r\n            response.body = '';\r\n            if (bufferLength > 0) {\r\n                response.body = Buffer.concat(buffers, bufferLength);\r\n            }\r\n\r\n            if (self.encoding !== null) {\r\n                response.body = response.body.toString(self.encoding);\r\n            }\r\n\r\n            if (self.callback) {\r\n                self.callback(null, response);\r\n            }\r\n        });\r\n\r\n        self.emit('response', response);\r\n    });\r\n};\r\n\r\n/**\r\n* Set a Request header.\r\n*\r\n* @param {string} key The user provided header key.\r\n* @param {string} value The valid header value.\r\n*/\r\nRequest.prototype.setHeader = function (key, value) {\r\n    if (this._sent) {\r\n        throw new Error('Request already sent');\r\n    }\r\n\r\n    this.headers[key] = value;\r\n    return this;\r\n};\r\n\r\n/**\r\n* Set a Request URI.\r\n*\r\n* @param {string} uri The user provided uri.\r\n*/\r\nRequest.prototype.setLocation = function (uri) {\r\n    this.uri = uri;\r\n    return this;\r\n};\r\n\r\nRequest.prototype.end = function (chunk) {\r\n    if (chunk) {\r\n        this.httpRequest.write(chunk);\r\n    }\r\n\r\n    this.httpRequest.end();\r\n};\r\n\r\nRequest.prototype._write = function (chunk, encoding, callback) {\r\n    this.httpRequest.write(chunk);\r\n    callback();\r\n};\r\n\r\nRequest.prototype._read = function () {\r\n};\r\n\r\n/**\r\n* Create a Request object\r\n* @ignore\r\n*\r\n* @param {object} options Options\r\n* @param {function} callback Callback\r\n* @return {Request} The created request object.\r\n*/\r\nfunction req(optionsOrCallback, callback) {\r\n    var reqDefaults = req.defaults();\r\n    return reqDefaults(optionsOrCallback, callback);\r\n}\r\n\r\n/**\r\n* Create a Request creator with default options\r\n* @ignore\r\n*\r\n* @param {object} defaultOptions Default options\r\n* @return {function}\r\n*/\r\nreq.defaults = function (defaultOptions) {\r\n    return function (optionsOrCallback, callback) {\r\n        var options;\r\n        azureCommon.util.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n\r\n        var nonReservedProperties = azureCommon.util.filterOutNonReservedProperties(options, defaultOptions);\r\n        extend(options, nonReservedProperties);\r\n\r\n        var request = new Request(options, callback);\r\n        return request;\r\n    };\r\n};\r\n\r\nmodule.exports = req;\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"../common.browser\":2,\"buffer\":56,\"extend\":60,\"http\":89,\"https\":62,\"stream\":88,\"url\":112,\"util\":117}],17:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar util = require('util');\r\n\r\nvar azureUtil = require('../util/util');\r\nvar errors = require('../errors/errors');\r\nvar SR = require('../util/sr');\r\nvar Constants = require('../util/constants');\r\n\r\nexports = module.exports;\r\n\r\n/**\r\n* The default protocol.\r\n*/\r\nexports.DEFAULT_PROTOCOL = Constants.HTTPS;\r\n\r\nvar NoMatchError = function (msg, constr) {\r\n  errors.captureStackTrace(this, constr || this);\r\n  this.message = msg || 'Error';\r\n};\r\n\r\nutil.inherits(NoMatchError, Error);\r\nNoMatchError.prototype.name = 'NoMatchError';\r\n\r\nexports.NoMatchError = NoMatchError;\r\n\r\n/**\r\n* Throws an exception if the connection string format does not match any of the\r\n* available formats.\r\n*\r\n* @param {string} connectionString The invalid formatted connection string.\r\n* @return none\r\n*/\r\nexports.noMatchConnectionString = function (connectionString) {\r\n  throw new NoMatchError('The provided connection string \"' + connectionString + '\" does not have complete configuration settings.');\r\n};\r\n\r\n/**\r\n* Throws an exception if the settings dont match any of the\r\n* available formats.\r\n*\r\n* @param {object} settings The invalid settings.\r\n* @return none\r\n*/\r\nexports.noMatchSettings = function (settings) {\r\n  throw new NoMatchError('The provided settings ' + JSON.stringify(settings) + ' are not complete.');\r\n};\r\n\r\n/**\r\n* Parses the connection string and then validate that the parsed keys belong to\r\n* the validSettingKeys\r\n*\r\n* @param {string} connectionString The user provided connection string.\r\n* @param {array}  validKeys        The valid keys.\r\n* @return {array} The tokenized connection string keys.\r\n*/\r\nexports.parseAndValidateKeys = function (connectionString, validKeys) {\r\n  var parsedConnectionString = { };\r\n\r\n  // parse key/value pairs from connection string\r\n  var pairs = connectionString.split(';');\r\n  for (var m = 0; m < pairs.length; m++) {\r\n    if (pairs[m].length === 0) {\r\n        continue;\r\n    }\r\n\r\n    var equalDex = pairs[m].indexOf('=');\r\n    if (equalDex < 0) {\r\n        throw new SyntaxError(SR.INVALID_CONNECTION_STRING);\r\n    } else if (equalDex === 0) {\r\n      // empty key name.\r\n      throw new SyntaxError(SR.INVALID_CONNECTION_STRING_EMPTY_KEY);\r\n    }\r\n\r\n    var key = pairs[m].substring(0, equalDex);\r\n\r\n    // assure that all given keys are valid.\r\n    if (!azureUtil.inArrayInsensitive(key, validKeys)) {\r\n      throw new SyntaxError(util.format(SR.INVALID_CONNECTION_STRING_BAD_KEY, key));\r\n    }\r\n\r\n    var value = pairs[m].substring(equalDex + 1);\r\n    \r\n    if(typeof parsedConnectionString[key] === 'undefined'){\r\n      parsedConnectionString[key] = value;\r\n    } else {\r\n      // duplicate key name\r\n      throw new SyntaxError(util.format(SR.INVALID_CONNECTION_STRING_DUPLICATE_KEY, key));\r\n    }\r\n  }\r\n\r\n  return parsedConnectionString;\r\n};\r\n\r\n/**\r\n* Creates an anonymous function that acts as predicate to perform a validation.\r\n*\r\n* @param array   {requirements} The array of conditions to satisfy.\r\n* @param boolean {isRequired}   Either these conditions are all required or all\r\n* optional.\r\n* @param boolean {atLeastOne}   Indicates that at least one requirement must\r\n* succeed.\r\n* @return {function}\r\n*/\r\nexports.getValidator = function (requirements, isRequired, atLeastOne) {\r\n  return function (userSettings) {\r\n    var oneFound = false;\r\n    var result = { };\r\n\r\n    for (var key in userSettings) {\r\n      if (userSettings.hasOwnProperty(key)) {\r\n        result[key.toLowerCase()] = userSettings[key];\r\n      }\r\n    }\r\n\r\n    for (var requirement in requirements) {\r\n      if (requirements.hasOwnProperty(requirement)) {\r\n        var settingName = requirements[requirement].SettingName.toLowerCase();\r\n\r\n        // Check if the setting name exists in the provided user settings.\r\n        if (result[settingName]) {\r\n          // Check if the provided user setting value is valid.\r\n          var validationFunc = requirements[requirement].SettingConstraint;\r\n          var isValid = validationFunc(result[settingName]);\r\n\r\n          if (isValid) {\r\n            // Remove the setting as indicator for successful validation.\r\n            delete result[settingName];\r\n            oneFound = true;\r\n          }\r\n        } else if (isRequired) {\r\n          // If required then fail because the setting does not exist\r\n          return null;\r\n        }\r\n      }\r\n    }\r\n\r\n    if (atLeastOne) {\r\n      // At least one requirement must succeed, otherwise fail.\r\n      return oneFound ? result : null;\r\n    } else {\r\n      return result;\r\n    }\r\n  };\r\n};\r\n\r\n/**\r\n* Creates a setting value condition that validates it is one of the\r\n* passed valid values.\r\n*\r\n* @param {string} name The setting key name.\r\n* @return {array}\r\n*/\r\nexports.setting = function (name) {\r\n  var validValues = Array.prototype.slice.call(arguments, 1, arguments.length);\r\n\r\n  var predicate = function (settingValue) {\r\n    var validValuesString = JSON.stringify(validValues);\r\n    if (validValues.length === 0) {\r\n      // No restrictions, succeed.\r\n      return true;\r\n    }\r\n\r\n    // Check to find if the settingValue is valid or not.\r\n    for (var index = 0; index < validValues.length; index++) {\r\n      if (settingValue.toString() == validValues[index].toString()) {\r\n        // SettingValue is found in valid values set, succeed.\r\n        return true;\r\n      }\r\n    }\r\n\r\n    // settingValue is missing in valid values set, fail.\r\n    throw new RangeError('The provided config value ' + settingValue + ' does not belong to the valid values subset:\\n' + validValuesString);\r\n  };\r\n\r\n  return exports.settingWithFunc(name, predicate);\r\n};\r\n\r\n/**\r\n* Creates an \"at lease one\" predicate for the provided list of requirements.\r\n*\r\n* @return callable\r\n*/\r\nexports.atLeastOne = function () {\r\n  var allSettings = arguments;\r\n  return exports.getValidator(allSettings, false, true);\r\n};\r\n\r\n/**\r\n* Creates an optional predicate for the provided list of requirements.\r\n*\r\n* @return {function}\r\n*/\r\nexports.optional = function () {\r\n  var optionalSettings = arguments;\r\n  return exports.getValidator(optionalSettings, false, false);\r\n};\r\n\r\n/**\r\n* Creates an required predicate for the provided list of requirements.\r\n*\r\n* @return {function}\r\n*/\r\nexports.allRequired = function () {\r\n  var requiredSettings = arguments;\r\n  return exports.getValidator(requiredSettings, true, false);\r\n};\r\n\r\n/**\r\n* Creates a setting value condition using the passed predicate.\r\n*\r\n* @param {string}   name      The setting key name.\r\n* @param {function} predicate The setting value predicate.\r\n* @return {array}\r\n*/\r\nexports.settingWithFunc = function (name, predicate) {\r\n  var requirement = {};\r\n  requirement.SettingName = name;\r\n  requirement.SettingConstraint = predicate;\r\n\r\n  return requirement;\r\n};\r\n\r\n\r\n/**\r\n* Tests to see if a given list of settings matches a set of filters exactly.\r\n*\r\n* @param array $settings The settings to check.\r\n* @return boolean If any filter returns null, false. If there are any settings\r\n* left over after all filters are processed, false. Otherwise true.\r\n*/\r\nexports.matchedSpecification = function (settings) {\r\n  var constraints = Array.prototype.slice.call(arguments, 1, arguments.length);\r\n\r\n  for (var constraint in constraints) {\r\n    if (constraints.hasOwnProperty(constraint)) {\r\n      var remainingSettings = constraints[constraint](settings);\r\n\r\n      if (!remainingSettings) {\r\n        return false;\r\n      } else {\r\n        settings = remainingSettings;\r\n      }\r\n    }\r\n  }\r\n\r\n  return azureUtil.objectKeysLength(settings) === 0;\r\n};\r\n},{\"../errors/errors\":5,\"../util/constants\":32,\"../util/sr\":36,\"../util/util\":38,\"util\":117}],18:[function(require,module,exports){\r\n(function (process,Buffer){\r\n//\r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n//\r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n//\r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n//\r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n//\r\n\r\n// Module dependencies.\r\nvar request = require('../request-wrapper');\r\nvar url = require('url');\r\nvar qs = require('querystring');\r\nvar util = require('util');\r\nvar xml2js = require('xml2js');\r\nvar events = require('events');\r\nvar _ = require('underscore');\r\nvar guid = require('uuid');\r\nvar os = require('os');\r\nvar extend = require('extend');\r\nvar Parser = require('json-edm-parser');\r\n\r\nvar Md5Wrapper = require('../md5-wrapper');\r\nvar azureutil = require('../util/util');\r\nvar validate = require('../util/validate');\r\nvar SR = require('../util/sr');\r\nvar WebResource = require('../http/webresource');\r\nvar BufferStream = require('../streams/bufferstream.js');\r\n\r\nvar ServiceSettings = require('./servicesettings');\r\nvar StorageServiceSettings = require('./storageservicesettings');\r\nvar Constants = require('../util/constants');\r\nvar StorageUtilities = require('../util/storageutilities');\r\nvar ServicePropertiesResult = require('../models/servicepropertiesresult');\r\nvar TableUtilities = require('../../services/table/tableutilities');\r\n\r\nvar SharedKey = require('../signing/sharedkey');\r\nvar SharedAccessSignature = require('../signing/sharedaccesssignature');\r\nvar TokenSigner = require('../signing/tokensigner');\r\n\r\nvar HeaderConstants = Constants.HeaderConstants;\r\nvar QueryStringConstants = Constants.QueryStringConstants;\r\nvar HttpResponseCodes = Constants.HttpConstants.HttpResponseCodes;\r\nvar StorageServiceClientConstants = Constants.StorageServiceClientConstants;\r\nvar defaultRequestLocationMode = Constants.RequestLocationMode.PRIMARY_ONLY;\r\nvar RequestLocationMode = Constants.RequestLocationMode;\r\n\r\nvar Logger = require('../diagnostics/logger');\r\nvar errors = require('../errors/errors');\r\nvar ArgumentError = errors.ArgumentError;\r\nvar ArgumentNullError = errors.ArgumentNullError;\r\nvar TimeoutError = errors.TimeoutError;\r\nvar StorageError = errors.StorageError;\r\n\r\n/**\r\n* Creates a new StorageServiceClient object.\r\n*\r\n* @class\r\n* The StorageServiceClient class is the base class of all the service classes.\r\n* @constructor\r\n* @param {string} storageAccount           The storage account.\r\n* @param {string} storageAccessKey         The storage access key.\r\n* @param {object} host                     The host for the service.\r\n* @param {bool}   usePathStyleUri          Boolean value indicating wether to use path style uris.\r\n* @param {string} sas                      The Shared Access Signature string.\r\n* @param {TokenCredential} [token]         The {@link TokenCredential} object, which can be created with an OAuth access token string.\r\n*/\r\nfunction StorageServiceClient(storageAccount, storageAccessKey, host, usePathStyleUri, sas, token) {\r\n  StorageServiceClient['super_'].call(this);\r\n\r\n  if(storageAccount && storageAccessKey) {\r\n    // account and key\r\n    this.storageAccount = storageAccount;\r\n    this.storageAccessKey = storageAccessKey;\r\n    this.storageCredentials = new SharedKey(this.storageAccount, this.storageAccessKey, usePathStyleUri);\r\n  } else if (sas) {\r\n    // sas\r\n    this.sasToken = sas;\r\n    this.storageCredentials = new SharedAccessSignature(sas);\r\n  } else if (token) {\r\n    // access token\r\n    this.token = token;\r\n    this.storageCredentials = new TokenSigner(token);\r\n  } else {\r\n    // anonymous\r\n    this.anonymous = true;\r\n    this.storageCredentials = {\r\n      signRequest: function(webResource, callback){\r\n        // no op, anonymous access\r\n        callback(null);\r\n      }\r\n    };\r\n  }\r\n\r\n  if(host){\r\n    this.setHost(host);\r\n  }\r\n\r\n  this.apiVersion = HeaderConstants.TARGET_STORAGE_VERSION;\r\n  this.usePathStyleUri = usePathStyleUri;\r\n\r\n  this._initDefaultFilter();\r\n\r\n  /**\r\n   * The logger of the service. To change the log level of the services, set the `[logger.level]{@link Logger#level}`.\r\n   * @name StorageServiceClient#logger\r\n   * @type Logger\r\n   * */\r\n  this.logger = new Logger(Logger.LogLevels.INFO);\r\n\r\n  this._setDefaultProxy();\r\n\r\n  this.xml2jsSettings = StorageServiceClient._getDefaultXml2jsSettings();\r\n  this.defaultLocationMode = StorageUtilities.LocationMode.PRIMARY_ONLY;\r\n}\r\n\r\nutil.inherits(StorageServiceClient, events.EventEmitter);\r\n\r\n/**\r\n* Gets the default xml2js settings.\r\n* @ignore\r\n* @return {object} The default settings\r\n*/\r\nStorageServiceClient._getDefaultXml2jsSettings = function() {\r\n  var xml2jsSettings = _.clone(xml2js.defaults['0.2']);\r\n\r\n  // these determine what happens if the xml contains attributes\r\n  xml2jsSettings.attrkey = Constants.TableConstants.XML_METADATA_MARKER;\r\n  xml2jsSettings.charkey = Constants.TableConstants.XML_VALUE_MARKER;\r\n\r\n  // from xml2js guide: always put child nodes in an array if true; otherwise an array is created only if there is more than one.\r\n  xml2jsSettings.explicitArray = false;\r\n\r\n  return xml2jsSettings;\r\n};\r\n\r\n/**\r\n* Sets a host for the service.\r\n* @ignore\r\n* @param {string}     host                              The host for the service.\r\n*/\r\nStorageServiceClient.prototype.setHost = function (host) {\r\n  var parseHost = function(hostUri){\r\n    var parsedHost;\r\n    if(!azureutil.objectIsNull(hostUri)) {\r\n      if(hostUri.indexOf('http') === -1 && hostUri.indexOf('//') !== 0){\r\n        hostUri = '//' + hostUri;\r\n      }\r\n      parsedHost = url.parse(hostUri, false, true);\r\n\r\n      if(!parsedHost.protocol){\r\n        parsedHost.protocol = ServiceSettings.DEFAULT_PROTOCOL;\r\n      }\r\n\r\n      if (!parsedHost.port) {\r\n        if (parsedHost.protocol === Constants.HTTPS) {\r\n          parsedHost.port = Constants.DEFAULT_HTTPS_PORT;\r\n        } else {\r\n          parsedHost.port = Constants.DEFAULT_HTTP_PORT;\r\n        }\r\n      }\r\n\r\n      parsedHost = url.format({\r\n        protocol: parsedHost.protocol,\r\n        port: parsedHost.port,\r\n        hostname: parsedHost.hostname,\r\n        pathname: parsedHost.pathname\r\n      });\r\n    }\r\n\r\n    return parsedHost;\r\n  };\r\n\r\n  validate.isValidHost(host);\r\n\r\n  this.host = {\r\n    primaryHost: parseHost(host.primaryHost),\r\n    secondaryHost: parseHost(host.secondaryHost)\r\n  };\r\n};\r\n\r\n/**\r\n* Performs a REST service request through HTTP expecting an input stream.\r\n* @ignore\r\n*\r\n* @param {WebResource} webResource                        The webresource on which to perform the request.\r\n* @param {string}      outputData                         The outgoing request data as a raw string.\r\n* @param {object}      [options]                          The request options.\r\n* @param {int}         [options.timeoutIntervalInMs]      The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}         [options.clientRequestTimeoutInMs] The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {function}    callback                           The response callback function.\r\n*/\r\nStorageServiceClient.prototype.performRequest = function (webResource, outputData, options, callback) {\r\n    this._performRequest(webResource, { outputData: outputData }, options, callback);\r\n};\r\n\r\n/**\r\n* Performs a REST service request through HTTP expecting an input stream.\r\n* @ignore\r\n*\r\n* @param {WebResource} webResource                        The webresource on which to perform the request.\r\n* @param {Stream}      outputStream                       The outgoing request data as a stream.\r\n* @param {object}      [options]                          The request options.\r\n* @param {int}         [options.timeoutIntervalInMs]      The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}         [options.clientRequestTimeoutInMs] The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {function}    callback                           The response callback function.\r\n*/\r\nStorageServiceClient.prototype.performRequestOutputStream = function (webResource, outputStream, options, callback) {\r\n  this._performRequest(webResource, { outputStream: outputStream }, options, callback);\r\n};\r\n\r\n/**\r\n* Performs a REST service request through HTTP expecting an input stream.\r\n* @ignore\r\n*\r\n* @param {WebResource} webResource                        The webresource on which to perform the request.\r\n* @param {string}      outputData                         The outgoing request data as a raw string.\r\n* @param {Stream}      inputStream                        The ingoing response data as a stream.\r\n* @param {object}      [options]                          The request options.\r\n* @param {int}         [options.timeoutIntervalInMs]      The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}         [options.clientRequestTimeoutInMs] The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {function}    callback                           The response callback function.\r\n*/\r\nStorageServiceClient.prototype.performRequestInputStream = function (webResource, outputData, inputStream, options, callback) {\r\n  this._performRequest(webResource, { outputData: outputData, inputStream: inputStream }, options, callback);\r\n};\r\n\r\n/**\r\n* Performs a REST service request through HTTP.\r\n* @ignore\r\n*\r\n* @param {WebResource} webResource                        The webresource on which to perform the request.\r\n* @param {object}      body                               The request body.\r\n* @param {string}      [body.outputData]                  The outgoing request data as a raw string.\r\n* @param {Stream}      [body.outputStream]                The outgoing request data as a stream.\r\n* @param {Stream}      [body.inputStream]                 The ingoing response data as a stream.\r\n* @param {object}      [options]                          The request options.\r\n* @param {string}      [options.clientRequestId]          A string that represents the client request ID with a 1KB character limit.\r\n* @param {int}         [options.timeoutIntervalInMs]      The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}         [options.clientRequestTimeoutInMs] The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {function}    callback                           The response callback function.\r\n*/\r\nStorageServiceClient.prototype._performRequest = function (webResource, body, options, callback) {\r\n  var self = this;\r\n\r\n  // Sets a requestId on the webResource\r\n  if(!options.clientRequestId) {\r\n    options.clientRequestId = guid.v1();\r\n  }\r\n\r\n  webResource.withHeader(HeaderConstants.CLIENT_REQUEST_ID, options.clientRequestId);\r\n\r\n  // Sets the user-agent string if the process is not started by the browser\r\n  if(!process.browser) {\r\n    var userAgentComment = util.format('(NODE-VERSION %s; %s %s)', process.version, os.type(), os.release());\r\n    webResource.withHeader(HeaderConstants.USER_AGENT, Constants.USER_AGENT_PRODUCT_NAME + '/' + Constants.USER_AGENT_PRODUCT_VERSION + ' ' + userAgentComment);\r\n  }\r\n\r\n  // Initialize the location that the request is going to be sent to.\r\n  if(azureutil.objectIsNull(options.locationMode)) {\r\n    options.locationMode = this.defaultLocationMode;\r\n  }\r\n\r\n  // Initialize the location that the request can be sent to.\r\n  if(azureutil.objectIsNull(options.requestLocationMode)) {\r\n    options.requestLocationMode = defaultRequestLocationMode;\r\n  }\r\n\r\n  // Initialize whether nagling is used or not.\r\n  if(azureutil.objectIsNull(options.useNagleAlgorithm)) {\r\n    options.useNagleAlgorithm = this.useNagleAlgorithm;\r\n  }\r\n\r\n  this._initializeLocation(options);\r\n\r\n  // Initialize the operationExpiryTime\r\n  this._setOperationExpiryTime(options);\r\n\r\n  // If the output stream already got sent to server and got error back,\r\n  // we should NOT retry within the SDK as the stream data is not valid anymore if we retry directly.\r\n  // And it's very hard for SDK to re-wind the stream.\r\n  //\r\n  // If users want to retry on this kind of error, they can implement their own logic to parse the response and\r\n  // determine if they need to re-prepare a stream and call our SDK API to retry.\r\n  //\r\n  // Currently for blobs/files with size greater than 32MB (DEFAULT_SINGLE_BLOB_PUT_THRESHOLD_IN_BYTES),\r\n  // we'll send the steam by chunk buffers which doesn't have this issue.\r\n  var outputStreamSent = false;\r\n\r\n  var operation = function (options, next) {\r\n    self._validateLocation(options);\r\n    var currentLocation = options.currentLocation;\r\n    self._buildRequestOptions(webResource, body, options, function (err, finalRequestOptions) {\r\n      if (err) {\r\n        callback({ error: err, response: null }, function (finalRequestOptions, finalCallback) {\r\n          finalCallback(finalRequestOptions);\r\n        });\r\n      } else {\r\n        self.logger.log(Logger.LogLevels.DEBUG, 'FINAL REQUEST OPTIONS:\\n' + util.inspect(finalRequestOptions));\r\n\r\n        if(self._maximumExecutionTimeExceeded(Date.now(), options.operationExpiryTime)) {\r\n          callback({ error: new TimeoutError(SR.MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION), response: null }, function (finalRequestOptions, finalCallback) {\r\n            finalCallback(finalRequestOptions);\r\n          });\r\n        } else {\r\n          var processResponseCallback = function (error, response) {\r\n            var responseObject;\r\n\r\n            if (error) {\r\n              responseObject = { error: error, response: null };\r\n            } else {\r\n              responseObject = self._processResponse(webResource, response, options);\r\n              responseObject.contentMD5 = response.contentMD5;\r\n              responseObject.length = response.length;\r\n            }\r\n\r\n            responseObject.operationEndTime = new Date();\r\n            // Required for listing operations to make sure successive operations go to the same location.\r\n            responseObject.targetLocation = currentLocation;\r\n            responseObject.outputStreamSent = outputStreamSent;\r\n\r\n            callback(responseObject, next);\r\n          };\r\n\r\n          var endResponse;\r\n          var buildRequest = function (headersOnly, inputStream) {\r\n            // Build request (if body was set before, request will process immediately, if not it'll wait for the piping to happen\r\n            var requestStream;\r\n\r\n            var requestWithDefaults;\r\n\r\n            if(self.proxy) {\r\n              if(requestWithDefaults === undefined) {\r\n                requestWithDefaults = request.defaults({'proxy':self.proxy});\r\n              }\r\n            } else {\r\n              requestWithDefaults = request;\r\n            }\r\n\r\n            if (headersOnly) {\r\n              requestStream = requestWithDefaults(finalRequestOptions);\r\n\r\n              requestStream.on('error', processResponseCallback);\r\n              requestStream.on('response', function (response) {\r\n                var isValid = WebResource.validResponse(response.statusCode);\r\n                if (!isValid) {\r\n                    // When getting invalid response, try to get the error message for future steps to extract the detailed error information\r\n                    var contentLength = parseInt(response.headers['content-length']);\r\n                    var errorMessageBuffer;\r\n                    var index = 0;\r\n                    if (contentLength !== undefined) {\r\n                      errorMessageBuffer = Buffer.alloc(contentLength);\r\n                    }\r\n\r\n                    requestStream.on('data', function (data) {\r\n                      if (contentLength !== undefined) {\r\n                        data.copy(errorMessageBuffer, index);\r\n                        index += data.length;\r\n                      } else {\r\n                        if (!errorMessageBuffer) {\r\n                          errorMessageBuffer = data;\r\n                        } else {\r\n                          errorMessageBuffer = Buffer.concat([errorMessageBuffer, data]);\r\n                        }\r\n                      }\r\n                    });\r\n                    requestStream.on('end', function () {\r\n                      if (errorMessageBuffer) {\r\n                        // Strip the UTF8 BOM following the same ways as 'request' module\r\n                        if (errorMessageBuffer.length > 3 &&\r\n                          errorMessageBuffer[0] === 239 &&\r\n                          errorMessageBuffer[1] === 187 &&\r\n                          errorMessageBuffer[2] === 191) {\r\n                          response.body = errorMessageBuffer.toString('utf8', 3);\r\n                        } else {\r\n                          response.body = errorMessageBuffer.toString('utf8');\r\n                        }\r\n                      }\r\n                      processResponseCallback(null, response);\r\n                    });\r\n                } else {\r\n                  // Only pipe to the destination stream when we get a valid response from service\r\n                  // Error message should NOT be piped to the destination stream\r\n                  if (inputStream) {\r\n                    requestStream.pipe(inputStream);\r\n                  }\r\n\r\n                  var responseLength = 0;\r\n                  var internalHash = new Md5Wrapper().createMd5Hash();\r\n                  response.on('data', function(data) {\r\n                    responseLength += data.length;\r\n                    internalHash.update(data);\r\n                  });\r\n\r\n                  response.on('end', function () {\r\n                    // Calculate and set MD5 here\r\n                    if(azureutil.objectIsNull(options.disableContentMD5Validation) || options.disableContentMD5Validation === false) {\r\n                      response.contentMD5 = internalHash.digest('base64');\r\n                    }\r\n\r\n                    response.length = responseLength;\r\n                    endResponse = response;\r\n                  });\r\n                }\r\n              });\r\n            } else {\r\n              requestStream = requestWithDefaults(finalRequestOptions, processResponseCallback);\r\n            }\r\n\r\n            //If useNagleAlgorithm is not set or the value is set and is false, setNoDelay is set to true.\r\n            if (azureutil.objectIsNull(options.useNagleAlgorithm) || options.useNagleAlgorithm === false) {\r\n              requestStream.on('request', function(httpRequest) {\r\n                httpRequest.setNoDelay(true);\r\n              });\r\n            }\r\n\r\n            // Workaround to avoid request from potentially setting unwanted (rejected) headers by the service\r\n            var oldEnd = requestStream.end;\r\n            requestStream.end = function () {\r\n              if (finalRequestOptions.headers['content-length']) {\r\n                requestStream.headers['content-length'] = finalRequestOptions.headers['content-length'];\r\n              } else if (requestStream.headers['content-length']) {\r\n                delete requestStream.headers['content-length'];\r\n              }\r\n\r\n              oldEnd.call(requestStream);\r\n            };\r\n\r\n            // Bubble events up -- This is when the request is going to be made.\r\n            requestStream.on('response', function (response) {\r\n              self.emit('receivedResponseEvent', response);\r\n            });\r\n\r\n            return requestStream;\r\n          };\r\n\r\n          if (body && body.outputData) {\r\n            if (!azureutil.isBrowser() && Buffer.isBuffer(body.outputData)) {\r\n              // Request module will take 200MB additional memory when we pass a 100MB buffer as body\r\n              // Transfer buffer to stream will highly reduce the memory used by request module\r\n              finalRequestOptions.body = new BufferStream(body.outputData);\r\n            } else {\r\n              finalRequestOptions.body = body.outputData;\r\n            }\r\n          }\r\n\r\n          // Pipe any input / output streams\r\n          if (body && body.inputStream) {\r\n            body.inputStream.on('close', function () {\r\n              if (endResponse) {\r\n                processResponseCallback(null, endResponse);\r\n                endResponse = null;\r\n              }\r\n            });\r\n            body.inputStream.on('end', function () {\r\n              if (endResponse) {\r\n                processResponseCallback(null, endResponse);\r\n                endResponse = null;\r\n              }\r\n            });\r\n            body.inputStream.on('finish', function () {\r\n              if (endResponse) {\r\n                processResponseCallback(null, endResponse);\r\n                endResponse = null;\r\n              }\r\n            });\r\n            buildRequest(true, body.inputStream);\r\n          } else if (body && body.outputStream) {\r\n            var sendUnchunked = function () {\r\n              var size = finalRequestOptions.headers['content-length'] ?\r\n                finalRequestOptions.headers['content-length'] :\r\n                Constants.BlobConstants.MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES;\r\n\r\n              var concatBuf = Buffer.alloc(parseInt(size));\r\n              var index = 0;\r\n\r\n              body.outputStream.on('data', function (d) {\r\n                outputStreamSent = true;\r\n                if(self._maximumExecutionTimeExceeded(Date.now(), options.operationExpiryTime)) {\r\n                  processResponseCallback(new TimeoutError(SR.MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION));\r\n                } else {\r\n                  d.copy(concatBuf, index);\r\n                  index += d.length;\r\n                }\r\n              }).on('end', function () {\r\n                var requestStream = buildRequest();\r\n                requestStream.write(concatBuf);\r\n                requestStream.end();\r\n              });\r\n              if (azureutil.isStreamPaused(body.outputStream)) {\r\n                body.outputStream.resume();\r\n              }\r\n            };\r\n\r\n            var sendStream = function () {\r\n              // NOTE: workaround for an unexpected EPIPE exception when piping streams larger than 29 MB\r\n              if (!azureutil.objectIsNull(finalRequestOptions.headers['content-length']) && finalRequestOptions.headers['content-length'] < 29 * 1024 * 1024) {\r\n                body.outputStream.pipe(buildRequest());\r\n                outputStreamSent = true;\r\n\r\n                if (azureutil.isStreamPaused(body.outputStream)) {\r\n                  body.outputStream.resume();\r\n                }\r\n              } else {\r\n                sendUnchunked();\r\n              }\r\n            };\r\n\r\n            if (!body.outputStream.readable) {\r\n              // if the content length is zero, build the request and don't send a body\r\n              if (finalRequestOptions.headers['content-length'] === 0) {\r\n                buildRequest();\r\n              } else {\r\n                // otherwise, wait until we know the readable stream is actually valid before piping\r\n                body.outputStream.on('open', function () {\r\n                  sendStream();\r\n                });\r\n              }\r\n            } else {\r\n              sendStream();\r\n            }\r\n\r\n            // This catches any errors that happen while creating the readable stream (usually invalid names)\r\n            body.outputStream.on('error', function (error) {\r\n              processResponseCallback(error);\r\n            });\r\n          } else {\r\n            buildRequest();\r\n          }\r\n        }\r\n      }\r\n    });\r\n  };\r\n\r\n  // The filter will do what it needs to the requestOptions and will provide a\r\n  // function to be handled after the reply\r\n  self.filter(options, function (postFiltersRequestOptions, nextPostCallback) {\r\n    if(self._maximumExecutionTimeExceeded(Date.now() + postFiltersRequestOptions.retryInterval, postFiltersRequestOptions.operationExpiryTime)) {\r\n      callback({ error: new TimeoutError(SR.MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION), response: null}, function (postFiltersRequestOptions, finalCallback) {\r\n        finalCallback(postFiltersRequestOptions);\r\n      });\r\n    } else {\r\n      // If there is a filter, flow is:\r\n      // filter -> operation -> process response\r\n      if(postFiltersRequestOptions.retryContext) {\r\n        var func = function() {\r\n          operation(postFiltersRequestOptions, nextPostCallback);\r\n        };\r\n\r\n        // Sleep for retryInterval before making the request\r\n        setTimeout(func, postFiltersRequestOptions.retryInterval);\r\n      } else {\r\n        // No retry policy filter specified\r\n        operation(postFiltersRequestOptions, nextPostCallback);\r\n      }\r\n    }\r\n  });\r\n};\r\n\r\n\r\n/**\r\n* Builds the request options to be passed to the http.request method.\r\n* @ignore\r\n* @param {WebResource} webResource The webresource where to build the options from.\r\n* @param {object}      options     The request options.\r\n* @param {function(error, requestOptions)}  callback  The callback function.\r\n*/\r\nStorageServiceClient.prototype._buildRequestOptions = function (webResource, body, options, callback) {\r\n  webResource.withHeader(HeaderConstants.STORAGE_VERSION, this.apiVersion);\r\n  webResource.withHeader(HeaderConstants.MS_DATE, new Date().toUTCString());\r\n  if (!webResource.headers[HeaderConstants.ACCEPT]) {\r\n    webResource.withHeader(HeaderConstants.ACCEPT, 'application/atom+xml,application/xml');\r\n  }\r\n  webResource.withHeader(HeaderConstants.ACCEPT_CHARSET, 'UTF-8');\r\n\r\n  // Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE' after Azure Storage 'Authorization header' calculation,\r\n  // which may result in a 403 authorization error. So add timestamp to GET/HEAD request URLs thus avoid the browser cache.\r\n  if (azureutil.isBrowser() && (\r\n    webResource.method === Constants.HttpConstants.HttpVerbs.GET ||\r\n    webResource.method === Constants.HttpConstants.HttpVerbs.HEAD)) {\r\n    webResource.withQueryOption(HeaderConstants.FORCE_NO_CACHE_IN_BROWSER, new Date().getTime());\r\n  }\r\n\r\n  if(azureutil.objectIsNull(options.timeoutIntervalInMs)) {\r\n    options.timeoutIntervalInMs = this.defaultTimeoutIntervalInMs;\r\n  }\r\n\r\n  if(azureutil.objectIsNull(options.clientRequestTimeoutInMs)) {\r\n    options.clientRequestTimeoutInMs = this.defaultClientRequestTimeoutInMs;\r\n  }\r\n\r\n  if(!azureutil.objectIsNull(options.timeoutIntervalInMs) && options.timeoutIntervalInMs > 0) {\r\n    webResource.withQueryOption(QueryStringConstants.TIMEOUT, Math.ceil(options.timeoutIntervalInMs / 1000));\r\n  }\r\n\r\n  if(options.accessConditions) {\r\n    webResource.withHeader(HeaderConstants.IF_MATCH, options.accessConditions.EtagMatch);\r\n    webResource.withHeader(HeaderConstants.IF_MODIFIED_SINCE, options.accessConditions.DateModifedSince);\r\n    webResource.withHeader(HeaderConstants.IF_NONE_MATCH, options.accessConditions.EtagNonMatch);\r\n    webResource.withHeader(HeaderConstants.IF_UNMODIFIED_SINCE, options.accessConditions.DateUnModifiedSince);\r\n    webResource.withHeader(HeaderConstants.SEQUENCE_NUMBER_EQUAL, options.accessConditions.SequenceNumberEqual);\r\n    webResource.withHeader(HeaderConstants.SEQUENCE_NUMBER_LESS_THAN, options.accessConditions.SequenceNumberLessThan);\r\n    webResource.withHeader(HeaderConstants.SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL, options.accessConditions.SequenceNumberLessThanOrEqual);\r\n    webResource.withHeader(HeaderConstants.BLOB_CONDITION_MAX_SIZE, options.accessConditions.MaxBlobSize);\r\n    webResource.withHeader(HeaderConstants.BLOB_CONDITION_APPEND_POSITION, options.accessConditions.MaxAppendPosition);\r\n  }\r\n\r\n  if(options.sourceAccessConditions) {\r\n    webResource.withHeader(HeaderConstants.SOURCE_IF_MATCH, options.sourceAccessConditions.EtagMatch);\r\n    webResource.withHeader(HeaderConstants.SOURCE_IF_MODIFIED_SINCE, options.sourceAccessConditions.DateModifedSince);\r\n    webResource.withHeader(HeaderConstants.SOURCE_IF_NONE_MATCH, options.sourceAccessConditions.EtagNonMatch);\r\n    webResource.withHeader(HeaderConstants.SOURCE_IF_UNMODIFIED_SINCE, options.sourceAccessConditions.DateUnModifiedSince);\r\n  }\r\n\r\n  if (!webResource.headers || webResource.headers[HeaderConstants.CONTENT_TYPE] === undefined) {\r\n    // work around to add an empty content type header to prevent the request module from magically adding a content type.\r\n    webResource.headers[HeaderConstants.CONTENT_TYPE] = '';\r\n  } else if (webResource.headers && webResource.headers[HeaderConstants.CONTENT_TYPE] === null) {\r\n    delete webResource.headers[HeaderConstants.CONTENT_TYPE];\r\n  }\r\n\r\n  if (!webResource.headers || webResource.headers[HeaderConstants.CONTENT_LENGTH] === undefined) {\r\n    if (body && body.outputData) {\r\n      webResource.withHeader(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(body.outputData, 'UTF8'));\r\n    } else if (webResource.headers[HeaderConstants.CONTENT_LENGTH] === undefined) {\r\n      webResource.withHeader(HeaderConstants.CONTENT_LENGTH, 0);\r\n    }\r\n  } else if (webResource.headers && webResource.headers[HeaderConstants.CONTENT_LENGTH] === null) {\r\n    delete webResource.headers[HeaderConstants.CONTENT_LENGTH];\r\n  }\r\n\r\n  var enableGlobalHttpAgent = this.enableGlobalHttpAgent;\r\n\r\n  // Sets the request url in the web resource.\r\n  this._setRequestUrl(webResource, options);\r\n\r\n  this.emit('sendingRequestEvent', webResource);\r\n\r\n  // Now that the web request is finalized, sign it\r\n  this.storageCredentials.signRequest(webResource, function (error) {\r\n    var requestOptions = null;\r\n\r\n    if (!error) {\r\n      var targetUrl = webResource.uri;\r\n\r\n      requestOptions = {\r\n        uri: url.format(targetUrl),\r\n        method: webResource.method,\r\n        headers: webResource.headers,\r\n        mode: 'disable-fetch'\r\n      };\r\n\r\n      if (options) {\r\n        //set encoding of response data. If set to null, the body is returned as a Buffer\r\n        requestOptions.encoding = options.responseEncoding;\r\n      }\r\n\r\n      if (options && options.clientRequestTimeoutInMs) {\r\n        requestOptions.timeout = options.clientRequestTimeoutInMs;\r\n      } else {\r\n        requestOptions.timeout = Constants.DEFAULT_CLIENT_REQUEST_TIMEOUT_IN_MS; // 2 minutes\r\n      }\r\n\r\n      // If global HTTP agent is not enabled, use forever agent.\r\n      if (enableGlobalHttpAgent !== true) {\r\n        requestOptions.forever = true;\r\n      }\r\n    }\r\n\r\n    callback(error, requestOptions);\r\n  });\r\n};\r\n\r\n/**\r\n* Process the response.\r\n* @ignore\r\n*\r\n* @param {WebResource} webResource                The web resource that made the request.\r\n* @param {Response}    response                   The response object.\r\n* @param {Options}     options                    The response parsing options.\r\n* @param {String}      options.payloadFormat      The payload format.\r\n* @return The normalized responseObject.\r\n*/\r\nStorageServiceClient.prototype._processResponse = function (webResource, response, options) {\r\n  var self = this;\r\n\r\n  function convertRawHeadersToHeaders(rawHeaders) {\r\n    var headers = {};\r\n    if(!rawHeaders) {\r\n      return undefined;\r\n    }\r\n\r\n    for(var i = 0; i < rawHeaders.length; i++) {\r\n      var headerName;\r\n      if (rawHeaders[i].indexOf(HeaderConstants.PREFIX_FOR_STORAGE_METADATA) === 0) {\r\n        headerName = rawHeaders[i];\r\n      } else {\r\n        headerName = rawHeaders[i].toLowerCase();\r\n      }\r\n      headers[headerName] = rawHeaders[++i];\r\n    }\r\n\r\n    return headers;\r\n  }\r\n\r\n  var validResponse = WebResource.validResponse(response.statusCode);\r\n  var rsp = StorageServiceClient._buildResponse(validResponse, response.body, convertRawHeadersToHeaders(response.rawHeaders) || response.headers, response.statusCode, response.md5);\r\n  var responseObject;\r\n\r\n  if (validResponse && webResource.rawResponse) {\r\n    responseObject = { error: null, response: rsp };\r\n  } else {\r\n    // attempt to parse the response body, errors will be returned in rsp.error without modifying the body\r\n    rsp = StorageServiceClient._parseResponse(rsp, self.xml2jsSettings, options);\r\n\r\n    if (validResponse && !rsp.error) {\r\n        responseObject = { error: null, response: rsp };\r\n    } else {\r\n      rsp.isSuccessful = false;\r\n\r\n      if (response.statusCode < 400 || response.statusCode >= 500) {\r\n        this.logger.log(Logger.LogLevels.DEBUG,\r\n            'ERROR code = ' + response.statusCode + ' :\\n' + util.inspect(rsp.body));\r\n      }\r\n\r\n      // responseObject.error should contain normalized parser errors if they occured in _parseResponse\r\n      // responseObject.response.body should contain the raw response body in that case\r\n      var errorBody = rsp.body;\r\n      if(rsp.error) {\r\n        errorBody = rsp.error;\r\n        delete rsp.error;\r\n      }\r\n\r\n      if (!errorBody) {\r\n        var code = Object.keys(HttpResponseCodes).filter(function (name) {\r\n          if (HttpResponseCodes[name] === rsp.statusCode) {\r\n            return name;\r\n          }\r\n        });\r\n\r\n        errorBody = { error: { code: code[0] } };\r\n      }\r\n\r\n      var normalizedError = StorageServiceClient._normalizeError(errorBody, response);\r\n      responseObject = { error: normalizedError, response: rsp };\r\n    }\r\n  }\r\n\r\n  this.logger.log(Logger.LogLevels.DEBUG, 'RESPONSE:\\n' + util.inspect(responseObject));\r\n\r\n  return responseObject;\r\n};\r\n\r\n/**\r\n* Associate a filtering operation with this StorageServiceClient. Filtering operations\r\n* can include logging, automatically retrying, etc. Filter operations are objects\r\n* that implement a method with the signature:\r\n*\r\n*     \"function handle (requestOptions, next)\".\r\n*\r\n* After doing its preprocessing on the request options, the method needs to call\r\n* \"next\" passing a callback with the following signature:\r\n* signature:\r\n*\r\n*     \"function (returnObject, finalCallback, next)\"\r\n*\r\n* In this callback, and after processing the returnObject (the response from the\r\n* request to the server), the callback needs to either invoke next if it exists to\r\n* continue processing other filters or simply invoke finalCallback otherwise to end\r\n* up the service invocation.\r\n*\r\n* @param {Object} filter The new filter object.\r\n* @return {StorageServiceClient} A new service client with the filter applied.\r\n*/\r\nStorageServiceClient.prototype.withFilter = function (newFilter) {\r\n    // Create a new object with the same members as the current service\r\n    var derived = _.clone(this);\r\n\r\n    // If the current service has a filter, merge it with the new filter\r\n    // (allowing us to effectively pipeline a series of filters)\r\n    var parentFilter = this.filter;\r\n    var mergedFilter = newFilter;\r\n    if (parentFilter !== undefined) {\r\n      // The parentFilterNext is either the operation or the nextPipe function generated on a previous merge\r\n      // Ordering is [f3 pre] -> [f2 pre] -> [f1 pre] -> operation -> [f1 post] -> [f2 post] -> [f3 post]\r\n      mergedFilter = function (originalRequestOptions, parentFilterNext) {\r\n        newFilter.handle(originalRequestOptions, function (postRequestOptions, newFilterCallback) {\r\n          // handle parent filter pre and get Parent filter post\r\n          var next = function (postPostRequestOptions, parentFilterCallback) {\r\n            // The parentFilterNext is the filter next to the merged filter.\r\n            // For 2 filters, that'd be the actual operation.\r\n            parentFilterNext(postPostRequestOptions, function (responseObject, responseCallback, finalCallback) {\r\n              parentFilterCallback(responseObject, finalCallback, function (postResponseObject) {\r\n                newFilterCallback(postResponseObject, responseCallback, finalCallback);\r\n              });\r\n            });\r\n          };\r\n\r\n          parentFilter(postRequestOptions, next);\r\n        });\r\n      };\r\n    }\r\n\r\n    // Store the filter so it can be applied in performRequest\r\n    derived.filter = mergedFilter;\r\n    return derived;\r\n  };\r\n\r\n/*\r\n* Builds a response object with normalized key names.\r\n* @ignore\r\n*\r\n* @param {Bool}     isSuccessful    Boolean value indicating if the request was successful\r\n* @param {Object}   body            The response body.\r\n* @param {Object}   headers         The response headers.\r\n* @param {int}      statusCode      The response status code.\r\n* @param {string}   md5             The response's content md5 hash.\r\n* @return {Object} A response object.\r\n*/\r\nStorageServiceClient._buildResponse = function (isSuccessful, body, headers, statusCode, md5) {\r\n  var response = {\r\n    isSuccessful: isSuccessful,\r\n    statusCode: statusCode,\r\n    body: body,\r\n    headers: headers,\r\n    md5: md5\r\n  };\r\n\r\n  if (!azureutil.objectIsNull(headers)) {\r\n    if (headers[HeaderConstants.REQUEST_SERVER_ENCRYPTED] !== undefined) {\r\n      response.requestServerEncrypted = (headers[HeaderConstants.REQUEST_SERVER_ENCRYPTED] === 'true');\r\n    }\r\n  }\r\n\r\n  return response;\r\n};\r\n\r\n/**\r\n* Parses a server response body from XML or JSON into a JS object.\r\n* This is done using the xml2js library.\r\n* @ignore\r\n*\r\n* @param {object}     response                   The response object with a property \"body\" with a XML or JSON string content.\r\n* @param {object}     xml2jsSettings             The XML to json settings.\r\n* @param {Options}    options                    The response parsing options.\r\n* @param {String}     options.payloadFormat      The payload format.\r\n* @return {object} The same response object with the body part as a JS object instead of a XML or JSON string.\r\n*/\r\nStorageServiceClient._parseResponse = function (response, xml2jsSettings, options) {\r\n  function parseXml(body) {\r\n    var parsed;\r\n    var parser = new xml2js.Parser(xml2jsSettings);\r\n    parser.parseString(azureutil.removeBOM(body.toString()), function (err, parsedBody) {\r\n      if (err) {\r\n        var xmlError = new SyntaxError('EXMLFORMAT');\r\n        xmlError.innerError = err;\r\n        throw xmlError;\r\n      } else { parsed = parsedBody; }\r\n    });\r\n\r\n    return parsed;\r\n  }\r\n\r\n  if (response.body && Buffer.byteLength(response.body.toString()) > 0) {\r\n    var contentType = '';\r\n    if (response.headers && response.headers['content-type']) {\r\n      contentType = response.headers['content-type'].toLowerCase();\r\n    }\r\n\r\n    try {\r\n      if (contentType.indexOf('application/json') !== -1) {\r\n        if (options && options.payloadFormat && options.payloadFormat !== TableUtilities.PayloadFormat.NO_METADATA) {\r\n          var parser = new Parser();\r\n          parser.onValue = function (value) {\r\n            response.body = value;\r\n          };\r\n          parser.write(response.body);\r\n        } else {\r\n          response.body = JSON.parse(response.body);\r\n        }\r\n      } else if (contentType.indexOf('application/xml') !== -1 || contentType.indexOf('application/atom+xml') !== -1) {\r\n        response.body = parseXml(response.body);\r\n      } else if (contentType.indexOf('text/html') !== -1) {\r\n        response.body = response.body;\r\n      } else {\r\n        response.body = parseXml(response.body);\r\n        // throw new SyntaxError(SR.CONTENT_TYPE_MISSING, null);\r\n      }\r\n    } catch (e) {\r\n      response.error = e;\r\n    }\r\n  }\r\n\r\n  return response;\r\n};\r\n\r\n/**\r\n* Gets the storage settings.\r\n*\r\n* @param {string} [storageAccountOrConnectionString]  The storage account or the connection string.\r\n* @param {string} [storageAccessKey]                  The storage access key.\r\n* @param {string} [host]                              The host address.\r\n* @param {object} [sas]                               The Shared Access Signature string.\r\n* @param {TokenCredential} [token]                    The {@link TokenCredential} object.\r\n*\r\n* @return {StorageServiceSettings}\r\n*/\r\nStorageServiceClient.getStorageSettings = function (storageAccountOrConnectionString, storageAccessKey, host, sas, endpointSuffix, token) {\r\n  var storageServiceSettings;\r\n  if (storageAccountOrConnectionString && !storageAccessKey && !sas) {\r\n    // If storageAccountOrConnectionString was passed and no accessKey was passed, assume connection string\r\n    storageServiceSettings = StorageServiceSettings.createFromConnectionString(storageAccountOrConnectionString);\r\n  } else if ((storageAccountOrConnectionString && storageAccessKey) || sas || token || host) {\r\n    // Account and key or credentials or anonymous\r\n    storageServiceSettings = StorageServiceSettings.createExplicitly(storageAccountOrConnectionString, storageAccessKey, host, sas, endpointSuffix, token);\r\n  } else {\r\n    // Use environment variables\r\n    storageServiceSettings = StorageServiceSettings.createFromEnvironment();\r\n  }\r\n\r\n  return storageServiceSettings;\r\n};\r\n\r\n/**\r\n* Sets the webResource's requestUrl based on the service client settings.\r\n* @ignore\r\n*\r\n* @param {WebResource} webResource The web resource where to set the request url.\r\n*/\r\nStorageServiceClient.prototype._setRequestUrl = function (webResource, options) {\r\n  // Normalize the path\r\n  // Backup the original path of the webResource to make sure it works fine even this function get executed multiple times - like RetryFilter\r\n  webResource.originalPath = webResource.originalPath || webResource.path;\r\n  webResource.path = this._getPath(webResource.originalPath);\r\n\r\n  if(!this.host){\r\n    throw new ArgumentNullError('this.host', SR.STORAGE_HOST_LOCATION_REQUIRED);\r\n  }\r\n\r\n  var host = this.host.primaryHost;\r\n\r\n  if(!azureutil.objectIsNull(options) && options.currentLocation === Constants.StorageLocation.SECONDARY) {\r\n    host = this.host.secondaryHost;\r\n  }\r\n\r\n  if(host && host.lastIndexOf('/') !== (host.length - 1)){\r\n    host = host + '/';\r\n  }\r\n\r\n  var fullPath = url.format({pathname: webResource.path, query: webResource.queryString});\r\n  webResource.uri = url.resolve(host, fullPath);\r\n  webResource.path = url.parse(webResource.uri).pathname;\r\n};\r\n\r\n/**\r\n* Retrieves the normalized path to be used in a request.\r\n* It also removes any leading \"/\" of the path in case\r\n* it's there before.\r\n* @ignore\r\n* @param {string} path The path to be normalized.\r\n* @return {string} The normalized path.\r\n*/\r\nStorageServiceClient.prototype._getPath = function (path) {\r\n  if (path === null || path === undefined) {\r\n    path = '';\r\n  } else if (path.indexOf('/') === 0) {\r\n    path = path.substring(1);\r\n  }\r\n\r\n  return path;\r\n};\r\n\r\n/**\r\n * Get the url of a given path\r\n */\r\nStorageServiceClient.prototype._getUrl = function (path, sasToken, primary) {\r\n  var host;\r\n  if (!azureutil.objectIsNull(primary) && primary === false) {\r\n    host = this.host.secondaryHost;\r\n  } else {\r\n    host = this.host.primaryHost;\r\n  }\r\n\r\n  host = azureutil.trimPortFromUri(host);\r\n  if(host && host.lastIndexOf('/') !== (host.length - 1)){\r\n    host = host + '/';\r\n  }\r\n\r\n  var query = qs.parse(sasToken);\r\n  var fullPath = url.format({ pathname: this._getPath(path), query: query });\r\n  return url.resolve(host, fullPath);\r\n};\r\n\r\n/**\r\n* Initializes the default filter.\r\n* This filter is responsible for chaining the pre filters request into the operation and, after processing the response,\r\n* pass it to the post processing filters. This method should only be invoked by the StorageServiceClient constructor.\r\n* @ignore\r\n*\r\n*/\r\nStorageServiceClient.prototype._initDefaultFilter = function () {\r\n  this.filter = function (requestOptions, nextPreCallback) {\r\n    if (nextPreCallback) {\r\n      // Handle the next pre callback and pass the function to be handled as post call back.\r\n      nextPreCallback(requestOptions, function (returnObject, finalCallback, nextPostCallback) {\r\n        if (nextPostCallback) {\r\n          nextPostCallback(returnObject);\r\n        } else if (finalCallback) {\r\n          finalCallback(returnObject);\r\n        }\r\n      });\r\n    }\r\n  };\r\n};\r\n\r\n/**\r\n* Retrieves the metadata headers from the response headers.\r\n* @ignore\r\n*\r\n* @param {object} headers The metadata headers.\r\n* @return {object} An object with the metadata headers (without the \"x-ms-\" prefix).\r\n*/\r\nStorageServiceClient.prototype.parseMetadataHeaders = function (headers) {\r\n  var metadata = {};\r\n\r\n  if (!headers) {\r\n    return metadata;\r\n  }\r\n\r\n  for (var header in headers) {\r\n    if (header.indexOf(HeaderConstants.PREFIX_FOR_STORAGE_METADATA) === 0) {\r\n      var key = header.substr(HeaderConstants.PREFIX_FOR_STORAGE_METADATA.length, header.length - HeaderConstants.PREFIX_FOR_STORAGE_METADATA.length);\r\n      metadata[key] = headers[header];\r\n    }\r\n  }\r\n\r\n  return metadata;\r\n};\r\n\r\n/**\r\n* Gets the properties of a storage account’s service, including Azure Storage Analytics.\r\n* @ignore\r\n*\r\n* @this {StorageServiceClient}\r\n* @param {object}       [options]                               The request options.\r\n* @param {LocationMode} [options.locationMode]                  Specifies the location mode used to decide which location the request should be sent to.\r\n*                                                               Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}          [options.timeoutIntervalInMs]           The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}          [options.clientRequestTimeoutInMs]      The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}          [options.maximumExecutionTimeInMs]      The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                               The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                               execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {bool}         [options.useNagleAlgorithm]             Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                               The default value is false.\r\n* @param {errorOrResult}  callback                              `error` will contain information if an error occurs; otherwise, `result` will contain the properties\r\n*                                                               and `response` will contain information related to this operation.\r\n*/\r\nStorageServiceClient.prototype.getAccountServiceProperties = function (optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getServiceProperties', function (v) {\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var webResource = WebResource.get()\r\n    .withQueryOption(QueryStringConstants.COMP, 'properties')\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'service');\r\n\r\n  options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.servicePropertiesResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.servicePropertiesResult = ServicePropertiesResult.parse(responseObject.response.body.StorageServiceProperties);\r\n    }\r\n\r\n    // function to be called after all filters\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.servicePropertiesResult, returnObject.response);\r\n    };\r\n\r\n    // call the first filter\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Sets the properties of a storage account’s service, including Azure Storage Analytics.\r\n* You can also use this operation to set the default request version for all incoming requests that do not have a version specified.\r\n*\r\n* @this {StorageServiceClient}\r\n* @param {object}             serviceProperties                        The service properties.\r\n* @param {object}             [options]                                The request options.\r\n* @param {LocationMode}       [options.locationMode]                   Specifies the location mode used to decide which location the request should be sent to.\r\n*                                                                      Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]            The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]       The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]       The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                      The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                      execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {bool}               [options.useNagleAlgorithm]              Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                      The default value is false.\r\n* @param {errorOrResponse}    callback                                 `error` will contain information\r\n*                                                                      if an error occurs; otherwise, `response`\r\n*                                                                      will contain information related to this operation.\r\n*/\r\nStorageServiceClient.prototype.setAccountServiceProperties = function (serviceProperties, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('setServiceProperties', function (v) {\r\n    v.object(serviceProperties, 'serviceProperties');\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var servicePropertiesXml = ServicePropertiesResult.serialize(serviceProperties);\r\n\r\n  var webResource = WebResource.put()\r\n    .withQueryOption(QueryStringConstants.COMP, 'properties')\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'service')\r\n    .withHeader(HeaderConstants.CONTENT_TYPE, 'application/xml;charset=\"utf-8\"')\r\n    .withHeader(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(servicePropertiesXml))\r\n    .withBody(servicePropertiesXml);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, webResource.body, options, processResponseCallback);\r\n};\r\n\r\n// Other functions\r\n\r\n/**\r\n* Processes the error body into a normalized error object with all the properties lowercased.\r\n*\r\n* Error information may be returned by a service call with additional debugging information:\r\n* http://msdn.microsoft.com/en-us/library/windowsazure/dd179382.aspx\r\n*\r\n* Table services returns these properties lowercased, example, \"code\" instead of \"Code\". So that the user\r\n* can always expect the same format, this method lower cases everything.\r\n*\r\n* @ignore\r\n*\r\n* @param {Object} error The error object as returned by the service and parsed to JSON by the xml2json.\r\n* @return {Object} The normalized error object with all properties lower cased.\r\n*/\r\nStorageServiceClient._normalizeError = function (error, response) {\r\n  if (azureutil.objectIsString(error)) {\r\n    return new StorageError(error, null);\r\n  } else if (error) {\r\n    var normalizedError = {};\r\n\r\n    // blob/queue errors should have error.Error, table errors should have error['odata.error']\r\n    var errorProperties = error.Error || error.error || error['odata.error'] || error['m:error'] || error;\r\n    normalizedError.code = errorProperties.message; // The message exists when there is error.Error.\r\n\r\n    for (var property in errorProperties) {\r\n      if (errorProperties.hasOwnProperty(property)) {\r\n        var key = property.toLowerCase();\r\n        if(key.indexOf('m:') === 0) {\r\n          key = key.substring(2);\r\n        }\r\n\r\n        normalizedError[key] = errorProperties[property];\r\n\r\n        // if this is a table error, message is an object - flatten it to normalize with blob/queue errors\r\n        // ex: \"message\":{\"lang\":\"en-US\",\"value\":\"The specified resource does not exist.\"} becomes message: \"The specified resource does not exist.\"\r\n        if (key === 'message' && _.isObject(errorProperties[property])) {\r\n          if (errorProperties[property]['value']) {\r\n            normalizedError[key] = errorProperties[property]['value'];\r\n          }\r\n        }\r\n      }\r\n    }\r\n\r\n    // add status code and server request id if available\r\n    if (response) {\r\n      if (response.statusCode) {\r\n        normalizedError.statusCode = response.statusCode;\r\n      }\r\n\r\n      if (response.headers && response.headers['x-ms-request-id']) {\r\n        normalizedError.requestId = response.headers['x-ms-request-id'];\r\n      }\r\n    }\r\n\r\n    var errorObject = new StorageError(normalizedError.code, normalizedError);\r\n    return errorObject;\r\n  }\r\n\r\n  return null;\r\n};\r\n\r\n/**\r\n* Sets proxy object specified by caller.\r\n*\r\n* @param {object}   proxy       proxy to use for tunneling\r\n*                               {\r\n*                                host: hostname\r\n*                                port: port number\r\n*                                proxyAuth: 'user:password' for basic auth\r\n*                                headers: {...} headers for proxy server\r\n*                                key: key for proxy server\r\n*                                ca: ca for proxy server\r\n*                                cert: cert for proxy server\r\n*                               }\r\n*                               if null or undefined, clears proxy\r\n*/\r\nStorageServiceClient.prototype.setProxy = function (proxy) {\r\n  if (proxy) {\r\n    this.proxy = proxy;\r\n  } else {\r\n    this.proxy = null;\r\n  }\r\n};\r\n\r\n/**\r\n* Sets the service host default proxy from the environment.\r\n* Can be overridden by calling _setProxyUrl or _setProxy\r\n*\r\n*/\r\nStorageServiceClient.prototype._setDefaultProxy = function () {\r\n  var proxyUrl = StorageServiceClient._loadEnvironmentProxyValue();\r\n  if (proxyUrl) {\r\n    var parsedUrl = url.parse(proxyUrl);\r\n    if (!parsedUrl.port) {\r\n      parsedUrl.port = 80;\r\n    }\r\n    this.setProxy(parsedUrl);\r\n  } else {\r\n    this.setProxy(null);\r\n  }\r\n};\r\n\r\n/*\r\n* Loads the fields \"useProxy\" and respective protocol, port and url\r\n* from the environment values HTTPS_PROXY and HTTP_PROXY\r\n* in case those are set.\r\n* @ignore\r\n*\r\n* @return {string} or null\r\n*/\r\nStorageServiceClient._loadEnvironmentProxyValue = function () {\r\n  var proxyUrl = null;\r\n  if (process.env[StorageServiceClientConstants.EnvironmentVariables.HTTPS_PROXY]) {\r\n    proxyUrl = process.env[StorageServiceClientConstants.EnvironmentVariables.HTTPS_PROXY];\r\n  } else if (process.env[StorageServiceClientConstants.EnvironmentVariables.HTTPS_PROXY.toLowerCase()]) {\r\n    proxyUrl = process.env[StorageServiceClientConstants.EnvironmentVariables.HTTPS_PROXY.toLowerCase()];\r\n  } else if (process.env[StorageServiceClientConstants.EnvironmentVariables.HTTP_PROXY]) {\r\n    proxyUrl = process.env[StorageServiceClientConstants.EnvironmentVariables.HTTP_PROXY];\r\n  } else if (process.env[StorageServiceClientConstants.EnvironmentVariables.HTTP_PROXY.toLowerCase()]) {\r\n    proxyUrl = process.env[StorageServiceClientConstants.EnvironmentVariables.HTTP_PROXY.toLowerCase()];\r\n  }\r\n\r\n  return proxyUrl;\r\n};\r\n\r\n/**\r\n* Initializes the location to which the operation is being sent to.\r\n*/\r\nStorageServiceClient.prototype._initializeLocation = function (options) {\r\n  if(!azureutil.objectIsNull(options.locationMode)) {\r\n    switch(options.locationMode) {\r\n    case StorageUtilities.LocationMode.PRIMARY_ONLY:\r\n    case StorageUtilities.LocationMode.PRIMARY_THEN_SECONDARY:\r\n      options.currentLocation = Constants.StorageLocation.PRIMARY;\r\n      break;\r\n    case StorageUtilities.LocationMode.SECONDARY_ONLY:\r\n    case StorageUtilities.LocationMode.SECONDARY_THEN_PRIMARY:\r\n      options.currentLocation = Constants.StorageLocation.SECONDARY;\r\n      break;\r\n    default:\r\n      throw new RangeError(util.format(SR.ARGUMENT_OUT_OF_RANGE_ERROR, 'locationMode', options.locationMode));\r\n    }\r\n  } else {\r\n    options.locationMode = StorageUtilities.LocationMode.PRIMARY_ONLY;\r\n    options.currentLocation = Constants.StorageLocation.PRIMARY;\r\n  }\r\n};\r\n\r\n/**\r\n* Validates the location to which the operation is being sent to.\r\n*/\r\nStorageServiceClient.prototype._validateLocation = function (options) {\r\n  if(this._invalidLocationMode(options.locationMode)) {\r\n    throw new ArgumentNullError('host', SR.STORAGE_HOST_MISSING_LOCATION);\r\n  }\r\n\r\n  switch(options.requestLocationMode) {\r\n  case Constants.RequestLocationMode.PRIMARY_ONLY:\r\n    if(options.locationMode === StorageUtilities.LocationMode.SECONDARY_ONLY) {\r\n      throw new ArgumentError('host.primaryHost', SR.PRIMARY_ONLY_COMMAND);\r\n    }\r\n\r\n    options.currentLocation = Constants.StorageLocation.PRIMARY;\r\n    options.locationMode = StorageUtilities.LocationMode.PRIMARY_ONLY;\r\n    break;\r\n\r\n  case Constants.RequestLocationMode.SECONDARY_ONLY:\r\n    if(options.locationMode === StorageUtilities.LocationMode.PRIMARY_ONLY) {\r\n      throw new ArgumentError('host.secondaryHost', SR.SECONDARY_ONLY_COMMAND);\r\n    }\r\n\r\n    options.currentLocation = Constants.StorageLocation.SECONDARY;\r\n    options.locationMode = StorageUtilities.LocationMode.SECONDARY_ONLY;\r\n    break;\r\n\r\n  default:\r\n   // no op\r\n  }\r\n};\r\n\r\n/**\r\n* Checks whether we have the relevant host information based on the locationMode.\r\n*/\r\nStorageServiceClient.prototype._invalidLocationMode = function (locationMode) {\r\n  switch(locationMode) {\r\n  case StorageUtilities.LocationMode.PRIMARY_ONLY:\r\n    return azureutil.objectIsNull(this.host.primaryHost);\r\n  case StorageUtilities.LocationMode.SECONDARY_ONLY:\r\n    return azureutil.objectIsNull(this.host.secondaryHost);\r\n  default:\r\n    return (azureutil.objectIsNull(this.host.primaryHost) || azureutil.objectIsNull(this.host.secondaryHost));\r\n  }\r\n};\r\n\r\n/**\r\n* Checks to see if the maximum execution timeout provided has been exceeded.\r\n*/\r\nStorageServiceClient.prototype._maximumExecutionTimeExceeded = function (currentTime, expiryTime) {\r\n  if(!azureutil.objectIsNull(expiryTime) && currentTime > expiryTime) {\r\n    return true;\r\n  } else {\r\n    return false;\r\n  }\r\n};\r\n\r\n/**\r\n* Sets the operation expiry time.\r\n*/\r\nStorageServiceClient.prototype._setOperationExpiryTime = function (options) {\r\n  if(azureutil.objectIsNull(options.operationExpiryTime)) {\r\n    if(!azureutil.objectIsNull(options.maximumExecutionTimeInMs)) {\r\n      options.operationExpiryTime = Date.now() + options.maximumExecutionTimeInMs;\r\n    } else if(this.defaultMaximumExecutionTimeInMs) {\r\n      options.operationExpiryTime = Date.now() + this.defaultMaximumExecutionTimeInMs;\r\n    }\r\n  }\r\n};\r\n\r\nmodule.exports = StorageServiceClient;\r\n\r\n}).call(this,require('_process'),require(\"buffer\").Buffer)\r\n},{\"../../services/table/tableutilities\":50,\"../diagnostics/logger\":4,\"../errors/errors\":5,\"../http/webresource\":9,\"../md5-wrapper\":10,\"../models/servicepropertiesresult\":13,\"../request-wrapper\":16,\"../signing/sharedaccesssignature\":20,\"../signing/sharedkey\":21,\"../signing/tokensigner\":22,\"../streams/bufferstream.js\":25,\"../util/constants\":32,\"../util/sr\":36,\"../util/storageutilities\":37,\"../util/util\":38,\"../util/validate\":39,\"./servicesettings\":17,\"./storageservicesettings\":19,\"_process\":72,\"buffer\":56,\"events\":59,\"extend\":60,\"json-edm-parser\":67,\"os\":70,\"querystring\":75,\"underscore\":111,\"url\":112,\"util\":117,\"uuid\":118,\"xml2js\":194}],19:[function(require,module,exports){\r\n(function (process){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n'use strict';\r\n\r\nvar _ = require('underscore');\r\nvar url = require('url');\r\n\r\nvar util = require('../util/util');\r\nvar ServiceSettings = require('./servicesettings');\r\nvar Constants = require('../util/constants');\r\nvar StorageServiceClientConstants = Constants.StorageServiceClientConstants;\r\nvar ConnectionStringKeys = Constants.ConnectionStringKeys;\r\nvar Validate = require('../util/validate');\r\nvar SR = require('../util/sr');\r\nvar TokenCredential = require('../models/tokencredential');\r\n\r\nvar useDevelopmentStorageSetting = ServiceSettings.setting(ConnectionStringKeys.USE_DEVELOPMENT_STORAGE_NAME, true);\r\nvar developmentStorageProxyUriSetting = ServiceSettings.settingWithFunc(ConnectionStringKeys.DEVELOPMENT_STORAGE_PROXY_URI_NAME, Validate.isValidUri);\r\nvar defaultEndpointsProtocolSetting = ServiceSettings.setting(ConnectionStringKeys.DEFAULT_ENDPOINTS_PROTOCOL_NAME, 'http', 'https');\r\nvar accountNameSetting = ServiceSettings.setting(ConnectionStringKeys.ACCOUNT_NAME_NAME);\r\nvar accountKeySetting = ServiceSettings.settingWithFunc(ConnectionStringKeys.ACCOUNT_KEY_NAME, Validate.isBase64Encoded);\r\nvar sasSetting = ServiceSettings.settingWithFunc(ConnectionStringKeys.SHARED_ACCESS_SIGNATURE_NAME, _.isString);\r\nvar tokenSetting = ServiceSettings.settingWithFunc('token', function (object) {return object instanceof TokenCredential;});\r\n\r\nvar blobEndpointSetting = ServiceSettings.settingWithFunc(\r\n  ConnectionStringKeys.BLOB_ENDPOINT_NAME,\r\n  Validate.isValidHost\r\n);\r\n\r\nvar queueEndpointSetting = ServiceSettings.settingWithFunc(\r\n  ConnectionStringKeys.QUEUE_ENDPOINT_NAME,\r\n  Validate.isValidHost\r\n);\r\n\r\nvar tableEndpointSetting = ServiceSettings.settingWithFunc(\r\n  ConnectionStringKeys.TABLE_ENDPOINT_NAME,\r\n  Validate.isValidHost\r\n);\r\n\r\nvar fileEndpointSetting = ServiceSettings.settingWithFunc(\r\n  ConnectionStringKeys.FILE_ENDPOINT_NAME,\r\n  Validate.isValidHost\r\n);\r\n\r\nvar endpointSuffixSetting = ServiceSettings.settingWithFunc(\r\n  ConnectionStringKeys.ENDPOINT_SUFFIX_NAME,\r\n  Validate.isValidHost\r\n);\r\n\r\nvar validKeys = [\r\n  ConnectionStringKeys.USE_DEVELOPMENT_STORAGE_NAME,\r\n  ConnectionStringKeys.DEVELOPMENT_STORAGE_PROXY_URI_NAME,\r\n  ConnectionStringKeys.DEFAULT_ENDPOINTS_PROTOCOL_NAME,\r\n  ConnectionStringKeys.ACCOUNT_NAME_NAME,\r\n  ConnectionStringKeys.ACCOUNT_KEY_NAME,\r\n  ConnectionStringKeys.SHARED_ACCESS_SIGNATURE_NAME,\r\n  ConnectionStringKeys.BLOB_ENDPOINT_NAME,\r\n  ConnectionStringKeys.QUEUE_ENDPOINT_NAME,\r\n  ConnectionStringKeys.TABLE_ENDPOINT_NAME,\r\n  ConnectionStringKeys.FILE_ENDPOINT_NAME,\r\n  ConnectionStringKeys.ENDPOINT_SUFFIX_NAME\r\n];\r\n\r\n/**\r\n* Creates new storage service settings instance.\r\n*\r\n* @param {string} name                      The storage service name.\r\n* @param {string} key                       The storage service key.\r\n* @param {string} sasToken                  The storage service shared access signature token.\r\n* @param {string} blobEndpoint              The storage service blob endpoint.\r\n* @param {string} queueEndpoint             The storage service queue endpoint.\r\n* @param {string} tableEndpoint             The storage service table endpoint.\r\n* @param {string} fileEndpoint              The storage service file endpoint.\r\n* @param {bool}   usePathStyleUri           Boolean value indicating wether to use path style uri or not.\r\n* @param {TokenCredential} [token]          The {@link TokenCredential} object.\r\n*/\r\nfunction StorageServiceSettings(name, key, sasToken, blobEndpoint, queueEndpoint, tableEndpoint, fileEndpoint, usePathStyleUri, token) {\r\n  this._name = name;\r\n  this._key = key;\r\n\r\n  if (sasToken && sasToken[0] === '?') {\r\n    this._sasToken = sasToken.slice(1);\r\n  } else {\r\n    this._sasToken = sasToken;\r\n  }\r\n\r\n  this._blobEndpoint = blobEndpoint;\r\n  this._queueEndpoint = queueEndpoint;\r\n  this._tableEndpoint = tableEndpoint;\r\n  this._fileEndpoint = fileEndpoint;\r\n\r\n  if (usePathStyleUri) {\r\n    this._usePathStyleUri = usePathStyleUri;\r\n  } else {\r\n    this._usePathStyleUri = false;\r\n  }\r\n\r\n  this._token = token;\r\n}\r\n\r\n/**\r\n* Creates a StorageServiceSettings object from the given connection string.\r\n*\r\n* @param {string} connectionString The storage settings connection string.\r\n* @return {StorageServiceSettings}\r\n*/\r\nStorageServiceSettings.createFromConnectionString = function (connectionString) {\r\n  var tokenizedSettings = ServiceSettings.parseAndValidateKeys(connectionString, validKeys);\r\n\r\n  try {\r\n    return StorageServiceSettings.createFromSettings(tokenizedSettings);\r\n  } catch (e) {\r\n    if (e instanceof ServiceSettings.NoMatchError) {\r\n      // Replace no match settings exception by no match connection string one.\r\n      ServiceSettings.noMatchConnectionString(connectionString);\r\n    } else {\r\n      throw e;\r\n    }\r\n  }\r\n};\r\n\r\nStorageServiceSettings.createExplicitly = function (storageAccount, storageAccessKey, host, sasToken, endpointSuffix, token) {\r\n  var settings = {};\r\n  function addIfNotNullOrEmpty(key, value){\r\n    if(typeof value === 'string' && !util.stringIsEmpty(value)){\r\n      settings[key] = value;\r\n    } else if (typeof value == 'object' && !util.objectIsNull(value)) {\r\n      settings[key] = value;\r\n    }\r\n  }\r\n\r\n  // Endpoints\r\n  if (host) {\r\n    addIfNotNullOrEmpty('blobendpoint', host);\r\n    addIfNotNullOrEmpty('tableendpoint', host);\r\n    addIfNotNullOrEmpty('queueendpoint', host);\r\n    addIfNotNullOrEmpty('fileendpoint', host);\r\n  } else {\r\n    addIfNotNullOrEmpty('defaultendpointsprotocol', ServiceSettings.DEFAULT_PROTOCOL.split(':', 1)[0]);\r\n  }\r\n\r\n  addIfNotNullOrEmpty('accountname', storageAccount);\r\n  addIfNotNullOrEmpty('accountkey', storageAccessKey);\r\n  addIfNotNullOrEmpty('sharedaccesssignature', sasToken);\r\n  addIfNotNullOrEmpty('endpointsuffix', endpointSuffix);\r\n  addIfNotNullOrEmpty('token', token);\r\n\r\n  return StorageServiceSettings.createFromSettings(settings);\r\n};\r\n\r\nStorageServiceSettings.createFromEnvironment = function () {\r\n  var emulated = process.env[StorageServiceClientConstants.EnvironmentVariables.EMULATED];\r\n  if (emulated) {\r\n    return StorageServiceSettings.getDevelopmentStorageAccountSettings();\r\n  } \r\n\r\n  var connectionString = process.env[StorageServiceClientConstants.EnvironmentVariables.AZURE_STORAGE_CONNECTION_STRING];\r\n  if (connectionString) {\r\n    return StorageServiceSettings.createFromConnectionString(connectionString);\r\n  } \r\n\r\n  var storageAccount = process.env[StorageServiceClientConstants.EnvironmentVariables.AZURE_STORAGE_ACCOUNT];\r\n  var storageAccessKey = process.env[StorageServiceClientConstants.EnvironmentVariables.AZURE_STORAGE_ACCESS_KEY];\r\n  if(storageAccount && storageAccessKey){\r\n    return StorageServiceSettings.createExplicitly(storageAccount, storageAccessKey, null, null, null);\r\n  }\r\n\r\n  throw new Error(SR.NO_CREDENTIALS_PROVIDED);\r\n};\r\n\r\n/**\r\n* Creates a StorageServiceSettings object from a set of settings.\r\n*\r\n* @param {object} settings The settings object.\r\n* @return {StorageServiceSettings}\r\n*/\r\nStorageServiceSettings.createFromSettings = function (settings) {\r\n  // Devstore case\r\n  var matchedSpecs = ServiceSettings.matchedSpecification(\r\n    settings,\r\n    ServiceSettings.allRequired(useDevelopmentStorageSetting),\r\n    ServiceSettings.optional(developmentStorageProxyUriSetting)\r\n  );\r\n\r\n  if (matchedSpecs) {\r\n    var proxyUri = util.tryGetValueInsensitive(\r\n      ConnectionStringKeys.DEVELOPMENT_STORAGE_PROXY_URI_NAME,\r\n      settings\r\n    );\r\n\r\n    return this.getDevelopmentStorageAccountSettings(proxyUri);\r\n  }\r\n\r\n  // Account/Key automatic case\r\n  matchedSpecs = ServiceSettings.matchedSpecification(\r\n    settings,\r\n    ServiceSettings.allRequired(\r\n      defaultEndpointsProtocolSetting,\r\n      accountNameSetting,\r\n      accountKeySetting\r\n    ), \r\n    ServiceSettings.optional(\r\n      blobEndpointSetting,\r\n      queueEndpointSetting,\r\n      tableEndpointSetting,\r\n      fileEndpointSetting,\r\n      endpointSuffixSetting\r\n    )\r\n  );\r\n\r\n  if (matchedSpecs) {  \r\n    return this._createStorageServiceSettings(settings);\r\n  }\r\n\r\n  // Account/Key explicit case\r\n  matchedSpecs = ServiceSettings.matchedSpecification(\r\n    settings,\r\n    ServiceSettings.allRequired(\r\n      accountNameSetting,\r\n      accountKeySetting\r\n    ),\r\n    ServiceSettings.atLeastOne(\r\n      blobEndpointSetting,\r\n      queueEndpointSetting,\r\n      tableEndpointSetting,\r\n      fileEndpointSetting,\r\n      endpointSuffixSetting\r\n    )\r\n  );\r\n\r\n  if (matchedSpecs) {  \r\n    return this._createStorageServiceSettings(settings);\r\n  }\r\n\r\n  // SAS case\r\n  matchedSpecs = ServiceSettings.matchedSpecification(\r\n    settings,\r\n    ServiceSettings.allRequired(\r\n      sasSetting\r\n    ),\r\n    ServiceSettings.atLeastOne(\r\n      blobEndpointSetting,\r\n      queueEndpointSetting,\r\n      tableEndpointSetting,\r\n      fileEndpointSetting,\r\n      endpointSuffixSetting\r\n    )\r\n  );\r\n\r\n  if(matchedSpecs) {\r\n    return this._createStorageServiceSettings(settings);\r\n  }\r\n\r\n  // anonymous explicit case\r\n  // Only blob anonymous access is valid.\r\n  matchedSpecs = ServiceSettings.matchedSpecification(\r\n    settings,\r\n    ServiceSettings.allRequired(\r\n      blobEndpointSetting\r\n    ),\r\n    ServiceSettings.optional(\r\n      fileEndpointSetting,\r\n      queueEndpointSetting,\r\n      tableEndpointSetting,\r\n      endpointSuffixSetting\r\n    )\r\n  );\r\n\r\n  if(matchedSpecs) {\r\n    return this._createStorageServiceSettings(settings);\r\n  }\r\n\r\n  // Token case\r\n  matchedSpecs = ServiceSettings.matchedSpecification(\r\n    settings,\r\n    ServiceSettings.allRequired(\r\n      tokenSetting\r\n    ),\r\n    ServiceSettings.atLeastOne(\r\n      blobEndpointSetting,\r\n      queueEndpointSetting,\r\n      tableEndpointSetting,\r\n      fileEndpointSetting\r\n    )\r\n  );\r\n\r\n  if(matchedSpecs) {\r\n    return this._createStorageServiceSettings(settings);\r\n  }\r\n\r\n  ServiceSettings.noMatchSettings(settings);\r\n};\r\n\r\n/**\r\n* Returns a StorageServiceSettings with development storage credentials using\r\n* the specified proxy Uri.\r\n*\r\n* @param {string} proxyUri The proxy endpoint to use.\r\n* @return {StorageServiceSettings}\r\n*/\r\nStorageServiceSettings.getDevelopmentStorageAccountSettings = function (proxyUri) {\r\n  if (!proxyUri) {\r\n    proxyUri = StorageServiceClientConstants.DEV_STORE_URI;\r\n  }\r\n\r\n  var parsedUri = url.parse(proxyUri);\r\n  var scheme = parsedUri.protocol;\r\n  var host   = parsedUri.host;\r\n  var prefix = scheme + '//' + host;\r\n\r\n  var blobEndpoint = {\r\n    primaryHost: prefix + ':10000' + '/' + StorageServiceClientConstants.DEVSTORE_STORAGE_ACCOUNT,\r\n    secondaryHost: prefix + ':10000' + '/' + StorageServiceClientConstants.DEVSTORE_STORAGE_ACCOUNT + '-secondary'\r\n  };\r\n\r\n  var queueEndpoint = {\r\n    primaryHost: prefix + ':10001' + '/' + StorageServiceClientConstants.DEVSTORE_STORAGE_ACCOUNT,\r\n    secondaryHost: prefix + ':10001' + '/' + StorageServiceClientConstants.DEVSTORE_STORAGE_ACCOUNT + '-secondary'\r\n  };\r\n\r\n  var tableEndpoint = {\r\n    primaryHost: prefix + ':10002' + '/' + StorageServiceClientConstants.DEVSTORE_STORAGE_ACCOUNT,\r\n    secondaryHost: prefix + ':10002' + '/' + StorageServiceClientConstants.DEVSTORE_STORAGE_ACCOUNT + '-secondary'\r\n  };\r\n\r\n  return new StorageServiceSettings(\r\n    StorageServiceClientConstants.DEVSTORE_STORAGE_ACCOUNT,\r\n    StorageServiceClientConstants.DEVSTORE_STORAGE_ACCESS_KEY,\r\n    null,\r\n    blobEndpoint,\r\n    queueEndpoint,\r\n    tableEndpoint,\r\n    null,\r\n    true\r\n  );\r\n};\r\n\r\n/**\r\n* Creates StorageServiceSettings object given endpoints uri.\r\n*\r\n* @ignore\r\n* @param {array}  settings         The service settings.\r\n* @param {string} blobEndpointUri  The blob endpoint uri.\r\n* @param {string} queueEndpointUri The queue endpoint uri.\r\n* @param {string} tableEndpointUri The table endpoint uri.\r\n* @param {string} fileEndpointUri  The file endpoint uri.\r\n* @return {StorageServiceSettings}\r\n*/\r\nStorageServiceSettings._createStorageServiceSettings = function (settings) {\r\n  var standardizeHost = function (host, accountName, scheme, dns){\r\n    var storageHost;\r\n    if (host) {\r\n      storageHost = {};\r\n      storageHost.primaryHost = _.isString(host) ? host : host.primaryHost;\r\n      storageHost.secondaryHost = _.isString(host) ? undefined : host.secondaryHost;\r\n    }\r\n\r\n    if (scheme && accountName && dns) {\r\n      storageHost = storageHost ? storageHost : {};\r\n      storageHost.primaryHost = storageHost.primaryHost ? storageHost.primaryHost : url.format({ protocol: scheme, hostname: accountName + '.' + dns});\r\n      storageHost.secondaryHost = storageHost.secondaryHost ? storageHost.secondaryHost : url.format({ protocol: scheme, hostname: accountName + '-secondary.' + dns});\r\n    }\r\n\r\n    return storageHost;\r\n  };\r\n\r\n  var scheme = util.tryGetValueInsensitive(\r\n    ConnectionStringKeys.DEFAULT_ENDPOINTS_PROTOCOL_NAME,\r\n    settings\r\n  );\r\n\r\n  var accountName = util.tryGetValueInsensitive(\r\n    ConnectionStringKeys.ACCOUNT_NAME_NAME,\r\n    settings\r\n  );\r\n\r\n  var accountKey = util.tryGetValueInsensitive(\r\n    ConnectionStringKeys.ACCOUNT_KEY_NAME,\r\n    settings\r\n  );\r\n\r\n  var sasToken = util.tryGetValueInsensitive(\r\n    ConnectionStringKeys.SHARED_ACCESS_SIGNATURE_NAME,\r\n    settings\r\n  );\r\n\r\n  var endpointSuffix = util.tryGetValueInsensitive(\r\n    ConnectionStringKeys.ENDPOINT_SUFFIX_NAME,\r\n    settings\r\n  );\r\n\r\n  var token = util.tryGetValueInsensitive(\r\n    'token',\r\n    settings\r\n  );\r\n\r\n  var blobEndpoint = standardizeHost(\r\n      util.tryGetValueInsensitive(ConnectionStringKeys.BLOB_ENDPOINT_NAME, settings),\r\n      accountName,\r\n      scheme,\r\n      endpointSuffix ? 'blob.' + endpointSuffix : StorageServiceClientConstants.CLOUD_BLOB_HOST);\r\n\r\n  var queueEndpoint = standardizeHost(\r\n      util.tryGetValueInsensitive(ConnectionStringKeys.QUEUE_ENDPOINT_NAME, settings),\r\n      accountName,\r\n      scheme,\r\n      endpointSuffix ? 'queue.' + endpointSuffix : StorageServiceClientConstants.CLOUD_QUEUE_HOST);\r\n\r\n  var tableEndpoint = standardizeHost(\r\n      util.tryGetValueInsensitive(ConnectionStringKeys.TABLE_ENDPOINT_NAME, settings),\r\n      accountName,\r\n      scheme,\r\n      endpointSuffix ? 'table.' + endpointSuffix : StorageServiceClientConstants.CLOUD_TABLE_HOST);\r\n\r\n  var fileEndpoint = standardizeHost(\r\n      util.tryGetValueInsensitive(ConnectionStringKeys.FILE_ENDPOINT_NAME, settings),\r\n      accountName,\r\n      scheme,\r\n      endpointSuffix ? 'file.' + endpointSuffix : StorageServiceClientConstants.CLOUD_FILE_HOST);\r\n\r\n\r\n  return new StorageServiceSettings(\r\n    accountName,\r\n    accountKey,\r\n    sasToken,\r\n    blobEndpoint,\r\n    queueEndpoint,\r\n    tableEndpoint,\r\n    fileEndpoint,\r\n    token \r\n  );\r\n};\r\n\r\nStorageServiceSettings.validKeys = validKeys;\r\n\r\nexports = module.exports = StorageServiceSettings;\r\n}).call(this,require('_process'))\r\n},{\"../models/tokencredential\":15,\"../util/constants\":32,\"../util/sr\":36,\"../util/util\":38,\"../util/validate\":39,\"./servicesettings\":17,\"_process\":72,\"underscore\":111,\"url\":112}],20:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\nvar Constants = require('./../util/constants');\r\nvar SR = require('./../util/sr');\r\n\r\n/**\r\n* Creates a new SharedAccessSignature object.\r\n*\r\n* @constructor\r\n* @param {string} sasToken    The sasToken.\r\n*/\r\nfunction SharedAccessSignature(sasToken) {\r\n  this.sasToken = sasToken;\r\n}\r\n\r\n/**\r\n* Signs a request with the signature header.\r\n*\r\n* @this {SharedAccessSignature}\r\n* @param {WebResource} The webresource to be signed.\r\n* @param {function(error)}  callback  The callback function.\r\n*/\r\nSharedAccessSignature.prototype.signRequest = function (webResource, callback) {\r\n  if (webResource.uri.indexOf('?') === -1) {\r\n    webResource.uri += '?';\r\n  } else {\r\n    webResource.uri += '&';\r\n  }\r\n\r\n  webResource.uri += this.sasToken;\r\n\r\n  // Add the api-version\r\n  if (this.sasToken.indexOf('api-version') == -1) {\r\n    webResource.uri += '&' + Constants.QueryStringConstants.API_VERSION + '=' + Constants.HeaderConstants.TARGET_STORAGE_VERSION;\r\n  } else {\r\n    throw new SyntaxError(SR.INVALID_SAS_TOKEN);\r\n  }\r\n  callback(null);\r\n};\r\n\r\nmodule.exports = SharedAccessSignature;\r\n\r\n},{\"./../util/constants\":32,\"./../util/sr\":36}],21:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n/**\r\n* Creates a new SharedKey object.\r\n*\r\n* @constructor\r\n* @param {string} storageAccount    The storage account.\r\n* @param {string} storageAccessKey  The storage account's access key.\r\n* @param {bool}   usePathStyleUri   Boolean value indicating if the path, or the hostname, should include the storage account.\r\n*/\r\nfunction SharedKey(storageAccount, storageAccessKey, usePathStyleUri) {\r\n  throw Error('Key based authentication or SAS generation is only available in Node.js runtime!');\r\n}\r\n\r\nmodule.exports = SharedKey;\r\n},{}],22:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar Constants = require('../util/constants');\r\nvar HeaderConstants = Constants.HeaderConstants;\r\n\r\n/**\r\n* Creates a new TokenSigner object.\r\n*\r\n* @constructor\r\n* @param {TokenCredential} tokenCredential The token credential, such as containing an OAuth access token.\r\n*/\r\nfunction TokenSigner (tokenCredential) {\r\n  this.tokenCredential = tokenCredential;\r\n}\r\n\r\n/**\r\n* Signs a request with the Authentication header.\r\n*\r\n* @param {WebResource}      webResource The webresource to be signed.\r\n* @param {function(error)}  callback    The callback function.\r\n*/\r\nTokenSigner.prototype.signRequest = function (webResource, callback) {\r\n  webResource.withHeader(HeaderConstants.AUTHORIZATION, 'Bearer ' + this.tokenCredential.get());\r\n  callback(null);\r\n};\r\n\r\nmodule.exports = TokenSigner;\r\n},{\"../util/constants\":32}],23:[function(require,module,exports){\r\n(function (process){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar util = require('util');\r\nvar http = require('http');\r\nvar https = require('https');\r\nvar EventEmitter = require('events').EventEmitter;\r\nvar os = require('os');\r\n\r\nvar azureutil = require('../util/util');\r\nvar Logger = require('../diagnostics/logger');\r\nvar Constants = require('../util/constants');\r\nvar errors = require('../errors/errors');\r\nvar ArgumentError = errors.ArgumentError;\r\n\r\nvar DEFAULT_OPERATION_MEMORY_USAGE = Constants.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\nvar DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES = Constants.BlobConstants.DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES;\r\nvar DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES = Constants.BlobConstants.DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES;\r\nvar DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES = Constants.BlobConstants.DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES;\r\nvar DEFAULT_GLOBAL_CONCURRENCY = 5; //Default http connection limitation for nodejs\r\n\r\nvar SystemTotalMemory = os.totalmem();\r\nvar CriticalFreeMemory = 0.1 * SystemTotalMemory;\r\nvar nodeVersion = azureutil.getNodeVersion();\r\n\r\n/**\r\n* Concurrently execute batch operations and call operation callback randomly or in sequence.\r\n* Random mode is for uploading.\r\n*   1. Fire user callback when the operation is done.\r\n* Sequence mode is for downloading.\r\n*   1. Fire user callback when the operation is done and all previous operations and callback has finished.\r\n*   2. BatchOperation guarantees the user callback is fired one by one.\r\n*   3. The next user callback can't be fired until the current one is completed.\r\n*/\r\nfunction BatchOperation(name, options) {\r\n  if (!options) {\r\n    options = {};\r\n  }\r\n\r\n  this.name = name;\r\n  this.logger = options.logger || new Logger(Logger.LogLevels.INFO);\r\n  this.operationMemoryUsage = options.operationMemoryUsage || DEFAULT_OPERATION_MEMORY_USAGE;\r\n  this.callbackInOrder = options.callbackInOrder === true;\r\n  this.callInOrder = options.callInOrder === true;\r\n  this._currentOperationId = this.callbackInOrder ? 1 : -1;\r\n  this.concurrency = DEFAULT_GLOBAL_CONCURRENCY;\r\n  this.enableReuseSocket = (nodeVersion.major > 0 || nodeVersion.minor >= 10) && options.enableReuseSocket;\r\n\r\n  this._emitter = new EventEmitter();\r\n  this._enableComplete = false;\r\n  this._ended = false;\r\n  this._error = null;\r\n  this._paused = false;\r\n\r\n  //Total operations count(queued and active and connected)\r\n  this._totalOperation = 0;\r\n\r\n  //Action operations count(The operations which are connecting to remote or executing callback or queued for executing)\r\n  this._activeOperation = 0;\r\n\r\n  //Queued operations count(The operations which are connecting to remote or queued for executing)\r\n  this._queuedOperation = 0;\r\n\r\n  //finished operation should be removed from this array\r\n  this._operations = [];\r\n}\r\n\r\n/**\r\n* Operation state\r\n*/\r\nvar OperationState = {\r\n  INITED : 'inited',\r\n  QUEUED : 'queued',\r\n  RUNNING : 'running',\r\n  COMPLETE : 'complete',\r\n  CALLBACK : 'callback',\r\n  ERROR : 'error'\r\n};\r\n\r\nBatchOperation.OperationState = OperationState;\r\n\r\n/**\r\n* Set batch operation concurrency\r\n*/\r\nBatchOperation.prototype.setConcurrency = function(concurrency) {\r\n  if (concurrency) {\r\n    this.concurrency = concurrency;\r\n    http.Agent.maxSockets = this.concurrency;\r\n    https.Agent.maxSockets = this.concurrency;\r\n  }\r\n};\r\n\r\n/**\r\n* Is the workload heavy and It can be used to determine whether we could queue operations\r\n*/\r\nBatchOperation.prototype.IsWorkloadHeavy = function() {\r\n  //Only support one batch operation for now.\r\n  //In order to work with the multiple batch operation, we can use global operation track objects\r\n  //BatchOperation acquire a bunch of operation ids from global and allocated ids to RestOperation\r\n  //RestOperation start to run in order of id\r\n  var sharedRequest = 1;\r\n  if(this.enableReuseSocket && !this.callInOrder) {\r\n    sharedRequest = 2;\r\n  }\r\n  return this._activeOperation >= sharedRequest * this.concurrency || this._isLowMemory();\r\n};\r\n\r\n/**\r\n* Get the approximate memory usage for batch operation.\r\n*/\r\nBatchOperation.prototype._getApproximateMemoryUsage = function() {\r\n  var currentUsage = azureutil.isBrowser() ? DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES : process.memoryUsage().rss; // Currently, we cannot get memory usage in browsers\r\n  var futureUsage = this._queuedOperation * this.operationMemoryUsage;\r\n  return currentUsage + futureUsage;\r\n};\r\n\r\n/**\r\n* Return whether in a low memory situation.\r\n*/\r\nBatchOperation.prototype._isLowMemory = function() {  \r\n  var approximateMemoryUsage = this._getApproximateMemoryUsage();\r\n  return os.freemem() < CriticalFreeMemory ||\r\n    (this._activeOperation >= this.concurrency && approximateMemoryUsage > 0.5 * SystemTotalMemory) ||\r\n    (azureutil.is32() && approximateMemoryUsage > DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES) ||\r\n    (azureutil.isBrowser() && approximateMemoryUsage > DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES);\r\n};\r\n\r\n/**\r\n* Add a operation into batch operation\r\n*/\r\nBatchOperation.prototype.addOperation = function(operation) {\r\n  this._operations.push(operation);\r\n  operation.status = OperationState.QUEUED;\r\n  operation.operationId = ++this._totalOperation;\r\n  this._queuedOperation++;\r\n  this.logger.debug(util.format('Add operation %d into batch operation %s. Active: %s; Queued: %s', operation.operationId, this.name, this._activeOperation, this._queuedOperation));\r\n  //Immediately start the idle operation if workload isn't heavy\r\n  this._runOperation(operation);\r\n  return this.IsWorkloadHeavy();\r\n};\r\n\r\n/**\r\n* Enable batch operation complete when there is no operation to run.\r\n*/\r\nBatchOperation.prototype.enableComplete = function() {\r\n  this._enableComplete = true;\r\n  this.logger.debug(util.format('Enable batch operation %s complete', this.name));\r\n  this._tryEmitEndEvent();\r\n};\r\n\r\n/**\r\n* Stop firing user call back\r\n*/\r\nBatchOperation.prototype.pause = function () {\r\n  this._paused = true;\r\n};\r\n\r\n/**\r\n* Start firing user call back\r\n*/\r\nBatchOperation.prototype.resume = function () {\r\n  if (this._paused) {\r\n    this._paused = false;\r\n    this._fireOperationUserCallback();\r\n  }\r\n};\r\n\r\n/**\r\n* Add event listener\r\n*/\r\nBatchOperation.prototype.on = function(event, listener) {\r\n  // only emit end if the batch has completed all operations\r\n  if(this._ended && event === 'end') {\r\n    listener();\r\n  } else {\r\n    this._emitter.on(event, listener);\r\n  }\r\n};\r\n\r\n/**\r\n* Run operation\r\n*/\r\nBatchOperation.prototype._runOperation = function (operation) {\r\n  this.logger.debug(util.format('Operation %d start to run', operation.operationId));\r\n  var cb = this.getBatchOperationCallback(operation);\r\n\r\n  if(this._error) {\r\n    cb(this._error);//Directly call the callback with previous error.\r\n  } else {\r\n    operation.run(cb);\r\n  }\r\n\r\n  this._activeOperation++;\r\n};\r\n\r\n/**\r\n* Return an general operation call back.\r\n* This callback is used to update the internal status and fire user's callback when operation is complete.\r\n*/\r\nBatchOperation.prototype.getBatchOperationCallback = function (operation) {\r\n  var self = this;\r\n  return function (error) {\r\n    self._queuedOperation--;\r\n    if (error) {\r\n      operation.status = OperationState.ERROR;\r\n      self.logger.debug(util.format('Operation %d failed. Error %s', operation.operationId, error));\r\n      self._error = error;\r\n    } else {\r\n      operation.status = OperationState.CALLBACK;\r\n      self.logger.debug(util.format('Operation %d succeed', operation.operationId));\r\n    }\r\n\r\n    operation._callbackArguments = arguments;\r\n    if (self._paused) {\r\n      operation.status = OperationState.CALLBACK;\r\n      self.logger.debug(util.format('Batch operation paused and Operation %d wait for firing callback', operation.operationId));\r\n    } else if (self.callbackInOrder) {\r\n      operation.status = OperationState.CALLBACK;\r\n      if (self._currentOperationId === operation.operationId) {\r\n        self._fireOperationUserCallback(operation);\r\n      } else if (self._currentOperationId > operation.operationId) {\r\n        throw new Error('Debug error: current callback operation id cannot be larger than operation id');\r\n      } else {\r\n        self.logger.debug(util.format('Operation %d is waiting for firing callback %s', operation.operationId, self._currentOperationId));\r\n      }\r\n    } else {\r\n      self._fireOperationUserCallback(operation);\r\n    }\r\n\r\n    self._tryEmitDrainEvent();\r\n    operation = null;\r\n    self = null;\r\n  };\r\n};\r\n\r\n/**\r\n* Fire user's call back\r\n*/\r\nBatchOperation.prototype._fireOperationUserCallback = function (operation) {\r\n  var index = this._getCallbackOperationIndex();\r\n  if (!operation && index != -1) {\r\n    operation = this._operations[index];\r\n  }\r\n\r\n  if (operation && !this._paused) {\r\n    // fire the callback, if exists\r\n    if (operation._userCallback) {\r\n      this.logger.debug(util.format('Fire user call back for operation %d', operation.operationId));\r\n      // make sure UserCallback is a sync operation in sequence mode.\r\n      // both async and sync operations are available for random mode.\r\n      operation._fireUserCallback();\r\n    }\r\n    \r\n    // remove the operation from the array and decrement the counter\r\n    this._operations.splice(index, 1);\r\n    this._activeOperation--;\r\n    operation.status = OperationState.COMPLETE;\r\n    index = operation = null;\r\n\r\n    if (this.callbackInOrder) {\r\n      this._currentOperationId++;\r\n    }\r\n\r\n    this._fireOperationUserCallback();\r\n  } else if (this._paused) {\r\n    this._tryEmitDrainEvent();\r\n  } else {\r\n    // check if batch has ended and if so emit end event\r\n    this._tryEmitEndEvent();\r\n  }\r\n};\r\n\r\n/**\r\n* Try to emit the BatchOperation end event\r\n* End event means all the operation and callback already finished.\r\n*/\r\nBatchOperation.prototype._tryEmitEndEvent = function () {\r\n  if(this._enableComplete && this._activeOperation === 0 && this._operations.length === 0) {\r\n    this._ended = true;\r\n    this.logger.debug(util.format('Batch operation %s emits the end event', this.name));\r\n    this._emitter.emit('end', this._error, null);\r\n    return true;\r\n  }\r\n  \r\n  // Workaround to recover from the 'hang' edge case. _tryEmitEndEvent function is not supposed to be called if the bacth is not really completed.\r\n  this._tryEmitDrainEvent();\r\n  return false;\r\n};\r\n\r\n/**\r\n* Try to emit the drain event\r\n*/\r\nBatchOperation.prototype._tryEmitDrainEvent = function () {\r\n  if (!this._emitter) return false;\r\n  if(!this.IsWorkloadHeavy() || this._activeOperation < this.concurrency) {\r\n    this._emitter.emit('drain');\r\n    return true;\r\n  }\r\n  return false;\r\n};\r\n\r\n/**\r\n* Get the current active operation index.\r\n* Only the active operation could call user's callback in sequence model.\r\n* The other finished but not active operations should wait for wake up.\r\n*/\r\nBatchOperation.prototype._getCallbackOperationIndex = function () {\r\n  var operation = null;\r\n  for (var i = 0; i < this._operations.length; i++) {\r\n    operation = this._operations[i];\r\n    if (this.callbackInOrder) {\r\n      //Sequence mode\r\n      if (operation.operationId == this._currentOperationId) {\r\n        if (operation.status === OperationState.CALLBACK) {\r\n          return i;\r\n        } else {\r\n          return -1;\r\n        }\r\n      }\r\n    } else {\r\n      //Random mode\r\n      if (operation.status === OperationState.CALLBACK) {\r\n        return i;\r\n      }\r\n    }\r\n  }\r\n  return -1;\r\n};\r\n\r\n/**\r\n* Do nothing and directly call the callback.\r\n* In random mode, the user callback will be called immediately\r\n* In sequence mode, the user callback will be called after the previous callback has been called\r\n*/\r\nBatchOperation.noOperation = function (cb) {\r\n  cb();\r\n};\r\n\r\n/**\r\n* Rest operation in sdk\r\n*/\r\nfunction RestOperation(serviceClient, operation) {\r\n  this.status = OperationState.Inited;\r\n  this.operationId = -1;\r\n  this._callbackArguments = null;\r\n\r\n  // setup callback and args\r\n  this._userCallback = arguments[arguments.length - 1];\r\n  var sliceEnd = arguments.length;\r\n  if(azureutil.objectIsFunction(this._userCallback)) {\r\n    sliceEnd--;\r\n  } else {\r\n    this._userCallback = null;\r\n  }\r\n  var operationArguments = Array.prototype.slice.call(arguments).slice(2, sliceEnd);\r\n\r\n  this.run = function(cb) {\r\n    var func = serviceClient[operation];\r\n    if(!func) {\r\n      throw new ArgumentError('operation', util.format('Unknown operation %s in serviceclient', operation));\r\n    } else {\r\n      if(!cb) cb = this._userCallback;\r\n      operationArguments.push(cb);\r\n      this.status = OperationState.RUNNING;\r\n      func.apply(serviceClient, operationArguments);\r\n      operationArguments = operation = null;\r\n    }\r\n  };\r\n\r\n  this._fireUserCallback = function () {\r\n    if(this._userCallback) {\r\n      this._userCallback.apply(null, this._callbackArguments);\r\n    }\r\n  };\r\n}\r\n\r\nBatchOperation.RestOperation = RestOperation;\r\n\r\n/**\r\n* Common operation wrapper\r\n*/\r\nfunction CommonOperation(operationFunc, callback) {\r\n  this.status = OperationState.Inited;\r\n  this.operationId = -1;\r\n  this._callbackArguments = null;\r\n  var sliceStart = 2;\r\n  if (azureutil.objectIsFunction(callback)) {\r\n    this._userCallback = callback;\r\n  } else {\r\n    this._userCallback = null;\r\n    sliceStart = 1;\r\n  }\r\n  var operationArguments = Array.prototype.slice.call(arguments).slice(sliceStart);\r\n  this.run = function (cb) {\r\n    if (!cb) cb = this._userCallback;\r\n    operationArguments.push(cb);\r\n    this.status = OperationState.RUNNING;\r\n    operationFunc.apply(null, operationArguments);\r\n    operationArguments = operationFunc = null;\r\n  };\r\n  \r\n  this._fireUserCallback = function () {\r\n    if (this._userCallback) {\r\n      this._userCallback.apply(null, this._callbackArguments);\r\n    }\r\n    this._userCallback = this._callbackArguments = null;\r\n  };\r\n}\r\n\r\nBatchOperation.CommonOperation = CommonOperation;\r\n\r\nmodule.exports = BatchOperation;\r\n\r\n}).call(this,require('_process'))\r\n},{\"../diagnostics/logger\":4,\"../errors/errors\":5,\"../util/constants\":32,\"../util/util\":38,\"_process\":72,\"events\":59,\"http\":89,\"https\":62,\"os\":70,\"util\":117}],24:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar buffer = require('buffer').Buffer;\r\nvar stream = require('stream');\r\nvar util = require('util');\r\n\r\nvar Constants = require('../util/constants');\r\nvar bufferSize = Constants.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n\r\nfunction BrowserFileReadStream(file, options) {\r\n  stream.Readable.call(this, options);\r\n\r\n  if (!options) {\r\n    options = {};\r\n  }\r\n\r\n  this._fileReader = new FileReader(file); // HTML FileReader\r\n  this._file = file;\r\n  this._size = file.size;\r\n  this._highWaterMark = options.highWaterMark || bufferSize;\r\n  this._offset = 0;\r\n  var self = this;\r\n\r\n  this._fileReader.onloadend = function (event) {\r\n    var data = event.target.result;\r\n    var buf = buffer.from(data);\r\n    self.push(buf);\r\n  };\r\n\r\n  this._fileReader.onerror = function (error) {\r\n    self.emit('error', error);\r\n  };\r\n}\r\nutil.inherits(BrowserFileReadStream, stream.Readable);\r\n\r\nBrowserFileReadStream.prototype._read = function() {\r\n  if (this._offset >= this._size) {\r\n    this.push(null);\r\n  } else {\r\n    var end = this._offset + this._highWaterMark;\r\n    var slice = this._file.slice(this._offset, end);\r\n    this._fileReader.readAsArrayBuffer(slice);\r\n    this._offset = end;\r\n  }\r\n};\r\n\r\nmodule.exports = BrowserFileReadStream;\r\n},{\"../util/constants\":32,\"buffer\":56,\"stream\":88,\"util\":117}],25:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar stream = require('stream');\r\nvar util = require('util');\r\n\r\nfunction BufferStream(buffer, options) {\r\n    stream.Readable.call(this, options);\r\n\r\n    this._buffer = buffer;\r\n    this._offset = 0;\r\n    this._chunkSize = 4 * 1024 * 1024;\r\n    this._bufferSize = buffer.length;\r\n}\r\n\r\nutil.inherits(BufferStream, stream.Readable);\r\n\r\nBufferStream.prototype._read = function () {\r\n    while (this.push(this._readNextChunk())) {\r\n        continue;\r\n    }\r\n};\r\n\r\nBufferStream.prototype._readNextChunk = function () {\r\n    var data = null;\r\n\r\n    if (this._offset < this._bufferSize) {\r\n        var end = this._offset + this._chunkSize;\r\n        end = end > this._bufferSize ? this._bufferSize : end;\r\n        data = this._buffer.slice(this._offset, end);\r\n        this._offset = end;\r\n    }\r\n\r\n    return data;\r\n};\r\n\r\nmodule.exports = BufferStream;\r\n},{\"stream\":88,\"util\":117}],26:[function(require,module,exports){\r\n(function (Buffer){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n/**\r\n* Chunked memory pool allocator.\r\n* It could dramatically reduce the memory usage.\r\n* However, it can't dramatically reduce the CPU time since GC in v8 is very efficient.\r\n*/\r\nfunction ChunkAllocator(chunkSize, maxCount) {\r\n  // Track the unused buffers and number of used buffers\r\n  this._pool = [];\r\n  this._inuse = 0;\r\n\r\n  // Buffer size\r\n  this._chunkSize = chunkSize;\r\n\r\n  // If total memory is larger than this._chunkSize * this._maxCount, the buffer pool is not used.\r\n  this._maxCount = maxCount || 10;\r\n\r\n  // Immediately add a buffer to the pool.\r\n  this._extendMemoryPool();\r\n}\r\n\r\n/**\r\n* Synchronously require a buffer\r\n* Caller should be aware of that the content of buffer is random since the Buffer.fill is Time-consumed opreation.\r\n*/\r\nChunkAllocator.prototype.getBuffer = function(size) {\r\n  var buffer = this._getBufferFromPool(size);\r\n  if (buffer === null) {\r\n    // Either the total memory is larger than this._chunkSize * this._maxCount\r\n    // Or, the size does not match the chunk size of the pool\r\n    buffer = Buffer.alloc(size);\r\n  }\r\n\r\n  this._inuse++;\r\n  return buffer;\r\n};\r\n\r\n/**\r\n* Get buffer from the current memory pool.\r\n*/\r\nChunkAllocator.prototype._getBufferFromPool = function(size) {\r\n  // Return null if the given size does not match the chunk size of the buffer pool.\r\n  if(size !== this._chunkSize) {\r\n    return null;\r\n  } \r\n\r\n  // Extend the memory pool if it is empty.\r\n  if(this._pool.length === 0) {\r\n    this._extendMemoryPool();\r\n  }\r\n\r\n  // If the pool is not empty, return a buffer.\r\n  if(this._pool.length !== 0) {\r\n    return this._pool.pop();\r\n  } else {\r\n    return null;\r\n  }\r\n};\r\n\r\n/**\r\n* Extend the memory pool if the maximum size has not been reached.\r\n*/\r\nChunkAllocator.prototype._extendMemoryPool = function() {\r\n  var total = this._pool.length + this._inuse;\r\n\r\n  // If the total is larger than the max, do not allocate more memory.\r\n  if(total >= this._maxCount) return;\r\n\r\n  // Calculate the new number of buffers, equal to the total*2 bounded by 1 and the maxCount\r\n  var nextSize = Math.min(total * 2, this._maxCount) || 1;\r\n\r\n  // Add more buffers.\r\n  var increment = nextSize - total;\r\n  for(var i = 0; i < increment; i++) {\r\n    var buffer = Buffer.alloc(this._chunkSize);\r\n    this._pool.push(buffer);\r\n  }\r\n};\r\n\r\n/**\r\n* Release the buffer.\r\n*/\r\nChunkAllocator.prototype.releaseBuffer = function(buffer) {\r\n  if(buffer.length !== this._chunkSize) {\r\n    // Directly delete the buffer if bufferSize is invalid and wait for GC.\r\n    buffer = null;\r\n    return;\r\n  }\r\n\r\n  // Add the buffer to the pool if it is not full, otherwise delete it\r\n  if (this._pool.length < this._maxCount) {\r\n    this._pool.push(buffer);\r\n  } else {\r\n    buffer = null;\r\n  }\r\n\r\n  // Decrement _inuse \r\n  this._inuse--;\r\n\r\n  // _inuse could be below zero if a buffer is released which was not returned by getBuffer\r\n  if(this._inuse < 0) {\r\n    this._inuse = 0;\r\n  }\r\n};\r\n\r\n/**\r\n* Destroy ChunkAllocator.\r\n*/\r\nChunkAllocator.prototype.destroy = function() {\r\n  this._pool = [];\r\n  this._inuse = 0;\r\n};\r\n\r\nmodule.exports = ChunkAllocator;\r\n\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"buffer\":56}],27:[function(require,module,exports){\r\n(function (Buffer){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar stream = require('stream');\r\nvar util = require('util');\r\n\r\nvar azureutil = require('../util/util');\r\nvar Md5Wrapper = require('../md5-wrapper');\r\nvar Constants = require('../util/constants');\r\nvar bufferSize = Constants.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n\r\n/**\r\n*  Chunk stream\r\n*  1. Calculate md5\r\n*  2. Track reading offset\r\n*  3. Work with customize memory allocator\r\n*  4. Buffer data from stream.\r\n*  @param {object} options stream.Readable options\r\n*/\r\nfunction ChunkStream(options) {\r\n  stream.Stream.call(this);\r\n  this.writable = this.readable = true;\r\n\r\n  if (!options) {\r\n    options = {};\r\n  }\r\n\r\n  this._highWaterMark = options.highWaterMark || bufferSize;\r\n\r\n  this._paused = undefined; //True/false is the external status from users.\r\n\r\n  this._isStreamOpened = false;\r\n  this._offset = 0;\r\n  this._allocator = options.allocator;\r\n  this._streamEnded = false;\r\n  this._md5hash = null;\r\n  this._buffer = null;\r\n  this._internalBufferSize = 0;\r\n  this._outputLengthLimit = 0;\r\n  this._md5sum = undefined;\r\n\r\n  if (options.calcContentMd5) {\r\n    this._md5hash = new Md5Wrapper().createMd5Hash();\r\n  }\r\n}\r\n\r\nutil.inherits(ChunkStream, stream.Stream);\r\n\r\n/**\r\n* Set the memory allocator.\r\n*/\r\nChunkStream.prototype.setMemoryAllocator = function(allocator) {\r\n  this._allocator = allocator;\r\n};\r\n\r\n/**\r\n* Set the output length.\r\n*/\r\nChunkStream.prototype.setOutputLength = function(length) {\r\n  if (length) {\r\n    this._outputLengthLimit = length;\r\n  }\r\n};\r\n\r\n/**\r\n* Internal stream ended\r\n*/\r\nChunkStream.prototype.end = function (chunk, encoding, cb) {\r\n  if (typeof chunk === 'function') {\r\n    cb = chunk;\r\n    chunk = null;\r\n    encoding = null;\r\n  } else if (typeof encoding === 'function') {\r\n    cb = encoding;\r\n    encoding = null;\r\n  }\r\n\r\n  if (chunk) {\r\n    this.write(chunk, encoding);\r\n  }\r\n\r\n  this._streamEnded = true;\r\n  this._flushInternalBuffer();\r\n  \r\n  if (cb) {\r\n    this.once('end', cb);\r\n  }\r\n\r\n  this.emit('end');\r\n};\r\n\r\nChunkStream.prototype.finish = function () {\r\n  this.emit('finish');\r\n\r\n  this.destroy();\r\n};\r\n\r\nChunkStream.prototype.error = function () {\r\n  this.emit('error');\r\n\r\n  this.destroy();\r\n};\r\n\r\nChunkStream.prototype.destroy = function () {\r\n  this.writable = this.readable = false;\r\n\r\n  if (this._allocator && azureutil.objectIsFunction(this._allocator.destroy)) {\r\n    this._allocator.destroy();\r\n  }\r\n  \r\n  this.emit('close');\r\n};\r\n\r\nChunkStream.prototype.stop = function () {\r\n  this.destroy();\r\n  this._streamEnded = true;\r\n  this.emit('end');\r\n};\r\n\r\n/**\r\n* Add event listener\r\n*/\r\nChunkStream.prototype.write = function (chunk, encoding) {\r\n  if (!this._isStreamOpened) {\r\n    this._isStreamOpened = true;\r\n  }\r\n\r\n  this._buildChunk(chunk, encoding);\r\n\r\n  return !this._paused;\r\n};\r\n\r\n/**\r\n* Buffer the data into a chunk and emit it\r\n*/\r\nChunkStream.prototype._buildChunk = function (data) {\r\n  if (typeof data == 'string') {\r\n    data = Buffer.from(data);\r\n  }\r\n  var dataSize = data.length;\r\n  var dataOffset = 0;\r\n  do {\r\n    var buffer = null;\r\n    var targetSize = this._internalBufferSize + dataSize;\r\n\r\n    if (targetSize < this._highWaterMark) {\r\n      // add the data to the internal buffer and return as it is not yet full\r\n      this._copyToInternalBuffer(data, dataOffset, data.length);\r\n      return;\r\n    } else if (targetSize == this._highWaterMark){\r\n      var canReleaseInnerStreamBuffer = this._stream && this._stream._allocator && this._stream._allocator.releaseBuffer;\r\n      if(this._internalBufferSize === 0 && data.length === this._highWaterMark && !canReleaseInnerStreamBuffer) {\r\n        // set the buffer to the data passed in to avoid creating a new buffer\r\n        buffer = data;\r\n      } else {\r\n        // add the data to the internal buffer and pop that buffer\r\n        this._copyToInternalBuffer(data, dataOffset, data.length);\r\n        buffer = this._popInternalBuffer();\r\n      }\r\n      dataSize = 0;\r\n    } else {\r\n      // add data to the internal buffer until its full, then return it\r\n      // set the dataSize parameter so that additional data is not lost\r\n      var copySize = this._highWaterMark - this._internalBufferSize;\r\n      this._copyToInternalBuffer(data, dataOffset, dataOffset + copySize);\r\n      dataSize -= copySize;\r\n      dataOffset += copySize;\r\n      buffer = this._popInternalBuffer();\r\n    }\r\n    this._emitBufferData(buffer);\r\n  } while(dataSize > 0);\r\n};\r\n\r\n/**\r\n* Emit the buffer\r\n*/\r\nChunkStream.prototype._emitBufferData = function(buffer) {\r\n  var newOffset = this._offset + buffer.length;\r\n  var range = {\r\n    start : this._offset,\r\n    end : newOffset - 1,\r\n    size : buffer.length\r\n  };\r\n\r\n  this._offset = newOffset;\r\n  \r\n  if (this._outputLengthLimit > 0) {\r\n    // When the start postion is larger than the limit, no data will be consumed though there is an event to be emitted.\r\n    // So the buffer should not be calculated.\r\n    if (range.start <= this._outputLengthLimit) {\r\n      if (this._offset > this._outputLengthLimit) {\r\n        // Don't use negative end parameter which means the index starting from the end of the buffer\r\n        // to be compatible with node 0.8.\r\n        buffer = buffer.slice(0, buffer.length - (this._offset - this._outputLengthLimit));\r\n      }\r\n      if (this._md5hash) {\r\n        this._md5hash.update(buffer);\r\n      }\r\n    }\r\n  } else if (this._md5hash) {\r\n    this._md5hash.update(buffer);\r\n  }\r\n\r\n  this.emit('data', buffer, range);\r\n};\r\n\r\n/**\r\n* Copy data into internal buffer\r\n*/\r\nChunkStream.prototype._copyToInternalBuffer = function(data, start, end) {\r\n  if(start === undefined) start = 0;\r\n  if(end === undefined) end = data.length;\r\n  if (!this._buffer) {\r\n    this._buffer = this._allocateNewBuffer();\r\n    this._internalBufferSize = 0;\r\n  }\r\n  var copied = data.copy(this._buffer, this._internalBufferSize, start, end);\r\n  this._internalBufferSize += copied;\r\n\r\n  if (this._stream && this._stream._allocator && this._stream._allocator.releaseBuffer) {\r\n    this._stream._allocator.releaseBuffer(data);\r\n  }\r\n\r\n  if(copied != (end - start)) {\r\n    throw new Error('Can not copy entire data to buffer');\r\n  }\r\n};\r\n\r\n/**\r\n* Flush internal buffer\r\n*/\r\nChunkStream.prototype._flushInternalBuffer = function() {\r\n  var buffer = this._popInternalBuffer();\r\n  if (buffer) {\r\n    this._emitBufferData(buffer);\r\n  }\r\n};\r\n\r\n/**\r\n* Pop internal buffer\r\n*/\r\nChunkStream.prototype._popInternalBuffer = function () {\r\n  var buf = null;\r\n  if (!this._buffer || this._internalBufferSize === 0) {\r\n    buf = null;\r\n  } else if(this._internalBufferSize == this._highWaterMark) {\r\n    buf = this._buffer;\r\n  } else {\r\n    buf = this._buffer.slice(0, this._internalBufferSize);\r\n  }\r\n\r\n  this._buffer = null;\r\n  this._internalBufferSize = 0;\r\n\r\n  return buf;\r\n};\r\n\r\n/**\r\n* Allocate a buffer\r\n*/\r\nChunkStream.prototype._allocateNewBuffer = function() {\r\n  var size = this._highWaterMark;\r\n  if(this._allocator && azureutil.objectIsFunction(this._allocator.getBuffer)) {\r\n    return this._allocator.getBuffer(size);\r\n  } else {\r\n    var buffer = Buffer.alloc(size);\r\n    return buffer;\r\n  }\r\n};\r\n\r\n/**\r\n* Get file content md5 when read completely.\r\n*/\r\nChunkStream.prototype.getContentMd5 = function(encoding) {\r\n  if (!encoding) encoding = 'base64';\r\n  if(!this._md5hash) {\r\n    throw new Error('Can\\'t get content md5, please set the calcContentMd5 option for FileReadStream.');\r\n  } else {\r\n    if (this._streamEnded) {\r\n      if (!this._md5sum) {\r\n        this._md5sum = this._md5hash.digest(encoding);\r\n      }\r\n      return this._md5sum;\r\n    } else {\r\n      throw new Error('Stream has not ended.');\r\n    }\r\n  }\r\n};\r\n\r\n/**\r\n* Pause chunk stream\r\n*/\r\nChunkStream.prototype.pause = function() {\r\n  this._paused = true;\r\n};\r\n\r\n/**\r\n* Resume read stream\r\n*/\r\nChunkStream.prototype.resume = function() {\r\n  if (this._paused) {\r\n    this._paused = false;\r\n\r\n    this.emit('drain');\r\n  }\r\n};\r\n\r\nmodule.exports = ChunkStream;\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"../md5-wrapper\":10,\"../util/constants\":32,\"../util/util\":38,\"buffer\":56,\"stream\":88,\"util\":117}],28:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar ChunkStream = require('./chunkstream');\r\nvar EventEmitter = require('events').EventEmitter;\r\nvar util = require('util');\r\nvar azureutil = require('./../util/util');\r\n\r\n/**\r\n*  Chunk stream\r\n*  1. Calculate md5\r\n*  2. Track reading offset\r\n*  3. Work with customize memory allocator\r\n*  4. Buffer data from stream.\r\n*  @param {object} options stream.Readable options\r\n*/\r\nfunction ChunkStreamWithStream(stream, options) {\r\n  ChunkStream.call(this, options);\r\n\r\n  stream.pause(); // Pause stream and wait for data listener. It's useful for node v0.8\r\n  this._stream = stream;\r\n  this._stream.on('end', this.end.bind(this)); // Should catch the end event for node v0.8\r\n}\r\n\r\nutil.inherits(ChunkStreamWithStream, ChunkStream);\r\n\r\n/**\r\n* Add event listener\r\n*/\r\nChunkStreamWithStream.prototype.on = function(event, listener) {\r\n  if(event === 'end' && this._streamEnded) {\r\n    listener(); //Directly call the end event when stream already ended\r\n  } else {\r\n    EventEmitter.prototype.on.call(this, event, listener);\r\n  }\r\n\r\n  if (event === 'data') {\r\n    if (!this._isStreamOpened) {\r\n      this._isStreamOpened = true;\r\n      this._stream.on('data', this._buildChunk.bind(this));\r\n    }\r\n    if (this._paused === undefined) {\r\n      this._stream.resume();\r\n    }\r\n  }\r\n  \r\n  return this;\r\n};\r\n\r\n/**\r\n* Stop stream from external\r\n*/\r\nChunkStreamWithStream.prototype.stop = function (chunk, encoding, cb) {\r\n  if (azureutil.objectIsFunction(this._stream.destroy)) {\r\n    this._stream.destroy();\r\n  } else {\r\n    this.pause();\r\n  }\r\n  ChunkStream.prototype.end.call(this, chunk, encoding, cb);\r\n};\r\n\r\n/**\r\n* Pause chunk stream\r\n*/\r\nChunkStreamWithStream.prototype.pause = function () {\r\n  ChunkStream.prototype.pause.call(this);\r\n\r\n  this._stream.pause();\r\n};\r\n\r\n/**\r\n* Resume read stream\r\n*/\r\nChunkStreamWithStream.prototype.resume = function() {\r\n  ChunkStream.prototype.resume.call(this);\r\n\r\n  this._stream.resume();\r\n};\r\n\r\nChunkStreamWithStream.prototype.finish = function () {\r\n  ChunkStream.prototype.finish.call(this);\r\n  this._stream.emit.call(this._stream, 'finish');\r\n};\r\n\r\nChunkStreamWithStream.prototype.destroy = function () {\r\n  ChunkStream.prototype.destroy.call(this);\r\n  this._stream.emit.call(this._stream, 'close');\r\n};\r\n\r\nmodule.exports = ChunkStreamWithStream;\r\n\r\n},{\"./../util/util\":38,\"./chunkstream\":27,\"events\":59,\"util\":117}],29:[function(require,module,exports){\r\n(function (process){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar azureCommon = require('./../common.core');\r\nvar azureutil = azureCommon.util;\r\nvar Constants = require('./../util/constants');\r\nvar EventEmitter = require('events').EventEmitter;\r\n\r\n/**\r\n* Range stream\r\n*/\r\nfunction RangeStream(serviceClient, container, blob, options) {\r\n  this.serviceClient = serviceClient;\r\n  this._emitter = new EventEmitter();\r\n  this._paused = false;\r\n  this._emittedAll = false;\r\n  this._emittedRangeIndex = 0;\r\n  this._rangelist = [];\r\n  this._resourcePath = [];\r\n  this._isEmitting = false;\r\n  this._rangeStreamEnded = false;\r\n  this._lengthHeader = Constants.HeaderConstants.CONTENT_LENGTH;\r\n  this._minRangeSize = Constants.BlobConstants.MIN_WRITE_PAGE_SIZE_IN_BYTES;\r\n  this._maxRangeSize = Constants.BlobConstants.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES;\r\n  if (options.rangeStart) {\r\n    this._startOffset = options.rangeStart;\r\n  } else {\r\n    this._startOffset = 0;\r\n  }\r\n  this._dataOffset = this._startOffset;\r\n  if (options.rangeEnd) {\r\n    this._endOffset = options.rangeEnd;\r\n  } else {\r\n    this._endOffset = Number.MAX_VALUE;\r\n  }\r\n  if (container) {\r\n    this._resourcePath.push(container);\r\n  }\r\n  if (blob) {\r\n    this._resourcePath.push(blob); \r\n  }\r\n}\r\n\r\n/**\r\n* Get range list\r\n*/\r\nRangeStream.prototype.list = function (options, callback) {\r\n  var start = this._startOffset;\r\n  var end;\r\n  var singleRangeSize = Constants.BlobConstants.MAX_SINGLE_GET_PAGE_RANGE_SIZE;\r\n\r\n  if (this._listFunc === undefined) {\r\n    // the default function puts the whole blob into a single list item\r\n    this._listFunc = this._defaultListFunc;\r\n    end = this._endOffset;\r\n  } else {\r\n    end = Math.min(this._startOffset + singleRangeSize - 1, this._endOffset);\r\n  }\r\n  options.rangeStart = start;\r\n  if (end != Number.MAX_VALUE) {\r\n    options.rangeEnd = end;\r\n  }\r\n\r\n  var self = this;\r\n  var onList = function (error, ranges, response) {\r\n    if (error) {\r\n      callback(error);\r\n    } else {\r\n      if (self._rangeStreamEnded) {\r\n        return;\r\n      }\r\n\r\n      var totalSize = parseInt(response.headers[self._lengthHeader], 10);\r\n      var endOffset = Math.min(totalSize - 1, self._endOffset);\r\n      var rangeEnd = Math.min(end, endOffset);\r\n  \r\n      if (!ranges.length) {\r\n        // convert single object to range\r\n        // start >= end means there is no valid regions\r\n        ranges.push({ start : start, end : rangeEnd, dataSize: 0 });\r\n      } else if (ranges[ranges.length - 1].end !== rangeEnd) {\r\n        // don't forget the zero chunk at the end of range\r\n        ranges.push({ start : ranges[ranges.length - 1].end + 1, end : rangeEnd, dataSize: 0 });\r\n      }\r\n      \r\n      if (end >= endOffset) {\r\n        self._rangeStreamEnded = true;\r\n      }\r\n      self.resizeAndSaveRanges(ranges);\r\n      self._startOffset += singleRangeSize;\r\n      self._emitRange();\r\n      \r\n      // This is only valid when listing pages because when listing with the default function, the \"endOffset\" will always equal to or greater than the \"end\". \r\n      if (end < endOffset && !self._rangeStreamEnded) {\r\n        process.nextTick(function () {\r\n          ranges = null;\r\n          self.list(options, callback);\r\n          self = null;\r\n        });\r\n      }\r\n    }\r\n  };\r\n\r\n  var callArguments = Array.prototype.slice.call(this._resourcePath);\r\n  callArguments.push(options);\r\n  callArguments.push(onList);\r\n  this._listFunc.apply(this.serviceClient, callArguments);\r\n};\r\n\r\n/**\r\n* Resize regions:\r\n*   1. Merge small pieces into a range no less than this._minRangeSize\r\n*   2. Split large pieces into ranges no more than this._maxRangeSize\r\n*/\r\nRangeStream.prototype.resizeAndSaveRanges = function (ranges) {\r\n  var rangeList = this._rangelist;\r\n  var holdingRange = { type : 'range', size : 0, dataSize : 0, start : this._startOffset, end : -1 };\r\n  var readingRange = null;\r\n  var rangeSize = 0;\r\n\r\n  for (var index = 0; index < ranges.length; index++) {\r\n    readingRange = ranges[index];\r\n    rangeSize = readingRange.end - holdingRange.start + 1;\r\n    \r\n    if (rangeSize < this._minRangeSize) {\r\n      // merge fragment ranges\r\n      this.mergeRanges(holdingRange, readingRange);\r\n    } else {\r\n      if (holdingRange.end != -1) {\r\n        // save the holding range list and hold the reading range\r\n        this.splitAndSaveRanges(holdingRange, rangeList);\r\n        holdingRange = readingRange;\r\n      }\r\n      \r\n      if (this._dataOffset != readingRange.start) {\r\n        // padding zero for empty range and hold the reading range \r\n        this.putZeroRange(this._dataOffset, readingRange.start - 1, rangeList);\r\n        holdingRange = readingRange;\r\n      } else if (holdingRange.end == -1) {\r\n        // if holdingRange is never set, it means readingRange exceeds MIN_WRITE_FILE_SIZE_IN_BYTES\r\n        this.splitAndSaveRanges(readingRange, rangeList);\r\n        // reading range has been saved, offset the holding start position for calculating the range size in next loop\r\n        holdingRange.start = readingRange.end + 1;\r\n      }\r\n    }\r\n    \r\n    // If it is the last range, put the holding range into list anyway\r\n    if (index == ranges.length - 1 && holdingRange.end > holdingRange.start) {\r\n      this.splitAndSaveRanges(holdingRange, rangeList);\r\n    }\r\n    \r\n    this._dataOffset = readingRange.end + 1;\r\n  }\r\n};\r\n\r\n/**\r\n* Put a zero range into range list\r\n*/\r\nRangeStream.prototype.putZeroRange = function (startOffset, endOffset, rangeList) {\r\n  var zeroDataRange = { type : 'range', size : -1, dataSize : 0, start : startOffset, end : endOffset };\r\n  this.splitAndSaveRanges(zeroDataRange, rangeList);\r\n};\r\n\r\n/**\r\n* Merge small ranges\r\n*/\r\nRangeStream.prototype.mergeRanges = function (holdingRange, readingRange) {\r\n  holdingRange.size = readingRange.end - holdingRange.start + 1;\r\n  holdingRange.dataSize += readingRange.dataSize;\r\n  holdingRange.end = readingRange.end;\r\n  return holdingRange;\r\n};\r\n\r\n/**\r\n* Split range into small pieces with maximum _maxRangeSize and minimum _minRangeSize size.\r\n* For example, [0, 10G - 1] => [0, 4MB - 1], [4MB, 8MB - 1] ... [10GB - 4MB, 10GB - 1]\r\n*/\r\nRangeStream.prototype.splitAndSaveRanges = function (range, rangeList) {\r\n  var rangeSize = range.end - range.start + 1;\r\n  var offset = range.start;\r\n  var limitedSize = 0;\r\n\r\n  while (rangeSize > 0) {\r\n    var newRange = { type : 'range', size : 0, dataSize : 0, start : -1, end : -1 };\r\n    limitedSize = Math.min(rangeSize, this._maxRangeSize);\r\n    newRange.start = offset;\r\n    newRange.size = limitedSize;\r\n    if (range.dataSize === 0) {\r\n      newRange.dataSize = 0;\r\n    } else {\r\n      newRange.dataSize = limitedSize;\r\n    }\r\n    offset += limitedSize;\r\n    newRange.end = offset - 1;\r\n    rangeList.push(newRange);\r\n    rangeSize -= limitedSize;\r\n  }\r\n};\r\n\r\n/**\r\n* Emit a range\r\n*/\r\nRangeStream.prototype._emitRange = function () {\r\n  if (this._paused || this._emittedAll || this._isEmitting) return;\r\n  this._isEmitting = true;\r\n  try {\r\n    for (; this._emittedRangeIndex < this._rangelist.length; this._emittedRangeIndex++) {\r\n      if (this._paused) {\r\n        return;\r\n      }\r\n      var range = this._rangelist[this._emittedRangeIndex];\r\n      this._emitter.emit('range', range);\r\n      this._rangelist[this._emittedRangeIndex] = null;\r\n    }\r\n    \r\n    if (this._rangeStreamEnded) {\r\n      this._rangelist = null;\r\n      this._emittedAll = true;\r\n      this._emitter.emit('end');\r\n    }\r\n  } finally {\r\n    this._isEmitting = false;\r\n  }\r\n};\r\n\r\n/**\r\n* The Default list function which puts the whole blob into one range.\r\n*/\r\nRangeStream.prototype._defaultListFunc = function (container, blob, optionsOrCallback, callback) {\r\n  var options;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n  \r\n  this.getBlobProperties(container, blob, options, function (error, result, response) {\r\n    if (error) {\r\n      callback(error);\r\n    } else {\r\n      var range = [{}];\r\n      range[0].start = options.rangeStart ? Math.max(options.rangeStart, 0) : 0;\r\n      range[0].end = options.rangeEnd ? Math.min(options.rangeEnd, result.contentLength - 1) : result.contentLength - 1;\r\n      range[0].size = range[0].end - range[0].start + 1;\r\n      range[0].dataSize = range[0].size;\r\n      callback(error, range, response);\r\n    }\r\n  });\r\n};\r\n\r\n/**\r\n* Add event listener\r\n*/\r\nRangeStream.prototype.on = function (event, listener) {\r\n  this._emitter.on(event, listener);\r\n};\r\n\r\n/**\r\n* Pause the stream\r\n*/\r\nRangeStream.prototype.pause = function () {\r\n  this._paused = true;\r\n};\r\n\r\n/**\r\n* Resume the stream\r\n*/\r\nRangeStream.prototype.resume = function () {\r\n  this._paused = false;\r\n  if (!this._isEmitting) {\r\n    this._emitRange();\r\n  }\r\n};\r\n\r\n/**\r\n* Stop the stream\r\n*/\r\nRangeStream.prototype.stop = function () {\r\n  this.pause();\r\n  this._emittedAll = true;\r\n  this._emitter.emit('end');\r\n};\r\n\r\nmodule.exports = RangeStream;\r\n\r\n}).call(this,require('_process'))\r\n},{\"./../common.core\":3,\"./../util/constants\":32,\"_process\":72,\"events\":59}],30:[function(require,module,exports){\r\n(function (process){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar EventEmitter = require('events');\r\nvar util = require('util');\r\nvar azureutil = require('../util/util');\r\n\r\n/**\r\n* Blob upload/download speed summary.\r\n* Trigger 'progress' event every progress updates.\r\n*/\r\nfunction SpeedSummary (name) {\r\n  this.name = name;\r\n  this._startTime = Date.now();\r\n  this._timeWindowInSeconds = 10;\r\n  this._timeWindow = this._timeWindowInSeconds * 1000;\r\n  this._totalWindowSize = 0;\r\n  this._speedTracks = new Array(this._timeWindowInSeconds);\r\n  this._speedTrackPtr = 0;\r\n  this.totalSize = undefined;\r\n  this.completeSize = 0;\r\n}\r\n\r\nutil.inherits(SpeedSummary, EventEmitter);\r\n\r\n/**\r\n* Convert the size to human readable size\r\n*/\r\nfunction toHumanReadableSize(size, len) {\r\n  if(!size) return '0B';\r\n  if (!len || len <= 0) {\r\n    len = 2;\r\n  }\r\n  var units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\r\n  var i = Math.floor( Math.log(size) / Math.log(1024));\r\n  return (size/Math.pow(1024, i)).toFixed(len) + units[i];\r\n}\r\n\r\n/**\r\n* Get running seconds\r\n*/\r\nSpeedSummary.prototype.getElapsedSeconds = function(humanReadable) {\r\n  var now = Date.now();\r\n  var seconds = parseInt((now - this._startTime) / 1000, 10);\r\n  if (humanReadable !== false) {\r\n    var s = parseInt(seconds % 60, 10);\r\n    seconds /= 60;\r\n    var m = Math.floor(seconds % 60);\r\n    seconds /= 60;\r\n    var h = Math.floor(seconds);\r\n    seconds = util.format('%s:%s:%s', azureutil.zeroPaddingString(h, 2), azureutil.zeroPaddingString(m, 2), azureutil.zeroPaddingString(s, 2));\r\n  }\r\n  return seconds;\r\n};\r\n\r\n/**\r\n* Get complete percentage\r\n* @param {int} len The number of digits after the decimal point.\r\n*/\r\nSpeedSummary.prototype.getCompletePercent = function(len) {\r\n  if (this.totalSize) {\r\n    if(!len || len <= 0) {\r\n      len = 1;\r\n    }\r\n    return (this.completeSize * 100 / this.totalSize).toFixed(len);\r\n  } else {\r\n    if(this.totalSize === 0) {\r\n      return 100;\r\n    } else {\r\n      return 0;\r\n    }\r\n  }\r\n};\r\n\r\n/**\r\n* Get average upload/download speed\r\n*/\r\nSpeedSummary.prototype.getAverageSpeed = function(humanReadable) {\r\n  var elapsedTime = this.getElapsedSeconds(false);\r\n  return this._getInternalSpeed(this.completeSize, elapsedTime, humanReadable);\r\n};\r\n\r\n/**\r\n* Get instant speed\r\n*/\r\nSpeedSummary.prototype.getSpeed = function(humanReadable) {\r\n  this._refreshSpeedTracks();\r\n  var elapsedTime = this.getElapsedSeconds(false);\r\n  elapsedTime = Math.min(elapsedTime, this._timeWindowInSeconds);\r\n  return this._getInternalSpeed(this._totalWindowSize, elapsedTime, humanReadable);\r\n};\r\n\r\n/**\r\n* Get internal speed\r\n*/\r\nSpeedSummary.prototype._getInternalSpeed = function(totalSize, elapsedTime, humanReadable) {\r\n  if (elapsedTime <= 0) {\r\n    elapsedTime = 1;\r\n  }\r\n  var speed = totalSize / elapsedTime;\r\n  if(humanReadable !== false) {\r\n    speed = toHumanReadableSize(speed) + '/s';\r\n  }\r\n  return speed;\r\n};\r\n\r\n/**\r\n* Refresh speed tracks\r\n*/\r\nSpeedSummary.prototype._refreshSpeedTracks = function() {\r\n  var now = Date.now();\r\n  var totalSize = 0;\r\n  for(var i = 0; i < this._speedTracks.length; i++) {\r\n    if(!this._speedTracks[i]) continue;\r\n    if(now - this._speedTracks[i].timeStamp <= this._timeWindow) {\r\n      totalSize += this._speedTracks[i].size;\r\n    } else {\r\n      this._speedTracks[i] = null;\r\n    }\r\n  }\r\n  this._totalWindowSize = totalSize;\r\n};\r\n\r\n/**\r\n* Increment the complete data size\r\n*/\r\nSpeedSummary.prototype.increment = function(len) {\r\n  this.completeSize += len;\r\n  this._recordSpeed(len);\r\n\r\n  var that = this;\r\n  process.nextTick(function () {\r\n    that.emit('progress');\r\n  });\r\n\r\n  return this.completeSize;\r\n};\r\n\r\n/**\r\n* record complete size into speed tracks\r\n*/\r\nSpeedSummary.prototype._recordSpeed = function(completeSize) {\r\n  var now = Date.now();\r\n  var track = this._speedTracks[this._speedTrackPtr];\r\n  if(track) {\r\n    var timeDiff = now - track.timeStamp;\r\n    if(timeDiff > this._timeWindow) {\r\n      track.timeStamp = now;\r\n      track.size = completeSize;\r\n    } else if(timeDiff <= 1000) { //1 seconds\r\n      track.size += completeSize;\r\n    } else {\r\n      this._speedTrackPtr = (this._speedTrackPtr + 1) % this._timeWindowInSeconds;\r\n      this._recordSpeed(completeSize);\r\n    }\r\n  } else {\r\n    track = {timeStamp : now, size: completeSize};\r\n    this._speedTracks[this._speedTrackPtr] = track;\r\n  }\r\n};\r\n\r\n/**\r\n* Get auto increment function\r\n*/\r\nSpeedSummary.prototype.getAutoIncrementFunction = function(size) {\r\n  var self = this;\r\n  return function(error, retValue) {\r\n    if(!error) {\r\n      var doneSize = 0;\r\n      if((!retValue && retValue !== 0) || isNaN(retValue)) {\r\n        doneSize = size;\r\n      } else {\r\n        doneSize = retValue;\r\n      }\r\n      self.increment(doneSize);\r\n    }\r\n  };\r\n};\r\n\r\n/**\r\n* Get total size\r\n*/\r\nSpeedSummary.prototype.getTotalSize = function(humanReadable) {\r\n  if (humanReadable !== false) {\r\n    return toHumanReadableSize(this.totalSize);\r\n  } else {\r\n    return this.totalSize;\r\n  }\r\n};\r\n\r\n/**\r\n* Get completed data size\r\n*/\r\nSpeedSummary.prototype.getCompleteSize = function(humanReadable) {\r\n  if (humanReadable !== false) {\r\n    return toHumanReadableSize(this.completeSize);\r\n  } else {\r\n    return this.completeSize;\r\n  }\r\n};\r\n\r\nmodule.exports = SpeedSummary;\r\n\r\n}).call(this,require('_process'))\r\n},{\"../util/util\":38,\"_process\":72,\"events\":59,\"util\":117}],31:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Expose 'AccessCondition'.\r\n\r\n/**\r\n* Defines constants, enums, and utility functions for use with storage access condition.\r\n* @namespace\r\n*/\r\n\r\n'use strict';\r\n\r\nexports = module.exports;\r\n\r\n/**\r\n* Constructs an empty access condition.\r\n*\r\n* @return {object} An empty AccessCondition object\r\n*/\r\nexports.generateEmptyCondition = function () {\r\n  return {};\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource does not exist on the service\r\n*\r\n* Setting this access condition modifies the request to include the HTTP If-None-Match conditional header\r\n\r\n* @return {AccessConditions} An AccessCondition object that represents a condition that checks for nonexistence\r\n*/\r\nexports.generateIfNotExistsCondition = function () {\r\n  var accessCondition = {};\r\n  accessCondition.EtagNonMatch = '*';\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource exists on the service\r\n*\r\n* Setting this access condition modifies the request to include the HTTP If-Match conditional header\r\n\r\n* @return {AccessConditions} An AccessCondition object that represents a condition that checks for existence\r\n*/\r\nexports.generateIfExistsCondition = function () {\r\n  var accessCondition = {};\r\n  accessCondition.EtagMatch = '*';\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource's ETag value \r\n* does not match the specified ETag value\r\n*\r\n* Setting this access condition modifies the request to include the HTTP If-None-Match conditional header\r\n*\r\n* @param  {string} etag                    The ETag value to check against the resource's ETag\r\n* @return {AccessConditions}               An AccessCondition object that represents the If-None-Match condition\r\n*/\r\nexports.generateIfNoneMatchCondition = function (etag) {\r\n  var accessCondition = {};\r\n  accessCondition.EtagNonMatch = etag;\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource's ETag value\r\n* matches the specified ETag value\r\n*\r\n* Setting this access condition modifies the request to include the HTTP If-Match conditional header\r\n*\r\n* @param  {string} etag                    The ETag value to check against the resource's ETag\r\n* @return {AccessConditions}               An AccessCondition object that represents the If-Match condition\r\n*/\r\nexports.generateIfMatchCondition = function (etag) {\r\n  var accessCondition = {};\r\n  accessCondition.EtagMatch = etag;\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource has been\r\n* modified since the specified time\r\n*\r\n* Setting this access condition modifies the request to include the HTTP If-Modified-Since conditional header\r\n*\r\n* @param  {Date|string}  time              A date object specifying the time since which the resource must have been modified\r\n* @return {AccessConditions}               An AccessCondition object that represents the If-Modified-Since condition\r\n*/\r\nexports.generateIfModifiedSinceCondition = function (time) {\r\n  var accessCondition = {};\r\n  accessCondition.DateModifedSince = time;\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource has not been\r\n* modified since the specified time\r\n*\r\n* Setting this access condition modifies the request to include the HTTP If-Unmodified-Since conditional header\r\n*\r\n* @param  {Date|string}    time            A date object specifying the time since which the resource must have not been modified\r\n* @return {AccessConditions}               An AccessCondition object that represents the If-Unmodified-Since condition\r\n*/\r\nexports.generateIfNotModifiedSinceCondition = function (time) {\r\n  var accessCondition = {};\r\n  accessCondition.DateUnModifiedSince = time;\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource's sequence number\r\n* is equal to the specified value\r\n*\r\n* Setting this access condition modifies the request to include the HTTP x-ms-if-sequence-number-eq conditional header\r\n*\r\n* @param  {Number|string}    sequenceNumber    A date object specifying the time since which the resource must have not been modified\r\n* @return {AccessConditions}                   An AccessCondition object that represents the If-Unmodified-Since condition\r\n*/\r\nexports.generateSequenceNumberEqualCondition = function (sequenceNumber) {\r\n  var accessCondition = {};\r\n  accessCondition.SequenceNumberEqual = sequenceNumber;\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource's sequence number\r\n* is less than the specified value\r\n*\r\n* Setting this access condition modifies the request to include the HTTP x-ms-if-sequence-number-lt conditional header\r\n*\r\n* @param  {Number|string}    sequenceNumber    A date object specifying the time since which the resource must have not been modified\r\n* @return {AccessConditions}                   An AccessCondition object that represents the If-Unmodified-Since condition\r\n*/\r\nexports.generateSequenceNumberLessThanCondition = function (sequenceNumber) {\r\n  var accessCondition = {};\r\n  accessCondition.SequenceNumberLessThan = sequenceNumber;\r\n  return accessCondition;\r\n};\r\n\r\n/**\r\n* Constructs an access condition such that an operation will be performed only if the resource's sequence number\r\n* is less than or equal to the specified value\r\n*\r\n* Setting this access condition modifies the request to include the HTTP x-ms-if-sequence-number-le conditional header\r\n*\r\n* @param  {Number|string}    sequenceNumber    A date object specifying the time since which the resource must have not been modified\r\n* @return {AccessConditions}                   An AccessCondition object that represents the If-Unmodified-Since condition\r\n*/\r\nexports.generateSequenceNumberLessThanOrEqualCondition = function (sequenceNumber) {\r\n  var accessCondition = {};\r\n  accessCondition.SequenceNumberLessThanOrEqual = sequenceNumber;\r\n  return accessCondition;\r\n};\r\n},{}],32:[function(require,module,exports){\r\n(function (process){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Expose 'Constants'.\r\nexports = module.exports;\r\n\r\nvar storageDnsSuffix = process.env.AZURE_STORAGE_DNS_SUFFIX || 'core.windows.net';\r\n\r\n/**\r\n* Defines constants.\r\n*/\r\nvar Constants = {\r\n  /*\r\n  * Specifies the value to use for UserAgent header.\r\n  *\r\n  * @const\r\n  * @type {string}\r\n  */\r\n  USER_AGENT_PRODUCT_NAME: 'Azure-Storage',\r\n\r\n  /*\r\n  * Specifies the value to use for UserAgent header.\r\n  *\r\n  * @const\r\n  * @type {string}\r\n  */\r\n  USER_AGENT_PRODUCT_VERSION: '2.10.3',\r\n\r\n  /**\r\n  * The number of default concurrent requests for parallel operation.\r\n  *\r\n  * @const\r\n  * @type {int}\r\n  */\r\n  DEFAULT_PARALLEL_OPERATION_THREAD_COUNT: 5,\r\n\r\n  /**\r\n  * The value of default socket reuse for batch operation.\r\n  *\r\n  * @const\r\n  * @type {boolean}\r\n  */\r\n  DEFAULT_ENABLE_REUSE_SOCKET: true,\r\n\r\n  /**\r\n  * Constant representing a kilobyte (Non-SI version).\r\n  *\r\n  * @const\r\n  * @type {int}\r\n  */\r\n  KB: 1024,\r\n\r\n  /**\r\n  * Constant representing a megabyte (Non-SI version).\r\n  *\r\n  * @const\r\n  * @type {int}\r\n  */\r\n  MB: 1024 * 1024,\r\n\r\n  /**\r\n  * Constant representing a gigabyte (Non-SI version).\r\n  *\r\n  * @const\r\n  * @type {int}\r\n  */\r\n  GB: 1024 * 1024 * 1024,\r\n\r\n  /**\r\n  * Specifies HTTP.\r\n  *\r\n  * @const\r\n  * @type {string}\r\n  */\r\n  HTTP: 'http:',\r\n\r\n  /**\r\n  * Specifies HTTPS.\r\n  *\r\n  * @const\r\n  * @type {string}\r\n  */\r\n  HTTPS: 'https:',\r\n  \r\n  /**\r\n  * Default HTTP port.\r\n  *\r\n  * @const\r\n  * @type {int}\r\n  */\r\n  DEFAULT_HTTP_PORT: 80,\r\n  \r\n  /**\r\n  * Default HTTPS port.\r\n  *\r\n  * @const\r\n  * @type {int}\r\n  */\r\n  DEFAULT_HTTPS_PORT: 443,\r\n\r\n  /**\r\n   * Default client request timeout in milliseconds.\r\n   * Integer containing the number of milliseconds to wait for a server to send response headers (and start the response body) before aborting the request.\r\n   * 2 minutes by default.\r\n   * \r\n   * @const\r\n   * @type {int}\r\n   */\r\n  DEFAULT_CLIENT_REQUEST_TIMEOUT_IN_MS: 120000,\r\n\r\n  /**\r\n  * Marker for atom metadata.\r\n  *\r\n  * @const\r\n  * @type {string}\r\n  */\r\n  XML_METADATA_MARKER: '$',\r\n\r\n  /**\r\n  * Marker for atom value.\r\n  *\r\n  * @const\r\n  * @type {string}\r\n  */\r\n  XML_VALUE_MARKER: '_',\r\n  \r\n  /**\r\n  * Defines the service types indicators.\r\n  * \r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  ServiceType: {\r\n    Blob: 'blob',\r\n    Queue: 'queue',\r\n    Table: 'table',\r\n    File: 'file'\r\n  },\r\n\r\n  /**\r\n  * Specifies the location used to indicate which location the operation can be performed against.\r\n  *\r\n  * @const\r\n  * @enum {int}\r\n  */\r\n  RequestLocationMode: {\r\n    PRIMARY_ONLY: 0,\r\n    SECONDARY_ONLY: 1,\r\n    PRIMARY_OR_SECONDARY: 2\r\n  },\r\n\r\n  /**\r\n  * Represents a storage service location.\r\n  *\r\n  * @const\r\n  * @enum {int}\r\n  */\r\n  StorageLocation: {\r\n    PRIMARY: 0,\r\n    SECONDARY: 1\r\n  },\r\n\r\n  /**\r\n   * Defines constants for use with account SAS.\r\n   */\r\n  AccountSasConstants:{\r\n    /**\r\n    * Permission types.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    Permissions: {\r\n      READ: 'r',\r\n      ADD: 'a',\r\n      CREATE: 'c',\r\n      UPDATE: 'u',\r\n      PROCESS: 'p',\r\n      WRITE: 'w',\r\n      DELETE: 'd',\r\n      LIST: 'l'\r\n    },\r\n    \r\n    /**\r\n    * Services types.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    Services: {\r\n      BLOB: 'b',\r\n      FILE: 'f',\r\n      QUEUE: 'q',\r\n      TABLE: 't'\r\n    },\r\n    \r\n    /**\r\n    * Resources types.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    Resources: {\r\n      SERVICE: 's',\r\n      CONTAINER: 'c',\r\n      OBJECT: 'o'\r\n    },\r\n\r\n    /**\r\n     * Protocols types.\r\n     *\r\n     * @const\r\n     * @enum {string}\r\n     */\r\n    Protocols: {\r\n      HTTPSONLY: 'https',\r\n      HTTPSORHTTP: 'https,http'\r\n    }\r\n  },\r\n\r\n  /**\r\n  * Defines constants for use with shared access policies.\r\n  */\r\n  AclConstants: {\r\n    /**\r\n    * XML element for an access policy.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCESS_POLICY: 'AccessPolicy',\r\n\r\n    /**\r\n    * XML element for the end time of an access policy.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    EXPIRY: 'Expiry',\r\n\r\n    /**\r\n    * XML attribute for IDs.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ID: 'Id',\r\n\r\n    /**\r\n    * XML element for the permission of an access policy.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PERMISSION: 'Permission',\r\n\r\n    /**\r\n    * XML element for a signed identifier.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_IDENTIFIER_ELEMENT: 'SignedIdentifier',\r\n\r\n    /**\r\n    * XML element for signed identifiers.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_IDENTIFIERS_ELEMENT: 'SignedIdentifiers',\r\n\r\n    /**\r\n    * XML element for the start time of an access policy.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    START: 'Start'\r\n  },\r\n\r\n  /**\r\n  * Defines constants for use with service properties.\r\n  */\r\n  ServicePropertiesConstants: {\r\n    /**\r\n    * XML element for storage service properties.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    STORAGE_SERVICE_PROPERTIES_ELEMENT: 'StorageServiceProperties',\r\n\r\n    /**\r\n    * Default analytics version to send for logging, hour metrics and minute metrics.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEFAULT_ANALYTICS_VERSION: '1.0',\r\n\r\n    /**\r\n    * XML element for logging.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LOGGING_ELEMENT: 'Logging',\r\n\r\n    /**\r\n    * XML element for version.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    VERSION_ELEMENT: 'Version',\r\n\r\n    /**\r\n    * XML element for delete.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DELETE_ELEMENT: 'Delete',\r\n\r\n    /**\r\n    * XML element for read.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    READ_ELEMENT: 'Read',\r\n\r\n    /**\r\n    * XML element for write.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    WRITE_ELEMENT: 'Write',\r\n\r\n    /**\r\n    * XML element for retention policy.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    RETENTION_POLICY_ELEMENT: 'RetentionPolicy',\r\n\r\n    /**\r\n    * XML element for enabled.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ENABLED_ELEMENT: 'Enabled',\r\n\r\n    /**\r\n    * XML element for days.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DAYS_ELEMENT: 'Days',\r\n\r\n    /**\r\n    * XML element for HourMetrics.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    HOUR_METRICS_ELEMENT: 'HourMetrics',\r\n\r\n    /**\r\n    * XML element for MinuteMetrics.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MINUTE_METRICS_ELEMENT: 'MinuteMetrics',\r\n\r\n    /**\r\n    * XML element for Cors.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CORS_ELEMENT: 'Cors',\r\n\r\n    /**\r\n    * XML element for CorsRule.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CORS_RULE_ELEMENT: 'CorsRule',\r\n\r\n    /**\r\n    * XML element for AllowedOrigins.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ALLOWED_ORIGINS_ELEMENT: 'AllowedOrigins',\r\n\r\n    /**\r\n    * XML element for AllowedMethods.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ALLOWED_METHODS_ELEMENT: 'AllowedMethods',\r\n\r\n    /**\r\n    * XML element for MaxAgeInSeconds.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MAX_AGE_IN_SECONDS_ELEMENT: 'MaxAgeInSeconds',\r\n\r\n    /**\r\n    * XML element for ExposedHeaders.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    EXPOSED_HEADERS_ELEMENT: 'ExposedHeaders',\r\n\r\n    /**\r\n    * XML element for AllowedHeaders.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ALLOWED_HEADERS_ELEMENT: 'AllowedHeaders',\r\n\r\n    /**\r\n    * XML element for IncludeAPIs.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    INCLUDE_APIS_ELEMENT: 'IncludeAPIs',\r\n\r\n    /**\r\n    * XML element for DefaultServiceVersion.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEFAULT_SERVICE_VERSION_ELEMENT: 'DefaultServiceVersion',\r\n\r\n    /**\r\n    * XML element for DeleteRetentionPolicy.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEFAULT_DELETE_RETENTION_POLICY_ELEMENT: 'DeleteRetentionPolicy',\r\n\r\n    /**\r\n    * XML element for StaticWebsite.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEFAULT_STATIC_WEBSITE_ELEMENT: 'StaticWebsite',\r\n\r\n    /**\r\n    * XML element for StaticWebsite/IndexDocument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEFAULT_INDEX_DOCUMENT_ELEMENT: 'IndexDocument',\r\n\r\n    /**\r\n    * XML element for StaticWebsite/ErrorDocument404Path.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n   DEFAULT_ERROR_DOCUMENT_404_PATH_ELEMENT: 'ErrorDocument404Path'\r\n  },\r\n\r\n  /**\r\n  * Defines constants for use with blob operations.\r\n  */\r\n  BlobConstants: {\r\n    /**\r\n    * XML element for the latest.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LATEST_ELEMENT: 'Latest',\r\n\r\n    /**\r\n    * XML element for uncommitted blocks.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    UNCOMMITTED_ELEMENT: 'Uncommitted',\r\n\r\n    /**\r\n    * XML element for a block list.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOCK_LIST_ELEMENT: 'BlockList',\r\n\r\n    /**\r\n    * XML element for committed blocks.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COMMITTED_ELEMENT: 'Committed',\r\n\r\n    /**\r\n    * The default write page size, in bytes, used by blob streams.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_WRITE_PAGE_SIZE_IN_BYTES: 4 * 1024 * 1024,\r\n    \r\n    /**\r\n    * The minimum write page size, in bytes, used by blob streams.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MIN_WRITE_PAGE_SIZE_IN_BYTES: 2 * 1024 * 1024,\r\n\r\n    /**\r\n    * The default maximum size, in bytes, of a blob before it must be separated into blocks.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_SINGLE_BLOB_PUT_THRESHOLD_IN_BYTES: 32 * 1024 * 1024,\r\n\r\n    /**\r\n    * The default write block size, in bytes, used by blob streams.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES: 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The default critical memory limitation in 32bit Node.js environment, in bytes.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES: 800 * 1024 * 1024,\r\n\r\n   /**\r\n    * The default critical memory limitation in browser environment, in bytes.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES: 1 * 1024 * 1024 * 1024,\r\n\r\n   /**\r\n    * The default minimum memory usage in browser environment, in bytes.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES: 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The maximum size of a single block of block blob.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_BLOCK_BLOB_BLOCK_SIZE: 100 * 1024 * 1024,\r\n\r\n    /**\r\n    * The maximum size of a single block of append blob.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_APPEND_BLOB_BLOCK_SIZE: 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The maximum size, in bytes, of a blob before it must be separated into blocks.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES: 64 * 1024 * 1024,\r\n\r\n    /**\r\n    * The maximum range get size when requesting for a contentMD5.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_RANGE_GET_SIZE_WITH_MD5 : 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The maximum page range size for a page update operation.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_UPDATE_PAGE_SIZE : 4 * 1024 * 1024,\r\n    \r\n    /**\r\n    * The maximum buffer size for writing a stream buffer.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_QUEUED_WRITE_DISK_BUFFER_SIZE : 64 * 1024 * 1024,\r\n    \r\n    /**\r\n    * Max size for single get page range. The max value should be 150MB.\r\n    * http://blogs.msdn.com/b/windowsazurestorage/archive/2012/03/26/getting-the-page-ranges-of-a-large-page-blob-in-segments.aspx\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_SINGLE_GET_PAGE_RANGE_SIZE : 37 * 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The size of a page, in bytes, in a page blob.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    PAGE_SIZE: 512,\r\n\r\n    /**\r\n    * Resource types.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    ResourceTypes: {\r\n      CONTAINER: 'c',\r\n      BLOB: 'b'\r\n    },\r\n\r\n    /**\r\n    * List blob types.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    ListBlobTypes: {\r\n      Blob: 'b',\r\n      Directory: 'd'\r\n    },\r\n\r\n    /**\r\n    * Put page write options\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    PageWriteOptions: {\r\n      UPDATE: 'update',\r\n      CLEAR: 'clear'\r\n    },\r\n\r\n    /**\r\n    * Blob types\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    BlobTypes: {\r\n      BLOCK: 'BlockBlob',\r\n      PAGE: 'PageBlob',\r\n      APPEND: 'AppendBlob'\r\n    },\r\n\r\n    /**\r\n    * Blob lease constants\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    LeaseOperation: {\r\n      ACQUIRE: 'acquire',\r\n      RENEW: 'renew',\r\n      CHANGE: 'change',\r\n      RELEASE: 'release',\r\n      BREAK: 'break'\r\n    }\r\n  },\r\n\r\n  /**\r\n  * Defines constants for use with file operations.\r\n  */\r\n  FileConstants: {\r\n    /**\r\n    * The default write size, in bytes, used by file streams.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_WRITE_SIZE_IN_BYTES: 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The maximum range size when requesting for a contentMD5.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_RANGE_GET_SIZE_WITH_MD5 : 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The maximum range size for a file update operation.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MAX_UPDATE_FILE_SIZE : 4 * 1024 * 1024,\r\n\r\n    /**\r\n    * The default minimum size, in bytes, of a file when it must be separated into ranges.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    DEFAULT_SINGLE_FILE_GET_THRESHOLD_IN_BYTES: 32 * 1024 * 1024,\r\n\r\n    /**\r\n    * The minimum write file size, in bytes, used by file streams.\r\n    *\r\n    * @const\r\n    * @type {int}\r\n    */\r\n    MIN_WRITE_FILE_SIZE_IN_BYTES: 2 * 1024 * 1024,\r\n\r\n    /**\r\n    * Put range write options\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    RangeWriteOptions: {\r\n      UPDATE: 'update',\r\n      CLEAR: 'clear'\r\n    },\r\n\r\n    /**\r\n    * Resource types.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    ResourceTypes: {\r\n      SHARE: 's',\r\n      FILE: 'f'\r\n    }\r\n  },\r\n\r\n  /**\r\n  * Defines constants for use with queue storage.\r\n  */\r\n  QueueConstants: {\r\n    /**\r\n    * XML element for QueueMessage.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    QUEUE_MESSAGE_ELEMENT: 'QueueMessage',\r\n\r\n    /**\r\n    * XML element for MessageText.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MESSAGE_TEXT_ELEMENT: 'MessageText'\r\n  },\r\n\r\n  /**\r\n  * Defines constants for use with table storage.\r\n  */\r\n  TableConstants: {\r\n    /**\r\n    * The changeset response delimiter.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CHANGESET_DELIMITER: '--changesetresponse_',\r\n\r\n    /**\r\n    * The batch response delimiter.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BATCH_DELIMITER: '--batchresponse_',\r\n\r\n    /**\r\n    * The next continuation row key token.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTINUATION_NEXT_ROW_KEY: 'x-ms-continuation-nextrowkey',\r\n\r\n    /**\r\n    * The next continuation partition key token.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTINUATION_NEXT_PARTITION_KEY: 'x-ms-continuation-nextpartitionkey',\r\n\r\n    /**\r\n    * The next continuation table name token.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTINUATION_NEXT_TABLE_NAME: 'x-ms-continuation-nexttablename',\r\n\r\n    /**\r\n    * The next row key query string argument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    NEXT_ROW_KEY: 'NextRowKey',\r\n\r\n    /**\r\n    * The next partition key query string argument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    NEXT_PARTITION_KEY: 'NextPartitionKey',\r\n\r\n    /**\r\n    * The next table name query string argument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    NEXT_TABLE_NAME: 'NextTableName',\r\n\r\n    /**\r\n    * Prefix of the odata properties returned in a JSON query.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ODATA_PREFIX: 'odata.',\r\n\r\n    /**\r\n    * Constant representing the string following a type annotation in a JSON table query.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ODATA_TYPE_SUFFIX: '@odata.type',\r\n\r\n    /**\r\n    * Constant representing the property where the odata metadata elements are stored.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ODATA_METADATA_MARKER: '.metadata',\r\n\r\n    /**\r\n    * Constant representing the value for an entity property.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ODATA_VALUE_MARKER: '_',\r\n\r\n    /** \r\n    * Constant representing the type for an entity property.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ODATA_TYPE_MARKER: '$',\r\n\r\n    /**\r\n    * The value to set the maximum data service version header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEFAULT_DATA_SERVICE_VERSION: '3.0;NetFx',\r\n\r\n    /**\r\n    * The name of the property that stores the table name.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TABLE_NAME: 'TableName',\r\n\r\n    /**\r\n    * The name of the special table used to store tables.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TABLE_SERVICE_TABLE_NAME: 'Tables',\r\n\r\n    /**\r\n    * Operations.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    Operations: {\r\n      RETRIEVE: 'RETRIEVE',\r\n      INSERT: 'INSERT',\r\n      REPLACE: 'REPLACE',\r\n      MERGE: 'MERGE',\r\n      DELETE: 'DELETE',\r\n      INSERT_OR_REPLACE: 'INSERT_OR_REPLACE',\r\n      INSERT_OR_MERGE: 'INSERT_OR_MERGE'\r\n    }\r\n  },\r\n\r\n  /**\r\n  * Defines constants for use with HTTP headers.\r\n  */\r\n  HeaderConstants: {\r\n    /**\r\n    * The accept ranges header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCEPT_RANGES: 'accept_ranges',\r\n\r\n    /**\r\n    * The content transfer encoding header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_TRANSFER_ENCODING: 'content-transfer-encoding',\r\n\r\n    /**\r\n    * The transfer encoding header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TRANSFER_ENCODING: 'transfer-encoding',\r\n\r\n    /**\r\n    * The server header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SERVER: 'server',\r\n\r\n    /**\r\n    * The location header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LOCATION: 'location',\r\n\r\n    /**\r\n    * The Last-Modified header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LAST_MODIFIED: 'Last-Modified',\r\n\r\n    /**\r\n    * The creation time header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CREATION_TIME: 'x-ms-creation-time',\r\n\r\n    /**\r\n    * The data service version.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DATA_SERVICE_VERSION: 'dataserviceversion',\r\n\r\n    /**\r\n    * The maximum data service version.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MAX_DATA_SERVICE_VERSION: 'maxdataserviceversion',\r\n\r\n    /**\r\n    * The master Windows Azure Storage header prefix.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREFIX_FOR_STORAGE: 'x-ms-',\r\n\r\n    /**\r\n    * The client request Id header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CLIENT_REQUEST_ID: 'x-ms-client-request-id',\r\n\r\n    /**\r\n    * The header that specifies the approximate message count of a queue.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    APPROXIMATE_MESSAGES_COUNT: 'x-ms-approximate-messages-count',\r\n\r\n    /**\r\n    * The Authorization header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    AUTHORIZATION: 'authorization',\r\n\r\n    /**\r\n    * The header that is used to avoid browser cache.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FORCE_NO_CACHE_IN_BROWSER: '_',\r\n\r\n    /**\r\n    * The header that specifies public access to blobs.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_PUBLIC_ACCESS: 'x-ms-blob-public-access',\r\n\r\n    /**\r\n    * The header that specifies container immutability policy.\r\n    *\r\n    * @const\r\n    * @type {boolean}\r\n    */\r\n    HAS_IMMUTABILITY_POLICY: 'x-ms-has-immutability-policy',\r\n\r\n    /**\r\n    * The header that specifies container has legal hold.\r\n    *\r\n    * @const\r\n    * @type {boolean}\r\n    */\r\n    HAS_LEGAL_HOLD: 'x-ms-has-legal-hold',\r\n\r\n    /**\r\n    * The header for the blob type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_TYPE: 'x-ms-blob-type',\r\n\r\n    /**\r\n    * The header for the type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TYPE: 'x-ms-type',\r\n\r\n    /**\r\n    * Specifies the block blob type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOCK_BLOB: 'blockblob',\r\n\r\n    /**\r\n    * The CacheControl header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CACHE_CONTROL: 'cache-control',\r\n\r\n    /**\r\n    * The header that specifies blob caching control.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CACHE_CONTROL: 'x-ms-blob-cache-control',\r\n\r\n    /**\r\n    * The header that specifies caching control.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_CACHE_CONTROL: 'x-ms-cache-control',\r\n\r\n    /**\r\n    * The copy status.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_STATUS: 'x-ms-copy-status',\r\n\r\n    /**\r\n    * The copy completion time\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_COMPLETION_TIME: 'x-ms-copy-completion-time',\r\n\r\n    /**\r\n    * The copy status message\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_STATUS_DESCRIPTION: 'x-ms-copy-status-description',\r\n\r\n    /**\r\n    * The copy identifier.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_ID: 'x-ms-copy-id',\r\n\r\n    /**\r\n    * Progress of any copy operation\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_PROGRESS: 'x-ms-copy-progress',\r\n\r\n    /**\r\n    * The copy action.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_ACTION: 'x-ms-copy-action',\r\n\r\n    /**\r\n    * Flag if the blob is incremental copy blob.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    INCREMENTAL_COPY: 'x-ms-incremental-copy',\r\n\r\n    /**\r\n    * Snapshot time of the last successful incremental copy snapshot for this blob.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_DESTINATION_SNAPSHOT: 'x-ms-copy-destination-snapshot',\r\n\r\n    /**\r\n    * The ContentID header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_ID: 'content-id',\r\n\r\n    /**\r\n    * The ContentEncoding header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_ENCODING: 'content-encoding',\r\n\r\n    /**\r\n    * The header that specifies blob content encoding.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONTENT_ENCODING: 'x-ms-blob-content-encoding',\r\n\r\n    /**\r\n    * The header that specifies content encoding.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_CONTENT_ENCODING: 'x-ms-content-encoding',\r\n\r\n    /**\r\n    * The ContentLangauge header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_LANGUAGE: 'content-language',\r\n\r\n    /**\r\n    * The header that specifies blob content language.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONTENT_LANGUAGE: 'x-ms-blob-content-language',\r\n\r\n    /**\r\n    * The header that specifies content language.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_CONTENT_LANGUAGE: 'x-ms-content-language',\r\n\r\n    /**\r\n    * The ContentLength header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_LENGTH: 'content-length',\r\n\r\n    /**\r\n    * The header that specifies blob content length.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONTENT_LENGTH: 'x-ms-blob-content-length',\r\n\r\n    /**\r\n    * The header that specifies content length.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_CONTENT_LENGTH: 'x-ms-content-length',\r\n\r\n    /**\r\n    * The ContentDisposition header.\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_DISPOSITION: 'content-disposition',\r\n\r\n    /**\r\n    * The header that specifies blob content disposition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONTENT_DISPOSITION: 'x-ms-blob-content-disposition',\r\n\r\n    /**\r\n    * The header that specifies content disposition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_CONTENT_DISPOSITION: 'x-ms-content-disposition',\r\n\r\n    /**\r\n    * The ContentMD5 header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_MD5: 'content-md5',\r\n\r\n    /**\r\n    * The header that specifies blob content MD5.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONTENT_MD5: 'x-ms-blob-content-md5',\r\n\r\n    /**\r\n    * The header that specifies content MD5.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_CONTENT_MD5: 'x-ms-content-md5',\r\n\r\n    /**\r\n    * The ContentRange header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_RANGE: 'cache-range',\r\n\r\n    /**\r\n    * The ContentType header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_TYPE: 'content-type',\r\n\r\n    /**\r\n    * The header that specifies blob content type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONTENT_TYPE: 'x-ms-blob-content-type',\r\n\r\n    /**\r\n    * The header that specifies content type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_CONTENT_TYPE: 'x-ms-content-type',\r\n\r\n    /**\r\n    * The header for copy source.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_SOURCE: 'x-ms-copy-source',\r\n\r\n    /**\r\n    * The header that specifies the date.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DATE: 'date',\r\n\r\n    /**\r\n    * The header that specifies the date.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MS_DATE: 'x-ms-date',\r\n\r\n    /**\r\n    * The header to delete snapshots.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DELETE_SNAPSHOT: 'x-ms-delete-snapshots',\r\n\r\n    /**\r\n    * The ETag header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ETAG: 'etag',\r\n\r\n    /**\r\n    * The IfMatch header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    IF_MATCH: 'if-match',\r\n\r\n    /**\r\n    * The IfModifiedSince header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    IF_MODIFIED_SINCE: 'if-modified-since',\r\n\r\n    /**\r\n    * The IfNoneMatch header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    IF_NONE_MATCH: 'if-none-match',\r\n\r\n    /**\r\n    * The IfUnmodifiedSince header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    IF_UNMODIFIED_SINCE: 'if-unmodified-since',\r\n\r\n    /**\r\n    * Specifies snapshots are to be included.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    INCLUDE_SNAPSHOTS_VALUE: 'include',\r\n\r\n    /**\r\n    * Specifies that the content-type is JSON.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    JSON_CONTENT_TYPE_VALUE: 'application/json',\r\n\r\n    /**\r\n    * The header that specifies storage SKU, also known as account type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SKU_NAME: 'x-ms-sku-name',\r\n\r\n    /**\r\n    * The header that describes the flavour of the storage account, also known as account kind.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCOUNT_KIND: 'x-ms-account-kind',\r\n\r\n    /**\r\n    * The header that specifies lease ID.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LEASE_ID: 'x-ms-lease-id',\r\n\r\n    /**\r\n    * The header that specifies the lease break period.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LEASE_BREAK_PERIOD: 'x-ms-lease-break-period',\r\n\r\n    /**\r\n    * The header that specifies the proposed lease identifier.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PROPOSED_LEASE_ID: 'x-ms-proposed-lease-id',\r\n\r\n    /**\r\n    * The header that specifies the lease duration.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LEASE_DURATION: 'x-ms-lease-duration',\r\n\r\n    /**\r\n    * The header that specifies the source lease ID.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SOURCE_LEASE_ID: 'x-ms-source-lease-id',\r\n\r\n    /**\r\n    * The header that specifies lease time.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LEASE_TIME: 'x-ms-lease-time',\r\n\r\n    /**\r\n    * The header that specifies lease status.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LEASE_STATUS: 'x-ms-lease-status',\r\n\r\n    /**\r\n    * The header that specifies lease state.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LEASE_STATE: 'x-ms-lease-state',\r\n\r\n    /**\r\n    * Specifies the page blob type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PAGE_BLOB: 'PageBlob',\r\n\r\n    /**\r\n    * The header that specifies page write mode.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PAGE_WRITE: 'x-ms-page-write',\r\n\r\n    /**\r\n    * The header that specifies file range write mode.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILE_WRITE: 'x-ms-write',\r\n\r\n    /**\r\n    * The header that specifies whether the response should include the inserted entity.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREFER: 'Prefer',\r\n\r\n    /**\r\n    * The header value which specifies that the response should include the inserted entity.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREFER_CONTENT: 'return-content',\r\n\r\n    /**\r\n    * The header value which specifies that the response should not include the inserted entity.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREFER_NO_CONTENT: 'return-no-content',\r\n\r\n    /**\r\n    * The header prefix for metadata.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREFIX_FOR_STORAGE_METADATA: 'x-ms-meta-',\r\n\r\n    /**\r\n    * The header prefix for properties.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREFIX_FOR_STORAGE_PROPERTIES: 'x-ms-prop-',\r\n\r\n    /**\r\n    * The Range header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    RANGE: 'Range',\r\n\r\n    /**\r\n    * The Source Range header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SOURCE_RANGE: 'x-ms-source-range',\r\n\r\n    /**\r\n    * The header that specifies if the request will populate the ContentMD5 header for range gets.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    RANGE_GET_CONTENT_MD5: 'x-ms-range-get-content-md5',\r\n\r\n    /**\r\n    * The format string for specifying ranges.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    RANGE_HEADER_FORMAT: 'bytes:%d-%d',\r\n\r\n    /**\r\n    * The header that indicates the request ID.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    REQUEST_ID: 'x-ms-request-id',\r\n\r\n    /**\r\n    * The header for specifying the sequence number.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SEQUENCE_NUMBER: 'x-ms-blob-sequence-number',\r\n\r\n    /**\r\n    * The header for specifying the If-Sequence-Number-EQ condition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SEQUENCE_NUMBER_EQUAL: 'x-ms-if-sequence-number-eq',\r\n\r\n    /**\r\n    * The header for specifying the If-Sequence-Number-LT condition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SEQUENCE_NUMBER_LESS_THAN: 'x-ms-if-sequence-number-lt',\r\n\r\n    /**\r\n    * The header for specifying the If-Sequence-Number-LE condition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL: 'x-ms-if-sequence-number-le',\r\n\r\n    /**\r\n    * The header that specifies sequence number action.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SEQUENCE_NUMBER_ACTION: 'x-ms-sequence-number-action',\r\n\r\n    /**\r\n    * The header for the blob content length.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIZE: 'x-ms-blob-content-length',\r\n\r\n    /**\r\n    * The header for snapshots.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SNAPSHOT: 'x-ms-snapshot',\r\n\r\n    /**\r\n    * Specifies only snapshots are to be included.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SNAPSHOTS_ONLY_VALUE: 'only',\r\n\r\n    /**\r\n    * The header for the If-Match condition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SOURCE_IF_MATCH: 'x-ms-source-if-match',\r\n\r\n    /**\r\n    * The header for the If-Modified-Since condition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SOURCE_IF_MODIFIED_SINCE: 'x-ms-source-if-modified-since',\r\n\r\n    /**\r\n    * The header for the If-None-Match condition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SOURCE_IF_NONE_MATCH: 'x-ms-source-if-none-match',\r\n\r\n    /**\r\n    * The header for the If-Unmodified-Since condition.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SOURCE_IF_UNMODIFIED_SINCE: 'x-ms-source-if-unmodified-since',\r\n\r\n    /**\r\n    * The header for data ranges.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    STORAGE_RANGE: 'x-ms-range',\r\n\r\n    /**\r\n    * The header for storage version.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    STORAGE_VERSION: 'x-ms-version',\r\n\r\n    /**\r\n    * The current storage version header value.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TARGET_STORAGE_VERSION: '2018-03-28',\r\n\r\n    /**\r\n    * The UserAgent header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    USER_AGENT: 'user-agent',\r\n\r\n    /**\r\n    * The pop receipt header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    POP_RECEIPT: 'x-ms-popreceipt',\r\n\r\n    /**\r\n    * The time next visibile header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TIME_NEXT_VISIBLE: 'x-ms-time-next-visible',\r\n\r\n    /**\r\n    * The approximate message counter header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    APPROXIMATE_MESSAGE_COUNT: 'x-ms-approximate-message-count',\r\n\r\n    /**\r\n    * The lease action header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LEASE_ACTION: 'x-ms-lease-action',\r\n\r\n    /**\r\n    * The accept header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCEPT: 'accept',\r\n\r\n    /**\r\n    * The accept charset header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCEPT_CHARSET: 'Accept-Charset',\r\n\r\n    /**\r\n    * The host header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    HOST: 'host',\r\n\r\n    /**\r\n    * The correlation identifier header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CORRELATION_ID: 'x-ms-correlation-id',\r\n\r\n    /**\r\n    * The group identifier header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    GROUP_ID: 'x-ms-group-id',\r\n\r\n    /**\r\n    * The share quota header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SHARE_QUOTA: 'x-ms-share-quota',\r\n    \r\n    /**\r\n    * The max blob size header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONDITION_MAX_SIZE: 'x-ms-blob-condition-maxsize',\r\n\r\n    /**\r\n    * The append blob position header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_CONDITION_APPEND_POSITION: 'x-ms-blob-condition-appendpos',\r\n\r\n    /**\r\n    * The append blob append offset header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_APPEND_OFFSET: 'x-ms-blob-append-offset',\r\n\r\n    /**\r\n    * The append blob committed block header.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOB_COMMITTED_BLOCK_COUNT: 'x-ms-blob-committed-block-count',\r\n\r\n    /**\r\n     * If the contents of the request have been successfully encrypted using the specified algorithm.\r\n     *\r\n     * @const\r\n     * @type {string}\r\n     */\r\n    REQUEST_SERVER_ENCRYPTED: 'x-ms-request-server-encrypted',\r\n\r\n    /**\r\n    * If the data and application metadata are completely encrypted using the specified algorithm.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SERVER_ENCRYPTED: 'x-ms-server-encrypted',\r\n\r\n    /**\r\n    * Header indicates the resulting tier of the blob.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCESS_TIER: 'x-ms-access-tier',\r\n\r\n    /**\r\n    * This is the datetime of when the last time tier was changed on the blob.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCESS_TIER_CHANGE_TIME: 'x-ms-access-tier-change-time',\r\n\r\n    /**\r\n    * If the access tier is not explicitly set on the blob, \r\n    * the tier is inferred based on its content length \r\n    * and this header will be returned with true value.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ACCESS_TIER_INFERRED: 'x-ms-access-tier-inferred',\r\n\r\n    /**\r\n    * For BlobStorage accounts, the header is returned if archive tier is set\r\n    * and rehydrate operation is pending for the request version is 2017-04-17 or later.\r\n    * The valid values are rehydrate-pending-to-hot or rehydrate-pending-to-cool.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ARCHIVE_STATUS: 'x-ms-archive-status'\r\n  },\r\n\r\n  QueryStringConstants: {\r\n\r\n    /**\r\n    * Query component for SAS API version.\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    API_VERSION: 'api-version',\r\n\r\n    /**\r\n    * The Comp value.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COMP: 'comp',\r\n\r\n    /**\r\n    * The Res Type.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    RESTYPE: 'restype',\r\n\r\n    /**\r\n    * The copy Id.\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    COPY_ID: 'copyid',\r\n\r\n    /**\r\n    * The snapshot value.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SNAPSHOT: 'snapshot',\r\n\r\n    /**\r\n    * The share snapshot value.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SHARE_SNAPSHOT: 'sharesnapshot',\r\n\r\n    /**\r\n    * The previous snapshot value.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREV_SNAPSHOT: 'prevsnapshot',\r\n\r\n    /**\r\n    * The timeout value.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TIMEOUT: 'timeout',\r\n\r\n    /**\r\n    * The signed start time query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_START: 'st',\r\n\r\n    /**\r\n    * The signed expiry time query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_EXPIRY: 'se',\r\n\r\n    /**\r\n    * The signed resource query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_RESOURCE: 'sr',\r\n\r\n    /**\r\n    * The signed permissions query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_PERMISSIONS: 'sp',\r\n    \r\n    /**\r\n    * The signed services query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_SERVICES: 'ss',\r\n    \r\n    /**\r\n    * The signed resource types query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_RESOURCE_TYPES: 'srt',\r\n    \r\n    /**\r\n    * The signed IP query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_IP: 'sip',\r\n    \r\n    /**\r\n    * The signed protocol query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_PROTOCOL: 'spr',\r\n\r\n    /**\r\n    * The signed identifier query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_IDENTIFIER: 'si',\r\n\r\n    /**\r\n    * The signature query string argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNATURE: 'sig',\r\n\r\n    /**\r\n    * The signed version argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SIGNED_VERSION: 'sv',\r\n\r\n    /**\r\n    * The cache control argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CACHE_CONTROL: 'rscc',\r\n\r\n    /**\r\n    * The content type argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_TYPE: 'rsct',\r\n\r\n    /**\r\n    * The content encoding argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_ENCODING: 'rsce',\r\n\r\n    /**\r\n    * The content language argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_LANGUAGE: 'rscl',\r\n\r\n    /**\r\n    * The content disposition argument for shared access signature.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    CONTENT_DISPOSITION: 'rscd',\r\n\r\n    /**\r\n    * The block identifier query string argument for blob service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOCK_ID: 'blockid',\r\n\r\n    /**\r\n    * The block list type query string argument for blob service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    BLOCK_LIST_TYPE: 'blocklisttype',\r\n\r\n    /**\r\n    * The prefix query string argument for listing operations.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PREFIX: 'prefix',\r\n\r\n    /**\r\n    * The marker query string argument for listing operations.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MARKER: 'marker',\r\n\r\n    /**\r\n    * The maxresults query string argument for listing operations.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MAX_RESULTS: 'maxresults',\r\n\r\n    /**\r\n    * The delimiter query string argument for listing operations.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DELIMITER: 'delimiter',\r\n\r\n    /**\r\n    * The include query string argument for listing operations.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    INCLUDE: 'include',\r\n\r\n    /**\r\n    * The peekonly query string argument for queue service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    PEEK_ONLY: 'peekonly',\r\n\r\n    /**\r\n    * The numofmessages query string argument for queue service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    NUM_OF_MESSAGES: 'numofmessages',\r\n\r\n    /**\r\n    * The popreceipt query string argument for queue service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    POP_RECEIPT: 'popreceipt',\r\n\r\n    /**\r\n    * The visibilitytimeout query string argument for queue service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    VISIBILITY_TIMEOUT: 'visibilitytimeout',\r\n\r\n    /**\r\n    * The messagettl query string argument for queue service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    MESSAGE_TTL: 'messagettl',\r\n\r\n    /**\r\n    * The select query string argument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SELECT: '$select',\r\n\r\n    /**\r\n    * The filter query string argument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FILTER: '$filter',\r\n\r\n    /**\r\n    * The top query string argument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TOP: '$top',\r\n\r\n    /**\r\n    * The skip query string argument.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    SKIP: '$skip',\r\n\r\n    /**\r\n    * The next partition key query string argument for table service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    NEXT_PARTITION_KEY: 'NextPartitionKey',\r\n\r\n    /**\r\n    * The next row key query string argument for table service.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    NEXT_ROW_KEY: 'NextRowKey',\r\n\r\n    /**\r\n    * The lock identifier for service bus messages.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    LOCK_ID: 'lockid',\r\n\r\n    /**\r\n    * The table name for table SAS URI's.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    TABLENAME: 'tn',\r\n\r\n    /**\r\n    * The starting Partition Key for tableSAS URI's.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    STARTPK: 'spk',\r\n\r\n    /**\r\n    * The starting Partition Key for tableSAS URI's.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    STARTRK: 'srk',\r\n\r\n    /**\r\n    * The ending Partition Key for tableSAS URI's.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ENDPK: 'epk',\r\n\r\n    /**\r\n    * The ending Partition Key for tableSAS URI's.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    ENDRK: 'erk'\r\n  },\r\n\r\n  StorageServiceClientConstants: {\r\n    /**\r\n    * The default protocol.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEFAULT_PROTOCOL: 'https:',\r\n\r\n    /*\r\n    * Used environment variables.\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    EnvironmentVariables: {\r\n      AZURE_STORAGE_ACCOUNT: 'AZURE_STORAGE_ACCOUNT',\r\n      AZURE_STORAGE_ACCESS_KEY: 'AZURE_STORAGE_ACCESS_KEY',\r\n      AZURE_STORAGE_DNS_SUFFIX: 'AZURE_STORAGE_DNS_SUFFIX',\r\n      AZURE_STORAGE_CONNECTION_STRING: 'AZURE_STORAGE_CONNECTION_STRING',\r\n      HTTP_PROXY: 'HTTP_PROXY',\r\n      HTTPS_PROXY: 'HTTPS_PROXY',\r\n      EMULATED: 'EMULATED'\r\n    },\r\n\r\n    /**\r\n    * Default credentials.\r\n    */\r\n    DEVSTORE_STORAGE_ACCOUNT: 'devstoreaccount1',\r\n    DEVSTORE_STORAGE_ACCESS_KEY: 'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==',\r\n\r\n    /**\r\n    * The development store URI.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    DEV_STORE_URI: 'http://127.0.0.1',\r\n\r\n    /**\r\n    * Development ServiceClient URLs.\r\n    */\r\n    DEVSTORE_DEFAULT_PROTOCOL: 'http://',\r\n    DEVSTORE_BLOB_HOST: '127.0.0.1:10000',\r\n    DEVSTORE_QUEUE_HOST: '127.0.0.1:10001',\r\n    DEVSTORE_TABLE_HOST: '127.0.0.1:10002',\r\n\r\n    /**\r\n    * Production ServiceClient URLs.\r\n    */\r\n    CLOUD_BLOB_HOST: 'blob.' + storageDnsSuffix,\r\n    CLOUD_QUEUE_HOST: 'queue.' + storageDnsSuffix,\r\n    CLOUD_TABLE_HOST: 'table.' + storageDnsSuffix,\r\n    CLOUD_FILE_HOST: 'file.' + storageDnsSuffix\r\n  },\r\n\r\n  HttpConstants: {\r\n    /**\r\n    * Http Verbs\r\n    *\r\n    * @const\r\n    * @enum {string}\r\n    */\r\n    HttpVerbs: {\r\n      PUT: 'PUT',\r\n      GET: 'GET',\r\n      DELETE: 'DELETE',\r\n      POST: 'POST',\r\n      MERGE: 'MERGE',\r\n      HEAD: 'HEAD'\r\n    },\r\n\r\n    /**\r\n    * Response codes.\r\n    *\r\n    * @const\r\n    * @enum {int}\r\n    */\r\n    HttpResponseCodes: {\r\n      Ok: 200,\r\n      Created: 201,\r\n      Accepted: 202,\r\n      NoContent: 204,\r\n      PartialContent: 206,\r\n      BadRequest: 400,\r\n      Unauthorized: 401,\r\n      Forbidden: 403,\r\n      NotFound: 404,\r\n      Conflict: 409,\r\n      LengthRequired: 411,\r\n      PreconditionFailed: 412\r\n    }\r\n  },\r\n\r\n  CompatibleVersionConstants: {\r\n    /**\r\n    * Constant for the 2013-08-15 version.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    AUGUST_2013: '2013-08-15',\r\n\r\n    /**\r\n    * Constant for the 2012-02-12 version.\r\n    *\r\n    * @const\r\n    * @type {string}\r\n    */\r\n    FEBRUARY_2012: '2012-02-12'\r\n  },\r\n\r\n  BlobErrorCodeStrings: {\r\n    INVALID_BLOCK_ID: 'InvalidBlockId',\r\n    BLOB_NOT_FOUND: 'BlobNotFound',\r\n    BLOB_ALREADY_EXISTS: 'BlobAlreadyExists',\r\n    CONTAINER_ALREADY_EXISTS: 'ContainerAlreadyExists',\r\n    CONTAINER_NOT_FOUND: 'ContainerNotFound',\r\n    INVALID_BLOB_OR_BLOCK: 'InvalidBlobOrBlock',\r\n    INVALID_BLOCK_LIST: 'InvalidBlockList'\r\n  },\r\n\r\n  FileErrorCodeStrings: {\r\n    SHARE_ALREADY_EXISTS: 'ShareAlreadyExists',\r\n    SHARE_NOT_FOUND: 'ShareNotFound',\r\n    FILE_NOT_FOUND: 'FileNotFound'\r\n  },\r\n\r\n  QueueErrorCodeStrings: {\r\n    QUEUE_NOT_FOUND: 'QueueNotFound',\r\n    QUEUE_DISABLED: 'QueueDisabled',\r\n    QUEUE_ALREADY_EXISTS: 'QueueAlreadyExists',\r\n    QUEUE_NOT_EMPTY: 'QueueNotEmpty',\r\n    QUEUE_BEING_DELETED: 'QueueBeingDeleted',\r\n    POP_RECEIPT_MISMATCH: 'PopReceiptMismatch',\r\n    INVALID_PARAMETER: 'InvalidParameter',\r\n    MESSAGE_NOT_FOUND: 'MessageNotFound',\r\n    MESSAGE_TOO_LARGE: 'MessageTooLarge',\r\n    INVALID_MARKER: 'InvalidMarker'\r\n  },\r\n\r\n  /**\r\n  * Constants for storage error strings\r\n  *\r\n  * More details are at: http://msdn.microsoft.com/en-us/library/azure/dd179357.aspx\r\n  */\r\n  StorageErrorCodeStrings: {\r\n    // Not Modified (304): The condition specified in the conditional header(s) was not met for a read operation.\r\n    // Precondition Failed (412): The condition specified in the conditional header(s) was not met for a write operation.\r\n    CONDITION_NOT_MET: 'ConditionNotMet', \r\n    // Bad Request (400): A required HTTP header was not specified.\r\n    MISSING_REQUIRED_HEADER: 'MissingRequiredHeader', \r\n    // Bad Request (400): A required XML node was not specified in the request body.\r\n    MISSING_REQUIRED_XML_NODE: 'MissingRequiredXmlNode', \r\n    // Bad Request (400): One of the HTTP headers specified in the request is not supported.\r\n    UNSUPPORTED_HEADER: 'UnsupportedHeader',\r\n    // Bad Request (400): One of the XML nodes specified in the request body is not supported.\r\n    UNSUPPORTED_XML_NODE: 'UnsupportedXmlNode', \r\n    // Bad Request (400): The value provided for one of the HTTP headers was not in the correct format.\r\n    INVALID_HEADER_VALUE: 'InvalidHeaderValue', \r\n    // Bad Request (400): The value provided for one of the XML nodes in the request body was not in the correct format.\r\n    INVALID_XML_NODE_VALUE: 'InvalidXmlNodeValue',\r\n    // Bad Request (400): A required query parameter was not specified for this request.\r\n    MISSING_REQUIRED_QUERY_PARAMETER: 'MissingRequiredQueryParameter',\r\n    // Bad Request (400): One of the query parameters specified in the request URI is not supported.\r\n    UNSUPPORTED_QUERY_PARAMETER: 'UnsupportedQueryParameter',\r\n    // Bad Request (400): An invalid value was specified for one of the query parameters in the request URI.\r\n    INVALID_QUERY_PARAMETER_VALUE: 'InvalidQueryParameterValue',\r\n    // Bad Request (400): A query parameter specified in the request URI is outside the permissible range.\r\n    OUT_OF_RANGE_QUERY_PARAMETER_VALUE: 'OutOfRangeQueryParameterValue',\r\n    // Bad Request (400): The url in the request could not be parsed.\r\n    REQUEST_URL_FAILED_TO_PARSE: 'RequestUrlFailedToParse',\r\n    // Bad Request (400): The requested URI does not represent any resource on the server.\r\n    INVALID_URI: 'InvalidUri',\r\n    // Bad Request (400): The HTTP verb specified was not recognized by the server.\r\n    INVALID_HTTP_VERB: 'InvalidHttpVerb',\r\n    // Bad Request (400): The key for one of the metadata key-value pairs is empty.\r\n    EMPTY_METADATA_KEY: 'EmptyMetadataKey',\r\n    // Bad Request (400): The specified XML is not syntactically valid.\r\n    INVALID_XML_DOCUMENT: 'InvalidXmlDocument',\r\n    // Bad Request (400): The MD5 value specified in the request did not match the MD5 value calculated by the server.\r\n    MD5_MISMATCH: 'Md5Mismatch',\r\n    // Bad Request (400): The MD5 value specified in the request is invalid. The MD5 value must be 128 bits and Base64-encoded.\r\n    INVALID_MD5: 'InvalidMd5',\r\n    // Bad Request (400): One of the request inputs is out of range.\r\n    OUT_OF_RANGE_INPUT: 'OutOfRangeInput',\r\n    // Bad Request (400): The authentication information was not provided in the correct format. Verify the value of Authorization header.\r\n    INVALID_AUTHENTICATION_INFO: 'InvalidAuthenticationInfo',\r\n    // Bad Request (400): One of the request inputs is not valid.\r\n    INVALID_INPUT: 'InvalidInput',\r\n    // Bad Request (400): The specified metadata is invalid. It includes characters that are not permitted.\r\n    INVALID_METADATA: 'InvalidMetadata',\r\n    // Bad Request (400): The specifed resource name contains invalid characters.\r\n    INVALID_RESOURCE_NAME: 'InvalidResourceName',\r\n    // Bad Request (400): The size of the specified metadata exceeds the maximum size permitted.\r\n    METADATA_TOO_LARGE: 'MetadataTooLarge',\r\n    // Bad Request (400): Condition headers are not supported.\r\n    CONDITION_HEADER_NOT_SUPPORTED: 'ConditionHeadersNotSupported',\r\n    // Bad Request (400): Multiple condition headers are not supported.\r\n    MULTIPLE_CONDITION_HEADER_NOT_SUPPORTED: 'MultipleConditionHeadersNotSupported',\r\n    // Forbidden (403): Server failed to authenticate the request. Make sure the value of the Authorization header is formed correctly including the signature.\r\n    AUTHENTICATION_FAILED: 'AuthenticationFailed',\r\n    // Forbidden (403): Read-access geo-redundant replication is not enabled for the account.\r\n    // Forbidden (403): Write operations to the secondary location are not allowed.\r\n    // Forbidden (403): The account being accessed does not have sufficient permissions to execute this operation.\r\n    INSUFFICIENT_ACCOUNT_PERMISSIONS: 'InsufficientAccountPermissions',\r\n    // Not Found (404): The specified resource does not exist.\r\n    RESOURCE_NOT_FOUND: 'ResourceNotFound',\r\n    // Forbidden (403): The specified account is disabled.\r\n    ACCOUNT_IS_DISABLED: 'AccountIsDisabled',\r\n    // Method Not Allowed (405): The resource doesn't support the specified HTTP verb.\r\n    UNSUPPORTED_HTTP_VERB: 'UnsupportedHttpVerb',\r\n    // Conflict (409): The specified account already exists. \r\n    ACCOUNT_ALREADY_EXISTS: 'AccountAlreadyExists',\r\n    // Conflict (409): The specified account is in the process of being created.\r\n    ACCOUNT_BEING_CREATED: 'AccountBeingCreated',\r\n    // Conflict (409): The specified resource already exists.\r\n    RESOURCE_ALREADY_EXISTS: 'ResourceAlreadyExists',\r\n    // Conflict (409): The specified resource type does not match the type of the existing resource.\r\n    RESOURCE_TYPE_MISMATCH: 'ResourceTypeMismatch',\r\n    // Length Required (411): The Content-Length header was not specified.\r\n    MISSING_CONTENT_LENGTH_HEADER: 'MissingContentLengthHeader',\r\n    // Request Entity Too Large (413): The size of the request body exceeds the maximum size permitted.\r\n    REQUEST_BODY_TOO_LARGE: 'RequestBodyTooLarge',\r\n    // Requested Range Not Satisfiable (416): The range specified is invalid for the current size of the resource.\r\n    INVALID_RANGE: 'InvalidRange',\r\n    // Internal Server Error (500): The server encountered an internal error. Please retry the request.\r\n    INTERNAL_ERROR: 'InternalError',\r\n    // Internal Server Error (500): The operation could not be completed within the permitted time.\r\n    OPERATION_TIMED_OUT: 'OperationTimedOut',\r\n    // Service Unavailable (503): The server is currently unable to receive requests. Please retry your request. \r\n    SERVER_BUSY: 'ServerBusy',\r\n\r\n    // Legacy error code strings\r\n    UPDATE_CONDITION_NOT_SATISFIED: 'UpdateConditionNotSatisfied',\r\n    CONTAINER_NOT_FOUND: 'ContainerNotFound',\r\n    CONTAINER_ALREADY_EXISTS: 'ContainerAlreadyExists',\r\n    CONTAINER_DISABLED: 'ContainerDisabled',\r\n    CONTAINER_BEING_DELETED: 'ContainerBeingDeleted'\r\n  },\r\n\r\n  TableErrorCodeStrings: {\r\n    XMETHOD_NOT_USING_POST: 'XMethodNotUsingPost',\r\n    XMETHOD_INCORRECT_VALUE: 'XMethodIncorrectValue',\r\n    XMETHOD_INCORRECT_COUNT: 'XMethodIncorrectCount',\r\n    TABLE_HAS_NO_PROPERTIES: 'TableHasNoProperties',\r\n    DUPLICATE_PROPERTIES_SPECIFIED: 'DuplicatePropertiesSpecified',\r\n    TABLE_HAS_NO_SUCH_PROPERTY: 'TableHasNoSuchProperty',\r\n    DUPLICATE_KEY_PROPERTY_SPECIFIED: 'DuplicateKeyPropertySpecified',\r\n    TABLE_ALREADY_EXISTS: 'TableAlreadyExists',\r\n    TABLE_NOT_FOUND: 'TableNotFound',\r\n    ENTITY_NOT_FOUND: 'EntityNotFound',\r\n    ENTITY_ALREADY_EXISTS: 'EntityAlreadyExists',\r\n    PARTITION_KEY_NOT_SPECIFIED: 'PartitionKeyNotSpecified',\r\n    OPERATOR_INVALID: 'OperatorInvalid',\r\n    UPDATE_CONDITION_NOT_SATISFIED: 'UpdateConditionNotSatisfied',\r\n    PROPERTIES_NEED_VALUE: 'PropertiesNeedValue',\r\n    PARTITION_KEY_PROPERTY_CANNOT_BE_UPDATED: 'PartitionKeyPropertyCannotBeUpdated',\r\n    TOO_MANY_PROPERTIES: 'TooManyProperties',\r\n    ENTITY_TOO_LARGE: 'EntityTooLarge',\r\n    PROPERTY_VALUE_TOO_LARGE: 'PropertyValueTooLarge',\r\n    INVALID_VALUE_TYPE: 'InvalidValueType',\r\n    TABLE_BEING_DELETED: 'TableBeingDeleted',\r\n    TABLE_SERVER_OUT_OF_MEMORY: 'TableServerOutOfMemory',\r\n    PRIMARY_KEY_PROPERTY_IS_INVALID_TYPE: 'PrimaryKeyPropertyIsInvalidType',\r\n    PROPERTY_NAME_TOO_LONG: 'PropertyNameTooLong',\r\n    PROPERTY_NAME_INVALID: 'PropertyNameInvalid',\r\n    BATCH_OPERATION_NOT_SUPPORTED: 'BatchOperationNotSupported',\r\n    JSON_FORMAT_NOT_SUPPORTED: 'JsonFormatNotSupported',\r\n    METHOD_NOT_ALLOWED: 'MethodNotAllowed',\r\n    NOT_IMPLEMENTED: 'NotImplemented'\r\n  },\r\n\r\n  ConnectionStringKeys: {\r\n    USE_DEVELOPMENT_STORAGE_NAME: 'UseDevelopmentStorage',\r\n    DEVELOPMENT_STORAGE_PROXY_URI_NAME: 'DevelopmentStorageProxyUri',\r\n    DEFAULT_ENDPOINTS_PROTOCOL_NAME: 'DefaultEndpointsProtocol',\r\n    ACCOUNT_NAME_NAME: 'AccountName',\r\n    ACCOUNT_KEY_NAME: 'AccountKey',\r\n    BLOB_ENDPOINT_NAME: 'BlobEndpoint',\r\n    FILE_ENDPOINT_NAME: 'FileEndpoint',\r\n    QUEUE_ENDPOINT_NAME: 'QueueEndpoint',\r\n    TABLE_ENDPOINT_NAME: 'TableEndpoint',\r\n    SHARED_ACCESS_SIGNATURE_NAME: 'SharedAccessSignature',\r\n    ENDPOINT_SUFFIX_NAME: 'EndpointSuffix',\r\n    BLOB_BASE_DNS_NAME: 'blob.core.windows.net',\r\n    FILE_BASE_DNS_NAME: 'file.core.windows.net',\r\n    QUEUE_BASE_DNS_NAME: 'queue.core.windows.net',\r\n    TABLE_BASE_DNS_NAME: 'table.core.windows.net'\r\n  }\r\n};\r\n\r\nmodule.exports = Constants;\r\n\r\n}).call(this,require('_process'))\r\n},{\"_process\":72}],33:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n/**\r\n* Date/time related helper functions\r\n* @module date\r\n* \r\n*/\r\n\r\n/**\r\n* Generates a Date object which is in the given days from now.\r\n* \r\n* @param {int} days The days timespan.\r\n* @return {Date}\r\n*/\r\nexports.daysFromNow = function (days) {\r\n  var date = new Date();\r\n  date.setDate(date.getDate() + days);\r\n  return date;\r\n};\r\n\r\n/**\r\n* Generates a Date object which is in the given hours from now.\r\n*\r\n* @param {int} hours The hours timespan.\r\n* @return {Date}\r\n*/\r\nexports.hoursFromNow = function (hours) {\r\n  var date = new Date();\r\n  date.setHours(date.getHours() + hours);\r\n  return date;\r\n};\r\n\r\n/**\r\n* Generates a Date object which is in the given minutes from now.\r\n*\r\n* @param {int} minutes The minutes timespan.\r\n* @return {Date}\r\n*/\r\nexports.minutesFromNow = function (minutes) {\r\n  var date = new Date();\r\n  date.setMinutes(date.getMinutes() + minutes);\r\n  return date;\r\n};\r\n\r\n/**\r\n* Generates a Date object which is in the given seconds from now.\r\n*\r\n* @param {int} seconds The seconds timespan.\r\n* @return {Date}\r\n*/\r\nexports.secondsFromNow = function (seconds) {\r\n  var date = new Date();\r\n  date.setSeconds(date.getSeconds() + seconds);\r\n  return date;\r\n};\r\n},{}],34:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar rightPad = function (n, number) {\r\n  var currentN = '' + n;\r\n  while (currentN.length < number) {\r\n    currentN = currentN + '0';\r\n  }\r\n\r\n  return currentN;\r\n};\r\n\r\n/**\r\n* Formats a date into an iso 8061 string.\r\n*\r\n* @param {date}    date The date to format.\r\n* @param {bool}    skipMilliseconds Boolean value indicating if the miliseconds part of the date should not be included.\r\n* @param {integer} millisecondsPading Number of digits to left pad the miliseconds.\r\n* @return {string} The date formated in the ISO 8061 date format.\r\n*/\r\nexports.format = function (date) {\r\n  var dateString = date.toISOString();\r\n  return dateString.substring(0, dateString.length - 1) + '0000Z';\r\n};\r\n\r\n/**\r\n* Parses an ISO 8061 date string into a date object.\r\n*\r\n* @param {string} stringDateTime The string with the date to parse in the ISO 8061 format.\r\n* @return {date} The parsed date.\r\n*/\r\nexports.parse = function (stringDateTime) {\r\n  var parts = stringDateTime.split('T');\r\n  var ymd = parts[0].split('-');\r\n  var time = parts[1].split('.');\r\n  var hms = time[0].split(':');\r\n  var ms = 0;\r\n  if (time[1]) {\r\n    ms = time[1].split('Z');\r\n  }\r\n\r\n  var date = new Date(Date.UTC(\r\n    parseInt(ymd[0], 10),\r\n    parseInt(ymd[1], 10) - 1,\r\n    parseInt(ymd[2], 10),\r\n    parseInt(hms[0], 10),\r\n    parseInt(hms[1], 10),\r\n    parseInt(hms[2], 10),\r\n    Math.round(parseInt(rightPad(ms[0], 7), 10) / 10000)\r\n  ));\r\n\r\n  return date;\r\n};\r\n},{}],35:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n'use strict';\r\n\r\nvar XMLStringifier = require('xmlbuilder/lib/XMLStringifier');\r\n\r\n// Patch xmlbuilder to allow Unicode surrogate pair code\r\n// points in XML bodies\r\n\r\nXMLStringifier.prototype.assertLegalChar = function(str) {\r\n  var chars, chr;\r\n  chars = /[\\u0000-\\u0008\\u000B-\\u000C\\u000E-\\u001F\\uFFFE-\\uFFFF]/;\r\n  chr = str.match(chars);\r\n  if (chr) {\r\n    throw new Error('Invalid character (' + chr + ') in string: ' + str);\r\n  }\r\n  return str;\r\n};\r\n},{\"xmlbuilder/lib/XMLStringifier\":213}],36:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nexports = module.exports;\r\n\r\nvar SR = {\r\n  ANONYMOUS_ACCESS_BLOBSERVICE_ONLY: 'Anonymous access is only valid for the BlobService.',\r\n  ARGUMENT_NULL_OR_EMPTY: 'The argument must not be null or an empty string. Argument name: %s.',\r\n  ARGUMENT_NULL_OR_UNDEFINED: 'The argument must not be null or undefined. Argument name: %s.',\r\n  ARGUMENT_OUT_OF_RANGE_ERROR: 'The argument is out of range. Argument name: %s, Value passed: %s.',\r\n  BATCH_ONE_PARTITION_KEY: 'All entities in the batch must have the same PartitionKey value.',\r\n  BATCH_ONE_RETRIEVE: 'If a retrieve operation is part of a batch, it must be the only operation in the batch.',\r\n  BATCH_TOO_LARGE: 'Batches must not contain more than 100 operations.',\r\n  BLOB_INVALID_SEQUENCE_NUMBER: 'The sequence number may not be specified for an increment operation.',\r\n  BLOB_TYPE_MISMATCH: 'Blob type of the blob reference doesn\\'t match blob type of the blob.',\r\n  CANNOT_CREATE_SAS_WITHOUT_ACCOUNT_KEY: 'Cannot create Shared Access Signature unless the Account Name and Key are used to create the ServiceClient.',\r\n  CONTENT_LENGTH_MISMATCH: 'An incorrect number of bytes was read from the connection. The connection may have been closed.',\r\n  CONTENT_TYPE_MISSING: 'Content-Type response header is missing or invalid.',\r\n  EMPTY_BATCH: 'Batch must not be empty.',\r\n  EXCEEDED_SIZE_LIMITATION: 'Upload exceeds the size limitation. Max size is %s but the current size is %s',\r\n  HASH_MISMATCH: 'Hash mismatch (integrity check failed), Expected value is %s, retrieved %s.',\r\n  INCORRECT_ENTITY_KEYS: 'PartitionKey and RowKey must be specified as strings in the entity object.',\r\n  INVALID_BLOB_LENGTH: 'createBlockBlobFromText requires the size of text to be less than 64MB. Please use createBlockBlobFromLocalFile or createBlockBlobFromStream to upload large blobs.',\r\n  INVALID_CONNECTION_STRING: 'Connection strings must be of the form \"key1=value1;key2=value2\".',\r\n  INVALID_CONNECTION_STRING_BAD_KEY: 'Connection string contains unrecognized key: \"%s\"',\r\n  INVALID_CONNECTION_STRING_DUPLICATE_KEY: 'Connection string contains duplicate key: \"%s\"',\r\n  INVALID_CONNECTION_STRING_EMPTY_KEY: 'Connection strings must not contain empty keys.',\r\n  INVALID_DELETE_SNAPSHOT_OPTION: 'The deleteSnapshots option cannot be included when deleting a specific snapshot using the snapshotId option.',\r\n  INVALID_EDM_TYPE: 'The value \\'%s\\' does not match the type \\'%s\\'.',\r\n  INVALID_FILE_LENGTH: 'createFileFromText requires the size of text to be less than 4MB. Please use createFileFromLocalFile or createFileFromStream to upload large files.',\r\n  INVALID_FILE_RANGE_FOR_UPDATE: 'Range size should be less than 4MB for a file range update operation.',\r\n  INVALID_HEADERS: 'Headers are not supported in the 2012-02-12 version.',\r\n  INVALID_MESSAGE_ID: 'Message ID cannot be null or undefined for deleteMessage and updateMessage operations.',\r\n  INVALID_PAGE_BLOB_LENGTH: 'Page blob length must be multiple of 512.',\r\n  INVALID_PAGE_END_OFFSET: 'Page end offset must be multiple of 512.',\r\n  INVALID_PAGE_RANGE_FOR_UPDATE: 'Page range size should be less than 4MB for a page update operation.',\r\n  INVALID_PAGE_START_OFFSET: 'Page start offset must be multiple of 512.',\r\n  INVALID_POP_RECEIPT: 'Pop Receipt cannot be null or undefined for deleteMessage and updateMessage operations.',\r\n  INVALID_PROPERTY_RESOLVER: 'The specified property resolver returned an invalid type. %s:{_:%s,$:%s }',\r\n  INVALID_RANGE_FOR_MD5: 'The requested range should be less than 4MB when contentMD5 is expected from the server',\r\n  INVALID_SAS_VERSION: 'SAS Version ? is invalid. Valid versions include: ?.',\r\n  INVALID_SAS_TOKEN: 'The SAS token should not contain api-version.',\r\n  INVALID_SIGNED_IDENTIFIERS: 'Signed identifiers need to be a hash object with key as the id and the value as the access policy.',\r\n  INVALID_STREAM_LENGTH: 'The length of the provided stream is invalid.',\r\n  INVALID_STRING_ERROR: 'Invalid string error.',\r\n  INVALID_TABLE_OPERATION: 'Operation not found: %s',\r\n  INVALID_TEXT_LENGTH: 'The length of the provided text is invalid.',\r\n  MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION: 'The client could not finish the operation within specified maximum execution timeout.',\r\n  MD5_NOT_POSSIBLE: 'MD5 cannot be calculated for an existing blob because it would require reading the existing data. Please disable storeBlobContentMD5.',\r\n  MD5_NOT_PRESENT_ERROR: 'MD5 does not exist. If you do not want to force validation, please disable useTransactionalMD5.',\r\n  METADATA_KEY_INVALID: 'The key for one of the metadata key-value pairs is null, empty, or whitespace.',\r\n  METADATA_VALUE_INVALID: 'The value for one of the metadata key-value pairs is null, empty, or whitespace.',\r\n  NO_CREDENTIALS_PROVIDED: 'Credentials must be provided when creating a service client.',\r\n  PRIMARY_ONLY_COMMAND: 'This operation can only be executed against the primary storage location.',\r\n  QUERY_OPERATOR_REQUIRES_WHERE: '%s operator needs to be used after where.',\r\n  SECONDARY_ONLY_COMMAND: 'This operation can only be executed against the secondary storage location.',\r\n  STORAGE_HOST_LOCATION_REQUIRED: 'The host for the storage service must be specified.',\r\n  STORAGE_HOST_MISSING_LOCATION: 'The host for the target storage location is not specified. Please consider changing the request\\'s location mode.',\r\n  TYPE_NOT_SUPPORTED: 'Type not supported when sending data to the service: ',\r\n  MAX_BLOB_SIZE_CONDITION_NOT_MEET: 'Append block data should not exceed the maximum blob size condition value.',\r\n};\r\n\r\nmodule.exports = SR;\r\n},{}],37:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Expose 'StorageUtilities'.\r\n\r\n/**\r\n* Defines constants, enums, and utility functions for use with storage.\r\n* @namespace\r\n*/\r\nvar StorageUtilities = {\r\n\t/**\r\n  * Specifies the location mode used to decide which location the request should be sent to.\r\n  *\r\n  * @const\r\n  * @enum {number}\r\n  */\r\n  LocationMode: {\r\n    /** The primary location only */\r\n    PRIMARY_ONLY: 0,\r\n    /** The primary location first, then the secondary */\r\n    PRIMARY_THEN_SECONDARY: 1,\r\n    /** The secondary location only */\r\n    SECONDARY_ONLY: 2,\r\n    /** The secondary location first, then the primary */\r\n    SECONDARY_THEN_PRIMARY: 3\r\n  }\r\n};\r\n\r\nmodule.exports = StorageUtilities;\r\n},{}],38:[function(require,module,exports){\r\n(function (process,Buffer){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar _ = require('underscore');\r\nvar util = require('util');\r\nvar url = require('url');\r\nvar stream = require('stream');\r\nvar Constants = require('./constants');\r\nvar Md5Wrapper = require('../md5-wrapper');\r\nvar StorageUtilities = require('./storageutilities');\r\nvar SR = require('./sr');\r\n\r\n/**\r\n* Trim the default port in the url.\r\n*\r\n* @param {string} uri The URI to be encoded.\r\n* @return {string} The URI without defualt port.\r\n*/\r\nexports.trimPortFromUri = function (uri) {\r\n  var uri = url.parse(uri);\r\n  if ((uri.protocol === Constants.HTTPS && uri.port == Constants.DEFAULT_HTTPS_PORT) || (uri.protocol === Constants.HTTP && uri.port == Constants.DEFAULT_HTTP_PORT)) {\r\n    uri.host = uri.hostname;\r\n  }\r\n  return url.format(uri);\r\n};\r\n\r\n/**\r\n* Returns the number of keys (properties) in an object.\r\n*\r\n* @param {object} value The object which keys are to be counted.\r\n* @return {number} The number of keys in the object.\r\n*/\r\nexports.objectKeysLength = function (value) {\r\n  if (!value) {\r\n    return 0;\r\n  }\r\n\r\n  return _.keys(value).length;\r\n};\r\n\r\n/**\r\n* Checks if in a browser environment.\r\n*\r\n* @return {bool} True if in a browser environment, false otherwise.\r\n*/\r\nexports.isBrowser = function () {\r\n  return typeof window !== 'undefined';\r\n};\r\n\r\n/**\r\n* Checks if in IE.\r\n*\r\n* @return {bool} True if in IE, false otherwise.\r\n*/\r\nexports.isIE = function () {\r\n  if (!exports.isBrowser()) {\r\n    return false;\r\n  }\r\n\r\n  var ua = window.navigator.userAgent;\r\n  var msie = ua.indexOf('MSIE ');\r\n  var trident = ua.indexOf('Trident/');\r\n  return msie > 0 || trident > 0;\r\n};\r\n\r\n/**\r\n* Checks if in a 32bit Node.js environment.\r\n*\r\n* @return {bool} True if in a 32bit Node.js environment, false otherwise.\r\n*/\r\nexports.is32 = function () {\r\n  return !exports.isBrowser() && process.arch === 'ia32';\r\n};\r\n\r\n/**\r\n* Checks if a value is null or undefined.\r\n*\r\n* @param {object} value The value to check for null or undefined.\r\n* @return {bool} True if the value is null or undefined, false otherwise.\r\n*/\r\nexports.objectIsNull = function (value) {\r\n  return _.isNull(value) || _.isUndefined(value);\r\n};\r\n\r\n/**\r\n* Checks if an object is empty.\r\n*\r\n* @param {object} object The object to check if it is null.\r\n* @return {bool} True if the object is empty, false otherwise.\r\n*/\r\nexports.objectIsEmpty = function (object) {\r\n  return _.isEmpty(object);\r\n};\r\n\r\n/**\r\n* Determines if an object contains an integer number.\r\n*\r\n* @param {object}  value  The object to assert.\r\n* @return {bool} True if the object contains an integer number; false otherwise.\r\n*/\r\nexports.objectIsInt = function (value) {\r\n  return typeof value === 'number' && parseFloat(value) == parseInt(value, 10) && !isNaN(value);\r\n};\r\n\r\n/**\r\n* Determines if an object is a NaN.\r\n*\r\n* @param {object}  value  The object to assert.\r\n* @return {bool} True if the object is a NaN; false otherwise.\r\n*/\r\nexports.objectIsNaN = function (value) {\r\n  return typeof(value) === 'number' && isNaN(value);\r\n};\r\n\r\n/**\r\n* Checks if an object is a string.\r\n*\r\n* @param {object} object The object to check if it is a string.\r\n* @return {bool} True if the object is a string, false otherwise.\r\n*/\r\nexports.objectIsString = function (object) {\r\n  return _.isString(object);\r\n};\r\n\r\n/**\r\n* Check if an object is a function\r\n* @param {object} object The object to check whether it is function\r\n* @return {bool} True if the specified object is function, otherwise false\r\n*/\r\nexports.objectIsFunction = function (object) {\r\n  return _.isFunction(object);\r\n};\r\n\r\n\r\n/**\r\n* Front zero padding of string to sepcified length\r\n*/\r\nexports.zeroPaddingString = function(str, len) {\r\n  var paddingStr = '0000000000' + str;\r\n  if(paddingStr.length < len) {\r\n    return exports.zeroPaddingString(paddingStr, len);\r\n  } else {\r\n    return paddingStr.substr(-1 * len);\r\n  }\r\n};\r\n\r\n/**\r\n* Checks if a value is an empty string, null or undefined.\r\n*\r\n* @param {object} value The value to check for an empty string, null or undefined.\r\n* @return {bool} True if the value is an empty string, null or undefined, false otherwise.\r\n*/\r\nexports.stringIsEmpty = function (value) {\r\n  return _.isNull(value) || _.isUndefined(value) || value === '';\r\n};\r\n\r\n/**\r\n* Checks if a value is null, empty, undefined or consists only of white-space characters.\r\n*\r\n* @param {object} value The value to check for null, empty, undefined and white-space only characters.\r\n* @return {bool} True if the value is an empty string, null, undefined, or consists only of white-space characters, false otherwise.\r\n*/\r\nexports.IsNullOrEmptyOrUndefinedOrWhiteSpace = function (value) {\r\n  if(_.isNull(value) || _.isUndefined(value) || value === '') {\r\n    return true;\r\n  }\r\n\r\n  if(_.isString(value) && value.trim().length === 0) {\r\n    return true;\r\n  }\r\n\r\n  return false;\r\n};\r\n\r\n/**\r\n* Formats a text replacing '?' by the arguments.\r\n*\r\n* @param {string}       text      The string where the ? should be replaced.\r\n* @param {array}        arguments Value(s) to insert in question mark (?) parameters.\r\n* @return {string}\r\n*/\r\nexports.stringFormat = function (text) {\r\n  if (arguments.length > 1) {\r\n    for (var i = 1; text.indexOf('?') !== -1; i++) {\r\n      text = text.replace('?', arguments[i]);\r\n    }\r\n  }\r\n\r\n  return text;\r\n};\r\n\r\n/**\r\n* Determines if a string starts with another.\r\n*\r\n* @param {string}       text      The string to assert.\r\n* @param {string}       prefix    The string prefix.\r\n* @return {Bool} True if the string starts with the prefix; false otherwise.\r\n*/\r\nexports.stringStartsWith = function (text, prefix) {\r\n  if (_.isNull(prefix)) {\r\n    return true;\r\n  }\r\n\r\n  return text.substr(0, prefix.length) === prefix;\r\n};\r\n\r\n/**\r\n* Determines if a string ends with another.\r\n*\r\n* @param {string}       text      The string to assert.\r\n* @param {string}       suffix    The string suffix.\r\n* @return {Bool} True if the string ends with the suffix; false otherwise.\r\n*/\r\nexports.stringEndsWith = function (text, suffix) {\r\n  if (_.isNull(suffix)) {\r\n    return true;\r\n  }\r\n\r\n  return text.substr(text.length - suffix.length) === suffix;\r\n};\r\n\r\n/**\r\n* Removes the BOM from a string.\r\n*\r\n* @param {string} str The string from where the BOM is to be removed\r\n* @return {string} The string without the BOM.\r\n*/\r\nexports.removeBOM = function (str) {\r\n  if (str.charCodeAt(0) === 0xfeff || str.charCodeAt(0) === 0xffef) {\r\n    str = str.substring(1);\r\n  }\r\n\r\n  return str;\r\n};\r\n\r\n/**\r\n* Merges multiple objects.\r\n*\r\n* @param {object} object The objects to be merged\r\n* @return {object} The merged object.\r\n*/\r\nexports.merge = function () {\r\n  return _.extend.apply(this, arguments);\r\n};\r\n\r\n/**\r\n* Checks if a value exists in an array. The comparison is done in a case\r\n* insensitive manner.\r\n*\r\n* @param {string} needle     The searched value.\r\n* @param {array}  haystack   The array.\r\n*\r\n* @static\r\n*\r\n* @return {boolean}\r\n*/\r\nexports.inArrayInsensitive = function (needle, haystack) {\r\n  return _.contains(_.map(haystack, function (h) { return h.toLowerCase(); }), needle.toLowerCase());\r\n};\r\n\r\n/**\r\n* Returns the specified value of the key passed from object and in case that\r\n* this key doesn't exist, the default value is returned. The key matching is\r\n* done in a case insensitive manner.\r\n*\r\n* @param {string} key      The array key.\r\n* @param {object} haystack The object to be used.\r\n* @param {mix}    default  The value to return if $key is not found in $array.\r\n*\r\n* @static\r\n*\r\n* @return mix\r\n*/\r\nexports.tryGetValueInsensitive = function (key, haystack, defaultValue) {\r\n  if (haystack) {\r\n    for (var i in haystack) {\r\n      if (haystack.hasOwnProperty(i) && i.toString().toLowerCase() === key.toString().toLowerCase()) {\r\n        return haystack[i];\r\n      }\r\n    }\r\n  }\r\n\r\n  return defaultValue;\r\n};\r\n\r\n/**\r\n* Returns the value in a chained object.\r\n*\r\n* @param {object} object   The object with the values.\r\n* @param {array}  keys     The keys.\r\n* @param {mix}    default  The value to return if $key is not found in $array.\r\n*\r\n* @static\r\n*\r\n* @return mix\r\n*/\r\nexports.tryGetValueChain = function (object, keys, defaultValue) {\r\n  if (keys.length === 0) {\r\n    return object;\r\n  }\r\n\r\n  var currentKey = keys.shift();\r\n  if (object && object[currentKey] !== undefined) {\r\n    return exports.tryGetValueChain(object[currentKey], keys, defaultValue);\r\n  }\r\n\r\n  return defaultValue;\r\n};\r\n\r\n/**\r\n* Set the value of an inner property of an object.\r\n*\r\n* @param {object} object   The target object.\r\n* @param {array}  keys     The property chain keys.\r\n* @param {mix}    object   The value to be set.\r\n*\r\n* @static\r\n\r\n* @example\r\n* // Set targetObject.propA.propB to 'testValue'\r\n* var targetObject = {};\r\n* util.setObjectInnerPropertyValue(targetObject, ['propA', 'propB'], 'testValue');\r\n*/\r\nexports.setObjectInnerPropertyValue = function(object, propertyChainKeys, value){\r\n  if(!object || propertyChainKeys.length < 1) {\r\n    return;\r\n  }\r\n\r\n  var currentKey = propertyChainKeys.shift();\r\n  if(propertyChainKeys.length === 0) {\r\n    object[currentKey] = value;\r\n    return;\r\n  }\r\n  \r\n  if (!object[currentKey]) {\r\n    object[currentKey] = {};\r\n  }\r\n  \r\n  exports.setObjectInnerPropertyValue(object[currentKey], propertyChainKeys, value);\r\n};\r\n\r\n/**\r\n* Rounds a date off to seconds.\r\n*\r\n* @param {Date} a date\r\n* @return {string} the date in ISO8061 format, with no milliseconds component\r\n*/\r\nexports.truncatedISO8061Date = function (date) {\r\n  var dateString = date.toISOString();\r\n  return dateString.substring(0, dateString.length - 5) + 'Z';\r\n};\r\n\r\nexports.normalizeArgs = function (optionsOrCallback, callback, result) {\r\n  var options = {};\r\n  if(_.isFunction(optionsOrCallback) && !callback) {\r\n    callback = optionsOrCallback;\r\n  } else if (optionsOrCallback) {\r\n    options = optionsOrCallback;\r\n  }\r\n\r\n  result(options, callback);\r\n};\r\n\r\nexports.getNodeVersion = function () {\r\n  var parsedVersion = process.version.split('.');\r\n  return {\r\n    major: parseInt(parsedVersion[0].substr(1), 10),\r\n    minor: parseInt(parsedVersion[1], 10),\r\n    patch: parseInt(parsedVersion[2], 10)\r\n  };\r\n};\r\n\r\n/**\r\n* Calculate md5sum for the stream\r\n* @ignore\r\n*/\r\nexports.calculateMD5 = function(readStream, bufferLength, options, callback) {\r\n  var internalBuff = Buffer.alloc(bufferLength);\r\n  var index = 0;\r\n  var internalHash = new Md5Wrapper().createMd5Hash();\r\n  readStream.on('data', function(data) {\r\n    if (index + data.length > bufferLength) {\r\n      var copyLength = bufferLength - index;\r\n      if (copyLength > 0) {\r\n        data = data.slice(0, copyLength);\r\n        data.copy(internalBuff, index);\r\n        internalHash.update(data);\r\n        index += copyLength;\r\n      }\r\n      readStream.emit('end');\r\n    } else {\r\n      data.copy(internalBuff, index);\r\n      internalHash.update(data);\r\n      index += data.length;\r\n    }\r\n  }).on('end', function() {\r\n    if (!readStream.endEmitted) {\r\n      internalBuff = internalBuff.slice(0, index);\r\n      var contentMD5 = internalHash.digest('base64');\r\n      // Set the flag to be compatible with Nodejs 0.10 which will keep emitting data from \r\n      // the file stream when the read stream has emitted the end event from its listner. \r\n      readStream.endEmitted = true;\r\n      callback(internalBuff, contentMD5);\r\n    }\r\n  });\r\n};\r\n\r\n/**\r\n* Whether the content of buffer is all zero\r\n*/\r\nexports.isBufferAllZero = function (buffer) {\r\n  for(var i = 0, len = buffer.length; i < len; i++) {\r\n    if (buffer[i] !== 0) {\r\n      return false;\r\n    }\r\n  }\r\n  return true;\r\n};\r\n\r\n/**\r\n* Write zero to stream\r\n*/\r\nvar zeroBuffer = null;\r\nexports.writeZerosToStream = function (stream, length, md5Hash, progressCallback, callback) {\r\n  var defaultBufferSize = Constants.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n  var bufferSize = Math.min(defaultBufferSize, length);\r\n  var remaining = length - bufferSize;\r\n  var buffer = null;\r\n  if (bufferSize == defaultBufferSize) {\r\n    if (!zeroBuffer) {\r\n      zeroBuffer = Buffer.alloc(defaultBufferSize);\r\n      zeroBuffer.fill(0);\r\n    }\r\n    buffer = zeroBuffer;\r\n  } else {\r\n    buffer = Buffer.alloc(bufferSize);\r\n    buffer.fill(0);\r\n  }\r\n  if (md5Hash) {\r\n    md5Hash.update(buffer);\r\n  }\r\n  //We can only write the entire buffer to stream instead of part of buffer.\r\n  return stream.write(buffer, function () {\r\n    if (exports.objectIsFunction(progressCallback)) {\r\n      progressCallback(null, buffer.length);\r\n    }\r\n    buffer = null;\r\n    if (remaining > 0) {\r\n      exports.writeZerosToStream(stream, remaining, md5Hash, progressCallback, callback);\r\n    } else if (exports.objectIsFunction(callback)) {\r\n      callback(null, null);\r\n    }\r\n  });\r\n};\r\n\r\n/**\r\n* Calculate md5sum for the content\r\n*/\r\nexports.getContentMd5 = function (content, encoding) {\r\n  if (!encoding) encoding = 'base64';\r\n  var internalHash = new Md5Wrapper().createMd5Hash();\r\n  internalHash.update(content, 'utf8');\r\n  return internalHash.digest(encoding);\r\n};\r\n\r\nexports.getNextLocation = function(lastLocation, locationMode) {\r\n  switch(locationMode) {\r\n  case StorageUtilities.LocationMode.PRIMARY_ONLY:\r\n    return Constants.StorageLocation.PRIMARY;\r\n  case StorageUtilities.LocationMode.SECONDARY_ONLY:\r\n    return Constants.StorageLocation.SECONDARY;\r\n  case StorageUtilities.LocationMode.PRIMARY_THEN_SECONDARY:\r\n  case StorageUtilities.LocationMode.SECONDARY_THEN_PRIMARY:\r\n    return (lastLocation === Constants.StorageLocation.PRIMARY) ? Constants.StorageLocation.SECONDARY : Constants.StorageLocation.PRIMARY;\r\n  default:\r\n    throw new RangeError(util.format(SR.ARGUMENT_OUT_OF_RANGE_ERROR, 'locationMode', locationMode));\r\n  }\r\n};\r\n\r\nexports.getNextListingLocationMode = function (token) {\r\n  if(_.isNull(token) || _.isUndefined(token)) {\r\n    return Constants.RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n  }\r\n  else {\r\n    switch (token.targetLocation) {\r\n    case Constants.StorageLocation.PRIMARY:\r\n      return Constants.RequestLocationMode.PRIMARY_ONLY;\r\n    case Constants.StorageLocation.SECONDARY:\r\n      return Constants.RequestLocationMode.SECONDARY_ONLY;\r\n    default:\r\n      throw new RangeError(util.format(SR.ARGUMENT_OUT_OF_RANGE_ERROR, 'targetLocation', token.targetLocation));\r\n    }\r\n  }\r\n};\r\n\r\nexports.isStreamPaused = function (object) {\r\n  if (object instanceof stream) {\r\n    return object._paused === true || (object._readableState && object._readableState.flowing === false);\r\n  }\r\n  return false;\r\n};\r\n\r\n/**\r\n* Parse copy progress string in the format of bytesCopied/totalBytes\r\n*/\r\nexports.parseCopyProgress = function (progress) {\r\n  if (typeof progress != 'string' || progress.indexOf('/') === -1) {\r\n    return {};\r\n  }\r\n  \r\n  var progressInfo = progress.split('/');\r\n  return { bytesCopied: progressInfo[0], totalBytes: progressInfo[1] };\r\n};\r\n\r\n/**\r\n* The list of the properties should be normalized with explicit mapping\r\n*/\r\nvar normalizePropertyNameExceptionList = {\r\n  'x-ms-blob-sequence-number': 'sequenceNumber',\r\n  'content-Type': 'contentSettings.contentType',\r\n  'content-Encoding': 'contentSettings.contentEncoding',\r\n  'content-Language': 'contentSettings.contentLanguage',\r\n  'cache-Control': 'contentSettings.cacheControl',\r\n  'content-Disposition': 'contentSettings.contentDisposition',\r\n  'content-MD5': 'contentSettings.contentMD5',\r\n  'leaseId': 'lease.id',\r\n  'leaseStatus': 'lease.status',\r\n  'leaseDuration': 'lease.duration',\r\n  'leaseState': 'lease.state',\r\n  'copyId': 'copy.id',\r\n  'copyStatus': 'copy.status',\r\n  'copySource': 'copy.source',\r\n  'copyProgress': 'copy.progress',\r\n  'copyCompletionTime': 'copy.completionTime',\r\n  'copyStatusDescription': 'copy.statusDescription',\r\n  'copyDestinationSnapshot': 'copy.destinationSnapshot',\r\n  'publicAccess': 'publicAccessLevel',\r\n  'incrementalCopy': 'isIncrementalCopy'\r\n};\r\n\r\n/**\r\n* Normalize the property name from XML to keep consistent with \r\n* the name defined in the property headers\r\n*/\r\nexports.normalizePropertyNameFromXML = function (propertyName) {\r\n  if (this.IsNullOrEmptyOrUndefinedOrWhiteSpace(propertyName)) {\r\n    return '';\r\n  }\r\n  \r\n  propertyName = propertyName.trim();\r\n  propertyName = propertyName[0].toLowerCase() + propertyName.substring(1);\r\n  // So far the cases are:\r\n  //   for the 'last-modified' property in listing resources\r\n  //   for the 'content-*' properties in listing resources\r\n  //   for the 'cache-control' property in listing blobs\r\n  //   for the 'x-ms-blob-sequence-number' in listing blobs\r\n  if (propertyName in normalizePropertyNameExceptionList) {\r\n    return normalizePropertyNameExceptionList[propertyName];\r\n  } else if (propertyName.toLowerCase().indexOf('-') != -1) {\r\n    return propertyName.replace('-', '');\r\n  } else {\r\n    return propertyName;\r\n  }\r\n};\r\n\r\n/**\r\n* Set the property value from XML\r\n*/\r\nexports.setPropertyValueFromXML = function (result, xmlNode, toNormalize) {\r\n  for (var subPropertyName in xmlNode) {\r\n    if (xmlNode.hasOwnProperty(subPropertyName)) {\r\n      if (toNormalize) {\r\n        var propertyChain = this.normalizePropertyNameFromXML(subPropertyName).split('.');\r\n        exports.setObjectInnerPropertyValue(result, propertyChain, xmlNode[subPropertyName]);\r\n      } else {\r\n        result[subPropertyName.toLowerCase()] = xmlNode[subPropertyName];\r\n      }\r\n      \r\n      if (subPropertyName.toLowerCase() === 'copyprogress') {\r\n        var info = this.parseCopyProgress(xmlNode[subPropertyName]);\r\n        exports.setObjectInnerPropertyValue(result, ['copy', 'bytesCopied'], parseInt(info.bytesCopied));\r\n        exports.setObjectInnerPropertyValue(result, ['copy', 'totalBytes'], parseInt(info.totalBytes));\r\n      }\r\n    }\r\n  }\r\n};\r\n\r\n/**\r\n * Filter out non-reserved properties from options\r\n */\r\nexports.filterOutNonReservedProperties = function (reserved, options) {\r\n  var nonReservedProperties = {};\r\n  if (options) {\r\n    for (var prop in options) {\r\n      if (options.hasOwnProperty(prop)) {\r\n        var isReserved = reserved.hasOwnProperty(prop);\r\n        var isFunction = typeof options[prop] === 'function';\r\n        if (!isReserved && !isFunction) {\r\n          nonReservedProperties[prop] = options[prop];\r\n        }\r\n      }\r\n    }\r\n  }\r\n  return nonReservedProperties;\r\n};\r\n}).call(this,require('_process'),require(\"buffer\").Buffer)\r\n},{\"../md5-wrapper\":10,\"./constants\":32,\"./sr\":36,\"./storageutilities\":37,\"_process\":72,\"buffer\":56,\"stream\":88,\"underscore\":111,\"url\":112,\"util\":117}],39:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar _ = require('underscore');\r\nvar util = require('util');\r\n\r\nvar constants = require('./../util/constants');\r\nvar blobConstants = constants.BlobConstants;\r\nvar BlobUtilities = require('./../../services/blob/blobutilities');\r\nvar FileUtilities = require('./../../services/file/fileutilities');\r\nvar azureutil = require('./util');\r\nvar SR = require('./sr');\r\nvar check = require('validator');\r\nvar errors = require('../errors/errors');\r\nvar ArgumentError = errors.ArgumentError;\r\nvar ArgumentNullError = errors.ArgumentNullError;\r\n\r\nexports = module.exports;\r\n\r\nfunction initCallback(callbackParam, resultsCb) {\r\n  var fail;\r\n  if (callbackParam) {\r\n    fail = function (err) {\r\n      callbackParam(err);\r\n      return false;\r\n    };\r\n  } else {\r\n    fail = function (err) {\r\n      throw err;\r\n    };\r\n    callbackParam = function () {};\r\n  }\r\n\r\n  resultsCb(fail, callbackParam);\r\n}\r\n\r\n/**\r\n* Checks if the given value is a valid enumeration or not.\r\n*\r\n* @param {object} value     The value to validate.\r\n* @param {object} list      The enumeration values.\r\n* @return {boolean}\r\n*/\r\nexports.isValidEnumValue = function (value, list, callback) {\r\n  var fail;\r\n  \r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  if (!list.some(function (current) {\r\n    return current.toLowerCase() === value.toLowerCase();\r\n  })) {\r\n    return fail(new RangeError(util.format('Invalid value: %s. Options are: %s.', value, list)));\r\n  }\r\n\r\n  callback();\r\n  return true;\r\n};\r\n\r\n/**\r\n* Creates a anonymous function that check if the given uri is valid or not.\r\n*\r\n* @param {string} uri     The uri to validate.\r\n* @return {boolean}\r\n*/\r\nexports.isValidUri = function (uri) {\r\n  if (!check.isURL(uri, { 'require_tld': false })){\r\n    throw new URIError('The provided URI \"' + uri + '\" is invalid.');\r\n  }\r\n  return true;\r\n};\r\n\r\n/**\r\n* Checks if the given host is valid or not.\r\n*\r\n* @param {string|object} host     The host to validate.\r\n* @return {boolean}\r\n*/\r\nexports.isValidHost= function (host) {\r\n  if (azureutil.objectIsNull(host)) {\r\n    throw new ArgumentNullError('host', SR.STORAGE_HOST_LOCATION_REQUIRED);\r\n  } else {\r\n    var storageHost = {};\r\n    storageHost.primaryHost = _.isString(host) ? host : host.primaryHost;\r\n    if (storageHost.primaryHost && !check.isURL(storageHost.primaryHost, { 'require_tld': false })){\r\n      throw new URIError('The provided URI \"' + storageHost.primaryHost + '\" is invalid.');\r\n    }\r\n\r\n    storageHost.secondaryHost = _.isString(host) ? undefined : host.secondaryHost;\r\n    if (storageHost.secondaryHost && !check.isURL(storageHost.secondaryHost, { 'require_tld': false })){\r\n      throw new URIError('The provided URI \"' + storageHost.secondaryHost + '\" is invalid.');\r\n    }\r\n\r\n    if (!storageHost.primaryHost && !storageHost.secondaryHost) {\r\n      throw new ArgumentNullError('host', SR.STORAGE_HOST_LOCATION_REQUIRED);\r\n    }\r\n  } \r\n\r\n  return true;\r\n};\r\n\r\n/**\r\n* Checks if the given value is a valid UUID or not.\r\n*\r\n* @param {string|object} uuid     The uuid to validate.\r\n* @return {boolean}\r\n*/\r\nexports.isValidUuid = function(uuid, callback) {\r\n  var validUuidRegex = /^[a-zA-Z0-9]{8}\\-[a-zA-Z0-9]{4}\\-[a-zA-Z0-9]{4}\\-[a-zA-Z0-9]{4}\\-[a-zA-Z0-9]{12}$/;\r\n\r\n  var fail;\r\n\r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  if (!validUuidRegex.test(uuid)) {\r\n    return fail(new SyntaxError('The value is not a valid UUID format.'));\r\n  }\r\n  \r\n  callback();\r\n  return true;\r\n};\r\n\r\n/**\r\n* Creates a anonymous function that check if a given key is base 64 encoded.\r\n*\r\n* @param {string} key The key to validate.\r\n* @return {function}\r\n*/\r\nexports.isBase64Encoded = function (key) {\r\n  var isValidBase64String = key.match(/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/);\r\n\r\n  if (isValidBase64String) {\r\n    return true;\r\n  } else {\r\n    throw new SyntaxError('The provided account key ' + key + ' is not a valid base64 string.');\r\n  }\r\n};\r\n\r\n/**\r\n* Validates a function.\r\n*\r\n* @param {object} function The function to validate.\r\n* @return {function}\r\n*/\r\nexports.isValidFunction = function (functionObject, functionName) {\r\n  if (!functionObject) {\r\n    throw new ArgumentNullError('functionObject', functionName + ' must be specified.');\r\n  }\r\n  if(!_.isFunction(functionObject)){\r\n    throw new TypeError(functionName + ' specified should be a function.');\r\n  }\r\n  return true;\r\n};\r\n\r\nvar getNameError = function(name, typeName) {\r\n  // checks if name is null, undefined or empty\r\n  if (azureutil.stringIsEmpty(name)) {\r\n    return new ArgumentNullError('name', util.format('%s name must be a non empty string.', typeName));\r\n  }\r\n\r\n  // check if name is between 3 and 63 characters\r\n  if (name.length < 3 || name.length > 63) {\r\n    return new ArgumentError('name', util.format('%s name must be between 3 and 63 characters long.', typeName));\r\n  }\r\n\r\n  // check if name follows naming rules\r\n  if (name.match(/^([a-z0-9]+(-[a-z0-9]+)*)$/) === null) {\r\n    return new SyntaxError(util.format('%s name format is incorrect.', typeName));\r\n  }\r\n\r\n  return null;\r\n};\r\n\r\n/**\r\n* Validates a container name.\r\n*\r\n* @param {string} containerName The container name.\r\n*/\r\nexports.containerNameIsValid = function (containerName, callback) {\r\n  var fail;\r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  var nameError = getNameError(containerName, 'Container');\r\n\r\n  if (!nameError || containerName.match(/^(\\$root|\\$logs|\\$web)$/)) {\r\n    callback();\r\n    return true;\r\n  } else {\r\n    return fail(nameError);\r\n  }\r\n};\r\n\r\n/**\r\n* Validates a blob name.\r\n*\r\n* @param {string} containerName The container name.\r\n* @param {string} blobname      The blob name.\r\n*/\r\nexports.blobNameIsValid = function (containerName, blobName, callback) {\r\n  var fail;\r\n  \r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n  \r\n  if (!blobName) {\r\n    return fail(new ArgumentNullError('blobName', 'Blob name is not specified.'));\r\n  }\r\n  \r\n  if (containerName === '$root' && blobName.indexOf('/') !== -1) {\r\n    return fail(new SyntaxError('Blob name format is incorrect.'));\r\n  }\r\n  \r\n  callback();\r\n  return true;\r\n};\r\n\r\n/**\r\n* Validates a blob tier name.\r\n*\r\n* @param {string} blobTier The blob tier name.\r\n*/\r\nexports.blobTierNameIsValid = function (blobTier, callback) {\r\n  var fail;\r\n  \r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n  \r\n  if (!blobTier) {\r\n    return fail(new ArgumentNullError('blobTier', 'Blob tier is not specified.'));\r\n  }\r\n\r\n  if (!_.chain(_.union(\r\n    _.values(BlobUtilities.BlobTier.PremiumPageBlobTier),\r\n    _.values(BlobUtilities.BlobTier.StandardBlobTier)\r\n  ))\r\n    .map(function (val) { return val.toString().toUpperCase(); })\r\n    .contains(blobTier.toString().toUpperCase())\r\n    .value()) {\r\n    return fail(new SyntaxError('Blob tier is incorrect. Refer to BlobUtilities.BlobTier for possible values.'));\r\n  }\r\n\r\n  callback();\r\n  return true;\r\n};\r\n\r\n/**\r\n* Validates a share name.\r\n*\r\n* @param {string} shareName The share name.\r\n*/\r\nexports.shareNameIsValid = function (shareName, callback) {\r\n  var fail;\r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  var nameError = getNameError(shareName, 'Share');\r\n\r\n  if (!nameError) {\r\n    callback();\r\n    return true;\r\n  } else {\r\n    return fail(nameError);\r\n  }\r\n};\r\n\r\n/**\r\n* Validates a queue name.\r\n*\r\n* @param {string} queueName The queue name.\r\n*/\r\nexports.queueNameIsValid = function (queueName, callback) {\r\n  var fail;\r\n\r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  var nameError = getNameError(queueName, 'Queue');\r\n\r\n  if (!nameError) {\r\n    callback();\r\n    return true;\r\n  } else {\r\n    return fail(nameError);\r\n  }\r\n};\r\n\r\n/**\r\n* Validates a table name.\r\n*\r\n* @param {string} table  The table name.\r\n*/\r\nexports.tableNameIsValid = function (table, callback) {\r\n  var fail;\r\n\r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  if (azureutil.stringIsEmpty(table)) {\r\n    return fail(new ArgumentNullError('table', 'Table name must be a non empty string.'));\r\n  }\r\n\r\n  if (table.length < 3 || table.length > 63) {\r\n    return fail(new ArgumentError('table', 'Table name must be between 3 and 63 characters long.'));\r\n  }\r\n\r\n  if(table.toLowerCase() === 'tables') {\r\n    return fail(new RangeError('Table name cannot be \\'Tables\\'.'));\r\n  }\r\n\r\n  if (table.match(/^([A-Za-z][A-Za-z0-9]{2,62})$/) !== null || table === '$MetricsCapacityBlob' || table.match(/^(\\$Metrics(HourPrimary|MinutePrimary|HourSecondary|MinuteSecondary)?(Transactions)(Blob|Queue|Table|File))$/) !== null)\r\n  {\r\n    callback();\r\n    return true;\r\n  } else {\r\n    return fail(new SyntaxError('Table name format is incorrect.'));\r\n  }\r\n};\r\n\r\n/**\r\n* Validates an HTML File object.\r\n*\r\n* @param {File} browserFile  The HTML File object.\r\n*/\r\nexports.browserFileIsValid = function (browserFile, callback) {\r\n  var fail;\r\n\r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  // IE doesn't support File.constructor.name\r\n  if (!azureutil.isBrowser() ||\r\n    !browserFile ||\r\n    !browserFile.constructor ||\r\n    (!azureutil.isIE() && !browserFile.constructor.name) ||\r\n    (!azureutil.isIE() && browserFile.constructor.name !== 'File' && browserFile.constructor.name !== 'Blob') ||\r\n    !azureutil.objectIsInt(browserFile.size)) {\r\n    return fail(new ArgumentError('type', 'Invalid HTML File object.'));\r\n  } else {\r\n    callback();\r\n    return true;\r\n  }\r\n};\r\n\r\n/**\r\n* Validates page ranges.\r\n*\r\n* @param {int} rangeStart             The range starting position.\r\n* @param {int} rangeEnd               The range ending position.\r\n* @param {int} writeBlockSizeInBytes  The block size.\r\n*/\r\nexports.pageRangesAreValid = function (rangeStart, rangeEnd, writeBlockSizeInBytes, callback) {\r\n  var fail;\r\n\r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n\r\n  if (rangeStart % 512 !== 0) {\r\n    return fail(new RangeError('Start byte offset must be a multiple of 512.'));\r\n  }\r\n\r\n  var size = null;\r\n  if (!azureutil.objectIsNull(rangeEnd)) {\r\n    if ((rangeEnd + 1) % 512 !== 0) {\r\n      return fail(new RangeError('End byte offset must be a multiple of 512 minus 1.'));\r\n    }\r\n\r\n    size = (rangeEnd - rangeStart) + 1;\r\n    if (size > writeBlockSizeInBytes) {\r\n      return fail(new RangeError('Page blob size cannot be larger than ' + writeBlockSizeInBytes + ' bytes.'));\r\n    }\r\n  }\r\n  \r\n  callback();\r\n  return true;\r\n};\r\n\r\n/**\r\n* Validates a blob type.\r\n*\r\n* @param {string} type  The type name.\r\n*/\r\nexports.blobTypeIsValid = function (type, callback) {\r\n  var getEnumValues = function (obj) {\r\n    var values = [];\r\n    for (var prop in obj) {\r\n      if (obj.hasOwnProperty(prop)) {\r\n        values.push(obj[prop]);\r\n      }\r\n    }\r\n    return values;\r\n  };\r\n  \r\n  return this.isValidEnumValue(type, getEnumValues(blobConstants.BlobTypes), callback);\r\n};\r\n\r\n/**\r\n* Validates share ACL type.\r\n*\r\n* @param {string} type  The type name.\r\n*/\r\nexports.shareACLIsValid = function (type, callback) {\r\n  var fail;\r\n  \r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n  \r\n  if (type != FileUtilities.SharePublicAccessType.OFF) {\r\n    fail(new ArgumentError('type', 'The access type is not supported.'));\r\n  }\r\n\r\n  callback();\r\n  return true;\r\n};\r\n\r\n/**\r\n* Validates share quota value.\r\n*\r\n* @param {int} type  The quota value.\r\n*/\r\nexports.shareQuotaIsValid = function (quota, callback) {\r\n  var fail;\r\n  \r\n  initCallback(callback, function (f, cb) {\r\n    fail = f;\r\n    callback = cb;\r\n  });\r\n  \r\n  if (quota && quota <= 0) {\r\n    fail(new RangeError('The share quota value, in GB, must be greater than 0.'));\r\n  }\r\n  \r\n  callback();\r\n  return true;\r\n};\r\n\r\n// common functions for validating arguments\r\n\r\nfunction throwMissingArgument(name, func) {\r\n  throw new ArgumentNullError(name, 'Required argument ' + name + ' for function ' + func + ' is not defined');\r\n}\r\n\r\nfunction ArgumentValidator(functionName) {\r\n  this.func = functionName;\r\n}\r\n\r\n_.extend(ArgumentValidator.prototype, {\r\n  string: function (val, name) {\r\n    this.exists(val, name);\r\n    if (typeof val !== 'string') {\r\n      throw new TypeError('Parameter ' + name + ' for function ' + this.func + ' should be a non-empty string');\r\n    }\r\n  },\r\n\r\n  stringAllowEmpty: function (val, name) {\r\n    if (typeof val !== 'string') {\r\n      throw new TypeError('Parameter ' + name + ' for function ' + this.func + ' should be a string');\r\n    }\r\n  },\r\n\r\n  object: function (val, name) {\r\n    this.exists(val, name);\r\n    if (typeof val !== 'object') {\r\n      throw new TypeError('Parameter ' + name + ' for function ' + this.func + ' should be an object');\r\n    }\r\n  },\r\n\r\n  exists: function (val, name) {\r\n    if (!val) {\r\n      throwMissingArgument(name, this.func);\r\n    }\r\n  },\r\n\r\n  function: function (val, name) {\r\n    this.exists(val, name);\r\n    if (typeof val !== 'function') {\r\n      throw new TypeError('Parameter ' + name + ' for function ' + this.func + ' should be a function');\r\n    }\r\n  },\r\n\r\n  value: function (val, name) {\r\n    if (!val && val !== 0) {\r\n      throwMissingArgument(name, this.func);\r\n    }\r\n  },\r\n\r\n  nonEmptyArray: function (val, name) {\r\n    if (!val || val.length === 0) {\r\n      throw new TypeError('Required array argument ' + name + ' for function ' + this.func + ' is either not defined or empty');\r\n    }\r\n  },\r\n\r\n  callback: function (val) {\r\n    this.exists(val, 'callback');\r\n    this.function(val, 'callback');\r\n  },\r\n\r\n  test: function (predicate, message) {\r\n    if (!predicate()) {\r\n      throw new Error(message + ' in function ' + this.func);\r\n    }\r\n  },\r\n\r\n  tableNameIsValid: exports.tableNameIsValid,\r\n  browserFileIsValid: exports.browserFileIsValid,\r\n  containerNameIsValid: exports.containerNameIsValid,\r\n  shareNameIsValid: exports.shareNameIsValid,\r\n  blobNameIsValid: exports.blobNameIsValid,\r\n  blobTierNameIsValid: exports.blobTierNameIsValid,\r\n  pageRangesAreValid: exports.pageRangesAreValid,\r\n  queueNameIsValid: exports.queueNameIsValid,\r\n  blobTypeIsValid: exports.blobTypeIsValid,\r\n  shareACLIsValid: exports.shareACLIsValid,\r\n  shareQuotaIsValid: exports.shareQuotaIsValid,\r\n  isValidEnumValue: exports.isValidEnumValue\r\n});\r\n\r\nfunction validateArgs(functionName, validationRules) {\r\n  var validator = new ArgumentValidator(functionName);\r\n  validationRules(validator);\r\n}\r\n\r\nexports.ArgumentValidator = ArgumentValidator;\r\nexports.validateArgs = validateArgs;\r\n},{\"../errors/errors\":5,\"./../../services/blob/blobutilities\":42,\"./../../services/file/fileutilities\":49,\"./../util/constants\":32,\"./sr\":36,\"./util\":38,\"underscore\":111,\"util\":117,\"validator\":123}],40:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar BlobService = require('./blobservice.core');\r\nvar azureCommon = require('./../../common/common.browser');\r\nvar extend = require('extend');\r\nvar mime = require('browserify-mime');\r\n\r\nvar Constants = azureCommon.Constants;\r\nvar azureutil = azureCommon.util;\r\nvar BlobConstants = Constants.BlobConstants;\r\nvar BrowserFileReadStream = azureCommon.BrowserFileReadStream;\r\nvar SpeedSummary = azureCommon.SpeedSummary;\r\nvar validate = azureCommon.validate;\r\n\r\n/**\r\n* Creates a new block blob. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* (Only available in the JavaScript Client Library for Browsers)\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {File}               browserFile                                   The File object to be uploaded created by HTML File API.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {int}                [options.blockSize]                           The size of each block. Maximum is 100MB.\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.createBlockBlobFromBrowserFile = function (container, blob, browserFile, optionsOrCallback, callback) {\r\n  return this._createBlobFromBrowserFile(container, blob, BlobConstants.BlobTypes.BLOCK, browserFile, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Uploads a page blob from an HTML file. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* (Only available in the JavaScript Client Library for Browsers)\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                           The container name.\r\n* @param {string}             blob                                                The blob name.\r\n* @param {File}               browserFile                                         The File object to be uploaded created by HTML File API.\r\n* @param {object}             [options]                                           The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                              The upload tracker objects.\r\n* @param {int}                [options.parallelOperationThreadCount]              The number of parallel operations that may be performed when uploading.\r\n* @param {string}             [options.leaseId]                                   The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]                   An MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                                  The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                       Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                                 The default value is false for page blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                       Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                           The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]               The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]           The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]           The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]              The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]        The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]                The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                          The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]                  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]                  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                                            `error` will contain information\r\n*                                                                                 if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                                 the blob information.\r\n*                                                                                 `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.createPageBlobFromBrowserFile = function (container, blob, browserFile, optionsOrCallback, callback) {\r\n  return this._createBlobFromBrowserFile(container, blob, BlobConstants.BlobTypes.PAGE, browserFile, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Creates a new append blob from an HTML File object. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* If you want to append data to an already existing blob, please look at appendFromBrowserFile.\r\n* (Only available in the JavaScript Client Library for Browsers)\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {File}               browserFile                                   The File object to be uploaded created by HTML File API.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {string}             [options.leaseId]                             The lease identifier. \r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 ahash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.createAppendBlobFromBrowserFile = function (container, blob, browserFile, optionsOrCallback, callback) {\r\n  return this._createBlobFromBrowserFile(container, blob, BlobConstants.BlobTypes.APPEND, browserFile, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Appends to an append blob from an HTML File object. Assumes the blob already exists on the service.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* (Only available in the JavaScript Client Library for Browsers)\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {File}               browserFile                                   The File object to be uploaded created by HTML File API.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.appendFromBrowserFile = function (container, blob, browserFile, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n  \r\n  validate.validateArgs('appendFromBrowserFile', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.browserFileIsValid(browserFile);\r\n    v.callback(callback);\r\n  });\r\n  \r\n  var options = extend(true, {}, userOptions);\r\n  options.speedSummary = options.speedSummary || new SpeedSummary(blob);  \r\n\r\n  var stream = new BrowserFileReadStream(browserFile);\r\n  var streamCallback = function (appendError, blob, response) {\r\n    if (azureutil.objectIsFunction(stream.destroy)) {\r\n        stream.destroy();\r\n    }\r\n    callback(appendError, blob, response);\r\n  };\r\n  this._uploadBlobFromStream(false, container, blob, BlobConstants.BlobTypes.APPEND, stream, browserFile.size, options, streamCallback);\r\n\r\n  return options.speedSummary;\r\n};\r\n\r\n// Private methods\r\n\r\n/**\r\n* Creates a new blob (Block/Page/Append). If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* (Only available in the JavaScript Client Library for Browsers)\r\n*\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {BlobType}           blobType                                      The blob type.\r\n* @param {File}               browserFile                                   The File object to be uploaded created by HTML File API.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry. (For append blob only)\r\n* @param {int}                [options.blockSize]                           The size of each block. Maximum is 100MB.\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id. (For block blob only)\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             An MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The MD5 hash of the blob content.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      The callback function.\r\n*\r\n* @return {SpeedSummary}\r\n*\r\n*/\r\nBlobService.prototype._createBlobFromBrowserFile = function (container, blob, blobType, browserFile, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n  \r\n  validate.validateArgs('_createBlobFromBrowserFile', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.blobTypeIsValid(blobType);\r\n    v.browserFileIsValid(browserFile);\r\n    v.callback(callback);\r\n  });\r\n  \r\n  var options = extend(true, {}, userOptions);\r\n  options.speedSummary = options.speedSummary || new SpeedSummary(blob);\r\n  \r\n  var self = this;\r\n  var creationCallback = function (createError, createBlob, createResponse) {\r\n    if (createError) {\r\n      callback(createError, createBlob, createResponse);\r\n    } else {\r\n      // Automatically detect the mime type\r\n      if(azureutil.tryGetValueChain(options, ['contentSettings','contentType'], undefined) === undefined) {\r\n        azureutil.setObjectInnerPropertyValue(options, ['contentSettings','contentType'], mime.lookup(browserFile.name));\r\n      }\r\n\r\n      var stream = new BrowserFileReadStream(browserFile);\r\n      var streamCallback = function (createError, createBlob, createResponse) {\r\n        if (azureutil.objectIsFunction(stream.destroy)) {\r\n          stream.destroy();\r\n        }\r\n        callback(createError, createBlob, createResponse);\r\n      };\r\n      self._uploadBlobFromStream(true, container, blob, blobType, stream, browserFile.size, options, streamCallback);\r\n    }\r\n  };\r\n\r\n  this._createBlob(container, blob, blobType, browserFile.size, options, creationCallback);\r\n  \r\n  return options.speedSummary;\r\n};\r\n\r\nmodule.exports = BlobService;\r\n},{\"./../../common/common.browser\":2,\"./blobservice.core\":41,\"browserify-mime\":53,\"extend\":60}],41:[function(require,module,exports){\r\n(function (Buffer){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar qs = require('querystring');\r\nvar url = require('url');\r\nvar util = require('util');\r\nvar _ = require('underscore');\r\nvar extend = require('extend');\r\n\r\nvar azureCommon = require('./../../common/common.core');\r\nvar BlockRangeStream = require('./internal/blockrangestream');\r\nvar Md5Wrapper = require('./../../common/md5-wrapper');\r\nvar PageRangeStream = require('./internal/pagerangestream');\r\nvar RangeStream = require('./../../common/streams/rangestream');\r\nvar azureutil = azureCommon.util;\r\nvar SR = azureCommon.SR;\r\nvar validate = azureCommon.validate;\r\nvar StorageServiceClient = azureCommon.StorageServiceClient;\r\nvar WebResource = azureCommon.WebResource;\r\n\r\n// Constants\r\nvar Constants = azureCommon.Constants;\r\nvar BlobConstants = Constants.BlobConstants;\r\nvar HeaderConstants = Constants.HeaderConstants;\r\nvar QueryStringConstants = Constants.QueryStringConstants;\r\nvar RequestLocationMode = Constants.RequestLocationMode;\r\n\r\n// Streams\r\nvar BatchOperation = azureCommon.BatchOperation;\r\nvar SpeedSummary = azureCommon.SpeedSummary;\r\nvar ChunkAllocator = azureCommon.ChunkAllocator;\r\nvar ChunkStream = azureCommon.ChunkStream;\r\nvar ChunkStreamWithStream = azureCommon.ChunkStreamWithStream;\r\n\r\n// Models requires\r\nvar AclResult = azureCommon.AclResult;\r\nvar ServiceStatsParser = azureCommon.ServiceStatsParser;\r\nvar AccountPropertiesResult = require('../../common/models/accountpropertiesresult');\r\nvar BlockListResult = require('./models/blocklistresult');\r\nvar BlobResult = require('./models/blobresult');\r\nvar ContainerResult = require('./models/containerresult');\r\nvar LeaseResult = require('./models/leaseresult');\r\n\r\nvar BlobUtilities = require('./blobutilities');\r\n\r\n// Errors requires\r\nvar errors = require('../../common/errors/errors');\r\nvar ArgumentError = errors.ArgumentError;\r\nvar ArgumentNullError = errors.ArgumentNullError;\r\nvar StorageError = errors.StorageError;\r\n\r\n/**\r\n* Creates a new BlobService object.\r\n* If no connection string or storageaccount and storageaccesskey are provided,\r\n* the AZURE_STORAGE_CONNECTION_STRING or AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY environment variables will be used.\r\n* @class\r\n* The BlobService class is used to perform operations on the Microsoft Azure Blob Service.\r\n* The Blob Service provides storage for binary large objects, and provides\r\n* functions for working with data stored in blobs as either streams or pages of data.\r\n* \r\n* For more information on the Blob Service, as well as task focused information on using it in a Node.js application, see\r\n* [How to Use the Blob Service from Node.js](http://azure.microsoft.com/en-us/documentation/articles/storage-nodejs-how-to-use-blob-storage/).\r\n* The following defaults can be set on the blob service.\r\n* singleBlobPutThresholdInBytes                       The default maximum size, in bytes, of a blob before it must be separated into blocks.\r\n* defaultEnableReuseSocket                            The default boolean value to enable socket reuse when uploading local files or streams.\r\n*                                                     If the Node.js version is lower than 0.10.x, socket reuse will always be turned off.\r\n* defaultTimeoutIntervalInMs                          The default timeout interval, in milliseconds, to use for request made via the Blob service.\r\n* defaultClientRequestTimeoutInMs                     The default timeout of client requests, in milliseconds, to use for the request made via the Blob service.\r\n* defaultMaximumExecutionTimeInMs                     The default maximum execution time across all potential retries, for requests made via the Blob service.\r\n* defaultLocationMode                                 The default location mode for requests made via the Blob service.\r\n* parallelOperationThreadCount                        The number of parallel operations that may be performed when uploading a blob that is greater than \r\n*                                                     the value specified by the singleBlobPutThresholdInBytes property in size.\r\n* useNagleAlgorithm                                   Determines whether the Nagle algorithm is used for requests made via the Blob service; true to use the  \r\n*                                                     Nagle algorithm; otherwise, false. The default value is false.\r\n* enableGlobalHttpAgent                               Determines whether global HTTP(s) agent is enabled; true to use Global HTTP(s) agent; otherwise, false to use\r\n*                                                     http(s).Agent({keepAlive:true}).\r\n* @constructor\r\n* @extends {StorageServiceClient}\r\n*\r\n* @param {string} [storageAccountOrConnectionString]  The storage account or the connection string.\r\n* @param {string} [storageAccessKey]                  The storage access key.\r\n* @param {string|object} [host]                       The host address. To define primary only, pass a string. \r\n*                                                     Otherwise 'host.primaryHost' defines the primary host and 'host.secondaryHost' defines the secondary host.\r\n* @param {string} [sas]                               The Shared Access Signature string.\r\n* @param {string} [endpointSuffix]                    The endpoint suffix.\r\n* @param {TokenCredential} [token]                    The {@link TokenCredential} object.\r\n*/\r\nfunction BlobService(storageAccountOrConnectionString, storageAccessKey, host, sas, endpointSuffix, token) {\r\n  var storageServiceSettings = StorageServiceClient.getStorageSettings(storageAccountOrConnectionString, storageAccessKey, host, sas, endpointSuffix, token);\r\n\r\n  BlobService['super_'].call(this,\r\n    storageServiceSettings._name,\r\n    storageServiceSettings._key,\r\n    storageServiceSettings._blobEndpoint,\r\n    storageServiceSettings._usePathStyleUri,\r\n    storageServiceSettings._sasToken,\r\n    token);\r\n  \r\n  this.defaultEnableReuseSocket = Constants.DEFAULT_ENABLE_REUSE_SOCKET;\r\n  this.singleBlobPutThresholdInBytes = BlobConstants.DEFAULT_SINGLE_BLOB_PUT_THRESHOLD_IN_BYTES;\r\n  this.parallelOperationThreadCount = Constants.DEFAULT_PARALLEL_OPERATION_THREAD_COUNT;\r\n}\r\n\r\nutil.inherits(BlobService, StorageServiceClient);\r\n\r\n// Non-class methods\r\n\r\n/**\r\n* Create resource name\r\n* @ignore\r\n*\r\n* @param {string} containerName Container name\r\n* @param {string} blobName      Blob name\r\n* @return {string} The encoded resource name.\r\n*/\r\nfunction createResourceName(containerName, blobName, forSAS) {\r\n  // Resource name\r\n  if (blobName && !forSAS) {\r\n    blobName = encodeURIComponent(blobName);\r\n    blobName = blobName.replace(/%2F/g, '/');\r\n    blobName = blobName.replace(/%5C/g, '/');\r\n    blobName = blobName.replace(/\\+/g, '%20');\r\n  }\r\n\r\n  // return URI encoded resource name\r\n  if (blobName) {\r\n    return containerName + '/' + blobName;\r\n  }\r\n  else {\r\n    return containerName;\r\n  }\r\n}\r\n\r\n// Blob service methods\r\n\r\n/**\r\n* Gets the service stats for a storage account’s Blob service.\r\n*\r\n* @this {BlobService}\r\n* @param {object}       [options]                               The request options.\r\n* @param {LocationMode} [options.locationMode]                  Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                               Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}          [options.timeoutIntervalInMs]           The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}          [options.clientRequestTimeoutInMs]      The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}          [options.maximumExecutionTimeInMs]      The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                               The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                               execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}       [options.clientRequestId]               A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}         [options.useNagleAlgorithm]             Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                               The default value is false.\r\n* @param {errorOrResult}  callback                              `error` will contain information if an error occurs; otherwise, `[result]{@link ServiceStats}` will contain the stats and \r\n*                                                               `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getServiceStats = function (optionsOrCallback, callback) {\r\n  var options;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n\r\n  validate.validateArgs('getServiceStats', function (v) {\r\n    v.callback(callback);\r\n  });\r\n\r\n  var webResource = WebResource.get()\r\n    .withQueryOption(QueryStringConstants.COMP, 'stats')\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'service');\r\n\r\n  options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.serviceStatsResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.serviceStatsResult = ServiceStatsParser.parse(responseObject.response.body.StorageServiceStats);\r\n    }\r\n\r\n    // function to be called after all filters\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.serviceStatsResult, returnObject.response);\r\n    };\r\n\r\n    // call the first filter\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Gets the properties of a storage account’s Blob service, including Azure Storage Analytics.\r\n*\r\n* @this {BlobService}\r\n* @param {object}       [options]                               The request options.\r\n* @param {LocationMode} [options.locationMode]                  Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                               Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}          [options.timeoutIntervalInMs]           The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}          [options.clientRequestTimeoutInMs]      The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}          [options.maximumExecutionTimeInMs]      The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                               The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                               execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}       [options.clientRequestId]               A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}         [options.useNagleAlgorithm]             Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                               The default value is false.\r\n* @param {errorOrResult}  callback                              `error` will contain information if an error occurs; otherwise, `[result]{@link BlobServiceProperties}` will contain the properties \r\n*                                                               and `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getServiceProperties = function (optionsOrCallback, callback) {\r\n  return this.getAccountServiceProperties(optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Gets the properties of a storage account.\r\n*\r\n* @this {BlobService}\r\n* @param {string}       [container]                             Optional. Name of an existing container. Required when using a SAS token to a specific container or blob.\r\n* @param {string}       [blob]                                  Optional. Name of an existing blob. Required when using a SAS token to a specific blob.\r\n* @param {object}       [options]                               The request options.\r\n* @param {LocationMode} [options.locationMode]                  Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                               Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}          [options.timeoutIntervalInMs]           The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}          [options.clientRequestTimeoutInMs]      The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}          [options.maximumExecutionTimeInMs]      The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                               The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                               execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}       [options.clientRequestId]               A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}         [options.useNagleAlgorithm]             Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                               The default value is false.\r\n* @param {errorOrResult}  callback                              `error` will contain information if an error occurs; otherwise, `[result]{@link ServiceProperties}` will contain the properties \r\n*                                                               and `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getAccountProperties = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n  \r\n  validate.validateArgs('getAccountProperties', function (v) {\r\n    v.callback(callback);\r\n  });\r\n  \r\n  var options = extend(true, {}, userOptions);\r\n  \r\n  var webResource = WebResource.head(createResourceName(container, blob))\r\n    .withQueryOption(QueryStringConstants.COMP, 'properties')\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'account');\r\n  \r\n  options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n  \r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.accountPropertiesResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.accountPropertiesResult = AccountPropertiesResult.parse(responseObject.response.headers);\r\n    }\r\n    \r\n    // function to be called after all filters\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.accountPropertiesResult, returnObject.response);\r\n    };\r\n    \r\n    // call the first filter\r\n    next(responseObject, finalCallback);\r\n  };\r\n  \r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Sets the properties of a storage account's Blob service, including Azure Storage Analytics.\r\n* You can also use this operation to set the default request version for all incoming requests that do not have a version specified.\r\n* When you set blob service properties (such as enabling soft delete), it may take up to 30 seconds to take effect. \r\n*\r\n* @this {BlobService}\r\n* @param {object}             serviceProperties                        A `[BlobServiceProperties]{@link BlobServiceProperties}` object.\r\n* @param {object}             [options]                                The request options.\r\n* @param {LocationMode}       [options.locationMode]                   Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                      Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]            The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]       The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]       The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                      The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                      execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]              Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                      The default value is false.\r\n* @param {errorOrResponse}    callback                                 `error` will contain information\r\n*                                                                      if an error occurs; otherwise, `response`\r\n*                                                                      will contain information related to this operation.\r\n*/\r\nBlobService.prototype.setServiceProperties = function (serviceProperties, optionsOrCallback, callback) {\r\n  return this.setAccountServiceProperties(serviceProperties, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Sets the tier of a blockblob under a blob storage account, or the tier of a pageblob under a premium storage account.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                The container name.\r\n* @param {string}             blob                                     The blob name.\r\n* @param {string}             blobTier                                 Please see BlobUtilities.BlobTier.StandardBlobTier or BlobUtilities.BlobTier.PremiumPageBlobTier for possible values.\r\n* @param {LocationMode}       [options.locationMode]                   Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                      Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]            The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]       The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]       The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                      The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                      execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]              Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                      The default value is false.\r\n* @param {errorOrResponse}    callback                                 `error` will contain information\r\n*                                                                      if an error occurs; otherwise, `response`\r\n*                                                                      will contain information related to this operation.\r\n*/\r\nBlobService.prototype.setBlobTier = function (container, blob, blobTier, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n  \r\n  validate.validateArgs('setBlobTier', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.string(blobTier, 'blobTier');\r\n    v.containerNameIsValid(container);\r\n    v.blobNameIsValid(container, blob);\r\n    v.blobTierNameIsValid(blobTier);\r\n    v.callback(callback);\r\n  });\r\n  \r\n  var options = extend(true, {}, userOptions);\r\n  \r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'tier')\r\n    .withHeader(HeaderConstants.ACCESS_TIER, blobTier);\r\n  \r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n    \r\n    next(responseObject, finalCallback);\r\n  };\r\n  \r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Lists a segment containing a collection of container items under the specified account.\r\n*\r\n* @this {BlobService}\r\n* @param {object}             currentToken                                A continuation token returned by a previous listing operation. Please use 'null' or 'undefined' if this is the first operation.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.maxResults]                        Specifies the maximum number of containers to return per call to Azure storage.\r\n* @param {string}             [options.include]                           Include this parameter to specify that the container's metadata be returned as part of the response body. (allowed values: '', 'metadata')\r\n*                                                                         **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `result` will contain `entries` and `continuationToken`. \r\n*                                                                         `entries`  gives a list of `[containers]{@link ContainerResult}` and the `continuationToken` is used for the next listing operation.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listContainersSegmented = function (currentToken, optionsOrCallback, callback) {\r\n  this.listContainersSegmentedWithPrefix(null /* prefix */, currentToken, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Lists a segment containing a collection of container items whose names begin with the specified prefix under the specified account.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             prefix                                      The prefix of the container name.\r\n* @param {object}             currentToken                                A continuation token returned by a previous listing operation. Please use 'null' or 'undefined' if this is the first operation.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.maxResults]                        Specifies the maximum number of containers to return per call to Azure storage.\r\n* @param {string}             [options.include]                           Include this parameter to specify that the container's metadata be returned as part of the response body. (allowed values: '', 'metadata')\r\n*                                                                         **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `result` will contain `entries` and `continuationToken`. \r\n*                                                                         `entries`  gives a list of `[containers]{@link ContainerResult}` and the `continuationToken` is used for the next listing operation.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listContainersSegmentedWithPrefix = function (prefix, currentToken, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('listContainers', function (v) {\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.get()\r\n    .withQueryOption(QueryStringConstants.COMP, 'list')\r\n    .withQueryOption(QueryStringConstants.MAX_RESULTS, options.maxResults)\r\n    .withQueryOption(QueryStringConstants.INCLUDE, options.include);\r\n\r\n  if (!azureutil.objectIsNull(currentToken)) {\r\n    webResource.withQueryOption(QueryStringConstants.MARKER, currentToken.nextMarker);\r\n  }\r\n\r\n  webResource.withQueryOption(QueryStringConstants.PREFIX, prefix);\r\n\r\n  options.requestLocationMode = azureutil.getNextListingLocationMode(currentToken);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.listContainersResult = null;\r\n\r\n    if (!responseObject.error) {\r\n      responseObject.listContainersResult = {\r\n        entries: null,\r\n        continuationToken: null\r\n      };\r\n      responseObject.listContainersResult.entries = [];\r\n\r\n      var containers = [];\r\n\r\n      if (responseObject.response.body.EnumerationResults.Containers && responseObject.response.body.EnumerationResults.Containers.Container) {\r\n        containers = responseObject.response.body.EnumerationResults.Containers.Container;\r\n        if (!_.isArray(containers)) {\r\n          containers = [containers];\r\n        }\r\n      }\r\n\r\n      containers.forEach(function (currentContainer) {\r\n        var containerResult = ContainerResult.parse(currentContainer);\r\n        responseObject.listContainersResult.entries.push(containerResult);\r\n      });\r\n\r\n      if (responseObject.response.body.EnumerationResults.NextMarker) {\r\n        responseObject.listContainersResult.continuationToken = {\r\n          nextMarker: null,\r\n          targetLocation: null\r\n        };\r\n\r\n        responseObject.listContainersResult.continuationToken.nextMarker = responseObject.response.body.EnumerationResults.NextMarker;\r\n        responseObject.listContainersResult.continuationToken.targetLocation = responseObject.targetLocation;\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.listContainersResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n// Container methods\r\n\r\n/**\r\n* Checks whether or not a container exists on the service.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                               The container name.\r\n* @param {object}             [options]                               The request options.\r\n* @param {LocationMode}       [options.locationMode]                  Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                     Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]           The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]      The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                     The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                     execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]               A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]             Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                     The default value is false.\r\n* @param {errorOrResult}      callback                                `error` will contain information\r\n*                                                                     if an error occurs; otherwise `[result]{@link ContainerResult}` will contain\r\n*                                                                     the container information including `exists` boolean member. \r\n*                                                                     `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.doesContainerExist = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('doesContainerExist', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  this._doesContainerExist(container, false, options, callback);\r\n};\r\n\r\n/**\r\n* Creates a new container under the specified account.\r\n* If a container with the same name already exists, the operation fails.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             [options]                           The request options.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {object}             [options.metadata]                  The metadata key/value pairs.\r\n* @param {string}             [options.publicAccessLevel]         Specifies whether data in the container may be accessed publicly and the level of access.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `[result]{@link ContainerResult}` will contain\r\n*                                                                 the container information.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createContainer = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createContainer', function (v) {\r\n    v.string(container, 'container');\r\n    v.test(function () { return container !== '$logs'; },\r\n      'Container name format is incorrect');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.put(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container');\r\n\r\n  webResource.addOptionalMetadataHeaders(options.metadata);\r\n  webResource.withHeader(HeaderConstants.BLOB_PUBLIC_ACCESS, options.publicAccessLevel);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.containerResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.containerResult = new ContainerResult(container);\r\n      responseObject.containerResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n\r\n      if (options.metadata) {\r\n        responseObject.containerResult.metadata = options.metadata;\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.containerResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Creates a new container under the specified account if the container does not exists.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                 The container name.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {object}             [options.metadata]                        The metadata key/value pairs.\r\n* @param {string}             [options.publicAccessLevel]               Specifies whether data in the container may be accessed publicly and the level of access.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResult}      callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise `[result]{@link ContainerResult}` will contain\r\n*                                                                       the container information including `created` boolean member. \r\n*                                                                       `response` will contain information related to this operation.\r\n*\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* blobService.createContainerIfNotExists('taskcontainer', {publicAccessLevel : 'blob'}, function(error) {\r\n*   if(!error) {\r\n*     // Container created or exists, and is public\r\n*   }\r\n* }); \r\n*/\r\nBlobService.prototype.createContainerIfNotExists = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createContainerIfNotExists', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var self = this;\r\n  self._doesContainerExist(container, true, options, function (error, result, response) {\r\n    var exists = result.exists;\r\n    result.created = false;\r\n    delete result.exists;\r\n\r\n    if (error) {\r\n      callback(error, result, response);\r\n    } else if (exists) {\r\n      response.isSuccessful = true;\r\n      callback(error, result, response);\r\n    } else {\r\n      self.createContainer(container, options, function (createError, containerResult, createResponse) {\r\n        if (!createError) {\r\n          containerResult.created = true;\r\n        }\r\n        else if (createError && createError.statusCode === Constants.HttpConstants.HttpResponseCodes.Conflict && createError.code === Constants.BlobErrorCodeStrings.CONTAINER_ALREADY_EXISTS) {\r\n          // If it was created before, there was no actual error.\r\n          createError = null;\r\n          createResponse.isSuccessful = true;\r\n        }\r\n\r\n        callback(createError, containerResult, createResponse);\r\n      });\r\n    }\r\n  });\r\n};\r\n\r\n/**\r\n* Retrieves a container and its properties from a specified account.\r\n* **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             [options]                           The request options.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {string}             [options.leaseId]                   The container lease identifier.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `[result]{@link ContainerResult}` will contain\r\n*                                                                 information for the container.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getContainerProperties = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getContainerProperties', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.head(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  options.requestLocationMode = Constants.RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var self = this;\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.containerResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.containerResult = new ContainerResult(container);\r\n      responseObject.containerResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);\r\n      responseObject.containerResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.containerResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Returns all user-defined metadata for the container.\r\n* **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                 The container name.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {string}             [options.leaseId]                         The container lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResult}      callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise `[result]{@link ContainerResult}` will contain\r\n*                                                                       information for the container.\r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getContainerMetadata = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getContainerMetadata', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.head(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withQueryOption(QueryStringConstants.COMP, 'metadata')\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  options.requestLocationMode = Constants.RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var self = this;\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.containerResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.containerResult = new ContainerResult(container);\r\n      responseObject.containerResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);\r\n      responseObject.containerResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.containerResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Sets the container's metadata.\r\n*\r\n* Calling the Set Container Metadata operation overwrites all existing metadata that is associated with the container.\r\n* It's not possible to modify an individual name/value pair.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             metadata                            The metadata key/value pairs.\r\n* @param {object}             [options]                           The request options.\r\n* @param {string}             [options.leaseId]                   The container lease identifier.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {AccessConditions}   [options.accessConditions]          The access conditions.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResponse}    callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise \r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.setContainerMetadata = function (container, metadata, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('setContainerMetadata', function (v) {\r\n    v.string(container, 'container');\r\n    v.object(metadata, 'metadata');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.put(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withQueryOption(QueryStringConstants.COMP, 'metadata')\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  webResource.addOptionalMetadataHeaders(metadata);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.containerResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.containerResult = new ContainerResult(container);\r\n      responseObject.containerResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.containerResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Gets the container's ACL.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             [options]                           The request options.\r\n* @param {string}             [options.leaseId]                   The container lease identifier.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `[result]{@link ContainerAclResult}` will contain\r\n*                                                                 information for the container.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getContainerAcl = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getContainerAcl', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.get(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withQueryOption(QueryStringConstants.COMP, 'acl')\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  options.requestLocationMode = Constants.RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.containerResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.containerResult = new ContainerResult(container);\r\n      responseObject.containerResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n      responseObject.containerResult.signedIdentifiers = AclResult.parse(responseObject.response.body);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.containerResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Updates the container's ACL.\r\n*\r\n* @this {BlobService}\r\n* @param {string}                         container                           The container name.\r\n* @param {Object.<string, AccessPolicy>}  signedIdentifiers                   The container ACL settings. See `[AccessPolicy]{@link AccessPolicy}` for detailed information.\r\n* @param {object}                         [options]                           The request options.\r\n* @param {AccessConditions}               [options.accessConditions]          The access conditions.\r\n* @param {string}                         [options.publicAccessLevel]         Specifies whether data in the container may be accessed publicly and the level of access.\r\n* @param {string}                         [options.leaseId]                   The container lease identifier.\r\n* @param {int}                            [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                            [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                            [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                             The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                             execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}                         [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}                           [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                             The default value is false.\r\n* @param {errorOrResult}                  callback                            `error` will contain information\r\n*                                                                             if an error occurs; otherwise `[result]{@link ContainerAclResult}` will contain\r\n*                                                                             information for the container.\r\n*                                                                             `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.setContainerAcl = function (container, signedIdentifiers, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('setContainerAcl', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var policies = null;\r\n  if (signedIdentifiers) {\r\n    if (_.isArray(signedIdentifiers)) {\r\n      throw new TypeError(SR.INVALID_SIGNED_IDENTIFIERS);\r\n    }\r\n    policies = AclResult.serialize(signedIdentifiers);\r\n  }\r\n\r\n  var webResource = WebResource.put(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withQueryOption(QueryStringConstants.COMP, 'acl')\r\n    .withHeader(HeaderConstants.CONTENT_LENGTH, !azureutil.objectIsNull(policies) ? Buffer.byteLength(policies) : 0)\r\n    .withHeader(HeaderConstants.BLOB_PUBLIC_ACCESS, options.publicAccessLevel)\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId)\r\n    .withBody(policies);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.containerResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.containerResult = new ContainerResult(container, options.publicAccessLevel);\r\n      responseObject.containerResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n      if (signedIdentifiers) {\r\n        responseObject.containerResult.signedIdentifiers = signedIdentifiers;\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.containerResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, webResource.body, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Marks the specified container for deletion.\r\n* The container and any blobs contained within it are later deleted during garbage collection.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             [options]                           The request options.\r\n* @param {AccessConditions}   [options.accessConditions]          The access conditions.\r\n* @param {string}             [options.leaseId]                   The container lease identifier.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResponse}    callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.deleteContainer = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('deleteContainer', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.del(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Marks the specified container for deletion if it exists.\r\n* The container and any blobs contained within it are later deleted during garbage collection.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             [options]                           The request options.\r\n* @param {AccessConditions}   [options.accessConditions]          The access conditions.\r\n* @param {string}             [options.leaseId]                   The container lease identifier.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `result` will \r\n*                                                                 be true if the container exists and was deleted, or false if the container\r\n*                                                                 did not exist.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.deleteContainerIfExists = function (container, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('deleteContainerIfExists', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var self = this;\r\n  self._doesContainerExist(container, true, options, function (error, result, response) {\r\n    if (error) {\r\n      callback(error, result.exists, response);\r\n    } else if (!result.exists) {\r\n      response.isSuccessful = true;\r\n      callback(error, false, response);\r\n    } else {\r\n      self.deleteContainer(container, options, function (deleteError, deleteResponse) {\r\n        var deleted;\r\n        if (!deleteError) {\r\n          deleted = true;\r\n        } else if (deleteError && deleteError.statuscode === Constants.HttpConstants.HttpResponseCodes.NotFound && deleteError.code === Constants.BlobErrorCodeStrings.CONTAINER_NOT_FOUND) {\r\n          // If it was deleted already, there was no actual error.\r\n          deleted = false;\r\n          deleteError = null;\r\n          deleteResponse.isSuccessful = true;\r\n        }\r\n\r\n        callback(deleteError, deleted, deleteResponse);\r\n      });\r\n    }\r\n  });\r\n};\r\n\r\n/**\r\n* Lists a segment containing a collection of blob directory items in the container.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             currentToken                        A continuation token returned by a previous listing operation. Please use 'null' or 'undefined' if this is the first operation.\r\n* @param {object}             [options]                           The request options.\r\n* @param {int}                [options.maxResults]                Specifies the maximum number of directories to return per call to Azure ServiceClient. This does NOT affect list size returned by this function. (maximum: 5000)\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `result` will contain `entries` and `continuationToken`. \r\n*                                                                 `entries`  gives a list of `[directories]{@link DirectoryResult}` and the `continuationToken` is used for the next listing operation.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listBlobDirectoriesSegmented = function (container, currentToken, optionsOrCallback, callback) {\r\n  this.listBlobDirectoriesSegmentedWithPrefix(container, null /* prefix */, currentToken, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Lists a segment containing a collection of blob directory items in the container.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {string}             prefix                              The prefix of the blob directory.\r\n* @param {object}             currentToken                        A continuation token returned by a previous listing operation. Please use 'null' or 'undefined' if this is the first operation.\r\n* @param {object}             [options]                           The request options.\r\n* @param {int}                [options.maxResults]                Specifies the maximum number of directories to return per call to Azure ServiceClient. This does NOT affect list size returned by this function. (maximum: 5000)\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `result` will contain `entries` and `continuationToken`. \r\n*                                                                 `entries`  gives a list of `[directories]{@link BlobResult}` and the `continuationToken` is used for the next listing operation.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listBlobDirectoriesSegmentedWithPrefix = function (container, prefix, currentToken, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n  userOptions.delimiter = '/';\r\n\r\n  this._listBlobsOrDircotriesSegmentedWithPrefix(container, prefix, currentToken, BlobConstants.ListBlobTypes.Directory, userOptions, callback);\r\n};\r\n\r\n/**\r\n* Lists a segment containing a collection of blob items in the container.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {object}             currentToken                        A continuation token returned by a previous listing operation. Please use 'null' or 'undefined' if this is the first operation.\r\n* @param {object}             [options]                           The request options.\r\n* @param {string}             [options.delimiter]                 Delimiter, i.e. '/', for specifying folder hierarchy.\r\n* @param {int}                [options.maxResults]                Specifies the maximum number of blobs to return per call to Azure ServiceClient. (maximum: 5000)\r\n* @param {string}             [options.include]                   Specifies that the response should include one or more of the following subsets: '', 'metadata', 'snapshots', 'uncommittedblobs', 'copy', 'deleted'). \r\n*                                                                 Please find these values in BlobUtilities.BlobListingDetails. Multiple values can be added separated with a comma (,).\r\n*                                                                 **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `result` will contain `entries` and `continuationToken`. \r\n*                                                                 `entries`  gives a list of `[blobs]{@link BlobResult}` and the `continuationToken` is used for the next listing operation.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listBlobsSegmented = function (container, currentToken, optionsOrCallback, callback) {\r\n  this.listBlobsSegmentedWithPrefix(container, null /* prefix */, currentToken, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Lists a segment containing a collection of blob items whose names begin with the specified prefix in the container.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {string}             prefix                              The prefix of the blob name.\r\n* @param {object}             currentToken                        A continuation token returned by a previous listing operation. Please use 'null' or 'undefined' if this is the first operation.\r\n* @param {object}             [options]                           The request options.\r\n* @param {string}             [options.delimiter]                 Delimiter, i.e. '/', for specifying folder hierarchy.\r\n* @param {int}                [options.maxResults]                Specifies the maximum number of blobs to return per call to Azure ServiceClient. (maximum: 5000)\r\n* @param {string}             [options.include]                   Specifies that the response should include one or more of the following subsets: '', 'metadata', 'snapshots', 'uncommittedblobs', 'copy', 'deleted').\r\n*                                                                 Please find these values in BlobUtilities.BlobListingDetails. Multiple values can be added separated with a comma (,).\r\n*                                                                 **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `result` will contain\r\n*                                                                 the entries of `[blobs]{@link BlobResult}` and the continuation token for the next listing operation.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listBlobsSegmentedWithPrefix = function (container, prefix, currentToken, optionsOrCallback, callback) {\r\n  this._listBlobsOrDircotriesSegmentedWithPrefix(container, prefix, currentToken, BlobConstants.ListBlobTypes.Blob, optionsOrCallback, callback);\r\n};\r\n\r\n// Lease methods\r\n\r\n/**\r\n* Acquires a new lease. If container and blob are specified, acquires a blob lease. Otherwise, if only container is specified and blob is null, acquires a container lease.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.leaseDuration]                     The lease duration in seconds. A non-infinite lease can be between 15 and 60 seconds. Default is never to expire. \r\n* @param {string}             [options.proposedLeaseId]                   The proposed lease identifier. Must be a GUID.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link LeaseResult}` will contain\r\n*                                                                         the lease information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.acquireLease = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('acquireLease', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  if (!options.leaseDuration) {\r\n    options.leaseDuration = -1;\r\n  }\r\n\r\n  this._leaseImpl(container, blob, null /* leaseId */, BlobConstants.LeaseOperation.ACQUIRE, options, callback);\r\n};\r\n\r\n/**\r\n* Renews an existing lease. If container and blob are specified, renews the blob lease. Otherwise, if only container is specified and blob is null, renews the container lease.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {string}             leaseId                                     The lease identifier. Must be a GUID.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link LeaseResult}` will contain\r\n*                                                                         the lease information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.renewLease = function (container, blob, leaseId, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('renewLease', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  this._leaseImpl(container, blob, leaseId, BlobConstants.LeaseOperation.RENEW, options, callback);\r\n};\r\n\r\n/**\r\n* Changes the lease ID of an active lease. If container and blob are specified, changes the blob lease. Otherwise, if only container is specified and blob is null, changes the \r\n* container lease.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {string}             leaseId                                     The current lease identifier.\r\n* @param {string}             proposedLeaseId                             The proposed lease identifier. Must be a GUID. \r\n* @param {object}             [options]                                   The request options.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information if an error occurs; \r\n*                                                                         otherwise `[result]{@link LeaseResult}` will contain  the lease information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.changeLease = function (container, blob, leaseId, proposedLeaseId, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('changeLease', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  options.proposedLeaseId = proposedLeaseId;\r\n  this._leaseImpl(container, blob, leaseId, BlobConstants.LeaseOperation.CHANGE, options, callback);\r\n};\r\n\r\n/**\r\n* Releases the lease. If container and blob are specified, releases the blob lease. Otherwise, if only container is specified and blob is null, releases the container lease.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {string}             leaseId                                     The lease identifier.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link LeaseResult}` will contain\r\n*                                                                         the lease information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.releaseLease = function (container, blob, leaseId, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('releaseLease', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  this._leaseImpl(container, blob, leaseId, BlobConstants.LeaseOperation.RELEASE, options, callback);\r\n};\r\n\r\n/**\r\n* Breaks the lease but ensures that another client cannot acquire a new lease until the current lease period has expired. If container and blob are specified, breaks the blob lease. \r\n* Otherwise, if only container is specified and blob is null, breaks the container lease.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {int}                [options.leaseBreakPeriod]                  The lease break period, between 0 and 60 seconds. If unspecified, a fixed-duration lease breaks after \r\n*                                                                         the remaining lease period elapses, and an infinite lease breaks immediately.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link LeaseResult}` will contain\r\n*                                                                         the lease information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.breakLease = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('breakLease', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  this._leaseImpl(container, blob, null /*leaseId*/, BlobConstants.LeaseOperation.BREAK, options, callback);\r\n};\r\n\r\n// Blob methods\r\n\r\n/**\r\n* Returns all user-defined metadata, standard HTTP properties, and system properties for the blob.\r\n* It does not return or modify the content of the blob.\r\n* **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                         information about the blob.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getBlobProperties = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getBlobProperties', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.head(resourceName);\r\n\r\n  if (options.snapshotId) {\r\n    webResource.withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n  }\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  options.requestLocationMode = Constants.RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var self = this;\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Returns all user-defined metadata for the specified blob or snapshot.\r\n* It does not modify or return the content of the blob.\r\n* **Note** that all metadata names returned from the server will be converted to lower case by NodeJS itself as metadata is set via HTTP headers and HTTP header names are case insensitive.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                         information about the blob.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getBlobMetadata = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getBlobMetadata', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.head(resourceName);\r\n\r\n  webResource.withQueryOption(QueryStringConstants.COMP, 'metadata');\r\n  webResource.withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  options.requestLocationMode = Constants.RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var self = this;\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Sets user-defined properties for the specified blob or snapshot.\r\n* It does not modify or return the content of the blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [properties]                                The blob properties to set.\r\n* @param {string}             [properties.contentType]                    The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [properties.contentEncoding]                The content encodings that have been applied to the blob.\r\n* @param {string}             [properties.contentLanguage]                The natural languages used by this resource.\r\n* @param {string}             [properties.cacheControl]                   The blob's cache control.\r\n* @param {string}             [properties.contentDisposition]             The blob's content disposition.\r\n* @param {string}             [properties.contentMD5]                     The blob's MD5 hash.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                         information about the blob.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.setBlobProperties = function (container, blob, properties, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('setBlobProperties', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, { contentSettings: properties }, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'properties');\r\n\r\n  BlobResult.setPropertiesFromBlob(webResource, options);\r\n\r\n  this._setBlobPropertiesHelper({\r\n    webResource: webResource,\r\n    options: options,\r\n    container: container,\r\n    blob: blob,\r\n    callback: callback\r\n  });\r\n};\r\n\r\n/**\r\n* Sets user-defined metadata for the specified blob or snapshot as one or more name-value pairs \r\n* It does not modify or return the content of the blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             metadata                                    The metadata key/value pairs.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                         information on the blob.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.setBlobMetadata = function (container, blob, metadata, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('setBlobMetadata', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.object(metadata, 'metadata');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'metadata');\r\n\r\n  webResource.withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n\r\n  options.metadata = metadata;\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n\r\n/**\r\n* Provides a stream to read from a blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {string}             [options.rangeStart]                        Return only the bytes of the blob in the specified range.\r\n* @param {string}             [options.rangeEnd]                          Return only the bytes of the blob in the specified range.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {boolean}            [options.useTransactionalMD5]               When set to true, Calculate and send/validate content MD5 for transactions.\r\n* @param {boolean}            [options.disableContentMD5Validation]       When set to true, MD5 validation will be disabled when downloading blobs.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information if an error occurs; \r\n*                                                                         otherwise `[result]{@link BlobResult}` will contain the blob information.\r\n*                                                                         `response` will contain information related to this operation.\r\n* @return {Readable}                                                      A Node.js Readable stream.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* var writable = fs.createWriteStream(destinationFileNameTarget);\r\n*  blobService.createReadStream(containerName, blobName).pipe(writable);\r\n*/\r\nBlobService.prototype.createReadStream = function (container, blob, optionsOrCallback, callback) {\r\n  var options;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n\r\n  validate.validateArgs('createReadStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n  });\r\n\r\n  var readStream = new ChunkStream();\r\n  this.getBlobToStream(container, blob, readStream, options, function (error, responseBlob, response) {\r\n    if (error) {\r\n      readStream.emit('error', error);\r\n    }\r\n\r\n    if (callback) {\r\n      callback(error, responseBlob, response);\r\n    }\r\n  });\r\n\r\n  return readStream;\r\n};\r\n\r\n/**\r\n* Downloads a blob into a stream.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {Writable}           writeStream                                 The Node.js Writable stream.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {boolean}            [options.skipSizeCheck]                     Skip the size check to perform direct download.\r\n*                                                                         Set the option to true for small blobs.\r\n*                                                                         Parallel download and speed summary won't work with this option on.\r\n* @param {SpeedSummary}       [options.speedSummary]                      The download tracker objects.\r\n* @param {int}                [options.parallelOperationThreadCount]      The number of parallel operations that may be performed when uploading.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {string}             [options.rangeStart]                        Return only the bytes of the blob in the specified range.\r\n* @param {string}             [options.rangeEnd]                          Return only the bytes of the blob in the specified range. \r\n* @param {boolean}            [options.useTransactionalMD5]               When set to true, Calculate and send/validate content MD5 for transactions.\r\n* @param {boolean}            [options.disableContentMD5Validation]       When set to true, MD5 validation will be disabled when downloading blobs.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information if an error occurs; \r\n*                                                                         otherwise `[result]{@link BlobResult}` will contain the blob information.\r\n*                                                                         `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* blobService.getBlobToStream('taskcontainer', 'task1', fs.createWriteStream('task1-download.txt'), function(error, serverBlob) {\r\n*   if(!error) {\r\n*     // Blob available in serverBlob.blob variable\r\n*   }\r\n* }); \r\n*/\r\nBlobService.prototype.getBlobToStream = function (container, blob, writeStream, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n  userOptions.speedSummary = userOptions.speedSummary || new SpeedSummary(blob);\r\n\r\n  validate.validateArgs('getBlobToStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.object(writeStream, 'writeStream');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var propertiesRequestOptions = {\r\n    timeoutIntervalInMs: options.timeoutIntervalInMs,\r\n    clientRequestTimeoutInMs: options.clientRequestTimeoutInMs,\r\n    snapshotId: options.snapshotId,\r\n    accessConditions: options.accessConditions\r\n  };\r\n\r\n  if (options.skipSizeCheck) {\r\n    this._getBlobToStream(container, blob, writeStream, options, callback);\r\n  } else {\r\n    var self = this;\r\n    this.getBlobProperties(container, blob, propertiesRequestOptions, function (error, properties) {\r\n      if (error) {\r\n        callback(error);\r\n      } else {\r\n        var size;\r\n        if (options.rangeStart) {\r\n          var endOffset = properties.contentLength - 1;\r\n          var end = options.rangeEnd ? Math.min(options.rangeEnd, endOffset) : endOffset;\r\n          size = end - options.rangeStart + 1;\r\n        } else {\r\n          size = properties.contentLength;\r\n        }\r\n        options.speedSummary.totalSize = size;\r\n\r\n        if (size > self.singleBlobPutThresholdInBytes) {\r\n          azureutil.setObjectInnerPropertyValue(options, ['contentSettings', 'contentMD5'], azureutil.tryGetValueChain(properties, ['contentSettings', 'contentMD5'], null));\r\n          self._getBlobToRangeStream(container, blob, properties.blobType, writeStream, options, callback);\r\n        } else {\r\n          self._getBlobToStream(container, blob, writeStream, options, callback);\r\n        }\r\n      }\r\n    });\r\n  }\r\n\r\n  return options.speedSummary;\r\n};\r\n\r\n/**\r\n* Downloads a blob into a text string.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier. \r\n* @param {string}             [options.rangeStart]                        Return only the bytes of the blob in the specified range.\r\n* @param {string}             [options.rangeEnd]                          Return only the bytes of the blob in the specified range.\r\n* @param {bool}               [options.useTransactionalMD5]               Calculate and send/validate content MD5 for transactions.\r\n* @param {boolean}            [options.disableContentMD5Validation]       When set to true, MD5 validation will be disabled when downloading blobs.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {BlobService~blobToText}  callback                               `error` will contain information\r\n*                                                                         if an error occurs; otherwise `text` will contain the blob contents,\r\n*                                                                         and `[blockBlob]{@link BlobResult}` will contain\r\n*                                                                         the blob information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getBlobToText = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getBlobToText', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.get(resourceName)\r\n    .withRawResponse();\r\n\r\n  webResource.withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n  this._setRangeContentMD5Header(webResource, options);\r\n\r\n  options.requestLocationMode = Constants.RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var self = this;\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.text = null;\r\n    responseObject.blobResult = null;\r\n\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n      responseObject.text = responseObject.response.body;\r\n\r\n      self._validateLengthAndMD5(options, responseObject);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.text, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection.\r\n* If a blob has snapshots, you must delete them when deleting the blob. Using the deleteSnapshots option, you can choose either to delete both the blob and its snapshots, \r\n* or to delete only the snapshots but not the blob itself. If the blob has snapshots, you must include the deleteSnapshots option or the blob service will return an error\r\n* and nothing will be deleted. \r\n* If you are deleting a specific snapshot using the snapshotId option, the deleteSnapshots option must NOT be included.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.deleteSnapshots]                   The snapshot delete option. See azure.BlobUtilities.SnapshotDeleteOptions.*. \r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResponse}    callback                                    `error` will contain information\r\n*                                                                         if an error occurs; `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.deleteBlob = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('deleteBlob', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.del(resourceName)\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  if (!azureutil.objectIsNull(options.snapshotId) && !azureutil.objectIsNull(options.deleteSnapshots)) {\r\n    throw new ArgumentError('options', SR.INVALID_DELETE_SNAPSHOT_OPTION);\r\n  }\r\n\r\n  webResource.withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n  webResource.withHeader(HeaderConstants.DELETE_SNAPSHOT, options.deleteSnapshots);\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* The undelete Blob operation restores the contents and metadata of soft deleted blob or snapshot.\r\n* Attempting to undelete a blob or snapshot that is not soft deleted will succeed without any changes.\r\n* \r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResponse}    callback                                    `error` will contain information\r\n*                                                                         if an error occurs; `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.undeleteBlob = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('deleteBlob', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'undelete');\r\n    \r\n  BlobResult.setHeadersFromBlob(webResource, options);  \r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Checks whether or not a blob exists on the service.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                               The container name.\r\n* @param {string}             blob                                    The blob name.\r\n* @param {object}             [options]                               The request options.\r\n* @param {string}             [options.snapshotId]                    The snapshot identifier.\r\n* @param {string}             [options.leaseId]                       The lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                  Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                     Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]           The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]      The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]      The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                     The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                     execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]               A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]             Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                     The default value is false.\r\n* @param {Function(error, result, response)}  callback                `error` will contain information\r\n*                                                                     if an error occurs; otherwise `[result]{@link BlobResult}` will contain \r\n*                                                                     the blob information including the `exists` boolean member. \r\n*                                                                     `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.doesBlobExist = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('doesBlobExist', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  this._doesBlobExist(container, blob, false, options, callback);\r\n};\r\n\r\n/**\r\n* Marks the specified blob or snapshot for deletion if it exists. The blob is later deleted during garbage collection.\r\n* If a blob has snapshots, you must delete them when deleting the blob. Using the deleteSnapshots option, you can choose either to delete both the blob and its snapshots, \r\n* or to delete only the snapshots but not the blob itself. If the blob has snapshots, you must include the deleteSnapshots option or the blob service will return an error\r\n* and nothing will be deleted. \r\n* If you are deleting a specific snapshot using the snapshotId option, the deleteSnapshots option must NOT be included.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {string}             blob                                The blob name.\r\n* @param {object}             [options]                           The request options.\r\n* @param {string}             [options.deleteSnapshots]           The snapshot delete option. See azure.BlobUtilities.SnapshotDeleteOptions.*. \r\n* @param {string}             [options.snapshotId]                The snapshot identifier.\r\n* @param {string}             [options.leaseId]                   The lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]          The access conditions.\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `result` will\r\n*                                                                 be true if the blob was deleted, or false if the blob\r\n*                                                                 does not exist.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.deleteBlobIfExists = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('deleteBlobIfExists', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var self = this;\r\n  self._doesBlobExist(container, blob, true, options, function (error, existsResult, response) {\r\n    if (error) {\r\n      callback(error, existsResult.exists, response);\r\n    } else if (!existsResult.exists) {\r\n      response.isSuccessful = true;\r\n      callback(error, false, response);\r\n    } else {\r\n      self.deleteBlob(container, blob, options, function (deleteError, deleteResponse) {\r\n        var deleted;\r\n        if (!deleteError) {\r\n          deleted = true;\r\n        } else if (deleteError && deleteError.statusCode === Constants.HttpConstants.HttpResponseCodes.NotFound && deleteError.code === Constants.BlobErrorCodeStrings.BLOB_NOT_FOUND) {\r\n          // If it was deleted already, there was no actual error.\r\n          deleted = false;\r\n          deleteError = null;\r\n          deleteResponse.isSuccessful = true;\r\n        }\r\n\r\n        callback(deleteError, deleted, deleteResponse);\r\n      });\r\n    }\r\n  });\r\n};\r\n\r\n/**\r\n* Creates a read-only snapshot of a blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                             The container name.\r\n* @param {string}             blob                                  The blob name.\r\n* @param {object}             [options]                             The request options.\r\n* @param {string}             [options.snapshotId]                  The snapshot identifier.\r\n* @param {object}             [options.metadata]                    The metadata key/value pairs.\r\n* @param {string}             [options.leaseId]                     The lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]            The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                   Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]         The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]    The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]    The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                   The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                   execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]             A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]           Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                   The default value is false.\r\n* @param {errorOrResult}      callback                              `error` will contain information\r\n*                                                                   if an error occurs; otherwise `result` will contain\r\n*                                                                   the ID of the snapshot.\r\n*                                                                   `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createBlobSnapshot = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createBlobSnapshot', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'snapshot');\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.snapshotId = null;\r\n    if (!responseObject.error) {\r\n      responseObject.snapshotId = responseObject.response.headers[HeaderConstants.SNAPSHOT];\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.snapshotId, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Starts to copy a blob or an Azure Storage file to a destination blob.\r\n*\r\n* For an asynchronous copy(by default), this operation returns a object including a copy ID which\r\n* you can use to check or abort the copy operation. The Blob service copies blobs on a best-effort basis.\r\n* The source blob for an asynchronous copy operation may be a block blob, an append blob,\r\n* a page blob or an Azure Storage file.\r\n*\r\n* Refer to https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob for more details. \r\n*\r\n* @this {BlobService}\r\n* @param {string}             sourceUri                                 The source blob URI.\r\n* @param {string}             targetContainer                           The target container name.\r\n* @param {string}             targetBlob                                The target blob name.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {string}             [options.blobTier]                        For page blobs on premium accounts only. Set the tier of target blob. Refer to BlobUtilities.BlobTier.PremiumPageBlobTier.\r\n* @param {boolean}            [options.isIncrementalCopy]               If it's incremental copy or not. Refer to https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/incremental-copy-blob\r\n* @param {string}             [options.snapshotId]                      The source blob snapshot identifier.\r\n* @param {object}             [options.metadata]                        The target blob metadata key/value pairs.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.sourceLeaseId]                   The source blob lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {AccessConditions}   [options.sourceAccessConditions]          The source access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResult}      callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                       the blob information.\r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.startCopyBlob = function (sourceUri, targetContainer, targetBlob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('startCopyBlob', function (v) {\r\n    v.string(sourceUri, 'sourceUri');\r\n    v.string(targetContainer, 'targetContainer');\r\n    v.string(targetBlob, 'targetBlob');\r\n    v.containerNameIsValid(targetContainer);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var targetResourceName = createResourceName(targetContainer, targetBlob);\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  if (options.snapshotId) {\r\n    var uri = url.parse(sourceUri, true);\r\n    if (uri.query['snapshot']) {\r\n      throw new ArgumentError('options.snapshotId', 'Duplicate snapshot supplied in both the source uri and option.');\r\n    }\r\n\r\n    uri.search = undefined;\r\n    uri.query['snapshot'] = options.snapshotId;\r\n\r\n    sourceUri = url.format(uri);\r\n  }\r\n\r\n  var webResource = WebResource.put(targetResourceName)\r\n    .withHeader(HeaderConstants.COPY_SOURCE, sourceUri);\r\n\r\n  if (options.isIncrementalCopy) {\r\n    webResource.withQueryOption(QueryStringConstants.COMP, 'incrementalcopy');\r\n  }\r\n\r\n  webResource.withHeader(HeaderConstants.ACCESS_TIER, options.blobTier);\r\n  webResource.withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n  webResource.withHeader(HeaderConstants.SOURCE_LEASE_ID, options.sourceLeaseId);\r\n  webResource.addOptionalMetadataHeaders(options.metadata);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(targetContainer, targetBlob);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n\r\n      if (options.metadata) {\r\n        responseObject.blobResult.metadata = options.metadata;\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Abort a blob copy operation.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                 The destination container name.\r\n* @param {string}             blob                                      The destination blob name.\r\n* @param {string}             copyId                                    The copy operation identifier.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResponse}    callback                                  `error` will contain information  if an error occurs; \r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.abortCopyBlob = function (container, blob, copyId, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('abortCopyBlob', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COPY_ID, copyId)\r\n    .withQueryOption(QueryStringConstants.COMP, 'copy')\r\n    .withHeader(HeaderConstants.COPY_ACTION, 'abort');\r\n\r\n  webResource.withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Retrieves a shared access signature token.\r\n*\r\n* @this {BlobService}\r\n* @param {string}                   container                                           The container name.\r\n* @param {string}                   [blob]                                              The blob name.\r\n* @param {object}                   sharedAccessPolicy                                  The shared access policy.\r\n* @param {string}                   [sharedAccessPolicy.Id]                             The signed identifier.\r\n* @param {object}                   [sharedAccessPolicy.AccessPolicy.Permissions]       The permission type.\r\n* @param {date|string}              [sharedAccessPolicy.AccessPolicy.Start]             The time at which the Shared Access Signature becomes valid (The UTC value will be used).\r\n* @param {date|string}              [sharedAccessPolicy.AccessPolicy.Expiry]            The time at which the Shared Access Signature becomes expired (The UTC value will be used).\r\n* @param {string}                   [sharedAccessPolicy.AccessPolicy.IPAddressOrRange]  An IP address or a range of IP addresses from which to accept requests. When specifying a range, note that the range is inclusive.\r\n* @param {string}                   [sharedAccessPolicy.AccessPolicy.Protocols]         The protocols permitted for a request made with the account SAS. \r\n*                                                                                       Possible values are both HTTPS and HTTP (https,http) or HTTPS only (https). The default value is https,http.\r\n* @param {object}                   [headers]                                           The optional header values to set for a blob returned wth this SAS.\r\n* @param {string}                   [headers.cacheControl]                              The optional value of the Cache-Control response header to be returned when this SAS is used.\r\n* @param {string}                   [headers.contentType]                               The optional value of the Content-Type response header to be returned when this SAS is used.\r\n* @param {string}                   [headers.contentEncoding]                           The optional value of the Content-Encoding response header to be returned when this SAS is used.\r\n* @param {string}                   [headers.contentLanguage]                           The optional value of the Content-Language response header to be returned when this SAS is used.\r\n* @param {string}                   [headers.contentDisposition]                        The optional value of the Content-Disposition response header to be returned when this SAS is used.\r\n* @return {string}                                                                      The shared access signature query string. Note this string does not contain the leading \"?\".\r\n*/\r\nBlobService.prototype.generateSharedAccessSignature = function (container, blob, sharedAccessPolicy, headers) {\r\n  // check if the BlobService is able to generate a shared access signature\r\n  if (!this.storageCredentials) {\r\n    throw new ArgumentNullError('storageCredentials');\r\n  }\r\n\r\n  if (!this.storageCredentials.generateSignedQueryString) {\r\n    throw new ArgumentError('storageCredentials', SR.CANNOT_CREATE_SAS_WITHOUT_ACCOUNT_KEY);\r\n  }\r\n\r\n  // Validate container name. Blob name is optional.\r\n  validate.validateArgs('generateSharedAccessSignature', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.object(sharedAccessPolicy, 'sharedAccessPolicy');\r\n  });\r\n\r\n  var resourceType = BlobConstants.ResourceTypes.CONTAINER;\r\n  if (blob) {\r\n    validate.validateArgs('generateSharedAccessSignature', function (v) {\r\n      v.string(blob, 'blob');\r\n    });\r\n    resourceType = BlobConstants.ResourceTypes.BLOB;\r\n  }\r\n\r\n  if (sharedAccessPolicy.AccessPolicy) {\r\n    if (!azureutil.objectIsNull(sharedAccessPolicy.AccessPolicy.Start)) {\r\n      if (!_.isDate(sharedAccessPolicy.AccessPolicy.Start)) {\r\n        sharedAccessPolicy.AccessPolicy.Start = new Date(sharedAccessPolicy.AccessPolicy.Start);\r\n      }\r\n\r\n      sharedAccessPolicy.AccessPolicy.Start = azureutil.truncatedISO8061Date(sharedAccessPolicy.AccessPolicy.Start);\r\n    }\r\n\r\n    if (!azureutil.objectIsNull(sharedAccessPolicy.AccessPolicy.Expiry)) {\r\n      if (!_.isDate(sharedAccessPolicy.AccessPolicy.Expiry)) {\r\n        sharedAccessPolicy.AccessPolicy.Expiry = new Date(sharedAccessPolicy.AccessPolicy.Expiry);\r\n      }\r\n\r\n      sharedAccessPolicy.AccessPolicy.Expiry = azureutil.truncatedISO8061Date(sharedAccessPolicy.AccessPolicy.Expiry);\r\n    }\r\n  }\r\n\r\n  var resourceName = createResourceName(container, blob, true);\r\n  return this.storageCredentials.generateSignedQueryString(Constants.ServiceType.Blob, resourceName, sharedAccessPolicy, null, { headers: headers, resourceType: resourceType });\r\n};\r\n\r\n/**\r\n* Retrieves a blob or container URL.\r\n*\r\n* @param {string}                   container                The container name.\r\n* @param {string}                   [blob]                   The blob name.\r\n* @param {string}                   [sasToken]               The Shared Access Signature token.\r\n* @param {boolean}                  [primary]                A boolean representing whether to use the primary or the secondary endpoint.\r\n* @param {string}                   [snapshotId]             The snapshot identifier.\r\n* @return {string}                                           The formatted URL string.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* var sharedAccessPolicy = {\r\n*   AccessPolicy: {\r\n*     Permissions: azure.BlobUtilities.SharedAccessPermissions.READ,\r\n*     Start: startDate,\r\n*     Expiry: expiryDate\r\n*   },\r\n* };\r\n* \r\n* var sasToken = blobService.generateSharedAccessSignature(containerName, blobName, sharedAccessPolicy);\r\n* var sasUrl = blobService.getUrl(containerName, blobName, sasToken);\r\n*/\r\nBlobService.prototype.getUrl = function (container, blob, sasToken, primary, snapshotId) {\r\n  validate.validateArgs('getUrl', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n  });\r\n\r\n  var host;\r\n  if (!azureutil.objectIsNull(primary) && primary === false) {\r\n    host = this.host.secondaryHost;\r\n  } else {\r\n    host = this.host.primaryHost;\r\n  }\r\n\r\n  host = azureutil.trimPortFromUri(host);\r\n  if (host && host.lastIndexOf('/') !== (host.length - 1)) {\r\n    host = host + '/';\r\n  }\r\n\r\n  var query = qs.parse(sasToken);\r\n  if (snapshotId) {\r\n    query[QueryStringConstants.SNAPSHOT] = snapshotId;\r\n  }\r\n\r\n  var fullPath = url.format({ pathname: this._getPath(createResourceName(container, blob)), query: query });\r\n  return url.resolve(host, fullPath);\r\n};\r\n\r\n// Page blob methods\r\n\r\n/**\r\n* Creates a page blob of the specified length. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {int}                length                                        The length of the page blob in bytes.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {string}             [options.leaseId]                             The target blob lease identifier.\r\n* @param {string}             [options.blobTier]                            For page blobs on premium accounts only. Set the tier of the target blob. Refer to BlobUtilities.BlobTier.PremiumPageBlobTier.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The MD5 hash of the blob content.\r\n* @param {string}             [options.sequenceNumber]                      The blob's sequence number.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResponse}    callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise \r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createPageBlob = function (container, blob, length, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createPageBlob', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.value(length, 'length');\r\n    v.callback(callback);\r\n  });\r\n\r\n  if (length && length % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_BLOB_LENGTH);\r\n  }\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n\r\n  var webResource = WebResource.put(resourceName)\r\n    .withHeader(HeaderConstants.BLOB_TYPE, BlobConstants.BlobTypes.PAGE)\r\n    .withHeader(HeaderConstants.BLOB_CONTENT_LENGTH, length)\r\n    .withHeader(HeaderConstants.CONTENT_LENGTH, 0)\r\n    .withHeader(HeaderConstants.ACCESS_TIER, options.blobTier)\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Uploads a page blob from a stream. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                streamLength                                  The length of the stream to upload.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The download tracker objects;\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             An MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                           The default value is false for page blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.blobTier]                            For page blobs on premium accounts only. Set the tier of the target blob. Refer to BlobUtilities.BlobTier.PremiumPageBlobTier.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.createPageBlobFromStream = function (container, blob, stream, streamLength, optionsOrCallback, callback) {\r\n  return this._createBlobFromStream(container, blob, BlobConstants.BlobTypes.PAGE, stream, streamLength, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Provides a stream to write to a page blob. Assumes that the blob exists. \r\n* If it does not, please create the blob using createPageBlob before calling this method or use createWriteStreamNewPageBlob.\r\n* Please note the `Stream` returned by this API should be used with piping.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                           The default value is false for page blobs and true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {Writable}                                                        A Node.js Writable stream.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* blobService.createPageBlob(containerName, blobName, 1024, function (err) {\r\n*   // Pipe file to a blob\r\n*   var stream = fs.createReadStream(fileNameTarget).pipe(blobService.createWriteStreamToExistingPageBlob(containerName, blobName));\r\n* });\r\n*/\r\nBlobService.prototype.createWriteStreamToExistingPageBlob = function (container, blob, optionsOrCallback, callback) {\r\n  return this._createWriteStreamToBlob(container, blob, BlobConstants.BlobTypes.PAGE, 0, false, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Provides a stream to write to a page blob. Creates the blob before writing data. If the blob already exists on the service, it will be overwritten.\r\n* Please note the `Stream` returned by this API should be used with piping.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {string}             length                                        The blob length.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                           The default value is false for page blobs and true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.blobTier]                            For page blobs on premium accounts only. Set the tier of the target blob. Refer to BlobUtilities.BlobTier.PremiumPageBlobTier.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {Writable}                                                        A Node.js Writable stream.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* blobService.createPageBlob(containerName, blobName, 1024, function (err) {\r\n*   // Pipe file to a blob\r\n*   var stream = fs.createReadStream(fileNameTarget).pipe(blobService.createWriteStreamToNewPageBlob(containerName, blobName));\r\n* });\r\n*/\r\nBlobService.prototype.createWriteStreamToNewPageBlob = function (container, blob, length, optionsOrCallback, callback) {\r\n  return this._createWriteStreamToBlob(container, blob, BlobConstants.BlobTypes.PAGE, length, true, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Updates a page blob from a stream.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {Readable}           readStream                                  The Node.js Readable stream.\r\n* @param {int}                rangeStart                                  The range start.\r\n* @param {int}                rangeEnd                                    The range end.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.leaseId]                           The target blob lease identifier.\r\n* @param {bool}               [options.useTransactionalMD5]               Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.transactionalContentMD5]           An optional hash value used to ensure transactional integrity for the page. \r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                         the page information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createPagesFromStream = function (container, blob, readStream, rangeStart, rangeEnd, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createPagesFromStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  if ((rangeEnd - rangeStart) + 1 > BlobConstants.MAX_UPDATE_PAGE_SIZE) {\r\n    throw new RangeError(SR.INVALID_PAGE_RANGE_FOR_UPDATE);\r\n  }\r\n\r\n  var self = this;\r\n  if (azureutil.objectIsNull(options.transactionalContentMD5) && options.useTransactionalMD5) {\r\n    azureutil.calculateMD5(readStream, BlobConstants.MAX_UPDATE_PAGE_SIZE, options, function (internalBuff, contentMD5) {\r\n      options.transactionalContentMD5 = contentMD5;\r\n      self._createPages(container, blob, internalBuff, null /* stream */, rangeStart, rangeEnd, options, callback);\r\n    });\r\n  } else {\r\n    self._createPages(container, blob, null /* text */, readStream, rangeStart, rangeEnd, options, callback);\r\n  }\r\n};\r\n\r\n/**\r\n* Lists page ranges. Lists all of the page ranges by default, or only the page ranges over a specific range of bytes if rangeStart and rangeEnd are specified.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {int}                [options.rangeStart]                        The range start.\r\n* @param {int}                [options.rangeEnd]                          The range end.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The target blob lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `result` will contain\r\n*                                                                         the page ranges information, see `[Range]{@link Range}` for detailed information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listPageRanges = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('listPageRanges', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.get(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'pagelist')\r\n    .withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n\r\n  if (options.rangeStart && options.rangeStart % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_START_OFFSET);\r\n  }\r\n\r\n  if (options.rangeEnd && (options.rangeEnd + 1) % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_END_OFFSET);\r\n  }\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.pageRanges = null;\r\n    if (!responseObject.error) {\r\n      responseObject.pageRanges = [];\r\n\r\n      var pageRanges = [];\r\n      if (responseObject.response.body.PageList.PageRange) {\r\n        pageRanges = responseObject.response.body.PageList.PageRange;\r\n\r\n        if (!_.isArray(pageRanges)) {\r\n          pageRanges = [pageRanges];\r\n        }\r\n      }\r\n\r\n      pageRanges.forEach(function (pageRange) {\r\n        var range = {\r\n          start: parseInt(pageRange.Start, 10),\r\n          end: parseInt(pageRange.End, 10)\r\n        };\r\n\r\n        responseObject.pageRanges.push(range);\r\n      });\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.pageRanges, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Gets page ranges that have been updated or cleared since the snapshot specified by `previousSnapshotTime` was taken. Gets all of the page ranges by default, or only the page ranges over a specific range of bytes if rangeStart and rangeEnd are specified.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {string}             previousSnapshotTime                        The previous snapshot time for comparison. Must be prior to `options.snapshotId` if it's provided.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {int}                [options.rangeStart]                        The range start.\r\n* @param {int}                [options.rangeEnd]                          The range end.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier. \r\n* @param {string}             [options.leaseId]                           The target blob lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `result` will contain\r\n*                                                                         the page ranges diff information, see `[RangeDiff]{@link RangeDiff}` for detailed information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.getPageRangesDiff = function (container, blob, previousSnapshotTime, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('getPageRangesDiff', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.get(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'pagelist')\r\n    .withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId)\r\n    .withQueryOption(QueryStringConstants.PREV_SNAPSHOT, previousSnapshotTime);\r\n\r\n  if (options.rangeStart && options.rangeStart % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_START_OFFSET);\r\n  }\r\n\r\n  if (options.rangeEnd && (options.rangeEnd + 1) % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_END_OFFSET);\r\n  }\r\n\r\n  if (options.rangeEnd && (options.rangeEnd + 1) % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_END_OFFSET);\r\n  }\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.pageRangesDiff = null;\r\n    if (!responseObject.error) {\r\n      responseObject.pageRangesDiff = [];\r\n\r\n      if (responseObject.response.body.PageList.PageRange) {\r\n        var updatedPageRanges = responseObject.response.body.PageList.PageRange;\r\n\r\n        if (!_.isArray(updatedPageRanges)) {\r\n          updatedPageRanges = [updatedPageRanges];\r\n        }\r\n\r\n        updatedPageRanges.forEach(function (pageRange) {\r\n          var range = {\r\n            start: parseInt(pageRange.Start, 10),\r\n            end: parseInt(pageRange.End, 10),\r\n            isCleared: false\r\n          };\r\n\r\n          responseObject.pageRangesDiff.push(range);\r\n        });\r\n      }\r\n\r\n      if (responseObject.response.body.PageList.ClearRange) {\r\n        var clearedPageRanges = responseObject.response.body.PageList.ClearRange;\r\n\r\n        if (!_.isArray(clearedPageRanges)) {\r\n          clearedPageRanges = [clearedPageRanges];\r\n        }\r\n\r\n        clearedPageRanges.forEach(function (pageRange) {\r\n          var range = {\r\n            start: parseInt(pageRange.Start, 10),\r\n            end: parseInt(pageRange.End, 10),\r\n            isCleared: true\r\n          };\r\n\r\n          responseObject.pageRangesDiff.push(range);\r\n        });\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.pageRangesDiff, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Clears a range of pages.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {int}                rangeStart                                  The range start.\r\n* @param {int}                rangeEnd                                    The range end.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.leaseId]                           The target blob lease identifier.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResponse}    callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise \r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.clearPageRange = function (container, blob, rangeStart, rangeEnd, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('clearPageRange', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var request = this._updatePageBlobPagesImpl(container, blob, rangeStart, rangeEnd, BlobConstants.PageWriteOptions.CLEAR, options);\r\n\r\n  var self = this;\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  self.performRequest(request, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Resizes a page blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}               container                                   The container name.\r\n* @param {string}               blob                                        The blob name.\r\n* @param {String}               size                                        The size of the page blob, in bytes.\r\n* @param {object}               [options]                                   The request options.\r\n* @param {string}               [options.leaseId]                           The blob lease identifier.\r\n* @param {AccessConditions}     [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}         [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                  [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                  [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                  [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}               [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}                 [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the page information.\r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.resizePageBlob = function (container, blob, size, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('resizePageBlob', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'properties')\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  if (size && size % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_BLOB_LENGTH);\r\n  }\r\n\r\n  webResource.withHeader(HeaderConstants.BLOB_CONTENT_LENGTH, size);\r\n\r\n  this._setBlobPropertiesHelper({\r\n    webResource: webResource,\r\n    options: options,\r\n    container: container,\r\n    blob: blob,\r\n    callback: callback\r\n  });\r\n\r\n};\r\n\r\n/**\r\n* Sets the page blob's sequence number.\r\n*\r\n* @this {BlobService}\r\n* @param {string}               container                                   The container name.\r\n* @param {string}               blob                                        The blob name.\r\n* @param {SequenceNumberAction} sequenceNumberAction                        A value indicating the operation to perform on the sequence number. \r\n*                                                                           The allowed values are defined in azure.BlobUtilities.SequenceNumberAction.\r\n* @param {string}               sequenceNumber                              The sequence number.  The value of the sequence number must be between 0 and 2^63 - 1.\r\n*                                                                           Set this parameter to null if this operation is an increment action.\r\n* @param {object}               [options]                                   The request options.\r\n* @param {AccessConditions}     [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}         [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                  [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                  [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                  [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}               [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}                 [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the page information.\r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.setPageBlobSequenceNumber = function (container, blob, sequenceNumberAction, sequenceNumber, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('setPageBlobSequenceNumber', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  if (sequenceNumberAction === BlobUtilities.SequenceNumberAction.INCREMENT) {\r\n    if (!azureutil.objectIsNull(sequenceNumber)) {\r\n      throw new ArgumentError('sequenceNumber', SR.BLOB_INVALID_SEQUENCE_NUMBER);\r\n    }\r\n  } else {\r\n    if (azureutil.objectIsNull(sequenceNumber)) {\r\n      throw new ArgumentNullError('sequenceNumber', util.format(SR.ARGUMENT_NULL_OR_EMPTY, 'sequenceNumber'));\r\n    }\r\n  }\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'properties')\r\n    .withHeader(HeaderConstants.SEQUENCE_NUMBER_ACTION, sequenceNumberAction);\r\n\r\n  if (sequenceNumberAction !== BlobUtilities.SequenceNumberAction.INCREMENT) {\r\n    webResource.withHeader(HeaderConstants.SEQUENCE_NUMBER, sequenceNumber);\r\n  }\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n// Block blob methods\r\n\r\n/**\r\n* Uploads a block blob from a stream. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                streamLength                                  The length of the stream to upload.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The download tracker objects.\r\n* @param {int}                [options.blockSize]                           The size of each block. Maximum is 100MB.\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.createBlockBlobFromStream = function (container, blob, stream, streamLength, optionsOrCallback, callback) {\r\n  return this._createBlobFromStream(container, blob, BlobConstants.BlobTypes.BLOCK, stream, streamLength, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Uploads a block blob from a text string. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {string|object}      text                                          The blob text, as a string or in a Buffer.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createBlockBlobFromText = function (container, blob, text, optionsOrCallback, callback) {\r\n  return this._createBlobFromText(container, blob, BlobConstants.BlobTypes.BLOCK, text, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Provides a stream to write to a block blob. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* Please note the `Stream` returned by this API should be used with piping.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {int}                [options.blockSize]                           The size of each block. Maximum is 100MB.\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                           The default value is false for page blobs and true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {Writable}                                                        A Node.js Writable stream.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* var stream = fs.createReadStream(fileNameTarget).pipe(blobService.createWriteStreamToBlockBlob(containerName, blobName, { blockIdPrefix: 'block' }));\r\n*/\r\nBlobService.prototype.createWriteStreamToBlockBlob = function (container, blob, optionsOrCallback, callback) {\r\n  return this._createWriteStreamToBlob(container, blob, BlobConstants.BlobTypes.BLOCK, 0, false, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Creates a new block to be committed as part of a blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             blockId                                   The block identifier.\r\n* @param {string}             container                                 The container name.\r\n* @param {string}             blob                                      The blob name.\r\n* @param {Readable}           readStream                                The Node.js Readable stream.\r\n* @param {int}                streamLength                              The stream length.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {bool}               [options.useTransactionalMD5]             Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]         An MD5 hash of the block content. This hash is used to verify the integrity of the block during transport.\r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResponse}    callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise \r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createBlockFromStream = function (blockId, container, blob, readStream, streamLength, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createBlockFromStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.exists(readStream, 'readStream');\r\n    v.value(streamLength, 'streamLength');\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  if (streamLength > BlobConstants.MAX_BLOCK_BLOB_BLOCK_SIZE) {\r\n    throw new RangeError(SR.INVALID_STREAM_LENGTH);\r\n  } else {\r\n    this._createBlock(blockId, container, blob, null, readStream, streamLength, options, callback);\r\n  }\r\n};\r\n\r\n/**\r\n* Creates a new block to be committed as part of a blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             blockId                                   The block identifier.\r\n* @param {string}             container                                 The container name.\r\n* @param {string}             blob                                      The blob name.\r\n* @param {string|buffer}      content                                   The block content.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {bool}               [options.useTransactionalMD5]             Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]         An MD5 hash of the block content. This hash is used to verify the integrity of the block during transport. \r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResponse}    callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise \r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createBlockFromText = function (blockId, container, blob, content, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createBlockFromText', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var contentLength = (Buffer.isBuffer(content) ? content.length : Buffer.byteLength(content));\r\n\r\n  if (contentLength > BlobConstants.MAX_BLOCK_BLOB_BLOCK_SIZE) {\r\n    throw new RangeError(SR.INVALID_TEXT_LENGTH);\r\n  } else {\r\n    this._createBlock(blockId, container, blob, content, null, contentLength, options, callback);\r\n  }\r\n};\r\n\r\n/**\r\n* Creates a new block to be committed as part of a blob from an URL of an Azure blob or file.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             blockId                                   The block identifier.\r\n* @param {string}             container                                 The container name.\r\n* @param {string}             blob                                      The blob name.\r\n* @param {string}             sourceURL                                 The URL of the source data.\r\n*                                                                       It can point to any Azure Blob or File, that is either public or has a shared access signature attached.\r\n* @param {int}                sourceRangeStart                          The start of the range of bytes(inclusive) that has to be taken from the copy source.\r\n* @param {int}                sourceRangeEnd                            The end of the range of bytes(inclusive) that has to be taken from the copy source.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]         An MD5 hash of the block content. This hash is used to verify the integrity of the block during transport. \r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResponse}    callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise \r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createBlockFromURL = function (blockId, container, blob, sourceURL, sourceRangeStart, sourceRangeEnd, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createBlockFromURL', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.string(sourceURL, 'sourceURL');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var resourceName = createResourceName(container, blob);\r\n  \r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'block')\r\n    .withQueryOption(QueryStringConstants.BLOCK_ID, Buffer.from(blockId).toString('base64'))\r\n    .withHeader(HeaderConstants.COPY_SOURCE, sourceURL);\r\n\r\n  options.sourceRangeStart = sourceRangeStart;\r\n  options.sourceRangeEnd = sourceRangeEnd;\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Creates a new block to be committed as part of a block blob.\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             blockId                                   The block identifier.\r\n* @param {string}             container                                 The container name.\r\n* @param {string}             blob                                      The blob name.\r\n* @param {string|buffer}      content                                   The block content.\r\n* @param {Stream}             stream                                    The stream to the data to store.\r\n* @param {int}                length                                    The length of the stream or text to upload.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {bool}               [options.useTransactionalMD5]             Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]         An MD5 hash of the block content. This hash is used to verify the integrity of the block during transport.\r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResponse}    callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise \r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._createBlock = function (blockId, container, blob, content, stream, length, options, callback) {\r\n  var resourceName = createResourceName(container, blob);\r\n\r\n  var self = this;\r\n  var startCreateBlock = function () {\r\n    var webResource = WebResource.put(resourceName)\r\n      .withQueryOption(QueryStringConstants.COMP, 'block')\r\n      .withQueryOption(QueryStringConstants.BLOCK_ID, Buffer.from(blockId).toString('base64'))\r\n      .withHeader(HeaderConstants.CONTENT_LENGTH, length);\r\n\r\n    BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n    var processResponseCallback = function (responseObject, next) {\r\n      var finalCallback = function (returnObject) {\r\n        callback(returnObject.error, returnObject.response);\r\n      };\r\n\r\n      next(responseObject, finalCallback);\r\n    };\r\n\r\n    if (!azureutil.objectIsNull(content)) {\r\n      self.performRequest(webResource, content, options, processResponseCallback);\r\n    } else {\r\n      self.performRequestOutputStream(webResource, stream, options, processResponseCallback);\r\n    }\r\n  };\r\n\r\n  if (azureutil.objectIsNull(options.transactionalContentMD5) && options.useTransactionalMD5) {\r\n    if (!azureutil.objectIsNull(content)) {\r\n      options.transactionalContentMD5 = azureutil.getContentMd5(content);\r\n      startCreateBlock();\r\n    } else {\r\n      azureutil.calculateMD5(stream, length, options, function (internalBuff, contentMD5) {\r\n        options.transactionalContentMD5 = contentMD5;\r\n        content = internalBuff;\r\n        length = internalBuff.length;\r\n        startCreateBlock();\r\n      });\r\n    }\r\n  } else {\r\n    startCreateBlock();\r\n  }\r\n};\r\n\r\n/**\r\n* Writes a blob by specifying the list of block IDs that make up the blob.\r\n* In order to be written as part of a blob, a block must have been successfully written to the server in a prior\r\n* createBlock operation.\r\n* Note: If no valid list is specified in the blockList parameter, blob would be updated with empty content,\r\n* i.e. existing blocks in the blob will be removed, this behavior is kept for backward compatibility consideration.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {object}             blockList                                     The wrapper for block ID list contains block IDs that make up the blob.\r\n*                                                                           Three kinds of list are provided, please choose one to use according to requirement.\r\n*                                                                           For more background knowledge, please refer to https://docs.microsoft.com/en-us/rest/api/storageservices/put-block-list\r\n* @param {string[]}           [blockList.LatestBlocks]                      The list contains block IDs that make up the blob sequentially.\r\n*                                                                           All the block IDs in this list will be specified within Latest element.\r\n*                                                                           Choose this list to contain block IDs indicates that the Blob service should first search\r\n*                                                                           the uncommitted block list, and then the committed block list for the named block.\r\n* @param {string[]}           [blockList.CommittedBlocks]                   The list contains block IDs that make up the blob sequentially.\r\n*                                                                           All the block IDs in this list will be specified within Committed element.\r\n*                                                                           Choose this list to contain block IDs indicates that the Blob service should only search\r\n*                                                                           the committed block list for the named block.\r\n* @param {string[]}           [blockList.UncommittedBlocks]                 The list contains block IDs that make up the blob sequentially.\r\n*                                                                           All the block IDs in this list will be specified within Uncommitted element.\r\n*                                                                           Choose this list to contain block IDs indicates that the Blob service should only search\r\n*                                                                           the uncommitted block list for the named block.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {string}             [options.leaseId]                             The target blob lease identifier.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* blobService.createBlockFromText(\"sampleBlockName\", containerName, blobName, \"sampleBlockContent\", function(error) {\r\n*   assert.equal(error, null);\r\n*   // In this example, LatestBlocks is used, we hope the Blob service first search\r\n*   // the uncommitted block list, and then the committed block list for the named block \"sampleBlockName\",\r\n*   // and thus make sure the block is with latest content.\r\n*   blobService.commitBlocks(containerName, blobName, { LatestBlocks: [\"sampleBlockName\"] }, function(error) {\r\n*     assert.equal(error, null);\r\n*   });\r\n* });\r\n*\r\n */\r\nBlobService.prototype.commitBlocks = function (container, blob, blockList, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('commitBlocks', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.object(blockList, 'blockList');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var blockListXml = BlockListResult.serialize(blockList);\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'blocklist')\r\n    .withHeader(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(blockListXml))\r\n    .withBody(blockListXml);\r\n\r\n  BlobResult.setPropertiesFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = new BlobResult(container, blob);\r\n    responseObject.blobResult.list = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n      responseObject.blobResult.list = blockList;\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, webResource.body, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Retrieves the list of blocks that have been uploaded as part of a block blob.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {BlockListFilter}    blocklisttype                               The type of block list to retrieve.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.snapshotId]                        The source blob snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The target blob lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information\r\n*                                                                         if an error occurs; otherwise `result` will contain\r\n*                                                                         the blocklist information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.listBlocks = function (container, blob, blocklisttype, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('listBlocks', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.get(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'blocklist')\r\n    .withQueryOption(QueryStringConstants.BLOCK_LIST_TYPE, blocklisttype)\r\n    .withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n\r\n  options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blockListResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blockListResult = BlockListResult.parse(responseObject.response.body.BlockList);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blockListResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Generate a random block id prefix\r\n*/\r\nBlobService.prototype.generateBlockIdPrefix = function () {\r\n  var prefix = Math.floor(Math.random() * 0x100000000).toString(16);\r\n  return azureutil.zeroPaddingString(prefix, 8);\r\n};\r\n\r\n/**\r\n* Get a block id according to prefix and block number\r\n*/\r\nBlobService.prototype.getBlockId = function (prefix, number) {\r\n  return prefix + '-' + azureutil.zeroPaddingString(number, 6);\r\n};\r\n\r\n// Append blob methods\r\n\r\n/**\r\n* Creates an empty append blob. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {string}             [options.leaseId]                             The target blob lease identifier.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResponse}    callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise \r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createOrReplaceAppendBlob = function (container, blob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('createOrReplaceAppendBlob', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n\r\n  var webResource = WebResource.put(resourceName)\r\n    .withHeader(HeaderConstants.BLOB_TYPE, BlobConstants.BlobTypes.APPEND)\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId)\r\n    .withHeader(HeaderConstants.CONTENT_LENGTH, 0);\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Uploads an append blob from a stream. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* If you want to append data to an already existing blob, please look at appendFromStream.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                streamLength                                  The length of the stream to upload.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The download tracker objects.\r\n* @param {string}             [options.leaseId]                             The lease identifier. \r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.createAppendBlobFromStream = function (container, blob, stream, streamLength, optionsOrCallback, callback) {\r\n  return this._createBlobFromStream(container, blob, BlobConstants.BlobTypes.APPEND, stream, streamLength, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Uploads an append blob from a text string. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* If you want to append data to an already existing blob, please look at appendFromText.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {string|object}      text                                          The blob text, as a string or in a Buffer.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {string}             [options.leaseId]                             The lease identifier. \r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.createAppendBlobFromText = function (container, blob, text, optionsOrCallback, callback) {\r\n  return this._createBlobFromText(container, blob, BlobConstants.BlobTypes.APPEND, text, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Provides a stream to write to a new append blob. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* Please note the `Stream` returned by this API should be used with piping.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                           The default value is false for page blobs and true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResponse}    callback                                      The callback function.\r\n* @return {Writable}                                                        A Node.js Writable stream.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* var stream = fs.createReadStream(fileNameTarget).pipe(blobService.createWriteStreamToAppendBlob(containerName, blobName));\r\n*/\r\nBlobService.prototype.createWriteStreamToNewAppendBlob = function (container, blob, optionsOrCallback, callback) {\r\n  return this._createWriteStreamToBlob(container, blob, BlobConstants.BlobTypes.APPEND, 0, true, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Provides a stream to write to an existing append blob. Assumes that the blob exists. \r\n* If it does not, please create the blob using createAppendBlob before calling this method or use createWriteStreamToNewAppendBlob.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* Please note the `Stream` returned by this API should be used with piping.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                           The default value is false for page blobs and true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResponse}    callback                                      The callback function.\r\n* @return {Writable}                                                        A Node.js Writable stream.\r\n* @example\r\n* var azure = require('azure-storage');\r\n* var blobService = azure.createBlobService();\r\n* var stream = fs.createReadStream(fileNameTarget).pipe(blobService.createWriteStreamToAppendBlob(containerName, blobName));\r\n*/\r\nBlobService.prototype.createWriteStreamToExistingAppendBlob = function (container, blob, optionsOrCallback, callback) {\r\n  return this._createWriteStreamToBlob(container, blob, BlobConstants.BlobTypes.APPEND, 0, false, optionsOrCallback, callback);\r\n};\r\n\r\n/**\r\n* Appends to an append blob from a stream. Assumes the blob already exists on the service.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                streamLength                                  The length of the stream to upload.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The download tracker objects.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype.appendFromStream = function (container, blob, stream, streamLength, optionsOrCallback, callback) {\r\n  var options;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n\r\n  validate.validateArgs('appendFromStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.exists(stream, 'stream');\r\n    v.value(streamLength, 'streamLength');\r\n    v.callback(callback);\r\n  });\r\n\r\n  return this._uploadBlobFromStream(false, container, blob, BlobConstants.BlobTypes.APPEND, stream, streamLength, options, callback);\r\n};\r\n\r\n/**\r\n* Appends to an append blob from a text string. Assumes the blob already exists on the service.\r\n* This API should be used strictly in a single writer scenario because the API internally uses the append-offset conditional header to avoid duplicate blocks.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {string|object}      text                                          The blob text, as a string or in a Buffer.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                           the blob information.\r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.appendFromText = function (container, blob, text, optionsOrCallback, callback) {\r\n  return this._uploadBlobFromText(false, container, blob, BlobConstants.BlobTypes.APPEND, text, optionsOrCallback, callback);\r\n};\r\n\r\n\r\n/**\r\n* Creates a new block from a read stream to be appended to an append blob.\r\n* If the sequence of data to be appended is important, please use this API strictly in a single writer.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* If the sequence of data to be appended is not important, this API can be used in parallel,\r\n* in this case, options.appendPosition can be left without settings.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                 The container name.\r\n* @param {string}             blob                                      The blob name.\r\n* @param {Readable}           readStream                                The Node.js Readable stream.\r\n* @param {int}                streamLength                              The stream length.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]  Specifies whether to absorb the conditional error on retry.\r\n* @param {int}                [options.maxBlobSize]                     The max length in bytes allowed for the append blob to grow to.\r\n* @param {int}                [options.appendPosition]                  The number indicating the byte offset to check for. The append will succeed only if the end position of the blob is equal to this number.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]         An MD5 hash of the block content. This hash is used to verify the integrity of the block during transport.\r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResult}      callback                                  `error` will contain information\r\n*                                                                      if an error occurs; otherwise `[result]{@link BlobResult}` will contain\r\n*                                                                      the blob information.\r\n*                                                                      `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.appendBlockFromStream = function (container, blob, readStream, streamLength, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('appendBlockFromStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.exists(readStream, 'readStream');\r\n    v.value(streamLength, 'streamLength');\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  if (streamLength > BlobConstants.MAX_APPEND_BLOB_BLOCK_SIZE) {\r\n    throw new RangeError(SR.INVALID_STREAM_LENGTH);\r\n  } else {\r\n    this._appendBlock(container, blob, null, readStream, streamLength, options, callback);\r\n  }\r\n};\r\n\r\n/**\r\n* Creates a new block from a text to be appended to an append blob.\r\n* If the sequence of data to be appended is important, please use this API strictly in a single writer.\r\n* If you are guaranteed to have a single writer scenario, please look at options.absorbConditionalErrorsOnRetry and see if setting this flag to true is acceptable for you.\r\n* If the sequence of data to be appended is not important, this API can be used in parallel,\r\n* in this case, options.appendPosition can be left without settings.\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                 The container name.\r\n* @param {string}             blob                                      The blob name.\r\n* @param {string|object}      content                                   The block text, as a string or in a Buffer.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]  Specifies whether to absorb the conditional error on retry.\r\n* @param {int}                [options.maxBlobSize]                     The max length in bytes allowed for the append blob to grow to.\r\n* @param {int}                [options.appendPosition]                  The number indicating the byte offset to check for. The append will succeed only if the end position of the blob is equal to this number.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]         An MD5 hash of the block content. This hash is used to verify the integrity of the block during transport.\r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResponse}    callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise \r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype.appendBlockFromText = function (container, blob, content, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('appendBlockFromText', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var contentLength = (Buffer.isBuffer(content) ? content.length : Buffer.byteLength(content));\r\n  if (contentLength > BlobConstants.MAX_APPEND_BLOB_BLOCK_SIZE) {\r\n    throw new RangeError(SR.INVALID_TEXT_LENGTH);\r\n  } else {\r\n    this._appendBlock(container, blob, content, null, contentLength, options, callback);\r\n  }\r\n};\r\n\r\n// Private methods\r\n\r\n/**\r\n* Creates a new blob from a stream. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n*\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {BlobType}           blobType                                      The blob type.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                streamLength                                  The length of the stream to upload.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The upload tracker objects.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry. (For append blob only)\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id. (For block blob only)\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.blobTier]                            For page blobs on premium accounts only. Set the tier of the target blob. Refer to BlobUtilities.BlobTier.PremiumPageBlobTier.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      The callback function.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype._createBlobFromStream = function (container, blob, blobType, stream, streamLength, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('_createBlobFromStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.blobTypeIsValid(blobType);\r\n    v.exists(stream, 'stream');\r\n    v.value(streamLength, 'streamLength');\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var self = this;\r\n  var creationCallback = function (createError, createBlob, createResponse) {\r\n    if (createError) {\r\n      callback(createError, createBlob, createResponse);\r\n    } else {\r\n      self._uploadBlobFromStream(true, container, blob, blobType, stream, streamLength, options, callback);\r\n    }\r\n  };\r\n\r\n  this._createBlob(container, blob, blobType, streamLength, options, creationCallback);\r\n\r\n  return options.speedSummary;\r\n};\r\n\r\n/**\r\n* Uploads a block blob or an append blob from a text string. If the blob already exists on the service, it will be overwritten.\r\n* To avoid overwriting and instead throw an error if the blob exists, please pass in an accessConditions parameter in the options object.\r\n*\r\n* @ignore\r\n* \r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {BlobType}           blobType                                      The blob type.\r\n* @param {string|buffer}      content                                       The blob text, as a string or in a Buffer.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry. (For append blob only)\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `result` will contain\r\n*                                                                           information about the blob.\r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._createBlobFromText = function (container, blob, blobType, content, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('_createBlobFromText', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.blobTypeIsValid(blobType);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var self = this;\r\n  var creationCallback = function (createError, createBlob, createResponse) {\r\n    if (createError) {\r\n      callback(createError, createBlob, createResponse);\r\n    } else {\r\n      self._uploadBlobFromText(true, container, blob, blobType, content, options, callback);\r\n    }\r\n  };\r\n\r\n  var contentLength = azureutil.objectIsNull(content) ? 0 : ((Buffer.isBuffer(content) ? content.length : Buffer.byteLength(content)));\r\n  this._createBlob(container, blob, blobType, contentLength, options, creationCallback);\r\n\r\n  return options.speedSummary;\r\n};\r\n\r\n/**\r\n* Provides a stream to write to a block blob or an append blob.\r\n*\r\n* @ignore\r\n* \r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {BlobType}           blobType                                      The blob type.\r\n* @param {int}                length                                        The blob length.\r\n* @param {bool}               createNewBlob                                 Specifies whether create a new blob.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry. (For append blob only)\r\n* @param {string}             [options.blockSize]                           The size of each block. Maximum is 100MB. (For block blob only)\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id. (For block blob only)\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. \r\n*                                                                           The default value is false for page blobs and true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.blobTier]                            For page blobs on premium accounts only. Set the tier of the target blob. Refer to BlobUtilities.BlobTier.PremiumPageBlobTier.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResponse}    callback                                      The callback function.\r\n* @return {Writable}                                                        A Node.js Writable stream.\r\n*/\r\nBlobService.prototype._createWriteStreamToBlob = function (container, blob, blobType, length, createNewBlob, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('_createWriteStreamToBlob', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.blobTypeIsValid(blobType);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n\r\n  var sizeLimitation;\r\n  if (blobType === BlobConstants.BlobTypes.BLOCK) {\r\n    // default to true, unless explicitly set to false\r\n    options.storeBlobContentMD5 = options.storeBlobContentMD5 === false ? false : true;\r\n    sizeLimitation = options.blockSize || BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n  } else if (blobType == BlobConstants.BlobTypes.PAGE) {\r\n    sizeLimitation = BlobConstants.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES;\r\n  } else if (blobType == BlobConstants.BlobTypes.APPEND) {\r\n    sizeLimitation = BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n  }\r\n\r\n  var stream = new ChunkStream({ calcContentMd5: options.storeBlobContentMD5 });\r\n  stream._highWaterMark = sizeLimitation;\r\n\r\n  stream.pause(); //Immediately pause the stream in order to wait for the destination to getting ready\r\n\r\n  var self = this;\r\n  var createCallback = function (createError, createBlob, createResponse) {\r\n    if (createError) {\r\n      if (callback) {\r\n        callback(createError, createBlob, createResponse);\r\n      }\r\n    } else {\r\n      self._uploadBlobFromStream(createNewBlob, container, blob, blobType, stream, null, options, function (error, blob, response) {\r\n        if (error) {\r\n          stream.emit('error', error);\r\n        }\r\n\r\n        if (callback) {\r\n          callback(error, blob, response);\r\n        }\r\n      });\r\n    }\r\n  };\r\n\r\n  if (createNewBlob === true) {\r\n    this._createBlob(container, blob, blobType, length, options, createCallback);\r\n  } else {\r\n    createCallback();\r\n  }\r\n\r\n  return stream;\r\n};\r\n\r\n/**\r\n* Upload blob content from a stream. Assumes the blob already exists.\r\n*\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {bool}               isNewBlob                                     Specifies whether the blob is newly created.\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {BlobType}           blobType                                      The blob type.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                streamLength                                  The length of the stream to upload.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The upload tracker objects.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry. (For append blob only)\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id. (For block blob only)\r\n* @param {int}                [options.blockSize]                           The size of each block. Maximum is 100MB. (For block blob only)\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      The callback function.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype._uploadBlobFromStream = function (isNewBlob, container, blob, blobType, stream, streamLength, optionsOrCallback, callback) {\r\n  var options;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n  options.speedSummary = options.speedSummary || new SpeedSummary(blob);\r\n\r\n  if (blobType === BlobConstants.BlobTypes.BLOCK) {\r\n    // default to true, unless explicitly set to false\r\n    options.storeBlobContentMD5 = options.storeBlobContentMD5 === false ? false : true;\r\n  }\r\n\r\n  stream.pause();\r\n\r\n  var self = this;\r\n  var startUpload = function () {\r\n    var putBlockBlobFromStream = function () {\r\n      if (streamLength > 0 && azureutil.objectIsNull(azureutil.tryGetValueChain(options, ['contentSettings', 'contentMD5'], null)) && options.storeBlobContentMD5) {\r\n        azureutil.calculateMD5(stream, Math.min(self.singleBlobPutThresholdInBytes, streamLength), options, function (internalBuff, contentMD5) {\r\n          azureutil.setObjectInnerPropertyValue(options, ['contentSettings', 'contentMD5'], contentMD5);\r\n          self._putBlockBlob(container, blob, internalBuff, null, internalBuff.length, options, callback);\r\n        });\r\n        stream.resume();\r\n      } else {\r\n        // Stream will resume when it has a pipe destination or a 'data' listener\r\n        self._putBlockBlob(container, blob, null, stream, streamLength, options, callback);\r\n      }\r\n    };\r\n\r\n    if (streamLength === null || streamLength >= self.singleBlobPutThresholdInBytes || blobType !== BlobConstants.BlobTypes.BLOCK) {\r\n      var chunkStream = new ChunkStreamWithStream(stream, { calcContentMd5: options.storeBlobContentMD5 });\r\n      self._uploadContentFromChunkStream(container, blob, blobType, chunkStream, streamLength, options, callback);\r\n    } else {\r\n      putBlockBlobFromStream();\r\n    }\r\n  };\r\n\r\n  if (!isNewBlob) {\r\n    if (options.storeBlobContentMD5 && blobType !== BlobConstants.BlobTypes.BLOCK) {\r\n      throw new Error(SR.MD5_NOT_POSSIBLE);\r\n    }\r\n\r\n    if (blobType === BlobConstants.BlobTypes.APPEND || options.accessConditions) {\r\n      // Do a getBlobProperties right at the beginning for existing blobs and use the user passed in access conditions. \r\n      // So any pre-condition failure on the first block (in a strictly single writer scenario) is caught.\r\n      // This call also helps us get the append position to append to if the user hasn’t specified an access condition.\r\n      this.getBlobProperties(container, blob, options, function (error, properties, response) {\r\n        if (error && !(options.accessConditions && options.accessConditions.EtagNonMatch === '*' && response.statusCode === 400)) {\r\n          callback(error);\r\n        } else {\r\n          if (blobType === BlobConstants.BlobTypes.APPEND) {\r\n            options.appendPosition = properties.contentLength;\r\n          }\r\n\r\n          startUpload();\r\n        }\r\n      });\r\n    } else {\r\n      startUpload();\r\n    }\r\n  } else {\r\n    startUpload();\r\n  }\r\n\r\n  return options.speedSummary;\r\n};\r\n\r\n/**\r\n* Upload blob content from a text. Assumes the blob already exists.\r\n*\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {bool}               isNewBlob                                     Specifies whether the blob is newly created.\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {BlobType}           blobType                                      The blob type.\r\n* @param (string)             content                                       The blob text, as a string or in a Buffer.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The upload tracker objects.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry. (For append blob only)\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id. (For block blob only)\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      The callback function.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype._uploadBlobFromText = function (isNewBlob, container, blob, blobType, content, optionsOrCallback, callback) {\r\n  var options;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n  options.speedSummary = options.speedSummary || new SpeedSummary(blob);\r\n  options[HeaderConstants.CONTENT_TYPE] = (options.contentSettings && options.contentSettings.contentType) || 'text/plain;charset=\"utf-8\"';\r\n\r\n  var self = this;\r\n  var startUpload = function () {\r\n    var operationFunc;\r\n    var length = azureutil.objectIsNull(content) ? 0 : (Buffer.isBuffer(content) ? content.length : Buffer.byteLength(content));\r\n\r\n    if (blobType === BlobConstants.BlobTypes.BLOCK) {\r\n      // default to true, unless explicitly set to false\r\n      options.storeBlobContentMD5 = options.storeBlobContentMD5 === false ? false : true;\r\n      operationFunc = self._putBlockBlob;\r\n\r\n      if (length > BlobConstants.MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES) {\r\n        throw new RangeError(SR.INVALID_BLOB_LENGTH);\r\n      }\r\n    } else if (blobType === BlobConstants.BlobTypes.APPEND) {\r\n      operationFunc = self._appendBlock;\r\n\r\n      if (length > BlobConstants.MAX_APPEND_BLOB_BLOCK_SIZE) {\r\n        throw new RangeError(SR.INVALID_TEXT_LENGTH);\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (error, blobResult, response) {\r\n      if (blobType !== BlobConstants.BlobTypes.BLOCK) {\r\n        self.setBlobProperties(container, blob, options.contentSettings, options, function (error, blob, response) {\r\n          blob = extend(false, blob, blobResult);\r\n          callback(error, blob, response);\r\n        });\r\n      } else {\r\n        callback(error, blobResult, response);\r\n      }\r\n    };\r\n\r\n    operationFunc.call(self, container, blob, content, null, length, options, finalCallback);\r\n  };\r\n\r\n  if (!isNewBlob) {\r\n    if (options.storeBlobContentMD5 && blobType !== BlobConstants.BlobTypes.BLOCK) {\r\n      throw new Error(SR.MD5_NOT_POSSIBLE);\r\n    }\r\n\r\n    if (blobType === BlobConstants.BlobTypes.APPEND || options.accessConditions) {\r\n      // Do a getBlobProperties right at the beginning for existing blobs and use the user passed in access conditions. \r\n      // So any pre-condition failure on the first block (in a strictly single writer scenario) is caught.\r\n      // This call also helps us get the append position to append to if the user hasn’t specified an access condition.\r\n      this.getBlobProperties(container, blob, options, function (error, properties) {\r\n        if (error) {\r\n          callback(error);\r\n        } else {\r\n          if (blobType === BlobConstants.BlobTypes.APPEND) {\r\n            options.appendPosition = properties.contentLength;\r\n          }\r\n\r\n          startUpload();\r\n        }\r\n      });\r\n    }\r\n  } else {\r\n    if (!azureutil.objectIsNull(content) && azureutil.objectIsNull(azureutil.tryGetValueChain(options, ['contentSettings', 'contentMD5'], null)) && options.storeBlobContentMD5) {\r\n      azureutil.setObjectInnerPropertyValue(options, ['contentSettings', 'contentMD5'], azureutil.getContentMd5(content));\r\n    }\r\n    startUpload();\r\n  }\r\n};\r\n\r\n/**\r\n* Uploads a block blob from a stream.\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {string}             text                                          The blob text.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                length                                        The length of the stream or text to upload.\r\n* @param {object}             [options]                                     The request options.\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]             The MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads. The default value is true for block blobs.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {errorOrResult}      callback                                      `error` will contain information\r\n*                                                                           if an error occurs; otherwise `result` will contain\r\n*                                                                           information about the blob.\r\n*                                                                           `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._putBlockBlob = function (container, blob, text, stream, length, options, callback) {\r\n  if (!options.speedSummary) {\r\n    options.speedSummary = new SpeedSummary(blob);\r\n  }\r\n\r\n  var speedSummary = options.speedSummary;\r\n  speedSummary.totalSize = length;\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withHeader(HeaderConstants.CONTENT_TYPE, 'application/octet-stream')\r\n    .withHeader(HeaderConstants.BLOB_TYPE, BlobConstants.BlobTypes.BLOCK)\r\n    .withHeader(HeaderConstants.CONTENT_LENGTH, length);\r\n\r\n  if (!azureutil.objectIsNull(text) && azureutil.objectIsNull(options.transactionalContentMD5) && options.useTransactionalMD5) {\r\n    options.transactionalContentMD5 = azureutil.getContentMd5(text);\r\n  }\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n      if (options.metadata) {\r\n        responseObject.blobResult.metadata = options.metadata;\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      if (!returnObject || !returnObject.error) {\r\n        speedSummary.increment(length);\r\n      }\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  if (!azureutil.objectIsNull(text)) {\r\n    this.performRequest(webResource, text, options, processResponseCallback);\r\n  } else {\r\n    this.performRequestOutputStream(webResource, stream, options, processResponseCallback);\r\n  }\r\n\r\n  return options.speedSummary;\r\n};\r\n\r\n/**\r\n* Appends a new block to an append blob.\r\n* \r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                 The container name.\r\n* @param {string}             blob                                      The blob name.\r\n* @param {string|buffer}      content                                   The block content.\r\n* @param (Stream)             stream                                    The stream to the data to store.\r\n* @param {int}                length                                    The length of the stream or content to upload.\r\n* @param {object}             [options]                                 The request options.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]  Specifies whether to absorb the conditional error on retry.\r\n* @param {int}                [options.maxBlobSize]                     The max length in bytes allowed for the append blob to grow to.\r\n* @param {int}                [options.appendPosition]                  The number indicating the byte offset to check for. The append will succeed only if the end position of the blob is equal to this number.\r\n* @param {string}             [options.leaseId]                         The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]         The blob’s MD5 hash. This hash is used to verify the integrity of the blob during transport.\r\n* @param {bool}               [options.useTransactionalMD5]             Calculate and send/validate content MD5 for transactions.\r\n* @param {AccessConditions}   [options.accessConditions]                The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                    Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                       Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]             The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]        The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]        The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                       The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                       execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                 A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]               Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                       The default value is false.\r\n* @param {errorOrResponse}    callback                                  `error` will contain information\r\n*                                                                       if an error occurs; otherwise \r\n*                                                                       `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._appendBlock = function (container, blob, content, stream, length, options, callback) {\r\n  var speedSummary = options.speedSummary || new SpeedSummary(blob);\r\n  speedSummary.totalSize = length;\r\n\r\n  var self = this;\r\n  var startAppendBlock = function () {\r\n    var resourceName = createResourceName(container, blob);\r\n\r\n    var webResource = WebResource.put(resourceName)\r\n      .withQueryOption(QueryStringConstants.COMP, 'appendblock')\r\n      .withHeader(HeaderConstants.CONTENT_LENGTH, length)\r\n      .withHeader(HeaderConstants.BLOB_CONDITION_MAX_SIZE, options.maxBlobSize)\r\n      .withHeader(HeaderConstants.BLOB_CONDITION_APPEND_POSITION, options.appendPosition);\r\n\r\n    BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n    var processResponseCallback = function (responseObject, next) {\r\n      responseObject.blobResult = null;\r\n      if (!responseObject.error) {\r\n        responseObject.blobResult = new BlobResult(container, blob);\r\n        responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n      }\r\n\r\n      var finalCallback = function (returnObject) {\r\n        if (!returnObject || !returnObject.error) {\r\n          speedSummary.increment(length);\r\n        }\r\n        callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n      };\r\n\r\n      next(responseObject, finalCallback);\r\n    };\r\n\r\n    if (!azureutil.objectIsNull(content)) {\r\n      self.performRequest(webResource, content, options, processResponseCallback);\r\n    } else {\r\n      self.performRequestOutputStream(webResource, stream, options, processResponseCallback);\r\n    }\r\n  };\r\n\r\n  if (azureutil.objectIsNull(options.transactionalContentMD5) && options.useTransactionalMD5) {\r\n    if (!azureutil.objectIsNull(content)) {\r\n      options.transactionalContentMD5 = azureutil.getContentMd5(content);\r\n      startAppendBlock();\r\n    } else {\r\n      azureutil.calculateMD5(stream, length, options, function (internalBuff, contentMD5) {\r\n        options.transactionalContentMD5 = contentMD5;\r\n        content = internalBuff;\r\n        length = internalBuff.length;\r\n        startAppendBlock();\r\n      });\r\n    }\r\n  } else {\r\n    startAppendBlock();\r\n  }\r\n\r\n  return options.speedSummary;\r\n};\r\n\r\n/**\r\n* Creates and dispatches lease requests.\r\n* @ignore\r\n* \r\n* @this {BlobService}\r\n* @param {object}             webResource                             The web resource.\r\n* @param {string}             container                               The container name.\r\n* @param {string}             blob                                    The blob name.\r\n* @param {string}             leaseId                                 The lease identifier. Required to renew, change or release the lease.\r\n* @param {string}             leaseAction                             The lease action (BlobConstants.LeaseOperation.*). Required.\r\n* @param {object}             userOptions                             The request options.\r\n* @param {int}                [userOptions.leaseBreakPeriod]          The lease break period.\r\n* @param {string}             [userOptions.leaseDuration]             The lease duration. Default is never to expire.\r\n* @param {string}             [userOptions.proposedLeaseId]           The proposed lease identifier. This is required for the CHANGE lease action.\r\n* @param {LocationMode}       [userOptions.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                     Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {AccessConditions}   [options.accessConditions]              The access conditions.\r\n* @param {int}                [userOptions.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]      The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [userOptions.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                     The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                     execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]               A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]             Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                     The default value is false.\r\n* @param {Function(error, lease, response)}  callback                 `error` will contain information\r\n*                                                                     if an error occurs; otherwise `lease` will contain\r\n*                                                                     the lease information.\r\n*                                                                     `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._leaseImpl = function (container, blob, leaseId, leaseAction, options, callback) {\r\n  var webResource;\r\n  if (!azureutil.objectIsNull(blob)) {\r\n    validate.validateArgs('_leaseImpl', function (v) {\r\n      v.string(blob, 'blob');\r\n    });\r\n    var resourceName = createResourceName(container, blob);\r\n    webResource = WebResource.put(resourceName);\r\n  } else {\r\n    webResource = WebResource.put(container)\r\n      .withQueryOption(QueryStringConstants.RESTYPE, 'container');\r\n  }\r\n\r\n  webResource.withQueryOption(QueryStringConstants.COMP, 'lease')\r\n    .withHeader(HeaderConstants.LEASE_ID, leaseId)\r\n    .withHeader(HeaderConstants.LEASE_ACTION, leaseAction.toLowerCase())\r\n    .withHeader(HeaderConstants.LEASE_BREAK_PERIOD, options.leaseBreakPeriod)\r\n    .withHeader(HeaderConstants.PROPOSED_LEASE_ID, options.proposedLeaseId)\r\n    .withHeader(HeaderConstants.LEASE_DURATION, options.leaseDuration);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.leaseResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.leaseResult = new LeaseResult(container, blob);\r\n      responseObject.leaseResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.leaseResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Updates a page blob from text.\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {string}             text                                        The text string.\r\n* @param {Readable}           readStream                                  The Node.js Readable stream.\r\n* @param {int}                rangeStart                                  The range start.\r\n* @param {int}                rangeEnd                                    The range end.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.leaseId]                           The target blob lease identifier.\r\n* @param {string}             [options.transactionalContentMD5]           An MD5 hash of the page content. This hash is used to verify the integrity of the page during transport. \r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {Function(error, pageBlob, response)}  callback                  `error` will contain information\r\n*                                                                         if an error occurs; otherwise `pageBlob` will contain\r\n*                                                                         the blob information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._createPages = function (container, blob, text, readStream, rangeStart, rangeEnd, options, callback) {\r\n  var request = this._updatePageBlobPagesImpl(container, blob, rangeStart, rangeEnd, BlobConstants.PageWriteOptions.UPDATE, options);\r\n\r\n  // At this point, we have already validated that the range is less than 4MB. Therefore, we just need to calculate the contentMD5 if required.\r\n  // Even when this is called from the createPagesFromStream method, it is pre-buffered and called with text.\r\n  if (!azureutil.objectIsNull(text) && azureutil.objectIsNull(options.transactionalContentMD5) && options.useTransactionalMD5) {\r\n    request.withHeader(HeaderConstants.CONTENT_MD5, azureutil.getContentMd5(text));\r\n  }\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  if (!azureutil.objectIsNull(text)) {\r\n    this.performRequest(request, text, options, processResponseCallback);\r\n  } else {\r\n    this.performRequestOutputStream(request, readStream, options, processResponseCallback);\r\n  }\r\n};\r\n\r\n/**\r\n* @ignore\r\n*/\r\nBlobService.prototype._updatePageBlobPagesImpl = function (container, blob, rangeStart, rangeEnd, writeMethod, options) {\r\n  if (rangeStart && rangeStart % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_START_OFFSET);\r\n  }\r\n\r\n  if (rangeEnd && (rangeEnd + 1) % BlobConstants.PAGE_SIZE !== 0) {\r\n    throw new RangeError(SR.INVALID_PAGE_END_OFFSET);\r\n  }\r\n\r\n  // this is necessary if this is called from _uploadContentFromChunkStream->_createPages\r\n  if (!options) {\r\n    options = {};\r\n  }\r\n\r\n  options.rangeStart = rangeStart;\r\n  options.rangeEnd = rangeEnd;\r\n\r\n  options.contentLength = writeMethod === BlobConstants.PageWriteOptions.UPDATE ? (rangeEnd - rangeStart) + 1 : 0;\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.put(resourceName)\r\n    .withQueryOption(QueryStringConstants.COMP, 'page')\r\n    .withHeader(HeaderConstants.CONTENT_TYPE, 'application/octet-stream')\r\n    .withHeader(HeaderConstants.PAGE_WRITE, writeMethod);\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  return webResource;\r\n};\r\n\r\n/**\r\n* Uploads blob content from a stream.\r\n* For block blob, it creates a new block to be committed.\r\n* For page blob, it writes a range of pages.\r\n* For append blob, it appends a new block.\r\n*\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                     The container name.\r\n* @param {string}             blob                                          The blob name.\r\n* @param {string}             blobType                                      The blob type.\r\n* @param (Stream)             stream                                        Stream to the data to store.\r\n* @param {int}                streamLength                                  The length of the stream to upload.\r\n* @param {object|function}    [options]                                     The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                        The download tracker objects;\r\n* @param {int}                [options.parallelOperationThreadCount]        The number of parallel operations that may be performed when uploading.\r\n* @param {bool}               [options.absorbConditionalErrorsOnRetry]      Specifies whether to absorb the conditional error on retry. (For append blob only)\r\n* @param {int}                [options.maxBlobSize]                         The max length in bytes allowed for the append blob to grow to.\r\n* @param {int}                [options.appendPosition]                      The number indicating the byte offset to check for. The append will succeed only if the end position of the blob is equal to this number.\r\n* @param {bool}               [options.useTransactionalMD5]                 Calculate and send/validate content MD5 for transactions.\r\n* @param {string}             [options.blockIdPrefix]                       The prefix to be used to generate the block id. (For block blob only)\r\n* @param {int}                [options.blockSize]                           The size of each block. Maximum is 100MB. (For block blob only)\r\n* @param {string}             [options.leaseId]                             The lease identifier.\r\n* @param {object}             [options.metadata]                            The metadata key/value pairs.\r\n* @param {bool}               [options.storeBlobContentMD5]                 Specifies whether the blob's ContentMD5 header should be set on uploads.\r\n* @param {object}             [options.contentSettings]                     The content settings of the blob.\r\n* @param {string}             [options.contentSettings.contentType]         The MIME content type of the blob. The default type is application/octet-stream.\r\n* @param {string}             [options.contentSettings.contentEncoding]     The content encodings that have been applied to the blob.\r\n* @param {string}             [options.contentSettings.contentLanguage]     The natural languages used by this resource.\r\n* @param {string}             [options.contentSettings.cacheControl]        The Blob service stores this value but does not use or modify it.\r\n* @param {string}             [options.contentSettings.contentDisposition]  The blob's content disposition.\r\n* @param {string}             [options.contentSettings.contentMD5]          The blob's MD5 hash.\r\n* @param {AccessConditions}   [options.accessConditions]                    The access conditions.\r\n* @param {LocationMode}       [options.locationMode]                        Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                           Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                 The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]            The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]            The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                           The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                           execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                     A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                   Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                           The default value is false.\r\n* @param {function(error, null)}  callback                                  The callback function.\r\n* @return {SpeedSummary}\r\n*/\r\n\r\nBlobService.prototype._uploadContentFromChunkStream = function (container, blob, blobType, chunkStream, streamLength, options, callback) {\r\n  this.logger.debug(util.format('_uploadContentFromChunkStream for blob %s', blob));\r\n\r\n  var apiName;\r\n  var isBlockBlobUpload;\r\n  var isPageBlobUpload;\r\n  var isAppendBlobUpload;\r\n  var sizeLimitation;\r\n  var originalContentMD5 = azureutil.tryGetValueChain(options, ['contentSettings', 'contentMD5'], null);\r\n  var parallelOperationThreadCount = options.parallelOperationThreadCount || this.parallelOperationThreadCount;\r\n\r\n  if (blobType == BlobConstants.BlobTypes.BLOCK) {\r\n    apiName = 'createBlockFromText';\r\n    isBlockBlobUpload = true;\r\n\r\n    // BlockBlob can only have 50000 blocks in maximum\r\n    var minBlockSize = Math.ceil(streamLength / 50000);\r\n    if (options.blockSize) {\r\n      if (options.blockSize < minBlockSize) {\r\n        // options.blockSize is less than the minBlockSize, error callback        \r\n        var error = new ArgumentError('options.blockSize', util.format('The minimum blockSize is %s and the provided blockSize %s is too small.', minBlockSize, options.blockSize));\r\n        callback(error);\r\n        return;\r\n      } else {\r\n        sizeLimitation = options.blockSize;\r\n      }\r\n    } else {\r\n      // 4MB minimum for auto-calculated block size\r\n      sizeLimitation = Math.max(minBlockSize, BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES);\r\n    }\r\n  } else if (blobType == BlobConstants.BlobTypes.PAGE) {\r\n    apiName = '_createPages';\r\n    isPageBlobUpload = true;\r\n    sizeLimitation = BlobConstants.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES;\r\n  } else if (blobType == BlobConstants.BlobTypes.APPEND) {\r\n    apiName = 'appendBlockFromText';\r\n    isAppendBlobUpload = true;\r\n    parallelOperationThreadCount = 1;\r\n    sizeLimitation = BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n  } else {\r\n    var error = new ArgumentError('blobType', util.format('Unknown blob type %s', blobType));\r\n    callback(error);\r\n    return;\r\n  }\r\n\r\n  chunkStream._highWaterMark = sizeLimitation;\r\n\r\n  this._setOperationExpiryTime(options);\r\n\r\n  // initialize the speed summary\r\n  var speedSummary = options.speedSummary || new SpeedSummary(blob);\r\n  speedSummary.totalSize = streamLength;\r\n\r\n  // initialize chunk allocator\r\n  var allocator = new ChunkAllocator(sizeLimitation, parallelOperationThreadCount, { logger: this.logger });\r\n  chunkStream.setMemoryAllocator(allocator);\r\n  chunkStream.setOutputLength(streamLength);\r\n\r\n  // if this is a FileReadStream, set the allocator on that stream\r\n  if (chunkStream._stream && chunkStream._stream.setMemoryAllocator) {\r\n    var fileReadStreamAllocator = new ChunkAllocator(chunkStream._stream._highWaterMark, parallelOperationThreadCount, { logger: this.logger });      \r\n    chunkStream._stream.setMemoryAllocator(fileReadStreamAllocator);\r\n  }\r\n\r\n  // initialize batch operations\r\n  var batchOperations = new BatchOperation(apiName, {\r\n    callInOrder: isAppendBlobUpload,\r\n    callbackInOrder: isAppendBlobUpload,\r\n    logger: this.logger,\r\n    enableReuseSocket: this.defaultEnableReuseSocket,\r\n    operationMemoryUsage: sizeLimitation\r\n  });\r\n  batchOperations.setConcurrency(parallelOperationThreadCount);\r\n\r\n  // initialize options\r\n  var rangeOptions = {\r\n    leaseId: options.leaseId,\r\n    timeoutIntervalInMs: options.timeoutIntervalInMs,\r\n    clientRequestTimeoutInMs: options.clientRequestTimeoutInMs,\r\n    operationExpiryTime: options.operationExpiryTime,\r\n    maxBlobSize: options.maxBlobSize,\r\n    appendPosition: options.appendPosition || 0,\r\n    initialAppendPosition: options.appendPosition || 0,\r\n    absorbConditionalErrorsOnRetry: options.absorbConditionalErrorsOnRetry\r\n  };\r\n\r\n  // initialize block blob variables\r\n  var blockIdPrefix = options.blockIdPrefix || this.generateBlockIdPrefix();\r\n  var blockCount = 0;\r\n  var blockIds = [];\r\n  var blobResult = {};\r\n\r\n  var self = this;\r\n  chunkStream.on('data', function (data, range) {\r\n    var operation = null;\r\n    var full = false;\r\n    var autoIncrement = speedSummary.getAutoIncrementFunction(data.length);\r\n\r\n    if (data.length > sizeLimitation) {\r\n      throw new RangeError(util.format(SR.EXCEEDED_SIZE_LIMITATION, sizeLimitation, data.length));\r\n    }\r\n\r\n    if (options.useTransactionalMD5) {\r\n      //calculate content md5 for the current uploading block data\r\n      var contentMD5 = azureutil.getContentMd5(data);\r\n      rangeOptions.transactionalContentMD5 = contentMD5;\r\n    }\r\n\r\n    var checkLengthLimit = function () {\r\n      if (!streamLength) return true;\r\n      if (range.start >= streamLength) {\r\n        self.logger.debug(util.format('Stop uploading data from %s bytes to %s bytes to blob %s because of limit %s', range.start, range.end, blob, streamLength));\r\n        chunkStream.stop();\r\n        return false;\r\n      } else if (range.end >= streamLength) {\r\n        self.logger.debug(util.format('Clip uploading data from %s bytes to %s bytes to blob %s because of limit %s', range.start, range.end, blob, streamLength));\r\n        range.end = streamLength - 1;\r\n        data = data.slice(0, streamLength - range.start);\r\n        if (options.useTransactionalMD5) {\r\n          rangeOptions.transactionalContentMD5 = azureutil.getContentMd5(data);\r\n        }\r\n      }\r\n      return true;\r\n    };\r\n\r\n    var uploadBlockBlobChunk = function () {\r\n      if (!checkLengthLimit()) return;\r\n      var blockId = self.getBlockId(blockIdPrefix, blockCount);\r\n      blockIds.push(blockId);\r\n\r\n      operation = new BatchOperation.RestOperation(self, apiName, blockId, container, blob, data, rangeOptions, function (error) {\r\n        if (!error) {\r\n          autoIncrement();\r\n        } else {\r\n          self.logger.debug(util.format('Stop uploading data as error happens. Error: %s', util.inspect(error)));\r\n          chunkStream.stop();\r\n        }\r\n        allocator.releaseBuffer(data);\r\n        data = null;\r\n      });\r\n\r\n      blockCount++;\r\n    };\r\n\r\n    var uploadPageBlobChunk = function () {\r\n      if (!checkLengthLimit()) return;\r\n\r\n      if (azureutil.isBufferAllZero(data)) {\r\n        self.logger.debug(util.format('Skip upload data from %s bytes to %s bytes to blob %s', range.start, range.end, blob));\r\n        speedSummary.increment(data.length);\r\n      } else {\r\n        self.logger.debug(util.format('Upload data from %s bytes to %s bytes to blob %s', range.start, range.end, blob));\r\n        operation = new BatchOperation.RestOperation(self, apiName, container, blob, data, null, range.start, range.end, rangeOptions, function (error) {\r\n          if (!error) {\r\n            autoIncrement();\r\n          } else {\r\n            self.logger.debug(util.format('Stop uploading data as error happens. Error: %s', util.inspect(error)));\r\n            chunkStream.stop();\r\n          }\r\n          allocator.releaseBuffer(data);\r\n          data = null;\r\n        });\r\n      }\r\n    };\r\n\r\n    var uploadAppendBlobChunk = function () {\r\n      if (!checkLengthLimit()) return;\r\n\r\n      rangeOptions.appendPosition = Number(rangeOptions.initialAppendPosition) + Number(range.start);\r\n\r\n      // We cannot differentiate between max size condition failing only in the retry versus failing in the first attempt and retry.  \r\n      // So we will eliminate the latter and handle the former in the append operation callback.\r\n      if (options.maxBlobSize && rangeOptions.appendPosition + data.length > options.maxBlobSize) {\r\n        throw new Error(SR.MAX_BLOB_SIZE_CONDITION_NOT_MEET);\r\n      }\r\n\r\n      operation = new BatchOperation.RestOperation(self, apiName, container, blob, data, rangeOptions, function (error, currentBlob) {\r\n        if (!error) {\r\n          autoIncrement();\r\n        } else {\r\n          self.logger.debug(util.format('Stop uploading data as error happens. Error: %s', util.inspect(error)));\r\n          chunkStream.stop();\r\n        }\r\n        blobResult = currentBlob;\r\n        allocator.releaseBuffer(data);\r\n        data = null;\r\n      });\r\n    };\r\n\r\n    if (isBlockBlobUpload) {\r\n      uploadBlockBlobChunk();\r\n    } else if (isAppendBlobUpload) {\r\n      uploadAppendBlobChunk();\r\n    } else if (isPageBlobUpload) {\r\n      uploadPageBlobChunk();\r\n    }\r\n\r\n    if (operation) {\r\n      full = batchOperations.addOperation(operation);\r\n      operation = null;\r\n\r\n      if (full) {\r\n        self.logger.debug('File stream paused');\r\n        chunkStream.pause();\r\n      }\r\n    }\r\n  });\r\n\r\n  chunkStream.on('end', function () {\r\n    self.logger.debug(util.format('File read stream ended for blob %s', blob));\r\n    batchOperations.enableComplete();\r\n  });\r\n\r\n  batchOperations.on('drain', function () {\r\n    self.logger.debug('file stream resume');\r\n    chunkStream.resume();\r\n  });\r\n\r\n  batchOperations.on('end', function (error) {\r\n    self.logger.debug('batch operations commited');\r\n\r\n    speedSummary = null;\r\n    if (error) {\r\n      callback(error);\r\n      return;\r\n    }\r\n\r\n    if (originalContentMD5) {\r\n      options.contentSettings.contentMD5 = originalContentMD5;\r\n    } else if (options.storeBlobContentMD5) {\r\n      var contentMD5 = chunkStream.getContentMd5('base64');\r\n      azureutil.setObjectInnerPropertyValue(options, ['contentSettings', 'contentMD5'], contentMD5);\r\n    }\r\n\r\n    if (isBlockBlobUpload) {\r\n      //commit block list\r\n      var blockList = { 'UncommittedBlocks': blockIds };\r\n      self.commitBlocks(container, blob, blockList, options, function (error, blockList, response) {\r\n        self.logger.debug(util.format('Blob %s committed', blob));\r\n\r\n        if (error) {\r\n          chunkStream.finish();\r\n\r\n          callback(error);\r\n        } else {\r\n          blobResult['commmittedBlocks'] = blockIds;\r\n\r\n          chunkStream.finish();\r\n          callback(error, blobResult, response);\r\n        }\r\n      });\r\n    } else {\r\n      // upload page blob or append blob completely\r\n      var blobProperties = options.contentSettings;\r\n      self.setBlobProperties(container, blob, blobProperties, function (error, blob, response) {\r\n        chunkStream.finish();\r\n        blob = extend(false, blob, blobResult);\r\n        callback(error, blob, response);\r\n      });\r\n    }\r\n  });\r\n\r\n  return speedSummary;\r\n};\r\n\r\n/**\r\n* Checks whether or not a container exists on the service.\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                         The container name.\r\n* @param {string}             primaryOnly                                       If true, the request will be executed against the primary storage location.\r\n* @param {object}             [options]                                         The request options.\r\n* @param {string}             [options.leaseId]                                 The lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                            Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                               Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                     The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]                The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]                The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                               The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                               execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                         A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                       Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                               The default value is false.\r\n* @param {Function(error, result, response)}  callback                          `error` will contain information\r\n*                                                                               if an error occurs; otherwise `result` will contain\r\n*                                                                               the container information including `exists` boolean member. \r\n*                                                                               `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._doesContainerExist = function (container, primaryOnly, options, callback) {\r\n  var webResource = WebResource.head(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  if (primaryOnly === false) {\r\n    options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n  }\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.containerResult = new ContainerResult(container);\r\n    if (!responseObject.error) {\r\n      responseObject.containerResult.exists = true;\r\n      responseObject.containerResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n\r\n    } else if (responseObject.error && responseObject.error.statusCode === Constants.HttpConstants.HttpResponseCodes.NotFound) {\r\n      responseObject.error = null;\r\n      responseObject.containerResult.exists = false;\r\n      responseObject.response.isSuccessful = true;\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.containerResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Checks whether or not a blob exists on the service.\r\n* @ignore\r\n*\r\n* @this {BlobService}\r\n* @param {string}             container                                         The container name.\r\n* @param {string}             blob                                              The blob name.\r\n* @param {string}             primaryOnly                                       If true, the request will be executed against the primary storage location.\r\n* @param {object}             [options]                                         The request options.\r\n* @param {string}             [options.snapshotId]                              The snapshot identifier.\r\n* @param {string}             [options.leaseId]                                 The lease identifier.\r\n* @param {LocationMode}       [options.locationMode]                            Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                               Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]                     The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]                The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]                The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                               The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                               execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                         A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                       Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                               The default value is false.\r\n* @param {Function(error, result, response)}  callback                          `error` will contain information\r\n*                                                                               if an error occurs; otherwise `result` will contain \r\n*                                                                               the blob information including `exists` boolean member. \r\n*                                                                               `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._doesBlobExist = function (container, blob, primaryOnly, options, callback) {\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.head(resourceName)\r\n    .withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId)\r\n    .withHeader(HeaderConstants.LEASE_ID, options.leaseId);\r\n\r\n  if (primaryOnly === false) {\r\n    options.requestLocationMode = RequestLocationMode.PRIMARY_OR_SECONDARY;\r\n  }\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = new BlobResult(container, blob);\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult.exists = true;\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n\r\n    } else if (responseObject.error && responseObject.error.statusCode === Constants.HttpConstants.HttpResponseCodes.NotFound) {\r\n      responseObject.error = null;\r\n      responseObject.blobResult.exists = false;\r\n      responseObject.response.isSuccessful = true;\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* @ignore\r\n*/\r\nBlobService.prototype._setBlobPropertiesHelper = function (settings) {\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(settings.container, settings.blob);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      settings.callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(settings.webResource, null, settings.options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* @ignore\r\n*/\r\nBlobService.prototype._validateLengthAndMD5 = function (options, responseObject) {\r\n  var storedMD5 = responseObject.response.headers[Constants.HeaderConstants.CONTENT_MD5];\r\n  var contentLength;\r\n\r\n  if (!azureutil.objectIsNull(responseObject.response.headers[Constants.HeaderConstants.CONTENT_LENGTH])) {\r\n    contentLength = parseInt(responseObject.response.headers[Constants.HeaderConstants.CONTENT_LENGTH], 10);\r\n  }\r\n\r\n  // If the user has not specified this option, the default value should be false.\r\n  if (azureutil.objectIsNull(options.disableContentMD5Validation)) {\r\n    options.disableContentMD5Validation = false;\r\n  }\r\n\r\n  // None of the below cases should be retried. So set the error in every case so the retry policy filter handle knows that it shouldn't be retried.\r\n  if (options.disableContentMD5Validation === false && options.useTransactionalMD5 === true && azureutil.objectIsNull(storedMD5)) {\r\n    responseObject.error = new StorageError(SR.MD5_NOT_PRESENT_ERROR);\r\n    responseObject.retryable = false;\r\n  }\r\n\r\n  // Validate length and if required, MD5.\r\n  // If getBlobToText called this method, then the responseObject.length and responseObject.contentMD5 are not set. Calculate them first using responseObject.response.body and then validate.\r\n  if (azureutil.objectIsNull(responseObject.length)) {\r\n    if (typeof responseObject.response.body == 'string') {\r\n      responseObject.length = Buffer.byteLength(responseObject.response.body);\r\n    } else if (Buffer.isBuffer(responseObject.response.body)) {\r\n      responseObject.length = responseObject.response.body.length;\r\n    }\r\n  }\r\n\r\n  if (!azureutil.objectIsNull(contentLength) && responseObject.length !== contentLength) {\r\n    responseObject.error = new Error(SR.CONTENT_LENGTH_MISMATCH);\r\n    responseObject.retryable = false;\r\n  }\r\n\r\n  if (options.disableContentMD5Validation === false && azureutil.objectIsNull(responseObject.contentMD5)) {\r\n    responseObject.contentMD5 = azureutil.getContentMd5(responseObject.response.body);\r\n  }\r\n\r\n  if (options.disableContentMD5Validation === false && !azureutil.objectIsNull(storedMD5) && storedMD5 !== responseObject.contentMD5) {\r\n    responseObject.error = new Error(util.format(SR.HASH_MISMATCH, storedMD5, responseObject.contentMD5));\r\n    responseObject.retryable = false;\r\n  }\r\n};\r\n\r\n/**\r\n* @ignore\r\n*/\r\nBlobService.prototype._setRangeContentMD5Header = function (webResource, options) {\r\n  if (!azureutil.objectIsNull(options.rangeStart) && options.useTransactionalMD5) {\r\n    if (azureutil.objectIsNull(options.rangeEnd)) {\r\n      throw new ArgumentNullError('options.rangeEndHeader', util.format(SR.ARGUMENT_NULL_OR_EMPTY, options.rangeEndHeader));\r\n    }\r\n\r\n    var size = parseInt(options.rangeEnd, 10) - parseInt(options.rangeStart, 10) + 1;\r\n    if (size > BlobConstants.MAX_RANGE_GET_SIZE_WITH_MD5) {\r\n      throw new ArgumentError('options', SR.INVALID_RANGE_FOR_MD5);\r\n    } else {\r\n      webResource.withHeader(HeaderConstants.RANGE_GET_CONTENT_MD5, 'true');\r\n    }\r\n  }\r\n};\r\n\r\n/**\r\n* Downloads a blockblob, pageblob or appendblob into a range stream.\r\n* @ignore\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {string}             blobType                                    The type of blob to download: block blob, page blob or append blob.\r\n* @param {Writable}           writeStream                                 The Node.js Writable stream.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {SpeedSummary}       [options.speedSummary]                      The download tracker objects.\r\n* @param {int}                [options.parallelOperationThreadCount]      The number of parallel operations that may be performed when uploading.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {string}             [options.rangeStart]                        Return only the bytes of the blob in the specified range.\r\n* @param {string}             [options.rangeEnd]                          Return only the bytes of the blob in the specified range.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {boolean}            [options.useTransactionalMD5]               When set to true, Calculate and send/validate content MD5 for transactions.\r\n* @param {boolean}            [options.disableContentMD5Validation]       When set to true, MD5 validation will be disabled when downloading blobs.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information if an error occurs; \r\n*                                                                         otherwise `result` will contain the blob information.\r\n*                                                                         `response` will contain information related to this operation.\r\n* @return {SpeedSummary}\r\n*/\r\nBlobService.prototype._getBlobToRangeStream = function (container, blob, blobType, writeStream, optionsOrCallback, callback) {\r\n  var options;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { options = o; callback = c; });\r\n\r\n  validate.validateArgs('_getBlobToRangeStream', function (v) {\r\n    v.string(container, 'container');\r\n    v.string(blob, 'blob');\r\n    v.containerNameIsValid(container);\r\n    v.blobNameIsValid(container, blob);\r\n    v.blobTypeIsValid(blobType);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var rangeStream = null;\r\n  var isPageBlobDownload = true;\r\n\r\n  if (blobType == BlobConstants.BlobTypes.PAGE) {\r\n    rangeStream = new PageRangeStream(this, container, blob, options);\r\n  } else if (blobType == BlobConstants.BlobTypes.APPEND) {\r\n    rangeStream = new RangeStream(this, container, blob, options);\r\n    isPageBlobDownload = false;\r\n  } else if (blobType == BlobConstants.BlobTypes.BLOCK) {\r\n    rangeStream = new BlockRangeStream(this, container, blob, options);\r\n    isPageBlobDownload = false;\r\n  }\r\n\r\n  if (!options.speedSummary) {\r\n    options.speedSummary = new SpeedSummary(blob);\r\n  }\r\n\r\n  var speedSummary = options.speedSummary;\r\n  var parallelOperationThreadCount = options.parallelOperationThreadCount || this.parallelOperationThreadCount;\r\n  var batchOperations = new BatchOperation('getBlobInRanges', { callbackInOrder: true, logger: this.logger, enableReuseSocket: this.defaultEnableReuseSocket });\r\n  batchOperations.setConcurrency(parallelOperationThreadCount);\r\n\r\n  var self = this;\r\n  var checkMD5sum = !options.disableContentMD5Validation;\r\n  var md5Hash = null;\r\n  if (checkMD5sum) {\r\n    md5Hash = new Md5Wrapper().createMd5Hash();\r\n  }\r\n\r\n  var savedBlobResult = null;\r\n  var savedBlobResponse = null;\r\n\r\n  rangeStream.on('range', function (range) {\r\n    if (!speedSummary.totalSize) {\r\n      speedSummary.totalSize = rangeStream.rangeSize;\r\n    }\r\n\r\n    var requestOptions = {\r\n      rangeStart: range.start,\r\n      rangeEnd: range.end,\r\n      responseEncoding: null //Use Buffer to store the response data\r\n    };\r\n\r\n    var rangeSize = range.size;\r\n    requestOptions.timeoutIntervalInMs = options.timeoutIntervalInMs;\r\n    requestOptions.clientRequestTimeoutInMs = options.clientRequestTimeoutInMs;\r\n    requestOptions.useTransactionalMD5 = options.useTransactionalMD5;\r\n    requestOptions.snapshotId = options.snapshotId;\r\n\r\n    if (range.dataSize === 0) {\r\n      if (isPageBlobDownload) {\r\n        var autoIncrement = speedSummary.getAutoIncrementFunction(rangeSize);\r\n        //No operation to do and only wait for write zero to file in callback\r\n        var writeZeroOperation = new BatchOperation.CommonOperation(BatchOperation.noOperation, function (error) {\r\n          if (error) return;\r\n          var bufferAvailable = azureutil.writeZerosToStream(writeStream, rangeSize, md5Hash, autoIncrement);\r\n          //There is no need to pause the rangestream since we can perform http request and write disk at the same time\r\n          self.logger.debug(util.format('Write %s bytes Zero from %s to %s', rangeSize, range.start, range.end));\r\n          if (!bufferAvailable) {\r\n            self.logger.debug('Write stream is full and pause batch operation');\r\n            batchOperations.pause();\r\n          }\r\n        });\r\n        batchOperations.addOperation(writeZeroOperation);\r\n      } else {\r\n        self.logger.debug(util.format('Can not read %s bytes to %s bytes of blob %s', range.start, range.end, blob));\r\n      }\r\n      return;\r\n    }\r\n\r\n    if (range.start > range.end) {\r\n      return;\r\n    }\r\n\r\n    var operation = new BatchOperation.RestOperation(self, 'getBlobToText', container, blob, requestOptions, function (error, content, blobResult, response) {\r\n      if (!error) {\r\n        if (rangeSize !== content.length) {\r\n          self.logger.warn(util.format('Request %s bytes, but server returns %s bytes', rangeSize, content.length));\r\n        }\r\n        //Save one of the succeeded callback parameters and use them at the final callback\r\n        if (!savedBlobResult) {\r\n          savedBlobResult = blobResult;\r\n        }\r\n        if (!savedBlobResponse) {\r\n          savedBlobResponse = response;\r\n        }\r\n        var autoIncrement = speedSummary.getAutoIncrementFunction(content.length);\r\n        var bufferAvailable = writeStream.write(content, autoIncrement);\r\n        if (!bufferAvailable) {\r\n          self.logger.debug('Write stream is full and pause batch operation');\r\n          batchOperations.pause();\r\n        }\r\n        if (md5Hash) {\r\n          md5Hash.update(content);\r\n        }\r\n        content = null;\r\n      } else {\r\n        self.logger.debug(util.format('Stop downloading data as error happens. Error: %s', util.inspect(error)));\r\n        rangeStream.stop();\r\n      }\r\n    });\r\n\r\n    var full = batchOperations.addOperation(operation);\r\n    if (full) {\r\n      self.logger.debug('Pause range stream');\r\n      rangeStream.pause();\r\n    }\r\n  });\r\n\r\n  rangeStream.on('end', function () {\r\n    self.logger.debug('Range stream has ended.');\r\n    batchOperations.enableComplete();\r\n  });\r\n\r\n  batchOperations.on('drain', function () {\r\n    self.logger.debug('Resume range stream');\r\n    rangeStream.resume();\r\n  });\r\n\r\n  writeStream.on('drain', function () {\r\n    self.logger.debug('Resume batch operations');\r\n    batchOperations.resume();\r\n  });\r\n\r\n  batchOperations.on('end', function (error) {\r\n    self.logger.debug('Download completed!');\r\n    if (error) {\r\n      callback(error);\r\n      return;\r\n    } else {\r\n      writeStream.end(function () {\r\n        self.logger.debug('Write stream has ended');\r\n        if (!savedBlobResult) {\r\n          savedBlobResult = {};\r\n        }\r\n\r\n        azureutil.setObjectInnerPropertyValue(savedBlobResult, ['contentSettings', 'contentMD5'], azureutil.tryGetValueChain(options, ['contentSettings', 'contentMD5'], null));\r\n        savedBlobResult.clientSideContentMD5 = null;\r\n        if (md5Hash) {\r\n          savedBlobResult.clientSideContentMD5 = md5Hash.digest('base64');\r\n        }\r\n        callback(error, savedBlobResult, savedBlobResponse);\r\n      });\r\n    }\r\n  });\r\n\r\n  var listOptions = {\r\n    timeoutIntervalInMs: options.timeoutIntervalInMs,\r\n    clientRequestTimeoutInMs: options.clientRequestTimeoutInMs,\r\n    snapshotId: options.snapshotId,\r\n    leaseId: options.leaseId,\r\n    blockListFilter: BlobUtilities.BlockListFilter.COMMITTED\r\n  };\r\n\r\n  rangeStream.list(listOptions, function (error) {\r\n    callback(error);\r\n  });\r\n\r\n  return speedSummary;\r\n};\r\n\r\n/**\r\n* Downloads a blockblob or pageblob into a stream.\r\n* @ignore\r\n* @this {BlobService}\r\n* @param {string}             container                                   The container name.\r\n* @param {string}             blob                                        The blob name.\r\n* @param {Writable}           writeStream                                 The Node.js Writable stream.\r\n* @param {object}             [options]                                   The request options.\r\n* @param {string}             [options.snapshotId]                        The snapshot identifier.\r\n* @param {string}             [options.leaseId]                           The lease identifier.\r\n* @param {string}             [options.rangeStart]                        Return only the bytes of the blob in the specified range.\r\n* @param {string}             [options.rangeEnd]                          Return only the bytes of the blob in the specified range.\r\n* @param {AccessConditions}   [options.accessConditions]                  The access conditions.\r\n* @param {boolean}            [options.useTransactionalMD5]               When set to true, Calculate and send/validate content MD5 for transactions.\r\n* @param {boolean}            [options.disableContentMD5Validation]       When set to true, MD5 validation will be disabled when downloading blobs.\r\n* @param {LocationMode}       [options.locationMode]                      Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                         Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]               The timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]          The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]          The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                         The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                         execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]                   A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]                 Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                         The default value is false.\r\n* @param {errorOrResult}      callback                                    `error` will contain information if an error occurs; \r\n*                                                                         otherwise `result` will contain the blob information.\r\n*                                                                         `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._getBlobToStream = function (container, blob, writeStream, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  var resourceName = createResourceName(container, blob);\r\n  var webResource = WebResource.get(resourceName).withRawResponse();\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  webResource.withQueryOption(QueryStringConstants.SNAPSHOT, options.snapshotId);\r\n\r\n  BlobResult.setHeadersFromBlob(webResource, options);\r\n\r\n  this._setRangeContentMD5Header(webResource, options);\r\n\r\n  var self = this;\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.blobResult = null;\r\n\r\n    if (!responseObject.error) {\r\n      responseObject.blobResult = new BlobResult(container, blob);\r\n      responseObject.blobResult.metadata = self.parseMetadataHeaders(responseObject.response.headers);\r\n      responseObject.blobResult.getPropertiesFromHeaders(responseObject.response.headers);\r\n\r\n      self._validateLengthAndMD5(options, responseObject);\r\n      \r\n      if (options.speedSummary) {\r\n        options.speedSummary.increment(responseObject.length);\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.blobResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequestInputStream(webResource, null, writeStream, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Lists a segment containing a collection of blob items whose names begin with the specified prefix in the container.\r\n* @ignore\r\n* @this {BlobService}\r\n* @param {string}             container                           The container name.\r\n* @param {string}             prefix                              The prefix of the blob name.\r\n* @param {object}             currentToken                        A continuation token returned by a previous listing operation. Please use 'null' or 'undefined' if this is the first operation.\r\n* @param {ListBlobTypes}      listBlobType                        Specifies the item type of the results.\r\n* @param {object}             [options]                           The request options.\r\n* @param {int}                [options.maxResults]                Specifies the maximum number of blobs to return per call to Azure ServiceClient. This does NOT affect list size returned by this function. (maximum: 5000)\r\n* @param {string}             [options.include]                   Specifies that the response should include one or more of the following subsets: '', 'metadata', 'snapshots', 'uncommittedblobs', 'copy', 'deleted').\r\n*                                                                 Please find these values in BlobUtilities.BlobListingDetails. Multiple values can be added separated with a comma (,).\r\n* @param {LocationMode}       [options.locationMode]              Specifies the location mode used to decide which location the request should be sent to. \r\n*                                                                 Please see StorageUtilities.LocationMode for the possible values.\r\n* @param {int}                [options.timeoutIntervalInMs]       The server timeout interval, in milliseconds, to use for the request.\r\n* @param {int}                [options.clientRequestTimeoutInMs]  The timeout of client requests, in milliseconds, to use for the request.\r\n* @param {int}                [options.maximumExecutionTimeInMs]  The maximum execution time, in milliseconds, across all potential retries, to use when making this request.\r\n*                                                                 The maximum execution time interval begins at the time that the client begins building the request. The maximum\r\n*                                                                 execution time is checked intermittently while performing requests, and before executing retries.\r\n* @param {string}             [options.clientRequestId]           A string that represents the client request ID with a 1KB character limit.\r\n* @param {bool}               [options.useNagleAlgorithm]         Determines whether the Nagle algorithm is used; true to use the Nagle algorithm; otherwise, false.\r\n*                                                                 The default value is false.\r\n* @param {errorOrResult}      callback                            `error` will contain information\r\n*                                                                 if an error occurs; otherwise `result` will contain\r\n*                                                                 the entries of blobs and the continuation token for the next listing operation.\r\n*                                                                 `response` will contain information related to this operation.\r\n*/\r\nBlobService.prototype._listBlobsOrDircotriesSegmentedWithPrefix = function (container, prefix, currentToken, listBlobType, optionsOrCallback, callback) {\r\n  var userOptions;\r\n  azureutil.normalizeArgs(optionsOrCallback, callback, function (o, c) { userOptions = o; callback = c; });\r\n\r\n  validate.validateArgs('listBlobsSegmented', function (v) {\r\n    v.string(container, 'container');\r\n    v.containerNameIsValid(container);\r\n    v.callback(callback);\r\n  });\r\n\r\n  var options = extend(true, {}, userOptions);\r\n  var webResource = WebResource.get(container)\r\n    .withQueryOption(QueryStringConstants.RESTYPE, 'container')\r\n    .withQueryOption(QueryStringConstants.COMP, 'list')\r\n    .withQueryOption(QueryStringConstants.MAX_RESULTS, options.maxResults)\r\n    .withQueryOptions(options,\r\n    QueryStringConstants.DELIMITER,\r\n    QueryStringConstants.INCLUDE);\r\n\r\n  if (!azureutil.objectIsNull(currentToken)) {\r\n    webResource.withQueryOption(QueryStringConstants.MARKER, currentToken.nextMarker);\r\n  }\r\n\r\n  webResource.withQueryOption(QueryStringConstants.PREFIX, prefix);\r\n\r\n  options.requestLocationMode = azureutil.getNextListingLocationMode(currentToken);\r\n\r\n  var processResponseCallback = function (responseObject, next) {\r\n    responseObject.listBlobsResult = null;\r\n    if (!responseObject.error) {\r\n      responseObject.listBlobsResult = {\r\n        entries: null,\r\n        continuationToken: null\r\n      };\r\n\r\n      responseObject.listBlobsResult.entries = [];\r\n      var results = [];\r\n\r\n      if (listBlobType == BlobConstants.ListBlobTypes.Directory && responseObject.response.body.EnumerationResults.Blobs.BlobPrefix) {\r\n        results = responseObject.response.body.EnumerationResults.Blobs.BlobPrefix;\r\n        if (!_.isArray(results)) {\r\n          results = [results];\r\n        }\r\n      } else if (listBlobType == BlobConstants.ListBlobTypes.Blob && responseObject.response.body.EnumerationResults.Blobs.Blob) {\r\n        results = responseObject.response.body.EnumerationResults.Blobs.Blob;\r\n        if (!_.isArray(results)) {\r\n          results = [results];\r\n        }\r\n      }\r\n\r\n      results.forEach(function (currentBlob) {\r\n        var blobResult = BlobResult.parse(currentBlob);\r\n        responseObject.listBlobsResult.entries.push(blobResult);\r\n      });\r\n\r\n      if (responseObject.response.body.EnumerationResults.NextMarker) {\r\n        responseObject.listBlobsResult.continuationToken = {\r\n          nextMarker: null,\r\n          targetLocation: null\r\n        };\r\n\r\n        responseObject.listBlobsResult.continuationToken.nextMarker = responseObject.response.body.EnumerationResults.NextMarker;\r\n        responseObject.listBlobsResult.continuationToken.targetLocation = responseObject.targetLocation;\r\n      }\r\n    }\r\n\r\n    var finalCallback = function (returnObject) {\r\n      callback(returnObject.error, returnObject.listBlobsResult, returnObject.response);\r\n    };\r\n\r\n    next(responseObject, finalCallback);\r\n  };\r\n\r\n  this.performRequest(webResource, null, options, processResponseCallback);\r\n};\r\n\r\n/**\r\n* Create a new blob.\r\n* @ignore\r\n* \r\n* @this {BlobService}\r\n* @param {string}             container                                The container name.\r\n* @param {string}             blob                                     The blob name.\r\n* @param {BlobType}           blobType                                 The blob type.\r\n* @param {int}                size                                     The blob size. \r\n* @param {object}             [options]                                The request options.\r\n* @param {string}             [options.blobTier]                       For page blobs on premium accounts only. Set the tier of the target blob. Refer to BlobUtilities.BlobTier.PremiumPageBlobTier.\r\n* @param {errorOrResult}      callback                                 The callback which operates on the specific blob.\r\n*/\r\nBlobService.prototype._createBlob = function (container, blob, blobType, size, options, creationCallback) {\r\n  if (blobType == BlobConstants.BlobTypes.APPEND) {\r\n    this.createOrReplaceAppendBlob(container, blob, options, function (createError, createResponse) {\r\n      creationCallback(createError, null, createResponse);\r\n    });\r\n  } else if (blobType == BlobConstants.BlobTypes.PAGE) {\r\n    this.createPageBlob(container, blob, size, options, function (createError) {\r\n      creationCallback(createError);\r\n    });\r\n  } else if (blobType == BlobConstants.BlobTypes.BLOCK) {\r\n    creationCallback();\r\n  }\r\n};\r\n\r\n/**\r\n* The callback for {BlobService~getBlobToText}.\r\n* @typedef {function} BlobService~blobToText\r\n* @param {object} error      If an error occurs, the error information.\r\n* @param {string} text       The text returned from the blob.\r\n* @param {object} blockBlob  Information about the blob.\r\n* @param {object} response   Information related to this operation.\r\n*/\r\n\r\nBlobService.SpeedSummary = SpeedSummary;\r\n\r\nmodule.exports = BlobService;\r\n\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"../../common/errors/errors\":5,\"../../common/models/accountpropertiesresult\":11,\"./../../common/common.core\":3,\"./../../common/md5-wrapper\":10,\"./../../common/streams/rangestream\":29,\"./blobutilities\":42,\"./internal/blockrangestream\":43,\"./internal/pagerangestream\":44,\"./models/blobresult\":45,\"./models/blocklistresult\":46,\"./models/containerresult\":47,\"./models/leaseresult\":48,\"buffer\":56,\"extend\":60,\"querystring\":75,\"underscore\":111,\"url\":112,\"util\":117}],42:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Expose 'BlobUtilities'.\r\nexports = module.exports;\r\n\r\n/**\r\n* Defines constants, enums, and utility functions for use with the Blob service.\r\n* @namespace BlobUtilities\r\n*/\r\nvar BlobUtilities = {\r\n  /**\r\n  * Permission types\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  SharedAccessPermissions: {\r\n    READ: 'r',\r\n    ADD: 'a',\r\n    CREATE: 'c',\r\n    WRITE: 'w',\r\n    DELETE: 'd',\r\n    LIST: 'l'\r\n  },\r\n\r\n  /**\r\n  * Blob listing details.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  BlobListingDetails: {\r\n    SNAPSHOTS: 'snapshots',\r\n    METADATA: 'metadata',\r\n    UNCOMMITTED_BLOBS: 'uncommittedblobs',\r\n    COPY: 'copy',\r\n    DELETED: 'deleted'\r\n  },\r\n\r\n  /**\r\n  * Deletion options for blob snapshots\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  SnapshotDeleteOptions: {\r\n    SNAPSHOTS_ONLY: 'only',\r\n    BLOB_AND_SNAPSHOTS: 'include'\r\n  },\r\n\r\n  /**\r\n  * Type of block list to retrieve\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  BlockListFilter: {\r\n    ALL: 'all',\r\n    COMMITTED: 'committed',\r\n    UNCOMMITTED: 'uncommitted'\r\n  },\r\n\r\n  /**\r\n  * Blobs and container public access types.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  BlobContainerPublicAccessType: {\r\n    OFF: null,\r\n    CONTAINER: 'container',\r\n    BLOB: 'blob'\r\n  },\r\n\r\n  /**\r\n  * Describes actions that can be performed on a page blob sequence number.\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  SequenceNumberAction: {\r\n    MAX: 'max',\r\n    UPDATE: 'update',\r\n    INCREMENT: 'increment'\r\n  },\r\n\r\n  /**\r\n  * Candidate values for blob tiers.\r\n  *\r\n  * @property {object} PremiumPageBlobTier      Candidate values for premium pageblob tiers.\r\n  * @property {string} PremiumPageBlobTier.P4\r\n  * @property {string} PremiumPageBlobTier.P6\r\n  * @property {string} PremiumPageBlobTier.P10\r\n  * @property {string} PremiumPageBlobTier.P20\r\n  * @property {string} PremiumPageBlobTier.P30\r\n  * @property {string} PremiumPageBlobTier.P40\r\n  * @property {string} PremiumPageBlobTier.P50\r\n  * @property {string} PremiumPageBlobTier.P60\r\n  * @property {object} StandardBlobTier         Candidate values for standard blobs tiers.\r\n  * @property {string} StandardBlobTier.HOT\r\n  * @property {string} StandardBlobTier.COOL\r\n  * @property {string} StandardBlobTier.ARCHIVE\r\n  */\r\n  BlobTier: {\r\n    PremiumPageBlobTier: {\r\n      P4: 'P4',\r\n      P6: 'P6',\r\n      P10: 'P10',\r\n      P20: 'P20',\r\n      P30: 'P30',\r\n      P40: 'P40',\r\n      P50: 'P50',\r\n      P60: 'P60'\r\n    },\r\n    StandardBlobTier: {\r\n      HOT: 'Hot',\r\n      COOL: 'Cool',\r\n      ARCHIVE: 'Archive'\r\n    }\r\n  }\r\n};\r\n\r\nmodule.exports = BlobUtilities;\r\n},{}],43:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar Constants = require('./../../../common/util/constants');\r\nvar EventEmitter = require('events').EventEmitter;\r\nvar BlobUtilities = require('./../blobutilities');\r\n\r\n/**\r\n* BlockBlob block range stream\r\n*/\r\nfunction BlockRangeStream(blobServiceClient, container, blob, options) {\r\n  this.blobServiceClient = blobServiceClient;\r\n  this.container = container;\r\n  this.blob = blob;\r\n  this._emitter = new EventEmitter();\r\n  this._paused = false;\r\n  this._emittedAll = false;\r\n  this._emittedRangeType = null;\r\n  this._emittedRangeIndex = null;\r\n  this._offset = 0;\r\n  this._rangelist = [];\r\n  this._isEmitting = false;\r\n  if (options.rangeStart) {\r\n    this._startOffset = options.rangeStart;\r\n  } else {\r\n    this._startOffset = 0;\r\n  }\r\n  if (options.rangeEnd) {\r\n    this._endOffset = options.rangeEnd;\r\n  } else {\r\n    this._endOffset = Number.MAX_VALUE;\r\n  }\r\n}\r\n\r\n/**\r\n* Add event listener\r\n*/\r\nBlockRangeStream.prototype.on = function (event, listener) {\r\n  this._emitter.on(event, listener);\r\n};\r\n\r\n/**\r\n* Get block list\r\n*/\r\nBlockRangeStream.prototype.list = function (options, callback) {\r\n  if (!options) {\r\n    options = {};\r\n  }\r\n  \r\n  if (!options.blockListFilter) {\r\n    options.blockListFilter = BlobUtilities.BlockListFilter.ALL;\r\n  }\r\n  \r\n  var self = this;\r\n  this.blobServiceClient.listBlocks(this.container, this.blob, options.blockListFilter, options, function (error, blocklist, response) {\r\n    if (error) {\r\n      callback(error);\r\n    } else {\r\n      var totalSize = parseInt(response.headers[Constants.HeaderConstants.BLOB_CONTENT_LENGTH], 10);\r\n      if (!blocklist.CommittedBlocks) {\r\n        //Convert single block blob to block blob range\r\n        var name = 'NODESDK_BLOCKBLOB_RANGESTREAM';\r\n        blocklist.CommittedBlocks = [{ Name : name, Size : totalSize }];\r\n      }\r\n      \r\n      self._rangelist = blocklist;\r\n      self._emitBlockList();\r\n      self = blocklist = null;\r\n    }\r\n  });\r\n};\r\n\r\n/**\r\n* Emit block ranges\r\n*/\r\nBlockRangeStream.prototype._emitBlockList = function () {\r\n  if (this._paused || this._emittedAll || this._isEmitting) return;\r\n  \r\n  var self = this;\r\n  this._getTypeList(function () {\r\n    self._rangelist = null;\r\n    self._emittedAll = true;\r\n    self._emitter.emit('end');\r\n  });\r\n};\r\n\r\n/**\r\n* Get the block type list\r\n*/\r\nBlockRangeStream.prototype._getTypeList = function (callback) {\r\n  this._isEmitting = true;\r\n  try {\r\n    var typeStart = false;\r\n    if (this._rangelist) {\r\n      for (var blockType in this._rangelist) {\r\n        if (this._rangelist.hasOwnProperty(blockType)) {\r\n          if (this._emittedRangeType === null || typeStart || this._emittedRangeType == blockType) {\r\n            this._emittedRangeType = blockType;\r\n            typeStart = true;\r\n          } else if (this._emittedRangeType !== blockType) {\r\n            continue;\r\n          }\r\n          \r\n          if (this._paused) {\r\n            return;\r\n          }\r\n          \r\n          this._emitBlockRange (blockType, callback);\r\n        }\r\n      }\r\n    }\r\n  } finally {\r\n    this._isEmitting = false;\r\n  }\r\n};\r\n\r\n/**\r\n* Get the block list\r\n*/\r\nBlockRangeStream.prototype._emitBlockRange  = function (blockType, callback) {\r\n  var blockList = this._rangelist[blockType];\r\n  var indexStart = false;\r\n  for (var blockIndex = 0; blockIndex < blockList.length; blockIndex++) {\r\n    if (this._emittedRangeIndex === null || indexStart || this._emittedRangeIndex === blockIndex) {\r\n      this._emittedRangeIndex = blockIndex;\r\n      indexStart = true;\r\n    } else if (this._emittedRangeIndex !== blockIndex) {\r\n      continue;\r\n    }\r\n    \r\n    if (this._paused) {\r\n      return;\r\n    }\r\n    \r\n    var range = blockList[blockIndex];\r\n    // follow the same naming convention of page ranges and json\r\n    range.name = range.Name;\r\n    range.type = blockType;\r\n    range.start = this._offset;\r\n    this._offset += parseInt(range.Size, 10);\r\n    range.end = this._offset - 1;\r\n    delete range.Name;\r\n    delete range.Size;\r\n    \r\n    if (range.start > this._endOffset) {\r\n      break;\r\n    } else if (range.end < this._startOffset) {\r\n      continue;\r\n    } else {\r\n      range.start = Math.max(range.start, this._startOffset);\r\n      range.end = Math.min(range.end, this._endOffset);\r\n      range.size = range.end - range.start + 1;\r\n      range.dataSize = range.size;\r\n      this._emitter.emit('range', range);\r\n    }\r\n  }\r\n\r\n  // remove the used range and avoid memory leak\r\n  this._rangelist[blockType] = null;\r\n\r\n  callback();\r\n};\r\n\r\n/**\r\n* Pause the stream\r\n*/\r\nBlockRangeStream.prototype.pause = function () {\r\n  this._paused = true;\r\n};\r\n\r\n/**\r\n* Resume the stream\r\n*/\r\nBlockRangeStream.prototype.resume = function () {\r\n  this._paused = false;\r\n  if (!this._isEmitting) {\r\n    this._emitBlockList();\r\n  }\r\n};\r\n\r\n/**\r\n* Stop the stream\r\n*/\r\nBlockRangeStream.prototype.stop = function () {\r\n  this.pause();\r\n  this._emittedAll = true;\r\n  this._emitter.emit('end');\r\n};\r\n\r\nmodule.exports = BlockRangeStream;\r\n\r\n},{\"./../../../common/util/constants\":32,\"./../blobutilities\":42,\"events\":59}],44:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\nvar util = require('util');\r\nvar RangeStream = require('./../../../common/streams/rangestream');\r\nvar Constants = require('./../../../common/util/constants');\r\n\r\n/**\r\n* PageBlob page range stream\r\n*/\r\nfunction PageRangeStream(blobServiceClient, container, blob, options) {\r\n  PageRangeStream['super_'].call(this, blobServiceClient, container, blob, options);\r\n  \r\n  if (options.minRangeSize) {\r\n    this._minRangeSize = options.minRangeSize;\r\n  } else {\r\n    this._minRangeSize = Constants.BlobConstants.MIN_WRITE_PAGE_SIZE_IN_BYTES;\r\n  }\r\n  if (options.maxRangeSize) {\r\n    this._maxRangeSize = options.maxRangeSize;\r\n  } else {\r\n    this._maxRangeSize = Constants.BlobConstants.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES;\r\n  }\r\n  this._lengthHeader = Constants.HeaderConstants.BLOB_CONTENT_LENGTH;\r\n  this._listFunc = blobServiceClient.listPageRanges;\r\n}\r\n\r\nutil.inherits(PageRangeStream, RangeStream);\r\n\r\nmodule.exports = PageRangeStream;\r\n\r\n},{\"./../../../common/streams/rangestream\":29,\"./../../../common/util/constants\":32,\"util\":117}],45:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar _ = require('underscore');\r\n\r\nvar azureCommon = require('./../../../common/common.core');\r\nvar azureutil = azureCommon.util;\r\nvar Constants = azureCommon.Constants;\r\nvar HeaderConstants = Constants.HeaderConstants;\r\n\r\n/**\r\n* Creates a new BlobResult object.\r\n* @class\r\n* The BlobResult class is used to store the blob information.\r\n* \r\n * @property  {string}                      container                             The container name.\r\n * @property  {string}                      name                                  The blob name.\r\n * @property  {object}                      metadata                              The metadata key/value pair.\r\n * @property  {string}                      etag                                  The etag.\r\n * @property  {string}                      lastModified                          The date/time that the blob was last modified.\r\n * @property  {string}                      contentLength                         The size of the blob in bytes.\r\n * @property  {string}                      blobType                              The blob type.\r\n * @property  {boolean}                     isIncrementalCopy                     If the blob is incremental copy blob.\r\n * @property  {string}                      requestId                             The request id.\r\n * @property  {string}                      sequenceNumber                        The current sequence number for a page blob.\r\n * @property  {string}                      contentRange                          The content range.\r\n * @property  {string}                      committedBlockCount                   The committed block count.\r\n * @property  {string}                      serverEncrypted                       If the blob data and application metadata are completely encrypted using the specified algorithm. true/false.\r\n * @property  {object}                      contentSettings                       The content settings.\r\n * @property  {string}                      contentSettings.contentType           The content type.\r\n * @property  {string}                      contentSettings.contentEncoding       The content encoding.\r\n * @property  {string}                      contentSettings.contentLanguage       The content language.\r\n * @property  {string}                      contentSettings.cacheControl          The cache control.\r\n * @property  {string}                      contentSettings.contentDisposition    The content disposition.\r\n * @property  {string}                      contentSettings.contentMD5            The content MD5 hash.\r\n * @property  {object}                      lease                                 The lease information.\r\n * @property  {string}                      lease.id                              The lease id.\r\n * @property  {string}                      lease.status                          The lease status.\r\n * @property  {string}                      lease.state                           The lease state.\r\n * @property  {string}                      lease.duration                        The lease duration.\r\n * @property  {object}                      copy                                  The copy information.\r\n * @property  {string}                      copy.id                               The copy id.\r\n * @property  {string}                      copy.status                           The copy status.\r\n * @property  {string}                      copy.completionTime                   The copy completion time. \r\n * @property  {string}                      copy.statusDescription                The copy status description.\r\n * @property  {string}                      copy.destinationSnapshot              The snapshot time of the last successful incremental copy snapshot for this blob.\r\n * @property  {string}                      copy.progress                         The copy progress.\r\n * @property  {string}                      copy.source                           The copy source.\r\n * \r\n* @constructor\r\n* @param {string} [container]  The container name.\r\n* @param {string} [name]       The blob name.\r\n*/\r\nfunction BlobResult(container, name) {\r\n  if (container) {\r\n    this.container = container;\r\n  }\r\n\r\n  if (name) {\r\n    this.name = name;\r\n  }\r\n}\r\n\r\nBlobResult.parse = function (blobXml) {\r\n  var blobResult = new BlobResult();\r\n  \r\n  for (var propertyName in blobXml) {\r\n    if (blobXml.hasOwnProperty(propertyName)) {\r\n      if (propertyName === 'Properties') {\r\n        //  Lift out the properties onto the main object to keep consistent across all APIs like: getBlobProperties\r\n        azureutil.setPropertyValueFromXML(blobResult, blobXml[propertyName], true);\r\n      } else if (propertyName === 'Metadata') {\r\n        var resultPropertyName = azureutil.normalizePropertyNameFromXML(propertyName);\r\n        blobResult[resultPropertyName] = {};\r\n        azureutil.setPropertyValueFromXML(blobResult[resultPropertyName], blobXml[propertyName], false);\r\n      } else {\r\n        blobResult[propertyName.toLowerCase()] = blobXml[propertyName];\r\n      }\r\n    }\r\n  }\r\n\r\n  if (blobResult.isIncrementalCopy !== undefined) {\r\n    blobResult.isIncrementalCopy = (blobResult.isIncrementalCopy === 'true');\r\n  }\r\n\r\n  // convert accessTierInferred to boolean type\r\n  if (blobResult.accessTierInferred !== undefined) {\r\n    blobResult.accessTierInferred = (blobResult.accessTierInferred === 'true');\r\n  }\r\n\r\n  if (blobResult.deleted !== undefined) {\r\n    blobResult.deleted = (blobResult.deleted == 'true');\r\n  }\r\n\r\n  if (blobResult.remainingRetentionDays !== undefined) {\r\n    blobResult.remainingRetentionDays = parseInt(blobResult.remainingRetentionDays);\r\n  }\r\n\r\n  return blobResult;\r\n};\r\n\r\nvar headersForProperties = {\r\n  'lastModified': 'LAST_MODIFIED',\r\n  'creationTime': 'CREATION_TIME',\r\n  'etag': 'ETAG',\r\n  'sequenceNumber': 'SEQUENCE_NUMBER',\r\n  'blobType': 'BLOB_TYPE',\r\n  'contentLength': 'CONTENT_LENGTH',\r\n  'blobContentLength': 'BLOB_CONTENT_LENGTH',\r\n  'contentRange': 'CONTENT_RANGE',\r\n  'committedBlockCount': 'BLOB_COMMITTED_BLOCK_COUNT',\r\n  'serverEncrypted': 'SERVER_ENCRYPTED',\r\n  'requestId': 'REQUEST_ID',\r\n  \r\n  'range': 'RANGE',\r\n  'blobRange': 'STORAGE_RANGE',\r\n  'getContentMd5': 'RANGE_GET_CONTENT_MD5',\r\n  'acceptRanges': 'ACCEPT_RANGES',\r\n  'appendOffset': 'BLOB_APPEND_OFFSET',\r\n\r\n  'accessTier': 'ACCESS_TIER',\r\n  'accessTierChangeTime': 'ACCESS_TIER_CHANGE_TIME',  \r\n  'accessTierInferred': 'ACCESS_TIER_INFERRED',\r\n  'archiveStatus': 'ARCHIVE_STATUS',\r\n\r\n  'isIncrementalCopy': 'INCREMENTAL_COPY',\r\n  \r\n  // ContentSettings\r\n  'contentSettings.contentType': 'CONTENT_TYPE',\r\n  'contentSettings.contentEncoding': 'CONTENT_ENCODING',\r\n  'contentSettings.contentLanguage': 'CONTENT_LANGUAGE',\r\n  'contentSettings.cacheControl': 'CACHE_CONTROL',\r\n  'contentSettings.contentDisposition': 'CONTENT_DISPOSITION',\r\n  'contentSettings.contentMD5': 'CONTENT_MD5',\r\n\r\n  // Lease\r\n  'lease.id': 'LEASE_ID',\r\n  'lease.status': 'LEASE_STATUS',\r\n  'lease.duration': 'LEASE_DURATION',\r\n  'lease.state': 'LEASE_STATE',\r\n\r\n  // Copy\r\n  'copy.id': 'COPY_ID',\r\n  'copy.status': 'COPY_STATUS',\r\n  'copy.source': 'COPY_SOURCE',\r\n  'copy.progress': 'COPY_PROGRESS',\r\n  'copy.completionTime': 'COPY_COMPLETION_TIME',\r\n  'copy.statusDescription': 'COPY_STATUS_DESCRIPTION',\r\n  'copy.destinationSnapshot': 'COPY_DESTINATION_SNAPSHOT'\r\n};\r\n\r\nBlobResult.prototype.getPropertiesFromHeaders = function (headers) {\r\n  var self = this;\r\n\r\n  var setBlobPropertyFromHeaders = function (blobProperty, headerProperty) {\r\n    if (!azureutil.tryGetValueChain(self, blobProperty.split('.'), null) && headers[headerProperty.toLowerCase()]) {\r\n      azureutil.setObjectInnerPropertyValue(self, blobProperty.split('.'), headers[headerProperty.toLowerCase()]);\r\n      \r\n      if (blobProperty === 'copy.progress') {\r\n        var info = azureutil.parseCopyProgress(self.copy.progress);\r\n        self.copy.bytesCopied = parseInt(info.bytesCopied);\r\n        self.copy.totalBytes = parseInt(info.totalBytes);\r\n      }\r\n    }\r\n  };\r\n\r\n  // For range get, 'x-ms-blob-content-md5' indicate the overall MD5 of the blob. Try to set the contentMD5 using this header if it presents\r\n  setBlobPropertyFromHeaders('contentSettings.contentMD5', HeaderConstants.BLOB_CONTENT_MD5);\r\n  \r\n  _.chain(headersForProperties).pairs().each(function (pair) {\r\n    var property = pair[0];\r\n    var header = HeaderConstants[pair[1]];\r\n    setBlobPropertyFromHeaders(property, header);\r\n  });\r\n\r\n  // convert isIncrementalCopy to boolean type\r\n  if (self.isIncrementalCopy !== undefined) {\r\n    self.isIncrementalCopy = (self.isIncrementalCopy === 'true');\r\n  }\r\n\r\n  // convert accessTierInferred to boolean type  \r\n  if (self.accessTierInferred !== undefined) {\r\n    self.accessTierInferred = (self.accessTierInferred == 'true');\r\n  }\r\n};\r\n\r\n/**\r\n* This method sets the HTTP headers and is used by all methods except setBlobProperties and commitBlocks. Those 2 methods will set the x-ms-* headers using setPropertiesFromBlob.\r\n* @ignore\r\n*/\r\nBlobResult.setHeadersFromBlob = function (webResource, blob) {\r\n  var setHeaderPropertyFromBlob = function (headerProperty, blobProperty) {\r\n    var blobPropertyValue = azureutil.tryGetValueChain(blob, blobProperty.split('.'), null);\r\n    if (blobPropertyValue) {\r\n      webResource.withHeader(headerProperty, blobPropertyValue);\r\n    }\r\n  };\r\n\r\n  if (blob) {\r\n    // Content-Type\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_TYPE, 'contentSettings.contentType');\r\n\r\n    // Content-Encoding\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_ENCODING, 'contentSettings.contentEncoding');\r\n\r\n    // Content-Language\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_LANGUAGE, 'contentSettings.contentLanguage');\r\n\r\n    // Content-Disposition\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_DISPOSITION, 'contentSettings.contentDisposition');\r\n\r\n    // Cache-Control\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CACHE_CONTROL, 'contentSettings.cacheControl');\r\n\r\n    // Blob's Content-MD5\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_MD5, 'contentSettings.contentMD5');\r\n\r\n    // Content-Length\r\n    setHeaderPropertyFromBlob(HeaderConstants.CONTENT_LENGTH, 'contentLength');\r\n\r\n    // transactional Content-MD5\r\n    setHeaderPropertyFromBlob(HeaderConstants.CONTENT_MD5, 'transactionalContentMD5');\r\n\r\n    // Range\r\n    if (!azureutil.objectIsNull(blob.rangeStart)) {\r\n      var range = 'bytes=' + blob.rangeStart + '-';\r\n\r\n      if (!azureutil.objectIsNull(blob.rangeEnd)) {\r\n        range += blob.rangeEnd;\r\n      }\r\n\r\n      webResource.withHeader(HeaderConstants.RANGE, range);\r\n    }\r\n\r\n    // Source Range\r\n    if (!azureutil.objectIsNull(blob.sourceRangeStart)) {\r\n      var sourceRange = 'bytes=' + blob.sourceRangeStart + '-';\r\n\r\n      if (!azureutil.objectIsNull(blob.sourceRangeEnd)) {\r\n        sourceRange += blob.sourceRangeEnd;\r\n      }\r\n\r\n      webResource.withHeader(HeaderConstants.SOURCE_RANGE, sourceRange);\r\n    }\r\n\r\n    // Blob Type\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_TYPE, 'blobType');\r\n\r\n    // Lease id\r\n    setHeaderPropertyFromBlob(HeaderConstants.LEASE_ID, 'leaseId');\r\n\r\n    // Sequence number\r\n    setHeaderPropertyFromBlob(HeaderConstants.SEQUENCE_NUMBER, 'sequenceNumber');\r\n    setHeaderPropertyFromBlob(HeaderConstants.SEQUENCE_NUMBER_ACTION, 'sequenceNumberAction');\r\n\r\n    if (blob.metadata) {\r\n      webResource.addOptionalMetadataHeaders(blob.metadata);\r\n    }\r\n  }\r\n};\r\n\r\n/**\r\n* This method sets the x-ms-* headers and is used by setBlobProperties and commitBlocks. All other methods will set the regular HTTP headers using setHeadersFromBlob.\r\n* @ignore\r\n*/\r\nBlobResult.setPropertiesFromBlob = function (webResource, blob) {\r\n  var setHeaderPropertyFromBlob = function (headerProperty, blobProperty) {\r\n    var propertyValue = azureutil.tryGetValueChain(blob, blobProperty.split('.'), null);\r\n    if (propertyValue) {\r\n      webResource.withHeader(headerProperty, propertyValue);\r\n    }\r\n  };\r\n\r\n  if (blob) {\r\n    // Content-Type\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_TYPE, 'contentSettings.contentType');\r\n\r\n    // Content-Encoding\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_ENCODING, 'contentSettings.contentEncoding');\r\n\r\n    // Content-Language\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_LANGUAGE, 'contentSettings.contentLanguage');\r\n\r\n    // Content-Disposition\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_DISPOSITION, 'contentSettings.contentDisposition');\r\n\r\n    // Cache-Control\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CACHE_CONTROL, 'contentSettings.cacheControl');\r\n\r\n    // Content-MD5\r\n    setHeaderPropertyFromBlob(HeaderConstants.BLOB_CONTENT_MD5, 'contentSettings.contentMD5');\r\n\r\n    // Lease id\r\n    setHeaderPropertyFromBlob(HeaderConstants.LEASE_ID, 'leaseId');\r\n\r\n    if (blob.metadata) {\r\n      webResource.addOptionalMetadataHeaders(blob.metadata);\r\n    }\r\n  }\r\n};\r\n\r\nmodule.exports = BlobResult;\r\n\r\n},{\"./../../../common/common.core\":3,\"underscore\":111}],46:[function(require,module,exports){\r\n(function (Buffer){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar _ = require('underscore');\r\n\r\nvar azureCommon = require('./../../../common/common.core');\r\nvar xmlbuilder = azureCommon.xmlbuilder;\r\nvar Constants = azureCommon.Constants;\r\n\r\n/**\r\n* Builds an XML representation for a block list.\r\n*\r\n* @param  {array}  The block list.\r\n* @return {string} The XML block list.\r\n*/\r\nexports.serialize = function (blockListJs) {\r\n  var blockListDoc = xmlbuilder.create(Constants.BlobConstants.BLOCK_LIST_ELEMENT, { version: '1.0', encoding: 'utf-8' });\r\n\r\n  if (_.isArray(blockListJs.LatestBlocks)) {\r\n    blockListJs.LatestBlocks.forEach(function (block) {\r\n      blockListDoc = blockListDoc.ele(Constants.BlobConstants.LATEST_ELEMENT)\r\n        .txt(Buffer.from(block).toString('base64'))\r\n        .up();\r\n    });\r\n  }\r\n\r\n  if (_.isArray(blockListJs.CommittedBlocks)) {\r\n    blockListJs.CommittedBlocks.forEach(function (block) {\r\n      blockListDoc = blockListDoc.ele(Constants.BlobConstants.COMMITTED_ELEMENT)\r\n        .txt(Buffer.from(block).toString('base64'))\r\n        .up();\r\n    });\r\n  }\r\n\r\n  if (_.isArray(blockListJs.UncommittedBlocks)) {\r\n    blockListJs.UncommittedBlocks.forEach(function (block) {\r\n      blockListDoc = blockListDoc.ele(Constants.BlobConstants.UNCOMMITTED_ELEMENT)\r\n        .txt(Buffer.from(block).toString('base64'))\r\n        .up();\r\n    });\r\n  }\r\n\r\n  return blockListDoc.doc().toString();\r\n};\r\n\r\nexports.parse = function (blockListXml) {\r\n  var blockListResult = {};\r\n\r\n  if (blockListXml.CommittedBlocks && blockListXml.CommittedBlocks.Block) {\r\n    blockListResult.CommittedBlocks = blockListXml.CommittedBlocks.Block;\r\n    if (!_.isArray(blockListResult.CommittedBlocks)) {\r\n      blockListResult.CommittedBlocks = [blockListResult.CommittedBlocks];\r\n    }\r\n    blockListResult.CommittedBlocks.forEach(function(block) {\r\n      block.Name = Buffer.from(block.Name, 'base64').toString();\r\n    });\r\n  }\r\n\r\n  if (blockListXml.UncommittedBlocks && blockListXml.UncommittedBlocks.Block) {\r\n    blockListResult.UncommittedBlocks = blockListXml.UncommittedBlocks.Block;\r\n    if (!_.isArray(blockListResult.UncommittedBlocks)) {\r\n      blockListResult.UncommittedBlocks = [blockListResult.UncommittedBlocks];\r\n    }\r\n    blockListResult.UncommittedBlocks.forEach(function(block) {\r\n      block.Name = Buffer.from(block.Name, 'base64').toString();\r\n    });\r\n  }\r\n\r\n  return blockListResult;\r\n};\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"./../../../common/common.core\":3,\"buffer\":56,\"underscore\":111}],47:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar azureCommon = require('./../../../common/common.core');\r\nvar azureutil = azureCommon.util;\r\nvar Constants = azureCommon.Constants;\r\n\r\nvar HeaderConstants = Constants.HeaderConstants;\r\nvar BlobUtilities = require('../blobutilities');\r\n\r\n/**\r\n* Creates a new ContainerResult object.\r\n* @class\r\n* The ContainerResult class is used to store the container information.\r\n* \r\n * @property  {string}                      name                                  The container name.\r\n * @property  {string}                      publicAccessLevel                     The public access level.\r\n * @property  {object}                      metadata                              The metadata key/value pair.\r\n * @property  {string}                      etag                                  The etag.\r\n * @property  {string}                      lastModified                          The date/time that the container was last modified.\r\n * @property  {string}                      requestId                             The request id.\r\n * @property  {object}                      lease                                 The lease information.\r\n * @property  {string}                      lease.status                          The lease status.\r\n * @property  {string}                      lease.state                           The lease state.\r\n * @property  {string}                      lease.duration                        The lease duration.\r\n * \r\n* @constructor\r\n* @param {string} [container]               The container name.\r\n* @param {string} [publicAccessLevel]       The public access level.\r\n*/\r\nfunction ContainerResult(name, publicAccessLevel) {\r\n  if (name) {\r\n    this.name = name;\r\n  }\r\n\r\n  if (publicAccessLevel) {\r\n    this.publicAccessLevel = publicAccessLevel;\r\n  }\r\n}\r\n\r\nContainerResult.parse = function (containerXml) {\r\n  var containerResult = new ContainerResult();\r\n  \r\n  for (var propertyName in containerXml) {\r\n    if (containerXml.hasOwnProperty(propertyName)) {\r\n      if (propertyName === 'Properties') {\r\n        //  Lift out the properties onto the main object to keep consistent across all APIs like: getContainerProperties\r\n        azureutil.setPropertyValueFromXML(containerResult, containerXml[propertyName], true);\r\n      } else if (propertyName === 'Metadata') {\r\n        var resultPropertyName = azureutil.normalizePropertyNameFromXML(propertyName);\r\n        containerResult[resultPropertyName] = {};\r\n        azureutil.setPropertyValueFromXML(containerResult[resultPropertyName], containerXml[propertyName], false);\r\n      } else {\r\n        containerResult[propertyName.toLowerCase()] = containerXml[propertyName];\r\n      }\r\n    }\r\n  }\r\n\r\n  if (!containerResult.publicAccessLevel) {\r\n    containerResult.publicAccessLevel = BlobUtilities.BlobContainerPublicAccessType.OFF;\r\n  }\r\n\r\n  // convert hasImmutabilityPolicy to boolean type\r\n  if (containerResult.hasImmutabilityPolicy !== undefined) {\r\n    containerResult.hasImmutabilityPolicy = (containerResult.hasImmutabilityPolicy === 'true');\r\n  }\r\n\r\n  // convert hasLegalHold to boolean type\r\n  if (containerResult.hasLegalHold !== undefined) {\r\n    containerResult.hasLegalHold = (containerResult.hasLegalHold === 'true');\r\n  }\r\n\r\n  return containerResult;\r\n};\r\n\r\nContainerResult.prototype.getPropertiesFromHeaders = function (headers) {\r\n  var self = this;\r\n  \r\n  var setContainerPropertyFromHeaders = function (containerProperty, headerProperty) {\r\n    if (!azureutil.tryGetValueChain(self, containerProperty.split('.'), null) && headers[headerProperty.toLowerCase()]) {\r\n      azureutil.setObjectInnerPropertyValue(self, containerProperty.split('.'), headers[headerProperty.toLowerCase()]);\r\n    }\r\n  };\r\n\r\n  setContainerPropertyFromHeaders('etag', HeaderConstants.ETAG);\r\n  setContainerPropertyFromHeaders('lastModified', HeaderConstants.LAST_MODIFIED);\r\n  setContainerPropertyFromHeaders('lease.status', HeaderConstants.LEASE_STATUS);\r\n  setContainerPropertyFromHeaders('lease.state', HeaderConstants.LEASE_STATE);\r\n  setContainerPropertyFromHeaders('lease.duration', HeaderConstants.LEASE_DURATION);\r\n  setContainerPropertyFromHeaders('requestId', HeaderConstants.REQUEST_ID);\r\n  setContainerPropertyFromHeaders('hasImmutabilityPolicy', HeaderConstants.HAS_IMMUTABILITY_POLICY);\r\n  setContainerPropertyFromHeaders('hasLegalHold', HeaderConstants.HAS_LEGAL_HOLD);\r\n\r\n  // convert hasImmutabilityPolicy to boolean type\r\n  if (self.hasImmutabilityPolicy !== undefined) {\r\n    self.hasImmutabilityPolicy = (self.hasImmutabilityPolicy === 'true');\r\n  }\r\n\r\n  // convert hasLegalHold to boolean type\r\n  if (self.hasLegalHold !== undefined) {\r\n    self.hasLegalHold = (self.hasLegalHold === 'true');\r\n  }\r\n\r\n  if (!self.publicAccessLevel) {\r\n    self.publicAccessLevel = BlobUtilities.BlobContainerPublicAccessType.OFF;\r\n    if (headers[HeaderConstants.BLOB_PUBLIC_ACCESS]) {\r\n      self.publicAccessLevel = headers[HeaderConstants.BLOB_PUBLIC_ACCESS];\r\n    }\r\n  }\r\n\r\n  if (self.publicAccessLevel === 'true') {\r\n    // The container was marked for full public read access using a version prior to 2009-09-19.\r\n    self.publicAccessLevel = BlobUtilities.BlobContainerPublicAccessType.CONTAINER;\r\n  }\r\n};\r\n\r\n/**\r\n* The container ACL settings.\r\n* @typedef    {object}                        ContainerAclResult\r\n* @extends    {ContainerResult}\r\n* @property   {Object.<string, AccessPolicy>}    signedIdentifiers   The container ACL settings. See `[AccessPolicy]{@link AccessPolicy}` for detailed information.\r\n*/\r\n\r\nmodule.exports = ContainerResult;\r\n},{\"../blobutilities\":42,\"./../../../common/common.core\":3}],48:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Module dependencies.\r\nvar Constants = require('./../../../common/common.core').Constants;\r\nvar HeaderConstants = Constants.HeaderConstants;\r\n\r\n\r\n/**\r\n* Creates a new LeaseResult object.\r\n* @class\r\n* The LeaseResult class is used to store the lease information.\r\n* \r\n * @property  {string}                      container                         The container name.\r\n * @property  {string}                      blob                              The blob name.\r\n * @property  {string}                      id                                The lease id.\r\n * @property  {string}                      time                              Approximate time remaining in the lease period, in seconds.\r\n * @property  {string}                      etag                              The etag.\r\n * @property  {string}                      lastModified                      The date/time that the lease was last modified.\r\n * \r\n* @constructor\r\n* @param {string} [container]               The container name.\r\n* @param {string} [blob]                    The blob name.\r\n* @param {string} [id]                      The lease id.\r\n* @param {string} [time]                    Approximate time remaining in the lease period, in seconds.\r\n*/\r\nfunction LeaseResult(container, blob, id, time) {\r\n  if (container) {\r\n    this.container = container;\r\n  }\r\n\r\n  if (blob) {\r\n    this.blob = blob;\r\n  }\r\n\r\n  if (id) {\r\n    this.id = id;\r\n  }\r\n\r\n  if (time) {\r\n    this.time = time;\r\n  }\r\n}\r\n\r\nLeaseResult.prototype.getPropertiesFromHeaders = function (headers) {\r\n  var self = this;\r\n\r\n  if (!self['id'] && headers[HeaderConstants.LEASE_ID]) {\r\n    self['id'] = headers[HeaderConstants.LEASE_ID];\r\n  }\r\n\r\n  if (!self['time'] && headers[HeaderConstants.LEASE_TIME]) {\r\n    self['time'] = parseInt(headers[HeaderConstants.LEASE_TIME], 10);\r\n  }\r\n\r\n  self['etag'] = headers[HeaderConstants.ETAG];\r\n  self['lastModified'] = headers[HeaderConstants.LAST_MODIFIED.toLowerCase()];\r\n};\r\n\r\nmodule.exports = LeaseResult;\r\n},{\"./../../../common/common.core\":3}],49:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Expose 'FileUtilities'.\r\nexports = module.exports;\r\n\r\n/**\r\n* Defines constants, enums, and utility functions for use with the File service.\r\n* @namespace FileUtilities\r\n*/\r\nvar FileUtilities = {\r\n  /**\r\n  * Permission types\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  SharedAccessPermissions: {\r\n    READ: 'r',\r\n    CREATE: 'c',\r\n    WRITE: 'w',\r\n    DELETE: 'd',\r\n    LIST: 'l'\r\n  },\r\n\r\n  /**\r\n  * Listing details.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  ListingDetails: {\r\n    METADATA: 'metadata'\r\n  },\r\n\r\n  /**\r\n  * File and share public access types.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  SharePublicAccessType: {\r\n    OFF: null,\r\n    SHARE: 'share',\r\n    FILE: 'file'\r\n  },\r\n\r\n  /**\r\n  * Deletion options for share snapshots\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  ShareSnapshotDeleteOptions: {\r\n    SHARE_AND_SNAPSHOTS: 'include'\r\n  },\r\n};\r\n\r\nmodule.exports = FileUtilities;\r\n},{}],50:[function(require,module,exports){\r\n// \r\n// Copyright (c) Microsoft and contributors.  All rights reserved.\r\n// \r\n// Licensed under the Apache License, Version 2.0 (the \"License\");\r\n// you may not use this file except in compliance with the License.\r\n// You may obtain a copy of the License at\r\n//   http://www.apache.org/licenses/LICENSE-2.0\r\n// \r\n// Unless required by applicable law or agreed to in writing, software\r\n// distributed under the License is distributed on an \"AS IS\" BASIS,\r\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n// \r\n// See the License for the specific language governing permissions and\r\n// limitations under the License.\r\n// \r\n\r\n// Expose 'HeaderConstants'.\r\nexports = module.exports;\r\n\r\n/**\r\n* Defines constants, enums, and utility functions for use with the Table service.\r\n* @namespace TableUtilities\r\n*/\r\nvar TableUtilities = {\r\n  /**\r\n  * Permission types.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  SharedAccessPermissions: {\r\n    QUERY: 'r',\r\n    ADD: 'a',\r\n    UPDATE: 'u',\r\n    DELETE: 'd'\r\n  },\r\n\r\n  /**\r\n  * Payload Format.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  PayloadFormat: {\r\n    FULL_METADATA: 'application/json;odata=fullmetadata',\r\n    MINIMAL_METADATA: 'application/json;odata=minimalmetadata',\r\n    NO_METADATA: 'application/json;odata=nometadata'\r\n  },\r\n\r\n  /**\r\n  * Defines the set of Boolean operators for constructing queries.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  TableOperators: {\r\n    AND: 'and',\r\n    NOT: 'not',\r\n    OR: 'or'\r\n  },\r\n\r\n  /**\r\n  * Filter property comparison operators.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  QueryComparisons: {\r\n    EQUAL: 'eq',\r\n    NOT_EQUAL: 'ne',\r\n    GREATER_THAN: 'gt',\r\n    GREATER_THAN_OR_EQUAL: 'ge',\r\n    LESS_THAN: 'lt',\r\n    LESS_THAN_OR_EQUAL: 'le'\r\n  },\r\n\r\n  /**\r\n  * Edm types.\r\n  *\r\n  * @const\r\n  * @enum {string}\r\n  */\r\n  EdmType: {\r\n    STRING: 'Edm.String',\r\n    BINARY: 'Edm.Binary',\r\n    INT64: 'Edm.Int64',\r\n    INT32: 'Edm.Int32',\r\n    DOUBLE: 'Edm.Double',\r\n    DATETIME: 'Edm.DateTime',\r\n    GUID: 'Edm.Guid',\r\n    BOOLEAN: 'Edm.Boolean'\r\n  },\r\n\r\n  /**\r\n  * A helper to create table entities.\r\n  *\r\n  * @example\r\n  * var entGen = TableUtilities.entityGenerator;\r\n  * var entity = {  PartitionKey: entGen.String('part2'),\r\n  *        RowKey: entGen.String('row1'),\r\n  *        boolValue: entGen.Boolean(true),\r\n  *        intValue: entGen.Int32(42),\r\n  *        dateValue: entGen.DateTime(new Date(Date.UTC(2011, 10, 25))),\r\n  *       };\r\n  */\r\n  entityGenerator: (function()\r\n  {\r\n    var EntityProperty = function (value, type) {\r\n        var entityProperty = { _:value};\r\n        if (type) {\r\n          entityProperty['$'] = type;\r\n        }\r\n        return entityProperty;\r\n      };\r\n\r\n      return {\r\n      EntityProperty : EntityProperty,\r\n      \r\n      Int32 : function(value) {\r\n        return new EntityProperty(value, 'Edm.Int32');\r\n      },\r\n\r\n      Int64 : function(value) {\r\n        return new EntityProperty(value, 'Edm.Int64');\r\n      },\r\n\r\n      Binary : function(value) {\r\n        return new EntityProperty(value, 'Edm.Binary');\r\n      },\r\n\r\n      Boolean : function(value) {\r\n        return new EntityProperty(value, 'Edm.Boolean');\r\n      },\r\n\r\n      String : function(value) {\r\n        return new EntityProperty(value, 'Edm.String');\r\n      },\r\n\r\n      Guid : function(value) {\r\n        return new EntityProperty(value, 'Edm.Guid');\r\n      },\r\n\r\n      Double : function(value) {\r\n        return new EntityProperty(value, 'Edm.Double');\r\n      },\r\n\r\n      DateTime : function(value) {\r\n        return new EntityProperty(value, 'Edm.DateTime');\r\n      }\r\n    };\r\n  })()\r\n};\r\n\r\nmodule.exports = TableUtilities;\r\n},{}],51:[function(require,module,exports){\r\n'use strict'\r\n\r\nexports.byteLength = byteLength\r\nexports.toByteArray = toByteArray\r\nexports.fromByteArray = fromByteArray\r\n\r\nvar lookup = []\r\nvar revLookup = []\r\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\r\n\r\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\r\nfor (var i = 0, len = code.length; i < len; ++i) {\r\n  lookup[i] = code[i]\r\n  revLookup[code.charCodeAt(i)] = i\r\n}\r\n\r\n// Support decoding URL-safe base64 strings, as Node.js does.\r\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\r\nrevLookup['-'.charCodeAt(0)] = 62\r\nrevLookup['_'.charCodeAt(0)] = 63\r\n\r\nfunction getLens (b64) {\r\n  var len = b64.length\r\n\r\n  if (len % 4 > 0) {\r\n    throw new Error('Invalid string. Length must be a multiple of 4')\r\n  }\r\n\r\n  // Trim off extra bytes after placeholder bytes are found\r\n  // See: https://github.com/beatgammit/base64-js/issues/42\r\n  var validLen = b64.indexOf('=')\r\n  if (validLen === -1) validLen = len\r\n\r\n  var placeHoldersLen = validLen === len\r\n    ? 0\r\n    : 4 - (validLen % 4)\r\n\r\n  return [validLen, placeHoldersLen]\r\n}\r\n\r\n// base64 is 4/3 + up to two characters of the original data\r\nfunction byteLength (b64) {\r\n  var lens = getLens(b64)\r\n  var validLen = lens[0]\r\n  var placeHoldersLen = lens[1]\r\n  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\r\n}\r\n\r\nfunction _byteLength (b64, validLen, placeHoldersLen) {\r\n  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\r\n}\r\n\r\nfunction toByteArray (b64) {\r\n  var tmp\r\n  var lens = getLens(b64)\r\n  var validLen = lens[0]\r\n  var placeHoldersLen = lens[1]\r\n\r\n  var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\r\n\r\n  var curByte = 0\r\n\r\n  // if there are placeholders, only get up to the last complete 4 chars\r\n  var len = placeHoldersLen > 0\r\n    ? validLen - 4\r\n    : validLen\r\n\r\n  var i\r\n  for (i = 0; i < len; i += 4) {\r\n    tmp =\r\n      (revLookup[b64.charCodeAt(i)] << 18) |\r\n      (revLookup[b64.charCodeAt(i + 1)] << 12) |\r\n      (revLookup[b64.charCodeAt(i + 2)] << 6) |\r\n      revLookup[b64.charCodeAt(i + 3)]\r\n    arr[curByte++] = (tmp >> 16) & 0xFF\r\n    arr[curByte++] = (tmp >> 8) & 0xFF\r\n    arr[curByte++] = tmp & 0xFF\r\n  }\r\n\r\n  if (placeHoldersLen === 2) {\r\n    tmp =\r\n      (revLookup[b64.charCodeAt(i)] << 2) |\r\n      (revLookup[b64.charCodeAt(i + 1)] >> 4)\r\n    arr[curByte++] = tmp & 0xFF\r\n  }\r\n\r\n  if (placeHoldersLen === 1) {\r\n    tmp =\r\n      (revLookup[b64.charCodeAt(i)] << 10) |\r\n      (revLookup[b64.charCodeAt(i + 1)] << 4) |\r\n      (revLookup[b64.charCodeAt(i + 2)] >> 2)\r\n    arr[curByte++] = (tmp >> 8) & 0xFF\r\n    arr[curByte++] = tmp & 0xFF\r\n  }\r\n\r\n  return arr\r\n}\r\n\r\nfunction tripletToBase64 (num) {\r\n  return lookup[num >> 18 & 0x3F] +\r\n    lookup[num >> 12 & 0x3F] +\r\n    lookup[num >> 6 & 0x3F] +\r\n    lookup[num & 0x3F]\r\n}\r\n\r\nfunction encodeChunk (uint8, start, end) {\r\n  var tmp\r\n  var output = []\r\n  for (var i = start; i < end; i += 3) {\r\n    tmp =\r\n      ((uint8[i] << 16) & 0xFF0000) +\r\n      ((uint8[i + 1] << 8) & 0xFF00) +\r\n      (uint8[i + 2] & 0xFF)\r\n    output.push(tripletToBase64(tmp))\r\n  }\r\n  return output.join('')\r\n}\r\n\r\nfunction fromByteArray (uint8) {\r\n  var tmp\r\n  var len = uint8.length\r\n  var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\r\n  var parts = []\r\n  var maxChunkLength = 16383 // must be multiple of 3\r\n\r\n  // go through the array every three bytes, we'll deal with trailing stuff later\r\n  for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\r\n    parts.push(encodeChunk(\r\n      uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\r\n    ))\r\n  }\r\n\r\n  // pad the end with zeros, but make sure to not forget the extra bytes\r\n  if (extraBytes === 1) {\r\n    tmp = uint8[len - 1]\r\n    parts.push(\r\n      lookup[tmp >> 2] +\r\n      lookup[(tmp << 4) & 0x3F] +\r\n      '=='\r\n    )\r\n  } else if (extraBytes === 2) {\r\n    tmp = (uint8[len - 2] << 8) + uint8[len - 1]\r\n    parts.push(\r\n      lookup[tmp >> 10] +\r\n      lookup[(tmp >> 4) & 0x3F] +\r\n      lookup[(tmp << 2) & 0x3F] +\r\n      '='\r\n    )\r\n  }\r\n\r\n  return parts.join('')\r\n}\r\n\r\n},{}],52:[function(require,module,exports){\r\n\r\n},{}],53:[function(require,module,exports){\r\n//this file was generated\r\n\"use strict\"\r\nvar mime = module.exports = {\r\n    lookup: function (path, fallback) {\r\n  var ext = path.replace(/.*[\\.\\/]/, '').toLowerCase();\r\n\r\n  return this.types[ext] || fallback || this.default_type;\r\n}\r\n  , default_type: \"application/octet-stream\"\r\n  , types: {\r\n  \"123\": \"application/vnd.lotus-1-2-3\",\r\n  \"ez\": \"application/andrew-inset\",\r\n  \"aw\": \"application/applixware\",\r\n  \"atom\": \"application/atom+xml\",\r\n  \"atomcat\": \"application/atomcat+xml\",\r\n  \"atomsvc\": \"application/atomsvc+xml\",\r\n  \"ccxml\": \"application/ccxml+xml\",\r\n  \"cdmia\": \"application/cdmi-capability\",\r\n  \"cdmic\": \"application/cdmi-container\",\r\n  \"cdmid\": \"application/cdmi-domain\",\r\n  \"cdmio\": \"application/cdmi-object\",\r\n  \"cdmiq\": \"application/cdmi-queue\",\r\n  \"cu\": \"application/cu-seeme\",\r\n  \"davmount\": \"application/davmount+xml\",\r\n  \"dbk\": \"application/docbook+xml\",\r\n  \"dssc\": \"application/dssc+der\",\r\n  \"xdssc\": \"application/dssc+xml\",\r\n  \"ecma\": \"application/ecmascript\",\r\n  \"emma\": \"application/emma+xml\",\r\n  \"epub\": \"application/epub+zip\",\r\n  \"exi\": \"application/exi\",\r\n  \"pfr\": \"application/font-tdpfr\",\r\n  \"gml\": \"application/gml+xml\",\r\n  \"gpx\": \"application/gpx+xml\",\r\n  \"gxf\": \"application/gxf\",\r\n  \"stk\": \"application/hyperstudio\",\r\n  \"ink\": \"application/inkml+xml\",\r\n  \"inkml\": \"application/inkml+xml\",\r\n  \"ipfix\": \"application/ipfix\",\r\n  \"jar\": \"application/java-archive\",\r\n  \"ser\": \"application/java-serialized-object\",\r\n  \"class\": \"application/java-vm\",\r\n  \"js\": \"application/javascript\",\r\n  \"json\": \"application/json\",\r\n  \"jsonml\": \"application/jsonml+json\",\r\n  \"lostxml\": \"application/lost+xml\",\r\n  \"hqx\": \"application/mac-binhex40\",\r\n  \"cpt\": \"application/mac-compactpro\",\r\n  \"mads\": \"application/mads+xml\",\r\n  \"mrc\": \"application/marc\",\r\n  \"mrcx\": \"application/marcxml+xml\",\r\n  \"ma\": \"application/mathematica\",\r\n  \"nb\": \"application/mathematica\",\r\n  \"mb\": \"application/mathematica\",\r\n  \"mathml\": \"application/mathml+xml\",\r\n  \"mbox\": \"application/mbox\",\r\n  \"mscml\": \"application/mediaservercontrol+xml\",\r\n  \"metalink\": \"application/metalink+xml\",\r\n  \"meta4\": \"application/metalink4+xml\",\r\n  \"mets\": \"application/mets+xml\",\r\n  \"mods\": \"application/mods+xml\",\r\n  \"m21\": \"application/mp21\",\r\n  \"mp21\": \"application/mp21\",\r\n  \"mp4s\": \"application/mp4\",\r\n  \"doc\": \"application/msword\",\r\n  \"dot\": \"application/msword\",\r\n  \"mxf\": \"application/mxf\",\r\n  \"bin\": \"application/octet-stream\",\r\n  \"dms\": \"application/octet-stream\",\r\n  \"lrf\": \"application/octet-stream\",\r\n  \"mar\": \"application/octet-stream\",\r\n  \"so\": \"application/octet-stream\",\r\n  \"dist\": \"application/octet-stream\",\r\n  \"distz\": \"application/octet-stream\",\r\n  \"pkg\": \"application/octet-stream\",\r\n  \"bpk\": \"application/octet-stream\",\r\n  \"dump\": \"application/octet-stream\",\r\n  \"elc\": \"application/octet-stream\",\r\n  \"deploy\": \"application/octet-stream\",\r\n  \"oda\": \"application/oda\",\r\n  \"opf\": \"application/oebps-package+xml\",\r\n  \"ogx\": \"application/ogg\",\r\n  \"omdoc\": \"application/omdoc+xml\",\r\n  \"onetoc\": \"application/onenote\",\r\n  \"onetoc2\": \"application/onenote\",\r\n  \"onetmp\": \"application/onenote\",\r\n  \"onepkg\": \"application/onenote\",\r\n  \"oxps\": \"application/oxps\",\r\n  \"xer\": \"application/patch-ops-error+xml\",\r\n  \"pdf\": \"application/pdf\",\r\n  \"pgp\": \"application/pgp-encrypted\",\r\n  \"asc\": \"application/pgp-signature\",\r\n  \"sig\": \"application/pgp-signature\",\r\n  \"prf\": \"application/pics-rules\",\r\n  \"p10\": \"application/pkcs10\",\r\n  \"p7m\": \"application/pkcs7-mime\",\r\n  \"p7c\": \"application/pkcs7-mime\",\r\n  \"p7s\": \"application/pkcs7-signature\",\r\n  \"p8\": \"application/pkcs8\",\r\n  \"ac\": \"application/pkix-attr-cert\",\r\n  \"cer\": \"application/pkix-cert\",\r\n  \"crl\": \"application/pkix-crl\",\r\n  \"pkipath\": \"application/pkix-pkipath\",\r\n  \"pki\": \"application/pkixcmp\",\r\n  \"pls\": \"application/pls+xml\",\r\n  \"ai\": \"application/postscript\",\r\n  \"eps\": \"application/postscript\",\r\n  \"ps\": \"application/postscript\",\r\n  \"cww\": \"application/prs.cww\",\r\n  \"pskcxml\": \"application/pskc+xml\",\r\n  \"rdf\": \"application/rdf+xml\",\r\n  \"rif\": \"application/reginfo+xml\",\r\n  \"rnc\": \"application/relax-ng-compact-syntax\",\r\n  \"rl\": \"application/resource-lists+xml\",\r\n  \"rld\": \"application/resource-lists-diff+xml\",\r\n  \"rs\": \"application/rls-services+xml\",\r\n  \"gbr\": \"application/rpki-ghostbusters\",\r\n  \"mft\": \"application/rpki-manifest\",\r\n  \"roa\": \"application/rpki-roa\",\r\n  \"rsd\": \"application/rsd+xml\",\r\n  \"rss\": \"application/rss+xml\",\r\n  \"rtf\": \"application/rtf\",\r\n  \"sbml\": \"application/sbml+xml\",\r\n  \"scq\": \"application/scvp-cv-request\",\r\n  \"scs\": \"application/scvp-cv-response\",\r\n  \"spq\": \"application/scvp-vp-request\",\r\n  \"spp\": \"application/scvp-vp-response\",\r\n  \"sdp\": \"application/sdp\",\r\n  \"setpay\": \"application/set-payment-initiation\",\r\n  \"setreg\": \"application/set-registration-initiation\",\r\n  \"shf\": \"application/shf+xml\",\r\n  \"smi\": \"application/smil+xml\",\r\n  \"smil\": \"application/smil+xml\",\r\n  \"rq\": \"application/sparql-query\",\r\n  \"srx\": \"application/sparql-results+xml\",\r\n  \"gram\": \"application/srgs\",\r\n  \"grxml\": \"application/srgs+xml\",\r\n  \"sru\": \"application/sru+xml\",\r\n  \"ssdl\": \"application/ssdl+xml\",\r\n  \"ssml\": \"application/ssml+xml\",\r\n  \"tei\": \"application/tei+xml\",\r\n  \"teicorpus\": \"application/tei+xml\",\r\n  \"tfi\": \"application/thraud+xml\",\r\n  \"tsd\": \"application/timestamped-data\",\r\n  \"plb\": \"application/vnd.3gpp.pic-bw-large\",\r\n  \"psb\": \"application/vnd.3gpp.pic-bw-small\",\r\n  \"pvb\": \"application/vnd.3gpp.pic-bw-var\",\r\n  \"tcap\": \"application/vnd.3gpp2.tcap\",\r\n  \"pwn\": \"application/vnd.3m.post-it-notes\",\r\n  \"aso\": \"application/vnd.accpac.simply.aso\",\r\n  \"imp\": \"application/vnd.accpac.simply.imp\",\r\n  \"acu\": \"application/vnd.acucobol\",\r\n  \"atc\": \"application/vnd.acucorp\",\r\n  \"acutc\": \"application/vnd.acucorp\",\r\n  \"air\": \"application/vnd.adobe.air-application-installer-package+zip\",\r\n  \"fcdt\": \"application/vnd.adobe.formscentral.fcdt\",\r\n  \"fxp\": \"application/vnd.adobe.fxp\",\r\n  \"fxpl\": \"application/vnd.adobe.fxp\",\r\n  \"xdp\": \"application/vnd.adobe.xdp+xml\",\r\n  \"xfdf\": \"application/vnd.adobe.xfdf\",\r\n  \"ahead\": \"application/vnd.ahead.space\",\r\n  \"azf\": \"application/vnd.airzip.filesecure.azf\",\r\n  \"azs\": \"application/vnd.airzip.filesecure.azs\",\r\n  \"azw\": \"application/vnd.amazon.ebook\",\r\n  \"acc\": \"application/vnd.americandynamics.acc\",\r\n  \"ami\": \"application/vnd.amiga.ami\",\r\n  \"apk\": \"application/vnd.android.package-archive\",\r\n  \"cii\": \"application/vnd.anser-web-certificate-issue-initiation\",\r\n  \"fti\": \"application/vnd.anser-web-funds-transfer-initiation\",\r\n  \"atx\": \"application/vnd.antix.game-component\",\r\n  \"mpkg\": \"application/vnd.apple.installer+xml\",\r\n  \"m3u8\": \"application/vnd.apple.mpegurl\",\r\n  \"swi\": \"application/vnd.aristanetworks.swi\",\r\n  \"iota\": \"application/vnd.astraea-software.iota\",\r\n  \"aep\": \"application/vnd.audiograph\",\r\n  \"mpm\": \"application/vnd.blueice.multipass\",\r\n  \"bmi\": \"application/vnd.bmi\",\r\n  \"rep\": \"application/vnd.businessobjects\",\r\n  \"cdxml\": \"application/vnd.chemdraw+xml\",\r\n  \"mmd\": \"application/vnd.chipnuts.karaoke-mmd\",\r\n  \"cdy\": \"application/vnd.cinderella\",\r\n  \"cla\": \"application/vnd.claymore\",\r\n  \"rp9\": \"application/vnd.cloanto.rp9\",\r\n  \"c4g\": \"application/vnd.clonk.c4group\",\r\n  \"c4d\": \"application/vnd.clonk.c4group\",\r\n  \"c4f\": \"application/vnd.clonk.c4group\",\r\n  \"c4p\": \"application/vnd.clonk.c4group\",\r\n  \"c4u\": \"application/vnd.clonk.c4group\",\r\n  \"c11amc\": \"application/vnd.cluetrust.cartomobile-config\",\r\n  \"c11amz\": \"application/vnd.cluetrust.cartomobile-config-pkg\",\r\n  \"csp\": \"application/vnd.commonspace\",\r\n  \"cdbcmsg\": \"application/vnd.contact.cmsg\",\r\n  \"cmc\": \"application/vnd.cosmocaller\",\r\n  \"clkx\": \"application/vnd.crick.clicker\",\r\n  \"clkk\": \"application/vnd.crick.clicker.keyboard\",\r\n  \"clkp\": \"application/vnd.crick.clicker.palette\",\r\n  \"clkt\": \"application/vnd.crick.clicker.template\",\r\n  \"clkw\": \"application/vnd.crick.clicker.wordbank\",\r\n  \"wbs\": \"application/vnd.criticaltools.wbs+xml\",\r\n  \"pml\": \"application/vnd.ctc-posml\",\r\n  \"ppd\": \"application/vnd.cups-ppd\",\r\n  \"car\": \"application/vnd.curl.car\",\r\n  \"pcurl\": \"application/vnd.curl.pcurl\",\r\n  \"dart\": \"application/vnd.dart\",\r\n  \"rdz\": \"application/vnd.data-vision.rdz\",\r\n  \"uvf\": \"application/vnd.dece.data\",\r\n  \"uvvf\": \"application/vnd.dece.data\",\r\n  \"uvd\": \"application/vnd.dece.data\",\r\n  \"uvvd\": \"application/vnd.dece.data\",\r\n  \"uvt\": \"application/vnd.dece.ttml+xml\",\r\n  \"uvvt\": \"application/vnd.dece.ttml+xml\",\r\n  \"uvx\": \"application/vnd.dece.unspecified\",\r\n  \"uvvx\": \"application/vnd.dece.unspecified\",\r\n  \"uvz\": \"application/vnd.dece.zip\",\r\n  \"uvvz\": \"application/vnd.dece.zip\",\r\n  \"fe_launch\": \"application/vnd.denovo.fcselayout-link\",\r\n  \"dna\": \"application/vnd.dna\",\r\n  \"mlp\": \"application/vnd.dolby.mlp\",\r\n  \"dpg\": \"application/vnd.dpgraph\",\r\n  \"dfac\": \"application/vnd.dreamfactory\",\r\n  \"kpxx\": \"application/vnd.ds-keypoint\",\r\n  \"ait\": \"application/vnd.dvb.ait\",\r\n  \"svc\": \"application/vnd.dvb.service\",\r\n  \"geo\": \"application/vnd.dynageo\",\r\n  \"mag\": \"application/vnd.ecowin.chart\",\r\n  \"nml\": \"application/vnd.enliven\",\r\n  \"esf\": \"application/vnd.epson.esf\",\r\n  \"msf\": \"application/vnd.epson.msf\",\r\n  \"qam\": \"application/vnd.epson.quickanime\",\r\n  \"slt\": \"application/vnd.epson.salt\",\r\n  \"ssf\": \"application/vnd.epson.ssf\",\r\n  \"es3\": \"application/vnd.eszigno3+xml\",\r\n  \"et3\": \"application/vnd.eszigno3+xml\",\r\n  \"ez2\": \"application/vnd.ezpix-album\",\r\n  \"ez3\": \"application/vnd.ezpix-package\",\r\n  \"fdf\": \"application/vnd.fdf\",\r\n  \"mseed\": \"application/vnd.fdsn.mseed\",\r\n  \"seed\": \"application/vnd.fdsn.seed\",\r\n  \"dataless\": \"application/vnd.fdsn.seed\",\r\n  \"gph\": \"application/vnd.flographit\",\r\n  \"ftc\": \"application/vnd.fluxtime.clip\",\r\n  \"fm\": \"application/vnd.framemaker\",\r\n  \"frame\": \"application/vnd.framemaker\",\r\n  \"maker\": \"application/vnd.framemaker\",\r\n  \"book\": \"application/vnd.framemaker\",\r\n  \"fnc\": \"application/vnd.frogans.fnc\",\r\n  \"ltf\": \"application/vnd.frogans.ltf\",\r\n  \"fsc\": \"application/vnd.fsc.weblaunch\",\r\n  \"oas\": \"application/vnd.fujitsu.oasys\",\r\n  \"oa2\": \"application/vnd.fujitsu.oasys2\",\r\n  \"oa3\": \"application/vnd.fujitsu.oasys3\",\r\n  \"fg5\": \"application/vnd.fujitsu.oasysgp\",\r\n  \"bh2\": \"application/vnd.fujitsu.oasysprs\",\r\n  \"ddd\": \"application/vnd.fujixerox.ddd\",\r\n  \"xdw\": \"application/vnd.fujixerox.docuworks\",\r\n  \"xbd\": \"application/vnd.fujixerox.docuworks.binder\",\r\n  \"fzs\": \"application/vnd.fuzzysheet\",\r\n  \"txd\": \"application/vnd.genomatix.tuxedo\",\r\n  \"ggb\": \"application/vnd.geogebra.file\",\r\n  \"ggt\": \"application/vnd.geogebra.tool\",\r\n  \"gex\": \"application/vnd.geometry-explorer\",\r\n  \"gre\": \"application/vnd.geometry-explorer\",\r\n  \"gxt\": \"application/vnd.geonext\",\r\n  \"g2w\": \"application/vnd.geoplan\",\r\n  \"g3w\": \"application/vnd.geospace\",\r\n  \"gmx\": \"application/vnd.gmx\",\r\n  \"kml\": \"application/vnd.google-earth.kml+xml\",\r\n  \"kmz\": \"application/vnd.google-earth.kmz\",\r\n  \"gqf\": \"application/vnd.grafeq\",\r\n  \"gqs\": \"application/vnd.grafeq\",\r\n  \"gac\": \"application/vnd.groove-account\",\r\n  \"ghf\": \"application/vnd.groove-help\",\r\n  \"gim\": \"application/vnd.groove-identity-message\",\r\n  \"grv\": \"application/vnd.groove-injector\",\r\n  \"gtm\": \"application/vnd.groove-tool-message\",\r\n  \"tpl\": \"application/vnd.groove-tool-template\",\r\n  \"vcg\": \"application/vnd.groove-vcard\",\r\n  \"hal\": \"application/vnd.hal+xml\",\r\n  \"zmm\": \"application/vnd.handheld-entertainment+xml\",\r\n  \"hbci\": \"application/vnd.hbci\",\r\n  \"les\": \"application/vnd.hhe.lesson-player\",\r\n  \"hpgl\": \"application/vnd.hp-hpgl\",\r\n  \"hpid\": \"application/vnd.hp-hpid\",\r\n  \"hps\": \"application/vnd.hp-hps\",\r\n  \"jlt\": \"application/vnd.hp-jlyt\",\r\n  \"pcl\": \"application/vnd.hp-pcl\",\r\n  \"pclxl\": \"application/vnd.hp-pclxl\",\r\n  \"sfd-hdstx\": \"application/vnd.hydrostatix.sof-data\",\r\n  \"mpy\": \"application/vnd.ibm.minipay\",\r\n  \"afp\": \"application/vnd.ibm.modcap\",\r\n  \"listafp\": \"application/vnd.ibm.modcap\",\r\n  \"list3820\": \"application/vnd.ibm.modcap\",\r\n  \"irm\": \"application/vnd.ibm.rights-management\",\r\n  \"sc\": \"application/vnd.ibm.secure-container\",\r\n  \"icc\": \"application/vnd.iccprofile\",\r\n  \"icm\": \"application/vnd.iccprofile\",\r\n  \"igl\": \"application/vnd.igloader\",\r\n  \"ivp\": \"application/vnd.immervision-ivp\",\r\n  \"ivu\": \"application/vnd.immervision-ivu\",\r\n  \"igm\": \"application/vnd.insors.igm\",\r\n  \"xpw\": \"application/vnd.intercon.formnet\",\r\n  \"xpx\": \"application/vnd.intercon.formnet\",\r\n  \"i2g\": \"application/vnd.intergeo\",\r\n  \"qbo\": \"application/vnd.intu.qbo\",\r\n  \"qfx\": \"application/vnd.intu.qfx\",\r\n  \"rcprofile\": \"application/vnd.ipunplugged.rcprofile\",\r\n  \"irp\": \"application/vnd.irepository.package+xml\",\r\n  \"xpr\": \"application/vnd.is-xpr\",\r\n  \"fcs\": \"application/vnd.isac.fcs\",\r\n  \"jam\": \"application/vnd.jam\",\r\n  \"rms\": \"application/vnd.jcp.javame.midlet-rms\",\r\n  \"jisp\": \"application/vnd.jisp\",\r\n  \"joda\": \"application/vnd.joost.joda-archive\",\r\n  \"ktz\": \"application/vnd.kahootz\",\r\n  \"ktr\": \"application/vnd.kahootz\",\r\n  \"karbon\": \"application/vnd.kde.karbon\",\r\n  \"chrt\": \"application/vnd.kde.kchart\",\r\n  \"kfo\": \"application/vnd.kde.kformula\",\r\n  \"flw\": \"application/vnd.kde.kivio\",\r\n  \"kon\": \"application/vnd.kde.kontour\",\r\n  \"kpr\": \"application/vnd.kde.kpresenter\",\r\n  \"kpt\": \"application/vnd.kde.kpresenter\",\r\n  \"ksp\": \"application/vnd.kde.kspread\",\r\n  \"kwd\": \"application/vnd.kde.kword\",\r\n  \"kwt\": \"application/vnd.kde.kword\",\r\n  \"htke\": \"application/vnd.kenameaapp\",\r\n  \"kia\": \"application/vnd.kidspiration\",\r\n  \"kne\": \"application/vnd.kinar\",\r\n  \"knp\": \"application/vnd.kinar\",\r\n  \"skp\": \"application/vnd.koan\",\r\n  \"skd\": \"application/vnd.koan\",\r\n  \"skt\": \"application/vnd.koan\",\r\n  \"skm\": \"application/vnd.koan\",\r\n  \"sse\": \"application/vnd.kodak-descriptor\",\r\n  \"lasxml\": \"application/vnd.las.las+xml\",\r\n  \"lbd\": \"application/vnd.llamagraphics.life-balance.desktop\",\r\n  \"lbe\": \"application/vnd.llamagraphics.life-balance.exchange+xml\",\r\n  \"apr\": \"application/vnd.lotus-approach\",\r\n  \"pre\": \"application/vnd.lotus-freelance\",\r\n  \"nsf\": \"application/vnd.lotus-notes\",\r\n  \"org\": \"application/vnd.lotus-organizer\",\r\n  \"scm\": \"application/vnd.lotus-screencam\",\r\n  \"lwp\": \"application/vnd.lotus-wordpro\",\r\n  \"portpkg\": \"application/vnd.macports.portpkg\",\r\n  \"mcd\": \"application/vnd.mcd\",\r\n  \"mc1\": \"application/vnd.medcalcdata\",\r\n  \"cdkey\": \"application/vnd.mediastation.cdkey\",\r\n  \"mwf\": \"application/vnd.mfer\",\r\n  \"mfm\": \"application/vnd.mfmp\",\r\n  \"flo\": \"application/vnd.micrografx.flo\",\r\n  \"igx\": \"application/vnd.micrografx.igx\",\r\n  \"mif\": \"application/vnd.mif\",\r\n  \"daf\": \"application/vnd.mobius.daf\",\r\n  \"dis\": \"application/vnd.mobius.dis\",\r\n  \"mbk\": \"application/vnd.mobius.mbk\",\r\n  \"mqy\": \"application/vnd.mobius.mqy\",\r\n  \"msl\": \"application/vnd.mobius.msl\",\r\n  \"plc\": \"application/vnd.mobius.plc\",\r\n  \"txf\": \"application/vnd.mobius.txf\",\r\n  \"mpn\": \"application/vnd.mophun.application\",\r\n  \"mpc\": \"application/vnd.mophun.certificate\",\r\n  \"xul\": \"application/vnd.mozilla.xul+xml\",\r\n  \"cil\": \"application/vnd.ms-artgalry\",\r\n  \"cab\": \"application/vnd.ms-cab-compressed\",\r\n  \"xls\": \"application/vnd.ms-excel\",\r\n  \"xlm\": \"application/vnd.ms-excel\",\r\n  \"xla\": \"application/vnd.ms-excel\",\r\n  \"xlc\": \"application/vnd.ms-excel\",\r\n  \"xlt\": \"application/vnd.ms-excel\",\r\n  \"xlw\": \"application/vnd.ms-excel\",\r\n  \"xlam\": \"application/vnd.ms-excel.addin.macroenabled.12\",\r\n  \"xlsb\": \"application/vnd.ms-excel.sheet.binary.macroenabled.12\",\r\n  \"xlsm\": \"application/vnd.ms-excel.sheet.macroenabled.12\",\r\n  \"xltm\": \"application/vnd.ms-excel.template.macroenabled.12\",\r\n  \"eot\": \"application/vnd.ms-fontobject\",\r\n  \"chm\": \"application/vnd.ms-htmlhelp\",\r\n  \"ims\": \"application/vnd.ms-ims\",\r\n  \"lrm\": \"application/vnd.ms-lrm\",\r\n  \"thmx\": \"application/vnd.ms-officetheme\",\r\n  \"cat\": \"application/vnd.ms-pki.seccat\",\r\n  \"stl\": \"application/vnd.ms-pki.stl\",\r\n  \"ppt\": \"application/vnd.ms-powerpoint\",\r\n  \"pps\": \"application/vnd.ms-powerpoint\",\r\n  \"pot\": \"application/vnd.ms-powerpoint\",\r\n  \"ppam\": \"application/vnd.ms-powerpoint.addin.macroenabled.12\",\r\n  \"pptm\": \"application/vnd.ms-powerpoint.presentation.macroenabled.12\",\r\n  \"sldm\": \"application/vnd.ms-powerpoint.slide.macroenabled.12\",\r\n  \"ppsm\": \"application/vnd.ms-powerpoint.slideshow.macroenabled.12\",\r\n  \"potm\": \"application/vnd.ms-powerpoint.template.macroenabled.12\",\r\n  \"mpp\": \"application/vnd.ms-project\",\r\n  \"mpt\": \"application/vnd.ms-project\",\r\n  \"docm\": \"application/vnd.ms-word.document.macroenabled.12\",\r\n  \"dotm\": \"application/vnd.ms-word.template.macroenabled.12\",\r\n  \"wps\": \"application/vnd.ms-works\",\r\n  \"wks\": \"application/vnd.ms-works\",\r\n  \"wcm\": \"application/vnd.ms-works\",\r\n  \"wdb\": \"application/vnd.ms-works\",\r\n  \"wpl\": \"application/vnd.ms-wpl\",\r\n  \"xps\": \"application/vnd.ms-xpsdocument\",\r\n  \"mseq\": \"application/vnd.mseq\",\r\n  \"mus\": \"application/vnd.musician\",\r\n  \"msty\": \"application/vnd.muvee.style\",\r\n  \"taglet\": \"application/vnd.mynfc\",\r\n  \"nlu\": \"application/vnd.neurolanguage.nlu\",\r\n  \"ntf\": \"application/vnd.nitf\",\r\n  \"nitf\": \"application/vnd.nitf\",\r\n  \"nnd\": \"application/vnd.noblenet-directory\",\r\n  \"nns\": \"application/vnd.noblenet-sealer\",\r\n  \"nnw\": \"application/vnd.noblenet-web\",\r\n  \"ngdat\": \"application/vnd.nokia.n-gage.data\",\r\n  \"n-gage\": \"application/vnd.nokia.n-gage.symbian.install\",\r\n  \"rpst\": \"application/vnd.nokia.radio-preset\",\r\n  \"rpss\": \"application/vnd.nokia.radio-presets\",\r\n  \"edm\": \"application/vnd.novadigm.edm\",\r\n  \"edx\": \"application/vnd.novadigm.edx\",\r\n  \"ext\": \"application/vnd.novadigm.ext\",\r\n  \"odc\": \"application/vnd.oasis.opendocument.chart\",\r\n  \"otc\": \"application/vnd.oasis.opendocument.chart-template\",\r\n  \"odb\": \"application/vnd.oasis.opendocument.database\",\r\n  \"odf\": \"application/vnd.oasis.opendocument.formula\",\r\n  \"odft\": \"application/vnd.oasis.opendocument.formula-template\",\r\n  \"odg\": \"application/vnd.oasis.opendocument.graphics\",\r\n  \"otg\": \"application/vnd.oasis.opendocument.graphics-template\",\r\n  \"odi\": \"application/vnd.oasis.opendocument.image\",\r\n  \"oti\": \"application/vnd.oasis.opendocument.image-template\",\r\n  \"odp\": \"application/vnd.oasis.opendocument.presentation\",\r\n  \"otp\": \"application/vnd.oasis.opendocument.presentation-template\",\r\n  \"ods\": \"application/vnd.oasis.opendocument.spreadsheet\",\r\n  \"ots\": \"application/vnd.oasis.opendocument.spreadsheet-template\",\r\n  \"odt\": \"application/vnd.oasis.opendocument.text\",\r\n  \"odm\": \"application/vnd.oasis.opendocument.text-master\",\r\n  \"ott\": \"application/vnd.oasis.opendocument.text-template\",\r\n  \"oth\": \"application/vnd.oasis.opendocument.text-web\",\r\n  \"xo\": \"application/vnd.olpc-sugar\",\r\n  \"dd2\": \"application/vnd.oma.dd2+xml\",\r\n  \"oxt\": \"application/vnd.openofficeorg.extension\",\r\n  \"pptx\": \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\r\n  \"sldx\": \"application/vnd.openxmlformats-officedocument.presentationml.slide\",\r\n  \"ppsx\": \"application/vnd.openxmlformats-officedocument.presentationml.slideshow\",\r\n  \"potx\": \"application/vnd.openxmlformats-officedocument.presentationml.template\",\r\n  \"xlsx\": \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\r\n  \"xltx\": \"application/vnd.openxmlformats-officedocument.spreadsheetml.template\",\r\n  \"docx\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\r\n  \"dotx\": \"application/vnd.openxmlformats-officedocument.wordprocessingml.template\",\r\n  \"mgp\": \"application/vnd.osgeo.mapguide.package\",\r\n  \"dp\": \"application/vnd.osgi.dp\",\r\n  \"esa\": \"application/vnd.osgi.subsystem\",\r\n  \"pdb\": \"application/vnd.palm\",\r\n  \"pqa\": \"application/vnd.palm\",\r\n  \"oprc\": \"application/vnd.palm\",\r\n  \"paw\": \"application/vnd.pawaafile\",\r\n  \"str\": \"application/vnd.pg.format\",\r\n  \"ei6\": \"application/vnd.pg.osasli\",\r\n  \"efif\": \"application/vnd.picsel\",\r\n  \"wg\": \"application/vnd.pmi.widget\",\r\n  \"plf\": \"application/vnd.pocketlearn\",\r\n  \"pbd\": \"application/vnd.powerbuilder6\",\r\n  \"box\": \"application/vnd.previewsystems.box\",\r\n  \"mgz\": \"application/vnd.proteus.magazine\",\r\n  \"qps\": \"application/vnd.publishare-delta-tree\",\r\n  \"ptid\": \"application/vnd.pvi.ptid1\",\r\n  \"qxd\": \"application/vnd.quark.quarkxpress\",\r\n  \"qxt\": \"application/vnd.quark.quarkxpress\",\r\n  \"qwd\": \"application/vnd.quark.quarkxpress\",\r\n  \"qwt\": \"application/vnd.quark.quarkxpress\",\r\n  \"qxl\": \"application/vnd.quark.quarkxpress\",\r\n  \"qxb\": \"application/vnd.quark.quarkxpress\",\r\n  \"bed\": \"application/vnd.realvnc.bed\",\r\n  \"mxl\": \"application/vnd.recordare.musicxml\",\r\n  \"musicxml\": \"application/vnd.recordare.musicxml+xml\",\r\n  \"cryptonote\": \"application/vnd.rig.cryptonote\",\r\n  \"cod\": \"application/vnd.rim.cod\",\r\n  \"rm\": \"application/vnd.rn-realmedia\",\r\n  \"rmvb\": \"application/vnd.rn-realmedia-vbr\",\r\n  \"link66\": \"application/vnd.route66.link66+xml\",\r\n  \"st\": \"application/vnd.sailingtracker.track\",\r\n  \"see\": \"application/vnd.seemail\",\r\n  \"sema\": \"application/vnd.sema\",\r\n  \"semd\": \"application/vnd.semd\",\r\n  \"semf\": \"application/vnd.semf\",\r\n  \"ifm\": \"application/vnd.shana.informed.formdata\",\r\n  \"itp\": \"application/vnd.shana.informed.formtemplate\",\r\n  \"iif\": \"application/vnd.shana.informed.interchange\",\r\n  \"ipk\": \"application/vnd.shana.informed.package\",\r\n  \"twd\": \"application/vnd.simtech-mindmapper\",\r\n  \"twds\": \"application/vnd.simtech-mindmapper\",\r\n  \"mmf\": \"application/vnd.smaf\",\r\n  \"teacher\": \"application/vnd.smart.teacher\",\r\n  \"sdkm\": \"application/vnd.solent.sdkm+xml\",\r\n  \"sdkd\": \"application/vnd.solent.sdkm+xml\",\r\n  \"dxp\": \"application/vnd.spotfire.dxp\",\r\n  \"sfs\": \"application/vnd.spotfire.sfs\",\r\n  \"sdc\": \"application/vnd.stardivision.calc\",\r\n  \"sda\": \"application/vnd.stardivision.draw\",\r\n  \"sdd\": \"application/vnd.stardivision.impress\",\r\n  \"smf\": \"application/vnd.stardivision.math\",\r\n  \"sdw\": \"application/vnd.stardivision.writer\",\r\n  \"vor\": \"application/vnd.stardivision.writer\",\r\n  \"sgl\": \"application/vnd.stardivision.writer-global\",\r\n  \"smzip\": \"application/vnd.stepmania.package\",\r\n  \"sm\": \"application/vnd.stepmania.stepchart\",\r\n  \"sxc\": \"application/vnd.sun.xml.calc\",\r\n  \"stc\": \"application/vnd.sun.xml.calc.template\",\r\n  \"sxd\": \"application/vnd.sun.xml.draw\",\r\n  \"std\": \"application/vnd.sun.xml.draw.template\",\r\n  \"sxi\": \"application/vnd.sun.xml.impress\",\r\n  \"sti\": \"application/vnd.sun.xml.impress.template\",\r\n  \"sxm\": \"application/vnd.sun.xml.math\",\r\n  \"sxw\": \"application/vnd.sun.xml.writer\",\r\n  \"sxg\": \"application/vnd.sun.xml.writer.global\",\r\n  \"stw\": \"application/vnd.sun.xml.writer.template\",\r\n  \"sus\": \"application/vnd.sus-calendar\",\r\n  \"susp\": \"application/vnd.sus-calendar\",\r\n  \"svd\": \"application/vnd.svd\",\r\n  \"sis\": \"application/vnd.symbian.install\",\r\n  \"sisx\": \"application/vnd.symbian.install\",\r\n  \"xsm\": \"application/vnd.syncml+xml\",\r\n  \"bdm\": \"application/vnd.syncml.dm+wbxml\",\r\n  \"xdm\": \"application/vnd.syncml.dm+xml\",\r\n  \"tao\": \"application/vnd.tao.intent-module-archive\",\r\n  \"pcap\": \"application/vnd.tcpdump.pcap\",\r\n  \"cap\": \"application/vnd.tcpdump.pcap\",\r\n  \"dmp\": \"application/vnd.tcpdump.pcap\",\r\n  \"tmo\": \"application/vnd.tmobile-livetv\",\r\n  \"tpt\": \"application/vnd.trid.tpt\",\r\n  \"mxs\": \"application/vnd.triscape.mxs\",\r\n  \"tra\": \"application/vnd.trueapp\",\r\n  \"ufd\": \"application/vnd.ufdl\",\r\n  \"ufdl\": \"application/vnd.ufdl\",\r\n  \"utz\": \"application/vnd.uiq.theme\",\r\n  \"umj\": \"application/vnd.umajin\",\r\n  \"unityweb\": \"application/vnd.unity\",\r\n  \"uoml\": \"application/vnd.uoml+xml\",\r\n  \"vcx\": \"application/vnd.vcx\",\r\n  \"vsd\": \"application/vnd.visio\",\r\n  \"vst\": \"application/vnd.visio\",\r\n  \"vss\": \"application/vnd.visio\",\r\n  \"vsw\": \"application/vnd.visio\",\r\n  \"vis\": \"application/vnd.visionary\",\r\n  \"vsf\": \"application/vnd.vsf\",\r\n  \"wbxml\": \"application/vnd.wap.wbxml\",\r\n  \"wmlc\": \"application/vnd.wap.wmlc\",\r\n  \"wmlsc\": \"application/vnd.wap.wmlscriptc\",\r\n  \"wtb\": \"application/vnd.webturbo\",\r\n  \"nbp\": \"application/vnd.wolfram.player\",\r\n  \"wpd\": \"application/vnd.wordperfect\",\r\n  \"wqd\": \"application/vnd.wqd\",\r\n  \"stf\": \"application/vnd.wt.stf\",\r\n  \"xar\": \"application/vnd.xara\",\r\n  \"xfdl\": \"application/vnd.xfdl\",\r\n  \"hvd\": \"application/vnd.yamaha.hv-dic\",\r\n  \"hvs\": \"application/vnd.yamaha.hv-script\",\r\n  \"hvp\": \"application/vnd.yamaha.hv-voice\",\r\n  \"osf\": \"application/vnd.yamaha.openscoreformat\",\r\n  \"osfpvg\": \"application/vnd.yamaha.openscoreformat.osfpvg+xml\",\r\n  \"saf\": \"application/vnd.yamaha.smaf-audio\",\r\n  \"spf\": \"application/vnd.yamaha.smaf-phrase\",\r\n  \"cmp\": \"application/vnd.yellowriver-custom-menu\",\r\n  \"zir\": \"application/vnd.zul\",\r\n  \"zirz\": \"application/vnd.zul\",\r\n  \"zaz\": \"application/vnd.zzazz.deck+xml\",\r\n  \"vxml\": \"application/voicexml+xml\",\r\n  \"wgt\": \"application/widget\",\r\n  \"hlp\": \"application/winhlp\",\r\n  \"wsdl\": \"application/wsdl+xml\",\r\n  \"wspolicy\": \"application/wspolicy+xml\",\r\n  \"7z\": \"application/x-7z-compressed\",\r\n  \"abw\": \"application/x-abiword\",\r\n  \"ace\": \"application/x-ace-compressed\",\r\n  \"dmg\": \"application/x-apple-diskimage\",\r\n  \"aab\": \"application/x-authorware-bin\",\r\n  \"x32\": \"application/x-authorware-bin\",\r\n  \"u32\": \"application/x-authorware-bin\",\r\n  \"vox\": \"application/x-authorware-bin\",\r\n  \"aam\": \"application/x-authorware-map\",\r\n  \"aas\": \"application/x-authorware-seg\",\r\n  \"bcpio\": \"application/x-bcpio\",\r\n  \"torrent\": \"application/x-bittorrent\",\r\n  \"blb\": \"application/x-blorb\",\r\n  \"blorb\": \"application/x-blorb\",\r\n  \"bz\": \"application/x-bzip\",\r\n  \"bz2\": \"application/x-bzip2\",\r\n  \"boz\": \"application/x-bzip2\",\r\n  \"cbr\": \"application/x-cbr\",\r\n  \"cba\": \"application/x-cbr\",\r\n  \"cbt\": \"application/x-cbr\",\r\n  \"cbz\": \"application/x-cbr\",\r\n  \"cb7\": \"application/x-cbr\",\r\n  \"vcd\": \"application/x-cdlink\",\r\n  \"cfs\": \"application/x-cfs-compressed\",\r\n  \"chat\": \"application/x-chat\",\r\n  \"pgn\": \"application/x-chess-pgn\",\r\n  \"nsc\": \"application/x-conference\",\r\n  \"cpio\": \"application/x-cpio\",\r\n  \"csh\": \"application/x-csh\",\r\n  \"deb\": \"application/x-debian-package\",\r\n  \"udeb\": \"application/x-debian-package\",\r\n  \"dgc\": \"application/x-dgc-compressed\",\r\n  \"dir\": \"application/x-director\",\r\n  \"dcr\": \"application/x-director\",\r\n  \"dxr\": \"application/x-director\",\r\n  \"cst\": \"application/x-director\",\r\n  \"cct\": \"application/x-director\",\r\n  \"cxt\": \"application/x-director\",\r\n  \"w3d\": \"application/x-director\",\r\n  \"fgd\": \"application/x-director\",\r\n  \"swa\": \"application/x-director\",\r\n  \"wad\": \"application/x-doom\",\r\n  \"ncx\": \"application/x-dtbncx+xml\",\r\n  \"dtb\": \"application/x-dtbook+xml\",\r\n  \"res\": \"application/x-dtbresource+xml\",\r\n  \"dvi\": \"application/x-dvi\",\r\n  \"evy\": \"application/x-envoy\",\r\n  \"eva\": \"application/x-eva\",\r\n  \"bdf\": \"application/x-font-bdf\",\r\n  \"gsf\": \"application/x-font-ghostscript\",\r\n  \"psf\": \"application/x-font-linux-psf\",\r\n  \"otf\": \"application/x-font-otf\",\r\n  \"pcf\": \"application/x-font-pcf\",\r\n  \"snf\": \"application/x-font-snf\",\r\n  \"ttf\": \"application/x-font-ttf\",\r\n  \"ttc\": \"application/x-font-ttf\",\r\n  \"pfa\": \"application/x-font-type1\",\r\n  \"pfb\": \"application/x-font-type1\",\r\n  \"pfm\": \"application/x-font-type1\",\r\n  \"afm\": \"application/x-font-type1\",\r\n  \"woff\": \"application/x-font-woff\",\r\n  \"arc\": \"application/x-freearc\",\r\n  \"spl\": \"application/x-futuresplash\",\r\n  \"gca\": \"application/x-gca-compressed\",\r\n  \"ulx\": \"application/x-glulx\",\r\n  \"gnumeric\": \"application/x-gnumeric\",\r\n  \"gramps\": \"application/x-gramps-xml\",\r\n  \"gtar\": \"application/x-gtar\",\r\n  \"hdf\": \"application/x-hdf\",\r\n  \"install\": \"application/x-install-instructions\",\r\n  \"iso\": \"application/x-iso9660-image\",\r\n  \"jnlp\": \"application/x-java-jnlp-file\",\r\n  \"latex\": \"application/x-latex\",\r\n  \"lzh\": \"application/x-lzh-compressed\",\r\n  \"lha\": \"application/x-lzh-compressed\",\r\n  \"mie\": \"application/x-mie\",\r\n  \"prc\": \"application/x-mobipocket-ebook\",\r\n  \"mobi\": \"application/x-mobipocket-ebook\",\r\n  \"application\": \"application/x-ms-application\",\r\n  \"lnk\": \"application/x-ms-shortcut\",\r\n  \"wmd\": \"application/x-ms-wmd\",\r\n  \"wmz\": \"application/x-msmetafile\",\r\n  \"xbap\": \"application/x-ms-xbap\",\r\n  \"mdb\": \"application/x-msaccess\",\r\n  \"obd\": \"application/x-msbinder\",\r\n  \"crd\": \"application/x-mscardfile\",\r\n  \"clp\": \"application/x-msclip\",\r\n  \"exe\": \"application/x-msdownload\",\r\n  \"dll\": \"application/x-msdownload\",\r\n  \"com\": \"application/x-msdownload\",\r\n  \"bat\": \"application/x-msdownload\",\r\n  \"msi\": \"application/x-msdownload\",\r\n  \"mvb\": \"application/x-msmediaview\",\r\n  \"m13\": \"application/x-msmediaview\",\r\n  \"m14\": \"application/x-msmediaview\",\r\n  \"wmf\": \"application/x-msmetafile\",\r\n  \"emf\": \"application/x-msmetafile\",\r\n  \"emz\": \"application/x-msmetafile\",\r\n  \"mny\": \"application/x-msmoney\",\r\n  \"pub\": \"application/x-mspublisher\",\r\n  \"scd\": \"application/x-msschedule\",\r\n  \"trm\": \"application/x-msterminal\",\r\n  \"wri\": \"application/x-mswrite\",\r\n  \"nc\": \"application/x-netcdf\",\r\n  \"cdf\": \"application/x-netcdf\",\r\n  \"nzb\": \"application/x-nzb\",\r\n  \"p12\": \"application/x-pkcs12\",\r\n  \"pfx\": \"application/x-pkcs12\",\r\n  \"p7b\": \"application/x-pkcs7-certificates\",\r\n  \"spc\": \"application/x-pkcs7-certificates\",\r\n  \"p7r\": \"application/x-pkcs7-certreqresp\",\r\n  \"rar\": \"application/x-rar-compressed\",\r\n  \"ris\": \"application/x-research-info-systems\",\r\n  \"sh\": \"application/x-sh\",\r\n  \"shar\": \"application/x-shar\",\r\n  \"swf\": \"application/x-shockwave-flash\",\r\n  \"xap\": \"application/x-silverlight-app\",\r\n  \"sql\": \"application/x-sql\",\r\n  \"sit\": \"application/x-stuffit\",\r\n  \"sitx\": \"application/x-stuffitx\",\r\n  \"srt\": \"application/x-subrip\",\r\n  \"sv4cpio\": \"application/x-sv4cpio\",\r\n  \"sv4crc\": \"application/x-sv4crc\",\r\n  \"t3\": \"application/x-t3vm-image\",\r\n  \"gam\": \"application/x-tads\",\r\n  \"tar\": \"application/x-tar\",\r\n  \"tcl\": \"application/x-tcl\",\r\n  \"tex\": \"application/x-tex\",\r\n  \"tfm\": \"application/x-tex-tfm\",\r\n  \"texinfo\": \"application/x-texinfo\",\r\n  \"texi\": \"application/x-texinfo\",\r\n  \"obj\": \"application/x-tgif\",\r\n  \"ustar\": \"application/x-ustar\",\r\n  \"src\": \"application/x-wais-source\",\r\n  \"der\": \"application/x-x509-ca-cert\",\r\n  \"crt\": \"application/x-x509-ca-cert\",\r\n  \"fig\": \"application/x-xfig\",\r\n  \"xlf\": \"application/x-xliff+xml\",\r\n  \"xpi\": \"application/x-xpinstall\",\r\n  \"xz\": \"application/x-xz\",\r\n  \"z1\": \"application/x-zmachine\",\r\n  \"z2\": \"application/x-zmachine\",\r\n  \"z3\": \"application/x-zmachine\",\r\n  \"z4\": \"application/x-zmachine\",\r\n  \"z5\": \"application/x-zmachine\",\r\n  \"z6\": \"application/x-zmachine\",\r\n  \"z7\": \"application/x-zmachine\",\r\n  \"z8\": \"application/x-zmachine\",\r\n  \"xaml\": \"application/xaml+xml\",\r\n  \"xdf\": \"application/xcap-diff+xml\",\r\n  \"xenc\": \"application/xenc+xml\",\r\n  \"xhtml\": \"application/xhtml+xml\",\r\n  \"xht\": \"application/xhtml+xml\",\r\n  \"xml\": \"application/xml\",\r\n  \"xsl\": \"application/xml\",\r\n  \"dtd\": \"application/xml-dtd\",\r\n  \"xop\": \"application/xop+xml\",\r\n  \"xpl\": \"application/xproc+xml\",\r\n  \"xslt\": \"application/xslt+xml\",\r\n  \"xspf\": \"application/xspf+xml\",\r\n  \"mxml\": \"application/xv+xml\",\r\n  \"xhvml\": \"application/xv+xml\",\r\n  \"xvml\": \"application/xv+xml\",\r\n  \"xvm\": \"application/xv+xml\",\r\n  \"yang\": \"application/yang\",\r\n  \"yin\": \"application/yin+xml\",\r\n  \"zip\": \"application/zip\",\r\n  \"adp\": \"audio/adpcm\",\r\n  \"au\": \"audio/basic\",\r\n  \"snd\": \"audio/basic\",\r\n  \"mid\": \"audio/midi\",\r\n  \"midi\": \"audio/midi\",\r\n  \"kar\": \"audio/midi\",\r\n  \"rmi\": \"audio/midi\",\r\n  \"mp4a\": \"audio/mp4\",\r\n  \"mpga\": \"audio/mpeg\",\r\n  \"mp2\": \"audio/mpeg\",\r\n  \"mp2a\": \"audio/mpeg\",\r\n  \"mp3\": \"audio/mpeg\",\r\n  \"m2a\": \"audio/mpeg\",\r\n  \"m3a\": \"audio/mpeg\",\r\n  \"oga\": \"audio/ogg\",\r\n  \"ogg\": \"audio/ogg\",\r\n  \"spx\": \"audio/ogg\",\r\n  \"s3m\": \"audio/s3m\",\r\n  \"sil\": \"audio/silk\",\r\n  \"uva\": \"audio/vnd.dece.audio\",\r\n  \"uvva\": \"audio/vnd.dece.audio\",\r\n  \"eol\": \"audio/vnd.digital-winds\",\r\n  \"dra\": \"audio/vnd.dra\",\r\n  \"dts\": \"audio/vnd.dts\",\r\n  \"dtshd\": \"audio/vnd.dts.hd\",\r\n  \"lvp\": \"audio/vnd.lucent.voice\",\r\n  \"pya\": \"audio/vnd.ms-playready.media.pya\",\r\n  \"ecelp4800\": \"audio/vnd.nuera.ecelp4800\",\r\n  \"ecelp7470\": \"audio/vnd.nuera.ecelp7470\",\r\n  \"ecelp9600\": \"audio/vnd.nuera.ecelp9600\",\r\n  \"rip\": \"audio/vnd.rip\",\r\n  \"weba\": \"audio/webm\",\r\n  \"aac\": \"audio/x-aac\",\r\n  \"aif\": \"audio/x-aiff\",\r\n  \"aiff\": \"audio/x-aiff\",\r\n  \"aifc\": \"audio/x-aiff\",\r\n  \"caf\": \"audio/x-caf\",\r\n  \"flac\": \"audio/x-flac\",\r\n  \"mka\": \"audio/x-matroska\",\r\n  \"m3u\": \"audio/x-mpegurl\",\r\n  \"wax\": \"audio/x-ms-wax\",\r\n  \"wma\": \"audio/x-ms-wma\",\r\n  \"ram\": \"audio/x-pn-realaudio\",\r\n  \"ra\": \"audio/x-pn-realaudio\",\r\n  \"rmp\": \"audio/x-pn-realaudio-plugin\",\r\n  \"wav\": \"audio/x-wav\",\r\n  \"xm\": \"audio/xm\",\r\n  \"cdx\": \"chemical/x-cdx\",\r\n  \"cif\": \"chemical/x-cif\",\r\n  \"cmdf\": \"chemical/x-cmdf\",\r\n  \"cml\": \"chemical/x-cml\",\r\n  \"csml\": \"chemical/x-csml\",\r\n  \"xyz\": \"chemical/x-xyz\",\r\n  \"bmp\": \"image/bmp\",\r\n  \"cgm\": \"image/cgm\",\r\n  \"g3\": \"image/g3fax\",\r\n  \"gif\": \"image/gif\",\r\n  \"ief\": \"image/ief\",\r\n  \"jpeg\": \"image/jpeg\",\r\n  \"jpg\": \"image/jpeg\",\r\n  \"jpe\": \"image/jpeg\",\r\n  \"ktx\": \"image/ktx\",\r\n  \"png\": \"image/png\",\r\n  \"btif\": \"image/prs.btif\",\r\n  \"sgi\": \"image/sgi\",\r\n  \"svg\": \"image/svg+xml\",\r\n  \"svgz\": \"image/svg+xml\",\r\n  \"tiff\": \"image/tiff\",\r\n  \"tif\": \"image/tiff\",\r\n  \"psd\": \"image/vnd.adobe.photoshop\",\r\n  \"uvi\": \"image/vnd.dece.graphic\",\r\n  \"uvvi\": \"image/vnd.dece.graphic\",\r\n  \"uvg\": \"image/vnd.dece.graphic\",\r\n  \"uvvg\": \"image/vnd.dece.graphic\",\r\n  \"sub\": \"text/vnd.dvb.subtitle\",\r\n  \"djvu\": \"image/vnd.djvu\",\r\n  \"djv\": \"image/vnd.djvu\",\r\n  \"dwg\": \"image/vnd.dwg\",\r\n  \"dxf\": \"image/vnd.dxf\",\r\n  \"fbs\": \"image/vnd.fastbidsheet\",\r\n  \"fpx\": \"image/vnd.fpx\",\r\n  \"fst\": \"image/vnd.fst\",\r\n  \"mmr\": \"image/vnd.fujixerox.edmics-mmr\",\r\n  \"rlc\": \"image/vnd.fujixerox.edmics-rlc\",\r\n  \"mdi\": \"image/vnd.ms-modi\",\r\n  \"wdp\": \"image/vnd.ms-photo\",\r\n  \"npx\": \"image/vnd.net-fpx\",\r\n  \"wbmp\": \"image/vnd.wap.wbmp\",\r\n  \"xif\": \"image/vnd.xiff\",\r\n  \"webp\": \"image/webp\",\r\n  \"3ds\": \"image/x-3ds\",\r\n  \"ras\": \"image/x-cmu-raster\",\r\n  \"cmx\": \"image/x-cmx\",\r\n  \"fh\": \"image/x-freehand\",\r\n  \"fhc\": \"image/x-freehand\",\r\n  \"fh4\": \"image/x-freehand\",\r\n  \"fh5\": \"image/x-freehand\",\r\n  \"fh7\": \"image/x-freehand\",\r\n  \"ico\": \"image/x-icon\",\r\n  \"sid\": \"image/x-mrsid-image\",\r\n  \"pcx\": \"image/x-pcx\",\r\n  \"pic\": \"image/x-pict\",\r\n  \"pct\": \"image/x-pict\",\r\n  \"pnm\": \"image/x-portable-anymap\",\r\n  \"pbm\": \"image/x-portable-bitmap\",\r\n  \"pgm\": \"image/x-portable-graymap\",\r\n  \"ppm\": \"image/x-portable-pixmap\",\r\n  \"rgb\": \"image/x-rgb\",\r\n  \"tga\": \"image/x-tga\",\r\n  \"xbm\": \"image/x-xbitmap\",\r\n  \"xpm\": \"image/x-xpixmap\",\r\n  \"xwd\": \"image/x-xwindowdump\",\r\n  \"eml\": \"message/rfc822\",\r\n  \"mime\": \"message/rfc822\",\r\n  \"igs\": \"model/iges\",\r\n  \"iges\": \"model/iges\",\r\n  \"msh\": \"model/mesh\",\r\n  \"mesh\": \"model/mesh\",\r\n  \"silo\": \"model/mesh\",\r\n  \"dae\": \"model/vnd.collada+xml\",\r\n  \"dwf\": \"model/vnd.dwf\",\r\n  \"gdl\": \"model/vnd.gdl\",\r\n  \"gtw\": \"model/vnd.gtw\",\r\n  \"mts\": \"model/vnd.mts\",\r\n  \"vtu\": \"model/vnd.vtu\",\r\n  \"wrl\": \"model/vrml\",\r\n  \"vrml\": \"model/vrml\",\r\n  \"x3db\": \"model/x3d+binary\",\r\n  \"x3dbz\": \"model/x3d+binary\",\r\n  \"x3dv\": \"model/x3d+vrml\",\r\n  \"x3dvz\": \"model/x3d+vrml\",\r\n  \"x3d\": \"model/x3d+xml\",\r\n  \"x3dz\": \"model/x3d+xml\",\r\n  \"appcache\": \"text/cache-manifest\",\r\n  \"ics\": \"text/calendar\",\r\n  \"ifb\": \"text/calendar\",\r\n  \"css\": \"text/css\",\r\n  \"csv\": \"text/csv\",\r\n  \"html\": \"text/html\",\r\n  \"htm\": \"text/html\",\r\n  \"n3\": \"text/n3\",\r\n  \"txt\": \"text/plain\",\r\n  \"text\": \"text/plain\",\r\n  \"conf\": \"text/plain\",\r\n  \"def\": \"text/plain\",\r\n  \"list\": \"text/plain\",\r\n  \"log\": \"text/plain\",\r\n  \"in\": \"text/plain\",\r\n  \"dsc\": \"text/prs.lines.tag\",\r\n  \"rtx\": \"text/richtext\",\r\n  \"sgml\": \"text/sgml\",\r\n  \"sgm\": \"text/sgml\",\r\n  \"tsv\": \"text/tab-separated-values\",\r\n  \"t\": \"text/troff\",\r\n  \"tr\": \"text/troff\",\r\n  \"roff\": \"text/troff\",\r\n  \"man\": \"text/troff\",\r\n  \"me\": \"text/troff\",\r\n  \"ms\": \"text/troff\",\r\n  \"ttl\": \"text/turtle\",\r\n  \"uri\": \"text/uri-list\",\r\n  \"uris\": \"text/uri-list\",\r\n  \"urls\": \"text/uri-list\",\r\n  \"vcard\": \"text/vcard\",\r\n  \"curl\": \"text/vnd.curl\",\r\n  \"dcurl\": \"text/vnd.curl.dcurl\",\r\n  \"scurl\": \"text/vnd.curl.scurl\",\r\n  \"mcurl\": \"text/vnd.curl.mcurl\",\r\n  \"fly\": \"text/vnd.fly\",\r\n  \"flx\": \"text/vnd.fmi.flexstor\",\r\n  \"gv\": \"text/vnd.graphviz\",\r\n  \"3dml\": \"text/vnd.in3d.3dml\",\r\n  \"spot\": \"text/vnd.in3d.spot\",\r\n  \"jad\": \"text/vnd.sun.j2me.app-descriptor\",\r\n  \"wml\": \"text/vnd.wap.wml\",\r\n  \"wmls\": \"text/vnd.wap.wmlscript\",\r\n  \"s\": \"text/x-asm\",\r\n  \"asm\": \"text/x-asm\",\r\n  \"c\": \"text/x-c\",\r\n  \"cc\": \"text/x-c\",\r\n  \"cxx\": \"text/x-c\",\r\n  \"cpp\": \"text/x-c\",\r\n  \"h\": \"text/x-c\",\r\n  \"hh\": \"text/x-c\",\r\n  \"dic\": \"text/x-c\",\r\n  \"f\": \"text/x-fortran\",\r\n  \"for\": \"text/x-fortran\",\r\n  \"f77\": \"text/x-fortran\",\r\n  \"f90\": \"text/x-fortran\",\r\n  \"java\": \"text/x-java-source\",\r\n  \"opml\": \"text/x-opml\",\r\n  \"p\": \"text/x-pascal\",\r\n  \"pas\": \"text/x-pascal\",\r\n  \"nfo\": \"text/x-nfo\",\r\n  \"etx\": \"text/x-setext\",\r\n  \"sfv\": \"text/x-sfv\",\r\n  \"uu\": \"text/x-uuencode\",\r\n  \"vcs\": \"text/x-vcalendar\",\r\n  \"vcf\": \"text/x-vcard\",\r\n  \"3gp\": \"video/3gpp\",\r\n  \"3g2\": \"video/3gpp2\",\r\n  \"h261\": \"video/h261\",\r\n  \"h263\": \"video/h263\",\r\n  \"h264\": \"video/h264\",\r\n  \"jpgv\": \"video/jpeg\",\r\n  \"jpm\": \"video/jpm\",\r\n  \"jpgm\": \"video/jpm\",\r\n  \"mj2\": \"video/mj2\",\r\n  \"mjp2\": \"video/mj2\",\r\n  \"mp4\": \"video/mp4\",\r\n  \"mp4v\": \"video/mp4\",\r\n  \"mpg4\": \"video/mp4\",\r\n  \"mpeg\": \"video/mpeg\",\r\n  \"mpg\": \"video/mpeg\",\r\n  \"mpe\": \"video/mpeg\",\r\n  \"m1v\": \"video/mpeg\",\r\n  \"m2v\": \"video/mpeg\",\r\n  \"ogv\": \"video/ogg\",\r\n  \"qt\": \"video/quicktime\",\r\n  \"mov\": \"video/quicktime\",\r\n  \"uvh\": \"video/vnd.dece.hd\",\r\n  \"uvvh\": \"video/vnd.dece.hd\",\r\n  \"uvm\": \"video/vnd.dece.mobile\",\r\n  \"uvvm\": \"video/vnd.dece.mobile\",\r\n  \"uvp\": \"video/vnd.dece.pd\",\r\n  \"uvvp\": \"video/vnd.dece.pd\",\r\n  \"uvs\": \"video/vnd.dece.sd\",\r\n  \"uvvs\": \"video/vnd.dece.sd\",\r\n  \"uvv\": \"video/vnd.dece.video\",\r\n  \"uvvv\": \"video/vnd.dece.video\",\r\n  \"dvb\": \"video/vnd.dvb.file\",\r\n  \"fvt\": \"video/vnd.fvt\",\r\n  \"mxu\": \"video/vnd.mpegurl\",\r\n  \"m4u\": \"video/vnd.mpegurl\",\r\n  \"pyv\": \"video/vnd.ms-playready.media.pyv\",\r\n  \"uvu\": \"video/vnd.uvvu.mp4\",\r\n  \"uvvu\": \"video/vnd.uvvu.mp4\",\r\n  \"viv\": \"video/vnd.vivo\",\r\n  \"webm\": \"video/webm\",\r\n  \"f4v\": \"video/x-f4v\",\r\n  \"fli\": \"video/x-fli\",\r\n  \"flv\": \"video/x-flv\",\r\n  \"m4v\": \"video/x-m4v\",\r\n  \"mkv\": \"video/x-matroska\",\r\n  \"mk3d\": \"video/x-matroska\",\r\n  \"mks\": \"video/x-matroska\",\r\n  \"mng\": \"video/x-mng\",\r\n  \"asf\": \"video/x-ms-asf\",\r\n  \"asx\": \"video/x-ms-asf\",\r\n  \"vob\": \"video/x-ms-vob\",\r\n  \"wm\": \"video/x-ms-wm\",\r\n  \"wmv\": \"video/x-ms-wmv\",\r\n  \"wmx\": \"video/x-ms-wmx\",\r\n  \"wvx\": \"video/x-ms-wvx\",\r\n  \"avi\": \"video/x-msvideo\",\r\n  \"movie\": \"video/x-sgi-movie\",\r\n  \"smv\": \"video/x-smv\",\r\n  \"ice\": \"x-conference/x-cooltalk\",\r\n  \"vtt\": \"text/vtt\",\r\n  \"crx\": \"application/x-chrome-extension\",\r\n  \"htc\": \"text/x-component\",\r\n  \"manifest\": \"text/cache-manifest\",\r\n  \"buffer\": \"application/octet-stream\",\r\n  \"m4p\": \"application/mp4\",\r\n  \"m4a\": \"audio/mp4\",\r\n  \"ts\": \"video/MP2T\",\r\n  \"event-stream\": \"text/event-stream\",\r\n  \"webapp\": \"application/x-web-app-manifest+json\",\r\n  \"lua\": \"text/x-lua\",\r\n  \"luac\": \"application/x-lua-bytecode\",\r\n  \"markdown\": \"text/x-markdown\",\r\n  \"md\": \"text/x-markdown\",\r\n  \"mkd\": \"text/x-markdown\"\r\n}\r\n  , extensions: {\r\n  \"application/andrew-inset\": \"ez\",\r\n  \"application/applixware\": \"aw\",\r\n  \"application/atom+xml\": \"atom\",\r\n  \"application/atomcat+xml\": \"atomcat\",\r\n  \"application/atomsvc+xml\": \"atomsvc\",\r\n  \"application/ccxml+xml\": \"ccxml\",\r\n  \"application/cdmi-capability\": \"cdmia\",\r\n  \"application/cdmi-container\": \"cdmic\",\r\n  \"application/cdmi-domain\": \"cdmid\",\r\n  \"application/cdmi-object\": \"cdmio\",\r\n  \"application/cdmi-queue\": \"cdmiq\",\r\n  \"application/cu-seeme\": \"cu\",\r\n  \"application/davmount+xml\": \"davmount\",\r\n  \"application/docbook+xml\": \"dbk\",\r\n  \"application/dssc+der\": \"dssc\",\r\n  \"application/dssc+xml\": \"xdssc\",\r\n  \"application/ecmascript\": \"ecma\",\r\n  \"application/emma+xml\": \"emma\",\r\n  \"application/epub+zip\": \"epub\",\r\n  \"application/exi\": \"exi\",\r\n  \"application/font-tdpfr\": \"pfr\",\r\n  \"application/gml+xml\": \"gml\",\r\n  \"application/gpx+xml\": \"gpx\",\r\n  \"application/gxf\": \"gxf\",\r\n  \"application/hyperstudio\": \"stk\",\r\n  \"application/inkml+xml\": \"ink\",\r\n  \"application/ipfix\": \"ipfix\",\r\n  \"application/java-archive\": \"jar\",\r\n  \"application/java-serialized-object\": \"ser\",\r\n  \"application/java-vm\": \"class\",\r\n  \"application/javascript\": \"js\",\r\n  \"application/json\": \"json\",\r\n  \"application/jsonml+json\": \"jsonml\",\r\n  \"application/lost+xml\": \"lostxml\",\r\n  \"application/mac-binhex40\": \"hqx\",\r\n  \"application/mac-compactpro\": \"cpt\",\r\n  \"application/mads+xml\": \"mads\",\r\n  \"application/marc\": \"mrc\",\r\n  \"application/marcxml+xml\": \"mrcx\",\r\n  \"application/mathematica\": \"ma\",\r\n  \"application/mathml+xml\": \"mathml\",\r\n  \"application/mbox\": \"mbox\",\r\n  \"application/mediaservercontrol+xml\": \"mscml\",\r\n  \"application/metalink+xml\": \"metalink\",\r\n  \"application/metalink4+xml\": \"meta4\",\r\n  \"application/mets+xml\": \"mets\",\r\n  \"application/mods+xml\": \"mods\",\r\n  \"application/mp21\": \"m21\",\r\n  \"application/mp4\": \"mp4s\",\r\n  \"application/msword\": \"doc\",\r\n  \"application/mxf\": \"mxf\",\r\n  \"application/octet-stream\": \"bin\",\r\n  \"application/oda\": \"oda\",\r\n  \"application/oebps-package+xml\": \"opf\",\r\n  \"application/ogg\": \"ogx\",\r\n  \"application/omdoc+xml\": \"omdoc\",\r\n  \"application/onenote\": \"onetoc\",\r\n  \"application/oxps\": \"oxps\",\r\n  \"application/patch-ops-error+xml\": \"xer\",\r\n  \"application/pdf\": \"pdf\",\r\n  \"application/pgp-encrypted\": \"pgp\",\r\n  \"application/pgp-signature\": \"asc\",\r\n  \"application/pics-rules\": \"prf\",\r\n  \"application/pkcs10\": \"p10\",\r\n  \"application/pkcs7-mime\": \"p7m\",\r\n  \"application/pkcs7-signature\": \"p7s\",\r\n  \"application/pkcs8\": \"p8\",\r\n  \"application/pkix-attr-cert\": \"ac\",\r\n  \"application/pkix-cert\": \"cer\",\r\n  \"application/pkix-crl\": \"crl\",\r\n  \"application/pkix-pkipath\": \"pkipath\",\r\n  \"application/pkixcmp\": \"pki\",\r\n  \"application/pls+xml\": \"pls\",\r\n  \"application/postscript\": \"ai\",\r\n  \"application/prs.cww\": \"cww\",\r\n  \"application/pskc+xml\": \"pskcxml\",\r\n  \"application/rdf+xml\": \"rdf\",\r\n  \"application/reginfo+xml\": \"rif\",\r\n  \"application/relax-ng-compact-syntax\": \"rnc\",\r\n  \"application/resource-lists+xml\": \"rl\",\r\n  \"application/resource-lists-diff+xml\": \"rld\",\r\n  \"application/rls-services+xml\": \"rs\",\r\n  \"application/rpki-ghostbusters\": \"gbr\",\r\n  \"application/rpki-manifest\": \"mft\",\r\n  \"application/rpki-roa\": \"roa\",\r\n  \"application/rsd+xml\": \"rsd\",\r\n  \"application/rss+xml\": \"rss\",\r\n  \"application/rtf\": \"rtf\",\r\n  \"application/sbml+xml\": \"sbml\",\r\n  \"application/scvp-cv-request\": \"scq\",\r\n  \"application/scvp-cv-response\": \"scs\",\r\n  \"application/scvp-vp-request\": \"spq\",\r\n  \"application/scvp-vp-response\": \"spp\",\r\n  \"application/sdp\": \"sdp\",\r\n  \"application/set-payment-initiation\": \"setpay\",\r\n  \"application/set-registration-initiation\": \"setreg\",\r\n  \"application/shf+xml\": \"shf\",\r\n  \"application/smil+xml\": \"smi\",\r\n  \"application/sparql-query\": \"rq\",\r\n  \"application/sparql-results+xml\": \"srx\",\r\n  \"application/srgs\": \"gram\",\r\n  \"application/srgs+xml\": \"grxml\",\r\n  \"application/sru+xml\": \"sru\",\r\n  \"application/ssdl+xml\": \"ssdl\",\r\n  \"application/ssml+xml\": \"ssml\",\r\n  \"application/tei+xml\": \"tei\",\r\n  \"application/thraud+xml\": \"tfi\",\r\n  \"application/timestamped-data\": \"tsd\",\r\n  \"application/vnd.3gpp.pic-bw-large\": \"plb\",\r\n  \"application/vnd.3gpp.pic-bw-small\": \"psb\",\r\n  \"application/vnd.3gpp.pic-bw-var\": \"pvb\",\r\n  \"application/vnd.3gpp2.tcap\": \"tcap\",\r\n  \"application/vnd.3m.post-it-notes\": \"pwn\",\r\n  \"application/vnd.accpac.simply.aso\": \"aso\",\r\n  \"application/vnd.accpac.simply.imp\": \"imp\",\r\n  \"application/vnd.acucobol\": \"acu\",\r\n  \"application/vnd.acucorp\": \"atc\",\r\n  \"application/vnd.adobe.air-application-installer-package+zip\": \"air\",\r\n  \"application/vnd.adobe.formscentral.fcdt\": \"fcdt\",\r\n  \"application/vnd.adobe.fxp\": \"fxp\",\r\n  \"application/vnd.adobe.xdp+xml\": \"xdp\",\r\n  \"application/vnd.adobe.xfdf\": \"xfdf\",\r\n  \"application/vnd.ahead.space\": \"ahead\",\r\n  \"application/vnd.airzip.filesecure.azf\": \"azf\",\r\n  \"application/vnd.airzip.filesecure.azs\": \"azs\",\r\n  \"application/vnd.amazon.ebook\": \"azw\",\r\n  \"application/vnd.americandynamics.acc\": \"acc\",\r\n  \"application/vnd.amiga.ami\": \"ami\",\r\n  \"application/vnd.android.package-archive\": \"apk\",\r\n  \"application/vnd.anser-web-certificate-issue-initiation\": \"cii\",\r\n  \"application/vnd.anser-web-funds-transfer-initiation\": \"fti\",\r\n  \"application/vnd.antix.game-component\": \"atx\",\r\n  \"application/vnd.apple.installer+xml\": \"mpkg\",\r\n  \"application/vnd.apple.mpegurl\": \"m3u8\",\r\n  \"application/vnd.aristanetworks.swi\": \"swi\",\r\n  \"application/vnd.astraea-software.iota\": \"iota\",\r\n  \"application/vnd.audiograph\": \"aep\",\r\n  \"application/vnd.blueice.multipass\": \"mpm\",\r\n  \"application/vnd.bmi\": \"bmi\",\r\n  \"application/vnd.businessobjects\": \"rep\",\r\n  \"application/vnd.chemdraw+xml\": \"cdxml\",\r\n  \"application/vnd.chipnuts.karaoke-mmd\": \"mmd\",\r\n  \"application/vnd.cinderella\": \"cdy\",\r\n  \"application/vnd.claymore\": \"cla\",\r\n  \"application/vnd.cloanto.rp9\": \"rp9\",\r\n  \"application/vnd.clonk.c4group\": \"c4g\",\r\n  \"application/vnd.cluetrust.cartomobile-config\": \"c11amc\",\r\n  \"application/vnd.cluetrust.cartomobile-config-pkg\": \"c11amz\",\r\n  \"application/vnd.commonspace\": \"csp\",\r\n  \"application/vnd.contact.cmsg\": \"cdbcmsg\",\r\n  \"application/vnd.cosmocaller\": \"cmc\",\r\n  \"application/vnd.crick.clicker\": \"clkx\",\r\n  \"application/vnd.crick.clicker.keyboard\": \"clkk\",\r\n  \"application/vnd.crick.clicker.palette\": \"clkp\",\r\n  \"application/vnd.crick.clicker.template\": \"clkt\",\r\n  \"application/vnd.crick.clicker.wordbank\": \"clkw\",\r\n  \"application/vnd.criticaltools.wbs+xml\": \"wbs\",\r\n  \"application/vnd.ctc-posml\": \"pml\",\r\n  \"application/vnd.cups-ppd\": \"ppd\",\r\n  \"application/vnd.curl.car\": \"car\",\r\n  \"application/vnd.curl.pcurl\": \"pcurl\",\r\n  \"application/vnd.dart\": \"dart\",\r\n  \"application/vnd.data-vision.rdz\": \"rdz\",\r\n  \"application/vnd.dece.data\": \"uvf\",\r\n  \"application/vnd.dece.ttml+xml\": \"uvt\",\r\n  \"application/vnd.dece.unspecified\": \"uvx\",\r\n  \"application/vnd.dece.zip\": \"uvz\",\r\n  \"application/vnd.denovo.fcselayout-link\": \"fe_launch\",\r\n  \"application/vnd.dna\": \"dna\",\r\n  \"application/vnd.dolby.mlp\": \"mlp\",\r\n  \"application/vnd.dpgraph\": \"dpg\",\r\n  \"application/vnd.dreamfactory\": \"dfac\",\r\n  \"application/vnd.ds-keypoint\": \"kpxx\",\r\n  \"application/vnd.dvb.ait\": \"ait\",\r\n  \"application/vnd.dvb.service\": \"svc\",\r\n  \"application/vnd.dynageo\": \"geo\",\r\n  \"application/vnd.ecowin.chart\": \"mag\",\r\n  \"application/vnd.enliven\": \"nml\",\r\n  \"application/vnd.epson.esf\": \"esf\",\r\n  \"application/vnd.epson.msf\": \"msf\",\r\n  \"application/vnd.epson.quickanime\": \"qam\",\r\n  \"application/vnd.epson.salt\": \"slt\",\r\n  \"application/vnd.epson.ssf\": \"ssf\",\r\n  \"application/vnd.eszigno3+xml\": \"es3\",\r\n  \"application/vnd.ezpix-album\": \"ez2\",\r\n  \"application/vnd.ezpix-package\": \"ez3\",\r\n  \"application/vnd.fdf\": \"fdf\",\r\n  \"application/vnd.fdsn.mseed\": \"mseed\",\r\n  \"application/vnd.fdsn.seed\": \"seed\",\r\n  \"application/vnd.flographit\": \"gph\",\r\n  \"application/vnd.fluxtime.clip\": \"ftc\",\r\n  \"application/vnd.framemaker\": \"fm\",\r\n  \"application/vnd.frogans.fnc\": \"fnc\",\r\n  \"application/vnd.frogans.ltf\": \"ltf\",\r\n  \"application/vnd.fsc.weblaunch\": \"fsc\",\r\n  \"application/vnd.fujitsu.oasys\": \"oas\",\r\n  \"application/vnd.fujitsu.oasys2\": \"oa2\",\r\n  \"application/vnd.fujitsu.oasys3\": \"oa3\",\r\n  \"application/vnd.fujitsu.oasysgp\": \"fg5\",\r\n  \"application/vnd.fujitsu.oasysprs\": \"bh2\",\r\n  \"application/vnd.fujixerox.ddd\": \"ddd\",\r\n  \"application/vnd.fujixerox.docuworks\": \"xdw\",\r\n  \"application/vnd.fujixerox.docuworks.binder\": \"xbd\",\r\n  \"application/vnd.fuzzysheet\": \"fzs\",\r\n  \"application/vnd.genomatix.tuxedo\": \"txd\",\r\n  \"application/vnd.geogebra.file\": \"ggb\",\r\n  \"application/vnd.geogebra.tool\": \"ggt\",\r\n  \"application/vnd.geometry-explorer\": \"gex\",\r\n  \"application/vnd.geonext\": \"gxt\",\r\n  \"application/vnd.geoplan\": \"g2w\",\r\n  \"application/vnd.geospace\": \"g3w\",\r\n  \"application/vnd.gmx\": \"gmx\",\r\n  \"application/vnd.google-earth.kml+xml\": \"kml\",\r\n  \"application/vnd.google-earth.kmz\": \"kmz\",\r\n  \"application/vnd.grafeq\": \"gqf\",\r\n  \"application/vnd.groove-account\": \"gac\",\r\n  \"application/vnd.groove-help\": \"ghf\",\r\n  \"application/vnd.groove-identity-message\": \"gim\",\r\n  \"application/vnd.groove-injector\": \"grv\",\r\n  \"application/vnd.groove-tool-message\": \"gtm\",\r\n  \"application/vnd.groove-tool-template\": \"tpl\",\r\n  \"application/vnd.groove-vcard\": \"vcg\",\r\n  \"application/vnd.hal+xml\": \"hal\",\r\n  \"application/vnd.handheld-entertainment+xml\": \"zmm\",\r\n  \"application/vnd.hbci\": \"hbci\",\r\n  \"application/vnd.hhe.lesson-player\": \"les\",\r\n  \"application/vnd.hp-hpgl\": \"hpgl\",\r\n  \"application/vnd.hp-hpid\": \"hpid\",\r\n  \"application/vnd.hp-hps\": \"hps\",\r\n  \"application/vnd.hp-jlyt\": \"jlt\",\r\n  \"application/vnd.hp-pcl\": \"pcl\",\r\n  \"application/vnd.hp-pclxl\": \"pclxl\",\r\n  \"application/vnd.hydrostatix.sof-data\": \"sfd-hdstx\",\r\n  \"application/vnd.ibm.minipay\": \"mpy\",\r\n  \"application/vnd.ibm.modcap\": \"afp\",\r\n  \"application/vnd.ibm.rights-management\": \"irm\",\r\n  \"application/vnd.ibm.secure-container\": \"sc\",\r\n  \"application/vnd.iccprofile\": \"icc\",\r\n  \"application/vnd.igloader\": \"igl\",\r\n  \"application/vnd.immervision-ivp\": \"ivp\",\r\n  \"application/vnd.immervision-ivu\": \"ivu\",\r\n  \"application/vnd.insors.igm\": \"igm\",\r\n  \"application/vnd.intercon.formnet\": \"xpw\",\r\n  \"application/vnd.intergeo\": \"i2g\",\r\n  \"application/vnd.intu.qbo\": \"qbo\",\r\n  \"application/vnd.intu.qfx\": \"qfx\",\r\n  \"application/vnd.ipunplugged.rcprofile\": \"rcprofile\",\r\n  \"application/vnd.irepository.package+xml\": \"irp\",\r\n  \"application/vnd.is-xpr\": \"xpr\",\r\n  \"application/vnd.isac.fcs\": \"fcs\",\r\n  \"application/vnd.jam\": \"jam\",\r\n  \"application/vnd.jcp.javame.midlet-rms\": \"rms\",\r\n  \"application/vnd.jisp\": \"jisp\",\r\n  \"application/vnd.joost.joda-archive\": \"joda\",\r\n  \"application/vnd.kahootz\": \"ktz\",\r\n  \"application/vnd.kde.karbon\": \"karbon\",\r\n  \"application/vnd.kde.kchart\": \"chrt\",\r\n  \"application/vnd.kde.kformula\": \"kfo\",\r\n  \"application/vnd.kde.kivio\": \"flw\",\r\n  \"application/vnd.kde.kontour\": \"kon\",\r\n  \"application/vnd.kde.kpresenter\": \"kpr\",\r\n  \"application/vnd.kde.kspread\": \"ksp\",\r\n  \"application/vnd.kde.kword\": \"kwd\",\r\n  \"application/vnd.kenameaapp\": \"htke\",\r\n  \"application/vnd.kidspiration\": \"kia\",\r\n  \"application/vnd.kinar\": \"kne\",\r\n  \"application/vnd.koan\": \"skp\",\r\n  \"application/vnd.kodak-descriptor\": \"sse\",\r\n  \"application/vnd.las.las+xml\": \"lasxml\",\r\n  \"application/vnd.llamagraphics.life-balance.desktop\": \"lbd\",\r\n  \"application/vnd.llamagraphics.life-balance.exchange+xml\": \"lbe\",\r\n  \"application/vnd.lotus-1-2-3\": \"123\",\r\n  \"application/vnd.lotus-approach\": \"apr\",\r\n  \"application/vnd.lotus-freelance\": \"pre\",\r\n  \"application/vnd.lotus-notes\": \"nsf\",\r\n  \"application/vnd.lotus-organizer\": \"org\",\r\n  \"application/vnd.lotus-screencam\": \"scm\",\r\n  \"application/vnd.lotus-wordpro\": \"lwp\",\r\n  \"application/vnd.macports.portpkg\": \"portpkg\",\r\n  \"application/vnd.mcd\": \"mcd\",\r\n  \"application/vnd.medcalcdata\": \"mc1\",\r\n  \"application/vnd.mediastation.cdkey\": \"cdkey\",\r\n  \"application/vnd.mfer\": \"mwf\",\r\n  \"application/vnd.mfmp\": \"mfm\",\r\n  \"application/vnd.micrografx.flo\": \"flo\",\r\n  \"application/vnd.micrografx.igx\": \"igx\",\r\n  \"application/vnd.mif\": \"mif\",\r\n  \"application/vnd.mobius.daf\": \"daf\",\r\n  \"application/vnd.mobius.dis\": \"dis\",\r\n  \"application/vnd.mobius.mbk\": \"mbk\",\r\n  \"application/vnd.mobius.mqy\": \"mqy\",\r\n  \"application/vnd.mobius.msl\": \"msl\",\r\n  \"application/vnd.mobius.plc\": \"plc\",\r\n  \"application/vnd.mobius.txf\": \"txf\",\r\n  \"application/vnd.mophun.application\": \"mpn\",\r\n  \"application/vnd.mophun.certificate\": \"mpc\",\r\n  \"application/vnd.mozilla.xul+xml\": \"xul\",\r\n  \"application/vnd.ms-artgalry\": \"cil\",\r\n  \"application/vnd.ms-cab-compressed\": \"cab\",\r\n  \"application/vnd.ms-excel\": \"xls\",\r\n  \"application/vnd.ms-excel.addin.macroenabled.12\": \"xlam\",\r\n  \"application/vnd.ms-excel.sheet.binary.macroenabled.12\": \"xlsb\",\r\n  \"application/vnd.ms-excel.sheet.macroenabled.12\": \"xlsm\",\r\n  \"application/vnd.ms-excel.template.macroenabled.12\": \"xltm\",\r\n  \"application/vnd.ms-fontobject\": \"eot\",\r\n  \"application/vnd.ms-htmlhelp\": \"chm\",\r\n  \"application/vnd.ms-ims\": \"ims\",\r\n  \"application/vnd.ms-lrm\": \"lrm\",\r\n  \"application/vnd.ms-officetheme\": \"thmx\",\r\n  \"application/vnd.ms-pki.seccat\": \"cat\",\r\n  \"application/vnd.ms-pki.stl\": \"stl\",\r\n  \"application/vnd.ms-powerpoint\": \"ppt\",\r\n  \"application/vnd.ms-powerpoint.addin.macroenabled.12\": \"ppam\",\r\n  \"application/vnd.ms-powerpoint.presentation.macroenabled.12\": \"pptm\",\r\n  \"application/vnd.ms-powerpoint.slide.macroenabled.12\": \"sldm\",\r\n  \"application/vnd.ms-powerpoint.slideshow.macroenabled.12\": \"ppsm\",\r\n  \"application/vnd.ms-powerpoint.template.macroenabled.12\": \"potm\",\r\n  \"application/vnd.ms-project\": \"mpp\",\r\n  \"application/vnd.ms-word.document.macroenabled.12\": \"docm\",\r\n  \"application/vnd.ms-word.template.macroenabled.12\": \"dotm\",\r\n  \"application/vnd.ms-works\": \"wps\",\r\n  \"application/vnd.ms-wpl\": \"wpl\",\r\n  \"application/vnd.ms-xpsdocument\": \"xps\",\r\n  \"application/vnd.mseq\": \"mseq\",\r\n  \"application/vnd.musician\": \"mus\",\r\n  \"application/vnd.muvee.style\": \"msty\",\r\n  \"application/vnd.mynfc\": \"taglet\",\r\n  \"application/vnd.neurolanguage.nlu\": \"nlu\",\r\n  \"application/vnd.nitf\": \"ntf\",\r\n  \"application/vnd.noblenet-directory\": \"nnd\",\r\n  \"application/vnd.noblenet-sealer\": \"nns\",\r\n  \"application/vnd.noblenet-web\": \"nnw\",\r\n  \"application/vnd.nokia.n-gage.data\": \"ngdat\",\r\n  \"application/vnd.nokia.n-gage.symbian.install\": \"n-gage\",\r\n  \"application/vnd.nokia.radio-preset\": \"rpst\",\r\n  \"application/vnd.nokia.radio-presets\": \"rpss\",\r\n  \"application/vnd.novadigm.edm\": \"edm\",\r\n  \"application/vnd.novadigm.edx\": \"edx\",\r\n  \"application/vnd.novadigm.ext\": \"ext\",\r\n  \"application/vnd.oasis.opendocument.chart\": \"odc\",\r\n  \"application/vnd.oasis.opendocument.chart-template\": \"otc\",\r\n  \"application/vnd.oasis.opendocument.database\": \"odb\",\r\n  \"application/vnd.oasis.opendocument.formula\": \"odf\",\r\n  \"application/vnd.oasis.opendocument.formula-template\": \"odft\",\r\n  \"application/vnd.oasis.opendocument.graphics\": \"odg\",\r\n  \"application/vnd.oasis.opendocument.graphics-template\": \"otg\",\r\n  \"application/vnd.oasis.opendocument.image\": \"odi\",\r\n  \"application/vnd.oasis.opendocument.image-template\": \"oti\",\r\n  \"application/vnd.oasis.opendocument.presentation\": \"odp\",\r\n  \"application/vnd.oasis.opendocument.presentation-template\": \"otp\",\r\n  \"application/vnd.oasis.opendocument.spreadsheet\": \"ods\",\r\n  \"application/vnd.oasis.opendocument.spreadsheet-template\": \"ots\",\r\n  \"application/vnd.oasis.opendocument.text\": \"odt\",\r\n  \"application/vnd.oasis.opendocument.text-master\": \"odm\",\r\n  \"application/vnd.oasis.opendocument.text-template\": \"ott\",\r\n  \"application/vnd.oasis.opendocument.text-web\": \"oth\",\r\n  \"application/vnd.olpc-sugar\": \"xo\",\r\n  \"application/vnd.oma.dd2+xml\": \"dd2\",\r\n  \"application/vnd.openofficeorg.extension\": \"oxt\",\r\n  \"application/vnd.openxmlformats-officedocument.presentationml.presentation\": \"pptx\",\r\n  \"application/vnd.openxmlformats-officedocument.presentationml.slide\": \"sldx\",\r\n  \"application/vnd.openxmlformats-officedocument.presentationml.slideshow\": \"ppsx\",\r\n  \"application/vnd.openxmlformats-officedocument.presentationml.template\": \"potx\",\r\n  \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\": \"xlsx\",\r\n  \"application/vnd.openxmlformats-officedocument.spreadsheetml.template\": \"xltx\",\r\n  \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\": \"docx\",\r\n  \"application/vnd.openxmlformats-officedocument.wordprocessingml.template\": \"dotx\",\r\n  \"application/vnd.osgeo.mapguide.package\": \"mgp\",\r\n  \"application/vnd.osgi.dp\": \"dp\",\r\n  \"application/vnd.osgi.subsystem\": \"esa\",\r\n  \"application/vnd.palm\": \"pdb\",\r\n  \"application/vnd.pawaafile\": \"paw\",\r\n  \"application/vnd.pg.format\": \"str\",\r\n  \"application/vnd.pg.osasli\": \"ei6\",\r\n  \"application/vnd.picsel\": \"efif\",\r\n  \"application/vnd.pmi.widget\": \"wg\",\r\n  \"application/vnd.pocketlearn\": \"plf\",\r\n  \"application/vnd.powerbuilder6\": \"pbd\",\r\n  \"application/vnd.previewsystems.box\": \"box\",\r\n  \"application/vnd.proteus.magazine\": \"mgz\",\r\n  \"application/vnd.publishare-delta-tree\": \"qps\",\r\n  \"application/vnd.pvi.ptid1\": \"ptid\",\r\n  \"application/vnd.quark.quarkxpress\": \"qxd\",\r\n  \"application/vnd.realvnc.bed\": \"bed\",\r\n  \"application/vnd.recordare.musicxml\": \"mxl\",\r\n  \"application/vnd.recordare.musicxml+xml\": \"musicxml\",\r\n  \"application/vnd.rig.cryptonote\": \"cryptonote\",\r\n  \"application/vnd.rim.cod\": \"cod\",\r\n  \"application/vnd.rn-realmedia\": \"rm\",\r\n  \"application/vnd.rn-realmedia-vbr\": \"rmvb\",\r\n  \"application/vnd.route66.link66+xml\": \"link66\",\r\n  \"application/vnd.sailingtracker.track\": \"st\",\r\n  \"application/vnd.seemail\": \"see\",\r\n  \"application/vnd.sema\": \"sema\",\r\n  \"application/vnd.semd\": \"semd\",\r\n  \"application/vnd.semf\": \"semf\",\r\n  \"application/vnd.shana.informed.formdata\": \"ifm\",\r\n  \"application/vnd.shana.informed.formtemplate\": \"itp\",\r\n  \"application/vnd.shana.informed.interchange\": \"iif\",\r\n  \"application/vnd.shana.informed.package\": \"ipk\",\r\n  \"application/vnd.simtech-mindmapper\": \"twd\",\r\n  \"application/vnd.smaf\": \"mmf\",\r\n  \"application/vnd.smart.teacher\": \"teacher\",\r\n  \"application/vnd.solent.sdkm+xml\": \"sdkm\",\r\n  \"application/vnd.spotfire.dxp\": \"dxp\",\r\n  \"application/vnd.spotfire.sfs\": \"sfs\",\r\n  \"application/vnd.stardivision.calc\": \"sdc\",\r\n  \"application/vnd.stardivision.draw\": \"sda\",\r\n  \"application/vnd.stardivision.impress\": \"sdd\",\r\n  \"application/vnd.stardivision.math\": \"smf\",\r\n  \"application/vnd.stardivision.writer\": \"sdw\",\r\n  \"application/vnd.stardivision.writer-global\": \"sgl\",\r\n  \"application/vnd.stepmania.package\": \"smzip\",\r\n  \"application/vnd.stepmania.stepchart\": \"sm\",\r\n  \"application/vnd.sun.xml.calc\": \"sxc\",\r\n  \"application/vnd.sun.xml.calc.template\": \"stc\",\r\n  \"application/vnd.sun.xml.draw\": \"sxd\",\r\n  \"application/vnd.sun.xml.draw.template\": \"std\",\r\n  \"application/vnd.sun.xml.impress\": \"sxi\",\r\n  \"application/vnd.sun.xml.impress.template\": \"sti\",\r\n  \"application/vnd.sun.xml.math\": \"sxm\",\r\n  \"application/vnd.sun.xml.writer\": \"sxw\",\r\n  \"application/vnd.sun.xml.writer.global\": \"sxg\",\r\n  \"application/vnd.sun.xml.writer.template\": \"stw\",\r\n  \"application/vnd.sus-calendar\": \"sus\",\r\n  \"application/vnd.svd\": \"svd\",\r\n  \"application/vnd.symbian.install\": \"sis\",\r\n  \"application/vnd.syncml+xml\": \"xsm\",\r\n  \"application/vnd.syncml.dm+wbxml\": \"bdm\",\r\n  \"application/vnd.syncml.dm+xml\": \"xdm\",\r\n  \"application/vnd.tao.intent-module-archive\": \"tao\",\r\n  \"application/vnd.tcpdump.pcap\": \"pcap\",\r\n  \"application/vnd.tmobile-livetv\": \"tmo\",\r\n  \"application/vnd.trid.tpt\": \"tpt\",\r\n  \"application/vnd.triscape.mxs\": \"mxs\",\r\n  \"application/vnd.trueapp\": \"tra\",\r\n  \"application/vnd.ufdl\": \"ufd\",\r\n  \"application/vnd.uiq.theme\": \"utz\",\r\n  \"application/vnd.umajin\": \"umj\",\r\n  \"application/vnd.unity\": \"unityweb\",\r\n  \"application/vnd.uoml+xml\": \"uoml\",\r\n  \"application/vnd.vcx\": \"vcx\",\r\n  \"application/vnd.visio\": \"vsd\",\r\n  \"application/vnd.visionary\": \"vis\",\r\n  \"application/vnd.vsf\": \"vsf\",\r\n  \"application/vnd.wap.wbxml\": \"wbxml\",\r\n  \"application/vnd.wap.wmlc\": \"wmlc\",\r\n  \"application/vnd.wap.wmlscriptc\": \"wmlsc\",\r\n  \"application/vnd.webturbo\": \"wtb\",\r\n  \"application/vnd.wolfram.player\": \"nbp\",\r\n  \"application/vnd.wordperfect\": \"wpd\",\r\n  \"application/vnd.wqd\": \"wqd\",\r\n  \"application/vnd.wt.stf\": \"stf\",\r\n  \"application/vnd.xara\": \"xar\",\r\n  \"application/vnd.xfdl\": \"xfdl\",\r\n  \"application/vnd.yamaha.hv-dic\": \"hvd\",\r\n  \"application/vnd.yamaha.hv-script\": \"hvs\",\r\n  \"application/vnd.yamaha.hv-voice\": \"hvp\",\r\n  \"application/vnd.yamaha.openscoreformat\": \"osf\",\r\n  \"application/vnd.yamaha.openscoreformat.osfpvg+xml\": \"osfpvg\",\r\n  \"application/vnd.yamaha.smaf-audio\": \"saf\",\r\n  \"application/vnd.yamaha.smaf-phrase\": \"spf\",\r\n  \"application/vnd.yellowriver-custom-menu\": \"cmp\",\r\n  \"application/vnd.zul\": \"zir\",\r\n  \"application/vnd.zzazz.deck+xml\": \"zaz\",\r\n  \"application/voicexml+xml\": \"vxml\",\r\n  \"application/widget\": \"wgt\",\r\n  \"application/winhlp\": \"hlp\",\r\n  \"application/wsdl+xml\": \"wsdl\",\r\n  \"application/wspolicy+xml\": \"wspolicy\",\r\n  \"application/x-7z-compressed\": \"7z\",\r\n  \"application/x-abiword\": \"abw\",\r\n  \"application/x-ace-compressed\": \"ace\",\r\n  \"application/x-apple-diskimage\": \"dmg\",\r\n  \"application/x-authorware-bin\": \"aab\",\r\n  \"application/x-authorware-map\": \"aam\",\r\n  \"application/x-authorware-seg\": \"aas\",\r\n  \"application/x-bcpio\": \"bcpio\",\r\n  \"application/x-bittorrent\": \"torrent\",\r\n  \"application/x-blorb\": \"blb\",\r\n  \"application/x-bzip\": \"bz\",\r\n  \"application/x-bzip2\": \"bz2\",\r\n  \"application/x-cbr\": \"cbr\",\r\n  \"application/x-cdlink\": \"vcd\",\r\n  \"application/x-cfs-compressed\": \"cfs\",\r\n  \"application/x-chat\": \"chat\",\r\n  \"application/x-chess-pgn\": \"pgn\",\r\n  \"application/x-conference\": \"nsc\",\r\n  \"application/x-cpio\": \"cpio\",\r\n  \"application/x-csh\": \"csh\",\r\n  \"application/x-debian-package\": \"deb\",\r\n  \"application/x-dgc-compressed\": \"dgc\",\r\n  \"application/x-director\": \"dir\",\r\n  \"application/x-doom\": \"wad\",\r\n  \"application/x-dtbncx+xml\": \"ncx\",\r\n  \"application/x-dtbook+xml\": \"dtb\",\r\n  \"application/x-dtbresource+xml\": \"res\",\r\n  \"application/x-dvi\": \"dvi\",\r\n  \"application/x-envoy\": \"evy\",\r\n  \"application/x-eva\": \"eva\",\r\n  \"application/x-font-bdf\": \"bdf\",\r\n  \"application/x-font-ghostscript\": \"gsf\",\r\n  \"application/x-font-linux-psf\": \"psf\",\r\n  \"application/x-font-otf\": \"otf\",\r\n  \"application/x-font-pcf\": \"pcf\",\r\n  \"application/x-font-snf\": \"snf\",\r\n  \"application/x-font-ttf\": \"ttf\",\r\n  \"application/x-font-type1\": \"pfa\",\r\n  \"application/x-font-woff\": \"woff\",\r\n  \"application/x-freearc\": \"arc\",\r\n  \"application/x-futuresplash\": \"spl\",\r\n  \"application/x-gca-compressed\": \"gca\",\r\n  \"application/x-glulx\": \"ulx\",\r\n  \"application/x-gnumeric\": \"gnumeric\",\r\n  \"application/x-gramps-xml\": \"gramps\",\r\n  \"application/x-gtar\": \"gtar\",\r\n  \"application/x-hdf\": \"hdf\",\r\n  \"application/x-install-instructions\": \"install\",\r\n  \"application/x-iso9660-image\": \"iso\",\r\n  \"application/x-java-jnlp-file\": \"jnlp\",\r\n  \"application/x-latex\": \"latex\",\r\n  \"application/x-lzh-compressed\": \"lzh\",\r\n  \"application/x-mie\": \"mie\",\r\n  \"application/x-mobipocket-ebook\": \"prc\",\r\n  \"application/x-ms-application\": \"application\",\r\n  \"application/x-ms-shortcut\": \"lnk\",\r\n  \"application/x-ms-wmd\": \"wmd\",\r\n  \"application/x-ms-wmz\": \"wmz\",\r\n  \"application/x-ms-xbap\": \"xbap\",\r\n  \"application/x-msaccess\": \"mdb\",\r\n  \"application/x-msbinder\": \"obd\",\r\n  \"application/x-mscardfile\": \"crd\",\r\n  \"application/x-msclip\": \"clp\",\r\n  \"application/x-msdownload\": \"exe\",\r\n  \"application/x-msmediaview\": \"mvb\",\r\n  \"application/x-msmetafile\": \"wmf\",\r\n  \"application/x-msmoney\": \"mny\",\r\n  \"application/x-mspublisher\": \"pub\",\r\n  \"application/x-msschedule\": \"scd\",\r\n  \"application/x-msterminal\": \"trm\",\r\n  \"application/x-mswrite\": \"wri\",\r\n  \"application/x-netcdf\": \"nc\",\r\n  \"application/x-nzb\": \"nzb\",\r\n  \"application/x-pkcs12\": \"p12\",\r\n  \"application/x-pkcs7-certificates\": \"p7b\",\r\n  \"application/x-pkcs7-certreqresp\": \"p7r\",\r\n  \"application/x-rar-compressed\": \"rar\",\r\n  \"application/x-research-info-systems\": \"ris\",\r\n  \"application/x-sh\": \"sh\",\r\n  \"application/x-shar\": \"shar\",\r\n  \"application/x-shockwave-flash\": \"swf\",\r\n  \"application/x-silverlight-app\": \"xap\",\r\n  \"application/x-sql\": \"sql\",\r\n  \"application/x-stuffit\": \"sit\",\r\n  \"application/x-stuffitx\": \"sitx\",\r\n  \"application/x-subrip\": \"srt\",\r\n  \"application/x-sv4cpio\": \"sv4cpio\",\r\n  \"application/x-sv4crc\": \"sv4crc\",\r\n  \"application/x-t3vm-image\": \"t3\",\r\n  \"application/x-tads\": \"gam\",\r\n  \"application/x-tar\": \"tar\",\r\n  \"application/x-tcl\": \"tcl\",\r\n  \"application/x-tex\": \"tex\",\r\n  \"application/x-tex-tfm\": \"tfm\",\r\n  \"application/x-texinfo\": \"texinfo\",\r\n  \"application/x-tgif\": \"obj\",\r\n  \"application/x-ustar\": \"ustar\",\r\n  \"application/x-wais-source\": \"src\",\r\n  \"application/x-x509-ca-cert\": \"der\",\r\n  \"application/x-xfig\": \"fig\",\r\n  \"application/x-xliff+xml\": \"xlf\",\r\n  \"application/x-xpinstall\": \"xpi\",\r\n  \"application/x-xz\": \"xz\",\r\n  \"application/x-zmachine\": \"z1\",\r\n  \"application/xaml+xml\": \"xaml\",\r\n  \"application/xcap-diff+xml\": \"xdf\",\r\n  \"application/xenc+xml\": \"xenc\",\r\n  \"application/xhtml+xml\": \"xhtml\",\r\n  \"application/xml\": \"xml\",\r\n  \"application/xml-dtd\": \"dtd\",\r\n  \"application/xop+xml\": \"xop\",\r\n  \"application/xproc+xml\": \"xpl\",\r\n  \"application/xslt+xml\": \"xslt\",\r\n  \"application/xspf+xml\": \"xspf\",\r\n  \"application/xv+xml\": \"mxml\",\r\n  \"application/yang\": \"yang\",\r\n  \"application/yin+xml\": \"yin\",\r\n  \"application/zip\": \"zip\",\r\n  \"audio/adpcm\": \"adp\",\r\n  \"audio/basic\": \"au\",\r\n  \"audio/midi\": \"mid\",\r\n  \"audio/mp4\": \"mp4a\",\r\n  \"audio/mpeg\": \"mpga\",\r\n  \"audio/ogg\": \"oga\",\r\n  \"audio/s3m\": \"s3m\",\r\n  \"audio/silk\": \"sil\",\r\n  \"audio/vnd.dece.audio\": \"uva\",\r\n  \"audio/vnd.digital-winds\": \"eol\",\r\n  \"audio/vnd.dra\": \"dra\",\r\n  \"audio/vnd.dts\": \"dts\",\r\n  \"audio/vnd.dts.hd\": \"dtshd\",\r\n  \"audio/vnd.lucent.voice\": \"lvp\",\r\n  \"audio/vnd.ms-playready.media.pya\": \"pya\",\r\n  \"audio/vnd.nuera.ecelp4800\": \"ecelp4800\",\r\n  \"audio/vnd.nuera.ecelp7470\": \"ecelp7470\",\r\n  \"audio/vnd.nuera.ecelp9600\": \"ecelp9600\",\r\n  \"audio/vnd.rip\": \"rip\",\r\n  \"audio/webm\": \"weba\",\r\n  \"audio/x-aac\": \"aac\",\r\n  \"audio/x-aiff\": \"aif\",\r\n  \"audio/x-caf\": \"caf\",\r\n  \"audio/x-flac\": \"flac\",\r\n  \"audio/x-matroska\": \"mka\",\r\n  \"audio/x-mpegurl\": \"m3u\",\r\n  \"audio/x-ms-wax\": \"wax\",\r\n  \"audio/x-ms-wma\": \"wma\",\r\n  \"audio/x-pn-realaudio\": \"ram\",\r\n  \"audio/x-pn-realaudio-plugin\": \"rmp\",\r\n  \"audio/x-wav\": \"wav\",\r\n  \"audio/xm\": \"xm\",\r\n  \"chemical/x-cdx\": \"cdx\",\r\n  \"chemical/x-cif\": \"cif\",\r\n  \"chemical/x-cmdf\": \"cmdf\",\r\n  \"chemical/x-cml\": \"cml\",\r\n  \"chemical/x-csml\": \"csml\",\r\n  \"chemical/x-xyz\": \"xyz\",\r\n  \"image/bmp\": \"bmp\",\r\n  \"image/cgm\": \"cgm\",\r\n  \"image/g3fax\": \"g3\",\r\n  \"image/gif\": \"gif\",\r\n  \"image/ief\": \"ief\",\r\n  \"image/jpeg\": \"jpeg\",\r\n  \"image/ktx\": \"ktx\",\r\n  \"image/png\": \"png\",\r\n  \"image/prs.btif\": \"btif\",\r\n  \"image/sgi\": \"sgi\",\r\n  \"image/svg+xml\": \"svg\",\r\n  \"image/tiff\": \"tiff\",\r\n  \"image/vnd.adobe.photoshop\": \"psd\",\r\n  \"image/vnd.dece.graphic\": \"uvi\",\r\n  \"image/vnd.dvb.subtitle\": \"sub\",\r\n  \"image/vnd.djvu\": \"djvu\",\r\n  \"image/vnd.dwg\": \"dwg\",\r\n  \"image/vnd.dxf\": \"dxf\",\r\n  \"image/vnd.fastbidsheet\": \"fbs\",\r\n  \"image/vnd.fpx\": \"fpx\",\r\n  \"image/vnd.fst\": \"fst\",\r\n  \"image/vnd.fujixerox.edmics-mmr\": \"mmr\",\r\n  \"image/vnd.fujixerox.edmics-rlc\": \"rlc\",\r\n  \"image/vnd.ms-modi\": \"mdi\",\r\n  \"image/vnd.ms-photo\": \"wdp\",\r\n  \"image/vnd.net-fpx\": \"npx\",\r\n  \"image/vnd.wap.wbmp\": \"wbmp\",\r\n  \"image/vnd.xiff\": \"xif\",\r\n  \"image/webp\": \"webp\",\r\n  \"image/x-3ds\": \"3ds\",\r\n  \"image/x-cmu-raster\": \"ras\",\r\n  \"image/x-cmx\": \"cmx\",\r\n  \"image/x-freehand\": \"fh\",\r\n  \"image/x-icon\": \"ico\",\r\n  \"image/x-mrsid-image\": \"sid\",\r\n  \"image/x-pcx\": \"pcx\",\r\n  \"image/x-pict\": \"pic\",\r\n  \"image/x-portable-anymap\": \"pnm\",\r\n  \"image/x-portable-bitmap\": \"pbm\",\r\n  \"image/x-portable-graymap\": \"pgm\",\r\n  \"image/x-portable-pixmap\": \"ppm\",\r\n  \"image/x-rgb\": \"rgb\",\r\n  \"image/x-tga\": \"tga\",\r\n  \"image/x-xbitmap\": \"xbm\",\r\n  \"image/x-xpixmap\": \"xpm\",\r\n  \"image/x-xwindowdump\": \"xwd\",\r\n  \"message/rfc822\": \"eml\",\r\n  \"model/iges\": \"igs\",\r\n  \"model/mesh\": \"msh\",\r\n  \"model/vnd.collada+xml\": \"dae\",\r\n  \"model/vnd.dwf\": \"dwf\",\r\n  \"model/vnd.gdl\": \"gdl\",\r\n  \"model/vnd.gtw\": \"gtw\",\r\n  \"model/vnd.mts\": \"mts\",\r\n  \"model/vnd.vtu\": \"vtu\",\r\n  \"model/vrml\": \"wrl\",\r\n  \"model/x3d+binary\": \"x3db\",\r\n  \"model/x3d+vrml\": \"x3dv\",\r\n  \"model/x3d+xml\": \"x3d\",\r\n  \"text/cache-manifest\": \"appcache\",\r\n  \"text/calendar\": \"ics\",\r\n  \"text/css\": \"css\",\r\n  \"text/csv\": \"csv\",\r\n  \"text/html\": \"html\",\r\n  \"text/n3\": \"n3\",\r\n  \"text/plain\": \"txt\",\r\n  \"text/prs.lines.tag\": \"dsc\",\r\n  \"text/richtext\": \"rtx\",\r\n  \"text/sgml\": \"sgml\",\r\n  \"text/tab-separated-values\": \"tsv\",\r\n  \"text/troff\": \"t\",\r\n  \"text/turtle\": \"ttl\",\r\n  \"text/uri-list\": \"uri\",\r\n  \"text/vcard\": \"vcard\",\r\n  \"text/vnd.curl\": \"curl\",\r\n  \"text/vnd.curl.dcurl\": \"dcurl\",\r\n  \"text/vnd.curl.scurl\": \"scurl\",\r\n  \"text/vnd.curl.mcurl\": \"mcurl\",\r\n  \"text/vnd.dvb.subtitle\": \"sub\",\r\n  \"text/vnd.fly\": \"fly\",\r\n  \"text/vnd.fmi.flexstor\": \"flx\",\r\n  \"text/vnd.graphviz\": \"gv\",\r\n  \"text/vnd.in3d.3dml\": \"3dml\",\r\n  \"text/vnd.in3d.spot\": \"spot\",\r\n  \"text/vnd.sun.j2me.app-descriptor\": \"jad\",\r\n  \"text/vnd.wap.wml\": \"wml\",\r\n  \"text/vnd.wap.wmlscript\": \"wmls\",\r\n  \"text/x-asm\": \"s\",\r\n  \"text/x-c\": \"c\",\r\n  \"text/x-fortran\": \"f\",\r\n  \"text/x-java-source\": \"java\",\r\n  \"text/x-opml\": \"opml\",\r\n  \"text/x-pascal\": \"p\",\r\n  \"text/x-nfo\": \"nfo\",\r\n  \"text/x-setext\": \"etx\",\r\n  \"text/x-sfv\": \"sfv\",\r\n  \"text/x-uuencode\": \"uu\",\r\n  \"text/x-vcalendar\": \"vcs\",\r\n  \"text/x-vcard\": \"vcf\",\r\n  \"video/3gpp\": \"3gp\",\r\n  \"video/3gpp2\": \"3g2\",\r\n  \"video/h261\": \"h261\",\r\n  \"video/h263\": \"h263\",\r\n  \"video/h264\": \"h264\",\r\n  \"video/jpeg\": \"jpgv\",\r\n  \"video/jpm\": \"jpm\",\r\n  \"video/mj2\": \"mj2\",\r\n  \"video/mp4\": \"mp4\",\r\n  \"video/mpeg\": \"mpeg\",\r\n  \"video/ogg\": \"ogv\",\r\n  \"video/quicktime\": \"qt\",\r\n  \"video/vnd.dece.hd\": \"uvh\",\r\n  \"video/vnd.dece.mobile\": \"uvm\",\r\n  \"video/vnd.dece.pd\": \"uvp\",\r\n  \"video/vnd.dece.sd\": \"uvs\",\r\n  \"video/vnd.dece.video\": \"uvv\",\r\n  \"video/vnd.dvb.file\": \"dvb\",\r\n  \"video/vnd.fvt\": \"fvt\",\r\n  \"video/vnd.mpegurl\": \"mxu\",\r\n  \"video/vnd.ms-playready.media.pyv\": \"pyv\",\r\n  \"video/vnd.uvvu.mp4\": \"uvu\",\r\n  \"video/vnd.vivo\": \"viv\",\r\n  \"video/webm\": \"webm\",\r\n  \"video/x-f4v\": \"f4v\",\r\n  \"video/x-fli\": \"fli\",\r\n  \"video/x-flv\": \"flv\",\r\n  \"video/x-m4v\": \"m4v\",\r\n  \"video/x-matroska\": \"mkv\",\r\n  \"video/x-mng\": \"mng\",\r\n  \"video/x-ms-asf\": \"asf\",\r\n  \"video/x-ms-vob\": \"vob\",\r\n  \"video/x-ms-wm\": \"wm\",\r\n  \"video/x-ms-wmv\": \"wmv\",\r\n  \"video/x-ms-wmx\": \"wmx\",\r\n  \"video/x-ms-wvx\": \"wvx\",\r\n  \"video/x-msvideo\": \"avi\",\r\n  \"video/x-sgi-movie\": \"movie\",\r\n  \"video/x-smv\": \"smv\",\r\n  \"x-conference/x-cooltalk\": \"ice\",\r\n  \"text/vtt\": \"vtt\",\r\n  \"application/x-chrome-extension\": \"crx\",\r\n  \"text/x-component\": \"htc\",\r\n  \"video/MP2T\": \"ts\",\r\n  \"text/event-stream\": \"event-stream\",\r\n  \"application/x-web-app-manifest+json\": \"webapp\",\r\n  \"text/x-lua\": \"lua\",\r\n  \"application/x-lua-bytecode\": \"luac\",\r\n  \"text/x-markdown\": \"markdown\"\r\n}\r\n  , extension: function (mimeType) {\r\n  var type = mimeType.match(/^\\s*([^;\\s]*)(?:;|\\s|$)/)[1].toLowerCase();\r\n  return this.extensions[type];\r\n}\r\n  , define: function (map) {\r\n  for (var type in map) {\r\n    var exts = map[type];\r\n\r\n    for (var i = 0; i < exts.length; i++) {\r\n      if (false && this.types[exts]) {\r\n        console.warn(this._loading.replace(/.*\\//, ''), 'changes \"' + exts[i] + '\" extension type from ' +\r\n          this.types[exts] + ' to ' + type);\r\n      }\r\n\r\n      this.types[exts[i]] = type;\r\n    }\r\n\r\n    // Default extension is the first one we encounter\r\n    if (!this.extensions[type]) {\r\n      this.extensions[type] = exts[0];\r\n    }\r\n  }\r\n}\r\n  , charsets: {lookup: function (mimeType, fallback) {\r\n    // Assume text types are utf8\r\n    return (/^text\\//).test(mimeType) ? 'UTF-8' : fallback;\r\n  }}\r\n}\r\nmime.types.constructor = undefined\r\nmime.extensions.constructor = undefined\r\n},{}],54:[function(require,module,exports){\r\n(function (global){\r\n/*! https://mths.be/punycode v1.4.1 by @mathias */\r\n;(function(root) {\r\n\r\n\t/** Detect free variables */\r\n\tvar freeExports = typeof exports == 'object' && exports &&\r\n\t\t!exports.nodeType && exports;\r\n\tvar freeModule = typeof module == 'object' && module &&\r\n\t\t!module.nodeType && module;\r\n\tvar freeGlobal = typeof global == 'object' && global;\r\n\tif (\r\n\t\tfreeGlobal.global === freeGlobal ||\r\n\t\tfreeGlobal.window === freeGlobal ||\r\n\t\tfreeGlobal.self === freeGlobal\r\n\t) {\r\n\t\troot = freeGlobal;\r\n\t}\r\n\r\n\t/**\r\n\t * The `punycode` object.\r\n\t * @name punycode\r\n\t * @type Object\r\n\t */\r\n\tvar punycode,\r\n\r\n\t/** Highest positive signed 32-bit float value */\r\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\r\n\r\n\t/** Bootstring parameters */\r\n\tbase = 36,\r\n\ttMin = 1,\r\n\ttMax = 26,\r\n\tskew = 38,\r\n\tdamp = 700,\r\n\tinitialBias = 72,\r\n\tinitialN = 128, // 0x80\r\n\tdelimiter = '-', // '\\x2D'\r\n\r\n\t/** Regular expressions */\r\n\tregexPunycode = /^xn--/,\r\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\r\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\r\n\r\n\t/** Error messages */\r\n\terrors = {\r\n\t\t'overflow': 'Overflow: input needs wider integers to process',\r\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\r\n\t\t'invalid-input': 'Invalid input'\r\n\t},\r\n\r\n\t/** Convenience shortcuts */\r\n\tbaseMinusTMin = base - tMin,\r\n\tfloor = Math.floor,\r\n\tstringFromCharCode = String.fromCharCode,\r\n\r\n\t/** Temporary variable */\r\n\tkey;\r\n\r\n\t/*--------------------------------------------------------------------------*/\r\n\r\n\t/**\r\n\t * A generic error utility function.\r\n\t * @private\r\n\t * @param {String} type The error type.\r\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\r\n\t */\r\n\tfunction error(type) {\r\n\t\tthrow new RangeError(errors[type]);\r\n\t}\r\n\r\n\t/**\r\n\t * A generic `Array#map` utility function.\r\n\t * @private\r\n\t * @param {Array} array The array to iterate over.\r\n\t * @param {Function} callback The function that gets called for every array\r\n\t * item.\r\n\t * @returns {Array} A new array of values returned by the callback function.\r\n\t */\r\n\tfunction map(array, fn) {\r\n\t\tvar length = array.length;\r\n\t\tvar result = [];\r\n\t\twhile (length--) {\r\n\t\t\tresult[length] = fn(array[length]);\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n\t/**\r\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\r\n\t * addresses.\r\n\t * @private\r\n\t * @param {String} domain The domain name or email address.\r\n\t * @param {Function} callback The function that gets called for every\r\n\t * character.\r\n\t * @returns {Array} A new string of characters returned by the callback\r\n\t * function.\r\n\t */\r\n\tfunction mapDomain(string, fn) {\r\n\t\tvar parts = string.split('@');\r\n\t\tvar result = '';\r\n\t\tif (parts.length > 1) {\r\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\r\n\t\t\t// the local part (i.e. everything up to `@`) intact.\r\n\t\t\tresult = parts[0] + '@';\r\n\t\t\tstring = parts[1];\r\n\t\t}\r\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\r\n\t\tstring = string.replace(regexSeparators, '\\x2E');\r\n\t\tvar labels = string.split('.');\r\n\t\tvar encoded = map(labels, fn).join('.');\r\n\t\treturn result + encoded;\r\n\t}\r\n\r\n\t/**\r\n\t * Creates an array containing the numeric code points of each Unicode\r\n\t * character in the string. While JavaScript uses UCS-2 internally,\r\n\t * this function will convert a pair of surrogate halves (each of which\r\n\t * UCS-2 exposes as separate characters) into a single code point,\r\n\t * matching UTF-16.\r\n\t * @see `punycode.ucs2.encode`\r\n\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\r\n\t * @memberOf punycode.ucs2\r\n\t * @name decode\r\n\t * @param {String} string The Unicode input string (UCS-2).\r\n\t * @returns {Array} The new array of code points.\r\n\t */\r\n\tfunction ucs2decode(string) {\r\n\t\tvar output = [],\r\n\t\t    counter = 0,\r\n\t\t    length = string.length,\r\n\t\t    value,\r\n\t\t    extra;\r\n\t\twhile (counter < length) {\r\n\t\t\tvalue = string.charCodeAt(counter++);\r\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\r\n\t\t\t\t// high surrogate, and there is a next character\r\n\t\t\t\textra = string.charCodeAt(counter++);\r\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\r\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\r\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\r\n\t\t\t\t\toutput.push(value);\r\n\t\t\t\t\tcounter--;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\toutput.push(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a string based on an array of numeric code points.\r\n\t * @see `punycode.ucs2.decode`\r\n\t * @memberOf punycode.ucs2\r\n\t * @name encode\r\n\t * @param {Array} codePoints The array of numeric code points.\r\n\t * @returns {String} The new Unicode string (UCS-2).\r\n\t */\r\n\tfunction ucs2encode(array) {\r\n\t\treturn map(array, function(value) {\r\n\t\t\tvar output = '';\r\n\t\t\tif (value > 0xFFFF) {\r\n\t\t\t\tvalue -= 0x10000;\r\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\r\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\r\n\t\t\t}\r\n\t\t\toutput += stringFromCharCode(value);\r\n\t\t\treturn output;\r\n\t\t}).join('');\r\n\t}\r\n\r\n\t/**\r\n\t * Converts a basic code point into a digit/integer.\r\n\t * @see `digitToBasic()`\r\n\t * @private\r\n\t * @param {Number} codePoint The basic numeric code point value.\r\n\t * @returns {Number} The numeric value of a basic code point (for use in\r\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\r\n\t * the code point does not represent a value.\r\n\t */\r\n\tfunction basicToDigit(codePoint) {\r\n\t\tif (codePoint - 48 < 10) {\r\n\t\t\treturn codePoint - 22;\r\n\t\t}\r\n\t\tif (codePoint - 65 < 26) {\r\n\t\t\treturn codePoint - 65;\r\n\t\t}\r\n\t\tif (codePoint - 97 < 26) {\r\n\t\t\treturn codePoint - 97;\r\n\t\t}\r\n\t\treturn base;\r\n\t}\r\n\r\n\t/**\r\n\t * Converts a digit/integer into a basic code point.\r\n\t * @see `basicToDigit()`\r\n\t * @private\r\n\t * @param {Number} digit The numeric value of a basic code point.\r\n\t * @returns {Number} The basic code point whose value (when used for\r\n\t * representing integers) is `digit`, which needs to be in the range\r\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\r\n\t * used; else, the lowercase form is used. The behavior is undefined\r\n\t * if `flag` is non-zero and `digit` has no uppercase form.\r\n\t */\r\n\tfunction digitToBasic(digit, flag) {\r\n\t\t//  0..25 map to ASCII a..z or A..Z\r\n\t\t// 26..35 map to ASCII 0..9\r\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\r\n\t}\r\n\r\n\t/**\r\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\r\n\t * https://tools.ietf.org/html/rfc3492#section-3.4\r\n\t * @private\r\n\t */\r\n\tfunction adapt(delta, numPoints, firstTime) {\r\n\t\tvar k = 0;\r\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\r\n\t\tdelta += floor(delta / numPoints);\r\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\r\n\t\t\tdelta = floor(delta / baseMinusTMin);\r\n\t\t}\r\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\r\n\t}\r\n\r\n\t/**\r\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\r\n\t * symbols.\r\n\t * @memberOf punycode\r\n\t * @param {String} input The Punycode string of ASCII-only symbols.\r\n\t * @returns {String} The resulting string of Unicode symbols.\r\n\t */\r\n\tfunction decode(input) {\r\n\t\t// Don't use UCS-2\r\n\t\tvar output = [],\r\n\t\t    inputLength = input.length,\r\n\t\t    out,\r\n\t\t    i = 0,\r\n\t\t    n = initialN,\r\n\t\t    bias = initialBias,\r\n\t\t    basic,\r\n\t\t    j,\r\n\t\t    index,\r\n\t\t    oldi,\r\n\t\t    w,\r\n\t\t    k,\r\n\t\t    digit,\r\n\t\t    t,\r\n\t\t    /** Cached calculation results */\r\n\t\t    baseMinusT;\r\n\r\n\t\t// Handle the basic code points: let `basic` be the number of input code\r\n\t\t// points before the last delimiter, or `0` if there is none, then copy\r\n\t\t// the first basic code points to the output.\r\n\r\n\t\tbasic = input.lastIndexOf(delimiter);\r\n\t\tif (basic < 0) {\r\n\t\t\tbasic = 0;\r\n\t\t}\r\n\r\n\t\tfor (j = 0; j < basic; ++j) {\r\n\t\t\t// if it's not a basic code point\r\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\r\n\t\t\t\terror('not-basic');\r\n\t\t\t}\r\n\t\t\toutput.push(input.charCodeAt(j));\r\n\t\t}\r\n\r\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\r\n\t\t// points were copied; start at the beginning otherwise.\r\n\r\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\r\n\r\n\t\t\t// `index` is the index of the next character to be consumed.\r\n\t\t\t// Decode a generalized variable-length integer into `delta`,\r\n\t\t\t// which gets added to `i`. The overflow checking is easier\r\n\t\t\t// if we increase `i` as we go, then subtract off its starting\r\n\t\t\t// value at the end to obtain `delta`.\r\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\r\n\r\n\t\t\t\tif (index >= inputLength) {\r\n\t\t\t\t\terror('invalid-input');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\r\n\r\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\r\n\t\t\t\t\terror('overflow');\r\n\t\t\t\t}\r\n\r\n\t\t\t\ti += digit * w;\r\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\r\n\r\n\t\t\t\tif (digit < t) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbaseMinusT = base - t;\r\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\r\n\t\t\t\t\terror('overflow');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tw *= baseMinusT;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tout = output.length + 1;\r\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\r\n\r\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\r\n\t\t\t// incrementing `n` each time, so we'll fix that now:\r\n\t\t\tif (floor(i / out) > maxInt - n) {\r\n\t\t\t\terror('overflow');\r\n\t\t\t}\r\n\r\n\t\t\tn += floor(i / out);\r\n\t\t\ti %= out;\r\n\r\n\t\t\t// Insert `n` at position `i` of the output\r\n\t\t\toutput.splice(i++, 0, n);\r\n\r\n\t\t}\r\n\r\n\t\treturn ucs2encode(output);\r\n\t}\r\n\r\n\t/**\r\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\r\n\t * Punycode string of ASCII-only symbols.\r\n\t * @memberOf punycode\r\n\t * @param {String} input The string of Unicode symbols.\r\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\r\n\t */\r\n\tfunction encode(input) {\r\n\t\tvar n,\r\n\t\t    delta,\r\n\t\t    handledCPCount,\r\n\t\t    basicLength,\r\n\t\t    bias,\r\n\t\t    j,\r\n\t\t    m,\r\n\t\t    q,\r\n\t\t    k,\r\n\t\t    t,\r\n\t\t    currentValue,\r\n\t\t    output = [],\r\n\t\t    /** `inputLength` will hold the number of code points in `input`. */\r\n\t\t    inputLength,\r\n\t\t    /** Cached calculation results */\r\n\t\t    handledCPCountPlusOne,\r\n\t\t    baseMinusT,\r\n\t\t    qMinusT;\r\n\r\n\t\t// Convert the input in UCS-2 to Unicode\r\n\t\tinput = ucs2decode(input);\r\n\r\n\t\t// Cache the length\r\n\t\tinputLength = input.length;\r\n\r\n\t\t// Initialize the state\r\n\t\tn = initialN;\r\n\t\tdelta = 0;\r\n\t\tbias = initialBias;\r\n\r\n\t\t// Handle the basic code points\r\n\t\tfor (j = 0; j < inputLength; ++j) {\r\n\t\t\tcurrentValue = input[j];\r\n\t\t\tif (currentValue < 0x80) {\r\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\thandledCPCount = basicLength = output.length;\r\n\r\n\t\t// `handledCPCount` is the number of code points that have been handled;\r\n\t\t// `basicLength` is the number of basic code points.\r\n\r\n\t\t// Finish the basic string - if it is not empty - with a delimiter\r\n\t\tif (basicLength) {\r\n\t\t\toutput.push(delimiter);\r\n\t\t}\r\n\r\n\t\t// Main encoding loop:\r\n\t\twhile (handledCPCount < inputLength) {\r\n\r\n\t\t\t// All non-basic code points < n have been handled already. Find the next\r\n\t\t\t// larger one:\r\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\r\n\t\t\t\tcurrentValue = input[j];\r\n\t\t\t\tif (currentValue >= n && currentValue < m) {\r\n\t\t\t\t\tm = currentValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,\r\n\t\t\t// but guard against overflow\r\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\r\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\r\n\t\t\t\terror('overflow');\r\n\t\t\t}\r\n\r\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\r\n\t\t\tn = m;\r\n\r\n\t\t\tfor (j = 0; j < inputLength; ++j) {\r\n\t\t\t\tcurrentValue = input[j];\r\n\r\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\r\n\t\t\t\t\terror('overflow');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (currentValue == n) {\r\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\r\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\r\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\r\n\t\t\t\t\t\tif (q < t) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tqMinusT = q - t;\r\n\t\t\t\t\t\tbaseMinusT = base - t;\r\n\t\t\t\t\t\toutput.push(\r\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\r\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\r\n\t\t\t\t\tdelta = 0;\r\n\t\t\t\t\t++handledCPCount;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t++delta;\r\n\t\t\t++n;\r\n\r\n\t\t}\r\n\t\treturn output.join('');\r\n\t}\r\n\r\n\t/**\r\n\t * Converts a Punycode string representing a domain name or an email address\r\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\r\n\t * it doesn't matter if you call it on a string that has already been\r\n\t * converted to Unicode.\r\n\t * @memberOf punycode\r\n\t * @param {String} input The Punycoded domain name or email address to\r\n\t * convert to Unicode.\r\n\t * @returns {String} The Unicode representation of the given Punycode\r\n\t * string.\r\n\t */\r\n\tfunction toUnicode(input) {\r\n\t\treturn mapDomain(input, function(string) {\r\n\t\t\treturn regexPunycode.test(string)\r\n\t\t\t\t? decode(string.slice(4).toLowerCase())\r\n\t\t\t\t: string;\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Converts a Unicode string representing a domain name or an email address to\r\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\r\n\t * i.e. it doesn't matter if you call it with a domain that's already in\r\n\t * ASCII.\r\n\t * @memberOf punycode\r\n\t * @param {String} input The domain name or email address to convert, as a\r\n\t * Unicode string.\r\n\t * @returns {String} The Punycode representation of the given domain name or\r\n\t * email address.\r\n\t */\r\n\tfunction toASCII(input) {\r\n\t\treturn mapDomain(input, function(string) {\r\n\t\t\treturn regexNonASCII.test(string)\r\n\t\t\t\t? 'xn--' + encode(string)\r\n\t\t\t\t: string;\r\n\t\t});\r\n\t}\r\n\r\n\t/*--------------------------------------------------------------------------*/\r\n\r\n\t/** Define the public API */\r\n\tpunycode = {\r\n\t\t/**\r\n\t\t * A string representing the current Punycode.js version number.\r\n\t\t * @memberOf punycode\r\n\t\t * @type String\r\n\t\t */\r\n\t\t'version': '1.4.1',\r\n\t\t/**\r\n\t\t * An object of methods to convert from JavaScript's internal character\r\n\t\t * representation (UCS-2) to Unicode code points, and back.\r\n\t\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\r\n\t\t * @memberOf punycode\r\n\t\t * @type Object\r\n\t\t */\r\n\t\t'ucs2': {\r\n\t\t\t'decode': ucs2decode,\r\n\t\t\t'encode': ucs2encode\r\n\t\t},\r\n\t\t'decode': decode,\r\n\t\t'encode': encode,\r\n\t\t'toASCII': toASCII,\r\n\t\t'toUnicode': toUnicode\r\n\t};\r\n\r\n\t/** Expose `punycode` */\r\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\r\n\t// like the following:\r\n\tif (\r\n\t\ttypeof define == 'function' &&\r\n\t\ttypeof define.amd == 'object' &&\r\n\t\tdefine.amd\r\n\t) {\r\n\t\tdefine('punycode', function() {\r\n\t\t\treturn punycode;\r\n\t\t});\r\n\t} else if (freeExports && freeModule) {\r\n\t\tif (module.exports == freeExports) {\r\n\t\t\t// in Node.js, io.js, or RingoJS v0.8.0+\r\n\t\t\tfreeModule.exports = punycode;\r\n\t\t} else {\r\n\t\t\t// in Narwhal or RingoJS v0.7.0-\r\n\t\t\tfor (key in punycode) {\r\n\t\t\t\tpunycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\r\n\t\t\t}\r\n\t\t}\r\n\t} else {\r\n\t\t// in Rhino or a web browser\r\n\t\troot.punycode = punycode;\r\n\t}\r\n\r\n}(this));\r\n\r\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\r\n},{}],55:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n'use strict';\r\n\r\n/*<replacement>*/\r\n\r\nvar Buffer = require('safe-buffer').Buffer;\r\n/*</replacement>*/\r\n\r\nvar isEncoding = Buffer.isEncoding || function (encoding) {\r\n  encoding = '' + encoding;\r\n  switch (encoding && encoding.toLowerCase()) {\r\n    case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\r\n      return true;\r\n    default:\r\n      return false;\r\n  }\r\n};\r\n\r\nfunction _normalizeEncoding(enc) {\r\n  if (!enc) return 'utf8';\r\n  var retried;\r\n  while (true) {\r\n    switch (enc) {\r\n      case 'utf8':\r\n      case 'utf-8':\r\n        return 'utf8';\r\n      case 'ucs2':\r\n      case 'ucs-2':\r\n      case 'utf16le':\r\n      case 'utf-16le':\r\n        return 'utf16le';\r\n      case 'latin1':\r\n      case 'binary':\r\n        return 'latin1';\r\n      case 'base64':\r\n      case 'ascii':\r\n      case 'hex':\r\n        return enc;\r\n      default:\r\n        if (retried) return; // undefined\r\n        enc = ('' + enc).toLowerCase();\r\n        retried = true;\r\n    }\r\n  }\r\n};\r\n\r\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\r\n// modules monkey-patch it to support additional encodings\r\nfunction normalizeEncoding(enc) {\r\n  var nenc = _normalizeEncoding(enc);\r\n  if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\r\n  return nenc || enc;\r\n}\r\n\r\n// StringDecoder provides an interface for efficiently splitting a series of\r\n// buffers into a series of JS strings without breaking apart multi-byte\r\n// characters.\r\nexports.StringDecoder = StringDecoder;\r\nfunction StringDecoder(encoding) {\r\n  this.encoding = normalizeEncoding(encoding);\r\n  var nb;\r\n  switch (this.encoding) {\r\n    case 'utf16le':\r\n      this.text = utf16Text;\r\n      this.end = utf16End;\r\n      nb = 4;\r\n      break;\r\n    case 'utf8':\r\n      this.fillLast = utf8FillLast;\r\n      nb = 4;\r\n      break;\r\n    case 'base64':\r\n      this.text = base64Text;\r\n      this.end = base64End;\r\n      nb = 3;\r\n      break;\r\n    default:\r\n      this.write = simpleWrite;\r\n      this.end = simpleEnd;\r\n      return;\r\n  }\r\n  this.lastNeed = 0;\r\n  this.lastTotal = 0;\r\n  this.lastChar = Buffer.allocUnsafe(nb);\r\n}\r\n\r\nStringDecoder.prototype.write = function (buf) {\r\n  if (buf.length === 0) return '';\r\n  var r;\r\n  var i;\r\n  if (this.lastNeed) {\r\n    r = this.fillLast(buf);\r\n    if (r === undefined) return '';\r\n    i = this.lastNeed;\r\n    this.lastNeed = 0;\r\n  } else {\r\n    i = 0;\r\n  }\r\n  if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\r\n  return r || '';\r\n};\r\n\r\nStringDecoder.prototype.end = utf8End;\r\n\r\n// Returns only complete characters in a Buffer\r\nStringDecoder.prototype.text = utf8Text;\r\n\r\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\r\nStringDecoder.prototype.fillLast = function (buf) {\r\n  if (this.lastNeed <= buf.length) {\r\n    buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\r\n    return this.lastChar.toString(this.encoding, 0, this.lastTotal);\r\n  }\r\n  buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\r\n  this.lastNeed -= buf.length;\r\n};\r\n\r\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\r\n// continuation byte. If an invalid byte is detected, -2 is returned.\r\nfunction utf8CheckByte(byte) {\r\n  if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\r\n  return byte >> 6 === 0x02 ? -1 : -2;\r\n}\r\n\r\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\r\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\r\n// needed to complete the UTF-8 character (if applicable) are returned.\r\nfunction utf8CheckIncomplete(self, buf, i) {\r\n  var j = buf.length - 1;\r\n  if (j < i) return 0;\r\n  var nb = utf8CheckByte(buf[j]);\r\n  if (nb >= 0) {\r\n    if (nb > 0) self.lastNeed = nb - 1;\r\n    return nb;\r\n  }\r\n  if (--j < i || nb === -2) return 0;\r\n  nb = utf8CheckByte(buf[j]);\r\n  if (nb >= 0) {\r\n    if (nb > 0) self.lastNeed = nb - 2;\r\n    return nb;\r\n  }\r\n  if (--j < i || nb === -2) return 0;\r\n  nb = utf8CheckByte(buf[j]);\r\n  if (nb >= 0) {\r\n    if (nb > 0) {\r\n      if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\r\n    }\r\n    return nb;\r\n  }\r\n  return 0;\r\n}\r\n\r\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\r\n// needed or are available. If we see a non-continuation byte where we expect\r\n// one, we \"replace\" the validated continuation bytes we've seen so far with\r\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\r\n// behavior. The continuation byte check is included three times in the case\r\n// where all of the continuation bytes for a character exist in the same buffer.\r\n// It is also done this way as a slight performance increase instead of using a\r\n// loop.\r\nfunction utf8CheckExtraBytes(self, buf, p) {\r\n  if ((buf[0] & 0xC0) !== 0x80) {\r\n    self.lastNeed = 0;\r\n    return '\\ufffd';\r\n  }\r\n  if (self.lastNeed > 1 && buf.length > 1) {\r\n    if ((buf[1] & 0xC0) !== 0x80) {\r\n      self.lastNeed = 1;\r\n      return '\\ufffd';\r\n    }\r\n    if (self.lastNeed > 2 && buf.length > 2) {\r\n      if ((buf[2] & 0xC0) !== 0x80) {\r\n        self.lastNeed = 2;\r\n        return '\\ufffd';\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\r\nfunction utf8FillLast(buf) {\r\n  var p = this.lastTotal - this.lastNeed;\r\n  var r = utf8CheckExtraBytes(this, buf, p);\r\n  if (r !== undefined) return r;\r\n  if (this.lastNeed <= buf.length) {\r\n    buf.copy(this.lastChar, p, 0, this.lastNeed);\r\n    return this.lastChar.toString(this.encoding, 0, this.lastTotal);\r\n  }\r\n  buf.copy(this.lastChar, p, 0, buf.length);\r\n  this.lastNeed -= buf.length;\r\n}\r\n\r\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\r\n// partial character, the character's bytes are buffered until the required\r\n// number of bytes are available.\r\nfunction utf8Text(buf, i) {\r\n  var total = utf8CheckIncomplete(this, buf, i);\r\n  if (!this.lastNeed) return buf.toString('utf8', i);\r\n  this.lastTotal = total;\r\n  var end = buf.length - (total - this.lastNeed);\r\n  buf.copy(this.lastChar, 0, end);\r\n  return buf.toString('utf8', i, end);\r\n}\r\n\r\n// For UTF-8, a replacement character is added when ending on a partial\r\n// character.\r\nfunction utf8End(buf) {\r\n  var r = buf && buf.length ? this.write(buf) : '';\r\n  if (this.lastNeed) return r + '\\ufffd';\r\n  return r;\r\n}\r\n\r\n// UTF-16LE typically needs two bytes per character, but even if we have an even\r\n// number of bytes available, we need to check if we end on a leading/high\r\n// surrogate. In that case, we need to wait for the next two bytes in order to\r\n// decode the last character properly.\r\nfunction utf16Text(buf, i) {\r\n  if ((buf.length - i) % 2 === 0) {\r\n    var r = buf.toString('utf16le', i);\r\n    if (r) {\r\n      var c = r.charCodeAt(r.length - 1);\r\n      if (c >= 0xD800 && c <= 0xDBFF) {\r\n        this.lastNeed = 2;\r\n        this.lastTotal = 4;\r\n        this.lastChar[0] = buf[buf.length - 2];\r\n        this.lastChar[1] = buf[buf.length - 1];\r\n        return r.slice(0, -1);\r\n      }\r\n    }\r\n    return r;\r\n  }\r\n  this.lastNeed = 1;\r\n  this.lastTotal = 2;\r\n  this.lastChar[0] = buf[buf.length - 1];\r\n  return buf.toString('utf16le', i, buf.length - 1);\r\n}\r\n\r\n// For UTF-16LE we do not explicitly append special replacement characters if we\r\n// end on a partial character, we simply let v8 handle that.\r\nfunction utf16End(buf) {\r\n  var r = buf && buf.length ? this.write(buf) : '';\r\n  if (this.lastNeed) {\r\n    var end = this.lastTotal - this.lastNeed;\r\n    return r + this.lastChar.toString('utf16le', 0, end);\r\n  }\r\n  return r;\r\n}\r\n\r\nfunction base64Text(buf, i) {\r\n  var n = (buf.length - i) % 3;\r\n  if (n === 0) return buf.toString('base64', i);\r\n  this.lastNeed = 3 - n;\r\n  this.lastTotal = 3;\r\n  if (n === 1) {\r\n    this.lastChar[0] = buf[buf.length - 1];\r\n  } else {\r\n    this.lastChar[0] = buf[buf.length - 2];\r\n    this.lastChar[1] = buf[buf.length - 1];\r\n  }\r\n  return buf.toString('base64', i, buf.length - n);\r\n}\r\n\r\nfunction base64End(buf) {\r\n  var r = buf && buf.length ? this.write(buf) : '';\r\n  if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\r\n  return r;\r\n}\r\n\r\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\r\nfunction simpleWrite(buf) {\r\n  return buf.toString(this.encoding);\r\n}\r\n\r\nfunction simpleEnd(buf) {\r\n  return buf && buf.length ? this.write(buf) : '';\r\n}\r\n},{\"safe-buffer\":86}],56:[function(require,module,exports){\r\n(function (Buffer){\r\n/*!\r\n * The buffer module from node.js, for the browser.\r\n *\r\n * @author   Feross Aboukhadijeh <https://feross.org>\r\n * @license  MIT\r\n */\r\n/* eslint-disable no-proto */\r\n\r\n'use strict'\r\n\r\nvar base64 = require('base64-js')\r\nvar ieee754 = require('ieee754')\r\n\r\nexports.Buffer = Buffer\r\nexports.SlowBuffer = SlowBuffer\r\nexports.INSPECT_MAX_BYTES = 50\r\n\r\nvar K_MAX_LENGTH = 0x7fffffff\r\nexports.kMaxLength = K_MAX_LENGTH\r\n\r\n/**\r\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\r\n *   === true    Use Uint8Array implementation (fastest)\r\n *   === false   Print warning and recommend using `buffer` v4.x which has an Object\r\n *               implementation (most compatible, even IE6)\r\n *\r\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\r\n * Opera 11.6+, iOS 4.2+.\r\n *\r\n * We report that the browser does not support typed arrays if the are not subclassable\r\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\r\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\r\n * for __proto__ and has a buggy typed array implementation.\r\n */\r\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\r\n\r\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\r\n    typeof console.error === 'function') {\r\n  console.error(\r\n    'This browser lacks typed array (Uint8Array) support which is required by ' +\r\n    '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\r\n  )\r\n}\r\n\r\nfunction typedArraySupport () {\r\n  // Can typed array instances can be augmented?\r\n  try {\r\n    var arr = new Uint8Array(1)\r\n    var proto = { foo: function () { return 42 } }\r\n    Object.setPrototypeOf(proto, Uint8Array.prototype)\r\n    Object.setPrototypeOf(arr, proto)\r\n    return arr.foo() === 42\r\n  } catch (e) {\r\n    return false\r\n  }\r\n}\r\n\r\nObject.defineProperty(Buffer.prototype, 'parent', {\r\n  enumerable: true,\r\n  get: function () {\r\n    if (!Buffer.isBuffer(this)) return undefined\r\n    return this.buffer\r\n  }\r\n})\r\n\r\nObject.defineProperty(Buffer.prototype, 'offset', {\r\n  enumerable: true,\r\n  get: function () {\r\n    if (!Buffer.isBuffer(this)) return undefined\r\n    return this.byteOffset\r\n  }\r\n})\r\n\r\nfunction createBuffer (length) {\r\n  if (length > K_MAX_LENGTH) {\r\n    throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\r\n  }\r\n  // Return an augmented `Uint8Array` instance\r\n  var buf = new Uint8Array(length)\r\n  Object.setPrototypeOf(buf, Buffer.prototype)\r\n  return buf\r\n}\r\n\r\n/**\r\n * The Buffer constructor returns instances of `Uint8Array` that have their\r\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\r\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\r\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\r\n * returns a single octet.\r\n *\r\n * The `Uint8Array` prototype remains unmodified.\r\n */\r\n\r\nfunction Buffer (arg, encodingOrOffset, length) {\r\n  // Common case.\r\n  if (typeof arg === 'number') {\r\n    if (typeof encodingOrOffset === 'string') {\r\n      throw new TypeError(\r\n        'The \"string\" argument must be of type string. Received type number'\r\n      )\r\n    }\r\n    return allocUnsafe(arg)\r\n  }\r\n  return from(arg, encodingOrOffset, length)\r\n}\r\n\r\n// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\r\nif (typeof Symbol !== 'undefined' && Symbol.species != null &&\r\n    Buffer[Symbol.species] === Buffer) {\r\n  Object.defineProperty(Buffer, Symbol.species, {\r\n    value: null,\r\n    configurable: true,\r\n    enumerable: false,\r\n    writable: false\r\n  })\r\n}\r\n\r\nBuffer.poolSize = 8192 // not used by this implementation\r\n\r\nfunction from (value, encodingOrOffset, length) {\r\n  if (typeof value === 'string') {\r\n    return fromString(value, encodingOrOffset)\r\n  }\r\n\r\n  if (ArrayBuffer.isView(value)) {\r\n    return fromArrayLike(value)\r\n  }\r\n\r\n  if (value == null) {\r\n    throw TypeError(\r\n      'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\r\n      'or Array-like Object. Received type ' + (typeof value)\r\n    )\r\n  }\r\n\r\n  if (isInstance(value, ArrayBuffer) ||\r\n      (value && isInstance(value.buffer, ArrayBuffer))) {\r\n    return fromArrayBuffer(value, encodingOrOffset, length)\r\n  }\r\n\r\n  if (typeof value === 'number') {\r\n    throw new TypeError(\r\n      'The \"value\" argument must not be of type number. Received type number'\r\n    )\r\n  }\r\n\r\n  var valueOf = value.valueOf && value.valueOf()\r\n  if (valueOf != null && valueOf !== value) {\r\n    return Buffer.from(valueOf, encodingOrOffset, length)\r\n  }\r\n\r\n  var b = fromObject(value)\r\n  if (b) return b\r\n\r\n  if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\r\n      typeof value[Symbol.toPrimitive] === 'function') {\r\n    return Buffer.from(\r\n      value[Symbol.toPrimitive]('string'), encodingOrOffset, length\r\n    )\r\n  }\r\n\r\n  throw new TypeError(\r\n    'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\r\n    'or Array-like Object. Received type ' + (typeof value)\r\n  )\r\n}\r\n\r\n/**\r\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\r\n * if value is a number.\r\n * Buffer.from(str[, encoding])\r\n * Buffer.from(array)\r\n * Buffer.from(buffer)\r\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\r\n **/\r\nBuffer.from = function (value, encodingOrOffset, length) {\r\n  return from(value, encodingOrOffset, length)\r\n}\r\n\r\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\r\n// https://github.com/feross/buffer/pull/148\r\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\r\nObject.setPrototypeOf(Buffer, Uint8Array)\r\n\r\nfunction assertSize (size) {\r\n  if (typeof size !== 'number') {\r\n    throw new TypeError('\"size\" argument must be of type number')\r\n  } else if (size < 0) {\r\n    throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\r\n  }\r\n}\r\n\r\nfunction alloc (size, fill, encoding) {\r\n  assertSize(size)\r\n  if (size <= 0) {\r\n    return createBuffer(size)\r\n  }\r\n  if (fill !== undefined) {\r\n    // Only pay attention to encoding if it's a string. This\r\n    // prevents accidentally sending in a number that would\r\n    // be interpretted as a start offset.\r\n    return typeof encoding === 'string'\r\n      ? createBuffer(size).fill(fill, encoding)\r\n      : createBuffer(size).fill(fill)\r\n  }\r\n  return createBuffer(size)\r\n}\r\n\r\n/**\r\n * Creates a new filled Buffer instance.\r\n * alloc(size[, fill[, encoding]])\r\n **/\r\nBuffer.alloc = function (size, fill, encoding) {\r\n  return alloc(size, fill, encoding)\r\n}\r\n\r\nfunction allocUnsafe (size) {\r\n  assertSize(size)\r\n  return createBuffer(size < 0 ? 0 : checked(size) | 0)\r\n}\r\n\r\n/**\r\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\r\n * */\r\nBuffer.allocUnsafe = function (size) {\r\n  return allocUnsafe(size)\r\n}\r\n/**\r\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\r\n */\r\nBuffer.allocUnsafeSlow = function (size) {\r\n  return allocUnsafe(size)\r\n}\r\n\r\nfunction fromString (string, encoding) {\r\n  if (typeof encoding !== 'string' || encoding === '') {\r\n    encoding = 'utf8'\r\n  }\r\n\r\n  if (!Buffer.isEncoding(encoding)) {\r\n    throw new TypeError('Unknown encoding: ' + encoding)\r\n  }\r\n\r\n  var length = byteLength(string, encoding) | 0\r\n  var buf = createBuffer(length)\r\n\r\n  var actual = buf.write(string, encoding)\r\n\r\n  if (actual !== length) {\r\n    // Writing a hex string, for example, that contains invalid characters will\r\n    // cause everything after the first invalid character to be ignored. (e.g.\r\n    // 'abxxcd' will be treated as 'ab')\r\n    buf = buf.slice(0, actual)\r\n  }\r\n\r\n  return buf\r\n}\r\n\r\nfunction fromArrayLike (array) {\r\n  var length = array.length < 0 ? 0 : checked(array.length) | 0\r\n  var buf = createBuffer(length)\r\n  for (var i = 0; i < length; i += 1) {\r\n    buf[i] = array[i] & 255\r\n  }\r\n  return buf\r\n}\r\n\r\nfunction fromArrayBuffer (array, byteOffset, length) {\r\n  if (byteOffset < 0 || array.byteLength < byteOffset) {\r\n    throw new RangeError('\"offset\" is outside of buffer bounds')\r\n  }\r\n\r\n  if (array.byteLength < byteOffset + (length || 0)) {\r\n    throw new RangeError('\"length\" is outside of buffer bounds')\r\n  }\r\n\r\n  var buf\r\n  if (byteOffset === undefined && length === undefined) {\r\n    buf = new Uint8Array(array)\r\n  } else if (length === undefined) {\r\n    buf = new Uint8Array(array, byteOffset)\r\n  } else {\r\n    buf = new Uint8Array(array, byteOffset, length)\r\n  }\r\n\r\n  // Return an augmented `Uint8Array` instance\r\n  Object.setPrototypeOf(buf, Buffer.prototype)\r\n\r\n  return buf\r\n}\r\n\r\nfunction fromObject (obj) {\r\n  if (Buffer.isBuffer(obj)) {\r\n    var len = checked(obj.length) | 0\r\n    var buf = createBuffer(len)\r\n\r\n    if (buf.length === 0) {\r\n      return buf\r\n    }\r\n\r\n    obj.copy(buf, 0, 0, len)\r\n    return buf\r\n  }\r\n\r\n  if (obj.length !== undefined) {\r\n    if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\r\n      return createBuffer(0)\r\n    }\r\n    return fromArrayLike(obj)\r\n  }\r\n\r\n  if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\r\n    return fromArrayLike(obj.data)\r\n  }\r\n}\r\n\r\nfunction checked (length) {\r\n  // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\r\n  // length is NaN (which is otherwise coerced to zero.)\r\n  if (length >= K_MAX_LENGTH) {\r\n    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\r\n                         'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\r\n  }\r\n  return length | 0\r\n}\r\n\r\nfunction SlowBuffer (length) {\r\n  if (+length != length) { // eslint-disable-line eqeqeq\r\n    length = 0\r\n  }\r\n  return Buffer.alloc(+length)\r\n}\r\n\r\nBuffer.isBuffer = function isBuffer (b) {\r\n  return b != null && b._isBuffer === true &&\r\n    b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\r\n}\r\n\r\nBuffer.compare = function compare (a, b) {\r\n  if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\r\n  if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\r\n  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\r\n    throw new TypeError(\r\n      'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\r\n    )\r\n  }\r\n\r\n  if (a === b) return 0\r\n\r\n  var x = a.length\r\n  var y = b.length\r\n\r\n  for (var i = 0, len = Math.min(x, y); i < len; ++i) {\r\n    if (a[i] !== b[i]) {\r\n      x = a[i]\r\n      y = b[i]\r\n      break\r\n    }\r\n  }\r\n\r\n  if (x < y) return -1\r\n  if (y < x) return 1\r\n  return 0\r\n}\r\n\r\nBuffer.isEncoding = function isEncoding (encoding) {\r\n  switch (String(encoding).toLowerCase()) {\r\n    case 'hex':\r\n    case 'utf8':\r\n    case 'utf-8':\r\n    case 'ascii':\r\n    case 'latin1':\r\n    case 'binary':\r\n    case 'base64':\r\n    case 'ucs2':\r\n    case 'ucs-2':\r\n    case 'utf16le':\r\n    case 'utf-16le':\r\n      return true\r\n    default:\r\n      return false\r\n  }\r\n}\r\n\r\nBuffer.concat = function concat (list, length) {\r\n  if (!Array.isArray(list)) {\r\n    throw new TypeError('\"list\" argument must be an Array of Buffers')\r\n  }\r\n\r\n  if (list.length === 0) {\r\n    return Buffer.alloc(0)\r\n  }\r\n\r\n  var i\r\n  if (length === undefined) {\r\n    length = 0\r\n    for (i = 0; i < list.length; ++i) {\r\n      length += list[i].length\r\n    }\r\n  }\r\n\r\n  var buffer = Buffer.allocUnsafe(length)\r\n  var pos = 0\r\n  for (i = 0; i < list.length; ++i) {\r\n    var buf = list[i]\r\n    if (isInstance(buf, Uint8Array)) {\r\n      buf = Buffer.from(buf)\r\n    }\r\n    if (!Buffer.isBuffer(buf)) {\r\n      throw new TypeError('\"list\" argument must be an Array of Buffers')\r\n    }\r\n    buf.copy(buffer, pos)\r\n    pos += buf.length\r\n  }\r\n  return buffer\r\n}\r\n\r\nfunction byteLength (string, encoding) {\r\n  if (Buffer.isBuffer(string)) {\r\n    return string.length\r\n  }\r\n  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\r\n    return string.byteLength\r\n  }\r\n  if (typeof string !== 'string') {\r\n    throw new TypeError(\r\n      'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\r\n      'Received type ' + typeof string\r\n    )\r\n  }\r\n\r\n  var len = string.length\r\n  var mustMatch = (arguments.length > 2 && arguments[2] === true)\r\n  if (!mustMatch && len === 0) return 0\r\n\r\n  // Use a for loop to avoid recursion\r\n  var loweredCase = false\r\n  for (;;) {\r\n    switch (encoding) {\r\n      case 'ascii':\r\n      case 'latin1':\r\n      case 'binary':\r\n        return len\r\n      case 'utf8':\r\n      case 'utf-8':\r\n        return utf8ToBytes(string).length\r\n      case 'ucs2':\r\n      case 'ucs-2':\r\n      case 'utf16le':\r\n      case 'utf-16le':\r\n        return len * 2\r\n      case 'hex':\r\n        return len >>> 1\r\n      case 'base64':\r\n        return base64ToBytes(string).length\r\n      default:\r\n        if (loweredCase) {\r\n          return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\r\n        }\r\n        encoding = ('' + encoding).toLowerCase()\r\n        loweredCase = true\r\n    }\r\n  }\r\n}\r\nBuffer.byteLength = byteLength\r\n\r\nfunction slowToString (encoding, start, end) {\r\n  var loweredCase = false\r\n\r\n  // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\r\n  // property of a typed array.\r\n\r\n  // This behaves neither like String nor Uint8Array in that we set start/end\r\n  // to their upper/lower bounds if the value passed is out of range.\r\n  // undefined is handled specially as per ECMA-262 6th Edition,\r\n  // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\r\n  if (start === undefined || start < 0) {\r\n    start = 0\r\n  }\r\n  // Return early if start > this.length. Done here to prevent potential uint32\r\n  // coercion fail below.\r\n  if (start > this.length) {\r\n    return ''\r\n  }\r\n\r\n  if (end === undefined || end > this.length) {\r\n    end = this.length\r\n  }\r\n\r\n  if (end <= 0) {\r\n    return ''\r\n  }\r\n\r\n  // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\r\n  end >>>= 0\r\n  start >>>= 0\r\n\r\n  if (end <= start) {\r\n    return ''\r\n  }\r\n\r\n  if (!encoding) encoding = 'utf8'\r\n\r\n  while (true) {\r\n    switch (encoding) {\r\n      case 'hex':\r\n        return hexSlice(this, start, end)\r\n\r\n      case 'utf8':\r\n      case 'utf-8':\r\n        return utf8Slice(this, start, end)\r\n\r\n      case 'ascii':\r\n        return asciiSlice(this, start, end)\r\n\r\n      case 'latin1':\r\n      case 'binary':\r\n        return latin1Slice(this, start, end)\r\n\r\n      case 'base64':\r\n        return base64Slice(this, start, end)\r\n\r\n      case 'ucs2':\r\n      case 'ucs-2':\r\n      case 'utf16le':\r\n      case 'utf-16le':\r\n        return utf16leSlice(this, start, end)\r\n\r\n      default:\r\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\r\n        encoding = (encoding + '').toLowerCase()\r\n        loweredCase = true\r\n    }\r\n  }\r\n}\r\n\r\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\r\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\r\n// reliably in a browserify context because there could be multiple different\r\n// copies of the 'buffer' package in use. This method works even for Buffer\r\n// instances that were created from another copy of the `buffer` package.\r\n// See: https://github.com/feross/buffer/issues/154\r\nBuffer.prototype._isBuffer = true\r\n\r\nfunction swap (b, n, m) {\r\n  var i = b[n]\r\n  b[n] = b[m]\r\n  b[m] = i\r\n}\r\n\r\nBuffer.prototype.swap16 = function swap16 () {\r\n  var len = this.length\r\n  if (len % 2 !== 0) {\r\n    throw new RangeError('Buffer size must be a multiple of 16-bits')\r\n  }\r\n  for (var i = 0; i < len; i += 2) {\r\n    swap(this, i, i + 1)\r\n  }\r\n  return this\r\n}\r\n\r\nBuffer.prototype.swap32 = function swap32 () {\r\n  var len = this.length\r\n  if (len % 4 !== 0) {\r\n    throw new RangeError('Buffer size must be a multiple of 32-bits')\r\n  }\r\n  for (var i = 0; i < len; i += 4) {\r\n    swap(this, i, i + 3)\r\n    swap(this, i + 1, i + 2)\r\n  }\r\n  return this\r\n}\r\n\r\nBuffer.prototype.swap64 = function swap64 () {\r\n  var len = this.length\r\n  if (len % 8 !== 0) {\r\n    throw new RangeError('Buffer size must be a multiple of 64-bits')\r\n  }\r\n  for (var i = 0; i < len; i += 8) {\r\n    swap(this, i, i + 7)\r\n    swap(this, i + 1, i + 6)\r\n    swap(this, i + 2, i + 5)\r\n    swap(this, i + 3, i + 4)\r\n  }\r\n  return this\r\n}\r\n\r\nBuffer.prototype.toString = function toString () {\r\n  var length = this.length\r\n  if (length === 0) return ''\r\n  if (arguments.length === 0) return utf8Slice(this, 0, length)\r\n  return slowToString.apply(this, arguments)\r\n}\r\n\r\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\r\n\r\nBuffer.prototype.equals = function equals (b) {\r\n  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\r\n  if (this === b) return true\r\n  return Buffer.compare(this, b) === 0\r\n}\r\n\r\nBuffer.prototype.inspect = function inspect () {\r\n  var str = ''\r\n  var max = exports.INSPECT_MAX_BYTES\r\n  str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\r\n  if (this.length > max) str += ' ... '\r\n  return '<Buffer ' + str + '>'\r\n}\r\n\r\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\r\n  if (isInstance(target, Uint8Array)) {\r\n    target = Buffer.from(target, target.offset, target.byteLength)\r\n  }\r\n  if (!Buffer.isBuffer(target)) {\r\n    throw new TypeError(\r\n      'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\r\n      'Received type ' + (typeof target)\r\n    )\r\n  }\r\n\r\n  if (start === undefined) {\r\n    start = 0\r\n  }\r\n  if (end === undefined) {\r\n    end = target ? target.length : 0\r\n  }\r\n  if (thisStart === undefined) {\r\n    thisStart = 0\r\n  }\r\n  if (thisEnd === undefined) {\r\n    thisEnd = this.length\r\n  }\r\n\r\n  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\r\n    throw new RangeError('out of range index')\r\n  }\r\n\r\n  if (thisStart >= thisEnd && start >= end) {\r\n    return 0\r\n  }\r\n  if (thisStart >= thisEnd) {\r\n    return -1\r\n  }\r\n  if (start >= end) {\r\n    return 1\r\n  }\r\n\r\n  start >>>= 0\r\n  end >>>= 0\r\n  thisStart >>>= 0\r\n  thisEnd >>>= 0\r\n\r\n  if (this === target) return 0\r\n\r\n  var x = thisEnd - thisStart\r\n  var y = end - start\r\n  var len = Math.min(x, y)\r\n\r\n  var thisCopy = this.slice(thisStart, thisEnd)\r\n  var targetCopy = target.slice(start, end)\r\n\r\n  for (var i = 0; i < len; ++i) {\r\n    if (thisCopy[i] !== targetCopy[i]) {\r\n      x = thisCopy[i]\r\n      y = targetCopy[i]\r\n      break\r\n    }\r\n  }\r\n\r\n  if (x < y) return -1\r\n  if (y < x) return 1\r\n  return 0\r\n}\r\n\r\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\r\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\r\n//\r\n// Arguments:\r\n// - buffer - a Buffer to search\r\n// - val - a string, Buffer, or number\r\n// - byteOffset - an index into `buffer`; will be clamped to an int32\r\n// - encoding - an optional encoding, relevant is val is a string\r\n// - dir - true for indexOf, false for lastIndexOf\r\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\r\n  // Empty buffer means no match\r\n  if (buffer.length === 0) return -1\r\n\r\n  // Normalize byteOffset\r\n  if (typeof byteOffset === 'string') {\r\n    encoding = byteOffset\r\n    byteOffset = 0\r\n  } else if (byteOffset > 0x7fffffff) {\r\n    byteOffset = 0x7fffffff\r\n  } else if (byteOffset < -0x80000000) {\r\n    byteOffset = -0x80000000\r\n  }\r\n  byteOffset = +byteOffset // Coerce to Number.\r\n  if (numberIsNaN(byteOffset)) {\r\n    // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\r\n    byteOffset = dir ? 0 : (buffer.length - 1)\r\n  }\r\n\r\n  // Normalize byteOffset: negative offsets start from the end of the buffer\r\n  if (byteOffset < 0) byteOffset = buffer.length + byteOffset\r\n  if (byteOffset >= buffer.length) {\r\n    if (dir) return -1\r\n    else byteOffset = buffer.length - 1\r\n  } else if (byteOffset < 0) {\r\n    if (dir) byteOffset = 0\r\n    else return -1\r\n  }\r\n\r\n  // Normalize val\r\n  if (typeof val === 'string') {\r\n    val = Buffer.from(val, encoding)\r\n  }\r\n\r\n  // Finally, search either indexOf (if dir is true) or lastIndexOf\r\n  if (Buffer.isBuffer(val)) {\r\n    // Special case: looking for empty string/buffer always fails\r\n    if (val.length === 0) {\r\n      return -1\r\n    }\r\n    return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\r\n  } else if (typeof val === 'number') {\r\n    val = val & 0xFF // Search for a byte value [0-255]\r\n    if (typeof Uint8Array.prototype.indexOf === 'function') {\r\n      if (dir) {\r\n        return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\r\n      } else {\r\n        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\r\n      }\r\n    }\r\n    return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\r\n  }\r\n\r\n  throw new TypeError('val must be string, number or Buffer')\r\n}\r\n\r\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\r\n  var indexSize = 1\r\n  var arrLength = arr.length\r\n  var valLength = val.length\r\n\r\n  if (encoding !== undefined) {\r\n    encoding = String(encoding).toLowerCase()\r\n    if (encoding === 'ucs2' || encoding === 'ucs-2' ||\r\n        encoding === 'utf16le' || encoding === 'utf-16le') {\r\n      if (arr.length < 2 || val.length < 2) {\r\n        return -1\r\n      }\r\n      indexSize = 2\r\n      arrLength /= 2\r\n      valLength /= 2\r\n      byteOffset /= 2\r\n    }\r\n  }\r\n\r\n  function read (buf, i) {\r\n    if (indexSize === 1) {\r\n      return buf[i]\r\n    } else {\r\n      return buf.readUInt16BE(i * indexSize)\r\n    }\r\n  }\r\n\r\n  var i\r\n  if (dir) {\r\n    var foundIndex = -1\r\n    for (i = byteOffset; i < arrLength; i++) {\r\n      if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\r\n        if (foundIndex === -1) foundIndex = i\r\n        if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\r\n      } else {\r\n        if (foundIndex !== -1) i -= i - foundIndex\r\n        foundIndex = -1\r\n      }\r\n    }\r\n  } else {\r\n    if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\r\n    for (i = byteOffset; i >= 0; i--) {\r\n      var found = true\r\n      for (var j = 0; j < valLength; j++) {\r\n        if (read(arr, i + j) !== read(val, j)) {\r\n          found = false\r\n          break\r\n        }\r\n      }\r\n      if (found) return i\r\n    }\r\n  }\r\n\r\n  return -1\r\n}\r\n\r\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\r\n  return this.indexOf(val, byteOffset, encoding) !== -1\r\n}\r\n\r\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\r\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\r\n}\r\n\r\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\r\n  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\r\n}\r\n\r\nfunction hexWrite (buf, string, offset, length) {\r\n  offset = Number(offset) || 0\r\n  var remaining = buf.length - offset\r\n  if (!length) {\r\n    length = remaining\r\n  } else {\r\n    length = Number(length)\r\n    if (length > remaining) {\r\n      length = remaining\r\n    }\r\n  }\r\n\r\n  var strLen = string.length\r\n\r\n  if (length > strLen / 2) {\r\n    length = strLen / 2\r\n  }\r\n  for (var i = 0; i < length; ++i) {\r\n    var parsed = parseInt(string.substr(i * 2, 2), 16)\r\n    if (numberIsNaN(parsed)) return i\r\n    buf[offset + i] = parsed\r\n  }\r\n  return i\r\n}\r\n\r\nfunction utf8Write (buf, string, offset, length) {\r\n  return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\r\n}\r\n\r\nfunction asciiWrite (buf, string, offset, length) {\r\n  return blitBuffer(asciiToBytes(string), buf, offset, length)\r\n}\r\n\r\nfunction latin1Write (buf, string, offset, length) {\r\n  return asciiWrite(buf, string, offset, length)\r\n}\r\n\r\nfunction base64Write (buf, string, offset, length) {\r\n  return blitBuffer(base64ToBytes(string), buf, offset, length)\r\n}\r\n\r\nfunction ucs2Write (buf, string, offset, length) {\r\n  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\r\n}\r\n\r\nBuffer.prototype.write = function write (string, offset, length, encoding) {\r\n  // Buffer#write(string)\r\n  if (offset === undefined) {\r\n    encoding = 'utf8'\r\n    length = this.length\r\n    offset = 0\r\n  // Buffer#write(string, encoding)\r\n  } else if (length === undefined && typeof offset === 'string') {\r\n    encoding = offset\r\n    length = this.length\r\n    offset = 0\r\n  // Buffer#write(string, offset[, length][, encoding])\r\n  } else if (isFinite(offset)) {\r\n    offset = offset >>> 0\r\n    if (isFinite(length)) {\r\n      length = length >>> 0\r\n      if (encoding === undefined) encoding = 'utf8'\r\n    } else {\r\n      encoding = length\r\n      length = undefined\r\n    }\r\n  } else {\r\n    throw new Error(\r\n      'Buffer.write(string, encoding, offset[, length]) is no longer supported'\r\n    )\r\n  }\r\n\r\n  var remaining = this.length - offset\r\n  if (length === undefined || length > remaining) length = remaining\r\n\r\n  if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\r\n    throw new RangeError('Attempt to write outside buffer bounds')\r\n  }\r\n\r\n  if (!encoding) encoding = 'utf8'\r\n\r\n  var loweredCase = false\r\n  for (;;) {\r\n    switch (encoding) {\r\n      case 'hex':\r\n        return hexWrite(this, string, offset, length)\r\n\r\n      case 'utf8':\r\n      case 'utf-8':\r\n        return utf8Write(this, string, offset, length)\r\n\r\n      case 'ascii':\r\n        return asciiWrite(this, string, offset, length)\r\n\r\n      case 'latin1':\r\n      case 'binary':\r\n        return latin1Write(this, string, offset, length)\r\n\r\n      case 'base64':\r\n        // Warning: maxLength not taken into account in base64Write\r\n        return base64Write(this, string, offset, length)\r\n\r\n      case 'ucs2':\r\n      case 'ucs-2':\r\n      case 'utf16le':\r\n      case 'utf-16le':\r\n        return ucs2Write(this, string, offset, length)\r\n\r\n      default:\r\n        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\r\n        encoding = ('' + encoding).toLowerCase()\r\n        loweredCase = true\r\n    }\r\n  }\r\n}\r\n\r\nBuffer.prototype.toJSON = function toJSON () {\r\n  return {\r\n    type: 'Buffer',\r\n    data: Array.prototype.slice.call(this._arr || this, 0)\r\n  }\r\n}\r\n\r\nfunction base64Slice (buf, start, end) {\r\n  if (start === 0 && end === buf.length) {\r\n    return base64.fromByteArray(buf)\r\n  } else {\r\n    return base64.fromByteArray(buf.slice(start, end))\r\n  }\r\n}\r\n\r\nfunction utf8Slice (buf, start, end) {\r\n  end = Math.min(buf.length, end)\r\n  var res = []\r\n\r\n  var i = start\r\n  while (i < end) {\r\n    var firstByte = buf[i]\r\n    var codePoint = null\r\n    var bytesPerSequence = (firstByte > 0xEF) ? 4\r\n      : (firstByte > 0xDF) ? 3\r\n        : (firstByte > 0xBF) ? 2\r\n          : 1\r\n\r\n    if (i + bytesPerSequence <= end) {\r\n      var secondByte, thirdByte, fourthByte, tempCodePoint\r\n\r\n      switch (bytesPerSequence) {\r\n        case 1:\r\n          if (firstByte < 0x80) {\r\n            codePoint = firstByte\r\n          }\r\n          break\r\n        case 2:\r\n          secondByte = buf[i + 1]\r\n          if ((secondByte & 0xC0) === 0x80) {\r\n            tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\r\n            if (tempCodePoint > 0x7F) {\r\n              codePoint = tempCodePoint\r\n            }\r\n          }\r\n          break\r\n        case 3:\r\n          secondByte = buf[i + 1]\r\n          thirdByte = buf[i + 2]\r\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\r\n            tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\r\n            if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\r\n              codePoint = tempCodePoint\r\n            }\r\n          }\r\n          break\r\n        case 4:\r\n          secondByte = buf[i + 1]\r\n          thirdByte = buf[i + 2]\r\n          fourthByte = buf[i + 3]\r\n          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\r\n            tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\r\n            if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\r\n              codePoint = tempCodePoint\r\n            }\r\n          }\r\n      }\r\n    }\r\n\r\n    if (codePoint === null) {\r\n      // we did not generate a valid codePoint so insert a\r\n      // replacement char (U+FFFD) and advance only 1 byte\r\n      codePoint = 0xFFFD\r\n      bytesPerSequence = 1\r\n    } else if (codePoint > 0xFFFF) {\r\n      // encode to utf16 (surrogate pair dance)\r\n      codePoint -= 0x10000\r\n      res.push(codePoint >>> 10 & 0x3FF | 0xD800)\r\n      codePoint = 0xDC00 | codePoint & 0x3FF\r\n    }\r\n\r\n    res.push(codePoint)\r\n    i += bytesPerSequence\r\n  }\r\n\r\n  return decodeCodePointsArray(res)\r\n}\r\n\r\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\r\n// the lowest limit is Chrome, with 0x10000 args.\r\n// We go 1 magnitude less, for safety\r\nvar MAX_ARGUMENTS_LENGTH = 0x1000\r\n\r\nfunction decodeCodePointsArray (codePoints) {\r\n  var len = codePoints.length\r\n  if (len <= MAX_ARGUMENTS_LENGTH) {\r\n    return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\r\n  }\r\n\r\n  // Decode in chunks to avoid \"call stack size exceeded\".\r\n  var res = ''\r\n  var i = 0\r\n  while (i < len) {\r\n    res += String.fromCharCode.apply(\r\n      String,\r\n      codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\r\n    )\r\n  }\r\n  return res\r\n}\r\n\r\nfunction asciiSlice (buf, start, end) {\r\n  var ret = ''\r\n  end = Math.min(buf.length, end)\r\n\r\n  for (var i = start; i < end; ++i) {\r\n    ret += String.fromCharCode(buf[i] & 0x7F)\r\n  }\r\n  return ret\r\n}\r\n\r\nfunction latin1Slice (buf, start, end) {\r\n  var ret = ''\r\n  end = Math.min(buf.length, end)\r\n\r\n  for (var i = start; i < end; ++i) {\r\n    ret += String.fromCharCode(buf[i])\r\n  }\r\n  return ret\r\n}\r\n\r\nfunction hexSlice (buf, start, end) {\r\n  var len = buf.length\r\n\r\n  if (!start || start < 0) start = 0\r\n  if (!end || end < 0 || end > len) end = len\r\n\r\n  var out = ''\r\n  for (var i = start; i < end; ++i) {\r\n    out += toHex(buf[i])\r\n  }\r\n  return out\r\n}\r\n\r\nfunction utf16leSlice (buf, start, end) {\r\n  var bytes = buf.slice(start, end)\r\n  var res = ''\r\n  for (var i = 0; i < bytes.length; i += 2) {\r\n    res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\r\n  }\r\n  return res\r\n}\r\n\r\nBuffer.prototype.slice = function slice (start, end) {\r\n  var len = this.length\r\n  start = ~~start\r\n  end = end === undefined ? len : ~~end\r\n\r\n  if (start < 0) {\r\n    start += len\r\n    if (start < 0) start = 0\r\n  } else if (start > len) {\r\n    start = len\r\n  }\r\n\r\n  if (end < 0) {\r\n    end += len\r\n    if (end < 0) end = 0\r\n  } else if (end > len) {\r\n    end = len\r\n  }\r\n\r\n  if (end < start) end = start\r\n\r\n  var newBuf = this.subarray(start, end)\r\n  // Return an augmented `Uint8Array` instance\r\n  Object.setPrototypeOf(newBuf, Buffer.prototype)\r\n\r\n  return newBuf\r\n}\r\n\r\n/*\r\n * Need to make sure that buffer isn't trying to write out of bounds.\r\n */\r\nfunction checkOffset (offset, ext, length) {\r\n  if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\r\n  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\r\n}\r\n\r\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\r\n  offset = offset >>> 0\r\n  byteLength = byteLength >>> 0\r\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\r\n\r\n  var val = this[offset]\r\n  var mul = 1\r\n  var i = 0\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    val += this[offset + i] * mul\r\n  }\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\r\n  offset = offset >>> 0\r\n  byteLength = byteLength >>> 0\r\n  if (!noAssert) {\r\n    checkOffset(offset, byteLength, this.length)\r\n  }\r\n\r\n  var val = this[offset + --byteLength]\r\n  var mul = 1\r\n  while (byteLength > 0 && (mul *= 0x100)) {\r\n    val += this[offset + --byteLength] * mul\r\n  }\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 1, this.length)\r\n  return this[offset]\r\n}\r\n\r\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  return this[offset] | (this[offset + 1] << 8)\r\n}\r\n\r\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  return (this[offset] << 8) | this[offset + 1]\r\n}\r\n\r\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return ((this[offset]) |\r\n      (this[offset + 1] << 8) |\r\n      (this[offset + 2] << 16)) +\r\n      (this[offset + 3] * 0x1000000)\r\n}\r\n\r\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return (this[offset] * 0x1000000) +\r\n    ((this[offset + 1] << 16) |\r\n    (this[offset + 2] << 8) |\r\n    this[offset + 3])\r\n}\r\n\r\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\r\n  offset = offset >>> 0\r\n  byteLength = byteLength >>> 0\r\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\r\n\r\n  var val = this[offset]\r\n  var mul = 1\r\n  var i = 0\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    val += this[offset + i] * mul\r\n  }\r\n  mul *= 0x80\r\n\r\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\r\n  offset = offset >>> 0\r\n  byteLength = byteLength >>> 0\r\n  if (!noAssert) checkOffset(offset, byteLength, this.length)\r\n\r\n  var i = byteLength\r\n  var mul = 1\r\n  var val = this[offset + --i]\r\n  while (i > 0 && (mul *= 0x100)) {\r\n    val += this[offset + --i] * mul\r\n  }\r\n  mul *= 0x80\r\n\r\n  if (val >= mul) val -= Math.pow(2, 8 * byteLength)\r\n\r\n  return val\r\n}\r\n\r\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 1, this.length)\r\n  if (!(this[offset] & 0x80)) return (this[offset])\r\n  return ((0xff - this[offset] + 1) * -1)\r\n}\r\n\r\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  var val = this[offset] | (this[offset + 1] << 8)\r\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\r\n}\r\n\r\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 2, this.length)\r\n  var val = this[offset + 1] | (this[offset] << 8)\r\n  return (val & 0x8000) ? val | 0xFFFF0000 : val\r\n}\r\n\r\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return (this[offset]) |\r\n    (this[offset + 1] << 8) |\r\n    (this[offset + 2] << 16) |\r\n    (this[offset + 3] << 24)\r\n}\r\n\r\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n\r\n  return (this[offset] << 24) |\r\n    (this[offset + 1] << 16) |\r\n    (this[offset + 2] << 8) |\r\n    (this[offset + 3])\r\n}\r\n\r\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n  return ieee754.read(this, offset, true, 23, 4)\r\n}\r\n\r\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 4, this.length)\r\n  return ieee754.read(this, offset, false, 23, 4)\r\n}\r\n\r\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 8, this.length)\r\n  return ieee754.read(this, offset, true, 52, 8)\r\n}\r\n\r\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkOffset(offset, 8, this.length)\r\n  return ieee754.read(this, offset, false, 52, 8)\r\n}\r\n\r\nfunction checkInt (buf, value, offset, ext, max, min) {\r\n  if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\r\n  if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\r\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\r\n}\r\n\r\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  byteLength = byteLength >>> 0\r\n  if (!noAssert) {\r\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\r\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\r\n  }\r\n\r\n  var mul = 1\r\n  var i = 0\r\n  this[offset] = value & 0xFF\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    this[offset + i] = (value / mul) & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  byteLength = byteLength >>> 0\r\n  if (!noAssert) {\r\n    var maxBytes = Math.pow(2, 8 * byteLength) - 1\r\n    checkInt(this, value, offset, byteLength, maxBytes, 0)\r\n  }\r\n\r\n  var i = byteLength - 1\r\n  var mul = 1\r\n  this[offset + i] = value & 0xFF\r\n  while (--i >= 0 && (mul *= 0x100)) {\r\n    this[offset + i] = (value / mul) & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\r\n  this[offset] = (value & 0xff)\r\n  return offset + 1\r\n}\r\n\r\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\r\n  this[offset] = (value & 0xff)\r\n  this[offset + 1] = (value >>> 8)\r\n  return offset + 2\r\n}\r\n\r\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\r\n  this[offset] = (value >>> 8)\r\n  this[offset + 1] = (value & 0xff)\r\n  return offset + 2\r\n}\r\n\r\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\r\n  this[offset + 3] = (value >>> 24)\r\n  this[offset + 2] = (value >>> 16)\r\n  this[offset + 1] = (value >>> 8)\r\n  this[offset] = (value & 0xff)\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\r\n  this[offset] = (value >>> 24)\r\n  this[offset + 1] = (value >>> 16)\r\n  this[offset + 2] = (value >>> 8)\r\n  this[offset + 3] = (value & 0xff)\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) {\r\n    var limit = Math.pow(2, (8 * byteLength) - 1)\r\n\r\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\r\n  }\r\n\r\n  var i = 0\r\n  var mul = 1\r\n  var sub = 0\r\n  this[offset] = value & 0xFF\r\n  while (++i < byteLength && (mul *= 0x100)) {\r\n    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\r\n      sub = 1\r\n    }\r\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) {\r\n    var limit = Math.pow(2, (8 * byteLength) - 1)\r\n\r\n    checkInt(this, value, offset, byteLength, limit - 1, -limit)\r\n  }\r\n\r\n  var i = byteLength - 1\r\n  var mul = 1\r\n  var sub = 0\r\n  this[offset + i] = value & 0xFF\r\n  while (--i >= 0 && (mul *= 0x100)) {\r\n    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\r\n      sub = 1\r\n    }\r\n    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\r\n  }\r\n\r\n  return offset + byteLength\r\n}\r\n\r\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\r\n  if (value < 0) value = 0xff + value + 1\r\n  this[offset] = (value & 0xff)\r\n  return offset + 1\r\n}\r\n\r\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\r\n  this[offset] = (value & 0xff)\r\n  this[offset + 1] = (value >>> 8)\r\n  return offset + 2\r\n}\r\n\r\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\r\n  this[offset] = (value >>> 8)\r\n  this[offset + 1] = (value & 0xff)\r\n  return offset + 2\r\n}\r\n\r\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\r\n  this[offset] = (value & 0xff)\r\n  this[offset + 1] = (value >>> 8)\r\n  this[offset + 2] = (value >>> 16)\r\n  this[offset + 3] = (value >>> 24)\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\r\n  if (value < 0) value = 0xffffffff + value + 1\r\n  this[offset] = (value >>> 24)\r\n  this[offset + 1] = (value >>> 16)\r\n  this[offset + 2] = (value >>> 8)\r\n  this[offset + 3] = (value & 0xff)\r\n  return offset + 4\r\n}\r\n\r\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\r\n  if (offset + ext > buf.length) throw new RangeError('Index out of range')\r\n  if (offset < 0) throw new RangeError('Index out of range')\r\n}\r\n\r\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) {\r\n    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\r\n  }\r\n  ieee754.write(buf, value, offset, littleEndian, 23, 4)\r\n  return offset + 4\r\n}\r\n\r\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\r\n  return writeFloat(this, value, offset, true, noAssert)\r\n}\r\n\r\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\r\n  return writeFloat(this, value, offset, false, noAssert)\r\n}\r\n\r\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\r\n  value = +value\r\n  offset = offset >>> 0\r\n  if (!noAssert) {\r\n    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\r\n  }\r\n  ieee754.write(buf, value, offset, littleEndian, 52, 8)\r\n  return offset + 8\r\n}\r\n\r\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\r\n  return writeDouble(this, value, offset, true, noAssert)\r\n}\r\n\r\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\r\n  return writeDouble(this, value, offset, false, noAssert)\r\n}\r\n\r\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\r\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\r\n  if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\r\n  if (!start) start = 0\r\n  if (!end && end !== 0) end = this.length\r\n  if (targetStart >= target.length) targetStart = target.length\r\n  if (!targetStart) targetStart = 0\r\n  if (end > 0 && end < start) end = start\r\n\r\n  // Copy 0 bytes; we're done\r\n  if (end === start) return 0\r\n  if (target.length === 0 || this.length === 0) return 0\r\n\r\n  // Fatal error conditions\r\n  if (targetStart < 0) {\r\n    throw new RangeError('targetStart out of bounds')\r\n  }\r\n  if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\r\n  if (end < 0) throw new RangeError('sourceEnd out of bounds')\r\n\r\n  // Are we oob?\r\n  if (end > this.length) end = this.length\r\n  if (target.length - targetStart < end - start) {\r\n    end = target.length - targetStart + start\r\n  }\r\n\r\n  var len = end - start\r\n\r\n  if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\r\n    // Use built-in when available, missing from IE11\r\n    this.copyWithin(targetStart, start, end)\r\n  } else if (this === target && start < targetStart && targetStart < end) {\r\n    // descending copy from end\r\n    for (var i = len - 1; i >= 0; --i) {\r\n      target[i + targetStart] = this[i + start]\r\n    }\r\n  } else {\r\n    Uint8Array.prototype.set.call(\r\n      target,\r\n      this.subarray(start, end),\r\n      targetStart\r\n    )\r\n  }\r\n\r\n  return len\r\n}\r\n\r\n// Usage:\r\n//    buffer.fill(number[, offset[, end]])\r\n//    buffer.fill(buffer[, offset[, end]])\r\n//    buffer.fill(string[, offset[, end]][, encoding])\r\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\r\n  // Handle string cases:\r\n  if (typeof val === 'string') {\r\n    if (typeof start === 'string') {\r\n      encoding = start\r\n      start = 0\r\n      end = this.length\r\n    } else if (typeof end === 'string') {\r\n      encoding = end\r\n      end = this.length\r\n    }\r\n    if (encoding !== undefined && typeof encoding !== 'string') {\r\n      throw new TypeError('encoding must be a string')\r\n    }\r\n    if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\r\n      throw new TypeError('Unknown encoding: ' + encoding)\r\n    }\r\n    if (val.length === 1) {\r\n      var code = val.charCodeAt(0)\r\n      if ((encoding === 'utf8' && code < 128) ||\r\n          encoding === 'latin1') {\r\n        // Fast path: If `val` fits into a single byte, use that numeric value.\r\n        val = code\r\n      }\r\n    }\r\n  } else if (typeof val === 'number') {\r\n    val = val & 255\r\n  }\r\n\r\n  // Invalid ranges are not set to a default, so can range check early.\r\n  if (start < 0 || this.length < start || this.length < end) {\r\n    throw new RangeError('Out of range index')\r\n  }\r\n\r\n  if (end <= start) {\r\n    return this\r\n  }\r\n\r\n  start = start >>> 0\r\n  end = end === undefined ? this.length : end >>> 0\r\n\r\n  if (!val) val = 0\r\n\r\n  var i\r\n  if (typeof val === 'number') {\r\n    for (i = start; i < end; ++i) {\r\n      this[i] = val\r\n    }\r\n  } else {\r\n    var bytes = Buffer.isBuffer(val)\r\n      ? val\r\n      : Buffer.from(val, encoding)\r\n    var len = bytes.length\r\n    if (len === 0) {\r\n      throw new TypeError('The value \"' + val +\r\n        '\" is invalid for argument \"value\"')\r\n    }\r\n    for (i = 0; i < end - start; ++i) {\r\n      this[i + start] = bytes[i % len]\r\n    }\r\n  }\r\n\r\n  return this\r\n}\r\n\r\n// HELPER FUNCTIONS\r\n// ================\r\n\r\nvar INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\r\n\r\nfunction base64clean (str) {\r\n  // Node takes equal signs as end of the Base64 encoding\r\n  str = str.split('=')[0]\r\n  // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\r\n  str = str.trim().replace(INVALID_BASE64_RE, '')\r\n  // Node converts strings with length < 2 to ''\r\n  if (str.length < 2) return ''\r\n  // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\r\n  while (str.length % 4 !== 0) {\r\n    str = str + '='\r\n  }\r\n  return str\r\n}\r\n\r\nfunction toHex (n) {\r\n  if (n < 16) return '0' + n.toString(16)\r\n  return n.toString(16)\r\n}\r\n\r\nfunction utf8ToBytes (string, units) {\r\n  units = units || Infinity\r\n  var codePoint\r\n  var length = string.length\r\n  var leadSurrogate = null\r\n  var bytes = []\r\n\r\n  for (var i = 0; i < length; ++i) {\r\n    codePoint = string.charCodeAt(i)\r\n\r\n    // is surrogate component\r\n    if (codePoint > 0xD7FF && codePoint < 0xE000) {\r\n      // last char was a lead\r\n      if (!leadSurrogate) {\r\n        // no lead yet\r\n        if (codePoint > 0xDBFF) {\r\n          // unexpected trail\r\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n          continue\r\n        } else if (i + 1 === length) {\r\n          // unpaired lead\r\n          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n          continue\r\n        }\r\n\r\n        // valid lead\r\n        leadSurrogate = codePoint\r\n\r\n        continue\r\n      }\r\n\r\n      // 2 leads in a row\r\n      if (codePoint < 0xDC00) {\r\n        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n        leadSurrogate = codePoint\r\n        continue\r\n      }\r\n\r\n      // valid surrogate pair\r\n      codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\r\n    } else if (leadSurrogate) {\r\n      // valid bmp char, but last char was a lead\r\n      if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\r\n    }\r\n\r\n    leadSurrogate = null\r\n\r\n    // encode utf8\r\n    if (codePoint < 0x80) {\r\n      if ((units -= 1) < 0) break\r\n      bytes.push(codePoint)\r\n    } else if (codePoint < 0x800) {\r\n      if ((units -= 2) < 0) break\r\n      bytes.push(\r\n        codePoint >> 0x6 | 0xC0,\r\n        codePoint & 0x3F | 0x80\r\n      )\r\n    } else if (codePoint < 0x10000) {\r\n      if ((units -= 3) < 0) break\r\n      bytes.push(\r\n        codePoint >> 0xC | 0xE0,\r\n        codePoint >> 0x6 & 0x3F | 0x80,\r\n        codePoint & 0x3F | 0x80\r\n      )\r\n    } else if (codePoint < 0x110000) {\r\n      if ((units -= 4) < 0) break\r\n      bytes.push(\r\n        codePoint >> 0x12 | 0xF0,\r\n        codePoint >> 0xC & 0x3F | 0x80,\r\n        codePoint >> 0x6 & 0x3F | 0x80,\r\n        codePoint & 0x3F | 0x80\r\n      )\r\n    } else {\r\n      throw new Error('Invalid code point')\r\n    }\r\n  }\r\n\r\n  return bytes\r\n}\r\n\r\nfunction asciiToBytes (str) {\r\n  var byteArray = []\r\n  for (var i = 0; i < str.length; ++i) {\r\n    // Node's code seems to be doing this and not & 0x7F..\r\n    byteArray.push(str.charCodeAt(i) & 0xFF)\r\n  }\r\n  return byteArray\r\n}\r\n\r\nfunction utf16leToBytes (str, units) {\r\n  var c, hi, lo\r\n  var byteArray = []\r\n  for (var i = 0; i < str.length; ++i) {\r\n    if ((units -= 2) < 0) break\r\n\r\n    c = str.charCodeAt(i)\r\n    hi = c >> 8\r\n    lo = c % 256\r\n    byteArray.push(lo)\r\n    byteArray.push(hi)\r\n  }\r\n\r\n  return byteArray\r\n}\r\n\r\nfunction base64ToBytes (str) {\r\n  return base64.toByteArray(base64clean(str))\r\n}\r\n\r\nfunction blitBuffer (src, dst, offset, length) {\r\n  for (var i = 0; i < length; ++i) {\r\n    if ((i + offset >= dst.length) || (i >= src.length)) break\r\n    dst[i + offset] = src[i]\r\n  }\r\n  return i\r\n}\r\n\r\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\r\n// the `instanceof` check but they should be treated as of that type.\r\n// See: https://github.com/feross/buffer/issues/166\r\nfunction isInstance (obj, type) {\r\n  return obj instanceof type ||\r\n    (obj != null && obj.constructor != null && obj.constructor.name != null &&\r\n      obj.constructor.name === type.name)\r\n}\r\nfunction numberIsNaN (obj) {\r\n  // For IE11 support\r\n  return obj !== obj // eslint-disable-line no-self-compare\r\n}\r\n\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"base64-js\":51,\"buffer\":56,\"ieee754\":63}],57:[function(require,module,exports){\r\nmodule.exports = {\r\n  \"100\": \"Continue\",\r\n  \"101\": \"Switching Protocols\",\r\n  \"102\": \"Processing\",\r\n  \"200\": \"OK\",\r\n  \"201\": \"Created\",\r\n  \"202\": \"Accepted\",\r\n  \"203\": \"Non-Authoritative Information\",\r\n  \"204\": \"No Content\",\r\n  \"205\": \"Reset Content\",\r\n  \"206\": \"Partial Content\",\r\n  \"207\": \"Multi-Status\",\r\n  \"208\": \"Already Reported\",\r\n  \"226\": \"IM Used\",\r\n  \"300\": \"Multiple Choices\",\r\n  \"301\": \"Moved Permanently\",\r\n  \"302\": \"Found\",\r\n  \"303\": \"See Other\",\r\n  \"304\": \"Not Modified\",\r\n  \"305\": \"Use Proxy\",\r\n  \"307\": \"Temporary Redirect\",\r\n  \"308\": \"Permanent Redirect\",\r\n  \"400\": \"Bad Request\",\r\n  \"401\": \"Unauthorized\",\r\n  \"402\": \"Payment Required\",\r\n  \"403\": \"Forbidden\",\r\n  \"404\": \"Not Found\",\r\n  \"405\": \"Method Not Allowed\",\r\n  \"406\": \"Not Acceptable\",\r\n  \"407\": \"Proxy Authentication Required\",\r\n  \"408\": \"Request Timeout\",\r\n  \"409\": \"Conflict\",\r\n  \"410\": \"Gone\",\r\n  \"411\": \"Length Required\",\r\n  \"412\": \"Precondition Failed\",\r\n  \"413\": \"Payload Too Large\",\r\n  \"414\": \"URI Too Long\",\r\n  \"415\": \"Unsupported Media Type\",\r\n  \"416\": \"Range Not Satisfiable\",\r\n  \"417\": \"Expectation Failed\",\r\n  \"418\": \"I'm a teapot\",\r\n  \"421\": \"Misdirected Request\",\r\n  \"422\": \"Unprocessable Entity\",\r\n  \"423\": \"Locked\",\r\n  \"424\": \"Failed Dependency\",\r\n  \"425\": \"Unordered Collection\",\r\n  \"426\": \"Upgrade Required\",\r\n  \"428\": \"Precondition Required\",\r\n  \"429\": \"Too Many Requests\",\r\n  \"431\": \"Request Header Fields Too Large\",\r\n  \"451\": \"Unavailable For Legal Reasons\",\r\n  \"500\": \"Internal Server Error\",\r\n  \"501\": \"Not Implemented\",\r\n  \"502\": \"Bad Gateway\",\r\n  \"503\": \"Service Unavailable\",\r\n  \"504\": \"Gateway Timeout\",\r\n  \"505\": \"HTTP Version Not Supported\",\r\n  \"506\": \"Variant Also Negotiates\",\r\n  \"507\": \"Insufficient Storage\",\r\n  \"508\": \"Loop Detected\",\r\n  \"509\": \"Bandwidth Limit Exceeded\",\r\n  \"510\": \"Not Extended\",\r\n  \"511\": \"Network Authentication Required\"\r\n}\r\n\r\n},{}],58:[function(require,module,exports){\r\n(function (Buffer){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n// NOTE: These type checking functions intentionally don't use `instanceof`\r\n// because it is fragile and can be easily faked with `Object.create()`.\r\n\r\nfunction isArray(arg) {\r\n  if (Array.isArray) {\r\n    return Array.isArray(arg);\r\n  }\r\n  return objectToString(arg) === '[object Array]';\r\n}\r\nexports.isArray = isArray;\r\n\r\nfunction isBoolean(arg) {\r\n  return typeof arg === 'boolean';\r\n}\r\nexports.isBoolean = isBoolean;\r\n\r\nfunction isNull(arg) {\r\n  return arg === null;\r\n}\r\nexports.isNull = isNull;\r\n\r\nfunction isNullOrUndefined(arg) {\r\n  return arg == null;\r\n}\r\nexports.isNullOrUndefined = isNullOrUndefined;\r\n\r\nfunction isNumber(arg) {\r\n  return typeof arg === 'number';\r\n}\r\nexports.isNumber = isNumber;\r\n\r\nfunction isString(arg) {\r\n  return typeof arg === 'string';\r\n}\r\nexports.isString = isString;\r\n\r\nfunction isSymbol(arg) {\r\n  return typeof arg === 'symbol';\r\n}\r\nexports.isSymbol = isSymbol;\r\n\r\nfunction isUndefined(arg) {\r\n  return arg === void 0;\r\n}\r\nexports.isUndefined = isUndefined;\r\n\r\nfunction isRegExp(re) {\r\n  return objectToString(re) === '[object RegExp]';\r\n}\r\nexports.isRegExp = isRegExp;\r\n\r\nfunction isObject(arg) {\r\n  return typeof arg === 'object' && arg !== null;\r\n}\r\nexports.isObject = isObject;\r\n\r\nfunction isDate(d) {\r\n  return objectToString(d) === '[object Date]';\r\n}\r\nexports.isDate = isDate;\r\n\r\nfunction isError(e) {\r\n  return (objectToString(e) === '[object Error]' || e instanceof Error);\r\n}\r\nexports.isError = isError;\r\n\r\nfunction isFunction(arg) {\r\n  return typeof arg === 'function';\r\n}\r\nexports.isFunction = isFunction;\r\n\r\nfunction isPrimitive(arg) {\r\n  return arg === null ||\r\n         typeof arg === 'boolean' ||\r\n         typeof arg === 'number' ||\r\n         typeof arg === 'string' ||\r\n         typeof arg === 'symbol' ||  // ES6 symbol\r\n         typeof arg === 'undefined';\r\n}\r\nexports.isPrimitive = isPrimitive;\r\n\r\nexports.isBuffer = Buffer.isBuffer;\r\n\r\nfunction objectToString(o) {\r\n  return Object.prototype.toString.call(o);\r\n}\r\n\r\n}).call(this,{\"isBuffer\":require(\"../../is-buffer/index.js\")})\r\n},{\"../../is-buffer/index.js\":65}],59:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nvar objectCreate = Object.create || objectCreatePolyfill\r\nvar objectKeys = Object.keys || objectKeysPolyfill\r\nvar bind = Function.prototype.bind || functionBindPolyfill\r\n\r\nfunction EventEmitter() {\r\n  if (!this._events || !Object.prototype.hasOwnProperty.call(this, '_events')) {\r\n    this._events = objectCreate(null);\r\n    this._eventsCount = 0;\r\n  }\r\n\r\n  this._maxListeners = this._maxListeners || undefined;\r\n}\r\nmodule.exports = EventEmitter;\r\n\r\n// Backwards-compat with node 0.10.x\r\nEventEmitter.EventEmitter = EventEmitter;\r\n\r\nEventEmitter.prototype._events = undefined;\r\nEventEmitter.prototype._maxListeners = undefined;\r\n\r\n// By default EventEmitters will print a warning if more than 10 listeners are\r\n// added to it. This is a useful default which helps finding memory leaks.\r\nvar defaultMaxListeners = 10;\r\n\r\nvar hasDefineProperty;\r\ntry {\r\n  var o = {};\r\n  if (Object.defineProperty) Object.defineProperty(o, 'x', { value: 0 });\r\n  hasDefineProperty = o.x === 0;\r\n} catch (err) { hasDefineProperty = false }\r\nif (hasDefineProperty) {\r\n  Object.defineProperty(EventEmitter, 'defaultMaxListeners', {\r\n    enumerable: true,\r\n    get: function() {\r\n      return defaultMaxListeners;\r\n    },\r\n    set: function(arg) {\r\n      // check whether the input is a positive number (whose value is zero or\r\n      // greater and not a NaN).\r\n      if (typeof arg !== 'number' || arg < 0 || arg !== arg)\r\n        throw new TypeError('\"defaultMaxListeners\" must be a positive number');\r\n      defaultMaxListeners = arg;\r\n    }\r\n  });\r\n} else {\r\n  EventEmitter.defaultMaxListeners = defaultMaxListeners;\r\n}\r\n\r\n// Obviously not all Emitters should be limited to 10. This function allows\r\n// that to be increased. Set to zero for unlimited.\r\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\r\n  if (typeof n !== 'number' || n < 0 || isNaN(n))\r\n    throw new TypeError('\"n\" argument must be a positive number');\r\n  this._maxListeners = n;\r\n  return this;\r\n};\r\n\r\nfunction $getMaxListeners(that) {\r\n  if (that._maxListeners === undefined)\r\n    return EventEmitter.defaultMaxListeners;\r\n  return that._maxListeners;\r\n}\r\n\r\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\r\n  return $getMaxListeners(this);\r\n};\r\n\r\n// These standalone emit* functions are used to optimize calling of event\r\n// handlers for fast cases because emit() itself often has a variable number of\r\n// arguments and can be deoptimized because of that. These functions always have\r\n// the same number of arguments and thus do not get deoptimized, so the code\r\n// inside them can execute faster.\r\nfunction emitNone(handler, isFn, self) {\r\n  if (isFn)\r\n    handler.call(self);\r\n  else {\r\n    var len = handler.length;\r\n    var listeners = arrayClone(handler, len);\r\n    for (var i = 0; i < len; ++i)\r\n      listeners[i].call(self);\r\n  }\r\n}\r\nfunction emitOne(handler, isFn, self, arg1) {\r\n  if (isFn)\r\n    handler.call(self, arg1);\r\n  else {\r\n    var len = handler.length;\r\n    var listeners = arrayClone(handler, len);\r\n    for (var i = 0; i < len; ++i)\r\n      listeners[i].call(self, arg1);\r\n  }\r\n}\r\nfunction emitTwo(handler, isFn, self, arg1, arg2) {\r\n  if (isFn)\r\n    handler.call(self, arg1, arg2);\r\n  else {\r\n    var len = handler.length;\r\n    var listeners = arrayClone(handler, len);\r\n    for (var i = 0; i < len; ++i)\r\n      listeners[i].call(self, arg1, arg2);\r\n  }\r\n}\r\nfunction emitThree(handler, isFn, self, arg1, arg2, arg3) {\r\n  if (isFn)\r\n    handler.call(self, arg1, arg2, arg3);\r\n  else {\r\n    var len = handler.length;\r\n    var listeners = arrayClone(handler, len);\r\n    for (var i = 0; i < len; ++i)\r\n      listeners[i].call(self, arg1, arg2, arg3);\r\n  }\r\n}\r\n\r\nfunction emitMany(handler, isFn, self, args) {\r\n  if (isFn)\r\n    handler.apply(self, args);\r\n  else {\r\n    var len = handler.length;\r\n    var listeners = arrayClone(handler, len);\r\n    for (var i = 0; i < len; ++i)\r\n      listeners[i].apply(self, args);\r\n  }\r\n}\r\n\r\nEventEmitter.prototype.emit = function emit(type) {\r\n  var er, handler, len, args, i, events;\r\n  var doError = (type === 'error');\r\n\r\n  events = this._events;\r\n  if (events)\r\n    doError = (doError && events.error == null);\r\n  else if (!doError)\r\n    return false;\r\n\r\n  // If there is no 'error' event listener then throw.\r\n  if (doError) {\r\n    if (arguments.length > 1)\r\n      er = arguments[1];\r\n    if (er instanceof Error) {\r\n      throw er; // Unhandled 'error' event\r\n    } else {\r\n      // At least give some kind of context to the user\r\n      var err = new Error('Unhandled \"error\" event. (' + er + ')');\r\n      err.context = er;\r\n      throw err;\r\n    }\r\n    return false;\r\n  }\r\n\r\n  handler = events[type];\r\n\r\n  if (!handler)\r\n    return false;\r\n\r\n  var isFn = typeof handler === 'function';\r\n  len = arguments.length;\r\n  switch (len) {\r\n      // fast cases\r\n    case 1:\r\n      emitNone(handler, isFn, this);\r\n      break;\r\n    case 2:\r\n      emitOne(handler, isFn, this, arguments[1]);\r\n      break;\r\n    case 3:\r\n      emitTwo(handler, isFn, this, arguments[1], arguments[2]);\r\n      break;\r\n    case 4:\r\n      emitThree(handler, isFn, this, arguments[1], arguments[2], arguments[3]);\r\n      break;\r\n      // slower\r\n    default:\r\n      args = new Array(len - 1);\r\n      for (i = 1; i < len; i++)\r\n        args[i - 1] = arguments[i];\r\n      emitMany(handler, isFn, this, args);\r\n  }\r\n\r\n  return true;\r\n};\r\n\r\nfunction _addListener(target, type, listener, prepend) {\r\n  var m;\r\n  var events;\r\n  var existing;\r\n\r\n  if (typeof listener !== 'function')\r\n    throw new TypeError('\"listener\" argument must be a function');\r\n\r\n  events = target._events;\r\n  if (!events) {\r\n    events = target._events = objectCreate(null);\r\n    target._eventsCount = 0;\r\n  } else {\r\n    // To avoid recursion in the case that type === \"newListener\"! Before\r\n    // adding it to the listeners, first emit \"newListener\".\r\n    if (events.newListener) {\r\n      target.emit('newListener', type,\r\n          listener.listener ? listener.listener : listener);\r\n\r\n      // Re-assign `events` because a newListener handler could have caused the\r\n      // this._events to be assigned to a new object\r\n      events = target._events;\r\n    }\r\n    existing = events[type];\r\n  }\r\n\r\n  if (!existing) {\r\n    // Optimize the case of one listener. Don't need the extra array object.\r\n    existing = events[type] = listener;\r\n    ++target._eventsCount;\r\n  } else {\r\n    if (typeof existing === 'function') {\r\n      // Adding the second element, need to change to array.\r\n      existing = events[type] =\r\n          prepend ? [listener, existing] : [existing, listener];\r\n    } else {\r\n      // If we've already got an array, just append.\r\n      if (prepend) {\r\n        existing.unshift(listener);\r\n      } else {\r\n        existing.push(listener);\r\n      }\r\n    }\r\n\r\n    // Check for listener leak\r\n    if (!existing.warned) {\r\n      m = $getMaxListeners(target);\r\n      if (m && m > 0 && existing.length > m) {\r\n        existing.warned = true;\r\n        var w = new Error('Possible EventEmitter memory leak detected. ' +\r\n            existing.length + ' \"' + String(type) + '\" listeners ' +\r\n            'added. Use emitter.setMaxListeners() to ' +\r\n            'increase limit.');\r\n        w.name = 'MaxListenersExceededWarning';\r\n        w.emitter = target;\r\n        w.type = type;\r\n        w.count = existing.length;\r\n        if (typeof console === 'object' && console.warn) {\r\n          console.warn('%s: %s', w.name, w.message);\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  return target;\r\n}\r\n\r\nEventEmitter.prototype.addListener = function addListener(type, listener) {\r\n  return _addListener(this, type, listener, false);\r\n};\r\n\r\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\r\n\r\nEventEmitter.prototype.prependListener =\r\n    function prependListener(type, listener) {\r\n      return _addListener(this, type, listener, true);\r\n    };\r\n\r\nfunction onceWrapper() {\r\n  if (!this.fired) {\r\n    this.target.removeListener(this.type, this.wrapFn);\r\n    this.fired = true;\r\n    switch (arguments.length) {\r\n      case 0:\r\n        return this.listener.call(this.target);\r\n      case 1:\r\n        return this.listener.call(this.target, arguments[0]);\r\n      case 2:\r\n        return this.listener.call(this.target, arguments[0], arguments[1]);\r\n      case 3:\r\n        return this.listener.call(this.target, arguments[0], arguments[1],\r\n            arguments[2]);\r\n      default:\r\n        var args = new Array(arguments.length);\r\n        for (var i = 0; i < args.length; ++i)\r\n          args[i] = arguments[i];\r\n        this.listener.apply(this.target, args);\r\n    }\r\n  }\r\n}\r\n\r\nfunction _onceWrap(target, type, listener) {\r\n  var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\r\n  var wrapped = bind.call(onceWrapper, state);\r\n  wrapped.listener = listener;\r\n  state.wrapFn = wrapped;\r\n  return wrapped;\r\n}\r\n\r\nEventEmitter.prototype.once = function once(type, listener) {\r\n  if (typeof listener !== 'function')\r\n    throw new TypeError('\"listener\" argument must be a function');\r\n  this.on(type, _onceWrap(this, type, listener));\r\n  return this;\r\n};\r\n\r\nEventEmitter.prototype.prependOnceListener =\r\n    function prependOnceListener(type, listener) {\r\n      if (typeof listener !== 'function')\r\n        throw new TypeError('\"listener\" argument must be a function');\r\n      this.prependListener(type, _onceWrap(this, type, listener));\r\n      return this;\r\n    };\r\n\r\n// Emits a 'removeListener' event if and only if the listener was removed.\r\nEventEmitter.prototype.removeListener =\r\n    function removeListener(type, listener) {\r\n      var list, events, position, i, originalListener;\r\n\r\n      if (typeof listener !== 'function')\r\n        throw new TypeError('\"listener\" argument must be a function');\r\n\r\n      events = this._events;\r\n      if (!events)\r\n        return this;\r\n\r\n      list = events[type];\r\n      if (!list)\r\n        return this;\r\n\r\n      if (list === listener || list.listener === listener) {\r\n        if (--this._eventsCount === 0)\r\n          this._events = objectCreate(null);\r\n        else {\r\n          delete events[type];\r\n          if (events.removeListener)\r\n            this.emit('removeListener', type, list.listener || listener);\r\n        }\r\n      } else if (typeof list !== 'function') {\r\n        position = -1;\r\n\r\n        for (i = list.length - 1; i >= 0; i--) {\r\n          if (list[i] === listener || list[i].listener === listener) {\r\n            originalListener = list[i].listener;\r\n            position = i;\r\n            break;\r\n          }\r\n        }\r\n\r\n        if (position < 0)\r\n          return this;\r\n\r\n        if (position === 0)\r\n          list.shift();\r\n        else\r\n          spliceOne(list, position);\r\n\r\n        if (list.length === 1)\r\n          events[type] = list[0];\r\n\r\n        if (events.removeListener)\r\n          this.emit('removeListener', type, originalListener || listener);\r\n      }\r\n\r\n      return this;\r\n    };\r\n\r\nEventEmitter.prototype.removeAllListeners =\r\n    function removeAllListeners(type) {\r\n      var listeners, events, i;\r\n\r\n      events = this._events;\r\n      if (!events)\r\n        return this;\r\n\r\n      // not listening for removeListener, no need to emit\r\n      if (!events.removeListener) {\r\n        if (arguments.length === 0) {\r\n          this._events = objectCreate(null);\r\n          this._eventsCount = 0;\r\n        } else if (events[type]) {\r\n          if (--this._eventsCount === 0)\r\n            this._events = objectCreate(null);\r\n          else\r\n            delete events[type];\r\n        }\r\n        return this;\r\n      }\r\n\r\n      // emit removeListener for all listeners on all events\r\n      if (arguments.length === 0) {\r\n        var keys = objectKeys(events);\r\n        var key;\r\n        for (i = 0; i < keys.length; ++i) {\r\n          key = keys[i];\r\n          if (key === 'removeListener') continue;\r\n          this.removeAllListeners(key);\r\n        }\r\n        this.removeAllListeners('removeListener');\r\n        this._events = objectCreate(null);\r\n        this._eventsCount = 0;\r\n        return this;\r\n      }\r\n\r\n      listeners = events[type];\r\n\r\n      if (typeof listeners === 'function') {\r\n        this.removeListener(type, listeners);\r\n      } else if (listeners) {\r\n        // LIFO order\r\n        for (i = listeners.length - 1; i >= 0; i--) {\r\n          this.removeListener(type, listeners[i]);\r\n        }\r\n      }\r\n\r\n      return this;\r\n    };\r\n\r\nfunction _listeners(target, type, unwrap) {\r\n  var events = target._events;\r\n\r\n  if (!events)\r\n    return [];\r\n\r\n  var evlistener = events[type];\r\n  if (!evlistener)\r\n    return [];\r\n\r\n  if (typeof evlistener === 'function')\r\n    return unwrap ? [evlistener.listener || evlistener] : [evlistener];\r\n\r\n  return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\r\n}\r\n\r\nEventEmitter.prototype.listeners = function listeners(type) {\r\n  return _listeners(this, type, true);\r\n};\r\n\r\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\r\n  return _listeners(this, type, false);\r\n};\r\n\r\nEventEmitter.listenerCount = function(emitter, type) {\r\n  if (typeof emitter.listenerCount === 'function') {\r\n    return emitter.listenerCount(type);\r\n  } else {\r\n    return listenerCount.call(emitter, type);\r\n  }\r\n};\r\n\r\nEventEmitter.prototype.listenerCount = listenerCount;\r\nfunction listenerCount(type) {\r\n  var events = this._events;\r\n\r\n  if (events) {\r\n    var evlistener = events[type];\r\n\r\n    if (typeof evlistener === 'function') {\r\n      return 1;\r\n    } else if (evlistener) {\r\n      return evlistener.length;\r\n    }\r\n  }\r\n\r\n  return 0;\r\n}\r\n\r\nEventEmitter.prototype.eventNames = function eventNames() {\r\n  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];\r\n};\r\n\r\n// About 1.5x faster than the two-arg version of Array#splice().\r\nfunction spliceOne(list, index) {\r\n  for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1)\r\n    list[i] = list[k];\r\n  list.pop();\r\n}\r\n\r\nfunction arrayClone(arr, n) {\r\n  var copy = new Array(n);\r\n  for (var i = 0; i < n; ++i)\r\n    copy[i] = arr[i];\r\n  return copy;\r\n}\r\n\r\nfunction unwrapListeners(arr) {\r\n  var ret = new Array(arr.length);\r\n  for (var i = 0; i < ret.length; ++i) {\r\n    ret[i] = arr[i].listener || arr[i];\r\n  }\r\n  return ret;\r\n}\r\n\r\nfunction objectCreatePolyfill(proto) {\r\n  var F = function() {};\r\n  F.prototype = proto;\r\n  return new F;\r\n}\r\nfunction objectKeysPolyfill(obj) {\r\n  var keys = [];\r\n  for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k)) {\r\n    keys.push(k);\r\n  }\r\n  return k;\r\n}\r\nfunction functionBindPolyfill(context) {\r\n  var fn = this;\r\n  return function () {\r\n    return fn.apply(context, arguments);\r\n  };\r\n}\r\n\r\n},{}],60:[function(require,module,exports){\r\n'use strict';\r\n\r\nvar hasOwn = Object.prototype.hasOwnProperty;\r\nvar toStr = Object.prototype.toString;\r\nvar defineProperty = Object.defineProperty;\r\nvar gOPD = Object.getOwnPropertyDescriptor;\r\n\r\nvar isArray = function isArray(arr) {\r\n\tif (typeof Array.isArray === 'function') {\r\n\t\treturn Array.isArray(arr);\r\n\t}\r\n\r\n\treturn toStr.call(arr) === '[object Array]';\r\n};\r\n\r\nvar isPlainObject = function isPlainObject(obj) {\r\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\r\n\t\treturn false;\r\n\t}\r\n\r\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\r\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\r\n\t// Not own constructor property must be Object\r\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\t// Own properties are enumerated firstly, so to speed up,\r\n\t// if last one is own, then all properties are own.\r\n\tvar key;\r\n\tfor (key in obj) { /**/ }\r\n\r\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\r\n};\r\n\r\n// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target\r\nvar setProperty = function setProperty(target, options) {\r\n\tif (defineProperty && options.name === '__proto__') {\r\n\t\tdefineProperty(target, options.name, {\r\n\t\t\tenumerable: true,\r\n\t\t\tconfigurable: true,\r\n\t\t\tvalue: options.newValue,\r\n\t\t\twritable: true\r\n\t\t});\r\n\t} else {\r\n\t\ttarget[options.name] = options.newValue;\r\n\t}\r\n};\r\n\r\n// Return undefined instead of __proto__ if '__proto__' is not an own property\r\nvar getProperty = function getProperty(obj, name) {\r\n\tif (name === '__proto__') {\r\n\t\tif (!hasOwn.call(obj, name)) {\r\n\t\t\treturn void 0;\r\n\t\t} else if (gOPD) {\r\n\t\t\t// In early versions of node, obj['__proto__'] is buggy when obj has\r\n\t\t\t// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.\r\n\t\t\treturn gOPD(obj, name).value;\r\n\t\t}\r\n\t}\r\n\r\n\treturn obj[name];\r\n};\r\n\r\nmodule.exports = function extend() {\r\n\tvar options, name, src, copy, copyIsArray, clone;\r\n\tvar target = arguments[0];\r\n\tvar i = 1;\r\n\tvar length = arguments.length;\r\n\tvar deep = false;\r\n\r\n\t// Handle a deep copy situation\r\n\tif (typeof target === 'boolean') {\r\n\t\tdeep = target;\r\n\t\ttarget = arguments[1] || {};\r\n\t\t// skip the boolean and the target\r\n\t\ti = 2;\r\n\t}\r\n\tif (target == null || (typeof target !== 'object' && typeof target !== 'function')) {\r\n\t\ttarget = {};\r\n\t}\r\n\r\n\tfor (; i < length; ++i) {\r\n\t\toptions = arguments[i];\r\n\t\t// Only deal with non-null/undefined values\r\n\t\tif (options != null) {\r\n\t\t\t// Extend the base object\r\n\t\t\tfor (name in options) {\r\n\t\t\t\tsrc = getProperty(target, name);\r\n\t\t\t\tcopy = getProperty(options, name);\r\n\r\n\t\t\t\t// Prevent never-ending loop\r\n\t\t\t\tif (target !== copy) {\r\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\r\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\r\n\t\t\t\t\t\tif (copyIsArray) {\r\n\t\t\t\t\t\t\tcopyIsArray = false;\r\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Never move original objects, clone them\r\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: extend(deep, clone, copy) });\r\n\r\n\t\t\t\t\t// Don't bring in undefined values\r\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\r\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: copy });\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// Return the modified object\r\n\treturn target;\r\n};\r\n\r\n},{}],61:[function(require,module,exports){\r\n'use strict'\r\nvar Buffer = require('safe-buffer').Buffer\r\nvar Transform = require('stream').Transform\r\nvar inherits = require('inherits')\r\n\r\nfunction throwIfNotStringOrBuffer (val, prefix) {\r\n  if (!Buffer.isBuffer(val) && typeof val !== 'string') {\r\n    throw new TypeError(prefix + ' must be a string or a buffer')\r\n  }\r\n}\r\n\r\nfunction HashBase (blockSize) {\r\n  Transform.call(this)\r\n\r\n  this._block = Buffer.allocUnsafe(blockSize)\r\n  this._blockSize = blockSize\r\n  this._blockOffset = 0\r\n  this._length = [0, 0, 0, 0]\r\n\r\n  this._finalized = false\r\n}\r\n\r\ninherits(HashBase, Transform)\r\n\r\nHashBase.prototype._transform = function (chunk, encoding, callback) {\r\n  var error = null\r\n  try {\r\n    this.update(chunk, encoding)\r\n  } catch (err) {\r\n    error = err\r\n  }\r\n\r\n  callback(error)\r\n}\r\n\r\nHashBase.prototype._flush = function (callback) {\r\n  var error = null\r\n  try {\r\n    this.push(this.digest())\r\n  } catch (err) {\r\n    error = err\r\n  }\r\n\r\n  callback(error)\r\n}\r\n\r\nHashBase.prototype.update = function (data, encoding) {\r\n  throwIfNotStringOrBuffer(data, 'Data')\r\n  if (this._finalized) throw new Error('Digest already called')\r\n  if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding)\r\n\r\n  // consume data\r\n  var block = this._block\r\n  var offset = 0\r\n  while (this._blockOffset + data.length - offset >= this._blockSize) {\r\n    for (var i = this._blockOffset; i < this._blockSize;) block[i++] = data[offset++]\r\n    this._update()\r\n    this._blockOffset = 0\r\n  }\r\n  while (offset < data.length) block[this._blockOffset++] = data[offset++]\r\n\r\n  // update length\r\n  for (var j = 0, carry = data.length * 8; carry > 0; ++j) {\r\n    this._length[j] += carry\r\n    carry = (this._length[j] / 0x0100000000) | 0\r\n    if (carry > 0) this._length[j] -= 0x0100000000 * carry\r\n  }\r\n\r\n  return this\r\n}\r\n\r\nHashBase.prototype._update = function () {\r\n  throw new Error('_update is not implemented')\r\n}\r\n\r\nHashBase.prototype.digest = function (encoding) {\r\n  if (this._finalized) throw new Error('Digest already called')\r\n  this._finalized = true\r\n\r\n  var digest = this._digest()\r\n  if (encoding !== undefined) digest = digest.toString(encoding)\r\n\r\n  // reset state\r\n  this._block.fill(0)\r\n  this._blockOffset = 0\r\n  for (var i = 0; i < 4; ++i) this._length[i] = 0\r\n\r\n  return digest\r\n}\r\n\r\nHashBase.prototype._digest = function () {\r\n  throw new Error('_digest is not implemented')\r\n}\r\n\r\nmodule.exports = HashBase\r\n\r\n},{\"inherits\":64,\"safe-buffer\":86,\"stream\":88}],62:[function(require,module,exports){\r\nvar http = require('http')\r\nvar url = require('url')\r\n\r\nvar https = module.exports\r\n\r\nfor (var key in http) {\r\n  if (http.hasOwnProperty(key)) https[key] = http[key]\r\n}\r\n\r\nhttps.request = function (params, cb) {\r\n  params = validateParams(params)\r\n  return http.request.call(this, params, cb)\r\n}\r\n\r\nhttps.get = function (params, cb) {\r\n  params = validateParams(params)\r\n  return http.get.call(this, params, cb)\r\n}\r\n\r\nfunction validateParams (params) {\r\n  if (typeof params === 'string') {\r\n    params = url.parse(params)\r\n  }\r\n  if (!params.protocol) {\r\n    params.protocol = 'https:'\r\n  }\r\n  if (params.protocol !== 'https:') {\r\n    throw new Error('Protocol \"' + params.protocol + '\" not supported. Expected \"https:\"')\r\n  }\r\n  return params\r\n}\r\n\r\n},{\"http\":89,\"url\":112}],63:[function(require,module,exports){\r\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\r\n  var e, m\r\n  var eLen = (nBytes * 8) - mLen - 1\r\n  var eMax = (1 << eLen) - 1\r\n  var eBias = eMax >> 1\r\n  var nBits = -7\r\n  var i = isLE ? (nBytes - 1) : 0\r\n  var d = isLE ? -1 : 1\r\n  var s = buffer[offset + i]\r\n\r\n  i += d\r\n\r\n  e = s & ((1 << (-nBits)) - 1)\r\n  s >>= (-nBits)\r\n  nBits += eLen\r\n  for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\r\n\r\n  m = e & ((1 << (-nBits)) - 1)\r\n  e >>= (-nBits)\r\n  nBits += mLen\r\n  for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\r\n\r\n  if (e === 0) {\r\n    e = 1 - eBias\r\n  } else if (e === eMax) {\r\n    return m ? NaN : ((s ? -1 : 1) * Infinity)\r\n  } else {\r\n    m = m + Math.pow(2, mLen)\r\n    e = e - eBias\r\n  }\r\n  return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\r\n}\r\n\r\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\r\n  var e, m, c\r\n  var eLen = (nBytes * 8) - mLen - 1\r\n  var eMax = (1 << eLen) - 1\r\n  var eBias = eMax >> 1\r\n  var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\r\n  var i = isLE ? 0 : (nBytes - 1)\r\n  var d = isLE ? 1 : -1\r\n  var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\r\n\r\n  value = Math.abs(value)\r\n\r\n  if (isNaN(value) || value === Infinity) {\r\n    m = isNaN(value) ? 1 : 0\r\n    e = eMax\r\n  } else {\r\n    e = Math.floor(Math.log(value) / Math.LN2)\r\n    if (value * (c = Math.pow(2, -e)) < 1) {\r\n      e--\r\n      c *= 2\r\n    }\r\n    if (e + eBias >= 1) {\r\n      value += rt / c\r\n    } else {\r\n      value += rt * Math.pow(2, 1 - eBias)\r\n    }\r\n    if (value * c >= 2) {\r\n      e++\r\n      c /= 2\r\n    }\r\n\r\n    if (e + eBias >= eMax) {\r\n      m = 0\r\n      e = eMax\r\n    } else if (e + eBias >= 1) {\r\n      m = ((value * c) - 1) * Math.pow(2, mLen)\r\n      e = e + eBias\r\n    } else {\r\n      m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\r\n      e = 0\r\n    }\r\n  }\r\n\r\n  for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\r\n\r\n  e = (e << mLen) | m\r\n  eLen += mLen\r\n  for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\r\n\r\n  buffer[offset + i - d] |= s * 128\r\n}\r\n\r\n},{}],64:[function(require,module,exports){\r\nif (typeof Object.create === 'function') {\r\n  // implementation from standard node.js 'util' module\r\n  module.exports = function inherits(ctor, superCtor) {\r\n    if (superCtor) {\r\n      ctor.super_ = superCtor\r\n      ctor.prototype = Object.create(superCtor.prototype, {\r\n        constructor: {\r\n          value: ctor,\r\n          enumerable: false,\r\n          writable: true,\r\n          configurable: true\r\n        }\r\n      })\r\n    }\r\n  };\r\n} else {\r\n  // old school shim for old browsers\r\n  module.exports = function inherits(ctor, superCtor) {\r\n    if (superCtor) {\r\n      ctor.super_ = superCtor\r\n      var TempCtor = function () {}\r\n      TempCtor.prototype = superCtor.prototype\r\n      ctor.prototype = new TempCtor()\r\n      ctor.prototype.constructor = ctor\r\n    }\r\n  }\r\n}\r\n\r\n},{}],65:[function(require,module,exports){\r\n/*!\r\n * Determine if an object is a Buffer\r\n *\r\n * @author   Feross Aboukhadijeh <https://feross.org>\r\n * @license  MIT\r\n */\r\n\r\n// The _isBuffer check is for Safari 5-7 support, because it's missing\r\n// Object.prototype.constructor. Remove this eventually\r\nmodule.exports = function (obj) {\r\n  return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\r\n}\r\n\r\nfunction isBuffer (obj) {\r\n  return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\r\n}\r\n\r\n// For Node v0.10 support. Remove this eventually.\r\nfunction isSlowBuffer (obj) {\r\n  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\r\n}\r\n\r\n},{}],66:[function(require,module,exports){\r\nvar toString = {}.toString;\r\n\r\nmodule.exports = Array.isArray || function (arr) {\r\n  return toString.call(arr) == '[object Array]';\r\n};\r\n\r\n},{}],67:[function(require,module,exports){\r\n// The MIT License (MIT)\r\n//\r\n// Copyright (c) 2016 Yang Xia\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a copy\r\n// of this software and associated documentation files (the \"Software\"), to deal\r\n// in the Software without restriction, including without limitation the rights\r\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n// copies of the Software, and to permit persons to whom the Software is\r\n// furnished to do so, subject to the following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included in all\r\n// copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n// SOFTWARE.\r\n\r\n'use strict';\r\n\r\nvar util = require('util');\r\nvar JsonParser = require('jsonparse');\r\n\r\nexports = module.exports;\r\nutil.inherits(Parser, JsonParser);\r\n\r\n/**\r\n* Parser Instructor\r\n*/\r\nfunction Parser() {\r\n  this.internalParser = new JsonParser();\r\n  this.originalOnToken = this.internalParser.onToken;\r\n  this.internalParser.onToken = onToken.bind(this);\r\n  return this.internalParser;\r\n}\r\n\r\n/**\r\n* Handles the EDM types in the JSON object\r\n*   1. Number will be treated as Edm.Int32 by default\r\n*   2. Literal value 1.0 will be treated as Edm.Double\r\n*   3. Others will be handled according to the literal value\r\n*/\r\nvar onToken = function (token, value) {\r\n  var self = this;\r\n  var emitString = false;\r\n  function additionalEmit(additionalKey, additionalValue) {\r\n    var oldKey = self.internalParser.key;\r\n    self.internalParser.key = additionalKey;\r\n    self.internalParser.onValue(additionalValue);\r\n    self.internalParser.key = oldKey;\r\n  }\r\n\r\n  if (token === JsonParser.C.STRING ||\r\n  token === JsonParser.C.NUMBER ||\r\n  token === JsonParser.C.TRUE ||\r\n  token === JsonParser.C.FALSE ||\r\n  token === JsonParser.C.NULL) {\r\n    // Parser will emit value in these cases\r\n    if (typeof value === 'number' && \r\n    this.internalParser.string.indexOf('.') != -1 && \r\n    parseInt(this.internalParser.string) === value &&\r\n    this.internalParser.mode !== JsonParser.C.ARRAY) {\r\n      var typeKey = this.internalParser.key + '@odata.type';\r\n      if (this.internalParser.value) {\r\n        this.internalParser.value[typeKey] = 'Edm.Double';\r\n      }\r\n      additionalEmit(typeKey, 'Edm.Double');\r\n      \r\n      // Determine whether return raw string to avoid losing precision\r\n      emitString = this.internalParser.string !== value.toString();\r\n    }\r\n  }\r\n  if (emitString) {\r\n    this.originalOnToken.call(this.internalParser, token, this.internalParser.string);\r\n  } else {\r\n    this.originalOnToken.call(this.internalParser, token, value);\r\n  }\r\n};\r\n\r\nParser.C = JsonParser.C;\r\nmodule.exports = Parser;\r\n},{\"jsonparse\":68,\"util\":117}],68:[function(require,module,exports){\r\n(function (Buffer){\r\n/*global Buffer*/\r\n// Named constants with unique integer values\r\nvar C = {};\r\n// Tokens\r\nvar LEFT_BRACE    = C.LEFT_BRACE    = 0x1;\r\nvar RIGHT_BRACE   = C.RIGHT_BRACE   = 0x2;\r\nvar LEFT_BRACKET  = C.LEFT_BRACKET  = 0x3;\r\nvar RIGHT_BRACKET = C.RIGHT_BRACKET = 0x4;\r\nvar COLON         = C.COLON         = 0x5;\r\nvar COMMA         = C.COMMA         = 0x6;\r\nvar TRUE          = C.TRUE          = 0x7;\r\nvar FALSE         = C.FALSE         = 0x8;\r\nvar NULL          = C.NULL          = 0x9;\r\nvar STRING        = C.STRING        = 0xa;\r\nvar NUMBER        = C.NUMBER        = 0xb;\r\n// Tokenizer States\r\nvar START   = C.START   = 0x11;\r\nvar STOP    = C.STOP    = 0x12;\r\nvar TRUE1   = C.TRUE1   = 0x21;\r\nvar TRUE2   = C.TRUE2   = 0x22;\r\nvar TRUE3   = C.TRUE3   = 0x23;\r\nvar FALSE1  = C.FALSE1  = 0x31;\r\nvar FALSE2  = C.FALSE2  = 0x32;\r\nvar FALSE3  = C.FALSE3  = 0x33;\r\nvar FALSE4  = C.FALSE4  = 0x34;\r\nvar NULL1   = C.NULL1   = 0x41;\r\nvar NULL2   = C.NULL2   = 0x42;\r\nvar NULL3   = C.NULL3   = 0x43;\r\nvar NUMBER1 = C.NUMBER1 = 0x51;\r\nvar NUMBER3 = C.NUMBER3 = 0x53;\r\nvar STRING1 = C.STRING1 = 0x61;\r\nvar STRING2 = C.STRING2 = 0x62;\r\nvar STRING3 = C.STRING3 = 0x63;\r\nvar STRING4 = C.STRING4 = 0x64;\r\nvar STRING5 = C.STRING5 = 0x65;\r\nvar STRING6 = C.STRING6 = 0x66;\r\n// Parser States\r\nvar VALUE   = C.VALUE   = 0x71;\r\nvar KEY     = C.KEY     = 0x72;\r\n// Parser Modes\r\nvar OBJECT  = C.OBJECT  = 0x81;\r\nvar ARRAY   = C.ARRAY   = 0x82;\r\n\r\n\r\nfunction Parser() {\r\n  this.tState = START;\r\n  this.value = undefined;\r\n\r\n  this.string = undefined; // string data\r\n  this.unicode = undefined; // unicode escapes\r\n\r\n  this.key = undefined;\r\n  this.mode = undefined;\r\n  this.stack = [];\r\n  this.state = VALUE;\r\n  this.bytes_remaining = 0; // number of bytes remaining in multi byte utf8 char to read after split boundary\r\n  this.bytes_in_sequence = 0; // bytes in multi byte utf8 char to read\r\n  this.temp_buffs = { \"2\": new Buffer(2), \"3\": new Buffer(3), \"4\": new Buffer(4) }; // for rebuilding chars split before boundary is reached\r\n\r\n  // Stream offset\r\n  this.offset = -1;\r\n}\r\n\r\n// Slow code to string converter (only used when throwing syntax errors)\r\nParser.toknam = function (code) {\r\n  var keys = Object.keys(C);\r\n  for (var i = 0, l = keys.length; i < l; i++) {\r\n    var key = keys[i];\r\n    if (C[key] === code) { return key; }\r\n  }\r\n  return code && (\"0x\" + code.toString(16));\r\n};\r\n\r\nvar proto = Parser.prototype;\r\nproto.onError = function (err) { throw err; };\r\nproto.charError = function (buffer, i) {\r\n  this.tState = STOP;\r\n  this.onError(new Error(\"Unexpected \" + JSON.stringify(String.fromCharCode(buffer[i])) + \" at position \" + i + \" in state \" + Parser.toknam(this.tState)));\r\n};\r\nproto.write = function (buffer) {\r\n  if (typeof buffer === \"string\") buffer = new Buffer(buffer);\r\n  var n;\r\n  for (var i = 0, l = buffer.length; i < l; i++) {\r\n    if (this.tState === START){\r\n      n = buffer[i];\r\n      this.offset++;\r\n      if(n === 0x7b){ this.onToken(LEFT_BRACE, \"{\"); // {\r\n      }else if(n === 0x7d){ this.onToken(RIGHT_BRACE, \"}\"); // }\r\n      }else if(n === 0x5b){ this.onToken(LEFT_BRACKET, \"[\"); // [\r\n      }else if(n === 0x5d){ this.onToken(RIGHT_BRACKET, \"]\"); // ]\r\n      }else if(n === 0x3a){ this.onToken(COLON, \":\");  // :\r\n      }else if(n === 0x2c){ this.onToken(COMMA, \",\"); // ,\r\n      }else if(n === 0x74){ this.tState = TRUE1;  // t\r\n      }else if(n === 0x66){ this.tState = FALSE1;  // f\r\n      }else if(n === 0x6e){ this.tState = NULL1; // n\r\n      }else if(n === 0x22){ this.string = \"\"; this.tState = STRING1; // \"\r\n      }else if(n === 0x2d){ this.string = \"-\"; this.tState = NUMBER1; // -\r\n      }else{\r\n        if (n >= 0x30 && n < 0x40) { // 1-9\r\n          this.string = String.fromCharCode(n); this.tState = NUMBER3;\r\n        } else if (n === 0x20 || n === 0x09 || n === 0x0a || n === 0x0d) {\r\n          // whitespace\r\n        } else {\r\n          return this.charError(buffer, i);\r\n        }\r\n      }\r\n    }else if (this.tState === STRING1){ // After open quote\r\n      n = buffer[i]; // get current byte from buffer\r\n      // check for carry over of a multi byte char split between data chunks\r\n      // & fill temp buffer it with start of this data chunk up to the boundary limit set in the last iteration\r\n      if (this.bytes_remaining > 0) {\r\n        for (var j = 0; j < this.bytes_remaining; j++) {\r\n          this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence - this.bytes_remaining + j] = buffer[j];\r\n        }\r\n        this.string += this.temp_buffs[this.bytes_in_sequence].toString();\r\n        this.bytes_in_sequence = this.bytes_remaining = 0;\r\n        i = i + j - 1;\r\n      } else if (this.bytes_remaining === 0 && n >= 128) { // else if no remainder bytes carried over, parse multi byte (>=128) chars one at a time\r\n        if (n <= 193 || n > 244) {\r\n          return this.onError(new Error(\"Invalid UTF-8 character at position \" + i + \" in state \" + Parser.toknam(this.tState)));\r\n        }\r\n        if ((n >= 194) && (n <= 223)) this.bytes_in_sequence = 2;\r\n        if ((n >= 224) && (n <= 239)) this.bytes_in_sequence = 3;\r\n        if ((n >= 240) && (n <= 244)) this.bytes_in_sequence = 4;\r\n        if ((this.bytes_in_sequence + i) > buffer.length) { // if bytes needed to complete char fall outside buffer length, we have a boundary split\r\n          for (var k = 0; k <= (buffer.length - 1 - i); k++) {\r\n            this.temp_buffs[this.bytes_in_sequence][k] = buffer[i + k]; // fill temp buffer of correct size with bytes available in this chunk\r\n          }\r\n          this.bytes_remaining = (i + this.bytes_in_sequence) - buffer.length;\r\n          i = buffer.length - 1;\r\n        } else {\r\n          this.string += buffer.slice(i, (i + this.bytes_in_sequence)).toString();\r\n          i = i + this.bytes_in_sequence - 1;\r\n        }\r\n      } else if (n === 0x22) { this.tState = START; this.onToken(STRING, this.string); this.offset += Buffer.byteLength(this.string, 'utf8') + 1; this.string = undefined; }\r\n      else if (n === 0x5c) { this.tState = STRING2; }\r\n      else if (n >= 0x20) { this.string += String.fromCharCode(n); }\r\n      else {\r\n          return this.charError(buffer, i);\r\n      }\r\n    }else if (this.tState === STRING2){ // After backslash\r\n      n = buffer[i];\r\n      if(n === 0x22){ this.string += \"\\\"\"; this.tState = STRING1;\r\n      }else if(n === 0x5c){ this.string += \"\\\\\"; this.tState = STRING1; \r\n      }else if(n === 0x2f){ this.string += \"\\/\"; this.tState = STRING1; \r\n      }else if(n === 0x62){ this.string += \"\\b\"; this.tState = STRING1; \r\n      }else if(n === 0x66){ this.string += \"\\f\"; this.tState = STRING1; \r\n      }else if(n === 0x6e){ this.string += \"\\n\"; this.tState = STRING1; \r\n      }else if(n === 0x72){ this.string += \"\\r\"; this.tState = STRING1; \r\n      }else if(n === 0x74){ this.string += \"\\t\"; this.tState = STRING1; \r\n      }else if(n === 0x75){ this.unicode = \"\"; this.tState = STRING3;\r\n      }else{ \r\n        return this.charError(buffer, i); \r\n      }\r\n    }else if (this.tState === STRING3 || this.tState === STRING4 || this.tState === STRING5 || this.tState === STRING6){ // unicode hex codes\r\n      n = buffer[i];\r\n      // 0-9 A-F a-f\r\n      if ((n >= 0x30 && n < 0x40) || (n > 0x40 && n <= 0x46) || (n > 0x60 && n <= 0x66)) {\r\n        this.unicode += String.fromCharCode(n);\r\n        if (this.tState++ === STRING6) {\r\n          this.string += String.fromCharCode(parseInt(this.unicode, 16));\r\n          this.unicode = undefined;\r\n          this.tState = STRING1; \r\n        }\r\n      } else {\r\n        return this.charError(buffer, i);\r\n      }\r\n    } else if (this.tState === NUMBER1 || this.tState === NUMBER3) {\r\n        n = buffer[i];\r\n\r\n        switch (n) {\r\n          case 0x30: // 0\r\n          case 0x31: // 1\r\n          case 0x32: // 2\r\n          case 0x33: // 3\r\n          case 0x34: // 4\r\n          case 0x35: // 5\r\n          case 0x36: // 6\r\n          case 0x37: // 7\r\n          case 0x38: // 8\r\n          case 0x39: // 9\r\n          case 0x2e: // .\r\n          case 0x65: // e\r\n          case 0x45: // E\r\n          case 0x2b: // +\r\n          case 0x2d: // -\r\n            this.string += String.fromCharCode(n);\r\n            this.tState = NUMBER3;\r\n            break;\r\n          default:\r\n            this.tState = START;\r\n            var result = Number(this.string);\r\n\r\n            if (isNaN(result)){\r\n              return this.charError(buffer, i);\r\n            }\r\n\r\n            if ((this.string.match(/[0-9]+/) == this.string) && (result.toString() != this.string)) {\r\n              // Long string of digits which is an ID string and not valid and/or safe JavaScript integer Number\r\n              this.onToken(STRING, this.string);\r\n            } else {\r\n              this.onToken(NUMBER, result);\r\n            }\r\n\r\n            this.offset += this.string.length - 1;\r\n            this.string = undefined;\r\n            i--;\r\n            break;\r\n        }\r\n    }else if (this.tState === TRUE1){ // r\r\n      if (buffer[i] === 0x72) { this.tState = TRUE2; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === TRUE2){ // u\r\n      if (buffer[i] === 0x75) { this.tState = TRUE3; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === TRUE3){ // e\r\n      if (buffer[i] === 0x65) { this.tState = START; this.onToken(TRUE, true); this.offset+= 3; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === FALSE1){ // a\r\n      if (buffer[i] === 0x61) { this.tState = FALSE2; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === FALSE2){ // l\r\n      if (buffer[i] === 0x6c) { this.tState = FALSE3; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === FALSE3){ // s\r\n      if (buffer[i] === 0x73) { this.tState = FALSE4; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === FALSE4){ // e\r\n      if (buffer[i] === 0x65) { this.tState = START; this.onToken(FALSE, false); this.offset+= 4; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === NULL1){ // u\r\n      if (buffer[i] === 0x75) { this.tState = NULL2; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === NULL2){ // l\r\n      if (buffer[i] === 0x6c) { this.tState = NULL3; }\r\n      else { return this.charError(buffer, i); }\r\n    }else if (this.tState === NULL3){ // l\r\n      if (buffer[i] === 0x6c) { this.tState = START; this.onToken(NULL, null); this.offset += 3; }\r\n      else { return this.charError(buffer, i); }\r\n    }\r\n  }\r\n};\r\nproto.onToken = function (token, value) {\r\n  // Override this to get events\r\n};\r\n\r\nproto.parseError = function (token, value) {\r\n  this.tState = STOP;\r\n  this.onError(new Error(\"Unexpected \" + Parser.toknam(token) + (value ? (\"(\" + JSON.stringify(value) + \")\") : \"\") + \" in state \" + Parser.toknam(this.state)));\r\n};\r\nproto.push = function () {\r\n  this.stack.push({value: this.value, key: this.key, mode: this.mode});\r\n};\r\nproto.pop = function () {\r\n  var value = this.value;\r\n  var parent = this.stack.pop();\r\n  this.value = parent.value;\r\n  this.key = parent.key;\r\n  this.mode = parent.mode;\r\n  this.emit(value);\r\n  if (!this.mode) { this.state = VALUE; }\r\n};\r\nproto.emit = function (value) {\r\n  if (this.mode) { this.state = COMMA; }\r\n  this.onValue(value);\r\n};\r\nproto.onValue = function (value) {\r\n  // Override me\r\n};  \r\nproto.onToken = function (token, value) {\r\n  if(this.state === VALUE){\r\n    if(token === STRING || token === NUMBER || token === TRUE || token === FALSE || token === NULL){\r\n      if (this.value) {\r\n        this.value[this.key] = value;\r\n      }\r\n      this.emit(value);  \r\n    }else if(token === LEFT_BRACE){\r\n      this.push();\r\n      if (this.value) {\r\n        this.value = this.value[this.key] = {};\r\n      } else {\r\n        this.value = {};\r\n      }\r\n      this.key = undefined;\r\n      this.state = KEY;\r\n      this.mode = OBJECT;\r\n    }else if(token === LEFT_BRACKET){\r\n      this.push();\r\n      if (this.value) {\r\n        this.value = this.value[this.key] = [];\r\n      } else {\r\n        this.value = [];\r\n      }\r\n      this.key = 0;\r\n      this.mode = ARRAY;\r\n      this.state = VALUE;\r\n    }else if(token === RIGHT_BRACE){\r\n      if (this.mode === OBJECT) {\r\n        this.pop();\r\n      } else {\r\n        return this.parseError(token, value);\r\n      }\r\n    }else if(token === RIGHT_BRACKET){\r\n      if (this.mode === ARRAY) {\r\n        this.pop();\r\n      } else {\r\n        return this.parseError(token, value);\r\n      }\r\n    }else{\r\n      return this.parseError(token, value);\r\n    }\r\n  }else if(this.state === KEY){\r\n    if (token === STRING) {\r\n      this.key = value;\r\n      this.state = COLON;\r\n    } else if (token === RIGHT_BRACE) {\r\n      this.pop();\r\n    } else {\r\n      return this.parseError(token, value);\r\n    }\r\n  }else if(this.state === COLON){\r\n    if (token === COLON) { this.state = VALUE; }\r\n    else { return this.parseError(token, value); }\r\n  }else if(this.state === COMMA){\r\n    if (token === COMMA) { \r\n      if (this.mode === ARRAY) { this.key++; this.state = VALUE; }\r\n      else if (this.mode === OBJECT) { this.state = KEY; }\r\n\r\n    } else if (token === RIGHT_BRACKET && this.mode === ARRAY || token === RIGHT_BRACE && this.mode === OBJECT) {\r\n      this.pop();\r\n    } else {\r\n      return this.parseError(token, value);\r\n    }\r\n  }else{\r\n    return this.parseError(token, value);\r\n  }\r\n};\r\n\r\nParser.C = C;\r\n\r\nmodule.exports = Parser;\r\n\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"buffer\":56}],69:[function(require,module,exports){\r\n(function (Buffer){\r\n'use strict'\r\nvar inherits = require('inherits')\r\nvar HashBase = require('hash-base')\r\n\r\nvar ARRAY16 = new Array(16)\r\n\r\nfunction MD5 () {\r\n  HashBase.call(this, 64)\r\n\r\n  // state\r\n  this._a = 0x67452301\r\n  this._b = 0xefcdab89\r\n  this._c = 0x98badcfe\r\n  this._d = 0x10325476\r\n}\r\n\r\ninherits(MD5, HashBase)\r\n\r\nMD5.prototype._update = function () {\r\n  var M = ARRAY16\r\n  for (var i = 0; i < 16; ++i) M[i] = this._block.readInt32LE(i * 4)\r\n\r\n  var a = this._a\r\n  var b = this._b\r\n  var c = this._c\r\n  var d = this._d\r\n\r\n  a = fnF(a, b, c, d, M[0], 0xd76aa478, 7)\r\n  d = fnF(d, a, b, c, M[1], 0xe8c7b756, 12)\r\n  c = fnF(c, d, a, b, M[2], 0x242070db, 17)\r\n  b = fnF(b, c, d, a, M[3], 0xc1bdceee, 22)\r\n  a = fnF(a, b, c, d, M[4], 0xf57c0faf, 7)\r\n  d = fnF(d, a, b, c, M[5], 0x4787c62a, 12)\r\n  c = fnF(c, d, a, b, M[6], 0xa8304613, 17)\r\n  b = fnF(b, c, d, a, M[7], 0xfd469501, 22)\r\n  a = fnF(a, b, c, d, M[8], 0x698098d8, 7)\r\n  d = fnF(d, a, b, c, M[9], 0x8b44f7af, 12)\r\n  c = fnF(c, d, a, b, M[10], 0xffff5bb1, 17)\r\n  b = fnF(b, c, d, a, M[11], 0x895cd7be, 22)\r\n  a = fnF(a, b, c, d, M[12], 0x6b901122, 7)\r\n  d = fnF(d, a, b, c, M[13], 0xfd987193, 12)\r\n  c = fnF(c, d, a, b, M[14], 0xa679438e, 17)\r\n  b = fnF(b, c, d, a, M[15], 0x49b40821, 22)\r\n\r\n  a = fnG(a, b, c, d, M[1], 0xf61e2562, 5)\r\n  d = fnG(d, a, b, c, M[6], 0xc040b340, 9)\r\n  c = fnG(c, d, a, b, M[11], 0x265e5a51, 14)\r\n  b = fnG(b, c, d, a, M[0], 0xe9b6c7aa, 20)\r\n  a = fnG(a, b, c, d, M[5], 0xd62f105d, 5)\r\n  d = fnG(d, a, b, c, M[10], 0x02441453, 9)\r\n  c = fnG(c, d, a, b, M[15], 0xd8a1e681, 14)\r\n  b = fnG(b, c, d, a, M[4], 0xe7d3fbc8, 20)\r\n  a = fnG(a, b, c, d, M[9], 0x21e1cde6, 5)\r\n  d = fnG(d, a, b, c, M[14], 0xc33707d6, 9)\r\n  c = fnG(c, d, a, b, M[3], 0xf4d50d87, 14)\r\n  b = fnG(b, c, d, a, M[8], 0x455a14ed, 20)\r\n  a = fnG(a, b, c, d, M[13], 0xa9e3e905, 5)\r\n  d = fnG(d, a, b, c, M[2], 0xfcefa3f8, 9)\r\n  c = fnG(c, d, a, b, M[7], 0x676f02d9, 14)\r\n  b = fnG(b, c, d, a, M[12], 0x8d2a4c8a, 20)\r\n\r\n  a = fnH(a, b, c, d, M[5], 0xfffa3942, 4)\r\n  d = fnH(d, a, b, c, M[8], 0x8771f681, 11)\r\n  c = fnH(c, d, a, b, M[11], 0x6d9d6122, 16)\r\n  b = fnH(b, c, d, a, M[14], 0xfde5380c, 23)\r\n  a = fnH(a, b, c, d, M[1], 0xa4beea44, 4)\r\n  d = fnH(d, a, b, c, M[4], 0x4bdecfa9, 11)\r\n  c = fnH(c, d, a, b, M[7], 0xf6bb4b60, 16)\r\n  b = fnH(b, c, d, a, M[10], 0xbebfbc70, 23)\r\n  a = fnH(a, b, c, d, M[13], 0x289b7ec6, 4)\r\n  d = fnH(d, a, b, c, M[0], 0xeaa127fa, 11)\r\n  c = fnH(c, d, a, b, M[3], 0xd4ef3085, 16)\r\n  b = fnH(b, c, d, a, M[6], 0x04881d05, 23)\r\n  a = fnH(a, b, c, d, M[9], 0xd9d4d039, 4)\r\n  d = fnH(d, a, b, c, M[12], 0xe6db99e5, 11)\r\n  c = fnH(c, d, a, b, M[15], 0x1fa27cf8, 16)\r\n  b = fnH(b, c, d, a, M[2], 0xc4ac5665, 23)\r\n\r\n  a = fnI(a, b, c, d, M[0], 0xf4292244, 6)\r\n  d = fnI(d, a, b, c, M[7], 0x432aff97, 10)\r\n  c = fnI(c, d, a, b, M[14], 0xab9423a7, 15)\r\n  b = fnI(b, c, d, a, M[5], 0xfc93a039, 21)\r\n  a = fnI(a, b, c, d, M[12], 0x655b59c3, 6)\r\n  d = fnI(d, a, b, c, M[3], 0x8f0ccc92, 10)\r\n  c = fnI(c, d, a, b, M[10], 0xffeff47d, 15)\r\n  b = fnI(b, c, d, a, M[1], 0x85845dd1, 21)\r\n  a = fnI(a, b, c, d, M[8], 0x6fa87e4f, 6)\r\n  d = fnI(d, a, b, c, M[15], 0xfe2ce6e0, 10)\r\n  c = fnI(c, d, a, b, M[6], 0xa3014314, 15)\r\n  b = fnI(b, c, d, a, M[13], 0x4e0811a1, 21)\r\n  a = fnI(a, b, c, d, M[4], 0xf7537e82, 6)\r\n  d = fnI(d, a, b, c, M[11], 0xbd3af235, 10)\r\n  c = fnI(c, d, a, b, M[2], 0x2ad7d2bb, 15)\r\n  b = fnI(b, c, d, a, M[9], 0xeb86d391, 21)\r\n\r\n  this._a = (this._a + a) | 0\r\n  this._b = (this._b + b) | 0\r\n  this._c = (this._c + c) | 0\r\n  this._d = (this._d + d) | 0\r\n}\r\n\r\nMD5.prototype._digest = function () {\r\n  // create padding and handle blocks\r\n  this._block[this._blockOffset++] = 0x80\r\n  if (this._blockOffset > 56) {\r\n    this._block.fill(0, this._blockOffset, 64)\r\n    this._update()\r\n    this._blockOffset = 0\r\n  }\r\n\r\n  this._block.fill(0, this._blockOffset, 56)\r\n  this._block.writeUInt32LE(this._length[0], 56)\r\n  this._block.writeUInt32LE(this._length[1], 60)\r\n  this._update()\r\n\r\n  // produce result\r\n  var buffer = new Buffer(16)\r\n  buffer.writeInt32LE(this._a, 0)\r\n  buffer.writeInt32LE(this._b, 4)\r\n  buffer.writeInt32LE(this._c, 8)\r\n  buffer.writeInt32LE(this._d, 12)\r\n  return buffer\r\n}\r\n\r\nfunction rotl (x, n) {\r\n  return (x << n) | (x >>> (32 - n))\r\n}\r\n\r\nfunction fnF (a, b, c, d, m, k, s) {\r\n  return (rotl((a + ((b & c) | ((~b) & d)) + m + k) | 0, s) + b) | 0\r\n}\r\n\r\nfunction fnG (a, b, c, d, m, k, s) {\r\n  return (rotl((a + ((b & d) | (c & (~d))) + m + k) | 0, s) + b) | 0\r\n}\r\n\r\nfunction fnH (a, b, c, d, m, k, s) {\r\n  return (rotl((a + (b ^ c ^ d) + m + k) | 0, s) + b) | 0\r\n}\r\n\r\nfunction fnI (a, b, c, d, m, k, s) {\r\n  return (rotl((a + ((c ^ (b | (~d)))) + m + k) | 0, s) + b) | 0\r\n}\r\n\r\nmodule.exports = MD5\r\n\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"buffer\":56,\"hash-base\":61,\"inherits\":64}],70:[function(require,module,exports){\r\nexports.endianness = function () { return 'LE' };\r\n\r\nexports.hostname = function () {\r\n    if (typeof location !== 'undefined') {\r\n        return location.hostname\r\n    }\r\n    else return '';\r\n};\r\n\r\nexports.loadavg = function () { return [] };\r\n\r\nexports.uptime = function () { return 0 };\r\n\r\nexports.freemem = function () {\r\n    return Number.MAX_VALUE;\r\n};\r\n\r\nexports.totalmem = function () {\r\n    return Number.MAX_VALUE;\r\n};\r\n\r\nexports.cpus = function () { return [] };\r\n\r\nexports.type = function () { return 'Browser' };\r\n\r\nexports.release = function () {\r\n    if (typeof navigator !== 'undefined') {\r\n        return navigator.appVersion;\r\n    }\r\n    return '';\r\n};\r\n\r\nexports.networkInterfaces\r\n= exports.getNetworkInterfaces\r\n= function () { return {} };\r\n\r\nexports.arch = function () { return 'javascript' };\r\n\r\nexports.platform = function () { return 'browser' };\r\n\r\nexports.tmpdir = exports.tmpDir = function () {\r\n    return '/tmp';\r\n};\r\n\r\nexports.EOL = '\\n';\r\n\r\nexports.homedir = function () {\r\n\treturn '/'\r\n};\r\n\r\n},{}],71:[function(require,module,exports){\r\n(function (process){\r\n'use strict';\r\n\r\nif (!process.version ||\r\n    process.version.indexOf('v0.') === 0 ||\r\n    process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\r\n  module.exports = nextTick;\r\n} else {\r\n  module.exports = process.nextTick;\r\n}\r\n\r\nfunction nextTick(fn, arg1, arg2, arg3) {\r\n  if (typeof fn !== 'function') {\r\n    throw new TypeError('\"callback\" argument must be a function');\r\n  }\r\n  var len = arguments.length;\r\n  var args, i;\r\n  switch (len) {\r\n  case 0:\r\n  case 1:\r\n    return process.nextTick(fn);\r\n  case 2:\r\n    return process.nextTick(function afterTickOne() {\r\n      fn.call(null, arg1);\r\n    });\r\n  case 3:\r\n    return process.nextTick(function afterTickTwo() {\r\n      fn.call(null, arg1, arg2);\r\n    });\r\n  case 4:\r\n    return process.nextTick(function afterTickThree() {\r\n      fn.call(null, arg1, arg2, arg3);\r\n    });\r\n  default:\r\n    args = new Array(len - 1);\r\n    i = 0;\r\n    while (i < args.length) {\r\n      args[i++] = arguments[i];\r\n    }\r\n    return process.nextTick(function afterTick() {\r\n      fn.apply(null, args);\r\n    });\r\n  }\r\n}\r\n\r\n}).call(this,require('_process'))\r\n},{\"_process\":72}],72:[function(require,module,exports){\r\n// shim for using process in browser\r\nvar process = module.exports = {};\r\n\r\n// cached from whatever global is present so that test runners that stub it\r\n// don't break things.  But we need to wrap it in a try catch in case it is\r\n// wrapped in strict mode code which doesn't define any globals.  It's inside a\r\n// function because try/catches deoptimize in certain engines.\r\n\r\nvar cachedSetTimeout;\r\nvar cachedClearTimeout;\r\n\r\nfunction defaultSetTimout() {\r\n    throw new Error('setTimeout has not been defined');\r\n}\r\nfunction defaultClearTimeout () {\r\n    throw new Error('clearTimeout has not been defined');\r\n}\r\n(function () {\r\n    try {\r\n        if (typeof setTimeout === 'function') {\r\n            cachedSetTimeout = setTimeout;\r\n        } else {\r\n            cachedSetTimeout = defaultSetTimout;\r\n        }\r\n    } catch (e) {\r\n        cachedSetTimeout = defaultSetTimout;\r\n    }\r\n    try {\r\n        if (typeof clearTimeout === 'function') {\r\n            cachedClearTimeout = clearTimeout;\r\n        } else {\r\n            cachedClearTimeout = defaultClearTimeout;\r\n        }\r\n    } catch (e) {\r\n        cachedClearTimeout = defaultClearTimeout;\r\n    }\r\n} ())\r\nfunction runTimeout(fun) {\r\n    if (cachedSetTimeout === setTimeout) {\r\n        //normal enviroments in sane situations\r\n        return setTimeout(fun, 0);\r\n    }\r\n    // if setTimeout wasn't available but was latter defined\r\n    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\r\n        cachedSetTimeout = setTimeout;\r\n        return setTimeout(fun, 0);\r\n    }\r\n    try {\r\n        // when when somebody has screwed with setTimeout but no I.E. maddness\r\n        return cachedSetTimeout(fun, 0);\r\n    } catch(e){\r\n        try {\r\n            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\r\n            return cachedSetTimeout.call(null, fun, 0);\r\n        } catch(e){\r\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\r\n            return cachedSetTimeout.call(this, fun, 0);\r\n        }\r\n    }\r\n\r\n\r\n}\r\nfunction runClearTimeout(marker) {\r\n    if (cachedClearTimeout === clearTimeout) {\r\n        //normal enviroments in sane situations\r\n        return clearTimeout(marker);\r\n    }\r\n    // if clearTimeout wasn't available but was latter defined\r\n    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\r\n        cachedClearTimeout = clearTimeout;\r\n        return clearTimeout(marker);\r\n    }\r\n    try {\r\n        // when when somebody has screwed with setTimeout but no I.E. maddness\r\n        return cachedClearTimeout(marker);\r\n    } catch (e){\r\n        try {\r\n            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\r\n            return cachedClearTimeout.call(null, marker);\r\n        } catch (e){\r\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\r\n            // Some versions of I.E. have different rules for clearTimeout vs setTimeout\r\n            return cachedClearTimeout.call(this, marker);\r\n        }\r\n    }\r\n\r\n\r\n\r\n}\r\nvar queue = [];\r\nvar draining = false;\r\nvar currentQueue;\r\nvar queueIndex = -1;\r\n\r\nfunction cleanUpNextTick() {\r\n    if (!draining || !currentQueue) {\r\n        return;\r\n    }\r\n    draining = false;\r\n    if (currentQueue.length) {\r\n        queue = currentQueue.concat(queue);\r\n    } else {\r\n        queueIndex = -1;\r\n    }\r\n    if (queue.length) {\r\n        drainQueue();\r\n    }\r\n}\r\n\r\nfunction drainQueue() {\r\n    if (draining) {\r\n        return;\r\n    }\r\n    var timeout = runTimeout(cleanUpNextTick);\r\n    draining = true;\r\n\r\n    var len = queue.length;\r\n    while(len) {\r\n        currentQueue = queue;\r\n        queue = [];\r\n        while (++queueIndex < len) {\r\n            if (currentQueue) {\r\n                currentQueue[queueIndex].run();\r\n            }\r\n        }\r\n        queueIndex = -1;\r\n        len = queue.length;\r\n    }\r\n    currentQueue = null;\r\n    draining = false;\r\n    runClearTimeout(timeout);\r\n}\r\n\r\nprocess.nextTick = function (fun) {\r\n    var args = new Array(arguments.length - 1);\r\n    if (arguments.length > 1) {\r\n        for (var i = 1; i < arguments.length; i++) {\r\n            args[i - 1] = arguments[i];\r\n        }\r\n    }\r\n    queue.push(new Item(fun, args));\r\n    if (queue.length === 1 && !draining) {\r\n        runTimeout(drainQueue);\r\n    }\r\n};\r\n\r\n// v8 likes predictible objects\r\nfunction Item(fun, array) {\r\n    this.fun = fun;\r\n    this.array = array;\r\n}\r\nItem.prototype.run = function () {\r\n    this.fun.apply(null, this.array);\r\n};\r\nprocess.title = 'browser';\r\nprocess.browser = true;\r\nprocess.env = {};\r\nprocess.argv = [];\r\nprocess.version = ''; // empty string to avoid regexp issues\r\nprocess.versions = {};\r\n\r\nfunction noop() {}\r\n\r\nprocess.on = noop;\r\nprocess.addListener = noop;\r\nprocess.once = noop;\r\nprocess.off = noop;\r\nprocess.removeListener = noop;\r\nprocess.removeAllListeners = noop;\r\nprocess.emit = noop;\r\nprocess.prependListener = noop;\r\nprocess.prependOnceListener = noop;\r\n\r\nprocess.listeners = function (name) { return [] }\r\n\r\nprocess.binding = function (name) {\r\n    throw new Error('process.binding is not supported');\r\n};\r\n\r\nprocess.cwd = function () { return '/' };\r\nprocess.chdir = function (dir) {\r\n    throw new Error('process.chdir is not supported');\r\n};\r\nprocess.umask = function() { return 0; };\r\n\r\n},{}],73:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n'use strict';\r\n\r\n// If obj.hasOwnProperty has been overridden, then calling\r\n// obj.hasOwnProperty(prop) will break.\r\n// See: https://github.com/joyent/node/issues/1707\r\nfunction hasOwnProperty(obj, prop) {\r\n  return Object.prototype.hasOwnProperty.call(obj, prop);\r\n}\r\n\r\nmodule.exports = function(qs, sep, eq, options) {\r\n  sep = sep || '&';\r\n  eq = eq || '=';\r\n  var obj = {};\r\n\r\n  if (typeof qs !== 'string' || qs.length === 0) {\r\n    return obj;\r\n  }\r\n\r\n  var regexp = /\\+/g;\r\n  qs = qs.split(sep);\r\n\r\n  var maxKeys = 1000;\r\n  if (options && typeof options.maxKeys === 'number') {\r\n    maxKeys = options.maxKeys;\r\n  }\r\n\r\n  var len = qs.length;\r\n  // maxKeys <= 0 means that we should not limit keys count\r\n  if (maxKeys > 0 && len > maxKeys) {\r\n    len = maxKeys;\r\n  }\r\n\r\n  for (var i = 0; i < len; ++i) {\r\n    var x = qs[i].replace(regexp, '%20'),\r\n        idx = x.indexOf(eq),\r\n        kstr, vstr, k, v;\r\n\r\n    if (idx >= 0) {\r\n      kstr = x.substr(0, idx);\r\n      vstr = x.substr(idx + 1);\r\n    } else {\r\n      kstr = x;\r\n      vstr = '';\r\n    }\r\n\r\n    k = decodeURIComponent(kstr);\r\n    v = decodeURIComponent(vstr);\r\n\r\n    if (!hasOwnProperty(obj, k)) {\r\n      obj[k] = v;\r\n    } else if (isArray(obj[k])) {\r\n      obj[k].push(v);\r\n    } else {\r\n      obj[k] = [obj[k], v];\r\n    }\r\n  }\r\n\r\n  return obj;\r\n};\r\n\r\nvar isArray = Array.isArray || function (xs) {\r\n  return Object.prototype.toString.call(xs) === '[object Array]';\r\n};\r\n\r\n},{}],74:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n'use strict';\r\n\r\nvar stringifyPrimitive = function(v) {\r\n  switch (typeof v) {\r\n    case 'string':\r\n      return v;\r\n\r\n    case 'boolean':\r\n      return v ? 'true' : 'false';\r\n\r\n    case 'number':\r\n      return isFinite(v) ? v : '';\r\n\r\n    default:\r\n      return '';\r\n  }\r\n};\r\n\r\nmodule.exports = function(obj, sep, eq, name) {\r\n  sep = sep || '&';\r\n  eq = eq || '=';\r\n  if (obj === null) {\r\n    obj = undefined;\r\n  }\r\n\r\n  if (typeof obj === 'object') {\r\n    return map(objectKeys(obj), function(k) {\r\n      var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\r\n      if (isArray(obj[k])) {\r\n        return map(obj[k], function(v) {\r\n          return ks + encodeURIComponent(stringifyPrimitive(v));\r\n        }).join(sep);\r\n      } else {\r\n        return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\r\n      }\r\n    }).join(sep);\r\n\r\n  }\r\n\r\n  if (!name) return '';\r\n  return encodeURIComponent(stringifyPrimitive(name)) + eq +\r\n         encodeURIComponent(stringifyPrimitive(obj));\r\n};\r\n\r\nvar isArray = Array.isArray || function (xs) {\r\n  return Object.prototype.toString.call(xs) === '[object Array]';\r\n};\r\n\r\nfunction map (xs, f) {\r\n  if (xs.map) return xs.map(f);\r\n  var res = [];\r\n  for (var i = 0; i < xs.length; i++) {\r\n    res.push(f(xs[i], i));\r\n  }\r\n  return res;\r\n}\r\n\r\nvar objectKeys = Object.keys || function (obj) {\r\n  var res = [];\r\n  for (var key in obj) {\r\n    if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);\r\n  }\r\n  return res;\r\n};\r\n\r\n},{}],75:[function(require,module,exports){\r\n'use strict';\r\n\r\nexports.decode = exports.parse = require('./decode');\r\nexports.encode = exports.stringify = require('./encode');\r\n\r\n},{\"./decode\":73,\"./encode\":74}],76:[function(require,module,exports){\r\nmodule.exports = require(\"./lib/_stream_duplex.js\")\r\n\r\n},{\"./lib/_stream_duplex.js\":77}],77:[function(require,module,exports){\r\n// a duplex stream is just a stream that is both readable and writable.\r\n// Since JS doesn't have multiple prototypal inheritance, this class\r\n// prototypally inherits from Readable, and then parasitically from\r\n// Writable.\r\n\r\n'use strict';\r\n\r\n/*<replacement>*/\r\n\r\nvar objectKeys = Object.keys || function (obj) {\r\n  var keys = [];\r\n  for (var key in obj) {\r\n    keys.push(key);\r\n  }return keys;\r\n};\r\n/*</replacement>*/\r\n\r\nmodule.exports = Duplex;\r\n\r\n/*<replacement>*/\r\nvar processNextTick = require('process-nextick-args');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\nvar Readable = require('./_stream_readable');\r\nvar Writable = require('./_stream_writable');\r\n\r\nutil.inherits(Duplex, Readable);\r\n\r\nvar keys = objectKeys(Writable.prototype);\r\nfor (var v = 0; v < keys.length; v++) {\r\n  var method = keys[v];\r\n  if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\r\n}\r\n\r\nfunction Duplex(options) {\r\n  if (!(this instanceof Duplex)) return new Duplex(options);\r\n\r\n  Readable.call(this, options);\r\n  Writable.call(this, options);\r\n\r\n  if (options && options.readable === false) this.readable = false;\r\n\r\n  if (options && options.writable === false) this.writable = false;\r\n\r\n  this.allowHalfOpen = true;\r\n  if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\r\n\r\n  this.once('end', onend);\r\n}\r\n\r\n// the no-half-open enforcer\r\nfunction onend() {\r\n  // if we allow half-open state, or if the writable side ended,\r\n  // then we're ok.\r\n  if (this.allowHalfOpen || this._writableState.ended) return;\r\n\r\n  // no more data can be written.\r\n  // But allow more writes to happen in this tick.\r\n  processNextTick(onEndNT, this);\r\n}\r\n\r\nfunction onEndNT(self) {\r\n  self.end();\r\n}\r\n\r\nfunction forEach(xs, f) {\r\n  for (var i = 0, l = xs.length; i < l; i++) {\r\n    f(xs[i], i);\r\n  }\r\n}\r\n},{\"./_stream_readable\":79,\"./_stream_writable\":81,\"core-util-is\":58,\"inherits\":64,\"process-nextick-args\":71}],78:[function(require,module,exports){\r\n// a passthrough stream.\r\n// basically just the most minimal sort of Transform stream.\r\n// Every written chunk gets output as-is.\r\n\r\n'use strict';\r\n\r\nmodule.exports = PassThrough;\r\n\r\nvar Transform = require('./_stream_transform');\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\nutil.inherits(PassThrough, Transform);\r\n\r\nfunction PassThrough(options) {\r\n  if (!(this instanceof PassThrough)) return new PassThrough(options);\r\n\r\n  Transform.call(this, options);\r\n}\r\n\r\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\r\n  cb(null, chunk);\r\n};\r\n},{\"./_stream_transform\":80,\"core-util-is\":58,\"inherits\":64}],79:[function(require,module,exports){\r\n(function (process){\r\n'use strict';\r\n\r\nmodule.exports = Readable;\r\n\r\n/*<replacement>*/\r\nvar processNextTick = require('process-nextick-args');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar isArray = require('isarray');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Buffer = require('buffer').Buffer;\r\n/*</replacement>*/\r\n\r\nReadable.ReadableState = ReadableState;\r\n\r\nvar EE = require('events');\r\n\r\n/*<replacement>*/\r\nvar EElistenerCount = function (emitter, type) {\r\n  return emitter.listeners(type).length;\r\n};\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Stream;\r\n(function () {\r\n  try {\r\n    Stream = require('st' + 'ream');\r\n  } catch (_) {} finally {\r\n    if (!Stream) Stream = require('events').EventEmitter;\r\n  }\r\n})();\r\n/*</replacement>*/\r\n\r\nvar Buffer = require('buffer').Buffer;\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar debugUtil = require('util');\r\nvar debug = undefined;\r\nif (debugUtil && debugUtil.debuglog) {\r\n  debug = debugUtil.debuglog('stream');\r\n} else {\r\n  debug = function () {};\r\n}\r\n/*</replacement>*/\r\n\r\nvar StringDecoder;\r\n\r\nutil.inherits(Readable, Stream);\r\n\r\nvar Duplex;\r\nfunction ReadableState(options, stream) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  options = options || {};\r\n\r\n  // object stream flag. Used to make read(n) ignore n and to\r\n  // make all the buffer merging and length checks go away\r\n  this.objectMode = !!options.objectMode;\r\n\r\n  if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\r\n\r\n  // the point at which it stops calling _read() to fill the buffer\r\n  // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\r\n  var hwm = options.highWaterMark;\r\n  var defaultHwm = this.objectMode ? 16 : 16 * 1024;\r\n  this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\r\n\r\n  // cast to ints.\r\n  this.highWaterMark = ~ ~this.highWaterMark;\r\n\r\n  this.buffer = [];\r\n  this.length = 0;\r\n  this.pipes = null;\r\n  this.pipesCount = 0;\r\n  this.flowing = null;\r\n  this.ended = false;\r\n  this.endEmitted = false;\r\n  this.reading = false;\r\n\r\n  // a flag to be able to tell if the onwrite cb is called immediately,\r\n  // or on a later tick.  We set this to true at first, because any\r\n  // actions that shouldn't happen until \"later\" should generally also\r\n  // not happen before the first write call.\r\n  this.sync = true;\r\n\r\n  // whenever we return null, then we set a flag to say\r\n  // that we're awaiting a 'readable' event emission.\r\n  this.needReadable = false;\r\n  this.emittedReadable = false;\r\n  this.readableListening = false;\r\n  this.resumeScheduled = false;\r\n\r\n  // Crypto is kind of old and crusty.  Historically, its default string\r\n  // encoding is 'binary' so we have to make this configurable.\r\n  // Everything else in the universe uses 'utf8', though.\r\n  this.defaultEncoding = options.defaultEncoding || 'utf8';\r\n\r\n  // when piping, we only care about 'readable' events that happen\r\n  // after read()ing all the bytes and not getting any pushback.\r\n  this.ranOut = false;\r\n\r\n  // the number of writers that are awaiting a drain event in .pipe()s\r\n  this.awaitDrain = 0;\r\n\r\n  // if true, a maybeReadMore has been scheduled\r\n  this.readingMore = false;\r\n\r\n  this.decoder = null;\r\n  this.encoding = null;\r\n  if (options.encoding) {\r\n    if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\r\n    this.decoder = new StringDecoder(options.encoding);\r\n    this.encoding = options.encoding;\r\n  }\r\n}\r\n\r\nvar Duplex;\r\nfunction Readable(options) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  if (!(this instanceof Readable)) return new Readable(options);\r\n\r\n  this._readableState = new ReadableState(options, this);\r\n\r\n  // legacy\r\n  this.readable = true;\r\n\r\n  if (options && typeof options.read === 'function') this._read = options.read;\r\n\r\n  Stream.call(this);\r\n}\r\n\r\n// Manually shove something into the read() buffer.\r\n// This returns true if the highWaterMark has not been hit yet,\r\n// similar to how Writable.write() returns true if you should\r\n// write() some more.\r\nReadable.prototype.push = function (chunk, encoding) {\r\n  var state = this._readableState;\r\n\r\n  if (!state.objectMode && typeof chunk === 'string') {\r\n    encoding = encoding || state.defaultEncoding;\r\n    if (encoding !== state.encoding) {\r\n      chunk = new Buffer(chunk, encoding);\r\n      encoding = '';\r\n    }\r\n  }\r\n\r\n  return readableAddChunk(this, state, chunk, encoding, false);\r\n};\r\n\r\n// Unshift should *always* be something directly out of read()\r\nReadable.prototype.unshift = function (chunk) {\r\n  var state = this._readableState;\r\n  return readableAddChunk(this, state, chunk, '', true);\r\n};\r\n\r\nReadable.prototype.isPaused = function () {\r\n  return this._readableState.flowing === false;\r\n};\r\n\r\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\r\n  var er = chunkInvalid(state, chunk);\r\n  if (er) {\r\n    stream.emit('error', er);\r\n  } else if (chunk === null) {\r\n    state.reading = false;\r\n    onEofChunk(stream, state);\r\n  } else if (state.objectMode || chunk && chunk.length > 0) {\r\n    if (state.ended && !addToFront) {\r\n      var e = new Error('stream.push() after EOF');\r\n      stream.emit('error', e);\r\n    } else if (state.endEmitted && addToFront) {\r\n      var e = new Error('stream.unshift() after end event');\r\n      stream.emit('error', e);\r\n    } else {\r\n      var skipAdd;\r\n      if (state.decoder && !addToFront && !encoding) {\r\n        chunk = state.decoder.write(chunk);\r\n        skipAdd = !state.objectMode && chunk.length === 0;\r\n      }\r\n\r\n      if (!addToFront) state.reading = false;\r\n\r\n      // Don't add to the buffer if we've decoded to an empty string chunk and\r\n      // we're not in object mode\r\n      if (!skipAdd) {\r\n        // if we want the data now, just emit it.\r\n        if (state.flowing && state.length === 0 && !state.sync) {\r\n          stream.emit('data', chunk);\r\n          stream.read(0);\r\n        } else {\r\n          // update the buffer info.\r\n          state.length += state.objectMode ? 1 : chunk.length;\r\n          if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\r\n\r\n          if (state.needReadable) emitReadable(stream);\r\n        }\r\n      }\r\n\r\n      maybeReadMore(stream, state);\r\n    }\r\n  } else if (!addToFront) {\r\n    state.reading = false;\r\n  }\r\n\r\n  return needMoreData(state);\r\n}\r\n\r\n// if it's past the high water mark, we can push in some more.\r\n// Also, if we have no data yet, we can stand some\r\n// more bytes.  This is to work around cases where hwm=0,\r\n// such as the repl.  Also, if the push() triggered a\r\n// readable event, and the user called read(largeNumber) such that\r\n// needReadable was set, then we ought to push more, so that another\r\n// 'readable' event will be triggered.\r\nfunction needMoreData(state) {\r\n  return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\r\n}\r\n\r\n// backwards compatibility.\r\nReadable.prototype.setEncoding = function (enc) {\r\n  if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\r\n  this._readableState.decoder = new StringDecoder(enc);\r\n  this._readableState.encoding = enc;\r\n  return this;\r\n};\r\n\r\n// Don't raise the hwm > 8MB\r\nvar MAX_HWM = 0x800000;\r\nfunction computeNewHighWaterMark(n) {\r\n  if (n >= MAX_HWM) {\r\n    n = MAX_HWM;\r\n  } else {\r\n    // Get the next highest power of 2\r\n    n--;\r\n    n |= n >>> 1;\r\n    n |= n >>> 2;\r\n    n |= n >>> 4;\r\n    n |= n >>> 8;\r\n    n |= n >>> 16;\r\n    n++;\r\n  }\r\n  return n;\r\n}\r\n\r\nfunction howMuchToRead(n, state) {\r\n  if (state.length === 0 && state.ended) return 0;\r\n\r\n  if (state.objectMode) return n === 0 ? 0 : 1;\r\n\r\n  if (n === null || isNaN(n)) {\r\n    // only flow one buffer at a time\r\n    if (state.flowing && state.buffer.length) return state.buffer[0].length;else return state.length;\r\n  }\r\n\r\n  if (n <= 0) return 0;\r\n\r\n  // If we're asking for more than the target buffer level,\r\n  // then raise the water mark.  Bump up to the next highest\r\n  // power of 2, to prevent increasing it excessively in tiny\r\n  // amounts.\r\n  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\r\n\r\n  // don't have that much.  return null, unless we've ended.\r\n  if (n > state.length) {\r\n    if (!state.ended) {\r\n      state.needReadable = true;\r\n      return 0;\r\n    } else {\r\n      return state.length;\r\n    }\r\n  }\r\n\r\n  return n;\r\n}\r\n\r\n// you can override either this method, or the async _read(n) below.\r\nReadable.prototype.read = function (n) {\r\n  debug('read', n);\r\n  var state = this._readableState;\r\n  var nOrig = n;\r\n\r\n  if (typeof n !== 'number' || n > 0) state.emittedReadable = false;\r\n\r\n  // if we're doing read(0) to trigger a readable event, but we\r\n  // already have a bunch of data in the buffer, then just trigger\r\n  // the 'readable' event and move on.\r\n  if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\r\n    debug('read: emitReadable', state.length, state.ended);\r\n    if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\r\n    return null;\r\n  }\r\n\r\n  n = howMuchToRead(n, state);\r\n\r\n  // if we've ended, and we're now clear, then finish it up.\r\n  if (n === 0 && state.ended) {\r\n    if (state.length === 0) endReadable(this);\r\n    return null;\r\n  }\r\n\r\n  // All the actual chunk generation logic needs to be\r\n  // *below* the call to _read.  The reason is that in certain\r\n  // synthetic stream cases, such as passthrough streams, _read\r\n  // may be a completely synchronous operation which may change\r\n  // the state of the read buffer, providing enough data when\r\n  // before there was *not* enough.\r\n  //\r\n  // So, the steps are:\r\n  // 1. Figure out what the state of things will be after we do\r\n  // a read from the buffer.\r\n  //\r\n  // 2. If that resulting state will trigger a _read, then call _read.\r\n  // Note that this may be asynchronous, or synchronous.  Yes, it is\r\n  // deeply ugly to write APIs this way, but that still doesn't mean\r\n  // that the Readable class should behave improperly, as streams are\r\n  // designed to be sync/async agnostic.\r\n  // Take note if the _read call is sync or async (ie, if the read call\r\n  // has returned yet), so that we know whether or not it's safe to emit\r\n  // 'readable' etc.\r\n  //\r\n  // 3. Actually pull the requested chunks out of the buffer and return.\r\n\r\n  // if we need a readable event, then we need to do some reading.\r\n  var doRead = state.needReadable;\r\n  debug('need readable', doRead);\r\n\r\n  // if we currently have less than the highWaterMark, then also read some\r\n  if (state.length === 0 || state.length - n < state.highWaterMark) {\r\n    doRead = true;\r\n    debug('length less than watermark', doRead);\r\n  }\r\n\r\n  // however, if we've ended, then there's no point, and if we're already\r\n  // reading, then it's unnecessary.\r\n  if (state.ended || state.reading) {\r\n    doRead = false;\r\n    debug('reading or ended', doRead);\r\n  }\r\n\r\n  if (doRead) {\r\n    debug('do read');\r\n    state.reading = true;\r\n    state.sync = true;\r\n    // if the length is currently zero, then we *need* a readable event.\r\n    if (state.length === 0) state.needReadable = true;\r\n    // call internal read method\r\n    this._read(state.highWaterMark);\r\n    state.sync = false;\r\n  }\r\n\r\n  // If _read pushed data synchronously, then `reading` will be false,\r\n  // and we need to re-evaluate how much data we can return to the user.\r\n  if (doRead && !state.reading) n = howMuchToRead(nOrig, state);\r\n\r\n  var ret;\r\n  if (n > 0) ret = fromList(n, state);else ret = null;\r\n\r\n  if (ret === null) {\r\n    state.needReadable = true;\r\n    n = 0;\r\n  }\r\n\r\n  state.length -= n;\r\n\r\n  // If we have nothing in the buffer, then we want to know\r\n  // as soon as we *do* get something into the buffer.\r\n  if (state.length === 0 && !state.ended) state.needReadable = true;\r\n\r\n  // If we tried to read() past the EOF, then emit end on the next tick.\r\n  if (nOrig !== n && state.ended && state.length === 0) endReadable(this);\r\n\r\n  if (ret !== null) this.emit('data', ret);\r\n\r\n  return ret;\r\n};\r\n\r\nfunction chunkInvalid(state, chunk) {\r\n  var er = null;\r\n  if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {\r\n    er = new TypeError('Invalid non-string/buffer chunk');\r\n  }\r\n  return er;\r\n}\r\n\r\nfunction onEofChunk(stream, state) {\r\n  if (state.ended) return;\r\n  if (state.decoder) {\r\n    var chunk = state.decoder.end();\r\n    if (chunk && chunk.length) {\r\n      state.buffer.push(chunk);\r\n      state.length += state.objectMode ? 1 : chunk.length;\r\n    }\r\n  }\r\n  state.ended = true;\r\n\r\n  // emit 'readable' now to make sure it gets picked up.\r\n  emitReadable(stream);\r\n}\r\n\r\n// Don't emit readable right away in sync mode, because this can trigger\r\n// another read() call => stack overflow.  This way, it might trigger\r\n// a nextTick recursion warning, but that's not so bad.\r\nfunction emitReadable(stream) {\r\n  var state = stream._readableState;\r\n  state.needReadable = false;\r\n  if (!state.emittedReadable) {\r\n    debug('emitReadable', state.flowing);\r\n    state.emittedReadable = true;\r\n    if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream);\r\n  }\r\n}\r\n\r\nfunction emitReadable_(stream) {\r\n  debug('emit readable');\r\n  stream.emit('readable');\r\n  flow(stream);\r\n}\r\n\r\n// at this point, the user has presumably seen the 'readable' event,\r\n// and called read() to consume some data.  that may have triggered\r\n// in turn another _read(n) call, in which case reading = true if\r\n// it's in progress.\r\n// However, if we're not ended, or reading, and the length < hwm,\r\n// then go ahead and try to read some more preemptively.\r\nfunction maybeReadMore(stream, state) {\r\n  if (!state.readingMore) {\r\n    state.readingMore = true;\r\n    processNextTick(maybeReadMore_, stream, state);\r\n  }\r\n}\r\n\r\nfunction maybeReadMore_(stream, state) {\r\n  var len = state.length;\r\n  while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\r\n    debug('maybeReadMore read 0');\r\n    stream.read(0);\r\n    if (len === state.length)\r\n      // didn't get any data, stop spinning.\r\n      break;else len = state.length;\r\n  }\r\n  state.readingMore = false;\r\n}\r\n\r\n// abstract method.  to be overridden in specific implementation classes.\r\n// call cb(er, data) where data is <= n in length.\r\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\r\n// arbitrary, and perhaps not very meaningful.\r\nReadable.prototype._read = function (n) {\r\n  this.emit('error', new Error('not implemented'));\r\n};\r\n\r\nReadable.prototype.pipe = function (dest, pipeOpts) {\r\n  var src = this;\r\n  var state = this._readableState;\r\n\r\n  switch (state.pipesCount) {\r\n    case 0:\r\n      state.pipes = dest;\r\n      break;\r\n    case 1:\r\n      state.pipes = [state.pipes, dest];\r\n      break;\r\n    default:\r\n      state.pipes.push(dest);\r\n      break;\r\n  }\r\n  state.pipesCount += 1;\r\n  debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\r\n\r\n  var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\r\n\r\n  var endFn = doEnd ? onend : cleanup;\r\n  if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn);\r\n\r\n  dest.on('unpipe', onunpipe);\r\n  function onunpipe(readable) {\r\n    debug('onunpipe');\r\n    if (readable === src) {\r\n      cleanup();\r\n    }\r\n  }\r\n\r\n  function onend() {\r\n    debug('onend');\r\n    dest.end();\r\n  }\r\n\r\n  // when the dest drains, it reduces the awaitDrain counter\r\n  // on the source.  This would be more elegant with a .once()\r\n  // handler in flow(), but adding and removing repeatedly is\r\n  // too slow.\r\n  var ondrain = pipeOnDrain(src);\r\n  dest.on('drain', ondrain);\r\n\r\n  var cleanedUp = false;\r\n  function cleanup() {\r\n    debug('cleanup');\r\n    // cleanup event handlers once the pipe is broken\r\n    dest.removeListener('close', onclose);\r\n    dest.removeListener('finish', onfinish);\r\n    dest.removeListener('drain', ondrain);\r\n    dest.removeListener('error', onerror);\r\n    dest.removeListener('unpipe', onunpipe);\r\n    src.removeListener('end', onend);\r\n    src.removeListener('end', cleanup);\r\n    src.removeListener('data', ondata);\r\n\r\n    cleanedUp = true;\r\n\r\n    // if the reader is waiting for a drain event from this\r\n    // specific writer, then it would cause it to never start\r\n    // flowing again.\r\n    // So, if this is awaiting a drain, then we just call it now.\r\n    // If we don't know, then assume that we are waiting for one.\r\n    if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\r\n  }\r\n\r\n  src.on('data', ondata);\r\n  function ondata(chunk) {\r\n    debug('ondata');\r\n    var ret = dest.write(chunk);\r\n    if (false === ret) {\r\n      // If the user unpiped during `dest.write()`, it is possible\r\n      // to get stuck in a permanently paused state if that write\r\n      // also returned false.\r\n      if (state.pipesCount === 1 && state.pipes[0] === dest && src.listenerCount('data') === 1 && !cleanedUp) {\r\n        debug('false write response, pause', src._readableState.awaitDrain);\r\n        src._readableState.awaitDrain++;\r\n      }\r\n      src.pause();\r\n    }\r\n  }\r\n\r\n  // if the dest has an error, then stop piping into it.\r\n  // however, don't suppress the throwing behavior for this.\r\n  function onerror(er) {\r\n    debug('onerror', er);\r\n    unpipe();\r\n    dest.removeListener('error', onerror);\r\n    if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\r\n  }\r\n  // This is a brutally ugly hack to make sure that our error handler\r\n  // is attached before any userland ones.  NEVER DO THIS.\r\n  if (!dest._events || !dest._events.error) dest.on('error', onerror);else if (isArray(dest._events.error)) dest._events.error.unshift(onerror);else dest._events.error = [onerror, dest._events.error];\r\n\r\n  // Both close and finish should trigger unpipe, but only once.\r\n  function onclose() {\r\n    dest.removeListener('finish', onfinish);\r\n    unpipe();\r\n  }\r\n  dest.once('close', onclose);\r\n  function onfinish() {\r\n    debug('onfinish');\r\n    dest.removeListener('close', onclose);\r\n    unpipe();\r\n  }\r\n  dest.once('finish', onfinish);\r\n\r\n  function unpipe() {\r\n    debug('unpipe');\r\n    src.unpipe(dest);\r\n  }\r\n\r\n  // tell the dest that it's being piped to\r\n  dest.emit('pipe', src);\r\n\r\n  // start the flow if it hasn't been started already.\r\n  if (!state.flowing) {\r\n    debug('pipe resume');\r\n    src.resume();\r\n  }\r\n\r\n  return dest;\r\n};\r\n\r\nfunction pipeOnDrain(src) {\r\n  return function () {\r\n    var state = src._readableState;\r\n    debug('pipeOnDrain', state.awaitDrain);\r\n    if (state.awaitDrain) state.awaitDrain--;\r\n    if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\r\n      state.flowing = true;\r\n      flow(src);\r\n    }\r\n  };\r\n}\r\n\r\nReadable.prototype.unpipe = function (dest) {\r\n  var state = this._readableState;\r\n\r\n  // if we're not piping anywhere, then do nothing.\r\n  if (state.pipesCount === 0) return this;\r\n\r\n  // just one destination.  most common case.\r\n  if (state.pipesCount === 1) {\r\n    // passed in one, but it's not the right one.\r\n    if (dest && dest !== state.pipes) return this;\r\n\r\n    if (!dest) dest = state.pipes;\r\n\r\n    // got a match.\r\n    state.pipes = null;\r\n    state.pipesCount = 0;\r\n    state.flowing = false;\r\n    if (dest) dest.emit('unpipe', this);\r\n    return this;\r\n  }\r\n\r\n  // slow case. multiple pipe destinations.\r\n\r\n  if (!dest) {\r\n    // remove all.\r\n    var dests = state.pipes;\r\n    var len = state.pipesCount;\r\n    state.pipes = null;\r\n    state.pipesCount = 0;\r\n    state.flowing = false;\r\n\r\n    for (var _i = 0; _i < len; _i++) {\r\n      dests[_i].emit('unpipe', this);\r\n    }return this;\r\n  }\r\n\r\n  // try to find the right one.\r\n  var i = indexOf(state.pipes, dest);\r\n  if (i === -1) return this;\r\n\r\n  state.pipes.splice(i, 1);\r\n  state.pipesCount -= 1;\r\n  if (state.pipesCount === 1) state.pipes = state.pipes[0];\r\n\r\n  dest.emit('unpipe', this);\r\n\r\n  return this;\r\n};\r\n\r\n// set up data events if they are asked for\r\n// Ensure readable listeners eventually get something\r\nReadable.prototype.on = function (ev, fn) {\r\n  var res = Stream.prototype.on.call(this, ev, fn);\r\n\r\n  // If listening to data, and it has not explicitly been paused,\r\n  // then call resume to start the flow of data on the next tick.\r\n  if (ev === 'data' && false !== this._readableState.flowing) {\r\n    this.resume();\r\n  }\r\n\r\n  if (ev === 'readable' && !this._readableState.endEmitted) {\r\n    var state = this._readableState;\r\n    if (!state.readableListening) {\r\n      state.readableListening = true;\r\n      state.emittedReadable = false;\r\n      state.needReadable = true;\r\n      if (!state.reading) {\r\n        processNextTick(nReadingNextTick, this);\r\n      } else if (state.length) {\r\n        emitReadable(this, state);\r\n      }\r\n    }\r\n  }\r\n\r\n  return res;\r\n};\r\nReadable.prototype.addListener = Readable.prototype.on;\r\n\r\nfunction nReadingNextTick(self) {\r\n  debug('readable nexttick read 0');\r\n  self.read(0);\r\n}\r\n\r\n// pause() and resume() are remnants of the legacy readable stream API\r\n// If the user uses them, then switch into old mode.\r\nReadable.prototype.resume = function () {\r\n  var state = this._readableState;\r\n  if (!state.flowing) {\r\n    debug('resume');\r\n    state.flowing = true;\r\n    resume(this, state);\r\n  }\r\n  return this;\r\n};\r\n\r\nfunction resume(stream, state) {\r\n  if (!state.resumeScheduled) {\r\n    state.resumeScheduled = true;\r\n    processNextTick(resume_, stream, state);\r\n  }\r\n}\r\n\r\nfunction resume_(stream, state) {\r\n  if (!state.reading) {\r\n    debug('resume read 0');\r\n    stream.read(0);\r\n  }\r\n\r\n  state.resumeScheduled = false;\r\n  stream.emit('resume');\r\n  flow(stream);\r\n  if (state.flowing && !state.reading) stream.read(0);\r\n}\r\n\r\nReadable.prototype.pause = function () {\r\n  debug('call pause flowing=%j', this._readableState.flowing);\r\n  if (false !== this._readableState.flowing) {\r\n    debug('pause');\r\n    this._readableState.flowing = false;\r\n    this.emit('pause');\r\n  }\r\n  return this;\r\n};\r\n\r\nfunction flow(stream) {\r\n  var state = stream._readableState;\r\n  debug('flow', state.flowing);\r\n  if (state.flowing) {\r\n    do {\r\n      var chunk = stream.read();\r\n    } while (null !== chunk && state.flowing);\r\n  }\r\n}\r\n\r\n// wrap an old-style stream as the async data source.\r\n// This is *not* part of the readable stream interface.\r\n// It is an ugly unfortunate mess of history.\r\nReadable.prototype.wrap = function (stream) {\r\n  var state = this._readableState;\r\n  var paused = false;\r\n\r\n  var self = this;\r\n  stream.on('end', function () {\r\n    debug('wrapped end');\r\n    if (state.decoder && !state.ended) {\r\n      var chunk = state.decoder.end();\r\n      if (chunk && chunk.length) self.push(chunk);\r\n    }\r\n\r\n    self.push(null);\r\n  });\r\n\r\n  stream.on('data', function (chunk) {\r\n    debug('wrapped data');\r\n    if (state.decoder) chunk = state.decoder.write(chunk);\r\n\r\n    // don't skip over falsy values in objectMode\r\n    if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\r\n\r\n    var ret = self.push(chunk);\r\n    if (!ret) {\r\n      paused = true;\r\n      stream.pause();\r\n    }\r\n  });\r\n\r\n  // proxy all the other methods.\r\n  // important when wrapping filters and duplexes.\r\n  for (var i in stream) {\r\n    if (this[i] === undefined && typeof stream[i] === 'function') {\r\n      this[i] = function (method) {\r\n        return function () {\r\n          return stream[method].apply(stream, arguments);\r\n        };\r\n      }(i);\r\n    }\r\n  }\r\n\r\n  // proxy certain important events.\r\n  var events = ['error', 'close', 'destroy', 'pause', 'resume'];\r\n  forEach(events, function (ev) {\r\n    stream.on(ev, self.emit.bind(self, ev));\r\n  });\r\n\r\n  // when we try to consume some more bytes, simply unpause the\r\n  // underlying stream.\r\n  self._read = function (n) {\r\n    debug('wrapped _read', n);\r\n    if (paused) {\r\n      paused = false;\r\n      stream.resume();\r\n    }\r\n  };\r\n\r\n  return self;\r\n};\r\n\r\n// exposed for testing purposes only.\r\nReadable._fromList = fromList;\r\n\r\n// Pluck off n bytes from an array of buffers.\r\n// Length is the combined lengths of all the buffers in the list.\r\nfunction fromList(n, state) {\r\n  var list = state.buffer;\r\n  var length = state.length;\r\n  var stringMode = !!state.decoder;\r\n  var objectMode = !!state.objectMode;\r\n  var ret;\r\n\r\n  // nothing in the list, definitely empty.\r\n  if (list.length === 0) return null;\r\n\r\n  if (length === 0) ret = null;else if (objectMode) ret = list.shift();else if (!n || n >= length) {\r\n    // read it all, truncate the array.\r\n    if (stringMode) ret = list.join('');else if (list.length === 1) ret = list[0];else ret = Buffer.concat(list, length);\r\n    list.length = 0;\r\n  } else {\r\n    // read just some of it.\r\n    if (n < list[0].length) {\r\n      // just take a part of the first list item.\r\n      // slice is the same for buffers and strings.\r\n      var buf = list[0];\r\n      ret = buf.slice(0, n);\r\n      list[0] = buf.slice(n);\r\n    } else if (n === list[0].length) {\r\n      // first list is a perfect match\r\n      ret = list.shift();\r\n    } else {\r\n      // complex case.\r\n      // we have enough to cover it, but it spans past the first buffer.\r\n      if (stringMode) ret = '';else ret = new Buffer(n);\r\n\r\n      var c = 0;\r\n      for (var i = 0, l = list.length; i < l && c < n; i++) {\r\n        var buf = list[0];\r\n        var cpy = Math.min(n - c, buf.length);\r\n\r\n        if (stringMode) ret += buf.slice(0, cpy);else buf.copy(ret, c, 0, cpy);\r\n\r\n        if (cpy < buf.length) list[0] = buf.slice(cpy);else list.shift();\r\n\r\n        c += cpy;\r\n      }\r\n    }\r\n  }\r\n\r\n  return ret;\r\n}\r\n\r\nfunction endReadable(stream) {\r\n  var state = stream._readableState;\r\n\r\n  // If we get here before consuming all the bytes, then that is a\r\n  // bug in node.  Should never happen.\r\n  if (state.length > 0) throw new Error('endReadable called on non-empty stream');\r\n\r\n  if (!state.endEmitted) {\r\n    state.ended = true;\r\n    processNextTick(endReadableNT, state, stream);\r\n  }\r\n}\r\n\r\nfunction endReadableNT(state, stream) {\r\n  // Check that we didn't get one last unshift.\r\n  if (!state.endEmitted && state.length === 0) {\r\n    state.endEmitted = true;\r\n    stream.readable = false;\r\n    stream.emit('end');\r\n  }\r\n}\r\n\r\nfunction forEach(xs, f) {\r\n  for (var i = 0, l = xs.length; i < l; i++) {\r\n    f(xs[i], i);\r\n  }\r\n}\r\n\r\nfunction indexOf(xs, x) {\r\n  for (var i = 0, l = xs.length; i < l; i++) {\r\n    if (xs[i] === x) return i;\r\n  }\r\n  return -1;\r\n}\r\n}).call(this,require('_process'))\r\n},{\"./_stream_duplex\":77,\"_process\":72,\"buffer\":56,\"core-util-is\":58,\"events\":59,\"inherits\":64,\"isarray\":66,\"process-nextick-args\":71,\"string_decoder/\":109,\"util\":52}],80:[function(require,module,exports){\r\n// a transform stream is a readable/writable stream where you do\r\n// something with the data.  Sometimes it's called a \"filter\",\r\n// but that's not a great name for it, since that implies a thing where\r\n// some bits pass through, and others are simply ignored.  (That would\r\n// be a valid example of a transform, of course.)\r\n//\r\n// While the output is causally related to the input, it's not a\r\n// necessarily symmetric or synchronous transformation.  For example,\r\n// a zlib stream might take multiple plain-text writes(), and then\r\n// emit a single compressed chunk some time in the future.\r\n//\r\n// Here's how this works:\r\n//\r\n// The Transform stream has all the aspects of the readable and writable\r\n// stream classes.  When you write(chunk), that calls _write(chunk,cb)\r\n// internally, and returns false if there's a lot of pending writes\r\n// buffered up.  When you call read(), that calls _read(n) until\r\n// there's enough pending readable data buffered up.\r\n//\r\n// In a transform stream, the written data is placed in a buffer.  When\r\n// _read(n) is called, it transforms the queued up data, calling the\r\n// buffered _write cb's as it consumes chunks.  If consuming a single\r\n// written chunk would result in multiple output chunks, then the first\r\n// outputted bit calls the readcb, and subsequent chunks just go into\r\n// the read buffer, and will cause it to emit 'readable' if necessary.\r\n//\r\n// This way, back-pressure is actually determined by the reading side,\r\n// since _read has to be called to start processing a new chunk.  However,\r\n// a pathological inflate type of transform can cause excessive buffering\r\n// here.  For example, imagine a stream where every byte of input is\r\n// interpreted as an integer from 0-255, and then results in that many\r\n// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in\r\n// 1kb of data being output.  In this case, you could write a very small\r\n// amount of input, and end up with a very large amount of output.  In\r\n// such a pathological inflating mechanism, there'd be no way to tell\r\n// the system to stop doing the transform.  A single 4MB write could\r\n// cause the system to run out of memory.\r\n//\r\n// However, even in such a pathological case, only a single written chunk\r\n// would be consumed, and then the rest would wait (un-transformed) until\r\n// the results of the previous transformed chunk were consumed.\r\n\r\n'use strict';\r\n\r\nmodule.exports = Transform;\r\n\r\nvar Duplex = require('./_stream_duplex');\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\nutil.inherits(Transform, Duplex);\r\n\r\nfunction TransformState(stream) {\r\n  this.afterTransform = function (er, data) {\r\n    return afterTransform(stream, er, data);\r\n  };\r\n\r\n  this.needTransform = false;\r\n  this.transforming = false;\r\n  this.writecb = null;\r\n  this.writechunk = null;\r\n  this.writeencoding = null;\r\n}\r\n\r\nfunction afterTransform(stream, er, data) {\r\n  var ts = stream._transformState;\r\n  ts.transforming = false;\r\n\r\n  var cb = ts.writecb;\r\n\r\n  if (!cb) return stream.emit('error', new Error('no writecb in Transform class'));\r\n\r\n  ts.writechunk = null;\r\n  ts.writecb = null;\r\n\r\n  if (data !== null && data !== undefined) stream.push(data);\r\n\r\n  cb(er);\r\n\r\n  var rs = stream._readableState;\r\n  rs.reading = false;\r\n  if (rs.needReadable || rs.length < rs.highWaterMark) {\r\n    stream._read(rs.highWaterMark);\r\n  }\r\n}\r\n\r\nfunction Transform(options) {\r\n  if (!(this instanceof Transform)) return new Transform(options);\r\n\r\n  Duplex.call(this, options);\r\n\r\n  this._transformState = new TransformState(this);\r\n\r\n  // when the writable side finishes, then flush out anything remaining.\r\n  var stream = this;\r\n\r\n  // start out asking for a readable event once data is transformed.\r\n  this._readableState.needReadable = true;\r\n\r\n  // we have implemented the _read method, and done the other things\r\n  // that Readable wants before the first _read call, so unset the\r\n  // sync guard flag.\r\n  this._readableState.sync = false;\r\n\r\n  if (options) {\r\n    if (typeof options.transform === 'function') this._transform = options.transform;\r\n\r\n    if (typeof options.flush === 'function') this._flush = options.flush;\r\n  }\r\n\r\n  this.once('prefinish', function () {\r\n    if (typeof this._flush === 'function') this._flush(function (er) {\r\n      done(stream, er);\r\n    });else done(stream);\r\n  });\r\n}\r\n\r\nTransform.prototype.push = function (chunk, encoding) {\r\n  this._transformState.needTransform = false;\r\n  return Duplex.prototype.push.call(this, chunk, encoding);\r\n};\r\n\r\n// This is the part where you do stuff!\r\n// override this function in implementation classes.\r\n// 'chunk' is an input chunk.\r\n//\r\n// Call `push(newChunk)` to pass along transformed output\r\n// to the readable side.  You may call 'push' zero or more times.\r\n//\r\n// Call `cb(err)` when you are done with this chunk.  If you pass\r\n// an error, then that'll put the hurt on the whole operation.  If you\r\n// never call cb(), then you'll never get another chunk.\r\nTransform.prototype._transform = function (chunk, encoding, cb) {\r\n  throw new Error('not implemented');\r\n};\r\n\r\nTransform.prototype._write = function (chunk, encoding, cb) {\r\n  var ts = this._transformState;\r\n  ts.writecb = cb;\r\n  ts.writechunk = chunk;\r\n  ts.writeencoding = encoding;\r\n  if (!ts.transforming) {\r\n    var rs = this._readableState;\r\n    if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\r\n  }\r\n};\r\n\r\n// Doesn't matter what the args are here.\r\n// _transform does all the work.\r\n// That we got here means that the readable side wants more data.\r\nTransform.prototype._read = function (n) {\r\n  var ts = this._transformState;\r\n\r\n  if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\r\n    ts.transforming = true;\r\n    this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\r\n  } else {\r\n    // mark that we need a transform, so that any data that comes in\r\n    // will get processed, now that we've asked for it.\r\n    ts.needTransform = true;\r\n  }\r\n};\r\n\r\nfunction done(stream, er) {\r\n  if (er) return stream.emit('error', er);\r\n\r\n  // if there's nothing in the write buffer, then that means\r\n  // that nothing more will ever be provided\r\n  var ws = stream._writableState;\r\n  var ts = stream._transformState;\r\n\r\n  if (ws.length) throw new Error('calling transform done when ws.length != 0');\r\n\r\n  if (ts.transforming) throw new Error('calling transform done when still transforming');\r\n\r\n  return stream.push(null);\r\n}\r\n},{\"./_stream_duplex\":77,\"core-util-is\":58,\"inherits\":64}],81:[function(require,module,exports){\r\n(function (process,setImmediate){\r\n// A bit simpler than readable streams.\r\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\r\n// the drain event emission and buffering.\r\n\r\n'use strict';\r\n\r\nmodule.exports = Writable;\r\n\r\n/*<replacement>*/\r\nvar processNextTick = require('process-nextick-args');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Buffer = require('buffer').Buffer;\r\n/*</replacement>*/\r\n\r\nWritable.WritableState = WritableState;\r\n\r\n/*<replacement>*/\r\nvar util = require('core-util-is');\r\nutil.inherits = require('inherits');\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar internalUtil = {\r\n  deprecate: require('util-deprecate')\r\n};\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\nvar Stream;\r\n(function () {\r\n  try {\r\n    Stream = require('st' + 'ream');\r\n  } catch (_) {} finally {\r\n    if (!Stream) Stream = require('events').EventEmitter;\r\n  }\r\n})();\r\n/*</replacement>*/\r\n\r\nvar Buffer = require('buffer').Buffer;\r\n\r\nutil.inherits(Writable, Stream);\r\n\r\nfunction nop() {}\r\n\r\nfunction WriteReq(chunk, encoding, cb) {\r\n  this.chunk = chunk;\r\n  this.encoding = encoding;\r\n  this.callback = cb;\r\n  this.next = null;\r\n}\r\n\r\nvar Duplex;\r\nfunction WritableState(options, stream) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  options = options || {};\r\n\r\n  // object stream flag to indicate whether or not this stream\r\n  // contains buffers or objects.\r\n  this.objectMode = !!options.objectMode;\r\n\r\n  if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\r\n\r\n  // the point at which write() starts returning false\r\n  // Note: 0 is a valid value, means that we always return false if\r\n  // the entire buffer is not flushed immediately on write()\r\n  var hwm = options.highWaterMark;\r\n  var defaultHwm = this.objectMode ? 16 : 16 * 1024;\r\n  this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\r\n\r\n  // cast to ints.\r\n  this.highWaterMark = ~ ~this.highWaterMark;\r\n\r\n  this.needDrain = false;\r\n  // at the start of calling end()\r\n  this.ending = false;\r\n  // when end() has been called, and returned\r\n  this.ended = false;\r\n  // when 'finish' is emitted\r\n  this.finished = false;\r\n\r\n  // should we decode strings into buffers before passing to _write?\r\n  // this is here so that some node-core streams can optimize string\r\n  // handling at a lower level.\r\n  var noDecode = options.decodeStrings === false;\r\n  this.decodeStrings = !noDecode;\r\n\r\n  // Crypto is kind of old and crusty.  Historically, its default string\r\n  // encoding is 'binary' so we have to make this configurable.\r\n  // Everything else in the universe uses 'utf8', though.\r\n  this.defaultEncoding = options.defaultEncoding || 'utf8';\r\n\r\n  // not an actual buffer we keep track of, but a measurement\r\n  // of how much we're waiting to get pushed to some underlying\r\n  // socket or file.\r\n  this.length = 0;\r\n\r\n  // a flag to see when we're in the middle of a write.\r\n  this.writing = false;\r\n\r\n  // when true all writes will be buffered until .uncork() call\r\n  this.corked = 0;\r\n\r\n  // a flag to be able to tell if the onwrite cb is called immediately,\r\n  // or on a later tick.  We set this to true at first, because any\r\n  // actions that shouldn't happen until \"later\" should generally also\r\n  // not happen before the first write call.\r\n  this.sync = true;\r\n\r\n  // a flag to know if we're processing previously buffered items, which\r\n  // may call the _write() callback in the same tick, so that we don't\r\n  // end up in an overlapped onwrite situation.\r\n  this.bufferProcessing = false;\r\n\r\n  // the callback that's passed to _write(chunk,cb)\r\n  this.onwrite = function (er) {\r\n    onwrite(stream, er);\r\n  };\r\n\r\n  // the callback that the user supplies to write(chunk,encoding,cb)\r\n  this.writecb = null;\r\n\r\n  // the amount that is being written when _write is called.\r\n  this.writelen = 0;\r\n\r\n  this.bufferedRequest = null;\r\n  this.lastBufferedRequest = null;\r\n\r\n  // number of pending user-supplied write callbacks\r\n  // this must be 0 before 'finish' can be emitted\r\n  this.pendingcb = 0;\r\n\r\n  // emit prefinish if the only thing we're waiting for is _write cbs\r\n  // This is relevant for synchronous Transform streams\r\n  this.prefinished = false;\r\n\r\n  // True if the error was already emitted and should not be thrown again\r\n  this.errorEmitted = false;\r\n\r\n  // count buffered requests\r\n  this.bufferedRequestCount = 0;\r\n\r\n  // create the two objects needed to store the corked requests\r\n  // they are not a linked list, as no new elements are inserted in there\r\n  this.corkedRequestsFree = new CorkedRequest(this);\r\n  this.corkedRequestsFree.next = new CorkedRequest(this);\r\n}\r\n\r\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\r\n  var current = this.bufferedRequest;\r\n  var out = [];\r\n  while (current) {\r\n    out.push(current);\r\n    current = current.next;\r\n  }\r\n  return out;\r\n};\r\n\r\n(function () {\r\n  try {\r\n    Object.defineProperty(WritableState.prototype, 'buffer', {\r\n      get: internalUtil.deprecate(function () {\r\n        return this.getBuffer();\r\n      }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.')\r\n    });\r\n  } catch (_) {}\r\n})();\r\n\r\nvar Duplex;\r\nfunction Writable(options) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n\r\n  // Writable ctor is applied to Duplexes, though they're not\r\n  // instanceof Writable, they're instanceof Readable.\r\n  if (!(this instanceof Writable) && !(this instanceof Duplex)) return new Writable(options);\r\n\r\n  this._writableState = new WritableState(options, this);\r\n\r\n  // legacy.\r\n  this.writable = true;\r\n\r\n  if (options) {\r\n    if (typeof options.write === 'function') this._write = options.write;\r\n\r\n    if (typeof options.writev === 'function') this._writev = options.writev;\r\n  }\r\n\r\n  Stream.call(this);\r\n}\r\n\r\n// Otherwise people can pipe Writable streams, which is just wrong.\r\nWritable.prototype.pipe = function () {\r\n  this.emit('error', new Error('Cannot pipe. Not readable.'));\r\n};\r\n\r\nfunction writeAfterEnd(stream, cb) {\r\n  var er = new Error('write after end');\r\n  // TODO: defer error events consistently everywhere, not just the cb\r\n  stream.emit('error', er);\r\n  processNextTick(cb, er);\r\n}\r\n\r\n// If we get something that is not a buffer, string, null, or undefined,\r\n// and we're not in objectMode, then that's an error.\r\n// Otherwise stream chunks are all considered to be of length=1, and the\r\n// watermarks determine how many objects to keep in the buffer, rather than\r\n// how many bytes or characters.\r\nfunction validChunk(stream, state, chunk, cb) {\r\n  var valid = true;\r\n\r\n  if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {\r\n    var er = new TypeError('Invalid non-string/buffer chunk');\r\n    stream.emit('error', er);\r\n    processNextTick(cb, er);\r\n    valid = false;\r\n  }\r\n  return valid;\r\n}\r\n\r\nWritable.prototype.write = function (chunk, encoding, cb) {\r\n  var state = this._writableState;\r\n  var ret = false;\r\n\r\n  if (typeof encoding === 'function') {\r\n    cb = encoding;\r\n    encoding = null;\r\n  }\r\n\r\n  if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\r\n\r\n  if (typeof cb !== 'function') cb = nop;\r\n\r\n  if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) {\r\n    state.pendingcb++;\r\n    ret = writeOrBuffer(this, state, chunk, encoding, cb);\r\n  }\r\n\r\n  return ret;\r\n};\r\n\r\nWritable.prototype.cork = function () {\r\n  var state = this._writableState;\r\n\r\n  state.corked++;\r\n};\r\n\r\nWritable.prototype.uncork = function () {\r\n  var state = this._writableState;\r\n\r\n  if (state.corked) {\r\n    state.corked--;\r\n\r\n    if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\r\n  }\r\n};\r\n\r\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\r\n  // node::ParseEncoding() requires lower case.\r\n  if (typeof encoding === 'string') encoding = encoding.toLowerCase();\r\n  if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\r\n  this._writableState.defaultEncoding = encoding;\r\n};\r\n\r\nfunction decodeChunk(state, chunk, encoding) {\r\n  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\r\n    chunk = new Buffer(chunk, encoding);\r\n  }\r\n  return chunk;\r\n}\r\n\r\n// if we're already writing something, then just put this\r\n// in the queue, and wait our turn.  Otherwise, call _write\r\n// If we return false, then we need a drain event, so set that flag.\r\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\r\n  chunk = decodeChunk(state, chunk, encoding);\r\n\r\n  if (Buffer.isBuffer(chunk)) encoding = 'buffer';\r\n  var len = state.objectMode ? 1 : chunk.length;\r\n\r\n  state.length += len;\r\n\r\n  var ret = state.length < state.highWaterMark;\r\n  // we must ensure that previous needDrain will not be reset to false.\r\n  if (!ret) state.needDrain = true;\r\n\r\n  if (state.writing || state.corked) {\r\n    var last = state.lastBufferedRequest;\r\n    state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\r\n    if (last) {\r\n      last.next = state.lastBufferedRequest;\r\n    } else {\r\n      state.bufferedRequest = state.lastBufferedRequest;\r\n    }\r\n    state.bufferedRequestCount += 1;\r\n  } else {\r\n    doWrite(stream, state, false, len, chunk, encoding, cb);\r\n  }\r\n\r\n  return ret;\r\n}\r\n\r\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\r\n  state.writelen = len;\r\n  state.writecb = cb;\r\n  state.writing = true;\r\n  state.sync = true;\r\n  if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\r\n  state.sync = false;\r\n}\r\n\r\nfunction onwriteError(stream, state, sync, er, cb) {\r\n  --state.pendingcb;\r\n  if (sync) processNextTick(cb, er);else cb(er);\r\n\r\n  stream._writableState.errorEmitted = true;\r\n  stream.emit('error', er);\r\n}\r\n\r\nfunction onwriteStateUpdate(state) {\r\n  state.writing = false;\r\n  state.writecb = null;\r\n  state.length -= state.writelen;\r\n  state.writelen = 0;\r\n}\r\n\r\nfunction onwrite(stream, er) {\r\n  var state = stream._writableState;\r\n  var sync = state.sync;\r\n  var cb = state.writecb;\r\n\r\n  onwriteStateUpdate(state);\r\n\r\n  if (er) onwriteError(stream, state, sync, er, cb);else {\r\n    // Check if we're actually ready to finish, but don't emit yet\r\n    var finished = needFinish(state);\r\n\r\n    if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\r\n      clearBuffer(stream, state);\r\n    }\r\n\r\n    if (sync) {\r\n      /*<replacement>*/\r\n      asyncWrite(afterWrite, stream, state, finished, cb);\r\n      /*</replacement>*/\r\n    } else {\r\n        afterWrite(stream, state, finished, cb);\r\n      }\r\n  }\r\n}\r\n\r\nfunction afterWrite(stream, state, finished, cb) {\r\n  if (!finished) onwriteDrain(stream, state);\r\n  state.pendingcb--;\r\n  cb();\r\n  finishMaybe(stream, state);\r\n}\r\n\r\n// Must force callback to be called on nextTick, so that we don't\r\n// emit 'drain' before the write() consumer gets the 'false' return\r\n// value, and has a chance to attach a 'drain' listener.\r\nfunction onwriteDrain(stream, state) {\r\n  if (state.length === 0 && state.needDrain) {\r\n    state.needDrain = false;\r\n    stream.emit('drain');\r\n  }\r\n}\r\n\r\n// if there's something in the buffer waiting, then process it\r\nfunction clearBuffer(stream, state) {\r\n  state.bufferProcessing = true;\r\n  var entry = state.bufferedRequest;\r\n\r\n  if (stream._writev && entry && entry.next) {\r\n    // Fast case, write everything using _writev()\r\n    var l = state.bufferedRequestCount;\r\n    var buffer = new Array(l);\r\n    var holder = state.corkedRequestsFree;\r\n    holder.entry = entry;\r\n\r\n    var count = 0;\r\n    while (entry) {\r\n      buffer[count] = entry;\r\n      entry = entry.next;\r\n      count += 1;\r\n    }\r\n\r\n    doWrite(stream, state, true, state.length, buffer, '', holder.finish);\r\n\r\n    // doWrite is always async, defer these to save a bit of time\r\n    // as the hot path ends with doWrite\r\n    state.pendingcb++;\r\n    state.lastBufferedRequest = null;\r\n    state.corkedRequestsFree = holder.next;\r\n    holder.next = null;\r\n  } else {\r\n    // Slow case, write chunks one-by-one\r\n    while (entry) {\r\n      var chunk = entry.chunk;\r\n      var encoding = entry.encoding;\r\n      var cb = entry.callback;\r\n      var len = state.objectMode ? 1 : chunk.length;\r\n\r\n      doWrite(stream, state, false, len, chunk, encoding, cb);\r\n      entry = entry.next;\r\n      // if we didn't call the onwrite immediately, then\r\n      // it means that we need to wait until it does.\r\n      // also, that means that the chunk and cb are currently\r\n      // being processed, so move the buffer counter past them.\r\n      if (state.writing) {\r\n        break;\r\n      }\r\n    }\r\n\r\n    if (entry === null) state.lastBufferedRequest = null;\r\n  }\r\n\r\n  state.bufferedRequestCount = 0;\r\n  state.bufferedRequest = entry;\r\n  state.bufferProcessing = false;\r\n}\r\n\r\nWritable.prototype._write = function (chunk, encoding, cb) {\r\n  cb(new Error('not implemented'));\r\n};\r\n\r\nWritable.prototype._writev = null;\r\n\r\nWritable.prototype.end = function (chunk, encoding, cb) {\r\n  var state = this._writableState;\r\n\r\n  if (typeof chunk === 'function') {\r\n    cb = chunk;\r\n    chunk = null;\r\n    encoding = null;\r\n  } else if (typeof encoding === 'function') {\r\n    cb = encoding;\r\n    encoding = null;\r\n  }\r\n\r\n  if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\r\n\r\n  // .end() fully uncorks\r\n  if (state.corked) {\r\n    state.corked = 1;\r\n    this.uncork();\r\n  }\r\n\r\n  // ignore unnecessary end() calls.\r\n  if (!state.ending && !state.finished) endWritable(this, state, cb);\r\n};\r\n\r\nfunction needFinish(state) {\r\n  return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\r\n}\r\n\r\nfunction prefinish(stream, state) {\r\n  if (!state.prefinished) {\r\n    state.prefinished = true;\r\n    stream.emit('prefinish');\r\n  }\r\n}\r\n\r\nfunction finishMaybe(stream, state) {\r\n  var need = needFinish(state);\r\n  if (need) {\r\n    if (state.pendingcb === 0) {\r\n      prefinish(stream, state);\r\n      state.finished = true;\r\n      stream.emit('finish');\r\n    } else {\r\n      prefinish(stream, state);\r\n    }\r\n  }\r\n  return need;\r\n}\r\n\r\nfunction endWritable(stream, state, cb) {\r\n  state.ending = true;\r\n  finishMaybe(stream, state);\r\n  if (cb) {\r\n    if (state.finished) processNextTick(cb);else stream.once('finish', cb);\r\n  }\r\n  state.ended = true;\r\n  stream.writable = false;\r\n}\r\n\r\n// It seems a linked list but it is not\r\n// there will be only 2 of these for each stream\r\nfunction CorkedRequest(state) {\r\n  var _this = this;\r\n\r\n  this.next = null;\r\n  this.entry = null;\r\n\r\n  this.finish = function (err) {\r\n    var entry = _this.entry;\r\n    _this.entry = null;\r\n    while (entry) {\r\n      var cb = entry.callback;\r\n      state.pendingcb--;\r\n      cb(err);\r\n      entry = entry.next;\r\n    }\r\n    if (state.corkedRequestsFree) {\r\n      state.corkedRequestsFree.next = _this;\r\n    } else {\r\n      state.corkedRequestsFree = _this;\r\n    }\r\n  };\r\n}\r\n}).call(this,require('_process'),require(\"timers\").setImmediate)\r\n},{\"./_stream_duplex\":77,\"_process\":72,\"buffer\":56,\"core-util-is\":58,\"events\":59,\"inherits\":64,\"process-nextick-args\":71,\"timers\":110,\"util-deprecate\":114}],82:[function(require,module,exports){\r\nmodule.exports = require(\"./lib/_stream_passthrough.js\")\r\n\r\n},{\"./lib/_stream_passthrough.js\":78}],83:[function(require,module,exports){\r\nvar Stream = (function (){\r\n  try {\r\n    return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify\r\n  } catch(_){}\r\n}());\r\nexports = module.exports = require('./lib/_stream_readable.js');\r\nexports.Stream = Stream || exports;\r\nexports.Readable = exports;\r\nexports.Writable = require('./lib/_stream_writable.js');\r\nexports.Duplex = require('./lib/_stream_duplex.js');\r\nexports.Transform = require('./lib/_stream_transform.js');\r\nexports.PassThrough = require('./lib/_stream_passthrough.js');\r\n\r\n},{\"./lib/_stream_duplex.js\":77,\"./lib/_stream_passthrough.js\":78,\"./lib/_stream_readable.js\":79,\"./lib/_stream_transform.js\":80,\"./lib/_stream_writable.js\":81}],84:[function(require,module,exports){\r\nmodule.exports = require(\"./lib/_stream_transform.js\")\r\n\r\n},{\"./lib/_stream_transform.js\":80}],85:[function(require,module,exports){\r\nmodule.exports = require(\"./lib/_stream_writable.js\")\r\n\r\n},{\"./lib/_stream_writable.js\":81}],86:[function(require,module,exports){\r\n/* eslint-disable node/no-deprecated-api */\r\nvar buffer = require('buffer')\r\nvar Buffer = buffer.Buffer\r\n\r\n// alternative to using Object.keys for old browsers\r\nfunction copyProps (src, dst) {\r\n  for (var key in src) {\r\n    dst[key] = src[key]\r\n  }\r\n}\r\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\r\n  module.exports = buffer\r\n} else {\r\n  // Copy properties from require('buffer')\r\n  copyProps(buffer, exports)\r\n  exports.Buffer = SafeBuffer\r\n}\r\n\r\nfunction SafeBuffer (arg, encodingOrOffset, length) {\r\n  return Buffer(arg, encodingOrOffset, length)\r\n}\r\n\r\nSafeBuffer.prototype = Object.create(Buffer.prototype)\r\n\r\n// Copy static methods from Buffer\r\ncopyProps(Buffer, SafeBuffer)\r\n\r\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\r\n  if (typeof arg === 'number') {\r\n    throw new TypeError('Argument must not be a number')\r\n  }\r\n  return Buffer(arg, encodingOrOffset, length)\r\n}\r\n\r\nSafeBuffer.alloc = function (size, fill, encoding) {\r\n  if (typeof size !== 'number') {\r\n    throw new TypeError('Argument must be a number')\r\n  }\r\n  var buf = Buffer(size)\r\n  if (fill !== undefined) {\r\n    if (typeof encoding === 'string') {\r\n      buf.fill(fill, encoding)\r\n    } else {\r\n      buf.fill(fill)\r\n    }\r\n  } else {\r\n    buf.fill(0)\r\n  }\r\n  return buf\r\n}\r\n\r\nSafeBuffer.allocUnsafe = function (size) {\r\n  if (typeof size !== 'number') {\r\n    throw new TypeError('Argument must be a number')\r\n  }\r\n  return Buffer(size)\r\n}\r\n\r\nSafeBuffer.allocUnsafeSlow = function (size) {\r\n  if (typeof size !== 'number') {\r\n    throw new TypeError('Argument must be a number')\r\n  }\r\n  return buffer.SlowBuffer(size)\r\n}\r\n\r\n},{\"buffer\":56}],87:[function(require,module,exports){\r\n(function (Buffer){\r\n// wrapper for non-node envs\r\n;(function (sax) {\r\n\r\nsax.parser = function (strict, opt) { return new SAXParser(strict, opt) }\r\nsax.SAXParser = SAXParser\r\nsax.SAXStream = SAXStream\r\nsax.createStream = createStream\r\n\r\n// When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns.\r\n// When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)),\r\n// since that's the earliest that a buffer overrun could occur.  This way, checks are\r\n// as rare as required, but as often as necessary to ensure never crossing this bound.\r\n// Furthermore, buffers are only tested at most once per write(), so passing a very\r\n// large string into write() might have undesirable effects, but this is manageable by\r\n// the caller, so it is assumed to be safe.  Thus, a call to write() may, in the extreme\r\n// edge case, result in creating at most one complete copy of the string passed in.\r\n// Set to Infinity to have unlimited buffers.\r\nsax.MAX_BUFFER_LENGTH = 64 * 1024\r\n\r\nvar buffers = [\r\n  \"comment\", \"sgmlDecl\", \"textNode\", \"tagName\", \"doctype\",\r\n  \"procInstName\", \"procInstBody\", \"entity\", \"attribName\",\r\n  \"attribValue\", \"cdata\", \"script\"\r\n]\r\n\r\nsax.EVENTS = // for discoverability.\r\n  [ \"text\"\r\n  , \"processinginstruction\"\r\n  , \"sgmldeclaration\"\r\n  , \"doctype\"\r\n  , \"comment\"\r\n  , \"attribute\"\r\n  , \"opentag\"\r\n  , \"closetag\"\r\n  , \"opencdata\"\r\n  , \"cdata\"\r\n  , \"closecdata\"\r\n  , \"error\"\r\n  , \"end\"\r\n  , \"ready\"\r\n  , \"script\"\r\n  , \"opennamespace\"\r\n  , \"closenamespace\"\r\n  ]\r\n\r\nfunction SAXParser (strict, opt) {\r\n  if (!(this instanceof SAXParser)) return new SAXParser(strict, opt)\r\n\r\n  var parser = this\r\n  clearBuffers(parser)\r\n  parser.q = parser.c = \"\"\r\n  parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH\r\n  parser.opt = opt || {}\r\n  parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags\r\n  parser.looseCase = parser.opt.lowercase ? \"toLowerCase\" : \"toUpperCase\"\r\n  parser.tags = []\r\n  parser.closed = parser.closedRoot = parser.sawRoot = false\r\n  parser.tag = parser.error = null\r\n  parser.strict = !!strict\r\n  parser.noscript = !!(strict || parser.opt.noscript)\r\n  parser.state = S.BEGIN\r\n  parser.ENTITIES = Object.create(sax.ENTITIES)\r\n  parser.attribList = []\r\n\r\n  // namespaces form a prototype chain.\r\n  // it always points at the current tag,\r\n  // which protos to its parent tag.\r\n  if (parser.opt.xmlns) parser.ns = Object.create(rootNS)\r\n\r\n  // mostly just for error reporting\r\n  parser.trackPosition = parser.opt.position !== false\r\n  if (parser.trackPosition) {\r\n    parser.position = parser.line = parser.column = 0\r\n  }\r\n  emit(parser, \"onready\")\r\n}\r\n\r\nif (!Object.create) Object.create = function (o) {\r\n  function f () { this.__proto__ = o }\r\n  f.prototype = o\r\n  return new f\r\n}\r\n\r\nif (!Object.getPrototypeOf) Object.getPrototypeOf = function (o) {\r\n  return o.__proto__\r\n}\r\n\r\nif (!Object.keys) Object.keys = function (o) {\r\n  var a = []\r\n  for (var i in o) if (o.hasOwnProperty(i)) a.push(i)\r\n  return a\r\n}\r\n\r\nfunction checkBufferLength (parser) {\r\n  var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10)\r\n    , maxActual = 0\r\n  for (var i = 0, l = buffers.length; i < l; i ++) {\r\n    var len = parser[buffers[i]].length\r\n    if (len > maxAllowed) {\r\n      // Text/cdata nodes can get big, and since they're buffered,\r\n      // we can get here under normal conditions.\r\n      // Avoid issues by emitting the text node now,\r\n      // so at least it won't get any bigger.\r\n      switch (buffers[i]) {\r\n        case \"textNode\":\r\n          closeText(parser)\r\n        break\r\n\r\n        case \"cdata\":\r\n          emitNode(parser, \"oncdata\", parser.cdata)\r\n          parser.cdata = \"\"\r\n        break\r\n\r\n        case \"script\":\r\n          emitNode(parser, \"onscript\", parser.script)\r\n          parser.script = \"\"\r\n        break\r\n\r\n        default:\r\n          error(parser, \"Max buffer length exceeded: \"+buffers[i])\r\n      }\r\n    }\r\n    maxActual = Math.max(maxActual, len)\r\n  }\r\n  // schedule the next check for the earliest possible buffer overrun.\r\n  parser.bufferCheckPosition = (sax.MAX_BUFFER_LENGTH - maxActual)\r\n                             + parser.position\r\n}\r\n\r\nfunction clearBuffers (parser) {\r\n  for (var i = 0, l = buffers.length; i < l; i ++) {\r\n    parser[buffers[i]] = \"\"\r\n  }\r\n}\r\n\r\nfunction flushBuffers (parser) {\r\n  closeText(parser)\r\n  if (parser.cdata !== \"\") {\r\n    emitNode(parser, \"oncdata\", parser.cdata)\r\n    parser.cdata = \"\"\r\n  }\r\n  if (parser.script !== \"\") {\r\n    emitNode(parser, \"onscript\", parser.script)\r\n    parser.script = \"\"\r\n  }\r\n}\r\n\r\nSAXParser.prototype =\r\n  { end: function () { end(this) }\r\n  , write: write\r\n  , resume: function () { this.error = null; return this }\r\n  , close: function () { return this.write(null) }\r\n  , flush: function () { flushBuffers(this) }\r\n  }\r\n\r\ntry {\r\n  var Stream = require(\"stream\").Stream\r\n} catch (ex) {\r\n  var Stream = function () {}\r\n}\r\n\r\n\r\nvar streamWraps = sax.EVENTS.filter(function (ev) {\r\n  return ev !== \"error\" && ev !== \"end\"\r\n})\r\n\r\nfunction createStream (strict, opt) {\r\n  return new SAXStream(strict, opt)\r\n}\r\n\r\nfunction SAXStream (strict, opt) {\r\n  if (!(this instanceof SAXStream)) return new SAXStream(strict, opt)\r\n\r\n  Stream.apply(this)\r\n\r\n  this._parser = new SAXParser(strict, opt)\r\n  this.writable = true\r\n  this.readable = true\r\n\r\n\r\n  var me = this\r\n\r\n  this._parser.onend = function () {\r\n    me.emit(\"end\")\r\n  }\r\n\r\n  this._parser.onerror = function (er) {\r\n    me.emit(\"error\", er)\r\n\r\n    // if didn't throw, then means error was handled.\r\n    // go ahead and clear error, so we can write again.\r\n    me._parser.error = null\r\n  }\r\n\r\n  this._decoder = null;\r\n\r\n  streamWraps.forEach(function (ev) {\r\n    Object.defineProperty(me, \"on\" + ev, {\r\n      get: function () { return me._parser[\"on\" + ev] },\r\n      set: function (h) {\r\n        if (!h) {\r\n          me.removeAllListeners(ev)\r\n          return me._parser[\"on\"+ev] = h\r\n        }\r\n        me.on(ev, h)\r\n      },\r\n      enumerable: true,\r\n      configurable: false\r\n    })\r\n  })\r\n}\r\n\r\nSAXStream.prototype = Object.create(Stream.prototype,\r\n  { constructor: { value: SAXStream } })\r\n\r\nSAXStream.prototype.write = function (data) {\r\n  if (typeof Buffer === 'function' &&\r\n      typeof Buffer.isBuffer === 'function' &&\r\n      Buffer.isBuffer(data)) {\r\n    if (!this._decoder) {\r\n      var SD = require('string_decoder').StringDecoder\r\n      this._decoder = new SD('utf8')\r\n    }\r\n    data = this._decoder.write(data);\r\n  }\r\n\r\n  this._parser.write(data.toString())\r\n  this.emit(\"data\", data)\r\n  return true\r\n}\r\n\r\nSAXStream.prototype.end = function (chunk) {\r\n  if (chunk && chunk.length) this.write(chunk)\r\n  this._parser.end()\r\n  return true\r\n}\r\n\r\nSAXStream.prototype.on = function (ev, handler) {\r\n  var me = this\r\n  if (!me._parser[\"on\"+ev] && streamWraps.indexOf(ev) !== -1) {\r\n    me._parser[\"on\"+ev] = function () {\r\n      var args = arguments.length === 1 ? [arguments[0]]\r\n               : Array.apply(null, arguments)\r\n      args.splice(0, 0, ev)\r\n      me.emit.apply(me, args)\r\n    }\r\n  }\r\n\r\n  return Stream.prototype.on.call(me, ev, handler)\r\n}\r\n\r\n\r\n\r\n// character classes and tokens\r\nvar whitespace = \"\\r\\n\\t \"\r\n  // this really needs to be replaced with character classes.\r\n  // XML allows all manner of ridiculous numbers and digits.\r\n  , number = \"0124356789\"\r\n  , letter = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n  // (Letter | \"_\" | \":\")\r\n  , quote = \"'\\\"\"\r\n  , entity = number+letter+\"#\"\r\n  , attribEnd = whitespace + \">\"\r\n  , CDATA = \"[CDATA[\"\r\n  , DOCTYPE = \"DOCTYPE\"\r\n  , XML_NAMESPACE = \"http://www.w3.org/XML/1998/namespace\"\r\n  , XMLNS_NAMESPACE = \"http://www.w3.org/2000/xmlns/\"\r\n  , rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }\r\n\r\n// turn all the string character sets into character class objects.\r\nwhitespace = charClass(whitespace)\r\nnumber = charClass(number)\r\nletter = charClass(letter)\r\n\r\n// http://www.w3.org/TR/REC-xml/#NT-NameStartChar\r\n// This implementation works on strings, a single character at a time\r\n// as such, it cannot ever support astral-plane characters (10000-EFFFF)\r\n// without a significant breaking change to either this  parser, or the\r\n// JavaScript language.  Implementation of an emoji-capable xml parser\r\n// is left as an exercise for the reader.\r\nvar nameStart = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/\r\n\r\nvar nameBody = /[:_A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u00B7\\u0300-\\u036F\\u203F-\\u2040\\.\\d-]/\r\n\r\nquote = charClass(quote)\r\nentity = charClass(entity)\r\nattribEnd = charClass(attribEnd)\r\n\r\nfunction charClass (str) {\r\n  return str.split(\"\").reduce(function (s, c) {\r\n    s[c] = true\r\n    return s\r\n  }, {})\r\n}\r\n\r\nfunction isRegExp (c) {\r\n  return Object.prototype.toString.call(c) === '[object RegExp]'\r\n}\r\n\r\nfunction is (charclass, c) {\r\n  return isRegExp(charclass) ? !!c.match(charclass) : charclass[c]\r\n}\r\n\r\nfunction not (charclass, c) {\r\n  return !is(charclass, c)\r\n}\r\n\r\nvar S = 0\r\nsax.STATE =\r\n{ BEGIN                     : S++\r\n, TEXT                      : S++ // general stuff\r\n, TEXT_ENTITY               : S++ // &amp and such.\r\n, OPEN_WAKA                 : S++ // <\r\n, SGML_DECL                 : S++ // <!BLARG\r\n, SGML_DECL_QUOTED          : S++ // <!BLARG foo \"bar\r\n, DOCTYPE                   : S++ // <!DOCTYPE\r\n, DOCTYPE_QUOTED            : S++ // <!DOCTYPE \"//blah\r\n, DOCTYPE_DTD               : S++ // <!DOCTYPE \"//blah\" [ ...\r\n, DOCTYPE_DTD_QUOTED        : S++ // <!DOCTYPE \"//blah\" [ \"foo\r\n, COMMENT_STARTING          : S++ // <!-\r\n, COMMENT                   : S++ // <!--\r\n, COMMENT_ENDING            : S++ // <!-- blah -\r\n, COMMENT_ENDED             : S++ // <!-- blah --\r\n, CDATA                     : S++ // <![CDATA[ something\r\n, CDATA_ENDING              : S++ // ]\r\n, CDATA_ENDING_2            : S++ // ]]\r\n, PROC_INST                 : S++ // <?hi\r\n, PROC_INST_BODY            : S++ // <?hi there\r\n, PROC_INST_ENDING          : S++ // <?hi \"there\" ?\r\n, OPEN_TAG                  : S++ // <strong\r\n, OPEN_TAG_SLASH            : S++ // <strong /\r\n, ATTRIB                    : S++ // <a\r\n, ATTRIB_NAME               : S++ // <a foo\r\n, ATTRIB_NAME_SAW_WHITE     : S++ // <a foo _\r\n, ATTRIB_VALUE              : S++ // <a foo=\r\n, ATTRIB_VALUE_QUOTED       : S++ // <a foo=\"bar\r\n, ATTRIB_VALUE_CLOSED       : S++ // <a foo=\"bar\"\r\n, ATTRIB_VALUE_UNQUOTED     : S++ // <a foo=bar\r\n, ATTRIB_VALUE_ENTITY_Q     : S++ // <foo bar=\"&quot;\"\r\n, ATTRIB_VALUE_ENTITY_U     : S++ // <foo bar=&quot;\r\n, CLOSE_TAG                 : S++ // </a\r\n, CLOSE_TAG_SAW_WHITE       : S++ // </a   >\r\n, SCRIPT                    : S++ // <script> ...\r\n, SCRIPT_ENDING             : S++ // <script> ... <\r\n}\r\n\r\nsax.ENTITIES =\r\n{ \"amp\" : \"&\"\r\n, \"gt\" : \">\"\r\n, \"lt\" : \"<\"\r\n, \"quot\" : \"\\\"\"\r\n, \"apos\" : \"'\"\r\n, \"AElig\" : 198\r\n, \"Aacute\" : 193\r\n, \"Acirc\" : 194\r\n, \"Agrave\" : 192\r\n, \"Aring\" : 197\r\n, \"Atilde\" : 195\r\n, \"Auml\" : 196\r\n, \"Ccedil\" : 199\r\n, \"ETH\" : 208\r\n, \"Eacute\" : 201\r\n, \"Ecirc\" : 202\r\n, \"Egrave\" : 200\r\n, \"Euml\" : 203\r\n, \"Iacute\" : 205\r\n, \"Icirc\" : 206\r\n, \"Igrave\" : 204\r\n, \"Iuml\" : 207\r\n, \"Ntilde\" : 209\r\n, \"Oacute\" : 211\r\n, \"Ocirc\" : 212\r\n, \"Ograve\" : 210\r\n, \"Oslash\" : 216\r\n, \"Otilde\" : 213\r\n, \"Ouml\" : 214\r\n, \"THORN\" : 222\r\n, \"Uacute\" : 218\r\n, \"Ucirc\" : 219\r\n, \"Ugrave\" : 217\r\n, \"Uuml\" : 220\r\n, \"Yacute\" : 221\r\n, \"aacute\" : 225\r\n, \"acirc\" : 226\r\n, \"aelig\" : 230\r\n, \"agrave\" : 224\r\n, \"aring\" : 229\r\n, \"atilde\" : 227\r\n, \"auml\" : 228\r\n, \"ccedil\" : 231\r\n, \"eacute\" : 233\r\n, \"ecirc\" : 234\r\n, \"egrave\" : 232\r\n, \"eth\" : 240\r\n, \"euml\" : 235\r\n, \"iacute\" : 237\r\n, \"icirc\" : 238\r\n, \"igrave\" : 236\r\n, \"iuml\" : 239\r\n, \"ntilde\" : 241\r\n, \"oacute\" : 243\r\n, \"ocirc\" : 244\r\n, \"ograve\" : 242\r\n, \"oslash\" : 248\r\n, \"otilde\" : 245\r\n, \"ouml\" : 246\r\n, \"szlig\" : 223\r\n, \"thorn\" : 254\r\n, \"uacute\" : 250\r\n, \"ucirc\" : 251\r\n, \"ugrave\" : 249\r\n, \"uuml\" : 252\r\n, \"yacute\" : 253\r\n, \"yuml\" : 255\r\n, \"copy\" : 169\r\n, \"reg\" : 174\r\n, \"nbsp\" : 160\r\n, \"iexcl\" : 161\r\n, \"cent\" : 162\r\n, \"pound\" : 163\r\n, \"curren\" : 164\r\n, \"yen\" : 165\r\n, \"brvbar\" : 166\r\n, \"sect\" : 167\r\n, \"uml\" : 168\r\n, \"ordf\" : 170\r\n, \"laquo\" : 171\r\n, \"not\" : 172\r\n, \"shy\" : 173\r\n, \"macr\" : 175\r\n, \"deg\" : 176\r\n, \"plusmn\" : 177\r\n, \"sup1\" : 185\r\n, \"sup2\" : 178\r\n, \"sup3\" : 179\r\n, \"acute\" : 180\r\n, \"micro\" : 181\r\n, \"para\" : 182\r\n, \"middot\" : 183\r\n, \"cedil\" : 184\r\n, \"ordm\" : 186\r\n, \"raquo\" : 187\r\n, \"frac14\" : 188\r\n, \"frac12\" : 189\r\n, \"frac34\" : 190\r\n, \"iquest\" : 191\r\n, \"times\" : 215\r\n, \"divide\" : 247\r\n, \"OElig\" : 338\r\n, \"oelig\" : 339\r\n, \"Scaron\" : 352\r\n, \"scaron\" : 353\r\n, \"Yuml\" : 376\r\n, \"fnof\" : 402\r\n, \"circ\" : 710\r\n, \"tilde\" : 732\r\n, \"Alpha\" : 913\r\n, \"Beta\" : 914\r\n, \"Gamma\" : 915\r\n, \"Delta\" : 916\r\n, \"Epsilon\" : 917\r\n, \"Zeta\" : 918\r\n, \"Eta\" : 919\r\n, \"Theta\" : 920\r\n, \"Iota\" : 921\r\n, \"Kappa\" : 922\r\n, \"Lambda\" : 923\r\n, \"Mu\" : 924\r\n, \"Nu\" : 925\r\n, \"Xi\" : 926\r\n, \"Omicron\" : 927\r\n, \"Pi\" : 928\r\n, \"Rho\" : 929\r\n, \"Sigma\" : 931\r\n, \"Tau\" : 932\r\n, \"Upsilon\" : 933\r\n, \"Phi\" : 934\r\n, \"Chi\" : 935\r\n, \"Psi\" : 936\r\n, \"Omega\" : 937\r\n, \"alpha\" : 945\r\n, \"beta\" : 946\r\n, \"gamma\" : 947\r\n, \"delta\" : 948\r\n, \"epsilon\" : 949\r\n, \"zeta\" : 950\r\n, \"eta\" : 951\r\n, \"theta\" : 952\r\n, \"iota\" : 953\r\n, \"kappa\" : 954\r\n, \"lambda\" : 955\r\n, \"mu\" : 956\r\n, \"nu\" : 957\r\n, \"xi\" : 958\r\n, \"omicron\" : 959\r\n, \"pi\" : 960\r\n, \"rho\" : 961\r\n, \"sigmaf\" : 962\r\n, \"sigma\" : 963\r\n, \"tau\" : 964\r\n, \"upsilon\" : 965\r\n, \"phi\" : 966\r\n, \"chi\" : 967\r\n, \"psi\" : 968\r\n, \"omega\" : 969\r\n, \"thetasym\" : 977\r\n, \"upsih\" : 978\r\n, \"piv\" : 982\r\n, \"ensp\" : 8194\r\n, \"emsp\" : 8195\r\n, \"thinsp\" : 8201\r\n, \"zwnj\" : 8204\r\n, \"zwj\" : 8205\r\n, \"lrm\" : 8206\r\n, \"rlm\" : 8207\r\n, \"ndash\" : 8211\r\n, \"mdash\" : 8212\r\n, \"lsquo\" : 8216\r\n, \"rsquo\" : 8217\r\n, \"sbquo\" : 8218\r\n, \"ldquo\" : 8220\r\n, \"rdquo\" : 8221\r\n, \"bdquo\" : 8222\r\n, \"dagger\" : 8224\r\n, \"Dagger\" : 8225\r\n, \"bull\" : 8226\r\n, \"hellip\" : 8230\r\n, \"permil\" : 8240\r\n, \"prime\" : 8242\r\n, \"Prime\" : 8243\r\n, \"lsaquo\" : 8249\r\n, \"rsaquo\" : 8250\r\n, \"oline\" : 8254\r\n, \"frasl\" : 8260\r\n, \"euro\" : 8364\r\n, \"image\" : 8465\r\n, \"weierp\" : 8472\r\n, \"real\" : 8476\r\n, \"trade\" : 8482\r\n, \"alefsym\" : 8501\r\n, \"larr\" : 8592\r\n, \"uarr\" : 8593\r\n, \"rarr\" : 8594\r\n, \"darr\" : 8595\r\n, \"harr\" : 8596\r\n, \"crarr\" : 8629\r\n, \"lArr\" : 8656\r\n, \"uArr\" : 8657\r\n, \"rArr\" : 8658\r\n, \"dArr\" : 8659\r\n, \"hArr\" : 8660\r\n, \"forall\" : 8704\r\n, \"part\" : 8706\r\n, \"exist\" : 8707\r\n, \"empty\" : 8709\r\n, \"nabla\" : 8711\r\n, \"isin\" : 8712\r\n, \"notin\" : 8713\r\n, \"ni\" : 8715\r\n, \"prod\" : 8719\r\n, \"sum\" : 8721\r\n, \"minus\" : 8722\r\n, \"lowast\" : 8727\r\n, \"radic\" : 8730\r\n, \"prop\" : 8733\r\n, \"infin\" : 8734\r\n, \"ang\" : 8736\r\n, \"and\" : 8743\r\n, \"or\" : 8744\r\n, \"cap\" : 8745\r\n, \"cup\" : 8746\r\n, \"int\" : 8747\r\n, \"there4\" : 8756\r\n, \"sim\" : 8764\r\n, \"cong\" : 8773\r\n, \"asymp\" : 8776\r\n, \"ne\" : 8800\r\n, \"equiv\" : 8801\r\n, \"le\" : 8804\r\n, \"ge\" : 8805\r\n, \"sub\" : 8834\r\n, \"sup\" : 8835\r\n, \"nsub\" : 8836\r\n, \"sube\" : 8838\r\n, \"supe\" : 8839\r\n, \"oplus\" : 8853\r\n, \"otimes\" : 8855\r\n, \"perp\" : 8869\r\n, \"sdot\" : 8901\r\n, \"lceil\" : 8968\r\n, \"rceil\" : 8969\r\n, \"lfloor\" : 8970\r\n, \"rfloor\" : 8971\r\n, \"lang\" : 9001\r\n, \"rang\" : 9002\r\n, \"loz\" : 9674\r\n, \"spades\" : 9824\r\n, \"clubs\" : 9827\r\n, \"hearts\" : 9829\r\n, \"diams\" : 9830\r\n}\r\n\r\nObject.keys(sax.ENTITIES).forEach(function (key) {\r\n    var e = sax.ENTITIES[key]\r\n    var s = typeof e === 'number' ? String.fromCharCode(e) : e\r\n    sax.ENTITIES[key] = s\r\n})\r\n\r\nfor (var S in sax.STATE) sax.STATE[sax.STATE[S]] = S\r\n\r\n// shorthand\r\nS = sax.STATE\r\n\r\nfunction emit (parser, event, data) {\r\n  parser[event] && parser[event](data)\r\n}\r\n\r\nfunction emitNode (parser, nodeType, data) {\r\n  if (parser.textNode) closeText(parser)\r\n  emit(parser, nodeType, data)\r\n}\r\n\r\nfunction closeText (parser) {\r\n  parser.textNode = textopts(parser.opt, parser.textNode)\r\n  if (parser.textNode) emit(parser, \"ontext\", parser.textNode)\r\n  parser.textNode = \"\"\r\n}\r\n\r\nfunction textopts (opt, text) {\r\n  if (opt.trim) text = text.trim()\r\n  if (opt.normalize) text = text.replace(/\\s+/g, \" \")\r\n  return text\r\n}\r\n\r\nfunction error (parser, er) {\r\n  closeText(parser)\r\n  if (parser.trackPosition) {\r\n    er += \"\\nLine: \"+parser.line+\r\n          \"\\nColumn: \"+parser.column+\r\n          \"\\nChar: \"+parser.c\r\n  }\r\n  er = new Error(er)\r\n  parser.error = er\r\n  emit(parser, \"onerror\", er)\r\n  return parser\r\n}\r\n\r\nfunction end (parser) {\r\n  if (!parser.closedRoot) strictFail(parser, \"Unclosed root tag\")\r\n  if ((parser.state !== S.BEGIN) && (parser.state !== S.TEXT)) error(parser, \"Unexpected end\")\r\n  closeText(parser)\r\n  parser.c = \"\"\r\n  parser.closed = true\r\n  emit(parser, \"onend\")\r\n  SAXParser.call(parser, parser.strict, parser.opt)\r\n  return parser\r\n}\r\n\r\nfunction strictFail (parser, message) {\r\n  if (typeof parser !== 'object' || !(parser instanceof SAXParser))\r\n    throw new Error('bad call to strictFail');\r\n  if (parser.strict) error(parser, message)\r\n}\r\n\r\nfunction newTag (parser) {\r\n  if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]()\r\n  var parent = parser.tags[parser.tags.length - 1] || parser\r\n    , tag = parser.tag = { name : parser.tagName, attributes : {} }\r\n\r\n  // will be overridden if tag contails an xmlns=\"foo\" or xmlns:foo=\"bar\"\r\n  if (parser.opt.xmlns) tag.ns = parent.ns\r\n  parser.attribList.length = 0\r\n}\r\n\r\nfunction qname (name, attribute) {\r\n  var i = name.indexOf(\":\")\r\n    , qualName = i < 0 ? [ \"\", name ] : name.split(\":\")\r\n    , prefix = qualName[0]\r\n    , local = qualName[1]\r\n\r\n  // <x \"xmlns\"=\"http://foo\">\r\n  if (attribute && name === \"xmlns\") {\r\n    prefix = \"xmlns\"\r\n    local = \"\"\r\n  }\r\n\r\n  return { prefix: prefix, local: local }\r\n}\r\n\r\nfunction attrib (parser) {\r\n  if (!parser.strict) parser.attribName = parser.attribName[parser.looseCase]()\r\n\r\n  if (parser.attribList.indexOf(parser.attribName) !== -1 ||\r\n      parser.tag.attributes.hasOwnProperty(parser.attribName)) {\r\n    return parser.attribName = parser.attribValue = \"\"\r\n  }\r\n\r\n  if (parser.opt.xmlns) {\r\n    var qn = qname(parser.attribName, true)\r\n      , prefix = qn.prefix\r\n      , local = qn.local\r\n\r\n    if (prefix === \"xmlns\") {\r\n      // namespace binding attribute; push the binding into scope\r\n      if (local === \"xml\" && parser.attribValue !== XML_NAMESPACE) {\r\n        strictFail( parser\r\n                  , \"xml: prefix must be bound to \" + XML_NAMESPACE + \"\\n\"\r\n                  + \"Actual: \" + parser.attribValue )\r\n      } else if (local === \"xmlns\" && parser.attribValue !== XMLNS_NAMESPACE) {\r\n        strictFail( parser\r\n                  , \"xmlns: prefix must be bound to \" + XMLNS_NAMESPACE + \"\\n\"\r\n                  + \"Actual: \" + parser.attribValue )\r\n      } else {\r\n        var tag = parser.tag\r\n          , parent = parser.tags[parser.tags.length - 1] || parser\r\n        if (tag.ns === parent.ns) {\r\n          tag.ns = Object.create(parent.ns)\r\n        }\r\n        tag.ns[local] = parser.attribValue\r\n      }\r\n    }\r\n\r\n    // defer onattribute events until all attributes have been seen\r\n    // so any new bindings can take effect; preserve attribute order\r\n    // so deferred events can be emitted in document order\r\n    parser.attribList.push([parser.attribName, parser.attribValue])\r\n  } else {\r\n    // in non-xmlns mode, we can emit the event right away\r\n    parser.tag.attributes[parser.attribName] = parser.attribValue\r\n    emitNode( parser\r\n            , \"onattribute\"\r\n            , { name: parser.attribName\r\n              , value: parser.attribValue } )\r\n  }\r\n\r\n  parser.attribName = parser.attribValue = \"\"\r\n}\r\n\r\nfunction openTag (parser, selfClosing) {\r\n  if (parser.opt.xmlns) {\r\n    // emit namespace binding events\r\n    var tag = parser.tag\r\n\r\n    // add namespace info to tag\r\n    var qn = qname(parser.tagName)\r\n    tag.prefix = qn.prefix\r\n    tag.local = qn.local\r\n    tag.uri = tag.ns[qn.prefix] || \"\"\r\n\r\n    if (tag.prefix && !tag.uri) {\r\n      strictFail(parser, \"Unbound namespace prefix: \"\r\n                       + JSON.stringify(parser.tagName))\r\n      tag.uri = qn.prefix\r\n    }\r\n\r\n    var parent = parser.tags[parser.tags.length - 1] || parser\r\n    if (tag.ns && parent.ns !== tag.ns) {\r\n      Object.keys(tag.ns).forEach(function (p) {\r\n        emitNode( parser\r\n                , \"onopennamespace\"\r\n                , { prefix: p , uri: tag.ns[p] } )\r\n      })\r\n    }\r\n\r\n    // handle deferred onattribute events\r\n    // Note: do not apply default ns to attributes:\r\n    //   http://www.w3.org/TR/REC-xml-names/#defaulting\r\n    for (var i = 0, l = parser.attribList.length; i < l; i ++) {\r\n      var nv = parser.attribList[i]\r\n      var name = nv[0]\r\n        , value = nv[1]\r\n        , qualName = qname(name, true)\r\n        , prefix = qualName.prefix\r\n        , local = qualName.local\r\n        , uri = prefix == \"\" ? \"\" : (tag.ns[prefix] || \"\")\r\n        , a = { name: name\r\n              , value: value\r\n              , prefix: prefix\r\n              , local: local\r\n              , uri: uri\r\n              }\r\n\r\n      // if there's any attributes with an undefined namespace,\r\n      // then fail on them now.\r\n      if (prefix && prefix != \"xmlns\" && !uri) {\r\n        strictFail(parser, \"Unbound namespace prefix: \"\r\n                         + JSON.stringify(prefix))\r\n        a.uri = prefix\r\n      }\r\n      parser.tag.attributes[name] = a\r\n      emitNode(parser, \"onattribute\", a)\r\n    }\r\n    parser.attribList.length = 0\r\n  }\r\n\r\n  parser.tag.isSelfClosing = !!selfClosing\r\n\r\n  // process the tag\r\n  parser.sawRoot = true\r\n  parser.tags.push(parser.tag)\r\n  emitNode(parser, \"onopentag\", parser.tag)\r\n  if (!selfClosing) {\r\n    // special case for <script> in non-strict mode.\r\n    if (!parser.noscript && parser.tagName.toLowerCase() === \"script\") {\r\n      parser.state = S.SCRIPT\r\n    } else {\r\n      parser.state = S.TEXT\r\n    }\r\n    parser.tag = null\r\n    parser.tagName = \"\"\r\n  }\r\n  parser.attribName = parser.attribValue = \"\"\r\n  parser.attribList.length = 0\r\n}\r\n\r\nfunction closeTag (parser) {\r\n  if (!parser.tagName) {\r\n    strictFail(parser, \"Weird empty close tag.\")\r\n    parser.textNode += \"</>\"\r\n    parser.state = S.TEXT\r\n    return\r\n  }\r\n\r\n  if (parser.script) {\r\n    if (parser.tagName !== \"script\") {\r\n      parser.script += \"</\" + parser.tagName + \">\"\r\n      parser.tagName = \"\"\r\n      parser.state = S.SCRIPT\r\n      return\r\n    }\r\n    emitNode(parser, \"onscript\", parser.script)\r\n    parser.script = \"\"\r\n  }\r\n\r\n  // first make sure that the closing tag actually exists.\r\n  // <a><b></c></b></a> will close everything, otherwise.\r\n  var t = parser.tags.length\r\n  var tagName = parser.tagName\r\n  if (!parser.strict) tagName = tagName[parser.looseCase]()\r\n  var closeTo = tagName\r\n  while (t --) {\r\n    var close = parser.tags[t]\r\n    if (close.name !== closeTo) {\r\n      // fail the first time in strict mode\r\n      strictFail(parser, \"Unexpected close tag\")\r\n    } else break\r\n  }\r\n\r\n  // didn't find it.  we already failed for strict, so just abort.\r\n  if (t < 0) {\r\n    strictFail(parser, \"Unmatched closing tag: \"+parser.tagName)\r\n    parser.textNode += \"</\" + parser.tagName + \">\"\r\n    parser.state = S.TEXT\r\n    return\r\n  }\r\n  parser.tagName = tagName\r\n  var s = parser.tags.length\r\n  while (s --> t) {\r\n    var tag = parser.tag = parser.tags.pop()\r\n    parser.tagName = parser.tag.name\r\n    emitNode(parser, \"onclosetag\", parser.tagName)\r\n\r\n    var x = {}\r\n    for (var i in tag.ns) x[i] = tag.ns[i]\r\n\r\n    var parent = parser.tags[parser.tags.length - 1] || parser\r\n    if (parser.opt.xmlns && tag.ns !== parent.ns) {\r\n      // remove namespace bindings introduced by tag\r\n      Object.keys(tag.ns).forEach(function (p) {\r\n        var n = tag.ns[p]\r\n        emitNode(parser, \"onclosenamespace\", { prefix: p, uri: n })\r\n      })\r\n    }\r\n  }\r\n  if (t === 0) parser.closedRoot = true\r\n  parser.tagName = parser.attribValue = parser.attribName = \"\"\r\n  parser.attribList.length = 0\r\n  parser.state = S.TEXT\r\n}\r\n\r\nfunction parseEntity (parser) {\r\n  var entity = parser.entity\r\n    , entityLC = entity.toLowerCase()\r\n    , num\r\n    , numStr = \"\"\r\n  if (parser.ENTITIES[entity])\r\n    return parser.ENTITIES[entity]\r\n  if (parser.ENTITIES[entityLC])\r\n    return parser.ENTITIES[entityLC]\r\n  entity = entityLC\r\n  if (entity.charAt(0) === \"#\") {\r\n    if (entity.charAt(1) === \"x\") {\r\n      entity = entity.slice(2)\r\n      num = parseInt(entity, 16)\r\n      numStr = num.toString(16)\r\n    } else {\r\n      entity = entity.slice(1)\r\n      num = parseInt(entity, 10)\r\n      numStr = num.toString(10)\r\n    }\r\n  }\r\n  entity = entity.replace(/^0+/, \"\")\r\n  if (numStr.toLowerCase() !== entity) {\r\n    strictFail(parser, \"Invalid character entity\")\r\n    return \"&\"+parser.entity + \";\"\r\n  }\r\n  return String.fromCharCode(num)\r\n}\r\n\r\nfunction write (chunk) {\r\n  var parser = this\r\n  if (this.error) throw this.error\r\n  if (parser.closed) return error(parser,\r\n    \"Cannot write after close. Assign an onready handler.\")\r\n  if (chunk === null) return end(parser)\r\n  var i = 0, c = \"\"\r\n  while (parser.c = c = chunk.charAt(i++)) {\r\n    if (parser.trackPosition) {\r\n      parser.position ++\r\n      if (c === \"\\n\") {\r\n        parser.line ++\r\n        parser.column = 0\r\n      } else parser.column ++\r\n    }\r\n    switch (parser.state) {\r\n\r\n      case S.BEGIN:\r\n        if (c === \"<\") {\r\n          parser.state = S.OPEN_WAKA\r\n          parser.startTagPosition = parser.position\r\n        } else if (not(whitespace,c)) {\r\n          // have to process this as a text node.\r\n          // weird, but happens.\r\n          strictFail(parser, \"Non-whitespace before first tag.\")\r\n          parser.textNode = c\r\n          parser.state = S.TEXT\r\n        }\r\n      continue\r\n\r\n      case S.TEXT:\r\n        if (parser.sawRoot && !parser.closedRoot) {\r\n          var starti = i-1\r\n          while (c && c!==\"<\" && c!==\"&\") {\r\n            c = chunk.charAt(i++)\r\n            if (c && parser.trackPosition) {\r\n              parser.position ++\r\n              if (c === \"\\n\") {\r\n                parser.line ++\r\n                parser.column = 0\r\n              } else parser.column ++\r\n            }\r\n          }\r\n          parser.textNode += chunk.substring(starti, i-1)\r\n        }\r\n        if (c === \"<\") {\r\n          parser.state = S.OPEN_WAKA\r\n          parser.startTagPosition = parser.position\r\n        } else {\r\n          if (not(whitespace, c) && (!parser.sawRoot || parser.closedRoot))\r\n            strictFail(parser, \"Text data outside of root node.\")\r\n          if (c === \"&\") parser.state = S.TEXT_ENTITY\r\n          else parser.textNode += c\r\n        }\r\n      continue\r\n\r\n      case S.SCRIPT:\r\n        // only non-strict\r\n        if (c === \"<\") {\r\n          parser.state = S.SCRIPT_ENDING\r\n        } else parser.script += c\r\n      continue\r\n\r\n      case S.SCRIPT_ENDING:\r\n        if (c === \"/\") {\r\n          parser.state = S.CLOSE_TAG\r\n        } else {\r\n          parser.script += \"<\" + c\r\n          parser.state = S.SCRIPT\r\n        }\r\n      continue\r\n\r\n      case S.OPEN_WAKA:\r\n        // either a /, ?, !, or text is coming next.\r\n        if (c === \"!\") {\r\n          parser.state = S.SGML_DECL\r\n          parser.sgmlDecl = \"\"\r\n        } else if (is(whitespace, c)) {\r\n          // wait for it...\r\n        } else if (is(nameStart,c)) {\r\n          parser.state = S.OPEN_TAG\r\n          parser.tagName = c\r\n        } else if (c === \"/\") {\r\n          parser.state = S.CLOSE_TAG\r\n          parser.tagName = \"\"\r\n        } else if (c === \"?\") {\r\n          parser.state = S.PROC_INST\r\n          parser.procInstName = parser.procInstBody = \"\"\r\n        } else {\r\n          strictFail(parser, \"Unencoded <\")\r\n          // if there was some whitespace, then add that in.\r\n          if (parser.startTagPosition + 1 < parser.position) {\r\n            var pad = parser.position - parser.startTagPosition\r\n            c = new Array(pad).join(\" \") + c\r\n          }\r\n          parser.textNode += \"<\" + c\r\n          parser.state = S.TEXT\r\n        }\r\n      continue\r\n\r\n      case S.SGML_DECL:\r\n        if ((parser.sgmlDecl+c).toUpperCase() === CDATA) {\r\n          emitNode(parser, \"onopencdata\")\r\n          parser.state = S.CDATA\r\n          parser.sgmlDecl = \"\"\r\n          parser.cdata = \"\"\r\n        } else if (parser.sgmlDecl+c === \"--\") {\r\n          parser.state = S.COMMENT\r\n          parser.comment = \"\"\r\n          parser.sgmlDecl = \"\"\r\n        } else if ((parser.sgmlDecl+c).toUpperCase() === DOCTYPE) {\r\n          parser.state = S.DOCTYPE\r\n          if (parser.doctype || parser.sawRoot) strictFail(parser,\r\n            \"Inappropriately located doctype declaration\")\r\n          parser.doctype = \"\"\r\n          parser.sgmlDecl = \"\"\r\n        } else if (c === \">\") {\r\n          emitNode(parser, \"onsgmldeclaration\", parser.sgmlDecl)\r\n          parser.sgmlDecl = \"\"\r\n          parser.state = S.TEXT\r\n        } else if (is(quote, c)) {\r\n          parser.state = S.SGML_DECL_QUOTED\r\n          parser.sgmlDecl += c\r\n        } else parser.sgmlDecl += c\r\n      continue\r\n\r\n      case S.SGML_DECL_QUOTED:\r\n        if (c === parser.q) {\r\n          parser.state = S.SGML_DECL\r\n          parser.q = \"\"\r\n        }\r\n        parser.sgmlDecl += c\r\n      continue\r\n\r\n      case S.DOCTYPE:\r\n        if (c === \">\") {\r\n          parser.state = S.TEXT\r\n          emitNode(parser, \"ondoctype\", parser.doctype)\r\n          parser.doctype = true // just remember that we saw it.\r\n        } else {\r\n          parser.doctype += c\r\n          if (c === \"[\") parser.state = S.DOCTYPE_DTD\r\n          else if (is(quote, c)) {\r\n            parser.state = S.DOCTYPE_QUOTED\r\n            parser.q = c\r\n          }\r\n        }\r\n      continue\r\n\r\n      case S.DOCTYPE_QUOTED:\r\n        parser.doctype += c\r\n        if (c === parser.q) {\r\n          parser.q = \"\"\r\n          parser.state = S.DOCTYPE\r\n        }\r\n      continue\r\n\r\n      case S.DOCTYPE_DTD:\r\n        parser.doctype += c\r\n        if (c === \"]\") parser.state = S.DOCTYPE\r\n        else if (is(quote,c)) {\r\n          parser.state = S.DOCTYPE_DTD_QUOTED\r\n          parser.q = c\r\n        }\r\n      continue\r\n\r\n      case S.DOCTYPE_DTD_QUOTED:\r\n        parser.doctype += c\r\n        if (c === parser.q) {\r\n          parser.state = S.DOCTYPE_DTD\r\n          parser.q = \"\"\r\n        }\r\n      continue\r\n\r\n      case S.COMMENT:\r\n        if (c === \"-\") parser.state = S.COMMENT_ENDING\r\n        else parser.comment += c\r\n      continue\r\n\r\n      case S.COMMENT_ENDING:\r\n        if (c === \"-\") {\r\n          parser.state = S.COMMENT_ENDED\r\n          parser.comment = textopts(parser.opt, parser.comment)\r\n          if (parser.comment) emitNode(parser, \"oncomment\", parser.comment)\r\n          parser.comment = \"\"\r\n        } else {\r\n          parser.comment += \"-\" + c\r\n          parser.state = S.COMMENT\r\n        }\r\n      continue\r\n\r\n      case S.COMMENT_ENDED:\r\n        if (c !== \">\") {\r\n          strictFail(parser, \"Malformed comment\")\r\n          // allow <!-- blah -- bloo --> in non-strict mode,\r\n          // which is a comment of \" blah -- bloo \"\r\n          parser.comment += \"--\" + c\r\n          parser.state = S.COMMENT\r\n        } else parser.state = S.TEXT\r\n      continue\r\n\r\n      case S.CDATA:\r\n        if (c === \"]\") parser.state = S.CDATA_ENDING\r\n        else parser.cdata += c\r\n      continue\r\n\r\n      case S.CDATA_ENDING:\r\n        if (c === \"]\") parser.state = S.CDATA_ENDING_2\r\n        else {\r\n          parser.cdata += \"]\" + c\r\n          parser.state = S.CDATA\r\n        }\r\n      continue\r\n\r\n      case S.CDATA_ENDING_2:\r\n        if (c === \">\") {\r\n          if (parser.cdata) emitNode(parser, \"oncdata\", parser.cdata)\r\n          emitNode(parser, \"onclosecdata\")\r\n          parser.cdata = \"\"\r\n          parser.state = S.TEXT\r\n        } else if (c === \"]\") {\r\n          parser.cdata += \"]\"\r\n        } else {\r\n          parser.cdata += \"]]\" + c\r\n          parser.state = S.CDATA\r\n        }\r\n      continue\r\n\r\n      case S.PROC_INST:\r\n        if (c === \"?\") parser.state = S.PROC_INST_ENDING\r\n        else if (is(whitespace, c)) parser.state = S.PROC_INST_BODY\r\n        else parser.procInstName += c\r\n      continue\r\n\r\n      case S.PROC_INST_BODY:\r\n        if (!parser.procInstBody && is(whitespace, c)) continue\r\n        else if (c === \"?\") parser.state = S.PROC_INST_ENDING\r\n        else parser.procInstBody += c\r\n      continue\r\n\r\n      case S.PROC_INST_ENDING:\r\n        if (c === \">\") {\r\n          emitNode(parser, \"onprocessinginstruction\", {\r\n            name : parser.procInstName,\r\n            body : parser.procInstBody\r\n          })\r\n          parser.procInstName = parser.procInstBody = \"\"\r\n          parser.state = S.TEXT\r\n        } else {\r\n          parser.procInstBody += \"?\" + c\r\n          parser.state = S.PROC_INST_BODY\r\n        }\r\n      continue\r\n\r\n      case S.OPEN_TAG:\r\n        if (is(nameBody, c)) parser.tagName += c\r\n        else {\r\n          newTag(parser)\r\n          if (c === \">\") openTag(parser)\r\n          else if (c === \"/\") parser.state = S.OPEN_TAG_SLASH\r\n          else {\r\n            if (not(whitespace, c)) strictFail(\r\n              parser, \"Invalid character in tag name\")\r\n            parser.state = S.ATTRIB\r\n          }\r\n        }\r\n      continue\r\n\r\n      case S.OPEN_TAG_SLASH:\r\n        if (c === \">\") {\r\n          openTag(parser, true)\r\n          closeTag(parser)\r\n        } else {\r\n          strictFail(parser, \"Forward-slash in opening tag not followed by >\")\r\n          parser.state = S.ATTRIB\r\n        }\r\n      continue\r\n\r\n      case S.ATTRIB:\r\n        // haven't read the attribute name yet.\r\n        if (is(whitespace, c)) continue\r\n        else if (c === \">\") openTag(parser)\r\n        else if (c === \"/\") parser.state = S.OPEN_TAG_SLASH\r\n        else if (is(nameStart, c)) {\r\n          parser.attribName = c\r\n          parser.attribValue = \"\"\r\n          parser.state = S.ATTRIB_NAME\r\n        } else strictFail(parser, \"Invalid attribute name\")\r\n      continue\r\n\r\n      case S.ATTRIB_NAME:\r\n        if (c === \"=\") parser.state = S.ATTRIB_VALUE\r\n        else if (c === \">\") {\r\n          strictFail(parser, \"Attribute without value\")\r\n          parser.attribValue = parser.attribName\r\n          attrib(parser)\r\n          openTag(parser)\r\n        }\r\n        else if (is(whitespace, c)) parser.state = S.ATTRIB_NAME_SAW_WHITE\r\n        else if (is(nameBody, c)) parser.attribName += c\r\n        else strictFail(parser, \"Invalid attribute name\")\r\n      continue\r\n\r\n      case S.ATTRIB_NAME_SAW_WHITE:\r\n        if (c === \"=\") parser.state = S.ATTRIB_VALUE\r\n        else if (is(whitespace, c)) continue\r\n        else {\r\n          strictFail(parser, \"Attribute without value\")\r\n          parser.tag.attributes[parser.attribName] = \"\"\r\n          parser.attribValue = \"\"\r\n          emitNode(parser, \"onattribute\",\r\n                   { name : parser.attribName, value : \"\" })\r\n          parser.attribName = \"\"\r\n          if (c === \">\") openTag(parser)\r\n          else if (is(nameStart, c)) {\r\n            parser.attribName = c\r\n            parser.state = S.ATTRIB_NAME\r\n          } else {\r\n            strictFail(parser, \"Invalid attribute name\")\r\n            parser.state = S.ATTRIB\r\n          }\r\n        }\r\n      continue\r\n\r\n      case S.ATTRIB_VALUE:\r\n        if (is(whitespace, c)) continue\r\n        else if (is(quote, c)) {\r\n          parser.q = c\r\n          parser.state = S.ATTRIB_VALUE_QUOTED\r\n        } else {\r\n          strictFail(parser, \"Unquoted attribute value\")\r\n          parser.state = S.ATTRIB_VALUE_UNQUOTED\r\n          parser.attribValue = c\r\n        }\r\n      continue\r\n\r\n      case S.ATTRIB_VALUE_QUOTED:\r\n        if (c !== parser.q) {\r\n          if (c === \"&\") parser.state = S.ATTRIB_VALUE_ENTITY_Q\r\n          else parser.attribValue += c\r\n          continue\r\n        }\r\n        attrib(parser)\r\n        parser.q = \"\"\r\n        parser.state = S.ATTRIB_VALUE_CLOSED\r\n      continue\r\n\r\n      case S.ATTRIB_VALUE_CLOSED:\r\n        if (is(whitespace, c)) {\r\n          parser.state = S.ATTRIB\r\n        } else if (c === \">\") openTag(parser)\r\n        else if (c === \"/\") parser.state = S.OPEN_TAG_SLASH\r\n        else if (is(nameStart, c)) {\r\n          strictFail(parser, \"No whitespace between attributes\")\r\n          parser.attribName = c\r\n          parser.attribValue = \"\"\r\n          parser.state = S.ATTRIB_NAME\r\n        } else strictFail(parser, \"Invalid attribute name\")\r\n      continue\r\n\r\n      case S.ATTRIB_VALUE_UNQUOTED:\r\n        if (not(attribEnd,c)) {\r\n          if (c === \"&\") parser.state = S.ATTRIB_VALUE_ENTITY_U\r\n          else parser.attribValue += c\r\n          continue\r\n        }\r\n        attrib(parser)\r\n        if (c === \">\") openTag(parser)\r\n        else parser.state = S.ATTRIB\r\n      continue\r\n\r\n      case S.CLOSE_TAG:\r\n        if (!parser.tagName) {\r\n          if (is(whitespace, c)) continue\r\n          else if (not(nameStart, c)) {\r\n            if (parser.script) {\r\n              parser.script += \"</\" + c\r\n              parser.state = S.SCRIPT\r\n            } else {\r\n              strictFail(parser, \"Invalid tagname in closing tag.\")\r\n            }\r\n          } else parser.tagName = c\r\n        }\r\n        else if (c === \">\") closeTag(parser)\r\n        else if (is(nameBody, c)) parser.tagName += c\r\n        else if (parser.script) {\r\n          parser.script += \"</\" + parser.tagName\r\n          parser.tagName = \"\"\r\n          parser.state = S.SCRIPT\r\n        } else {\r\n          if (not(whitespace, c)) strictFail(parser,\r\n            \"Invalid tagname in closing tag\")\r\n          parser.state = S.CLOSE_TAG_SAW_WHITE\r\n        }\r\n      continue\r\n\r\n      case S.CLOSE_TAG_SAW_WHITE:\r\n        if (is(whitespace, c)) continue\r\n        if (c === \">\") closeTag(parser)\r\n        else strictFail(parser, \"Invalid characters in closing tag\")\r\n      continue\r\n\r\n      case S.TEXT_ENTITY:\r\n      case S.ATTRIB_VALUE_ENTITY_Q:\r\n      case S.ATTRIB_VALUE_ENTITY_U:\r\n        switch(parser.state) {\r\n          case S.TEXT_ENTITY:\r\n            var returnState = S.TEXT, buffer = \"textNode\"\r\n          break\r\n\r\n          case S.ATTRIB_VALUE_ENTITY_Q:\r\n            var returnState = S.ATTRIB_VALUE_QUOTED, buffer = \"attribValue\"\r\n          break\r\n\r\n          case S.ATTRIB_VALUE_ENTITY_U:\r\n            var returnState = S.ATTRIB_VALUE_UNQUOTED, buffer = \"attribValue\"\r\n          break\r\n        }\r\n        if (c === \";\") {\r\n          parser[buffer] += parseEntity(parser)\r\n          parser.entity = \"\"\r\n          parser.state = returnState\r\n        }\r\n        else if (is(entity, c)) parser.entity += c\r\n        else {\r\n          strictFail(parser, \"Invalid character entity\")\r\n          parser[buffer] += \"&\" + parser.entity + c\r\n          parser.entity = \"\"\r\n          parser.state = returnState\r\n        }\r\n      continue\r\n\r\n      default:\r\n        throw new Error(parser, \"Unknown state: \" + parser.state)\r\n    }\r\n  } // while\r\n  // cdata blocks can get very big under normal conditions. emit and move on.\r\n  // if (parser.state === S.CDATA && parser.cdata) {\r\n  //   emitNode(parser, \"oncdata\", parser.cdata)\r\n  //   parser.cdata = \"\"\r\n  // }\r\n  if (parser.position >= parser.bufferCheckPosition) checkBufferLength(parser)\r\n  return parser\r\n}\r\n\r\n})(typeof exports === \"undefined\" ? sax = {} : exports)\r\n\r\n}).call(this,require(\"buffer\").Buffer)\r\n},{\"buffer\":56,\"stream\":88,\"string_decoder\":55}],88:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nmodule.exports = Stream;\r\n\r\nvar EE = require('events').EventEmitter;\r\nvar inherits = require('inherits');\r\n\r\ninherits(Stream, EE);\r\nStream.Readable = require('readable-stream/readable.js');\r\nStream.Writable = require('readable-stream/writable.js');\r\nStream.Duplex = require('readable-stream/duplex.js');\r\nStream.Transform = require('readable-stream/transform.js');\r\nStream.PassThrough = require('readable-stream/passthrough.js');\r\n\r\n// Backwards-compat with node 0.4.x\r\nStream.Stream = Stream;\r\n\r\n\r\n\r\n// old-style streams.  Note that the pipe method (the only relevant\r\n// part of this class) is overridden in the Readable class.\r\n\r\nfunction Stream() {\r\n  EE.call(this);\r\n}\r\n\r\nStream.prototype.pipe = function(dest, options) {\r\n  var source = this;\r\n\r\n  function ondata(chunk) {\r\n    if (dest.writable) {\r\n      if (false === dest.write(chunk) && source.pause) {\r\n        source.pause();\r\n      }\r\n    }\r\n  }\r\n\r\n  source.on('data', ondata);\r\n\r\n  function ondrain() {\r\n    if (source.readable && source.resume) {\r\n      source.resume();\r\n    }\r\n  }\r\n\r\n  dest.on('drain', ondrain);\r\n\r\n  // If the 'end' option is not supplied, dest.end() will be called when\r\n  // source gets the 'end' or 'close' events.  Only dest.end() once.\r\n  if (!dest._isStdio && (!options || options.end !== false)) {\r\n    source.on('end', onend);\r\n    source.on('close', onclose);\r\n  }\r\n\r\n  var didOnEnd = false;\r\n  function onend() {\r\n    if (didOnEnd) return;\r\n    didOnEnd = true;\r\n\r\n    dest.end();\r\n  }\r\n\r\n\r\n  function onclose() {\r\n    if (didOnEnd) return;\r\n    didOnEnd = true;\r\n\r\n    if (typeof dest.destroy === 'function') dest.destroy();\r\n  }\r\n\r\n  // don't leave dangling pipes when there are errors.\r\n  function onerror(er) {\r\n    cleanup();\r\n    if (EE.listenerCount(this, 'error') === 0) {\r\n      throw er; // Unhandled stream error in pipe.\r\n    }\r\n  }\r\n\r\n  source.on('error', onerror);\r\n  dest.on('error', onerror);\r\n\r\n  // remove all the event listeners that were added.\r\n  function cleanup() {\r\n    source.removeListener('data', ondata);\r\n    dest.removeListener('drain', ondrain);\r\n\r\n    source.removeListener('end', onend);\r\n    source.removeListener('close', onclose);\r\n\r\n    source.removeListener('error', onerror);\r\n    dest.removeListener('error', onerror);\r\n\r\n    source.removeListener('end', cleanup);\r\n    source.removeListener('close', cleanup);\r\n\r\n    dest.removeListener('close', cleanup);\r\n  }\r\n\r\n  source.on('end', cleanup);\r\n  source.on('close', cleanup);\r\n\r\n  dest.on('close', cleanup);\r\n\r\n  dest.emit('pipe', source);\r\n\r\n  // Allow for unix-like usage: A.pipe(B).pipe(C)\r\n  return dest;\r\n};\r\n\r\n},{\"events\":59,\"inherits\":64,\"readable-stream/duplex.js\":76,\"readable-stream/passthrough.js\":82,\"readable-stream/readable.js\":83,\"readable-stream/transform.js\":84,\"readable-stream/writable.js\":85}],89:[function(require,module,exports){\r\n(function (global){\r\nvar ClientRequest = require('./lib/request')\r\nvar response = require('./lib/response')\r\nvar extend = require('xtend')\r\nvar statusCodes = require('builtin-status-codes')\r\nvar url = require('url')\r\n\r\nvar http = exports\r\n\r\nhttp.request = function (opts, cb) {\r\n\tif (typeof opts === 'string')\r\n\t\topts = url.parse(opts)\r\n\telse\r\n\t\topts = extend(opts)\r\n\r\n\t// Normally, the page is loaded from http or https, so not specifying a protocol\r\n\t// will result in a (valid) protocol-relative url. However, this won't work if\r\n\t// the protocol is something else, like 'file:'\r\n\tvar defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''\r\n\r\n\tvar protocol = opts.protocol || defaultProtocol\r\n\tvar host = opts.hostname || opts.host\r\n\tvar port = opts.port\r\n\tvar path = opts.path || '/'\r\n\r\n\t// Necessary for IPv6 addresses\r\n\tif (host && host.indexOf(':') !== -1)\r\n\t\thost = '[' + host + ']'\r\n\r\n\t// This may be a relative url. The browser should always be able to interpret it correctly.\r\n\topts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path\r\n\topts.method = (opts.method || 'GET').toUpperCase()\r\n\topts.headers = opts.headers || {}\r\n\r\n\t// Also valid opts.auth, opts.mode\r\n\r\n\tvar req = new ClientRequest(opts)\r\n\tif (cb)\r\n\t\treq.on('response', cb)\r\n\treturn req\r\n}\r\n\r\nhttp.get = function get (opts, cb) {\r\n\tvar req = http.request(opts, cb)\r\n\treq.end()\r\n\treturn req\r\n}\r\n\r\nhttp.ClientRequest = ClientRequest\r\nhttp.IncomingMessage = response.IncomingMessage\r\n\r\nhttp.Agent = function () {}\r\nhttp.Agent.defaultMaxSockets = 4\r\n\r\nhttp.globalAgent = new http.Agent()\r\n\r\nhttp.STATUS_CODES = statusCodes\r\n\r\nhttp.METHODS = [\r\n\t'CHECKOUT',\r\n\t'CONNECT',\r\n\t'COPY',\r\n\t'DELETE',\r\n\t'GET',\r\n\t'HEAD',\r\n\t'LOCK',\r\n\t'M-SEARCH',\r\n\t'MERGE',\r\n\t'MKACTIVITY',\r\n\t'MKCOL',\r\n\t'MOVE',\r\n\t'NOTIFY',\r\n\t'OPTIONS',\r\n\t'PATCH',\r\n\t'POST',\r\n\t'PROPFIND',\r\n\t'PROPPATCH',\r\n\t'PURGE',\r\n\t'PUT',\r\n\t'REPORT',\r\n\t'SEARCH',\r\n\t'SUBSCRIBE',\r\n\t'TRACE',\r\n\t'UNLOCK',\r\n\t'UNSUBSCRIBE'\r\n]\r\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\r\n},{\"./lib/request\":91,\"./lib/response\":92,\"builtin-status-codes\":57,\"url\":112,\"xtend\":217}],90:[function(require,module,exports){\r\n(function (global){\r\nexports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)\r\n\r\nexports.writableStream = isFunction(global.WritableStream)\r\n\r\nexports.abortController = isFunction(global.AbortController)\r\n\r\n// The xhr request to example.com may violate some restrictive CSP configurations,\r\n// so if we're running in a browser that supports `fetch`, avoid calling getXHR()\r\n// and assume support for certain features below.\r\nvar xhr\r\nfunction getXHR () {\r\n\t// Cache the xhr value\r\n\tif (xhr !== undefined) return xhr\r\n\r\n\tif (global.XMLHttpRequest) {\r\n\t\txhr = new global.XMLHttpRequest()\r\n\t\t// If XDomainRequest is available (ie only, where xhr might not work\r\n\t\t// cross domain), use the page location. Otherwise use example.com\r\n\t\t// Note: this doesn't actually make an http request.\r\n\t\ttry {\r\n\t\t\txhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')\r\n\t\t} catch(e) {\r\n\t\t\txhr = null\r\n\t\t}\r\n\t} else {\r\n\t\t// Service workers don't have XHR\r\n\t\txhr = null\r\n\t}\r\n\treturn xhr\r\n}\r\n\r\nfunction checkTypeSupport (type) {\r\n\tvar xhr = getXHR()\r\n\tif (!xhr) return false\r\n\ttry {\r\n\t\txhr.responseType = type\r\n\t\treturn xhr.responseType === type\r\n\t} catch (e) {}\r\n\treturn false\r\n}\r\n\r\n// If fetch is supported, then arraybuffer will be supported too. Skip calling\r\n// checkTypeSupport(), since that calls getXHR().\r\nexports.arraybuffer = exports.fetch || checkTypeSupport('arraybuffer')\r\n\r\n// These next two tests unavoidably show warnings in Chrome. Since fetch will always\r\n// be used if it's available, just return false for these to avoid the warnings.\r\nexports.msstream = !exports.fetch && checkTypeSupport('ms-stream')\r\nexports.mozchunkedarraybuffer = !exports.fetch && checkTypeSupport('moz-chunked-arraybuffer')\r\n\r\n// If fetch is supported, then overrideMimeType will be supported too. Skip calling\r\n// getXHR().\r\nexports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)\r\n\r\nfunction isFunction (value) {\r\n\treturn typeof value === 'function'\r\n}\r\n\r\nxhr = null // Help gc\r\n\r\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\r\n},{}],91:[function(require,module,exports){\r\n(function (process,global,Buffer){\r\nvar capability = require('./capability')\r\nvar inherits = require('inherits')\r\nvar response = require('./response')\r\nvar stream = require('readable-stream')\r\n\r\nvar IncomingMessage = response.IncomingMessage\r\nvar rStates = response.readyStates\r\n\r\nfunction decideMode (preferBinary, useFetch) {\r\n\tif (capability.fetch && useFetch) {\r\n\t\treturn 'fetch'\r\n\t} else if (capability.mozchunkedarraybuffer) {\r\n\t\treturn 'moz-chunked-arraybuffer'\r\n\t} else if (capability.msstream) {\r\n\t\treturn 'ms-stream'\r\n\t} else if (capability.arraybuffer && preferBinary) {\r\n\t\treturn 'arraybuffer'\r\n\t} else {\r\n\t\treturn 'text'\r\n\t}\r\n}\r\n\r\nvar ClientRequest = module.exports = function (opts) {\r\n\tvar self = this\r\n\tstream.Writable.call(self)\r\n\r\n\tself._opts = opts\r\n\tself._body = []\r\n\tself._headers = {}\r\n\tif (opts.auth)\r\n\t\tself.setHeader('Authorization', 'Basic ' + Buffer.from(opts.auth).toString('base64'))\r\n\tObject.keys(opts.headers).forEach(function (name) {\r\n\t\tself.setHeader(name, opts.headers[name])\r\n\t})\r\n\r\n\tvar preferBinary\r\n\tvar useFetch = true\r\n\tif (opts.mode === 'disable-fetch' || ('requestTimeout' in opts && !capability.abortController)) {\r\n\t\t// If the use of XHR should be preferred. Not typically needed.\r\n\t\tuseFetch = false\r\n\t\tpreferBinary = true\r\n\t} else if (opts.mode === 'prefer-streaming') {\r\n\t\t// If streaming is a high priority but binary compatibility and\r\n\t\t// the accuracy of the 'content-type' header aren't\r\n\t\tpreferBinary = false\r\n\t} else if (opts.mode === 'allow-wrong-content-type') {\r\n\t\t// If streaming is more important than preserving the 'content-type' header\r\n\t\tpreferBinary = !capability.overrideMimeType\r\n\t} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {\r\n\t\t// Use binary if text streaming may corrupt data or the content-type header, or for speed\r\n\t\tpreferBinary = true\r\n\t} else {\r\n\t\tthrow new Error('Invalid value for opts.mode')\r\n\t}\r\n\tself._mode = decideMode(preferBinary, useFetch)\r\n\tself._fetchTimer = null\r\n\r\n\tself.on('finish', function () {\r\n\t\tself._onFinish()\r\n\t})\r\n}\r\n\r\ninherits(ClientRequest, stream.Writable)\r\n\r\nClientRequest.prototype.setHeader = function (name, value) {\r\n\tvar self = this\r\n\tvar lowerName = name.toLowerCase()\r\n\t// This check is not necessary, but it prevents warnings from browsers about setting unsafe\r\n\t// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but\r\n\t// http-browserify did it, so I will too.\r\n\tif (unsafeHeaders.indexOf(lowerName) !== -1)\r\n\t\treturn\r\n\r\n\tself._headers[lowerName] = {\r\n\t\tname: name,\r\n\t\tvalue: value\r\n\t}\r\n}\r\n\r\nClientRequest.prototype.getHeader = function (name) {\r\n\tvar header = this._headers[name.toLowerCase()]\r\n\tif (header)\r\n\t\treturn header.value\r\n\treturn null\r\n}\r\n\r\nClientRequest.prototype.removeHeader = function (name) {\r\n\tvar self = this\r\n\tdelete self._headers[name.toLowerCase()]\r\n}\r\n\r\nClientRequest.prototype._onFinish = function () {\r\n\tvar self = this\r\n\r\n\tif (self._destroyed)\r\n\t\treturn\r\n\tvar opts = self._opts\r\n\r\n\tvar headersObj = self._headers\r\n\tvar body = null\r\n\tif (opts.method !== 'GET' && opts.method !== 'HEAD') {\r\n        body = new Blob(self._body, {\r\n            type: (headersObj['content-type'] || {}).value || ''\r\n        });\r\n    }\r\n\r\n\t// create flattened list of headers\r\n\tvar headersList = []\r\n\tObject.keys(headersObj).forEach(function (keyName) {\r\n\t\tvar name = headersObj[keyName].name\r\n\t\tvar value = headersObj[keyName].value\r\n\t\tif (Array.isArray(value)) {\r\n\t\t\tvalue.forEach(function (v) {\r\n\t\t\t\theadersList.push([name, v])\r\n\t\t\t})\r\n\t\t} else {\r\n\t\t\theadersList.push([name, value])\r\n\t\t}\r\n\t})\r\n\r\n\tif (self._mode === 'fetch') {\r\n\t\tvar signal = null\r\n\t\tvar fetchTimer = null\r\n\t\tif (capability.abortController) {\r\n\t\t\tvar controller = new AbortController()\r\n\t\t\tsignal = controller.signal\r\n\t\t\tself._fetchAbortController = controller\r\n\r\n\t\t\tif ('requestTimeout' in opts && opts.requestTimeout !== 0) {\r\n\t\t\t\tself._fetchTimer = global.setTimeout(function () {\r\n\t\t\t\t\tself.emit('requestTimeout')\r\n\t\t\t\t\tif (self._fetchAbortController)\r\n\t\t\t\t\t\tself._fetchAbortController.abort()\r\n\t\t\t\t}, opts.requestTimeout)\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tglobal.fetch(self._opts.url, {\r\n\t\t\tmethod: self._opts.method,\r\n\t\t\theaders: headersList,\r\n\t\t\tbody: body || undefined,\r\n\t\t\tmode: 'cors',\r\n\t\t\tcredentials: opts.withCredentials ? 'include' : 'same-origin',\r\n\t\t\tsignal: signal\r\n\t\t}).then(function (response) {\r\n\t\t\tself._fetchResponse = response\r\n\t\t\tself._connect()\r\n\t\t}, function (reason) {\r\n\t\t\tglobal.clearTimeout(self._fetchTimer)\r\n\t\t\tif (!self._destroyed)\r\n\t\t\t\tself.emit('error', reason)\r\n\t\t})\r\n\t} else {\r\n\t\tvar xhr = self._xhr = new global.XMLHttpRequest()\r\n\t\ttry {\r\n\t\t\txhr.open(self._opts.method, self._opts.url, true)\r\n\t\t} catch (err) {\r\n\t\t\tprocess.nextTick(function () {\r\n\t\t\t\tself.emit('error', err)\r\n\t\t\t})\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\t// Can't set responseType on really old browsers\r\n\t\tif ('responseType' in xhr)\r\n\t\t\txhr.responseType = self._mode\r\n\r\n\t\tif ('withCredentials' in xhr)\r\n\t\t\txhr.withCredentials = !!opts.withCredentials\r\n\r\n\t\tif (self._mode === 'text' && 'overrideMimeType' in xhr)\r\n\t\t\txhr.overrideMimeType('text/plain; charset=x-user-defined')\r\n\r\n\t\tif ('requestTimeout' in opts) {\r\n\t\t\txhr.timeout = opts.requestTimeout\r\n\t\t\txhr.ontimeout = function () {\r\n\t\t\t\tself.emit('requestTimeout')\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\theadersList.forEach(function (header) {\r\n\t\t\txhr.setRequestHeader(header[0], header[1])\r\n\t\t})\r\n\r\n\t\tself._response = null\r\n\t\txhr.onreadystatechange = function () {\r\n\t\t\tswitch (xhr.readyState) {\r\n\t\t\t\tcase rStates.LOADING:\r\n\t\t\t\tcase rStates.DONE:\r\n\t\t\t\t\tself._onXHRProgress()\r\n\t\t\t\t\tbreak\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Necessary for streaming in Firefox, since xhr.response is ONLY defined\r\n\t\t// in onprogress, not in onreadystatechange with xhr.readyState = 3\r\n\t\tif (self._mode === 'moz-chunked-arraybuffer') {\r\n\t\t\txhr.onprogress = function () {\r\n\t\t\t\tself._onXHRProgress()\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\txhr.onerror = function () {\r\n\t\t\tif (self._destroyed)\r\n\t\t\t\treturn\r\n\t\t\tself.emit('error', new Error('XHR error'))\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\txhr.send(body)\r\n\t\t} catch (err) {\r\n\t\t\tprocess.nextTick(function () {\r\n\t\t\t\tself.emit('error', err)\r\n\t\t\t})\r\n\t\t\treturn\r\n\t\t}\r\n\t}\r\n}\r\n\r\n/**\r\n * Checks if xhr.status is readable and non-zero, indicating no error.\r\n * Even though the spec says it should be available in readyState 3,\r\n * accessing it throws an exception in IE8\r\n */\r\nfunction statusValid (xhr) {\r\n\ttry {\r\n\t\tvar status = xhr.status\r\n\t\treturn (status !== null && status !== 0)\r\n\t} catch (e) {\r\n\t\treturn false\r\n\t}\r\n}\r\n\r\nClientRequest.prototype._onXHRProgress = function () {\r\n\tvar self = this\r\n\r\n\tif (!statusValid(self._xhr) || self._destroyed)\r\n\t\treturn\r\n\r\n\tif (!self._response)\r\n\t\tself._connect()\r\n\r\n\tself._response._onXHRProgress()\r\n}\r\n\r\nClientRequest.prototype._connect = function () {\r\n\tvar self = this\r\n\r\n\tif (self._destroyed)\r\n\t\treturn\r\n\r\n\tself._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._fetchTimer)\r\n\tself._response.on('error', function(err) {\r\n\t\tself.emit('error', err)\r\n\t})\r\n\r\n\tself.emit('response', self._response)\r\n}\r\n\r\nClientRequest.prototype._write = function (chunk, encoding, cb) {\r\n\tvar self = this\r\n\r\n\tself._body.push(chunk)\r\n\tcb()\r\n}\r\n\r\nClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {\r\n\tvar self = this\r\n\tself._destroyed = true\r\n\tglobal.clearTimeout(self._fetchTimer)\r\n\tif (self._response)\r\n\t\tself._response._destroyed = true\r\n\tif (self._xhr)\r\n\t\tself._xhr.abort()\r\n\telse if (self._fetchAbortController)\r\n\t\tself._fetchAbortController.abort()\r\n}\r\n\r\nClientRequest.prototype.end = function (data, encoding, cb) {\r\n\tvar self = this\r\n\tif (typeof data === 'function') {\r\n\t\tcb = data\r\n\t\tdata = undefined\r\n\t}\r\n\r\n\tstream.Writable.prototype.end.call(self, data, encoding, cb)\r\n}\r\n\r\nClientRequest.prototype.flushHeaders = function () {}\r\nClientRequest.prototype.setTimeout = function () {}\r\nClientRequest.prototype.setNoDelay = function () {}\r\nClientRequest.prototype.setSocketKeepAlive = function () {}\r\n\r\n// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method\r\nvar unsafeHeaders = [\r\n\t'accept-charset',\r\n\t'accept-encoding',\r\n\t'access-control-request-headers',\r\n\t'access-control-request-method',\r\n\t'connection',\r\n\t'content-length',\r\n\t'cookie',\r\n\t'cookie2',\r\n\t'date',\r\n\t'dnt',\r\n\t'expect',\r\n\t'host',\r\n\t'keep-alive',\r\n\t'origin',\r\n\t'referer',\r\n\t'te',\r\n\t'trailer',\r\n\t'transfer-encoding',\r\n\t'upgrade',\r\n\t'via'\r\n]\r\n\r\n}).call(this,require('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {},require(\"buffer\").Buffer)\r\n},{\"./capability\":90,\"./response\":92,\"_process\":72,\"buffer\":56,\"inherits\":64,\"readable-stream\":107}],92:[function(require,module,exports){\r\n(function (process,global,Buffer){\r\nvar capability = require('./capability')\r\nvar inherits = require('inherits')\r\nvar stream = require('readable-stream')\r\n\r\nvar rStates = exports.readyStates = {\r\n\tUNSENT: 0,\r\n\tOPENED: 1,\r\n\tHEADERS_RECEIVED: 2,\r\n\tLOADING: 3,\r\n\tDONE: 4\r\n}\r\n\r\nvar IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, fetchTimer) {\r\n\tvar self = this\r\n\tstream.Readable.call(self)\r\n\r\n\tself._mode = mode\r\n\tself.headers = {}\r\n\tself.rawHeaders = []\r\n\tself.trailers = {}\r\n\tself.rawTrailers = []\r\n\r\n\t// Fake the 'close' event, but only once 'end' fires\r\n\tself.on('end', function () {\r\n\t\t// The nextTick is necessary to prevent the 'request' module from causing an infinite loop\r\n\t\tprocess.nextTick(function () {\r\n\t\t\tself.emit('close')\r\n\t\t})\r\n\t})\r\n\r\n\tif (mode === 'fetch') {\r\n\t\tself._fetchResponse = response\r\n\r\n\t\tself.url = response.url\r\n\t\tself.statusCode = response.status\r\n\t\tself.statusMessage = response.statusText\r\n\t\t\r\n\t\tresponse.headers.forEach(function (header, key){\r\n\t\t\tself.headers[key.toLowerCase()] = header\r\n\t\t\tself.rawHeaders.push(key, header)\r\n\t\t})\r\n\r\n\t\tif (capability.writableStream) {\r\n\t\t\tvar writable = new WritableStream({\r\n\t\t\t\twrite: function (chunk) {\r\n\t\t\t\t\treturn new Promise(function (resolve, reject) {\r\n\t\t\t\t\t\tif (self._destroyed) {\r\n\t\t\t\t\t\t\treject()\r\n\t\t\t\t\t\t} else if(self.push(Buffer.from(chunk))) {\r\n\t\t\t\t\t\t\tresolve()\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tself._resumeFetch = resolve\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t},\r\n\t\t\t\tclose: function () {\r\n\t\t\t\t\tglobal.clearTimeout(fetchTimer)\r\n\t\t\t\t\tif (!self._destroyed)\r\n\t\t\t\t\t\tself.push(null)\r\n\t\t\t\t},\r\n\t\t\t\tabort: function (err) {\r\n\t\t\t\t\tif (!self._destroyed)\r\n\t\t\t\t\t\tself.emit('error', err)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\r\n\t\t\ttry {\r\n\t\t\t\tresponse.body.pipeTo(writable).catch(function (err) {\r\n\t\t\t\t\tglobal.clearTimeout(fetchTimer)\r\n\t\t\t\t\tif (!self._destroyed)\r\n\t\t\t\t\t\tself.emit('error', err)\r\n\t\t\t\t})\r\n\t\t\t\treturn\r\n\t\t\t} catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this\r\n\t\t}\r\n\t\t// fallback for when writableStream or pipeTo aren't available\r\n\t\tvar reader = response.body.getReader()\r\n\t\tfunction read () {\r\n\t\t\treader.read().then(function (result) {\r\n\t\t\t\tif (self._destroyed)\r\n\t\t\t\t\treturn\r\n\t\t\t\tif (result.done) {\r\n\t\t\t\t\tglobal.clearTimeout(fetchTimer)\r\n\t\t\t\t\tself.push(null)\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tself.push(Buffer.from(result.value))\r\n\t\t\t\tread()\r\n\t\t\t}).catch(function (err) {\r\n\t\t\t\tglobal.clearTimeout(fetchTimer)\r\n\t\t\t\tif (!self._destroyed)\r\n\t\t\t\t\tself.emit('error', err)\r\n\t\t\t})\r\n\t\t}\r\n\t\tread()\r\n\t} else {\r\n\t\tself._xhr = xhr\r\n\t\tself._pos = 0\r\n\r\n\t\tself.url = xhr.responseURL\r\n\t\tself.statusCode = xhr.status\r\n\t\tself.statusMessage = xhr.statusText\r\n\t\tvar headers = xhr.getAllResponseHeaders().split(/\\r?\\n/)\r\n\t\theaders.forEach(function (header) {\r\n\t\t\tvar matches = header.match(/^([^:]+):\\s*(.*)/)\r\n\t\t\tif (matches) {\r\n\t\t\t\tvar key = matches[1].toLowerCase()\r\n\t\t\t\tif (key === 'set-cookie') {\r\n\t\t\t\t\tif (self.headers[key] === undefined) {\r\n\t\t\t\t\t\tself.headers[key] = []\r\n\t\t\t\t\t}\r\n\t\t\t\t\tself.headers[key].push(matches[2])\r\n\t\t\t\t} else if (self.headers[key] !== undefined) {\r\n\t\t\t\t\tself.headers[key] += ', ' + matches[2]\r\n\t\t\t\t} else {\r\n\t\t\t\t\tself.headers[key] = matches[2]\r\n\t\t\t\t}\r\n\t\t\t\tself.rawHeaders.push(matches[1], matches[2])\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\tself._charset = 'x-user-defined'\r\n\t\tif (!capability.overrideMimeType) {\r\n\t\t\tvar mimeType = self.rawHeaders['mime-type']\r\n\t\t\tif (mimeType) {\r\n\t\t\t\tvar charsetMatch = mimeType.match(/;\\s*charset=([^;])(;|$)/)\r\n\t\t\t\tif (charsetMatch) {\r\n\t\t\t\t\tself._charset = charsetMatch[1].toLowerCase()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!self._charset)\r\n\t\t\t\tself._charset = 'utf-8' // best guess\r\n\t\t}\r\n\t}\r\n}\r\n\r\ninherits(IncomingMessage, stream.Readable)\r\n\r\nIncomingMessage.prototype._read = function () {\r\n\tvar self = this\r\n\r\n\tvar resolve = self._resumeFetch\r\n\tif (resolve) {\r\n\t\tself._resumeFetch = null\r\n\t\tresolve()\r\n\t}\r\n}\r\n\r\nIncomingMessage.prototype._onXHRProgress = function () {\r\n\tvar self = this\r\n\r\n\tvar xhr = self._xhr\r\n\r\n\tvar response = null\r\n\tswitch (self._mode) {\r\n\t\tcase 'text':\r\n\t\t\tresponse = xhr.responseText\r\n\t\t\tif (response.length > self._pos) {\r\n\t\t\t\tvar newData = response.substr(self._pos)\r\n\t\t\t\tif (self._charset === 'x-user-defined') {\r\n\t\t\t\t\tvar buffer = Buffer.alloc(newData.length)\r\n\t\t\t\t\tfor (var i = 0; i < newData.length; i++)\r\n\t\t\t\t\t\tbuffer[i] = newData.charCodeAt(i) & 0xff\r\n\r\n\t\t\t\t\tself.push(buffer)\r\n\t\t\t\t} else {\r\n\t\t\t\t\tself.push(newData, self._charset)\r\n\t\t\t\t}\r\n\t\t\t\tself._pos = response.length\r\n\t\t\t}\r\n\t\t\tbreak\r\n\t\tcase 'arraybuffer':\r\n\t\t\tif (xhr.readyState !== rStates.DONE || !xhr.response)\r\n\t\t\t\tbreak\r\n\t\t\tresponse = xhr.response\r\n\t\t\tself.push(Buffer.from(new Uint8Array(response)))\r\n\t\t\tbreak\r\n\t\tcase 'moz-chunked-arraybuffer': // take whole\r\n\t\t\tresponse = xhr.response\r\n\t\t\tif (xhr.readyState !== rStates.LOADING || !response)\r\n\t\t\t\tbreak\r\n\t\t\tself.push(Buffer.from(new Uint8Array(response)))\r\n\t\t\tbreak\r\n\t\tcase 'ms-stream':\r\n\t\t\tresponse = xhr.response\r\n\t\t\tif (xhr.readyState !== rStates.LOADING)\r\n\t\t\t\tbreak\r\n\t\t\tvar reader = new global.MSStreamReader()\r\n\t\t\treader.onprogress = function () {\r\n\t\t\t\tif (reader.result.byteLength > self._pos) {\r\n\t\t\t\t\tself.push(Buffer.from(new Uint8Array(reader.result.slice(self._pos))))\r\n\t\t\t\t\tself._pos = reader.result.byteLength\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.onload = function () {\r\n\t\t\t\tself.push(null)\r\n\t\t\t}\r\n\t\t\t// reader.onerror = ??? // TODO: this\r\n\t\t\treader.readAsArrayBuffer(response)\r\n\t\t\tbreak\r\n\t}\r\n\r\n\t// The ms-stream case handles end separately in reader.onload()\r\n\tif (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {\r\n\t\tself.push(null)\r\n\t}\r\n}\r\n\r\n}).call(this,require('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {},require(\"buffer\").Buffer)\r\n},{\"./capability\":90,\"_process\":72,\"buffer\":56,\"inherits\":64,\"readable-stream\":107}],93:[function(require,module,exports){\r\n'use strict';\r\n\r\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\r\n\r\nvar codes = {};\r\n\r\nfunction createErrorType(code, message, Base) {\r\n  if (!Base) {\r\n    Base = Error;\r\n  }\r\n\r\n  function getMessage(arg1, arg2, arg3) {\r\n    if (typeof message === 'string') {\r\n      return message;\r\n    } else {\r\n      return message(arg1, arg2, arg3);\r\n    }\r\n  }\r\n\r\n  var NodeError =\r\n  /*#__PURE__*/\r\n  function (_Base) {\r\n    _inheritsLoose(NodeError, _Base);\r\n\r\n    function NodeError(arg1, arg2, arg3) {\r\n      return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;\r\n    }\r\n\r\n    return NodeError;\r\n  }(Base);\r\n\r\n  NodeError.prototype.name = Base.name;\r\n  NodeError.prototype.code = code;\r\n  codes[code] = NodeError;\r\n} // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js\r\n\r\n\r\nfunction oneOf(expected, thing) {\r\n  if (Array.isArray(expected)) {\r\n    var len = expected.length;\r\n    expected = expected.map(function (i) {\r\n      return String(i);\r\n    });\r\n\r\n    if (len > 2) {\r\n      return \"one of \".concat(thing, \" \").concat(expected.slice(0, len - 1).join(', '), \", or \") + expected[len - 1];\r\n    } else if (len === 2) {\r\n      return \"one of \".concat(thing, \" \").concat(expected[0], \" or \").concat(expected[1]);\r\n    } else {\r\n      return \"of \".concat(thing, \" \").concat(expected[0]);\r\n    }\r\n  } else {\r\n    return \"of \".concat(thing, \" \").concat(String(expected));\r\n  }\r\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\r\n\r\n\r\nfunction startsWith(str, search, pos) {\r\n  return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\r\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\r\n\r\n\r\nfunction endsWith(str, search, this_len) {\r\n  if (this_len === undefined || this_len > str.length) {\r\n    this_len = str.length;\r\n  }\r\n\r\n  return str.substring(this_len - search.length, this_len) === search;\r\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\r\n\r\n\r\nfunction includes(str, search, start) {\r\n  if (typeof start !== 'number') {\r\n    start = 0;\r\n  }\r\n\r\n  if (start + search.length > str.length) {\r\n    return false;\r\n  } else {\r\n    return str.indexOf(search, start) !== -1;\r\n  }\r\n}\r\n\r\ncreateErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {\r\n  return 'The value \"' + value + '\" is invalid for option \"' + name + '\"';\r\n}, TypeError);\r\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\r\n  // determiner: 'must be' or 'must not be'\r\n  var determiner;\r\n\r\n  if (typeof expected === 'string' && startsWith(expected, 'not ')) {\r\n    determiner = 'must not be';\r\n    expected = expected.replace(/^not /, '');\r\n  } else {\r\n    determiner = 'must be';\r\n  }\r\n\r\n  var msg;\r\n\r\n  if (endsWith(name, ' argument')) {\r\n    // For cases like 'first argument'\r\n    msg = \"The \".concat(name, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\r\n  } else {\r\n    var type = includes(name, '.') ? 'property' : 'argument';\r\n    msg = \"The \\\"\".concat(name, \"\\\" \").concat(type, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\r\n  }\r\n\r\n  msg += \". Received type \".concat(typeof actual);\r\n  return msg;\r\n}, TypeError);\r\ncreateErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');\r\ncreateErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {\r\n  return 'The ' + name + ' method is not implemented';\r\n});\r\ncreateErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');\r\ncreateErrorType('ERR_STREAM_DESTROYED', function (name) {\r\n  return 'Cannot call ' + name + ' after a stream was destroyed';\r\n});\r\ncreateErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');\r\ncreateErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');\r\ncreateErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');\r\ncreateErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);\r\ncreateErrorType('ERR_UNKNOWN_ENCODING', function (arg) {\r\n  return 'Unknown encoding: ' + arg;\r\n}, TypeError);\r\ncreateErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');\r\nmodule.exports.codes = codes;\r\n\r\n},{}],94:[function(require,module,exports){\r\n(function (process){\r\n'use strict'\r\n\r\nvar experimentalWarnings = new Set();\r\n\r\nfunction emitExperimentalWarning(feature) {\r\n  if (experimentalWarnings.has(feature)) return;\r\n  var msg = feature + ' is an experimental feature. This feature could ' +\r\n       'change at any time';\r\n  experimentalWarnings.add(feature);\r\n  process.emitWarning(msg, 'ExperimentalWarning');\r\n}\r\n\r\nfunction noop() {}\r\n\r\nmodule.exports.emitExperimentalWarning = process.emitWarning\r\n  ? emitExperimentalWarning\r\n  : noop;\r\n\r\n}).call(this,require('_process'))\r\n},{\"_process\":72}],95:[function(require,module,exports){\r\n(function (process){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n// a duplex stream is just a stream that is both readable and writable.\r\n// Since JS doesn't have multiple prototypal inheritance, this class\r\n// prototypally inherits from Readable, and then parasitically from\r\n// Writable.\r\n'use strict';\r\n/*<replacement>*/\r\n\r\nvar objectKeys = Object.keys || function (obj) {\r\n  var keys = [];\r\n\r\n  for (var key in obj) {\r\n    keys.push(key);\r\n  }\r\n\r\n  return keys;\r\n};\r\n/*</replacement>*/\r\n\r\n\r\nmodule.exports = Duplex;\r\n\r\nvar Readable = require('./_stream_readable');\r\n\r\nvar Writable = require('./_stream_writable');\r\n\r\nrequire('inherits')(Duplex, Readable);\r\n\r\n{\r\n  // Allow the keys array to be GC'ed.\r\n  var keys = objectKeys(Writable.prototype);\r\n\r\n  for (var v = 0; v < keys.length; v++) {\r\n    var method = keys[v];\r\n    if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\r\n  }\r\n}\r\n\r\nfunction Duplex(options) {\r\n  if (!(this instanceof Duplex)) return new Duplex(options);\r\n  Readable.call(this, options);\r\n  Writable.call(this, options);\r\n  this.allowHalfOpen = true;\r\n\r\n  if (options) {\r\n    if (options.readable === false) this.readable = false;\r\n    if (options.writable === false) this.writable = false;\r\n\r\n    if (options.allowHalfOpen === false) {\r\n      this.allowHalfOpen = false;\r\n      this.once('end', onend);\r\n    }\r\n  }\r\n}\r\n\r\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._writableState.highWaterMark;\r\n  }\r\n});\r\nObject.defineProperty(Duplex.prototype, 'writableBuffer', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._writableState && this._writableState.getBuffer();\r\n  }\r\n});\r\nObject.defineProperty(Duplex.prototype, 'writableLength', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._writableState.length;\r\n  }\r\n}); // the no-half-open enforcer\r\n\r\nfunction onend() {\r\n  // If the writable side ended, then we're ok.\r\n  if (this._writableState.ended) return; // no more data can be written.\r\n  // But allow more writes to happen in this tick.\r\n\r\n  process.nextTick(onEndNT, this);\r\n}\r\n\r\nfunction onEndNT(self) {\r\n  self.end();\r\n}\r\n\r\nObject.defineProperty(Duplex.prototype, 'destroyed', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    if (this._readableState === undefined || this._writableState === undefined) {\r\n      return false;\r\n    }\r\n\r\n    return this._readableState.destroyed && this._writableState.destroyed;\r\n  },\r\n  set: function set(value) {\r\n    // we ignore the value if the stream\r\n    // has not been initialized yet\r\n    if (this._readableState === undefined || this._writableState === undefined) {\r\n      return;\r\n    } // backward compatibility, the user is explicitly\r\n    // managing destroyed\r\n\r\n\r\n    this._readableState.destroyed = value;\r\n    this._writableState.destroyed = value;\r\n  }\r\n});\r\n}).call(this,require('_process'))\r\n},{\"./_stream_readable\":97,\"./_stream_writable\":99,\"_process\":72,\"inherits\":64}],96:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n// a passthrough stream.\r\n// basically just the most minimal sort of Transform stream.\r\n// Every written chunk gets output as-is.\r\n'use strict';\r\n\r\nmodule.exports = PassThrough;\r\n\r\nvar Transform = require('./_stream_transform');\r\n\r\nrequire('inherits')(PassThrough, Transform);\r\n\r\nfunction PassThrough(options) {\r\n  if (!(this instanceof PassThrough)) return new PassThrough(options);\r\n  Transform.call(this, options);\r\n}\r\n\r\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\r\n  cb(null, chunk);\r\n};\r\n},{\"./_stream_transform\":98,\"inherits\":64}],97:[function(require,module,exports){\r\n(function (process,global){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n'use strict';\r\n\r\nmodule.exports = Readable;\r\n/*<replacement>*/\r\n\r\nvar Duplex;\r\n/*</replacement>*/\r\n\r\nReadable.ReadableState = ReadableState;\r\n/*<replacement>*/\r\n\r\nvar EE = require('events').EventEmitter;\r\n\r\nvar EElistenerCount = function EElistenerCount(emitter, type) {\r\n  return emitter.listeners(type).length;\r\n};\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\n\r\n\r\nvar Stream = require('./internal/streams/stream');\r\n/*</replacement>*/\r\n\r\n\r\nvar Buffer = require('buffer').Buffer;\r\n\r\nvar OurUint8Array = global.Uint8Array || function () {};\r\n\r\nfunction _uint8ArrayToBuffer(chunk) {\r\n  return Buffer.from(chunk);\r\n}\r\n\r\nfunction _isUint8Array(obj) {\r\n  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\r\n}\r\n/*<replacement>*/\r\n\r\n\r\nvar debugUtil = require('util');\r\n\r\nvar debug;\r\n\r\nif (debugUtil && debugUtil.debuglog) {\r\n  debug = debugUtil.debuglog('stream');\r\n} else {\r\n  debug = function debug() {};\r\n}\r\n/*</replacement>*/\r\n\r\n\r\nvar BufferList = require('./internal/streams/buffer_list');\r\n\r\nvar destroyImpl = require('./internal/streams/destroy');\r\n\r\nvar _require = require('./internal/streams/state'),\r\n    getHighWaterMark = _require.getHighWaterMark;\r\n\r\nvar _require$codes = require('../errors').codes,\r\n    ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\r\n    ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\r\n    ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\r\n    ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;\r\n\r\nvar _require2 = require('../experimentalWarning'),\r\n    emitExperimentalWarning = _require2.emitExperimentalWarning; // Lazy loaded to improve the startup performance.\r\n\r\n\r\nvar StringDecoder;\r\nvar createReadableStreamAsyncIterator;\r\n\r\nrequire('inherits')(Readable, Stream);\r\n\r\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\r\n\r\nfunction prependListener(emitter, event, fn) {\r\n  // Sadly this is not cacheable as some libraries bundle their own\r\n  // event emitter implementation with them.\r\n  if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any\r\n  // userland ones.  NEVER DO THIS. This is here only because this code needs\r\n  // to continue to work with older versions of Node.js that do not include\r\n  // the prependListener() method. The goal is to eventually remove this hack.\r\n\r\n  if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\r\n}\r\n\r\nfunction ReadableState(options, stream, isDuplex) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n  options = options || {}; // Duplex streams are both readable and writable, but share\r\n  // the same options object.\r\n  // However, some cases require setting options to different\r\n  // values for the readable and the writable sides of the duplex stream.\r\n  // These options can be provided separately as readableXXX and writableXXX.\r\n\r\n  if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to\r\n  // make all the buffer merging and length checks go away\r\n\r\n  this.objectMode = !!options.objectMode;\r\n  if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer\r\n  // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\r\n\r\n  this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the\r\n  // linked list can remove elements from the beginning faster than\r\n  // array.shift()\r\n\r\n  this.buffer = new BufferList();\r\n  this.length = 0;\r\n  this.pipes = null;\r\n  this.pipesCount = 0;\r\n  this.flowing = null;\r\n  this.ended = false;\r\n  this.endEmitted = false;\r\n  this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted\r\n  // immediately, or on a later tick.  We set this to true at first, because\r\n  // any actions that shouldn't happen until \"later\" should generally also\r\n  // not happen before the first read call.\r\n\r\n  this.sync = true; // whenever we return null, then we set a flag to say\r\n  // that we're awaiting a 'readable' event emission.\r\n\r\n  this.needReadable = false;\r\n  this.emittedReadable = false;\r\n  this.readableListening = false;\r\n  this.resumeScheduled = false;\r\n  this.paused = true; // Should close be emitted on destroy. Defaults to true.\r\n\r\n  this.emitClose = options.emitClose !== false; // has it been destroyed\r\n\r\n  this.destroyed = false; // Crypto is kind of old and crusty.  Historically, its default string\r\n  // encoding is 'binary' so we have to make this configurable.\r\n  // Everything else in the universe uses 'utf8', though.\r\n\r\n  this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s\r\n\r\n  this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled\r\n\r\n  this.readingMore = false;\r\n  this.decoder = null;\r\n  this.encoding = null;\r\n\r\n  if (options.encoding) {\r\n    if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\r\n    this.decoder = new StringDecoder(options.encoding);\r\n    this.encoding = options.encoding;\r\n  }\r\n}\r\n\r\nfunction Readable(options) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n  if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside\r\n  // the ReadableState constructor, at least with V8 6.5\r\n\r\n  var isDuplex = this instanceof Duplex;\r\n  this._readableState = new ReadableState(options, this, isDuplex); // legacy\r\n\r\n  this.readable = true;\r\n\r\n  if (options) {\r\n    if (typeof options.read === 'function') this._read = options.read;\r\n    if (typeof options.destroy === 'function') this._destroy = options.destroy;\r\n  }\r\n\r\n  Stream.call(this);\r\n}\r\n\r\nObject.defineProperty(Readable.prototype, 'destroyed', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    if (this._readableState === undefined) {\r\n      return false;\r\n    }\r\n\r\n    return this._readableState.destroyed;\r\n  },\r\n  set: function set(value) {\r\n    // we ignore the value if the stream\r\n    // has not been initialized yet\r\n    if (!this._readableState) {\r\n      return;\r\n    } // backward compatibility, the user is explicitly\r\n    // managing destroyed\r\n\r\n\r\n    this._readableState.destroyed = value;\r\n  }\r\n});\r\nReadable.prototype.destroy = destroyImpl.destroy;\r\nReadable.prototype._undestroy = destroyImpl.undestroy;\r\n\r\nReadable.prototype._destroy = function (err, cb) {\r\n  cb(err);\r\n}; // Manually shove something into the read() buffer.\r\n// This returns true if the highWaterMark has not been hit yet,\r\n// similar to how Writable.write() returns true if you should\r\n// write() some more.\r\n\r\n\r\nReadable.prototype.push = function (chunk, encoding) {\r\n  var state = this._readableState;\r\n  var skipChunkCheck;\r\n\r\n  if (!state.objectMode) {\r\n    if (typeof chunk === 'string') {\r\n      encoding = encoding || state.defaultEncoding;\r\n\r\n      if (encoding !== state.encoding) {\r\n        chunk = Buffer.from(chunk, encoding);\r\n        encoding = '';\r\n      }\r\n\r\n      skipChunkCheck = true;\r\n    }\r\n  } else {\r\n    skipChunkCheck = true;\r\n  }\r\n\r\n  return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\r\n}; // Unshift should *always* be something directly out of read()\r\n\r\n\r\nReadable.prototype.unshift = function (chunk) {\r\n  return readableAddChunk(this, chunk, null, true, false);\r\n};\r\n\r\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\r\n  debug('readableAddChunk', chunk);\r\n  var state = stream._readableState;\r\n\r\n  if (chunk === null) {\r\n    state.reading = false;\r\n    onEofChunk(stream, state);\r\n  } else {\r\n    var er;\r\n    if (!skipChunkCheck) er = chunkInvalid(state, chunk);\r\n\r\n    if (er) {\r\n      stream.emit('error', er);\r\n    } else if (state.objectMode || chunk && chunk.length > 0) {\r\n      if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\r\n        chunk = _uint8ArrayToBuffer(chunk);\r\n      }\r\n\r\n      if (addToFront) {\r\n        if (state.endEmitted) stream.emit('error', new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\r\n      } else if (state.ended) {\r\n        stream.emit('error', new ERR_STREAM_PUSH_AFTER_EOF());\r\n      } else if (state.destroyed) {\r\n        return false;\r\n      } else {\r\n        state.reading = false;\r\n\r\n        if (state.decoder && !encoding) {\r\n          chunk = state.decoder.write(chunk);\r\n          if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\r\n        } else {\r\n          addChunk(stream, state, chunk, false);\r\n        }\r\n      }\r\n    } else if (!addToFront) {\r\n      state.reading = false;\r\n      maybeReadMore(stream, state);\r\n    }\r\n  } // We can push more data if we are below the highWaterMark.\r\n  // Also, if we have no data yet, we can stand some more bytes.\r\n  // This is to work around cases where hwm=0, such as the repl.\r\n\r\n\r\n  return !state.ended && (state.length < state.highWaterMark || state.length === 0);\r\n}\r\n\r\nfunction addChunk(stream, state, chunk, addToFront) {\r\n  if (state.flowing && state.length === 0 && !state.sync) {\r\n    state.awaitDrain = 0;\r\n    stream.emit('data', chunk);\r\n  } else {\r\n    // update the buffer info.\r\n    state.length += state.objectMode ? 1 : chunk.length;\r\n    if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\r\n    if (state.needReadable) emitReadable(stream);\r\n  }\r\n\r\n  maybeReadMore(stream, state);\r\n}\r\n\r\nfunction chunkInvalid(state, chunk) {\r\n  var er;\r\n\r\n  if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\r\n    er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\r\n  }\r\n\r\n  return er;\r\n}\r\n\r\nReadable.prototype.isPaused = function () {\r\n  return this._readableState.flowing === false;\r\n}; // backwards compatibility.\r\n\r\n\r\nReadable.prototype.setEncoding = function (enc) {\r\n  if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\r\n  this._readableState.decoder = new StringDecoder(enc); // if setEncoding(null), decoder.encoding equals utf8\r\n\r\n  this._readableState.encoding = this._readableState.decoder.encoding;\r\n  return this;\r\n}; // Don't raise the hwm > 8MB\r\n\r\n\r\nvar MAX_HWM = 0x800000;\r\n\r\nfunction computeNewHighWaterMark(n) {\r\n  if (n >= MAX_HWM) {\r\n    n = MAX_HWM;\r\n  } else {\r\n    // Get the next highest power of 2 to prevent increasing hwm excessively in\r\n    // tiny amounts\r\n    n--;\r\n    n |= n >>> 1;\r\n    n |= n >>> 2;\r\n    n |= n >>> 4;\r\n    n |= n >>> 8;\r\n    n |= n >>> 16;\r\n    n++;\r\n  }\r\n\r\n  return n;\r\n} // This function is designed to be inlinable, so please take care when making\r\n// changes to the function body.\r\n\r\n\r\nfunction howMuchToRead(n, state) {\r\n  if (n <= 0 || state.length === 0 && state.ended) return 0;\r\n  if (state.objectMode) return 1;\r\n\r\n  if (n !== n) {\r\n    // Only flow one buffer at a time\r\n    if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\r\n  } // If we're asking for more than the current hwm, then raise the hwm.\r\n\r\n\r\n  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\r\n  if (n <= state.length) return n; // Don't have enough\r\n\r\n  if (!state.ended) {\r\n    state.needReadable = true;\r\n    return 0;\r\n  }\r\n\r\n  return state.length;\r\n} // you can override either this method, or the async _read(n) below.\r\n\r\n\r\nReadable.prototype.read = function (n) {\r\n  debug('read', n);\r\n  n = parseInt(n, 10);\r\n  var state = this._readableState;\r\n  var nOrig = n;\r\n  if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we\r\n  // already have a bunch of data in the buffer, then just trigger\r\n  // the 'readable' event and move on.\r\n\r\n  if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\r\n    debug('read: emitReadable', state.length, state.ended);\r\n    if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\r\n    return null;\r\n  }\r\n\r\n  n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.\r\n\r\n  if (n === 0 && state.ended) {\r\n    if (state.length === 0) endReadable(this);\r\n    return null;\r\n  } // All the actual chunk generation logic needs to be\r\n  // *below* the call to _read.  The reason is that in certain\r\n  // synthetic stream cases, such as passthrough streams, _read\r\n  // may be a completely synchronous operation which may change\r\n  // the state of the read buffer, providing enough data when\r\n  // before there was *not* enough.\r\n  //\r\n  // So, the steps are:\r\n  // 1. Figure out what the state of things will be after we do\r\n  // a read from the buffer.\r\n  //\r\n  // 2. If that resulting state will trigger a _read, then call _read.\r\n  // Note that this may be asynchronous, or synchronous.  Yes, it is\r\n  // deeply ugly to write APIs this way, but that still doesn't mean\r\n  // that the Readable class should behave improperly, as streams are\r\n  // designed to be sync/async agnostic.\r\n  // Take note if the _read call is sync or async (ie, if the read call\r\n  // has returned yet), so that we know whether or not it's safe to emit\r\n  // 'readable' etc.\r\n  //\r\n  // 3. Actually pull the requested chunks out of the buffer and return.\r\n  // if we need a readable event, then we need to do some reading.\r\n\r\n\r\n  var doRead = state.needReadable;\r\n  debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some\r\n\r\n  if (state.length === 0 || state.length - n < state.highWaterMark) {\r\n    doRead = true;\r\n    debug('length less than watermark', doRead);\r\n  } // however, if we've ended, then there's no point, and if we're already\r\n  // reading, then it's unnecessary.\r\n\r\n\r\n  if (state.ended || state.reading) {\r\n    doRead = false;\r\n    debug('reading or ended', doRead);\r\n  } else if (doRead) {\r\n    debug('do read');\r\n    state.reading = true;\r\n    state.sync = true; // if the length is currently zero, then we *need* a readable event.\r\n\r\n    if (state.length === 0) state.needReadable = true; // call internal read method\r\n\r\n    this._read(state.highWaterMark);\r\n\r\n    state.sync = false; // If _read pushed data synchronously, then `reading` will be false,\r\n    // and we need to re-evaluate how much data we can return to the user.\r\n\r\n    if (!state.reading) n = howMuchToRead(nOrig, state);\r\n  }\r\n\r\n  var ret;\r\n  if (n > 0) ret = fromList(n, state);else ret = null;\r\n\r\n  if (ret === null) {\r\n    state.needReadable = true;\r\n    n = 0;\r\n  } else {\r\n    state.length -= n;\r\n    state.awaitDrain = 0;\r\n  }\r\n\r\n  if (state.length === 0) {\r\n    // If we have nothing in the buffer, then we want to know\r\n    // as soon as we *do* get something into the buffer.\r\n    if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.\r\n\r\n    if (nOrig !== n && state.ended) endReadable(this);\r\n  }\r\n\r\n  if (ret !== null) this.emit('data', ret);\r\n  return ret;\r\n};\r\n\r\nfunction onEofChunk(stream, state) {\r\n  if (state.ended) return;\r\n\r\n  if (state.decoder) {\r\n    var chunk = state.decoder.end();\r\n\r\n    if (chunk && chunk.length) {\r\n      state.buffer.push(chunk);\r\n      state.length += state.objectMode ? 1 : chunk.length;\r\n    }\r\n  }\r\n\r\n  state.ended = true;\r\n\r\n  if (state.sync) {\r\n    // if we are sync, wait until next tick to emit the data.\r\n    // Otherwise we risk emitting data in the flow()\r\n    // the readable code triggers during a read() call\r\n    emitReadable(stream);\r\n  } else {\r\n    // emit 'readable' now to make sure it gets picked up.\r\n    state.needReadable = false;\r\n\r\n    if (!state.emittedReadable) {\r\n      state.emittedReadable = true;\r\n      emitReadable_(stream);\r\n    }\r\n  }\r\n} // Don't emit readable right away in sync mode, because this can trigger\r\n// another read() call => stack overflow.  This way, it might trigger\r\n// a nextTick recursion warning, but that's not so bad.\r\n\r\n\r\nfunction emitReadable(stream) {\r\n  var state = stream._readableState;\r\n  state.needReadable = false;\r\n\r\n  if (!state.emittedReadable) {\r\n    debug('emitReadable', state.flowing);\r\n    state.emittedReadable = true;\r\n    process.nextTick(emitReadable_, stream);\r\n  }\r\n}\r\n\r\nfunction emitReadable_(stream) {\r\n  var state = stream._readableState;\r\n  debug('emitReadable_', state.destroyed, state.length, state.ended);\r\n\r\n  if (!state.destroyed && (state.length || state.ended)) {\r\n    stream.emit('readable');\r\n  } // The stream needs another readable event if\r\n  // 1. It is not flowing, as the flow mechanism will take\r\n  //    care of it.\r\n  // 2. It is not ended.\r\n  // 3. It is below the highWaterMark, so we can schedule\r\n  //    another readable later.\r\n\r\n\r\n  state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\r\n  flow(stream);\r\n} // at this point, the user has presumably seen the 'readable' event,\r\n// and called read() to consume some data.  that may have triggered\r\n// in turn another _read(n) call, in which case reading = true if\r\n// it's in progress.\r\n// However, if we're not ended, or reading, and the length < hwm,\r\n// then go ahead and try to read some more preemptively.\r\n\r\n\r\nfunction maybeReadMore(stream, state) {\r\n  if (!state.readingMore) {\r\n    state.readingMore = true;\r\n    process.nextTick(maybeReadMore_, stream, state);\r\n  }\r\n}\r\n\r\nfunction maybeReadMore_(stream, state) {\r\n  // Attempt to read more data if we should.\r\n  //\r\n  // The conditions for reading more data are (one of):\r\n  // - Not enough data buffered (state.length < state.highWaterMark). The loop\r\n  //   is responsible for filling the buffer with enough data if such data\r\n  //   is available. If highWaterMark is 0 and we are not in the flowing mode\r\n  //   we should _not_ attempt to buffer any extra data. We'll get more data\r\n  //   when the stream consumer calls read() instead.\r\n  // - No data in the buffer, and the stream is in flowing mode. In this mode\r\n  //   the loop below is responsible for ensuring read() is called. Failing to\r\n  //   call read here would abort the flow and there's no other mechanism for\r\n  //   continuing the flow if the stream consumer has just subscribed to the\r\n  //   'data' event.\r\n  //\r\n  // In addition to the above conditions to keep reading data, the following\r\n  // conditions prevent the data from being read:\r\n  // - The stream has ended (state.ended).\r\n  // - There is already a pending 'read' operation (state.reading). This is a\r\n  //   case where the the stream has called the implementation defined _read()\r\n  //   method, but they are processing the call asynchronously and have _not_\r\n  //   called push() with new data. In this case we skip performing more\r\n  //   read()s. The execution ends in this method again after the _read() ends\r\n  //   up calling push() with more data.\r\n  while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\r\n    var len = state.length;\r\n    debug('maybeReadMore read 0');\r\n    stream.read(0);\r\n    if (len === state.length) // didn't get any data, stop spinning.\r\n      break;\r\n  }\r\n\r\n  state.readingMore = false;\r\n} // abstract method.  to be overridden in specific implementation classes.\r\n// call cb(er, data) where data is <= n in length.\r\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\r\n// arbitrary, and perhaps not very meaningful.\r\n\r\n\r\nReadable.prototype._read = function (n) {\r\n  this.emit('error', new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\r\n};\r\n\r\nReadable.prototype.pipe = function (dest, pipeOpts) {\r\n  var src = this;\r\n  var state = this._readableState;\r\n\r\n  switch (state.pipesCount) {\r\n    case 0:\r\n      state.pipes = dest;\r\n      break;\r\n\r\n    case 1:\r\n      state.pipes = [state.pipes, dest];\r\n      break;\r\n\r\n    default:\r\n      state.pipes.push(dest);\r\n      break;\r\n  }\r\n\r\n  state.pipesCount += 1;\r\n  debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\r\n  var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\r\n  var endFn = doEnd ? onend : unpipe;\r\n  if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\r\n  dest.on('unpipe', onunpipe);\r\n\r\n  function onunpipe(readable, unpipeInfo) {\r\n    debug('onunpipe');\r\n\r\n    if (readable === src) {\r\n      if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\r\n        unpipeInfo.hasUnpiped = true;\r\n        cleanup();\r\n      }\r\n    }\r\n  }\r\n\r\n  function onend() {\r\n    debug('onend');\r\n    dest.end();\r\n  } // when the dest drains, it reduces the awaitDrain counter\r\n  // on the source.  This would be more elegant with a .once()\r\n  // handler in flow(), but adding and removing repeatedly is\r\n  // too slow.\r\n\r\n\r\n  var ondrain = pipeOnDrain(src);\r\n  dest.on('drain', ondrain);\r\n  var cleanedUp = false;\r\n\r\n  function cleanup() {\r\n    debug('cleanup'); // cleanup event handlers once the pipe is broken\r\n\r\n    dest.removeListener('close', onclose);\r\n    dest.removeListener('finish', onfinish);\r\n    dest.removeListener('drain', ondrain);\r\n    dest.removeListener('error', onerror);\r\n    dest.removeListener('unpipe', onunpipe);\r\n    src.removeListener('end', onend);\r\n    src.removeListener('end', unpipe);\r\n    src.removeListener('data', ondata);\r\n    cleanedUp = true; // if the reader is waiting for a drain event from this\r\n    // specific writer, then it would cause it to never start\r\n    // flowing again.\r\n    // So, if this is awaiting a drain, then we just call it now.\r\n    // If we don't know, then assume that we are waiting for one.\r\n\r\n    if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\r\n  }\r\n\r\n  src.on('data', ondata);\r\n\r\n  function ondata(chunk) {\r\n    debug('ondata');\r\n    var ret = dest.write(chunk);\r\n    debug('dest.write', ret);\r\n\r\n    if (ret === false) {\r\n      // If the user unpiped during `dest.write()`, it is possible\r\n      // to get stuck in a permanently paused state if that write\r\n      // also returned false.\r\n      // => Check whether `dest` is still a piping destination.\r\n      if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\r\n        debug('false write response, pause', state.awaitDrain);\r\n        state.awaitDrain++;\r\n      }\r\n\r\n      src.pause();\r\n    }\r\n  } // if the dest has an error, then stop piping into it.\r\n  // however, don't suppress the throwing behavior for this.\r\n\r\n\r\n  function onerror(er) {\r\n    debug('onerror', er);\r\n    unpipe();\r\n    dest.removeListener('error', onerror);\r\n    if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);\r\n  } // Make sure our error handler is attached before userland ones.\r\n\r\n\r\n  prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.\r\n\r\n  function onclose() {\r\n    dest.removeListener('finish', onfinish);\r\n    unpipe();\r\n  }\r\n\r\n  dest.once('close', onclose);\r\n\r\n  function onfinish() {\r\n    debug('onfinish');\r\n    dest.removeListener('close', onclose);\r\n    unpipe();\r\n  }\r\n\r\n  dest.once('finish', onfinish);\r\n\r\n  function unpipe() {\r\n    debug('unpipe');\r\n    src.unpipe(dest);\r\n  } // tell the dest that it's being piped to\r\n\r\n\r\n  dest.emit('pipe', src); // start the flow if it hasn't been started already.\r\n\r\n  if (!state.flowing) {\r\n    debug('pipe resume');\r\n    src.resume();\r\n  }\r\n\r\n  return dest;\r\n};\r\n\r\nfunction pipeOnDrain(src) {\r\n  return function pipeOnDrainFunctionResult() {\r\n    var state = src._readableState;\r\n    debug('pipeOnDrain', state.awaitDrain);\r\n    if (state.awaitDrain) state.awaitDrain--;\r\n\r\n    if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\r\n      state.flowing = true;\r\n      flow(src);\r\n    }\r\n  };\r\n}\r\n\r\nReadable.prototype.unpipe = function (dest) {\r\n  var state = this._readableState;\r\n  var unpipeInfo = {\r\n    hasUnpiped: false\r\n  }; // if we're not piping anywhere, then do nothing.\r\n\r\n  if (state.pipesCount === 0) return this; // just one destination.  most common case.\r\n\r\n  if (state.pipesCount === 1) {\r\n    // passed in one, but it's not the right one.\r\n    if (dest && dest !== state.pipes) return this;\r\n    if (!dest) dest = state.pipes; // got a match.\r\n\r\n    state.pipes = null;\r\n    state.pipesCount = 0;\r\n    state.flowing = false;\r\n    if (dest) dest.emit('unpipe', this, unpipeInfo);\r\n    return this;\r\n  } // slow case. multiple pipe destinations.\r\n\r\n\r\n  if (!dest) {\r\n    // remove all.\r\n    var dests = state.pipes;\r\n    var len = state.pipesCount;\r\n    state.pipes = null;\r\n    state.pipesCount = 0;\r\n    state.flowing = false;\r\n\r\n    for (var i = 0; i < len; i++) {\r\n      dests[i].emit('unpipe', this, {\r\n        hasUnpiped: false\r\n      });\r\n    }\r\n\r\n    return this;\r\n  } // try to find the right one.\r\n\r\n\r\n  var index = indexOf(state.pipes, dest);\r\n  if (index === -1) return this;\r\n  state.pipes.splice(index, 1);\r\n  state.pipesCount -= 1;\r\n  if (state.pipesCount === 1) state.pipes = state.pipes[0];\r\n  dest.emit('unpipe', this, unpipeInfo);\r\n  return this;\r\n}; // set up data events if they are asked for\r\n// Ensure readable listeners eventually get something\r\n\r\n\r\nReadable.prototype.on = function (ev, fn) {\r\n  var res = Stream.prototype.on.call(this, ev, fn);\r\n  var state = this._readableState;\r\n\r\n  if (ev === 'data') {\r\n    // update readableListening so that resume() may be a no-op\r\n    // a few lines down. This is needed to support once('readable').\r\n    state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused\r\n\r\n    if (state.flowing !== false) this.resume();\r\n  } else if (ev === 'readable') {\r\n    if (!state.endEmitted && !state.readableListening) {\r\n      state.readableListening = state.needReadable = true;\r\n      state.flowing = false;\r\n      state.emittedReadable = false;\r\n      debug('on readable', state.length, state.reading);\r\n\r\n      if (state.length) {\r\n        emitReadable(this);\r\n      } else if (!state.reading) {\r\n        process.nextTick(nReadingNextTick, this);\r\n      }\r\n    }\r\n  }\r\n\r\n  return res;\r\n};\r\n\r\nReadable.prototype.addListener = Readable.prototype.on;\r\n\r\nReadable.prototype.removeListener = function (ev, fn) {\r\n  var res = Stream.prototype.removeListener.call(this, ev, fn);\r\n\r\n  if (ev === 'readable') {\r\n    // We need to check if there is someone still listening to\r\n    // readable and reset the state. However this needs to happen\r\n    // after readable has been emitted but before I/O (nextTick) to\r\n    // support once('readable', fn) cycles. This means that calling\r\n    // resume within the same tick will have no\r\n    // effect.\r\n    process.nextTick(updateReadableListening, this);\r\n  }\r\n\r\n  return res;\r\n};\r\n\r\nReadable.prototype.removeAllListeners = function (ev) {\r\n  var res = Stream.prototype.removeAllListeners.apply(this, arguments);\r\n\r\n  if (ev === 'readable' || ev === undefined) {\r\n    // We need to check if there is someone still listening to\r\n    // readable and reset the state. However this needs to happen\r\n    // after readable has been emitted but before I/O (nextTick) to\r\n    // support once('readable', fn) cycles. This means that calling\r\n    // resume within the same tick will have no\r\n    // effect.\r\n    process.nextTick(updateReadableListening, this);\r\n  }\r\n\r\n  return res;\r\n};\r\n\r\nfunction updateReadableListening(self) {\r\n  var state = self._readableState;\r\n  state.readableListening = self.listenerCount('readable') > 0;\r\n\r\n  if (state.resumeScheduled && !state.paused) {\r\n    // flowing needs to be set to true now, otherwise\r\n    // the upcoming resume will not flow.\r\n    state.flowing = true; // crude way to check if we should resume\r\n  } else if (self.listenerCount('data') > 0) {\r\n    self.resume();\r\n  }\r\n}\r\n\r\nfunction nReadingNextTick(self) {\r\n  debug('readable nexttick read 0');\r\n  self.read(0);\r\n} // pause() and resume() are remnants of the legacy readable stream API\r\n// If the user uses them, then switch into old mode.\r\n\r\n\r\nReadable.prototype.resume = function () {\r\n  var state = this._readableState;\r\n\r\n  if (!state.flowing) {\r\n    debug('resume'); // we flow only if there is no one listening\r\n    // for readable, but we still have to call\r\n    // resume()\r\n\r\n    state.flowing = !state.readableListening;\r\n    resume(this, state);\r\n  }\r\n\r\n  state.paused = false;\r\n  return this;\r\n};\r\n\r\nfunction resume(stream, state) {\r\n  if (!state.resumeScheduled) {\r\n    state.resumeScheduled = true;\r\n    process.nextTick(resume_, stream, state);\r\n  }\r\n}\r\n\r\nfunction resume_(stream, state) {\r\n  debug('resume', state.reading);\r\n\r\n  if (!state.reading) {\r\n    stream.read(0);\r\n  }\r\n\r\n  state.resumeScheduled = false;\r\n  stream.emit('resume');\r\n  flow(stream);\r\n  if (state.flowing && !state.reading) stream.read(0);\r\n}\r\n\r\nReadable.prototype.pause = function () {\r\n  debug('call pause flowing=%j', this._readableState.flowing);\r\n\r\n  if (this._readableState.flowing !== false) {\r\n    debug('pause');\r\n    this._readableState.flowing = false;\r\n    this.emit('pause');\r\n  }\r\n\r\n  this._readableState.paused = true;\r\n  return this;\r\n};\r\n\r\nfunction flow(stream) {\r\n  var state = stream._readableState;\r\n  debug('flow', state.flowing);\r\n\r\n  while (state.flowing && stream.read() !== null) {\r\n    ;\r\n  }\r\n} // wrap an old-style stream as the async data source.\r\n// This is *not* part of the readable stream interface.\r\n// It is an ugly unfortunate mess of history.\r\n\r\n\r\nReadable.prototype.wrap = function (stream) {\r\n  var _this = this;\r\n\r\n  var state = this._readableState;\r\n  var paused = false;\r\n  stream.on('end', function () {\r\n    debug('wrapped end');\r\n\r\n    if (state.decoder && !state.ended) {\r\n      var chunk = state.decoder.end();\r\n      if (chunk && chunk.length) _this.push(chunk);\r\n    }\r\n\r\n    _this.push(null);\r\n  });\r\n  stream.on('data', function (chunk) {\r\n    debug('wrapped data');\r\n    if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode\r\n\r\n    if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\r\n\r\n    var ret = _this.push(chunk);\r\n\r\n    if (!ret) {\r\n      paused = true;\r\n      stream.pause();\r\n    }\r\n  }); // proxy all the other methods.\r\n  // important when wrapping filters and duplexes.\r\n\r\n  for (var i in stream) {\r\n    if (this[i] === undefined && typeof stream[i] === 'function') {\r\n      this[i] = function methodWrap(method) {\r\n        return function methodWrapReturnFunction() {\r\n          return stream[method].apply(stream, arguments);\r\n        };\r\n      }(i);\r\n    }\r\n  } // proxy certain important events.\r\n\r\n\r\n  for (var n = 0; n < kProxyEvents.length; n++) {\r\n    stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\r\n  } // when we try to consume some more bytes, simply unpause the\r\n  // underlying stream.\r\n\r\n\r\n  this._read = function (n) {\r\n    debug('wrapped _read', n);\r\n\r\n    if (paused) {\r\n      paused = false;\r\n      stream.resume();\r\n    }\r\n  };\r\n\r\n  return this;\r\n};\r\n\r\nif (typeof Symbol === 'function') {\r\n  Readable.prototype[Symbol.asyncIterator] = function () {\r\n    emitExperimentalWarning('Readable[Symbol.asyncIterator]');\r\n\r\n    if (createReadableStreamAsyncIterator === undefined) {\r\n      createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');\r\n    }\r\n\r\n    return createReadableStreamAsyncIterator(this);\r\n  };\r\n}\r\n\r\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._readableState.highWaterMark;\r\n  }\r\n});\r\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._readableState && this._readableState.buffer;\r\n  }\r\n});\r\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._readableState.flowing;\r\n  },\r\n  set: function set(state) {\r\n    if (this._readableState) {\r\n      this._readableState.flowing = state;\r\n    }\r\n  }\r\n}); // exposed for testing purposes only.\r\n\r\nReadable._fromList = fromList;\r\nObject.defineProperty(Readable.prototype, 'readableLength', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._readableState.length;\r\n  }\r\n}); // Pluck off n bytes from an array of buffers.\r\n// Length is the combined lengths of all the buffers in the list.\r\n// This function is designed to be inlinable, so please take care when making\r\n// changes to the function body.\r\n\r\nfunction fromList(n, state) {\r\n  // nothing buffered\r\n  if (state.length === 0) return null;\r\n  var ret;\r\n  if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\r\n    // read it all, truncate the list\r\n    if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\r\n    state.buffer.clear();\r\n  } else {\r\n    // read part of list\r\n    ret = state.buffer.consume(n, state.decoder);\r\n  }\r\n  return ret;\r\n}\r\n\r\nfunction endReadable(stream) {\r\n  var state = stream._readableState;\r\n  debug('endReadable', state.endEmitted);\r\n\r\n  if (!state.endEmitted) {\r\n    state.ended = true;\r\n    process.nextTick(endReadableNT, state, stream);\r\n  }\r\n}\r\n\r\nfunction endReadableNT(state, stream) {\r\n  debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.\r\n\r\n  if (!state.endEmitted && state.length === 0) {\r\n    state.endEmitted = true;\r\n    stream.readable = false;\r\n    stream.emit('end');\r\n  }\r\n}\r\n\r\nfunction indexOf(xs, x) {\r\n  for (var i = 0, l = xs.length; i < l; i++) {\r\n    if (xs[i] === x) return i;\r\n  }\r\n\r\n  return -1;\r\n}\r\n}).call(this,require('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\r\n},{\"../errors\":93,\"../experimentalWarning\":94,\"./_stream_duplex\":95,\"./internal/streams/async_iterator\":100,\"./internal/streams/buffer_list\":101,\"./internal/streams/destroy\":102,\"./internal/streams/state\":105,\"./internal/streams/stream\":106,\"_process\":72,\"buffer\":56,\"events\":59,\"inherits\":64,\"string_decoder/\":108,\"util\":52}],98:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n// a transform stream is a readable/writable stream where you do\r\n// something with the data.  Sometimes it's called a \"filter\",\r\n// but that's not a great name for it, since that implies a thing where\r\n// some bits pass through, and others are simply ignored.  (That would\r\n// be a valid example of a transform, of course.)\r\n//\r\n// While the output is causally related to the input, it's not a\r\n// necessarily symmetric or synchronous transformation.  For example,\r\n// a zlib stream might take multiple plain-text writes(), and then\r\n// emit a single compressed chunk some time in the future.\r\n//\r\n// Here's how this works:\r\n//\r\n// The Transform stream has all the aspects of the readable and writable\r\n// stream classes.  When you write(chunk), that calls _write(chunk,cb)\r\n// internally, and returns false if there's a lot of pending writes\r\n// buffered up.  When you call read(), that calls _read(n) until\r\n// there's enough pending readable data buffered up.\r\n//\r\n// In a transform stream, the written data is placed in a buffer.  When\r\n// _read(n) is called, it transforms the queued up data, calling the\r\n// buffered _write cb's as it consumes chunks.  If consuming a single\r\n// written chunk would result in multiple output chunks, then the first\r\n// outputted bit calls the readcb, and subsequent chunks just go into\r\n// the read buffer, and will cause it to emit 'readable' if necessary.\r\n//\r\n// This way, back-pressure is actually determined by the reading side,\r\n// since _read has to be called to start processing a new chunk.  However,\r\n// a pathological inflate type of transform can cause excessive buffering\r\n// here.  For example, imagine a stream where every byte of input is\r\n// interpreted as an integer from 0-255, and then results in that many\r\n// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in\r\n// 1kb of data being output.  In this case, you could write a very small\r\n// amount of input, and end up with a very large amount of output.  In\r\n// such a pathological inflating mechanism, there'd be no way to tell\r\n// the system to stop doing the transform.  A single 4MB write could\r\n// cause the system to run out of memory.\r\n//\r\n// However, even in such a pathological case, only a single written chunk\r\n// would be consumed, and then the rest would wait (un-transformed) until\r\n// the results of the previous transformed chunk were consumed.\r\n'use strict';\r\n\r\nmodule.exports = Transform;\r\n\r\nvar _require$codes = require('../errors').codes,\r\n    ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\r\n    ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\r\n    ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,\r\n    ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;\r\n\r\nvar Duplex = require('./_stream_duplex');\r\n\r\nrequire('inherits')(Transform, Duplex);\r\n\r\nfunction afterTransform(er, data) {\r\n  var ts = this._transformState;\r\n  ts.transforming = false;\r\n  var cb = ts.writecb;\r\n\r\n  if (cb === null) {\r\n    return this.emit('error', new ERR_MULTIPLE_CALLBACK());\r\n  }\r\n\r\n  ts.writechunk = null;\r\n  ts.writecb = null;\r\n  if (data != null) // single equals check for both `null` and `undefined`\r\n    this.push(data);\r\n  cb(er);\r\n  var rs = this._readableState;\r\n  rs.reading = false;\r\n\r\n  if (rs.needReadable || rs.length < rs.highWaterMark) {\r\n    this._read(rs.highWaterMark);\r\n  }\r\n}\r\n\r\nfunction Transform(options) {\r\n  if (!(this instanceof Transform)) return new Transform(options);\r\n  Duplex.call(this, options);\r\n  this._transformState = {\r\n    afterTransform: afterTransform.bind(this),\r\n    needTransform: false,\r\n    transforming: false,\r\n    writecb: null,\r\n    writechunk: null,\r\n    writeencoding: null\r\n  }; // start out asking for a readable event once data is transformed.\r\n\r\n  this._readableState.needReadable = true; // we have implemented the _read method, and done the other things\r\n  // that Readable wants before the first _read call, so unset the\r\n  // sync guard flag.\r\n\r\n  this._readableState.sync = false;\r\n\r\n  if (options) {\r\n    if (typeof options.transform === 'function') this._transform = options.transform;\r\n    if (typeof options.flush === 'function') this._flush = options.flush;\r\n  } // When the writable side finishes, then flush out anything remaining.\r\n\r\n\r\n  this.on('prefinish', prefinish);\r\n}\r\n\r\nfunction prefinish() {\r\n  var _this = this;\r\n\r\n  if (typeof this._flush === 'function' && !this._readableState.destroyed) {\r\n    this._flush(function (er, data) {\r\n      done(_this, er, data);\r\n    });\r\n  } else {\r\n    done(this, null, null);\r\n  }\r\n}\r\n\r\nTransform.prototype.push = function (chunk, encoding) {\r\n  this._transformState.needTransform = false;\r\n  return Duplex.prototype.push.call(this, chunk, encoding);\r\n}; // This is the part where you do stuff!\r\n// override this function in implementation classes.\r\n// 'chunk' is an input chunk.\r\n//\r\n// Call `push(newChunk)` to pass along transformed output\r\n// to the readable side.  You may call 'push' zero or more times.\r\n//\r\n// Call `cb(err)` when you are done with this chunk.  If you pass\r\n// an error, then that'll put the hurt on the whole operation.  If you\r\n// never call cb(), then you'll never get another chunk.\r\n\r\n\r\nTransform.prototype._transform = function (chunk, encoding, cb) {\r\n  cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));\r\n};\r\n\r\nTransform.prototype._write = function (chunk, encoding, cb) {\r\n  var ts = this._transformState;\r\n  ts.writecb = cb;\r\n  ts.writechunk = chunk;\r\n  ts.writeencoding = encoding;\r\n\r\n  if (!ts.transforming) {\r\n    var rs = this._readableState;\r\n    if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\r\n  }\r\n}; // Doesn't matter what the args are here.\r\n// _transform does all the work.\r\n// That we got here means that the readable side wants more data.\r\n\r\n\r\nTransform.prototype._read = function (n) {\r\n  var ts = this._transformState;\r\n\r\n  if (ts.writechunk !== null && !ts.transforming) {\r\n    ts.transforming = true;\r\n\r\n    this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\r\n  } else {\r\n    // mark that we need a transform, so that any data that comes in\r\n    // will get processed, now that we've asked for it.\r\n    ts.needTransform = true;\r\n  }\r\n};\r\n\r\nTransform.prototype._destroy = function (err, cb) {\r\n  Duplex.prototype._destroy.call(this, err, function (err2) {\r\n    cb(err2);\r\n  });\r\n};\r\n\r\nfunction done(stream, er, data) {\r\n  if (er) return stream.emit('error', er);\r\n  if (data != null) // single equals check for both `null` and `undefined`\r\n    stream.push(data); // TODO(BridgeAR): Write a test for these two error cases\r\n  // if there's nothing in the write buffer, then that means\r\n  // that nothing more will ever be provided\r\n\r\n  if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();\r\n  if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();\r\n  return stream.push(null);\r\n}\r\n},{\"../errors\":93,\"./_stream_duplex\":95,\"inherits\":64}],99:[function(require,module,exports){\r\n(function (process,global){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n// A bit simpler than readable streams.\r\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\r\n// the drain event emission and buffering.\r\n'use strict';\r\n\r\nmodule.exports = Writable;\r\n/* <replacement> */\r\n\r\nfunction WriteReq(chunk, encoding, cb) {\r\n  this.chunk = chunk;\r\n  this.encoding = encoding;\r\n  this.callback = cb;\r\n  this.next = null;\r\n} // It seems a linked list but it is not\r\n// there will be only 2 of these for each stream\r\n\r\n\r\nfunction CorkedRequest(state) {\r\n  var _this = this;\r\n\r\n  this.next = null;\r\n  this.entry = null;\r\n\r\n  this.finish = function () {\r\n    onCorkedFinish(_this, state);\r\n  };\r\n}\r\n/* </replacement> */\r\n\r\n/*<replacement>*/\r\n\r\n\r\nvar Duplex;\r\n/*</replacement>*/\r\n\r\nWritable.WritableState = WritableState;\r\n/*<replacement>*/\r\n\r\nvar internalUtil = {\r\n  deprecate: require('util-deprecate')\r\n};\r\n/*</replacement>*/\r\n\r\n/*<replacement>*/\r\n\r\nvar Stream = require('./internal/streams/stream');\r\n/*</replacement>*/\r\n\r\n\r\nvar Buffer = require('buffer').Buffer;\r\n\r\nvar OurUint8Array = global.Uint8Array || function () {};\r\n\r\nfunction _uint8ArrayToBuffer(chunk) {\r\n  return Buffer.from(chunk);\r\n}\r\n\r\nfunction _isUint8Array(obj) {\r\n  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\r\n}\r\n\r\nvar destroyImpl = require('./internal/streams/destroy');\r\n\r\nvar _require = require('./internal/streams/state'),\r\n    getHighWaterMark = _require.getHighWaterMark;\r\n\r\nvar _require$codes = require('../errors').codes,\r\n    ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\r\n    ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\r\n    ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\r\n    ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\r\n    ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\r\n    ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\r\n    ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\r\n    ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\r\n\r\nrequire('inherits')(Writable, Stream);\r\n\r\nfunction nop() {}\r\n\r\nfunction WritableState(options, stream, isDuplex) {\r\n  Duplex = Duplex || require('./_stream_duplex');\r\n  options = options || {}; // Duplex streams are both readable and writable, but share\r\n  // the same options object.\r\n  // However, some cases require setting options to different\r\n  // values for the readable and the writable sides of the duplex stream,\r\n  // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\r\n\r\n  if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream\r\n  // contains buffers or objects.\r\n\r\n  this.objectMode = !!options.objectMode;\r\n  if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false\r\n  // Note: 0 is a valid value, means that we always return false if\r\n  // the entire buffer is not flushed immediately on write()\r\n\r\n  this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called\r\n\r\n  this.finalCalled = false; // drain event flag.\r\n\r\n  this.needDrain = false; // at the start of calling end()\r\n\r\n  this.ending = false; // when end() has been called, and returned\r\n\r\n  this.ended = false; // when 'finish' is emitted\r\n\r\n  this.finished = false; // has it been destroyed\r\n\r\n  this.destroyed = false; // should we decode strings into buffers before passing to _write?\r\n  // this is here so that some node-core streams can optimize string\r\n  // handling at a lower level.\r\n\r\n  var noDecode = options.decodeStrings === false;\r\n  this.decodeStrings = !noDecode; // Crypto is kind of old and crusty.  Historically, its default string\r\n  // encoding is 'binary' so we have to make this configurable.\r\n  // Everything else in the universe uses 'utf8', though.\r\n\r\n  this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement\r\n  // of how much we're waiting to get pushed to some underlying\r\n  // socket or file.\r\n\r\n  this.length = 0; // a flag to see when we're in the middle of a write.\r\n\r\n  this.writing = false; // when true all writes will be buffered until .uncork() call\r\n\r\n  this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,\r\n  // or on a later tick.  We set this to true at first, because any\r\n  // actions that shouldn't happen until \"later\" should generally also\r\n  // not happen before the first write call.\r\n\r\n  this.sync = true; // a flag to know if we're processing previously buffered items, which\r\n  // may call the _write() callback in the same tick, so that we don't\r\n  // end up in an overlapped onwrite situation.\r\n\r\n  this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)\r\n\r\n  this.onwrite = function (er) {\r\n    onwrite(stream, er);\r\n  }; // the callback that the user supplies to write(chunk,encoding,cb)\r\n\r\n\r\n  this.writecb = null; // the amount that is being written when _write is called.\r\n\r\n  this.writelen = 0;\r\n  this.bufferedRequest = null;\r\n  this.lastBufferedRequest = null; // number of pending user-supplied write callbacks\r\n  // this must be 0 before 'finish' can be emitted\r\n\r\n  this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs\r\n  // This is relevant for synchronous Transform streams\r\n\r\n  this.prefinished = false; // True if the error was already emitted and should not be thrown again\r\n\r\n  this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.\r\n\r\n  this.emitClose = options.emitClose !== false; // count buffered requests\r\n\r\n  this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always\r\n  // one allocated and free to use, and we maintain at most two\r\n\r\n  this.corkedRequestsFree = new CorkedRequest(this);\r\n}\r\n\r\nWritableState.prototype.getBuffer = function getBuffer() {\r\n  var current = this.bufferedRequest;\r\n  var out = [];\r\n\r\n  while (current) {\r\n    out.push(current);\r\n    current = current.next;\r\n  }\r\n\r\n  return out;\r\n};\r\n\r\n(function () {\r\n  try {\r\n    Object.defineProperty(WritableState.prototype, 'buffer', {\r\n      get: internalUtil.deprecate(function writableStateBufferGetter() {\r\n        return this.getBuffer();\r\n      }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\r\n    });\r\n  } catch (_) {}\r\n})(); // Test _writableState for inheritance to account for Duplex streams,\r\n// whose prototype chain only points to Readable.\r\n\r\n\r\nvar realHasInstance;\r\n\r\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\r\n  realHasInstance = Function.prototype[Symbol.hasInstance];\r\n  Object.defineProperty(Writable, Symbol.hasInstance, {\r\n    value: function value(object) {\r\n      if (realHasInstance.call(this, object)) return true;\r\n      if (this !== Writable) return false;\r\n      return object && object._writableState instanceof WritableState;\r\n    }\r\n  });\r\n} else {\r\n  realHasInstance = function realHasInstance(object) {\r\n    return object instanceof this;\r\n  };\r\n}\r\n\r\nfunction Writable(options) {\r\n  Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.\r\n  // `realHasInstance` is necessary because using plain `instanceof`\r\n  // would return false, as no `_writableState` property is attached.\r\n  // Trying to use the custom `instanceof` for Writable here will also break the\r\n  // Node.js LazyTransform implementation, which has a non-trivial getter for\r\n  // `_writableState` that would lead to infinite recursion.\r\n  // Checking for a Stream.Duplex instance is faster here instead of inside\r\n  // the WritableState constructor, at least with V8 6.5\r\n\r\n  var isDuplex = this instanceof Duplex;\r\n  if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\r\n  this._writableState = new WritableState(options, this, isDuplex); // legacy.\r\n\r\n  this.writable = true;\r\n\r\n  if (options) {\r\n    if (typeof options.write === 'function') this._write = options.write;\r\n    if (typeof options.writev === 'function') this._writev = options.writev;\r\n    if (typeof options.destroy === 'function') this._destroy = options.destroy;\r\n    if (typeof options.final === 'function') this._final = options.final;\r\n  }\r\n\r\n  Stream.call(this);\r\n} // Otherwise people can pipe Writable streams, which is just wrong.\r\n\r\n\r\nWritable.prototype.pipe = function () {\r\n  this.emit('error', new ERR_STREAM_CANNOT_PIPE());\r\n};\r\n\r\nfunction writeAfterEnd(stream, cb) {\r\n  var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb\r\n\r\n  stream.emit('error', er);\r\n  process.nextTick(cb, er);\r\n} // Checks that a user-supplied chunk is valid, especially for the particular\r\n// mode the stream is in. Currently this means that `null` is never accepted\r\n// and undefined/non-string values are only allowed in object mode.\r\n\r\n\r\nfunction validChunk(stream, state, chunk, cb) {\r\n  var er;\r\n\r\n  if (chunk === null) {\r\n    er = new ERR_STREAM_NULL_VALUES();\r\n  } else if (typeof chunk !== 'string' && !state.objectMode) {\r\n    er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\r\n  }\r\n\r\n  if (er) {\r\n    stream.emit('error', er);\r\n    process.nextTick(cb, er);\r\n    return false;\r\n  }\r\n\r\n  return true;\r\n}\r\n\r\nWritable.prototype.write = function (chunk, encoding, cb) {\r\n  var state = this._writableState;\r\n  var ret = false;\r\n\r\n  var isBuf = !state.objectMode && _isUint8Array(chunk);\r\n\r\n  if (isBuf && !Buffer.isBuffer(chunk)) {\r\n    chunk = _uint8ArrayToBuffer(chunk);\r\n  }\r\n\r\n  if (typeof encoding === 'function') {\r\n    cb = encoding;\r\n    encoding = null;\r\n  }\r\n\r\n  if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\r\n  if (typeof cb !== 'function') cb = nop;\r\n  if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\r\n    state.pendingcb++;\r\n    ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\r\n  }\r\n  return ret;\r\n};\r\n\r\nWritable.prototype.cork = function () {\r\n  this._writableState.corked++;\r\n};\r\n\r\nWritable.prototype.uncork = function () {\r\n  var state = this._writableState;\r\n\r\n  if (state.corked) {\r\n    state.corked--;\r\n    if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\r\n  }\r\n};\r\n\r\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\r\n  // node::ParseEncoding() requires lower case.\r\n  if (typeof encoding === 'string') encoding = encoding.toLowerCase();\r\n  if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\r\n  this._writableState.defaultEncoding = encoding;\r\n  return this;\r\n};\r\n\r\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._writableState && this._writableState.getBuffer();\r\n  }\r\n});\r\n\r\nfunction decodeChunk(state, chunk, encoding) {\r\n  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\r\n    chunk = Buffer.from(chunk, encoding);\r\n  }\r\n\r\n  return chunk;\r\n}\r\n\r\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._writableState.highWaterMark;\r\n  }\r\n}); // if we're already writing something, then just put this\r\n// in the queue, and wait our turn.  Otherwise, call _write\r\n// If we return false, then we need a drain event, so set that flag.\r\n\r\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\r\n  if (!isBuf) {\r\n    var newChunk = decodeChunk(state, chunk, encoding);\r\n\r\n    if (chunk !== newChunk) {\r\n      isBuf = true;\r\n      encoding = 'buffer';\r\n      chunk = newChunk;\r\n    }\r\n  }\r\n\r\n  var len = state.objectMode ? 1 : chunk.length;\r\n  state.length += len;\r\n  var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.\r\n\r\n  if (!ret) state.needDrain = true;\r\n\r\n  if (state.writing || state.corked) {\r\n    var last = state.lastBufferedRequest;\r\n    state.lastBufferedRequest = {\r\n      chunk: chunk,\r\n      encoding: encoding,\r\n      isBuf: isBuf,\r\n      callback: cb,\r\n      next: null\r\n    };\r\n\r\n    if (last) {\r\n      last.next = state.lastBufferedRequest;\r\n    } else {\r\n      state.bufferedRequest = state.lastBufferedRequest;\r\n    }\r\n\r\n    state.bufferedRequestCount += 1;\r\n  } else {\r\n    doWrite(stream, state, false, len, chunk, encoding, cb);\r\n  }\r\n\r\n  return ret;\r\n}\r\n\r\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\r\n  state.writelen = len;\r\n  state.writecb = cb;\r\n  state.writing = true;\r\n  state.sync = true;\r\n  if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\r\n  state.sync = false;\r\n}\r\n\r\nfunction onwriteError(stream, state, sync, er, cb) {\r\n  --state.pendingcb;\r\n\r\n  if (sync) {\r\n    // defer the callback if we are being called synchronously\r\n    // to avoid piling up things on the stack\r\n    process.nextTick(cb, er); // this can emit finish, and it will always happen\r\n    // after error\r\n\r\n    process.nextTick(finishMaybe, stream, state);\r\n    stream._writableState.errorEmitted = true;\r\n    stream.emit('error', er);\r\n  } else {\r\n    // the caller expect this to happen before if\r\n    // it is async\r\n    cb(er);\r\n    stream._writableState.errorEmitted = true;\r\n    stream.emit('error', er); // this can emit finish, but finish must\r\n    // always follow error\r\n\r\n    finishMaybe(stream, state);\r\n  }\r\n}\r\n\r\nfunction onwriteStateUpdate(state) {\r\n  state.writing = false;\r\n  state.writecb = null;\r\n  state.length -= state.writelen;\r\n  state.writelen = 0;\r\n}\r\n\r\nfunction onwrite(stream, er) {\r\n  var state = stream._writableState;\r\n  var sync = state.sync;\r\n  var cb = state.writecb;\r\n  if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\r\n  onwriteStateUpdate(state);\r\n  if (er) onwriteError(stream, state, sync, er, cb);else {\r\n    // Check if we're actually ready to finish, but don't emit yet\r\n    var finished = needFinish(state) || stream.destroyed;\r\n\r\n    if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\r\n      clearBuffer(stream, state);\r\n    }\r\n\r\n    if (sync) {\r\n      process.nextTick(afterWrite, stream, state, finished, cb);\r\n    } else {\r\n      afterWrite(stream, state, finished, cb);\r\n    }\r\n  }\r\n}\r\n\r\nfunction afterWrite(stream, state, finished, cb) {\r\n  if (!finished) onwriteDrain(stream, state);\r\n  state.pendingcb--;\r\n  cb();\r\n  finishMaybe(stream, state);\r\n} // Must force callback to be called on nextTick, so that we don't\r\n// emit 'drain' before the write() consumer gets the 'false' return\r\n// value, and has a chance to attach a 'drain' listener.\r\n\r\n\r\nfunction onwriteDrain(stream, state) {\r\n  if (state.length === 0 && state.needDrain) {\r\n    state.needDrain = false;\r\n    stream.emit('drain');\r\n  }\r\n} // if there's something in the buffer waiting, then process it\r\n\r\n\r\nfunction clearBuffer(stream, state) {\r\n  state.bufferProcessing = true;\r\n  var entry = state.bufferedRequest;\r\n\r\n  if (stream._writev && entry && entry.next) {\r\n    // Fast case, write everything using _writev()\r\n    var l = state.bufferedRequestCount;\r\n    var buffer = new Array(l);\r\n    var holder = state.corkedRequestsFree;\r\n    holder.entry = entry;\r\n    var count = 0;\r\n    var allBuffers = true;\r\n\r\n    while (entry) {\r\n      buffer[count] = entry;\r\n      if (!entry.isBuf) allBuffers = false;\r\n      entry = entry.next;\r\n      count += 1;\r\n    }\r\n\r\n    buffer.allBuffers = allBuffers;\r\n    doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time\r\n    // as the hot path ends with doWrite\r\n\r\n    state.pendingcb++;\r\n    state.lastBufferedRequest = null;\r\n\r\n    if (holder.next) {\r\n      state.corkedRequestsFree = holder.next;\r\n      holder.next = null;\r\n    } else {\r\n      state.corkedRequestsFree = new CorkedRequest(state);\r\n    }\r\n\r\n    state.bufferedRequestCount = 0;\r\n  } else {\r\n    // Slow case, write chunks one-by-one\r\n    while (entry) {\r\n      var chunk = entry.chunk;\r\n      var encoding = entry.encoding;\r\n      var cb = entry.callback;\r\n      var len = state.objectMode ? 1 : chunk.length;\r\n      doWrite(stream, state, false, len, chunk, encoding, cb);\r\n      entry = entry.next;\r\n      state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then\r\n      // it means that we need to wait until it does.\r\n      // also, that means that the chunk and cb are currently\r\n      // being processed, so move the buffer counter past them.\r\n\r\n      if (state.writing) {\r\n        break;\r\n      }\r\n    }\r\n\r\n    if (entry === null) state.lastBufferedRequest = null;\r\n  }\r\n\r\n  state.bufferedRequest = entry;\r\n  state.bufferProcessing = false;\r\n}\r\n\r\nWritable.prototype._write = function (chunk, encoding, cb) {\r\n  cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\r\n};\r\n\r\nWritable.prototype._writev = null;\r\n\r\nWritable.prototype.end = function (chunk, encoding, cb) {\r\n  var state = this._writableState;\r\n\r\n  if (typeof chunk === 'function') {\r\n    cb = chunk;\r\n    chunk = null;\r\n    encoding = null;\r\n  } else if (typeof encoding === 'function') {\r\n    cb = encoding;\r\n    encoding = null;\r\n  }\r\n\r\n  if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks\r\n\r\n  if (state.corked) {\r\n    state.corked = 1;\r\n    this.uncork();\r\n  } // ignore unnecessary end() calls.\r\n\r\n\r\n  if (!state.ending) endWritable(this, state, cb);\r\n  return this;\r\n};\r\n\r\nObject.defineProperty(Writable.prototype, 'writableLength', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    return this._writableState.length;\r\n  }\r\n});\r\n\r\nfunction needFinish(state) {\r\n  return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\r\n}\r\n\r\nfunction callFinal(stream, state) {\r\n  stream._final(function (err) {\r\n    state.pendingcb--;\r\n\r\n    if (err) {\r\n      stream.emit('error', err);\r\n    }\r\n\r\n    state.prefinished = true;\r\n    stream.emit('prefinish');\r\n    finishMaybe(stream, state);\r\n  });\r\n}\r\n\r\nfunction prefinish(stream, state) {\r\n  if (!state.prefinished && !state.finalCalled) {\r\n    if (typeof stream._final === 'function' && !state.destroyed) {\r\n      state.pendingcb++;\r\n      state.finalCalled = true;\r\n      process.nextTick(callFinal, stream, state);\r\n    } else {\r\n      state.prefinished = true;\r\n      stream.emit('prefinish');\r\n    }\r\n  }\r\n}\r\n\r\nfunction finishMaybe(stream, state) {\r\n  var need = needFinish(state);\r\n\r\n  if (need) {\r\n    prefinish(stream, state);\r\n\r\n    if (state.pendingcb === 0) {\r\n      state.finished = true;\r\n      stream.emit('finish');\r\n    }\r\n  }\r\n\r\n  return need;\r\n}\r\n\r\nfunction endWritable(stream, state, cb) {\r\n  state.ending = true;\r\n  finishMaybe(stream, state);\r\n\r\n  if (cb) {\r\n    if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\r\n  }\r\n\r\n  state.ended = true;\r\n  stream.writable = false;\r\n}\r\n\r\nfunction onCorkedFinish(corkReq, state, err) {\r\n  var entry = corkReq.entry;\r\n  corkReq.entry = null;\r\n\r\n  while (entry) {\r\n    var cb = entry.callback;\r\n    state.pendingcb--;\r\n    cb(err);\r\n    entry = entry.next;\r\n  } // reuse the free corkReq.\r\n\r\n\r\n  state.corkedRequestsFree.next = corkReq;\r\n}\r\n\r\nObject.defineProperty(Writable.prototype, 'destroyed', {\r\n  // making it explicit this property is not enumerable\r\n  // because otherwise some prototype manipulation in\r\n  // userland will fail\r\n  enumerable: false,\r\n  get: function get() {\r\n    if (this._writableState === undefined) {\r\n      return false;\r\n    }\r\n\r\n    return this._writableState.destroyed;\r\n  },\r\n  set: function set(value) {\r\n    // we ignore the value if the stream\r\n    // has not been initialized yet\r\n    if (!this._writableState) {\r\n      return;\r\n    } // backward compatibility, the user is explicitly\r\n    // managing destroyed\r\n\r\n\r\n    this._writableState.destroyed = value;\r\n  }\r\n});\r\nWritable.prototype.destroy = destroyImpl.destroy;\r\nWritable.prototype._undestroy = destroyImpl.undestroy;\r\n\r\nWritable.prototype._destroy = function (err, cb) {\r\n  cb(err);\r\n};\r\n}).call(this,require('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\r\n},{\"../errors\":93,\"./_stream_duplex\":95,\"./internal/streams/destroy\":102,\"./internal/streams/state\":105,\"./internal/streams/stream\":106,\"_process\":72,\"buffer\":56,\"inherits\":64,\"util-deprecate\":114}],100:[function(require,module,exports){\r\n(function (process){\r\n'use strict';\r\n\r\nvar _Object$setPrototypeO;\r\n\r\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nvar finished = require('./end-of-stream');\r\n\r\nvar kLastResolve = Symbol('lastResolve');\r\nvar kLastReject = Symbol('lastReject');\r\nvar kError = Symbol('error');\r\nvar kEnded = Symbol('ended');\r\nvar kLastPromise = Symbol('lastPromise');\r\nvar kHandlePromise = Symbol('handlePromise');\r\nvar kStream = Symbol('stream');\r\n\r\nfunction createIterResult(value, done) {\r\n  return {\r\n    value: value,\r\n    done: done\r\n  };\r\n}\r\n\r\nfunction readAndResolve(iter) {\r\n  var resolve = iter[kLastResolve];\r\n\r\n  if (resolve !== null) {\r\n    var data = iter[kStream].read(); // we defer if data is null\r\n    // we can be expecting either 'end' or\r\n    // 'error'\r\n\r\n    if (data !== null) {\r\n      iter[kLastPromise] = null;\r\n      iter[kLastResolve] = null;\r\n      iter[kLastReject] = null;\r\n      resolve(createIterResult(data, false));\r\n    }\r\n  }\r\n}\r\n\r\nfunction onReadable(iter) {\r\n  // we wait for the next tick, because it might\r\n  // emit an error with process.nextTick\r\n  process.nextTick(readAndResolve, iter);\r\n}\r\n\r\nfunction wrapForNext(lastPromise, iter) {\r\n  return function (resolve, reject) {\r\n    lastPromise.then(function () {\r\n      if (iter[kEnded]) {\r\n        resolve(createIterResult(undefined, true));\r\n        return;\r\n      }\r\n\r\n      iter[kHandlePromise](resolve, reject);\r\n    }, reject);\r\n  };\r\n}\r\n\r\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\r\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\r\n  get stream() {\r\n    return this[kStream];\r\n  },\r\n\r\n  next: function next() {\r\n    var _this = this;\r\n\r\n    // if we have detected an error in the meanwhile\r\n    // reject straight away\r\n    var error = this[kError];\r\n\r\n    if (error !== null) {\r\n      return Promise.reject(error);\r\n    }\r\n\r\n    if (this[kEnded]) {\r\n      return Promise.resolve(createIterResult(undefined, true));\r\n    }\r\n\r\n    if (this[kStream].destroyed) {\r\n      // We need to defer via nextTick because if .destroy(err) is\r\n      // called, the error will be emitted via nextTick, and\r\n      // we cannot guarantee that there is no error lingering around\r\n      // waiting to be emitted.\r\n      return new Promise(function (resolve, reject) {\r\n        process.nextTick(function () {\r\n          if (_this[kError]) {\r\n            reject(_this[kError]);\r\n          } else {\r\n            resolve(createIterResult(undefined, true));\r\n          }\r\n        });\r\n      });\r\n    } // if we have multiple next() calls\r\n    // we will wait for the previous Promise to finish\r\n    // this logic is optimized to support for await loops,\r\n    // where next() is only called once at a time\r\n\r\n\r\n    var lastPromise = this[kLastPromise];\r\n    var promise;\r\n\r\n    if (lastPromise) {\r\n      promise = new Promise(wrapForNext(lastPromise, this));\r\n    } else {\r\n      // fast path needed to support multiple this.push()\r\n      // without triggering the next() queue\r\n      var data = this[kStream].read();\r\n\r\n      if (data !== null) {\r\n        return Promise.resolve(createIterResult(data, false));\r\n      }\r\n\r\n      promise = new Promise(this[kHandlePromise]);\r\n    }\r\n\r\n    this[kLastPromise] = promise;\r\n    return promise;\r\n  }\r\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\r\n  return this;\r\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\r\n  var _this2 = this;\r\n\r\n  // destroy(err, cb) is a private API\r\n  // we can guarantee we have that here, because we control the\r\n  // Readable class this is attached to\r\n  return new Promise(function (resolve, reject) {\r\n    _this2[kStream].destroy(null, function (err) {\r\n      if (err) {\r\n        reject(err);\r\n        return;\r\n      }\r\n\r\n      resolve(createIterResult(undefined, true));\r\n    });\r\n  });\r\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\r\n\r\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\r\n  var _Object$create;\r\n\r\n  var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\r\n    value: stream,\r\n    writable: true\r\n  }), _defineProperty(_Object$create, kLastResolve, {\r\n    value: null,\r\n    writable: true\r\n  }), _defineProperty(_Object$create, kLastReject, {\r\n    value: null,\r\n    writable: true\r\n  }), _defineProperty(_Object$create, kError, {\r\n    value: null,\r\n    writable: true\r\n  }), _defineProperty(_Object$create, kEnded, {\r\n    value: stream._readableState.endEmitted,\r\n    writable: true\r\n  }), _defineProperty(_Object$create, kHandlePromise, {\r\n    value: function value(resolve, reject) {\r\n      var data = iterator[kStream].read();\r\n\r\n      if (data) {\r\n        iterator[kLastPromise] = null;\r\n        iterator[kLastResolve] = null;\r\n        iterator[kLastReject] = null;\r\n        resolve(createIterResult(data, false));\r\n      } else {\r\n        iterator[kLastResolve] = resolve;\r\n        iterator[kLastReject] = reject;\r\n      }\r\n    },\r\n    writable: true\r\n  }), _Object$create));\r\n  iterator[kLastPromise] = null;\r\n  finished(stream, function (err) {\r\n    if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\r\n      var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise\r\n      // returned by next() and store the error\r\n\r\n      if (reject !== null) {\r\n        iterator[kLastPromise] = null;\r\n        iterator[kLastResolve] = null;\r\n        iterator[kLastReject] = null;\r\n        reject(err);\r\n      }\r\n\r\n      iterator[kError] = err;\r\n      return;\r\n    }\r\n\r\n    var resolve = iterator[kLastResolve];\r\n\r\n    if (resolve !== null) {\r\n      iterator[kLastPromise] = null;\r\n      iterator[kLastResolve] = null;\r\n      iterator[kLastReject] = null;\r\n      resolve(createIterResult(undefined, true));\r\n    }\r\n\r\n    iterator[kEnded] = true;\r\n  });\r\n  stream.on('readable', onReadable.bind(null, iterator));\r\n  return iterator;\r\n};\r\n\r\nmodule.exports = createReadableStreamAsyncIterator;\r\n}).call(this,require('_process'))\r\n},{\"./end-of-stream\":103,\"_process\":72}],101:[function(require,module,exports){\r\n'use strict';\r\n\r\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\r\n\r\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nvar _require = require('buffer'),\r\n    Buffer = _require.Buffer;\r\n\r\nvar _require2 = require('util'),\r\n    inspect = _require2.inspect;\r\n\r\nvar custom = inspect && inspect.custom || 'inspect';\r\n\r\nfunction copyBuffer(src, target, offset) {\r\n  Buffer.prototype.copy.call(src, target, offset);\r\n}\r\n\r\nmodule.exports =\r\n/*#__PURE__*/\r\nfunction () {\r\n  function BufferList() {\r\n    this.head = null;\r\n    this.tail = null;\r\n    this.length = 0;\r\n  }\r\n\r\n  var _proto = BufferList.prototype;\r\n\r\n  _proto.push = function push(v) {\r\n    var entry = {\r\n      data: v,\r\n      next: null\r\n    };\r\n    if (this.length > 0) this.tail.next = entry;else this.head = entry;\r\n    this.tail = entry;\r\n    ++this.length;\r\n  };\r\n\r\n  _proto.unshift = function unshift(v) {\r\n    var entry = {\r\n      data: v,\r\n      next: this.head\r\n    };\r\n    if (this.length === 0) this.tail = entry;\r\n    this.head = entry;\r\n    ++this.length;\r\n  };\r\n\r\n  _proto.shift = function shift() {\r\n    if (this.length === 0) return;\r\n    var ret = this.head.data;\r\n    if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\r\n    --this.length;\r\n    return ret;\r\n  };\r\n\r\n  _proto.clear = function clear() {\r\n    this.head = this.tail = null;\r\n    this.length = 0;\r\n  };\r\n\r\n  _proto.join = function join(s) {\r\n    if (this.length === 0) return '';\r\n    var p = this.head;\r\n    var ret = '' + p.data;\r\n\r\n    while (p = p.next) {\r\n      ret += s + p.data;\r\n    }\r\n\r\n    return ret;\r\n  };\r\n\r\n  _proto.concat = function concat(n) {\r\n    if (this.length === 0) return Buffer.alloc(0);\r\n    var ret = Buffer.allocUnsafe(n >>> 0);\r\n    var p = this.head;\r\n    var i = 0;\r\n\r\n    while (p) {\r\n      copyBuffer(p.data, ret, i);\r\n      i += p.data.length;\r\n      p = p.next;\r\n    }\r\n\r\n    return ret;\r\n  } // Consumes a specified amount of bytes or characters from the buffered data.\r\n  ;\r\n\r\n  _proto.consume = function consume(n, hasStrings) {\r\n    var ret;\r\n\r\n    if (n < this.head.data.length) {\r\n      // `slice` is the same for buffers and strings.\r\n      ret = this.head.data.slice(0, n);\r\n      this.head.data = this.head.data.slice(n);\r\n    } else if (n === this.head.data.length) {\r\n      // First chunk is a perfect match.\r\n      ret = this.shift();\r\n    } else {\r\n      // Result spans more than one buffer.\r\n      ret = hasStrings ? this._getString(n) : this._getBuffer(n);\r\n    }\r\n\r\n    return ret;\r\n  };\r\n\r\n  _proto.first = function first() {\r\n    return this.head.data;\r\n  } // Consumes a specified amount of characters from the buffered data.\r\n  ;\r\n\r\n  _proto._getString = function _getString(n) {\r\n    var p = this.head;\r\n    var c = 1;\r\n    var ret = p.data;\r\n    n -= ret.length;\r\n\r\n    while (p = p.next) {\r\n      var str = p.data;\r\n      var nb = n > str.length ? str.length : n;\r\n      if (nb === str.length) ret += str;else ret += str.slice(0, n);\r\n      n -= nb;\r\n\r\n      if (n === 0) {\r\n        if (nb === str.length) {\r\n          ++c;\r\n          if (p.next) this.head = p.next;else this.head = this.tail = null;\r\n        } else {\r\n          this.head = p;\r\n          p.data = str.slice(nb);\r\n        }\r\n\r\n        break;\r\n      }\r\n\r\n      ++c;\r\n    }\r\n\r\n    this.length -= c;\r\n    return ret;\r\n  } // Consumes a specified amount of bytes from the buffered data.\r\n  ;\r\n\r\n  _proto._getBuffer = function _getBuffer(n) {\r\n    var ret = Buffer.allocUnsafe(n);\r\n    var p = this.head;\r\n    var c = 1;\r\n    p.data.copy(ret);\r\n    n -= p.data.length;\r\n\r\n    while (p = p.next) {\r\n      var buf = p.data;\r\n      var nb = n > buf.length ? buf.length : n;\r\n      buf.copy(ret, ret.length - n, 0, nb);\r\n      n -= nb;\r\n\r\n      if (n === 0) {\r\n        if (nb === buf.length) {\r\n          ++c;\r\n          if (p.next) this.head = p.next;else this.head = this.tail = null;\r\n        } else {\r\n          this.head = p;\r\n          p.data = buf.slice(nb);\r\n        }\r\n\r\n        break;\r\n      }\r\n\r\n      ++c;\r\n    }\r\n\r\n    this.length -= c;\r\n    return ret;\r\n  } // Make sure the linked list only shows the minimal necessary information.\r\n  ;\r\n\r\n  _proto[custom] = function (_, options) {\r\n    return inspect(this, _objectSpread({}, options, {\r\n      // Only inspect one level.\r\n      depth: 0,\r\n      // It should not recurse.\r\n      customInspect: false\r\n    }));\r\n  };\r\n\r\n  return BufferList;\r\n}();\r\n},{\"buffer\":56,\"util\":52}],102:[function(require,module,exports){\r\n(function (process){\r\n'use strict'; // undocumented cb() API, needed for core, not for public API\r\n\r\nfunction destroy(err, cb) {\r\n  var _this = this;\r\n\r\n  var readableDestroyed = this._readableState && this._readableState.destroyed;\r\n  var writableDestroyed = this._writableState && this._writableState.destroyed;\r\n\r\n  if (readableDestroyed || writableDestroyed) {\r\n    if (cb) {\r\n      cb(err);\r\n    } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {\r\n      process.nextTick(emitErrorNT, this, err);\r\n    }\r\n\r\n    return this;\r\n  } // we set destroyed to true before firing error callbacks in order\r\n  // to make it re-entrance safe in case destroy() is called within callbacks\r\n\r\n\r\n  if (this._readableState) {\r\n    this._readableState.destroyed = true;\r\n  } // if this is a duplex stream mark the writable part as destroyed as well\r\n\r\n\r\n  if (this._writableState) {\r\n    this._writableState.destroyed = true;\r\n  }\r\n\r\n  this._destroy(err || null, function (err) {\r\n    if (!cb && err) {\r\n      process.nextTick(emitErrorAndCloseNT, _this, err);\r\n\r\n      if (_this._writableState) {\r\n        _this._writableState.errorEmitted = true;\r\n      }\r\n    } else if (cb) {\r\n      process.nextTick(emitCloseNT, _this);\r\n      cb(err);\r\n    } else {\r\n      process.nextTick(emitCloseNT, _this);\r\n    }\r\n  });\r\n\r\n  return this;\r\n}\r\n\r\nfunction emitErrorAndCloseNT(self, err) {\r\n  emitErrorNT(self, err);\r\n  emitCloseNT(self);\r\n}\r\n\r\nfunction emitCloseNT(self) {\r\n  if (self._writableState && !self._writableState.emitClose) return;\r\n  if (self._readableState && !self._readableState.emitClose) return;\r\n  self.emit('close');\r\n}\r\n\r\nfunction undestroy() {\r\n  if (this._readableState) {\r\n    this._readableState.destroyed = false;\r\n    this._readableState.reading = false;\r\n    this._readableState.ended = false;\r\n    this._readableState.endEmitted = false;\r\n  }\r\n\r\n  if (this._writableState) {\r\n    this._writableState.destroyed = false;\r\n    this._writableState.ended = false;\r\n    this._writableState.ending = false;\r\n    this._writableState.finalCalled = false;\r\n    this._writableState.prefinished = false;\r\n    this._writableState.finished = false;\r\n    this._writableState.errorEmitted = false;\r\n  }\r\n}\r\n\r\nfunction emitErrorNT(self, err) {\r\n  self.emit('error', err);\r\n}\r\n\r\nmodule.exports = {\r\n  destroy: destroy,\r\n  undestroy: undestroy\r\n};\r\n}).call(this,require('_process'))\r\n},{\"_process\":72}],103:[function(require,module,exports){\r\n// Ported from https://github.com/mafintosh/end-of-stream with\r\n// permission from the author, Mathias Buus (@mafintosh).\r\n'use strict';\r\n\r\nvar ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\r\n\r\nfunction once(callback) {\r\n  var called = false;\r\n  return function () {\r\n    if (called) return;\r\n    called = true;\r\n\r\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\r\n      args[_key] = arguments[_key];\r\n    }\r\n\r\n    callback.apply(this, args);\r\n  };\r\n}\r\n\r\nfunction noop() {}\r\n\r\nfunction isRequest(stream) {\r\n  return stream.setHeader && typeof stream.abort === 'function';\r\n}\r\n\r\nfunction eos(stream, opts, callback) {\r\n  if (typeof opts === 'function') return eos(stream, null, opts);\r\n  if (!opts) opts = {};\r\n  callback = once(callback || noop);\r\n  var readable = opts.readable || opts.readable !== false && stream.readable;\r\n  var writable = opts.writable || opts.writable !== false && stream.writable;\r\n\r\n  var onlegacyfinish = function onlegacyfinish() {\r\n    if (!stream.writable) onfinish();\r\n  };\r\n\r\n  var writableEnded = stream._writableState && stream._writableState.finished;\r\n\r\n  var onfinish = function onfinish() {\r\n    writable = false;\r\n    writableEnded = true;\r\n    if (!readable) callback.call(stream);\r\n  };\r\n\r\n  var readableEnded = stream._readableState && stream._readableState.endEmitted;\r\n\r\n  var onend = function onend() {\r\n    readable = false;\r\n    readableEnded = true;\r\n    if (!writable) callback.call(stream);\r\n  };\r\n\r\n  var onerror = function onerror(err) {\r\n    callback.call(stream, err);\r\n  };\r\n\r\n  var onclose = function onclose() {\r\n    var err;\r\n\r\n    if (readable && !readableEnded) {\r\n      if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\r\n      return callback.call(stream, err);\r\n    }\r\n\r\n    if (writable && !writableEnded) {\r\n      if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\r\n      return callback.call(stream, err);\r\n    }\r\n  };\r\n\r\n  var onrequest = function onrequest() {\r\n    stream.req.on('finish', onfinish);\r\n  };\r\n\r\n  if (isRequest(stream)) {\r\n    stream.on('complete', onfinish);\r\n    stream.on('abort', onclose);\r\n    if (stream.req) onrequest();else stream.on('request', onrequest);\r\n  } else if (writable && !stream._writableState) {\r\n    // legacy streams\r\n    stream.on('end', onlegacyfinish);\r\n    stream.on('close', onlegacyfinish);\r\n  }\r\n\r\n  stream.on('end', onend);\r\n  stream.on('finish', onfinish);\r\n  if (opts.error !== false) stream.on('error', onerror);\r\n  stream.on('close', onclose);\r\n  return function () {\r\n    stream.removeListener('complete', onfinish);\r\n    stream.removeListener('abort', onclose);\r\n    stream.removeListener('request', onrequest);\r\n    if (stream.req) stream.req.removeListener('finish', onfinish);\r\n    stream.removeListener('end', onlegacyfinish);\r\n    stream.removeListener('close', onlegacyfinish);\r\n    stream.removeListener('finish', onfinish);\r\n    stream.removeListener('end', onend);\r\n    stream.removeListener('error', onerror);\r\n    stream.removeListener('close', onclose);\r\n  };\r\n}\r\n\r\nmodule.exports = eos;\r\n},{\"../../../errors\":93}],104:[function(require,module,exports){\r\n// Ported from https://github.com/mafintosh/pump with\r\n// permission from the author, Mathias Buus (@mafintosh).\r\n'use strict';\r\n\r\nvar eos;\r\n\r\nfunction once(callback) {\r\n  var called = false;\r\n  return function () {\r\n    if (called) return;\r\n    called = true;\r\n    callback.apply(void 0, arguments);\r\n  };\r\n}\r\n\r\nvar _require$codes = require('../../../errors').codes,\r\n    ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,\r\n    ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;\r\n\r\nfunction noop(err) {\r\n  // Rethrow the error if it exists to avoid swallowing it\r\n  if (err) throw err;\r\n}\r\n\r\nfunction isRequest(stream) {\r\n  return stream.setHeader && typeof stream.abort === 'function';\r\n}\r\n\r\nfunction destroyer(stream, reading, writing, callback) {\r\n  callback = once(callback);\r\n  var closed = false;\r\n  stream.on('close', function () {\r\n    closed = true;\r\n  });\r\n  if (eos === undefined) eos = require('./end-of-stream');\r\n  eos(stream, {\r\n    readable: reading,\r\n    writable: writing\r\n  }, function (err) {\r\n    if (err) return callback(err);\r\n    closed = true;\r\n    callback();\r\n  });\r\n  var destroyed = false;\r\n  return function (err) {\r\n    if (closed) return;\r\n    if (destroyed) return;\r\n    destroyed = true; // request.destroy just do .end - .abort is what we want\r\n\r\n    if (isRequest(stream)) return stream.abort();\r\n    if (typeof stream.destroy === 'function') return stream.destroy();\r\n    callback(err || new ERR_STREAM_DESTROYED('pipe'));\r\n  };\r\n}\r\n\r\nfunction call(fn) {\r\n  fn();\r\n}\r\n\r\nfunction pipe(from, to) {\r\n  return from.pipe(to);\r\n}\r\n\r\nfunction popCallback(streams) {\r\n  if (!streams.length) return noop;\r\n  if (typeof streams[streams.length - 1] !== 'function') return noop;\r\n  return streams.pop();\r\n}\r\n\r\nfunction pipeline() {\r\n  for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {\r\n    streams[_key] = arguments[_key];\r\n  }\r\n\r\n  var callback = popCallback(streams);\r\n  if (Array.isArray(streams[0])) streams = streams[0];\r\n\r\n  if (streams.length < 2) {\r\n    throw new ERR_MISSING_ARGS('streams');\r\n  }\r\n\r\n  var error;\r\n  var destroys = streams.map(function (stream, i) {\r\n    var reading = i < streams.length - 1;\r\n    var writing = i > 0;\r\n    return destroyer(stream, reading, writing, function (err) {\r\n      if (!error) error = err;\r\n      if (err) destroys.forEach(call);\r\n      if (reading) return;\r\n      destroys.forEach(call);\r\n      callback(error);\r\n    });\r\n  });\r\n  return streams.reduce(pipe);\r\n}\r\n\r\nmodule.exports = pipeline;\r\n},{\"../../../errors\":93,\"./end-of-stream\":103}],105:[function(require,module,exports){\r\n'use strict';\r\n\r\nvar ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;\r\n\r\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\r\n  return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\r\n}\r\n\r\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\r\n  var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\r\n\r\n  if (hwm != null) {\r\n    if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\r\n      var name = isDuplex ? duplexKey : 'highWaterMark';\r\n      throw new ERR_INVALID_OPT_VALUE(name, hwm);\r\n    }\r\n\r\n    return Math.floor(hwm);\r\n  } // Default value\r\n\r\n\r\n  return state.objectMode ? 16 : 16 * 1024;\r\n}\r\n\r\nmodule.exports = {\r\n  getHighWaterMark: getHighWaterMark\r\n};\r\n},{\"../../../errors\":93}],106:[function(require,module,exports){\r\nmodule.exports = require('events').EventEmitter;\r\n\r\n},{\"events\":59}],107:[function(require,module,exports){\r\nexports = module.exports = require('./lib/_stream_readable.js');\r\nexports.Stream = exports;\r\nexports.Readable = exports;\r\nexports.Writable = require('./lib/_stream_writable.js');\r\nexports.Duplex = require('./lib/_stream_duplex.js');\r\nexports.Transform = require('./lib/_stream_transform.js');\r\nexports.PassThrough = require('./lib/_stream_passthrough.js');\r\nexports.finished = require('./lib/internal/streams/end-of-stream.js');\r\nexports.pipeline = require('./lib/internal/streams/pipeline.js');\r\n\r\n},{\"./lib/_stream_duplex.js\":95,\"./lib/_stream_passthrough.js\":96,\"./lib/_stream_readable.js\":97,\"./lib/_stream_transform.js\":98,\"./lib/_stream_writable.js\":99,\"./lib/internal/streams/end-of-stream.js\":103,\"./lib/internal/streams/pipeline.js\":104}],108:[function(require,module,exports){\r\narguments[4][55][0].apply(exports,arguments)\r\n},{\"dup\":55,\"safe-buffer\":86}],109:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nvar Buffer = require('buffer').Buffer;\r\n\r\nvar isBufferEncoding = Buffer.isEncoding\r\n  || function(encoding) {\r\n       switch (encoding && encoding.toLowerCase()) {\r\n         case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\r\n         default: return false;\r\n       }\r\n     }\r\n\r\n\r\nfunction assertEncoding(encoding) {\r\n  if (encoding && !isBufferEncoding(encoding)) {\r\n    throw new Error('Unknown encoding: ' + encoding);\r\n  }\r\n}\r\n\r\n// StringDecoder provides an interface for efficiently splitting a series of\r\n// buffers into a series of JS strings without breaking apart multi-byte\r\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\r\n//\r\n// @TODO Handling all encodings inside a single object makes it very difficult\r\n// to reason about this code, so it should be split up in the future.\r\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\r\n// points as used by CESU-8.\r\nvar StringDecoder = exports.StringDecoder = function(encoding) {\r\n  this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\r\n  assertEncoding(encoding);\r\n  switch (this.encoding) {\r\n    case 'utf8':\r\n      // CESU-8 represents each of Surrogate Pair by 3-bytes\r\n      this.surrogateSize = 3;\r\n      break;\r\n    case 'ucs2':\r\n    case 'utf16le':\r\n      // UTF-16 represents each of Surrogate Pair by 2-bytes\r\n      this.surrogateSize = 2;\r\n      this.detectIncompleteChar = utf16DetectIncompleteChar;\r\n      break;\r\n    case 'base64':\r\n      // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\r\n      this.surrogateSize = 3;\r\n      this.detectIncompleteChar = base64DetectIncompleteChar;\r\n      break;\r\n    default:\r\n      this.write = passThroughWrite;\r\n      return;\r\n  }\r\n\r\n  // Enough space to store all bytes of a single character. UTF-8 needs 4\r\n  // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\r\n  this.charBuffer = new Buffer(6);\r\n  // Number of bytes received for the current incomplete multi-byte character.\r\n  this.charReceived = 0;\r\n  // Number of bytes expected for the current incomplete multi-byte character.\r\n  this.charLength = 0;\r\n};\r\n\r\n\r\n// write decodes the given buffer and returns it as JS string that is\r\n// guaranteed to not contain any partial multi-byte characters. Any partial\r\n// character found at the end of the buffer is buffered up, and will be\r\n// returned when calling write again with the remaining bytes.\r\n//\r\n// Note: Converting a Buffer containing an orphan surrogate to a String\r\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\r\n// Buffer#write) will replace incomplete surrogates with the unicode\r\n// replacement character. See https://codereview.chromium.org/121173009/ .\r\nStringDecoder.prototype.write = function(buffer) {\r\n  var charStr = '';\r\n  // if our last write ended with an incomplete multibyte character\r\n  while (this.charLength) {\r\n    // determine how many remaining bytes this buffer has to offer for this char\r\n    var available = (buffer.length >= this.charLength - this.charReceived) ?\r\n        this.charLength - this.charReceived :\r\n        buffer.length;\r\n\r\n    // add the new bytes to the char buffer\r\n    buffer.copy(this.charBuffer, this.charReceived, 0, available);\r\n    this.charReceived += available;\r\n\r\n    if (this.charReceived < this.charLength) {\r\n      // still not enough chars in this buffer? wait for more ...\r\n      return '';\r\n    }\r\n\r\n    // remove bytes belonging to the current character from the buffer\r\n    buffer = buffer.slice(available, buffer.length);\r\n\r\n    // get the character that was split\r\n    charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\r\n\r\n    // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\r\n    var charCode = charStr.charCodeAt(charStr.length - 1);\r\n    if (charCode >= 0xD800 && charCode <= 0xDBFF) {\r\n      this.charLength += this.surrogateSize;\r\n      charStr = '';\r\n      continue;\r\n    }\r\n    this.charReceived = this.charLength = 0;\r\n\r\n    // if there are no more bytes in this buffer, just emit our char\r\n    if (buffer.length === 0) {\r\n      return charStr;\r\n    }\r\n    break;\r\n  }\r\n\r\n  // determine and set charLength / charReceived\r\n  this.detectIncompleteChar(buffer);\r\n\r\n  var end = buffer.length;\r\n  if (this.charLength) {\r\n    // buffer the incomplete character bytes we got\r\n    buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\r\n    end -= this.charReceived;\r\n  }\r\n\r\n  charStr += buffer.toString(this.encoding, 0, end);\r\n\r\n  var end = charStr.length - 1;\r\n  var charCode = charStr.charCodeAt(end);\r\n  // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\r\n  if (charCode >= 0xD800 && charCode <= 0xDBFF) {\r\n    var size = this.surrogateSize;\r\n    this.charLength += size;\r\n    this.charReceived += size;\r\n    this.charBuffer.copy(this.charBuffer, size, 0, size);\r\n    buffer.copy(this.charBuffer, 0, 0, size);\r\n    return charStr.substring(0, end);\r\n  }\r\n\r\n  // or just emit the charStr\r\n  return charStr;\r\n};\r\n\r\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\r\n// the end of the given buffer. If so, it sets this.charLength to the byte\r\n// length that character, and sets this.charReceived to the number of bytes\r\n// that are available for this character.\r\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\r\n  // determine how many bytes we have to check at the end of this buffer\r\n  var i = (buffer.length >= 3) ? 3 : buffer.length;\r\n\r\n  // Figure out if one of the last i bytes of our buffer announces an\r\n  // incomplete char.\r\n  for (; i > 0; i--) {\r\n    var c = buffer[buffer.length - i];\r\n\r\n    // See http://en.wikipedia.org/wiki/UTF-8#Description\r\n\r\n    // 110XXXXX\r\n    if (i == 1 && c >> 5 == 0x06) {\r\n      this.charLength = 2;\r\n      break;\r\n    }\r\n\r\n    // 1110XXXX\r\n    if (i <= 2 && c >> 4 == 0x0E) {\r\n      this.charLength = 3;\r\n      break;\r\n    }\r\n\r\n    // 11110XXX\r\n    if (i <= 3 && c >> 3 == 0x1E) {\r\n      this.charLength = 4;\r\n      break;\r\n    }\r\n  }\r\n  this.charReceived = i;\r\n};\r\n\r\nStringDecoder.prototype.end = function(buffer) {\r\n  var res = '';\r\n  if (buffer && buffer.length)\r\n    res = this.write(buffer);\r\n\r\n  if (this.charReceived) {\r\n    var cr = this.charReceived;\r\n    var buf = this.charBuffer;\r\n    var enc = this.encoding;\r\n    res += buf.slice(0, cr).toString(enc);\r\n  }\r\n\r\n  return res;\r\n};\r\n\r\nfunction passThroughWrite(buffer) {\r\n  return buffer.toString(this.encoding);\r\n}\r\n\r\nfunction utf16DetectIncompleteChar(buffer) {\r\n  this.charReceived = buffer.length % 2;\r\n  this.charLength = this.charReceived ? 2 : 0;\r\n}\r\n\r\nfunction base64DetectIncompleteChar(buffer) {\r\n  this.charReceived = buffer.length % 3;\r\n  this.charLength = this.charReceived ? 3 : 0;\r\n}\r\n\r\n},{\"buffer\":56}],110:[function(require,module,exports){\r\n(function (setImmediate,clearImmediate){\r\nvar nextTick = require('process/browser.js').nextTick;\r\nvar apply = Function.prototype.apply;\r\nvar slice = Array.prototype.slice;\r\nvar immediateIds = {};\r\nvar nextImmediateId = 0;\r\n\r\n// DOM APIs, for completeness\r\n\r\nexports.setTimeout = function() {\r\n  return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);\r\n};\r\nexports.setInterval = function() {\r\n  return new Timeout(apply.call(setInterval, window, arguments), clearInterval);\r\n};\r\nexports.clearTimeout =\r\nexports.clearInterval = function(timeout) { timeout.close(); };\r\n\r\nfunction Timeout(id, clearFn) {\r\n  this._id = id;\r\n  this._clearFn = clearFn;\r\n}\r\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\r\nTimeout.prototype.close = function() {\r\n  this._clearFn.call(window, this._id);\r\n};\r\n\r\n// Does not start the time, just sets up the members needed.\r\nexports.enroll = function(item, msecs) {\r\n  clearTimeout(item._idleTimeoutId);\r\n  item._idleTimeout = msecs;\r\n};\r\n\r\nexports.unenroll = function(item) {\r\n  clearTimeout(item._idleTimeoutId);\r\n  item._idleTimeout = -1;\r\n};\r\n\r\nexports._unrefActive = exports.active = function(item) {\r\n  clearTimeout(item._idleTimeoutId);\r\n\r\n  var msecs = item._idleTimeout;\r\n  if (msecs >= 0) {\r\n    item._idleTimeoutId = setTimeout(function onTimeout() {\r\n      if (item._onTimeout)\r\n        item._onTimeout();\r\n    }, msecs);\r\n  }\r\n};\r\n\r\n// That's not how node.js implements it but the exposed api is the same.\r\nexports.setImmediate = typeof setImmediate === \"function\" ? setImmediate : function(fn) {\r\n  var id = nextImmediateId++;\r\n  var args = arguments.length < 2 ? false : slice.call(arguments, 1);\r\n\r\n  immediateIds[id] = true;\r\n\r\n  nextTick(function onNextTick() {\r\n    if (immediateIds[id]) {\r\n      // fn.call() is faster so we optimize for the common use-case\r\n      // @see http://jsperf.com/call-apply-segu\r\n      if (args) {\r\n        fn.apply(null, args);\r\n      } else {\r\n        fn.call(null);\r\n      }\r\n      // Prevent ids from leaking\r\n      exports.clearImmediate(id);\r\n    }\r\n  });\r\n\r\n  return id;\r\n};\r\n\r\nexports.clearImmediate = typeof clearImmediate === \"function\" ? clearImmediate : function(id) {\r\n  delete immediateIds[id];\r\n};\r\n}).call(this,require(\"timers\").setImmediate,require(\"timers\").clearImmediate)\r\n},{\"process/browser.js\":72,\"timers\":110}],111:[function(require,module,exports){\r\n//     Underscore.js 1.8.3\r\n//     http://underscorejs.org\r\n//     (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\r\n//     Underscore may be freely distributed under the MIT license.\r\n\r\n(function() {\r\n\r\n  // Baseline setup\r\n  // --------------\r\n\r\n  // Establish the root object, `window` in the browser, or `exports` on the server.\r\n  var root = this;\r\n\r\n  // Save the previous value of the `_` variable.\r\n  var previousUnderscore = root._;\r\n\r\n  // Save bytes in the minified (but not gzipped) version:\r\n  var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;\r\n\r\n  // Create quick reference variables for speed access to core prototypes.\r\n  var\r\n    push             = ArrayProto.push,\r\n    slice            = ArrayProto.slice,\r\n    toString         = ObjProto.toString,\r\n    hasOwnProperty   = ObjProto.hasOwnProperty;\r\n\r\n  // All **ECMAScript 5** native function implementations that we hope to use\r\n  // are declared here.\r\n  var\r\n    nativeIsArray      = Array.isArray,\r\n    nativeKeys         = Object.keys,\r\n    nativeBind         = FuncProto.bind,\r\n    nativeCreate       = Object.create;\r\n\r\n  // Naked function reference for surrogate-prototype-swapping.\r\n  var Ctor = function(){};\r\n\r\n  // Create a safe reference to the Underscore object for use below.\r\n  var _ = function(obj) {\r\n    if (obj instanceof _) return obj;\r\n    if (!(this instanceof _)) return new _(obj);\r\n    this._wrapped = obj;\r\n  };\r\n\r\n  // Export the Underscore object for **Node.js**, with\r\n  // backwards-compatibility for the old `require()` API. If we're in\r\n  // the browser, add `_` as a global object.\r\n  if (typeof exports !== 'undefined') {\r\n    if (typeof module !== 'undefined' && module.exports) {\r\n      exports = module.exports = _;\r\n    }\r\n    exports._ = _;\r\n  } else {\r\n    root._ = _;\r\n  }\r\n\r\n  // Current version.\r\n  _.VERSION = '1.8.3';\r\n\r\n  // Internal function that returns an efficient (for current engines) version\r\n  // of the passed-in callback, to be repeatedly applied in other Underscore\r\n  // functions.\r\n  var optimizeCb = function(func, context, argCount) {\r\n    if (context === void 0) return func;\r\n    switch (argCount == null ? 3 : argCount) {\r\n      case 1: return function(value) {\r\n        return func.call(context, value);\r\n      };\r\n      case 2: return function(value, other) {\r\n        return func.call(context, value, other);\r\n      };\r\n      case 3: return function(value, index, collection) {\r\n        return func.call(context, value, index, collection);\r\n      };\r\n      case 4: return function(accumulator, value, index, collection) {\r\n        return func.call(context, accumulator, value, index, collection);\r\n      };\r\n    }\r\n    return function() {\r\n      return func.apply(context, arguments);\r\n    };\r\n  };\r\n\r\n  // A mostly-internal function to generate callbacks that can be applied\r\n  // to each element in a collection, returning the desired result — either\r\n  // identity, an arbitrary callback, a property matcher, or a property accessor.\r\n  var cb = function(value, context, argCount) {\r\n    if (value == null) return _.identity;\r\n    if (_.isFunction(value)) return optimizeCb(value, context, argCount);\r\n    if (_.isObject(value)) return _.matcher(value);\r\n    return _.property(value);\r\n  };\r\n  _.iteratee = function(value, context) {\r\n    return cb(value, context, Infinity);\r\n  };\r\n\r\n  // An internal function for creating assigner functions.\r\n  var createAssigner = function(keysFunc, undefinedOnly) {\r\n    return function(obj) {\r\n      var length = arguments.length;\r\n      if (length < 2 || obj == null) return obj;\r\n      for (var index = 1; index < length; index++) {\r\n        var source = arguments[index],\r\n            keys = keysFunc(source),\r\n            l = keys.length;\r\n        for (var i = 0; i < l; i++) {\r\n          var key = keys[i];\r\n          if (!undefinedOnly || obj[key] === void 0) obj[key] = source[key];\r\n        }\r\n      }\r\n      return obj;\r\n    };\r\n  };\r\n\r\n  // An internal function for creating a new object that inherits from another.\r\n  var baseCreate = function(prototype) {\r\n    if (!_.isObject(prototype)) return {};\r\n    if (nativeCreate) return nativeCreate(prototype);\r\n    Ctor.prototype = prototype;\r\n    var result = new Ctor;\r\n    Ctor.prototype = null;\r\n    return result;\r\n  };\r\n\r\n  var property = function(key) {\r\n    return function(obj) {\r\n      return obj == null ? void 0 : obj[key];\r\n    };\r\n  };\r\n\r\n  // Helper for collection methods to determine whether a collection\r\n  // should be iterated as an array or as an object\r\n  // Related: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\r\n  // Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\r\n  var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;\r\n  var getLength = property('length');\r\n  var isArrayLike = function(collection) {\r\n    var length = getLength(collection);\r\n    return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;\r\n  };\r\n\r\n  // Collection Functions\r\n  // --------------------\r\n\r\n  // The cornerstone, an `each` implementation, aka `forEach`.\r\n  // Handles raw objects in addition to array-likes. Treats all\r\n  // sparse array-likes as if they were dense.\r\n  _.each = _.forEach = function(obj, iteratee, context) {\r\n    iteratee = optimizeCb(iteratee, context);\r\n    var i, length;\r\n    if (isArrayLike(obj)) {\r\n      for (i = 0, length = obj.length; i < length; i++) {\r\n        iteratee(obj[i], i, obj);\r\n      }\r\n    } else {\r\n      var keys = _.keys(obj);\r\n      for (i = 0, length = keys.length; i < length; i++) {\r\n        iteratee(obj[keys[i]], keys[i], obj);\r\n      }\r\n    }\r\n    return obj;\r\n  };\r\n\r\n  // Return the results of applying the iteratee to each element.\r\n  _.map = _.collect = function(obj, iteratee, context) {\r\n    iteratee = cb(iteratee, context);\r\n    var keys = !isArrayLike(obj) && _.keys(obj),\r\n        length = (keys || obj).length,\r\n        results = Array(length);\r\n    for (var index = 0; index < length; index++) {\r\n      var currentKey = keys ? keys[index] : index;\r\n      results[index] = iteratee(obj[currentKey], currentKey, obj);\r\n    }\r\n    return results;\r\n  };\r\n\r\n  // Create a reducing function iterating left or right.\r\n  function createReduce(dir) {\r\n    // Optimized iterator function as using arguments.length\r\n    // in the main function will deoptimize the, see #1991.\r\n    function iterator(obj, iteratee, memo, keys, index, length) {\r\n      for (; index >= 0 && index < length; index += dir) {\r\n        var currentKey = keys ? keys[index] : index;\r\n        memo = iteratee(memo, obj[currentKey], currentKey, obj);\r\n      }\r\n      return memo;\r\n    }\r\n\r\n    return function(obj, iteratee, memo, context) {\r\n      iteratee = optimizeCb(iteratee, context, 4);\r\n      var keys = !isArrayLike(obj) && _.keys(obj),\r\n          length = (keys || obj).length,\r\n          index = dir > 0 ? 0 : length - 1;\r\n      // Determine the initial value if none is provided.\r\n      if (arguments.length < 3) {\r\n        memo = obj[keys ? keys[index] : index];\r\n        index += dir;\r\n      }\r\n      return iterator(obj, iteratee, memo, keys, index, length);\r\n    };\r\n  }\r\n\r\n  // **Reduce** builds up a single result from a list of values, aka `inject`,\r\n  // or `foldl`.\r\n  _.reduce = _.foldl = _.inject = createReduce(1);\r\n\r\n  // The right-associative version of reduce, also known as `foldr`.\r\n  _.reduceRight = _.foldr = createReduce(-1);\r\n\r\n  // Return the first value which passes a truth test. Aliased as `detect`.\r\n  _.find = _.detect = function(obj, predicate, context) {\r\n    var key;\r\n    if (isArrayLike(obj)) {\r\n      key = _.findIndex(obj, predicate, context);\r\n    } else {\r\n      key = _.findKey(obj, predicate, context);\r\n    }\r\n    if (key !== void 0 && key !== -1) return obj[key];\r\n  };\r\n\r\n  // Return all the elements that pass a truth test.\r\n  // Aliased as `select`.\r\n  _.filter = _.select = function(obj, predicate, context) {\r\n    var results = [];\r\n    predicate = cb(predicate, context);\r\n    _.each(obj, function(value, index, list) {\r\n      if (predicate(value, index, list)) results.push(value);\r\n    });\r\n    return results;\r\n  };\r\n\r\n  // Return all the elements for which a truth test fails.\r\n  _.reject = function(obj, predicate, context) {\r\n    return _.filter(obj, _.negate(cb(predicate)), context);\r\n  };\r\n\r\n  // Determine whether all of the elements match a truth test.\r\n  // Aliased as `all`.\r\n  _.every = _.all = function(obj, predicate, context) {\r\n    predicate = cb(predicate, context);\r\n    var keys = !isArrayLike(obj) && _.keys(obj),\r\n        length = (keys || obj).length;\r\n    for (var index = 0; index < length; index++) {\r\n      var currentKey = keys ? keys[index] : index;\r\n      if (!predicate(obj[currentKey], currentKey, obj)) return false;\r\n    }\r\n    return true;\r\n  };\r\n\r\n  // Determine if at least one element in the object matches a truth test.\r\n  // Aliased as `any`.\r\n  _.some = _.any = function(obj, predicate, context) {\r\n    predicate = cb(predicate, context);\r\n    var keys = !isArrayLike(obj) && _.keys(obj),\r\n        length = (keys || obj).length;\r\n    for (var index = 0; index < length; index++) {\r\n      var currentKey = keys ? keys[index] : index;\r\n      if (predicate(obj[currentKey], currentKey, obj)) return true;\r\n    }\r\n    return false;\r\n  };\r\n\r\n  // Determine if the array or object contains a given item (using `===`).\r\n  // Aliased as `includes` and `include`.\r\n  _.contains = _.includes = _.include = function(obj, item, fromIndex, guard) {\r\n    if (!isArrayLike(obj)) obj = _.values(obj);\r\n    if (typeof fromIndex != 'number' || guard) fromIndex = 0;\r\n    return _.indexOf(obj, item, fromIndex) >= 0;\r\n  };\r\n\r\n  // Invoke a method (with arguments) on every item in a collection.\r\n  _.invoke = function(obj, method) {\r\n    var args = slice.call(arguments, 2);\r\n    var isFunc = _.isFunction(method);\r\n    return _.map(obj, function(value) {\r\n      var func = isFunc ? method : value[method];\r\n      return func == null ? func : func.apply(value, args);\r\n    });\r\n  };\r\n\r\n  // Convenience version of a common use case of `map`: fetching a property.\r\n  _.pluck = function(obj, key) {\r\n    return _.map(obj, _.property(key));\r\n  };\r\n\r\n  // Convenience version of a common use case of `filter`: selecting only objects\r\n  // containing specific `key:value` pairs.\r\n  _.where = function(obj, attrs) {\r\n    return _.filter(obj, _.matcher(attrs));\r\n  };\r\n\r\n  // Convenience version of a common use case of `find`: getting the first object\r\n  // containing specific `key:value` pairs.\r\n  _.findWhere = function(obj, attrs) {\r\n    return _.find(obj, _.matcher(attrs));\r\n  };\r\n\r\n  // Return the maximum element (or element-based computation).\r\n  _.max = function(obj, iteratee, context) {\r\n    var result = -Infinity, lastComputed = -Infinity,\r\n        value, computed;\r\n    if (iteratee == null && obj != null) {\r\n      obj = isArrayLike(obj) ? obj : _.values(obj);\r\n      for (var i = 0, length = obj.length; i < length; i++) {\r\n        value = obj[i];\r\n        if (value > result) {\r\n          result = value;\r\n        }\r\n      }\r\n    } else {\r\n      iteratee = cb(iteratee, context);\r\n      _.each(obj, function(value, index, list) {\r\n        computed = iteratee(value, index, list);\r\n        if (computed > lastComputed || computed === -Infinity && result === -Infinity) {\r\n          result = value;\r\n          lastComputed = computed;\r\n        }\r\n      });\r\n    }\r\n    return result;\r\n  };\r\n\r\n  // Return the minimum element (or element-based computation).\r\n  _.min = function(obj, iteratee, context) {\r\n    var result = Infinity, lastComputed = Infinity,\r\n        value, computed;\r\n    if (iteratee == null && obj != null) {\r\n      obj = isArrayLike(obj) ? obj : _.values(obj);\r\n      for (var i = 0, length = obj.length; i < length; i++) {\r\n        value = obj[i];\r\n        if (value < result) {\r\n          result = value;\r\n        }\r\n      }\r\n    } else {\r\n      iteratee = cb(iteratee, context);\r\n      _.each(obj, function(value, index, list) {\r\n        computed = iteratee(value, index, list);\r\n        if (computed < lastComputed || computed === Infinity && result === Infinity) {\r\n          result = value;\r\n          lastComputed = computed;\r\n        }\r\n      });\r\n    }\r\n    return result;\r\n  };\r\n\r\n  // Shuffle a collection, using the modern version of the\r\n  // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).\r\n  _.shuffle = function(obj) {\r\n    var set = isArrayLike(obj) ? obj : _.values(obj);\r\n    var length = set.length;\r\n    var shuffled = Array(length);\r\n    for (var index = 0, rand; index < length; index++) {\r\n      rand = _.random(0, index);\r\n      if (rand !== index) shuffled[index] = shuffled[rand];\r\n      shuffled[rand] = set[index];\r\n    }\r\n    return shuffled;\r\n  };\r\n\r\n  // Sample **n** random values from a collection.\r\n  // If **n** is not specified, returns a single random element.\r\n  // The internal `guard` argument allows it to work with `map`.\r\n  _.sample = function(obj, n, guard) {\r\n    if (n == null || guard) {\r\n      if (!isArrayLike(obj)) obj = _.values(obj);\r\n      return obj[_.random(obj.length - 1)];\r\n    }\r\n    return _.shuffle(obj).slice(0, Math.max(0, n));\r\n  };\r\n\r\n  // Sort the object's values by a criterion produced by an iteratee.\r\n  _.sortBy = function(obj, iteratee, context) {\r\n    iteratee = cb(iteratee, context);\r\n    return _.pluck(_.map(obj, function(value, index, list) {\r\n      return {\r\n        value: value,\r\n        index: index,\r\n        criteria: iteratee(value, index, list)\r\n      };\r\n    }).sort(function(left, right) {\r\n      var a = left.criteria;\r\n      var b = right.criteria;\r\n      if (a !== b) {\r\n        if (a > b || a === void 0) return 1;\r\n        if (a < b || b === void 0) return -1;\r\n      }\r\n      return left.index - right.index;\r\n    }), 'value');\r\n  };\r\n\r\n  // An internal function used for aggregate \"group by\" operations.\r\n  var group = function(behavior) {\r\n    return function(obj, iteratee, context) {\r\n      var result = {};\r\n      iteratee = cb(iteratee, context);\r\n      _.each(obj, function(value, index) {\r\n        var key = iteratee(value, index, obj);\r\n        behavior(result, value, key);\r\n      });\r\n      return result;\r\n    };\r\n  };\r\n\r\n  // Groups the object's values by a criterion. Pass either a string attribute\r\n  // to group by, or a function that returns the criterion.\r\n  _.groupBy = group(function(result, value, key) {\r\n    if (_.has(result, key)) result[key].push(value); else result[key] = [value];\r\n  });\r\n\r\n  // Indexes the object's values by a criterion, similar to `groupBy`, but for\r\n  // when you know that your index values will be unique.\r\n  _.indexBy = group(function(result, value, key) {\r\n    result[key] = value;\r\n  });\r\n\r\n  // Counts instances of an object that group by a certain criterion. Pass\r\n  // either a string attribute to count by, or a function that returns the\r\n  // criterion.\r\n  _.countBy = group(function(result, value, key) {\r\n    if (_.has(result, key)) result[key]++; else result[key] = 1;\r\n  });\r\n\r\n  // Safely create a real, live array from anything iterable.\r\n  _.toArray = function(obj) {\r\n    if (!obj) return [];\r\n    if (_.isArray(obj)) return slice.call(obj);\r\n    if (isArrayLike(obj)) return _.map(obj, _.identity);\r\n    return _.values(obj);\r\n  };\r\n\r\n  // Return the number of elements in an object.\r\n  _.size = function(obj) {\r\n    if (obj == null) return 0;\r\n    return isArrayLike(obj) ? obj.length : _.keys(obj).length;\r\n  };\r\n\r\n  // Split a collection into two arrays: one whose elements all satisfy the given\r\n  // predicate, and one whose elements all do not satisfy the predicate.\r\n  _.partition = function(obj, predicate, context) {\r\n    predicate = cb(predicate, context);\r\n    var pass = [], fail = [];\r\n    _.each(obj, function(value, key, obj) {\r\n      (predicate(value, key, obj) ? pass : fail).push(value);\r\n    });\r\n    return [pass, fail];\r\n  };\r\n\r\n  // Array Functions\r\n  // ---------------\r\n\r\n  // Get the first element of an array. Passing **n** will return the first N\r\n  // values in the array. Aliased as `head` and `take`. The **guard** check\r\n  // allows it to work with `_.map`.\r\n  _.first = _.head = _.take = function(array, n, guard) {\r\n    if (array == null) return void 0;\r\n    if (n == null || guard) return array[0];\r\n    return _.initial(array, array.length - n);\r\n  };\r\n\r\n  // Returns everything but the last entry of the array. Especially useful on\r\n  // the arguments object. Passing **n** will return all the values in\r\n  // the array, excluding the last N.\r\n  _.initial = function(array, n, guard) {\r\n    return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));\r\n  };\r\n\r\n  // Get the last element of an array. Passing **n** will return the last N\r\n  // values in the array.\r\n  _.last = function(array, n, guard) {\r\n    if (array == null) return void 0;\r\n    if (n == null || guard) return array[array.length - 1];\r\n    return _.rest(array, Math.max(0, array.length - n));\r\n  };\r\n\r\n  // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.\r\n  // Especially useful on the arguments object. Passing an **n** will return\r\n  // the rest N values in the array.\r\n  _.rest = _.tail = _.drop = function(array, n, guard) {\r\n    return slice.call(array, n == null || guard ? 1 : n);\r\n  };\r\n\r\n  // Trim out all falsy values from an array.\r\n  _.compact = function(array) {\r\n    return _.filter(array, _.identity);\r\n  };\r\n\r\n  // Internal implementation of a recursive `flatten` function.\r\n  var flatten = function(input, shallow, strict, startIndex) {\r\n    var output = [], idx = 0;\r\n    for (var i = startIndex || 0, length = getLength(input); i < length; i++) {\r\n      var value = input[i];\r\n      if (isArrayLike(value) && (_.isArray(value) || _.isArguments(value))) {\r\n        //flatten current level of array or arguments object\r\n        if (!shallow) value = flatten(value, shallow, strict);\r\n        var j = 0, len = value.length;\r\n        output.length += len;\r\n        while (j < len) {\r\n          output[idx++] = value[j++];\r\n        }\r\n      } else if (!strict) {\r\n        output[idx++] = value;\r\n      }\r\n    }\r\n    return output;\r\n  };\r\n\r\n  // Flatten out an array, either recursively (by default), or just one level.\r\n  _.flatten = function(array, shallow) {\r\n    return flatten(array, shallow, false);\r\n  };\r\n\r\n  // Return a version of the array that does not contain the specified value(s).\r\n  _.without = function(array) {\r\n    return _.difference(array, slice.call(arguments, 1));\r\n  };\r\n\r\n  // Produce a duplicate-free version of the array. If the array has already\r\n  // been sorted, you have the option of using a faster algorithm.\r\n  // Aliased as `unique`.\r\n  _.uniq = _.unique = function(array, isSorted, iteratee, context) {\r\n    if (!_.isBoolean(isSorted)) {\r\n      context = iteratee;\r\n      iteratee = isSorted;\r\n      isSorted = false;\r\n    }\r\n    if (iteratee != null) iteratee = cb(iteratee, context);\r\n    var result = [];\r\n    var seen = [];\r\n    for (var i = 0, length = getLength(array); i < length; i++) {\r\n      var value = array[i],\r\n          computed = iteratee ? iteratee(value, i, array) : value;\r\n      if (isSorted) {\r\n        if (!i || seen !== computed) result.push(value);\r\n        seen = computed;\r\n      } else if (iteratee) {\r\n        if (!_.contains(seen, computed)) {\r\n          seen.push(computed);\r\n          result.push(value);\r\n        }\r\n      } else if (!_.contains(result, value)) {\r\n        result.push(value);\r\n      }\r\n    }\r\n    return result;\r\n  };\r\n\r\n  // Produce an array that contains the union: each distinct element from all of\r\n  // the passed-in arrays.\r\n  _.union = function() {\r\n    return _.uniq(flatten(arguments, true, true));\r\n  };\r\n\r\n  // Produce an array that contains every item shared between all the\r\n  // passed-in arrays.\r\n  _.intersection = function(array) {\r\n    var result = [];\r\n    var argsLength = arguments.length;\r\n    for (var i = 0, length = getLength(array); i < length; i++) {\r\n      var item = array[i];\r\n      if (_.contains(result, item)) continue;\r\n      for (var j = 1; j < argsLength; j++) {\r\n        if (!_.contains(arguments[j], item)) break;\r\n      }\r\n      if (j === argsLength) result.push(item);\r\n    }\r\n    return result;\r\n  };\r\n\r\n  // Take the difference between one array and a number of other arrays.\r\n  // Only the elements present in just the first array will remain.\r\n  _.difference = function(array) {\r\n    var rest = flatten(arguments, true, true, 1);\r\n    return _.filter(array, function(value){\r\n      return !_.contains(rest, value);\r\n    });\r\n  };\r\n\r\n  // Zip together multiple lists into a single array -- elements that share\r\n  // an index go together.\r\n  _.zip = function() {\r\n    return _.unzip(arguments);\r\n  };\r\n\r\n  // Complement of _.zip. Unzip accepts an array of arrays and groups\r\n  // each array's elements on shared indices\r\n  _.unzip = function(array) {\r\n    var length = array && _.max(array, getLength).length || 0;\r\n    var result = Array(length);\r\n\r\n    for (var index = 0; index < length; index++) {\r\n      result[index] = _.pluck(array, index);\r\n    }\r\n    return result;\r\n  };\r\n\r\n  // Converts lists into objects. Pass either a single array of `[key, value]`\r\n  // pairs, or two parallel arrays of the same length -- one of keys, and one of\r\n  // the corresponding values.\r\n  _.object = function(list, values) {\r\n    var result = {};\r\n    for (var i = 0, length = getLength(list); i < length; i++) {\r\n      if (values) {\r\n        result[list[i]] = values[i];\r\n      } else {\r\n        result[list[i][0]] = list[i][1];\r\n      }\r\n    }\r\n    return result;\r\n  };\r\n\r\n  // Generator function to create the findIndex and findLastIndex functions\r\n  function createPredicateIndexFinder(dir) {\r\n    return function(array, predicate, context) {\r\n      predicate = cb(predicate, context);\r\n      var length = getLength(array);\r\n      var index = dir > 0 ? 0 : length - 1;\r\n      for (; index >= 0 && index < length; index += dir) {\r\n        if (predicate(array[index], index, array)) return index;\r\n      }\r\n      return -1;\r\n    };\r\n  }\r\n\r\n  // Returns the first index on an array-like that passes a predicate test\r\n  _.findIndex = createPredicateIndexFinder(1);\r\n  _.findLastIndex = createPredicateIndexFinder(-1);\r\n\r\n  // Use a comparator function to figure out the smallest index at which\r\n  // an object should be inserted so as to maintain order. Uses binary search.\r\n  _.sortedIndex = function(array, obj, iteratee, context) {\r\n    iteratee = cb(iteratee, context, 1);\r\n    var value = iteratee(obj);\r\n    var low = 0, high = getLength(array);\r\n    while (low < high) {\r\n      var mid = Math.floor((low + high) / 2);\r\n      if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;\r\n    }\r\n    return low;\r\n  };\r\n\r\n  // Generator function to create the indexOf and lastIndexOf functions\r\n  function createIndexFinder(dir, predicateFind, sortedIndex) {\r\n    return function(array, item, idx) {\r\n      var i = 0, length = getLength(array);\r\n      if (typeof idx == 'number') {\r\n        if (dir > 0) {\r\n            i = idx >= 0 ? idx : Math.max(idx + length, i);\r\n        } else {\r\n            length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\r\n        }\r\n      } else if (sortedIndex && idx && length) {\r\n        idx = sortedIndex(array, item);\r\n        return array[idx] === item ? idx : -1;\r\n      }\r\n      if (item !== item) {\r\n        idx = predicateFind(slice.call(array, i, length), _.isNaN);\r\n        return idx >= 0 ? idx + i : -1;\r\n      }\r\n      for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\r\n        if (array[idx] === item) return idx;\r\n      }\r\n      return -1;\r\n    };\r\n  }\r\n\r\n  // Return the position of the first occurrence of an item in an array,\r\n  // or -1 if the item is not included in the array.\r\n  // If the array is large and already in sort order, pass `true`\r\n  // for **isSorted** to use binary search.\r\n  _.indexOf = createIndexFinder(1, _.findIndex, _.sortedIndex);\r\n  _.lastIndexOf = createIndexFinder(-1, _.findLastIndex);\r\n\r\n  // Generate an integer Array containing an arithmetic progression. A port of\r\n  // the native Python `range()` function. See\r\n  // [the Python documentation](http://docs.python.org/library/functions.html#range).\r\n  _.range = function(start, stop, step) {\r\n    if (stop == null) {\r\n      stop = start || 0;\r\n      start = 0;\r\n    }\r\n    step = step || 1;\r\n\r\n    var length = Math.max(Math.ceil((stop - start) / step), 0);\r\n    var range = Array(length);\r\n\r\n    for (var idx = 0; idx < length; idx++, start += step) {\r\n      range[idx] = start;\r\n    }\r\n\r\n    return range;\r\n  };\r\n\r\n  // Function (ahem) Functions\r\n  // ------------------\r\n\r\n  // Determines whether to execute a function as a constructor\r\n  // or a normal function with the provided arguments\r\n  var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) {\r\n    if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);\r\n    var self = baseCreate(sourceFunc.prototype);\r\n    var result = sourceFunc.apply(self, args);\r\n    if (_.isObject(result)) return result;\r\n    return self;\r\n  };\r\n\r\n  // Create a function bound to a given object (assigning `this`, and arguments,\r\n  // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if\r\n  // available.\r\n  _.bind = function(func, context) {\r\n    if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));\r\n    if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');\r\n    var args = slice.call(arguments, 2);\r\n    var bound = function() {\r\n      return executeBound(func, bound, context, this, args.concat(slice.call(arguments)));\r\n    };\r\n    return bound;\r\n  };\r\n\r\n  // Partially apply a function by creating a version that has had some of its\r\n  // arguments pre-filled, without changing its dynamic `this` context. _ acts\r\n  // as a placeholder, allowing any combination of arguments to be pre-filled.\r\n  _.partial = function(func) {\r\n    var boundArgs = slice.call(arguments, 1);\r\n    var bound = function() {\r\n      var position = 0, length = boundArgs.length;\r\n      var args = Array(length);\r\n      for (var i = 0; i < length; i++) {\r\n        args[i] = boundArgs[i] === _ ? arguments[position++] : boundArgs[i];\r\n      }\r\n      while (position < arguments.length) args.push(arguments[position++]);\r\n      return executeBound(func, bound, this, this, args);\r\n    };\r\n    return bound;\r\n  };\r\n\r\n  // Bind a number of an object's methods to that object. Remaining arguments\r\n  // are the method names to be bound. Useful for ensuring that all callbacks\r\n  // defined on an object belong to it.\r\n  _.bindAll = function(obj) {\r\n    var i, length = arguments.length, key;\r\n    if (length <= 1) throw new Error('bindAll must be passed function names');\r\n    for (i = 1; i < length; i++) {\r\n      key = arguments[i];\r\n      obj[key] = _.bind(obj[key], obj);\r\n    }\r\n    return obj;\r\n  };\r\n\r\n  // Memoize an expensive function by storing its results.\r\n  _.memoize = function(func, hasher) {\r\n    var memoize = function(key) {\r\n      var cache = memoize.cache;\r\n      var address = '' + (hasher ? hasher.apply(this, arguments) : key);\r\n      if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);\r\n      return cache[address];\r\n    };\r\n    memoize.cache = {};\r\n    return memoize;\r\n  };\r\n\r\n  // Delays a function for the given number of milliseconds, and then calls\r\n  // it with the arguments supplied.\r\n  _.delay = function(func, wait) {\r\n    var args = slice.call(arguments, 2);\r\n    return setTimeout(function(){\r\n      return func.apply(null, args);\r\n    }, wait);\r\n  };\r\n\r\n  // Defers a function, scheduling it to run after the current call stack has\r\n  // cleared.\r\n  _.defer = _.partial(_.delay, _, 1);\r\n\r\n  // Returns a function, that, when invoked, will only be triggered at most once\r\n  // during a given window of time. Normally, the throttled function will run\r\n  // as much as it can, without ever going more than once per `wait` duration;\r\n  // but if you'd like to disable the execution on the leading edge, pass\r\n  // `{leading: false}`. To disable execution on the trailing edge, ditto.\r\n  _.throttle = function(func, wait, options) {\r\n    var context, args, result;\r\n    var timeout = null;\r\n    var previous = 0;\r\n    if (!options) options = {};\r\n    var later = function() {\r\n      previous = options.leading === false ? 0 : _.now();\r\n      timeout = null;\r\n      result = func.apply(context, args);\r\n      if (!timeout) context = args = null;\r\n    };\r\n    return function() {\r\n      var now = _.now();\r\n      if (!previous && options.leading === false) previous = now;\r\n      var remaining = wait - (now - previous);\r\n      context = this;\r\n      args = arguments;\r\n      if (remaining <= 0 || remaining > wait) {\r\n        if (timeout) {\r\n          clearTimeout(timeout);\r\n          timeout = null;\r\n        }\r\n        previous = now;\r\n        result = func.apply(context, args);\r\n        if (!timeout) context = args = null;\r\n      } else if (!timeout && options.trailing !== false) {\r\n        timeout = setTimeout(later, remaining);\r\n      }\r\n      return result;\r\n    };\r\n  };\r\n\r\n  // Returns a function, that, as long as it continues to be invoked, will not\r\n  // be triggered. The function will be called after it stops being called for\r\n  // N milliseconds. If `immediate` is passed, trigger the function on the\r\n  // leading edge, instead of the trailing.\r\n  _.debounce = function(func, wait, immediate) {\r\n    var timeout, args, context, timestamp, result;\r\n\r\n    var later = function() {\r\n      var last = _.now() - timestamp;\r\n\r\n      if (last < wait && last >= 0) {\r\n        timeout = setTimeout(later, wait - last);\r\n      } else {\r\n        timeout = null;\r\n        if (!immediate) {\r\n          result = func.apply(context, args);\r\n          if (!timeout) context = args = null;\r\n        }\r\n      }\r\n    };\r\n\r\n    return function() {\r\n      context = this;\r\n      args = arguments;\r\n      timestamp = _.now();\r\n      var callNow = immediate && !timeout;\r\n      if (!timeout) timeout = setTimeout(later, wait);\r\n      if (callNow) {\r\n        result = func.apply(context, args);\r\n        context = args = null;\r\n      }\r\n\r\n      return result;\r\n    };\r\n  };\r\n\r\n  // Returns the first function passed as an argument to the second,\r\n  // allowing you to adjust arguments, run code before and after, and\r\n  // conditionally execute the original function.\r\n  _.wrap = function(func, wrapper) {\r\n    return _.partial(wrapper, func);\r\n  };\r\n\r\n  // Returns a negated version of the passed-in predicate.\r\n  _.negate = function(predicate) {\r\n    return function() {\r\n      return !predicate.apply(this, arguments);\r\n    };\r\n  };\r\n\r\n  // Returns a function that is the composition of a list of functions, each\r\n  // consuming the return value of the function that follows.\r\n  _.compose = function() {\r\n    var args = arguments;\r\n    var start = args.length - 1;\r\n    return function() {\r\n      var i = start;\r\n      var result = args[start].apply(this, arguments);\r\n      while (i--) result = args[i].call(this, result);\r\n      return result;\r\n    };\r\n  };\r\n\r\n  // Returns a function that will only be executed on and after the Nth call.\r\n  _.after = function(times, func) {\r\n    return function() {\r\n      if (--times < 1) {\r\n        return func.apply(this, arguments);\r\n      }\r\n    };\r\n  };\r\n\r\n  // Returns a function that will only be executed up to (but not including) the Nth call.\r\n  _.before = function(times, func) {\r\n    var memo;\r\n    return function() {\r\n      if (--times > 0) {\r\n        memo = func.apply(this, arguments);\r\n      }\r\n      if (times <= 1) func = null;\r\n      return memo;\r\n    };\r\n  };\r\n\r\n  // Returns a function that will be executed at most one time, no matter how\r\n  // often you call it. Useful for lazy initialization.\r\n  _.once = _.partial(_.before, 2);\r\n\r\n  // Object Functions\r\n  // ----------------\r\n\r\n  // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.\r\n  var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');\r\n  var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',\r\n                      'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];\r\n\r\n  function collectNonEnumProps(obj, keys) {\r\n    var nonEnumIdx = nonEnumerableProps.length;\r\n    var constructor = obj.constructor;\r\n    var proto = (_.isFunction(constructor) && constructor.prototype) || ObjProto;\r\n\r\n    // Constructor is a special case.\r\n    var prop = 'constructor';\r\n    if (_.has(obj, prop) && !_.contains(keys, prop)) keys.push(prop);\r\n\r\n    while (nonEnumIdx--) {\r\n      prop = nonEnumerableProps[nonEnumIdx];\r\n      if (prop in obj && obj[prop] !== proto[prop] && !_.contains(keys, prop)) {\r\n        keys.push(prop);\r\n      }\r\n    }\r\n  }\r\n\r\n  // Retrieve the names of an object's own properties.\r\n  // Delegates to **ECMAScript 5**'s native `Object.keys`\r\n  _.keys = function(obj) {\r\n    if (!_.isObject(obj)) return [];\r\n    if (nativeKeys) return nativeKeys(obj);\r\n    var keys = [];\r\n    for (var key in obj) if (_.has(obj, key)) keys.push(key);\r\n    // Ahem, IE < 9.\r\n    if (hasEnumBug) collectNonEnumProps(obj, keys);\r\n    return keys;\r\n  };\r\n\r\n  // Retrieve all the property names of an object.\r\n  _.allKeys = function(obj) {\r\n    if (!_.isObject(obj)) return [];\r\n    var keys = [];\r\n    for (var key in obj) keys.push(key);\r\n    // Ahem, IE < 9.\r\n    if (hasEnumBug) collectNonEnumProps(obj, keys);\r\n    return keys;\r\n  };\r\n\r\n  // Retrieve the values of an object's properties.\r\n  _.values = function(obj) {\r\n    var keys = _.keys(obj);\r\n    var length = keys.length;\r\n    var values = Array(length);\r\n    for (var i = 0; i < length; i++) {\r\n      values[i] = obj[keys[i]];\r\n    }\r\n    return values;\r\n  };\r\n\r\n  // Returns the results of applying the iteratee to each element of the object\r\n  // In contrast to _.map it returns an object\r\n  _.mapObject = function(obj, iteratee, context) {\r\n    iteratee = cb(iteratee, context);\r\n    var keys =  _.keys(obj),\r\n          length = keys.length,\r\n          results = {},\r\n          currentKey;\r\n      for (var index = 0; index < length; index++) {\r\n        currentKey = keys[index];\r\n        results[currentKey] = iteratee(obj[currentKey], currentKey, obj);\r\n      }\r\n      return results;\r\n  };\r\n\r\n  // Convert an object into a list of `[key, value]` pairs.\r\n  _.pairs = function(obj) {\r\n    var keys = _.keys(obj);\r\n    var length = keys.length;\r\n    var pairs = Array(length);\r\n    for (var i = 0; i < length; i++) {\r\n      pairs[i] = [keys[i], obj[keys[i]]];\r\n    }\r\n    return pairs;\r\n  };\r\n\r\n  // Invert the keys and values of an object. The values must be serializable.\r\n  _.invert = function(obj) {\r\n    var result = {};\r\n    var keys = _.keys(obj);\r\n    for (var i = 0, length = keys.length; i < length; i++) {\r\n      result[obj[keys[i]]] = keys[i];\r\n    }\r\n    return result;\r\n  };\r\n\r\n  // Return a sorted list of the function names available on the object.\r\n  // Aliased as `methods`\r\n  _.functions = _.methods = function(obj) {\r\n    var names = [];\r\n    for (var key in obj) {\r\n      if (_.isFunction(obj[key])) names.push(key);\r\n    }\r\n    return names.sort();\r\n  };\r\n\r\n  // Extend a given object with all the properties in passed-in object(s).\r\n  _.extend = createAssigner(_.allKeys);\r\n\r\n  // Assigns a given object with all the own properties in the passed-in object(s)\r\n  // (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\r\n  _.extendOwn = _.assign = createAssigner(_.keys);\r\n\r\n  // Returns the first key on an object that passes a predicate test\r\n  _.findKey = function(obj, predicate, context) {\r\n    predicate = cb(predicate, context);\r\n    var keys = _.keys(obj), key;\r\n    for (var i = 0, length = keys.length; i < length; i++) {\r\n      key = keys[i];\r\n      if (predicate(obj[key], key, obj)) return key;\r\n    }\r\n  };\r\n\r\n  // Return a copy of the object only containing the whitelisted properties.\r\n  _.pick = function(object, oiteratee, context) {\r\n    var result = {}, obj = object, iteratee, keys;\r\n    if (obj == null) return result;\r\n    if (_.isFunction(oiteratee)) {\r\n      keys = _.allKeys(obj);\r\n      iteratee = optimizeCb(oiteratee, context);\r\n    } else {\r\n      keys = flatten(arguments, false, false, 1);\r\n      iteratee = function(value, key, obj) { return key in obj; };\r\n      obj = Object(obj);\r\n    }\r\n    for (var i = 0, length = keys.length; i < length; i++) {\r\n      var key = keys[i];\r\n      var value = obj[key];\r\n      if (iteratee(value, key, obj)) result[key] = value;\r\n    }\r\n    return result;\r\n  };\r\n\r\n   // Return a copy of the object without the blacklisted properties.\r\n  _.omit = function(obj, iteratee, context) {\r\n    if (_.isFunction(iteratee)) {\r\n      iteratee = _.negate(iteratee);\r\n    } else {\r\n      var keys = _.map(flatten(arguments, false, false, 1), String);\r\n      iteratee = function(value, key) {\r\n        return !_.contains(keys, key);\r\n      };\r\n    }\r\n    return _.pick(obj, iteratee, context);\r\n  };\r\n\r\n  // Fill in a given object with default properties.\r\n  _.defaults = createAssigner(_.allKeys, true);\r\n\r\n  // Creates an object that inherits from the given prototype object.\r\n  // If additional properties are provided then they will be added to the\r\n  // created object.\r\n  _.create = function(prototype, props) {\r\n    var result = baseCreate(prototype);\r\n    if (props) _.extendOwn(result, props);\r\n    return result;\r\n  };\r\n\r\n  // Create a (shallow-cloned) duplicate of an object.\r\n  _.clone = function(obj) {\r\n    if (!_.isObject(obj)) return obj;\r\n    return _.isArray(obj) ? obj.slice() : _.extend({}, obj);\r\n  };\r\n\r\n  // Invokes interceptor with the obj, and then returns obj.\r\n  // The primary purpose of this method is to \"tap into\" a method chain, in\r\n  // order to perform operations on intermediate results within the chain.\r\n  _.tap = function(obj, interceptor) {\r\n    interceptor(obj);\r\n    return obj;\r\n  };\r\n\r\n  // Returns whether an object has a given set of `key:value` pairs.\r\n  _.isMatch = function(object, attrs) {\r\n    var keys = _.keys(attrs), length = keys.length;\r\n    if (object == null) return !length;\r\n    var obj = Object(object);\r\n    for (var i = 0; i < length; i++) {\r\n      var key = keys[i];\r\n      if (attrs[key] !== obj[key] || !(key in obj)) return false;\r\n    }\r\n    return true;\r\n  };\r\n\r\n\r\n  // Internal recursive comparison function for `isEqual`.\r\n  var eq = function(a, b, aStack, bStack) {\r\n    // Identical objects are equal. `0 === -0`, but they aren't identical.\r\n    // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).\r\n    if (a === b) return a !== 0 || 1 / a === 1 / b;\r\n    // A strict comparison is necessary because `null == undefined`.\r\n    if (a == null || b == null) return a === b;\r\n    // Unwrap any wrapped objects.\r\n    if (a instanceof _) a = a._wrapped;\r\n    if (b instanceof _) b = b._wrapped;\r\n    // Compare `[[Class]]` names.\r\n    var className = toString.call(a);\r\n    if (className !== toString.call(b)) return false;\r\n    switch (className) {\r\n      // Strings, numbers, regular expressions, dates, and booleans are compared by value.\r\n      case '[object RegExp]':\r\n      // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')\r\n      case '[object String]':\r\n        // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\r\n        // equivalent to `new String(\"5\")`.\r\n        return '' + a === '' + b;\r\n      case '[object Number]':\r\n        // `NaN`s are equivalent, but non-reflexive.\r\n        // Object(NaN) is equivalent to NaN\r\n        if (+a !== +a) return +b !== +b;\r\n        // An `egal` comparison is performed for other numeric values.\r\n        return +a === 0 ? 1 / +a === 1 / b : +a === +b;\r\n      case '[object Date]':\r\n      case '[object Boolean]':\r\n        // Coerce dates and booleans to numeric primitive values. Dates are compared by their\r\n        // millisecond representations. Note that invalid dates with millisecond representations\r\n        // of `NaN` are not equivalent.\r\n        return +a === +b;\r\n    }\r\n\r\n    var areArrays = className === '[object Array]';\r\n    if (!areArrays) {\r\n      if (typeof a != 'object' || typeof b != 'object') return false;\r\n\r\n      // Objects with different constructors are not equivalent, but `Object`s or `Array`s\r\n      // from different frames are.\r\n      var aCtor = a.constructor, bCtor = b.constructor;\r\n      if (aCtor !== bCtor && !(_.isFunction(aCtor) && aCtor instanceof aCtor &&\r\n                               _.isFunction(bCtor) && bCtor instanceof bCtor)\r\n                          && ('constructor' in a && 'constructor' in b)) {\r\n        return false;\r\n      }\r\n    }\r\n    // Assume equality for cyclic structures. The algorithm for detecting cyclic\r\n    // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\r\n\r\n    // Initializing stack of traversed objects.\r\n    // It's done here since we only need them for objects and arrays comparison.\r\n    aStack = aStack || [];\r\n    bStack = bStack || [];\r\n    var length = aStack.length;\r\n    while (length--) {\r\n      // Linear search. Performance is inversely proportional to the number of\r\n      // unique nested structures.\r\n      if (aStack[length] === a) return bStack[length] === b;\r\n    }\r\n\r\n    // Add the first object to the stack of traversed objects.\r\n    aStack.push(a);\r\n    bStack.push(b);\r\n\r\n    // Recursively compare objects and arrays.\r\n    if (areArrays) {\r\n      // Compare array lengths to determine if a deep comparison is necessary.\r\n      length = a.length;\r\n      if (length !== b.length) return false;\r\n      // Deep compare the contents, ignoring non-numeric properties.\r\n      while (length--) {\r\n        if (!eq(a[length], b[length], aStack, bStack)) return false;\r\n      }\r\n    } else {\r\n      // Deep compare objects.\r\n      var keys = _.keys(a), key;\r\n      length = keys.length;\r\n      // Ensure that both objects contain the same number of properties before comparing deep equality.\r\n      if (_.keys(b).length !== length) return false;\r\n      while (length--) {\r\n        // Deep compare each member\r\n        key = keys[length];\r\n        if (!(_.has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;\r\n      }\r\n    }\r\n    // Remove the first object from the stack of traversed objects.\r\n    aStack.pop();\r\n    bStack.pop();\r\n    return true;\r\n  };\r\n\r\n  // Perform a deep comparison to check if two objects are equal.\r\n  _.isEqual = function(a, b) {\r\n    return eq(a, b);\r\n  };\r\n\r\n  // Is a given array, string, or object empty?\r\n  // An \"empty\" object has no enumerable own-properties.\r\n  _.isEmpty = function(obj) {\r\n    if (obj == null) return true;\r\n    if (isArrayLike(obj) && (_.isArray(obj) || _.isString(obj) || _.isArguments(obj))) return obj.length === 0;\r\n    return _.keys(obj).length === 0;\r\n  };\r\n\r\n  // Is a given value a DOM element?\r\n  _.isElement = function(obj) {\r\n    return !!(obj && obj.nodeType === 1);\r\n  };\r\n\r\n  // Is a given value an array?\r\n  // Delegates to ECMA5's native Array.isArray\r\n  _.isArray = nativeIsArray || function(obj) {\r\n    return toString.call(obj) === '[object Array]';\r\n  };\r\n\r\n  // Is a given variable an object?\r\n  _.isObject = function(obj) {\r\n    var type = typeof obj;\r\n    return type === 'function' || type === 'object' && !!obj;\r\n  };\r\n\r\n  // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError.\r\n  _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'], function(name) {\r\n    _['is' + name] = function(obj) {\r\n      return toString.call(obj) === '[object ' + name + ']';\r\n    };\r\n  });\r\n\r\n  // Define a fallback version of the method in browsers (ahem, IE < 9), where\r\n  // there isn't any inspectable \"Arguments\" type.\r\n  if (!_.isArguments(arguments)) {\r\n    _.isArguments = function(obj) {\r\n      return _.has(obj, 'callee');\r\n    };\r\n  }\r\n\r\n  // Optimize `isFunction` if appropriate. Work around some typeof bugs in old v8,\r\n  // IE 11 (#1621), and in Safari 8 (#1929).\r\n  if (typeof /./ != 'function' && typeof Int8Array != 'object') {\r\n    _.isFunction = function(obj) {\r\n      return typeof obj == 'function' || false;\r\n    };\r\n  }\r\n\r\n  // Is a given object a finite number?\r\n  _.isFinite = function(obj) {\r\n    return isFinite(obj) && !isNaN(parseFloat(obj));\r\n  };\r\n\r\n  // Is the given value `NaN`? (NaN is the only number which does not equal itself).\r\n  _.isNaN = function(obj) {\r\n    return _.isNumber(obj) && obj !== +obj;\r\n  };\r\n\r\n  // Is a given value a boolean?\r\n  _.isBoolean = function(obj) {\r\n    return obj === true || obj === false || toString.call(obj) === '[object Boolean]';\r\n  };\r\n\r\n  // Is a given value equal to null?\r\n  _.isNull = function(obj) {\r\n    return obj === null;\r\n  };\r\n\r\n  // Is a given variable undefined?\r\n  _.isUndefined = function(obj) {\r\n    return obj === void 0;\r\n  };\r\n\r\n  // Shortcut function for checking if an object has a given property directly\r\n  // on itself (in other words, not on a prototype).\r\n  _.has = function(obj, key) {\r\n    return obj != null && hasOwnProperty.call(obj, key);\r\n  };\r\n\r\n  // Utility Functions\r\n  // -----------------\r\n\r\n  // Run Underscore.js in *noConflict* mode, returning the `_` variable to its\r\n  // previous owner. Returns a reference to the Underscore object.\r\n  _.noConflict = function() {\r\n    root._ = previousUnderscore;\r\n    return this;\r\n  };\r\n\r\n  // Keep the identity function around for default iteratees.\r\n  _.identity = function(value) {\r\n    return value;\r\n  };\r\n\r\n  // Predicate-generating functions. Often useful outside of Underscore.\r\n  _.constant = function(value) {\r\n    return function() {\r\n      return value;\r\n    };\r\n  };\r\n\r\n  _.noop = function(){};\r\n\r\n  _.property = property;\r\n\r\n  // Generates a function for a given object that returns a given property.\r\n  _.propertyOf = function(obj) {\r\n    return obj == null ? function(){} : function(key) {\r\n      return obj[key];\r\n    };\r\n  };\r\n\r\n  // Returns a predicate for checking whether an object has a given set of\r\n  // `key:value` pairs.\r\n  _.matcher = _.matches = function(attrs) {\r\n    attrs = _.extendOwn({}, attrs);\r\n    return function(obj) {\r\n      return _.isMatch(obj, attrs);\r\n    };\r\n  };\r\n\r\n  // Run a function **n** times.\r\n  _.times = function(n, iteratee, context) {\r\n    var accum = Array(Math.max(0, n));\r\n    iteratee = optimizeCb(iteratee, context, 1);\r\n    for (var i = 0; i < n; i++) accum[i] = iteratee(i);\r\n    return accum;\r\n  };\r\n\r\n  // Return a random integer between min and max (inclusive).\r\n  _.random = function(min, max) {\r\n    if (max == null) {\r\n      max = min;\r\n      min = 0;\r\n    }\r\n    return min + Math.floor(Math.random() * (max - min + 1));\r\n  };\r\n\r\n  // A (possibly faster) way to get the current timestamp as an integer.\r\n  _.now = Date.now || function() {\r\n    return new Date().getTime();\r\n  };\r\n\r\n   // List of HTML entities for escaping.\r\n  var escapeMap = {\r\n    '&': '&amp;',\r\n    '<': '&lt;',\r\n    '>': '&gt;',\r\n    '\"': '&quot;',\r\n    \"'\": '&#x27;',\r\n    '`': '&#x60;'\r\n  };\r\n  var unescapeMap = _.invert(escapeMap);\r\n\r\n  // Functions for escaping and unescaping strings to/from HTML interpolation.\r\n  var createEscaper = function(map) {\r\n    var escaper = function(match) {\r\n      return map[match];\r\n    };\r\n    // Regexes for identifying a key that needs to be escaped\r\n    var source = '(?:' + _.keys(map).join('|') + ')';\r\n    var testRegexp = RegExp(source);\r\n    var replaceRegexp = RegExp(source, 'g');\r\n    return function(string) {\r\n      string = string == null ? '' : '' + string;\r\n      return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;\r\n    };\r\n  };\r\n  _.escape = createEscaper(escapeMap);\r\n  _.unescape = createEscaper(unescapeMap);\r\n\r\n  // If the value of the named `property` is a function then invoke it with the\r\n  // `object` as context; otherwise, return it.\r\n  _.result = function(object, property, fallback) {\r\n    var value = object == null ? void 0 : object[property];\r\n    if (value === void 0) {\r\n      value = fallback;\r\n    }\r\n    return _.isFunction(value) ? value.call(object) : value;\r\n  };\r\n\r\n  // Generate a unique integer id (unique within the entire client session).\r\n  // Useful for temporary DOM ids.\r\n  var idCounter = 0;\r\n  _.uniqueId = function(prefix) {\r\n    var id = ++idCounter + '';\r\n    return prefix ? prefix + id : id;\r\n  };\r\n\r\n  // By default, Underscore uses ERB-style template delimiters, change the\r\n  // following template settings to use alternative delimiters.\r\n  _.templateSettings = {\r\n    evaluate    : /<%([\\s\\S]+?)%>/g,\r\n    interpolate : /<%=([\\s\\S]+?)%>/g,\r\n    escape      : /<%-([\\s\\S]+?)%>/g\r\n  };\r\n\r\n  // When customizing `templateSettings`, if you don't want to define an\r\n  // interpolation, evaluation or escaping regex, we need one that is\r\n  // guaranteed not to match.\r\n  var noMatch = /(.)^/;\r\n\r\n  // Certain characters need to be escaped so that they can be put into a\r\n  // string literal.\r\n  var escapes = {\r\n    \"'\":      \"'\",\r\n    '\\\\':     '\\\\',\r\n    '\\r':     'r',\r\n    '\\n':     'n',\r\n    '\\u2028': 'u2028',\r\n    '\\u2029': 'u2029'\r\n  };\r\n\r\n  var escaper = /\\\\|'|\\r|\\n|\\u2028|\\u2029/g;\r\n\r\n  var escapeChar = function(match) {\r\n    return '\\\\' + escapes[match];\r\n  };\r\n\r\n  // JavaScript micro-templating, similar to John Resig's implementation.\r\n  // Underscore templating handles arbitrary delimiters, preserves whitespace,\r\n  // and correctly escapes quotes within interpolated code.\r\n  // NB: `oldSettings` only exists for backwards compatibility.\r\n  _.template = function(text, settings, oldSettings) {\r\n    if (!settings && oldSettings) settings = oldSettings;\r\n    settings = _.defaults({}, settings, _.templateSettings);\r\n\r\n    // Combine delimiters into one regular expression via alternation.\r\n    var matcher = RegExp([\r\n      (settings.escape || noMatch).source,\r\n      (settings.interpolate || noMatch).source,\r\n      (settings.evaluate || noMatch).source\r\n    ].join('|') + '|$', 'g');\r\n\r\n    // Compile the template source, escaping string literals appropriately.\r\n    var index = 0;\r\n    var source = \"__p+='\";\r\n    text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {\r\n      source += text.slice(index, offset).replace(escaper, escapeChar);\r\n      index = offset + match.length;\r\n\r\n      if (escape) {\r\n        source += \"'+\\n((__t=(\" + escape + \"))==null?'':_.escape(__t))+\\n'\";\r\n      } else if (interpolate) {\r\n        source += \"'+\\n((__t=(\" + interpolate + \"))==null?'':__t)+\\n'\";\r\n      } else if (evaluate) {\r\n        source += \"';\\n\" + evaluate + \"\\n__p+='\";\r\n      }\r\n\r\n      // Adobe VMs need the match returned to produce the correct offest.\r\n      return match;\r\n    });\r\n    source += \"';\\n\";\r\n\r\n    // If a variable is not specified, place data values in local scope.\r\n    if (!settings.variable) source = 'with(obj||{}){\\n' + source + '}\\n';\r\n\r\n    source = \"var __t,__p='',__j=Array.prototype.join,\" +\r\n      \"print=function(){__p+=__j.call(arguments,'');};\\n\" +\r\n      source + 'return __p;\\n';\r\n\r\n    try {\r\n      var render = new Function(settings.variable || 'obj', '_', source);\r\n    } catch (e) {\r\n      e.source = source;\r\n      throw e;\r\n    }\r\n\r\n    var template = function(data) {\r\n      return render.call(this, data, _);\r\n    };\r\n\r\n    // Provide the compiled source as a convenience for precompilation.\r\n    var argument = settings.variable || 'obj';\r\n    template.source = 'function(' + argument + '){\\n' + source + '}';\r\n\r\n    return template;\r\n  };\r\n\r\n  // Add a \"chain\" function. Start chaining a wrapped Underscore object.\r\n  _.chain = function(obj) {\r\n    var instance = _(obj);\r\n    instance._chain = true;\r\n    return instance;\r\n  };\r\n\r\n  // OOP\r\n  // ---------------\r\n  // If Underscore is called as a function, it returns a wrapped object that\r\n  // can be used OO-style. This wrapper holds altered versions of all the\r\n  // underscore functions. Wrapped objects may be chained.\r\n\r\n  // Helper function to continue chaining intermediate results.\r\n  var result = function(instance, obj) {\r\n    return instance._chain ? _(obj).chain() : obj;\r\n  };\r\n\r\n  // Add your own custom functions to the Underscore object.\r\n  _.mixin = function(obj) {\r\n    _.each(_.functions(obj), function(name) {\r\n      var func = _[name] = obj[name];\r\n      _.prototype[name] = function() {\r\n        var args = [this._wrapped];\r\n        push.apply(args, arguments);\r\n        return result(this, func.apply(_, args));\r\n      };\r\n    });\r\n  };\r\n\r\n  // Add all of the Underscore functions to the wrapper object.\r\n  _.mixin(_);\r\n\r\n  // Add all mutator Array functions to the wrapper.\r\n  _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {\r\n    var method = ArrayProto[name];\r\n    _.prototype[name] = function() {\r\n      var obj = this._wrapped;\r\n      method.apply(obj, arguments);\r\n      if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];\r\n      return result(this, obj);\r\n    };\r\n  });\r\n\r\n  // Add all accessor Array functions to the wrapper.\r\n  _.each(['concat', 'join', 'slice'], function(name) {\r\n    var method = ArrayProto[name];\r\n    _.prototype[name] = function() {\r\n      return result(this, method.apply(this._wrapped, arguments));\r\n    };\r\n  });\r\n\r\n  // Extracts the result from a wrapped and chained object.\r\n  _.prototype.value = function() {\r\n    return this._wrapped;\r\n  };\r\n\r\n  // Provide unwrapping proxy for some methods used in engine operations\r\n  // such as arithmetic and JSON stringification.\r\n  _.prototype.valueOf = _.prototype.toJSON = _.prototype.value;\r\n\r\n  _.prototype.toString = function() {\r\n    return '' + this._wrapped;\r\n  };\r\n\r\n  // AMD registration happens at the end for compatibility with AMD loaders\r\n  // that may not enforce next-turn semantics on modules. Even though general\r\n  // practice for AMD registration is to be anonymous, underscore registers\r\n  // as a named module because, like jQuery, it is a base library that is\r\n  // popular enough to be bundled in a third party lib, but not be part of\r\n  // an AMD load request. Those cases could generate an error when an\r\n  // anonymous define() is called outside of a loader request.\r\n  if (typeof define === 'function' && define.amd) {\r\n    define('underscore', [], function() {\r\n      return _;\r\n    });\r\n  }\r\n}.call(this));\r\n\r\n},{}],112:[function(require,module,exports){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\n'use strict';\r\n\r\nvar punycode = require('punycode');\r\nvar util = require('./util');\r\n\r\nexports.parse = urlParse;\r\nexports.resolve = urlResolve;\r\nexports.resolveObject = urlResolveObject;\r\nexports.format = urlFormat;\r\n\r\nexports.Url = Url;\r\n\r\nfunction Url() {\r\n  this.protocol = null;\r\n  this.slashes = null;\r\n  this.auth = null;\r\n  this.host = null;\r\n  this.port = null;\r\n  this.hostname = null;\r\n  this.hash = null;\r\n  this.search = null;\r\n  this.query = null;\r\n  this.pathname = null;\r\n  this.path = null;\r\n  this.href = null;\r\n}\r\n\r\n// Reference: RFC 3986, RFC 1808, RFC 2396\r\n\r\n// define these here so at least they only have to be\r\n// compiled once on the first module load.\r\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\r\n    portPattern = /:[0-9]*$/,\r\n\r\n    // Special case for a simple path URL\r\n    simplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\r\n\r\n    // RFC 2396: characters reserved for delimiting URLs.\r\n    // We actually just auto-escape these.\r\n    delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\r\n\r\n    // RFC 2396: characters not allowed for various reasons.\r\n    unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\r\n\r\n    // Allowed by RFCs, but cause of XSS attacks.  Always escape these.\r\n    autoEscape = ['\\''].concat(unwise),\r\n    // Characters that are never ever allowed in a hostname.\r\n    // Note that any invalid chars are also handled, but these\r\n    // are the ones that are *expected* to be seen, so we fast-path\r\n    // them.\r\n    nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\r\n    hostEndingChars = ['/', '?', '#'],\r\n    hostnameMaxLen = 255,\r\n    hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\r\n    hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\r\n    // protocols that can allow \"unsafe\" and \"unwise\" chars.\r\n    unsafeProtocol = {\r\n      'javascript': true,\r\n      'javascript:': true\r\n    },\r\n    // protocols that never have a hostname.\r\n    hostlessProtocol = {\r\n      'javascript': true,\r\n      'javascript:': true\r\n    },\r\n    // protocols that always contain a // bit.\r\n    slashedProtocol = {\r\n      'http': true,\r\n      'https': true,\r\n      'ftp': true,\r\n      'gopher': true,\r\n      'file': true,\r\n      'http:': true,\r\n      'https:': true,\r\n      'ftp:': true,\r\n      'gopher:': true,\r\n      'file:': true\r\n    },\r\n    querystring = require('querystring');\r\n\r\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\r\n  if (url && util.isObject(url) && url instanceof Url) return url;\r\n\r\n  var u = new Url;\r\n  u.parse(url, parseQueryString, slashesDenoteHost);\r\n  return u;\r\n}\r\n\r\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\r\n  if (!util.isString(url)) {\r\n    throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\r\n  }\r\n\r\n  // Copy chrome, IE, opera backslash-handling behavior.\r\n  // Back slashes before the query string get converted to forward slashes\r\n  // See: https://code.google.com/p/chromium/issues/detail?id=25916\r\n  var queryIndex = url.indexOf('?'),\r\n      splitter =\r\n          (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',\r\n      uSplit = url.split(splitter),\r\n      slashRegex = /\\\\/g;\r\n  uSplit[0] = uSplit[0].replace(slashRegex, '/');\r\n  url = uSplit.join(splitter);\r\n\r\n  var rest = url;\r\n\r\n  // trim before proceeding.\r\n  // This is to support parse stuff like \"  http://foo.com  \\n\"\r\n  rest = rest.trim();\r\n\r\n  if (!slashesDenoteHost && url.split('#').length === 1) {\r\n    // Try fast path regexp\r\n    var simplePath = simplePathPattern.exec(rest);\r\n    if (simplePath) {\r\n      this.path = rest;\r\n      this.href = rest;\r\n      this.pathname = simplePath[1];\r\n      if (simplePath[2]) {\r\n        this.search = simplePath[2];\r\n        if (parseQueryString) {\r\n          this.query = querystring.parse(this.search.substr(1));\r\n        } else {\r\n          this.query = this.search.substr(1);\r\n        }\r\n      } else if (parseQueryString) {\r\n        this.search = '';\r\n        this.query = {};\r\n      }\r\n      return this;\r\n    }\r\n  }\r\n\r\n  var proto = protocolPattern.exec(rest);\r\n  if (proto) {\r\n    proto = proto[0];\r\n    var lowerProto = proto.toLowerCase();\r\n    this.protocol = lowerProto;\r\n    rest = rest.substr(proto.length);\r\n  }\r\n\r\n  // figure out if it's got a host\r\n  // user@server is *always* interpreted as a hostname, and url\r\n  // resolution will treat //foo/bar as host=foo,path=bar because that's\r\n  // how the browser resolves relative URLs.\r\n  if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\r\n    var slashes = rest.substr(0, 2) === '//';\r\n    if (slashes && !(proto && hostlessProtocol[proto])) {\r\n      rest = rest.substr(2);\r\n      this.slashes = true;\r\n    }\r\n  }\r\n\r\n  if (!hostlessProtocol[proto] &&\r\n      (slashes || (proto && !slashedProtocol[proto]))) {\r\n\r\n    // there's a hostname.\r\n    // the first instance of /, ?, ;, or # ends the host.\r\n    //\r\n    // If there is an @ in the hostname, then non-host chars *are* allowed\r\n    // to the left of the last @ sign, unless some host-ending character\r\n    // comes *before* the @-sign.\r\n    // URLs are obnoxious.\r\n    //\r\n    // ex:\r\n    // http://a@b@c/ => user:a@b host:c\r\n    // http://a@b?@c => user:a host:c path:/?@c\r\n\r\n    // v0.12 TODO(isaacs): This is not quite how Chrome does things.\r\n    // Review our test case against browsers more comprehensively.\r\n\r\n    // find the first instance of any hostEndingChars\r\n    var hostEnd = -1;\r\n    for (var i = 0; i < hostEndingChars.length; i++) {\r\n      var hec = rest.indexOf(hostEndingChars[i]);\r\n      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\r\n        hostEnd = hec;\r\n    }\r\n\r\n    // at this point, either we have an explicit point where the\r\n    // auth portion cannot go past, or the last @ char is the decider.\r\n    var auth, atSign;\r\n    if (hostEnd === -1) {\r\n      // atSign can be anywhere.\r\n      atSign = rest.lastIndexOf('@');\r\n    } else {\r\n      // atSign must be in auth portion.\r\n      // http://a@b/c@d => host:b auth:a path:/c@d\r\n      atSign = rest.lastIndexOf('@', hostEnd);\r\n    }\r\n\r\n    // Now we have a portion which is definitely the auth.\r\n    // Pull that off.\r\n    if (atSign !== -1) {\r\n      auth = rest.slice(0, atSign);\r\n      rest = rest.slice(atSign + 1);\r\n      this.auth = decodeURIComponent(auth);\r\n    }\r\n\r\n    // the host is the remaining to the left of the first non-host char\r\n    hostEnd = -1;\r\n    for (var i = 0; i < nonHostChars.length; i++) {\r\n      var hec = rest.indexOf(nonHostChars[i]);\r\n      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\r\n        hostEnd = hec;\r\n    }\r\n    // if we still have not hit it, then the entire thing is a host.\r\n    if (hostEnd === -1)\r\n      hostEnd = rest.length;\r\n\r\n    this.host = rest.slice(0, hostEnd);\r\n    rest = rest.slice(hostEnd);\r\n\r\n    // pull out port.\r\n    this.parseHost();\r\n\r\n    // we've indicated that there is a hostname,\r\n    // so even if it's empty, it has to be present.\r\n    this.hostname = this.hostname || '';\r\n\r\n    // if hostname begins with [ and ends with ]\r\n    // assume that it's an IPv6 address.\r\n    var ipv6Hostname = this.hostname[0] === '[' &&\r\n        this.hostname[this.hostname.length - 1] === ']';\r\n\r\n    // validate a little.\r\n    if (!ipv6Hostname) {\r\n      var hostparts = this.hostname.split(/\\./);\r\n      for (var i = 0, l = hostparts.length; i < l; i++) {\r\n        var part = hostparts[i];\r\n        if (!part) continue;\r\n        if (!part.match(hostnamePartPattern)) {\r\n          var newpart = '';\r\n          for (var j = 0, k = part.length; j < k; j++) {\r\n            if (part.charCodeAt(j) > 127) {\r\n              // we replace non-ASCII char with a temporary placeholder\r\n              // we need this to make sure size of hostname is not\r\n              // broken by replacing non-ASCII by nothing\r\n              newpart += 'x';\r\n            } else {\r\n              newpart += part[j];\r\n            }\r\n          }\r\n          // we test again with ASCII char only\r\n          if (!newpart.match(hostnamePartPattern)) {\r\n            var validParts = hostparts.slice(0, i);\r\n            var notHost = hostparts.slice(i + 1);\r\n            var bit = part.match(hostnamePartStart);\r\n            if (bit) {\r\n              validParts.push(bit[1]);\r\n              notHost.unshift(bit[2]);\r\n            }\r\n            if (notHost.length) {\r\n              rest = '/' + notHost.join('.') + rest;\r\n            }\r\n            this.hostname = validParts.join('.');\r\n            break;\r\n          }\r\n        }\r\n      }\r\n    }\r\n\r\n    if (this.hostname.length > hostnameMaxLen) {\r\n      this.hostname = '';\r\n    } else {\r\n      // hostnames are always lower case.\r\n      this.hostname = this.hostname.toLowerCase();\r\n    }\r\n\r\n    if (!ipv6Hostname) {\r\n      // IDNA Support: Returns a punycoded representation of \"domain\".\r\n      // It only converts parts of the domain name that\r\n      // have non-ASCII characters, i.e. it doesn't matter if\r\n      // you call it with a domain that already is ASCII-only.\r\n      this.hostname = punycode.toASCII(this.hostname);\r\n    }\r\n\r\n    var p = this.port ? ':' + this.port : '';\r\n    var h = this.hostname || '';\r\n    this.host = h + p;\r\n    this.href += this.host;\r\n\r\n    // strip [ and ] from the hostname\r\n    // the host field still retains them, though\r\n    if (ipv6Hostname) {\r\n      this.hostname = this.hostname.substr(1, this.hostname.length - 2);\r\n      if (rest[0] !== '/') {\r\n        rest = '/' + rest;\r\n      }\r\n    }\r\n  }\r\n\r\n  // now rest is set to the post-host stuff.\r\n  // chop off any delim chars.\r\n  if (!unsafeProtocol[lowerProto]) {\r\n\r\n    // First, make 100% sure that any \"autoEscape\" chars get\r\n    // escaped, even if encodeURIComponent doesn't think they\r\n    // need to be.\r\n    for (var i = 0, l = autoEscape.length; i < l; i++) {\r\n      var ae = autoEscape[i];\r\n      if (rest.indexOf(ae) === -1)\r\n        continue;\r\n      var esc = encodeURIComponent(ae);\r\n      if (esc === ae) {\r\n        esc = escape(ae);\r\n      }\r\n      rest = rest.split(ae).join(esc);\r\n    }\r\n  }\r\n\r\n\r\n  // chop off from the tail first.\r\n  var hash = rest.indexOf('#');\r\n  if (hash !== -1) {\r\n    // got a fragment string.\r\n    this.hash = rest.substr(hash);\r\n    rest = rest.slice(0, hash);\r\n  }\r\n  var qm = rest.indexOf('?');\r\n  if (qm !== -1) {\r\n    this.search = rest.substr(qm);\r\n    this.query = rest.substr(qm + 1);\r\n    if (parseQueryString) {\r\n      this.query = querystring.parse(this.query);\r\n    }\r\n    rest = rest.slice(0, qm);\r\n  } else if (parseQueryString) {\r\n    // no query string, but parseQueryString still requested\r\n    this.search = '';\r\n    this.query = {};\r\n  }\r\n  if (rest) this.pathname = rest;\r\n  if (slashedProtocol[lowerProto] &&\r\n      this.hostname && !this.pathname) {\r\n    this.pathname = '/';\r\n  }\r\n\r\n  //to support http.request\r\n  if (this.pathname || this.search) {\r\n    var p = this.pathname || '';\r\n    var s = this.search || '';\r\n    this.path = p + s;\r\n  }\r\n\r\n  // finally, reconstruct the href based on what has been validated.\r\n  this.href = this.format();\r\n  return this;\r\n};\r\n\r\n// format a parsed object into a url string\r\nfunction urlFormat(obj) {\r\n  // ensure it's an object, and not a string url.\r\n  // If it's an obj, this is a no-op.\r\n  // this way, you can call url_format() on strings\r\n  // to clean up potentially wonky urls.\r\n  if (util.isString(obj)) obj = urlParse(obj);\r\n  if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\r\n  return obj.format();\r\n}\r\n\r\nUrl.prototype.format = function() {\r\n  var auth = this.auth || '';\r\n  if (auth) {\r\n    auth = encodeURIComponent(auth);\r\n    auth = auth.replace(/%3A/i, ':');\r\n    auth += '@';\r\n  }\r\n\r\n  var protocol = this.protocol || '',\r\n      pathname = this.pathname || '',\r\n      hash = this.hash || '',\r\n      host = false,\r\n      query = '';\r\n\r\n  if (this.host) {\r\n    host = auth + this.host;\r\n  } else if (this.hostname) {\r\n    host = auth + (this.hostname.indexOf(':') === -1 ?\r\n        this.hostname :\r\n        '[' + this.hostname + ']');\r\n    if (this.port) {\r\n      host += ':' + this.port;\r\n    }\r\n  }\r\n\r\n  if (this.query &&\r\n      util.isObject(this.query) &&\r\n      Object.keys(this.query).length) {\r\n    query = querystring.stringify(this.query);\r\n  }\r\n\r\n  var search = this.search || (query && ('?' + query)) || '';\r\n\r\n  if (protocol && protocol.substr(-1) !== ':') protocol += ':';\r\n\r\n  // only the slashedProtocols get the //.  Not mailto:, xmpp:, etc.\r\n  // unless they had them to begin with.\r\n  if (this.slashes ||\r\n      (!protocol || slashedProtocol[protocol]) && host !== false) {\r\n    host = '//' + (host || '');\r\n    if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\r\n  } else if (!host) {\r\n    host = '';\r\n  }\r\n\r\n  if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\r\n  if (search && search.charAt(0) !== '?') search = '?' + search;\r\n\r\n  pathname = pathname.replace(/[?#]/g, function(match) {\r\n    return encodeURIComponent(match);\r\n  });\r\n  search = search.replace('#', '%23');\r\n\r\n  return protocol + host + pathname + search + hash;\r\n};\r\n\r\nfunction urlResolve(source, relative) {\r\n  return urlParse(source, false, true).resolve(relative);\r\n}\r\n\r\nUrl.prototype.resolve = function(relative) {\r\n  return this.resolveObject(urlParse(relative, false, true)).format();\r\n};\r\n\r\nfunction urlResolveObject(source, relative) {\r\n  if (!source) return relative;\r\n  return urlParse(source, false, true).resolveObject(relative);\r\n}\r\n\r\nUrl.prototype.resolveObject = function(relative) {\r\n  if (util.isString(relative)) {\r\n    var rel = new Url();\r\n    rel.parse(relative, false, true);\r\n    relative = rel;\r\n  }\r\n\r\n  var result = new Url();\r\n  var tkeys = Object.keys(this);\r\n  for (var tk = 0; tk < tkeys.length; tk++) {\r\n    var tkey = tkeys[tk];\r\n    result[tkey] = this[tkey];\r\n  }\r\n\r\n  // hash is always overridden, no matter what.\r\n  // even href=\"\" will remove it.\r\n  result.hash = relative.hash;\r\n\r\n  // if the relative url is empty, then there's nothing left to do here.\r\n  if (relative.href === '') {\r\n    result.href = result.format();\r\n    return result;\r\n  }\r\n\r\n  // hrefs like //foo/bar always cut to the protocol.\r\n  if (relative.slashes && !relative.protocol) {\r\n    // take everything except the protocol from relative\r\n    var rkeys = Object.keys(relative);\r\n    for (var rk = 0; rk < rkeys.length; rk++) {\r\n      var rkey = rkeys[rk];\r\n      if (rkey !== 'protocol')\r\n        result[rkey] = relative[rkey];\r\n    }\r\n\r\n    //urlParse appends trailing / to urls like http://www.example.com\r\n    if (slashedProtocol[result.protocol] &&\r\n        result.hostname && !result.pathname) {\r\n      result.path = result.pathname = '/';\r\n    }\r\n\r\n    result.href = result.format();\r\n    return result;\r\n  }\r\n\r\n  if (relative.protocol && relative.protocol !== result.protocol) {\r\n    // if it's a known url protocol, then changing\r\n    // the protocol does weird things\r\n    // first, if it's not file:, then we MUST have a host,\r\n    // and if there was a path\r\n    // to begin with, then we MUST have a path.\r\n    // if it is file:, then the host is dropped,\r\n    // because that's known to be hostless.\r\n    // anything else is assumed to be absolute.\r\n    if (!slashedProtocol[relative.protocol]) {\r\n      var keys = Object.keys(relative);\r\n      for (var v = 0; v < keys.length; v++) {\r\n        var k = keys[v];\r\n        result[k] = relative[k];\r\n      }\r\n      result.href = result.format();\r\n      return result;\r\n    }\r\n\r\n    result.protocol = relative.protocol;\r\n    if (!relative.host && !hostlessProtocol[relative.protocol]) {\r\n      var relPath = (relative.pathname || '').split('/');\r\n      while (relPath.length && !(relative.host = relPath.shift()));\r\n      if (!relative.host) relative.host = '';\r\n      if (!relative.hostname) relative.hostname = '';\r\n      if (relPath[0] !== '') relPath.unshift('');\r\n      if (relPath.length < 2) relPath.unshift('');\r\n      result.pathname = relPath.join('/');\r\n    } else {\r\n      result.pathname = relative.pathname;\r\n    }\r\n    result.search = relative.search;\r\n    result.query = relative.query;\r\n    result.host = relative.host || '';\r\n    result.auth = relative.auth;\r\n    result.hostname = relative.hostname || relative.host;\r\n    result.port = relative.port;\r\n    // to support http.request\r\n    if (result.pathname || result.search) {\r\n      var p = result.pathname || '';\r\n      var s = result.search || '';\r\n      result.path = p + s;\r\n    }\r\n    result.slashes = result.slashes || relative.slashes;\r\n    result.href = result.format();\r\n    return result;\r\n  }\r\n\r\n  var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\r\n      isRelAbs = (\r\n          relative.host ||\r\n          relative.pathname && relative.pathname.charAt(0) === '/'\r\n      ),\r\n      mustEndAbs = (isRelAbs || isSourceAbs ||\r\n                    (result.host && relative.pathname)),\r\n      removeAllDots = mustEndAbs,\r\n      srcPath = result.pathname && result.pathname.split('/') || [],\r\n      relPath = relative.pathname && relative.pathname.split('/') || [],\r\n      psychotic = result.protocol && !slashedProtocol[result.protocol];\r\n\r\n  // if the url is a non-slashed url, then relative\r\n  // links like ../.. should be able\r\n  // to crawl up to the hostname, as well.  This is strange.\r\n  // result.protocol has already been set by now.\r\n  // Later on, put the first path part into the host field.\r\n  if (psychotic) {\r\n    result.hostname = '';\r\n    result.port = null;\r\n    if (result.host) {\r\n      if (srcPath[0] === '') srcPath[0] = result.host;\r\n      else srcPath.unshift(result.host);\r\n    }\r\n    result.host = '';\r\n    if (relative.protocol) {\r\n      relative.hostname = null;\r\n      relative.port = null;\r\n      if (relative.host) {\r\n        if (relPath[0] === '') relPath[0] = relative.host;\r\n        else relPath.unshift(relative.host);\r\n      }\r\n      relative.host = null;\r\n    }\r\n    mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\r\n  }\r\n\r\n  if (isRelAbs) {\r\n    // it's absolute.\r\n    result.host = (relative.host || relative.host === '') ?\r\n                  relative.host : result.host;\r\n    result.hostname = (relative.hostname || relative.hostname === '') ?\r\n                      relative.hostname : result.hostname;\r\n    result.search = relative.search;\r\n    result.query = relative.query;\r\n    srcPath = relPath;\r\n    // fall through to the dot-handling below.\r\n  } else if (relPath.length) {\r\n    // it's relative\r\n    // throw away the existing file, and take the new path instead.\r\n    if (!srcPath) srcPath = [];\r\n    srcPath.pop();\r\n    srcPath = srcPath.concat(relPath);\r\n    result.search = relative.search;\r\n    result.query = relative.query;\r\n  } else if (!util.isNullOrUndefined(relative.search)) {\r\n    // just pull out the search.\r\n    // like href='?foo'.\r\n    // Put this after the other two cases because it simplifies the booleans\r\n    if (psychotic) {\r\n      result.hostname = result.host = srcPath.shift();\r\n      //occationaly the auth can get stuck only in host\r\n      //this especially happens in cases like\r\n      //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\r\n      var authInHost = result.host && result.host.indexOf('@') > 0 ?\r\n                       result.host.split('@') : false;\r\n      if (authInHost) {\r\n        result.auth = authInHost.shift();\r\n        result.host = result.hostname = authInHost.shift();\r\n      }\r\n    }\r\n    result.search = relative.search;\r\n    result.query = relative.query;\r\n    //to support http.request\r\n    if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\r\n      result.path = (result.pathname ? result.pathname : '') +\r\n                    (result.search ? result.search : '');\r\n    }\r\n    result.href = result.format();\r\n    return result;\r\n  }\r\n\r\n  if (!srcPath.length) {\r\n    // no path at all.  easy.\r\n    // we've already handled the other stuff above.\r\n    result.pathname = null;\r\n    //to support http.request\r\n    if (result.search) {\r\n      result.path = '/' + result.search;\r\n    } else {\r\n      result.path = null;\r\n    }\r\n    result.href = result.format();\r\n    return result;\r\n  }\r\n\r\n  // if a url ENDs in . or .., then it must get a trailing slash.\r\n  // however, if it ends in anything else non-slashy,\r\n  // then it must NOT get a trailing slash.\r\n  var last = srcPath.slice(-1)[0];\r\n  var hasTrailingSlash = (\r\n      (result.host || relative.host || srcPath.length > 1) &&\r\n      (last === '.' || last === '..') || last === '');\r\n\r\n  // strip single dots, resolve double dots to parent dir\r\n  // if the path tries to go above the root, `up` ends up > 0\r\n  var up = 0;\r\n  for (var i = srcPath.length; i >= 0; i--) {\r\n    last = srcPath[i];\r\n    if (last === '.') {\r\n      srcPath.splice(i, 1);\r\n    } else if (last === '..') {\r\n      srcPath.splice(i, 1);\r\n      up++;\r\n    } else if (up) {\r\n      srcPath.splice(i, 1);\r\n      up--;\r\n    }\r\n  }\r\n\r\n  // if the path is allowed to go above the root, restore leading ..s\r\n  if (!mustEndAbs && !removeAllDots) {\r\n    for (; up--; up) {\r\n      srcPath.unshift('..');\r\n    }\r\n  }\r\n\r\n  if (mustEndAbs && srcPath[0] !== '' &&\r\n      (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\r\n    srcPath.unshift('');\r\n  }\r\n\r\n  if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\r\n    srcPath.push('');\r\n  }\r\n\r\n  var isAbsolute = srcPath[0] === '' ||\r\n      (srcPath[0] && srcPath[0].charAt(0) === '/');\r\n\r\n  // put the host back\r\n  if (psychotic) {\r\n    result.hostname = result.host = isAbsolute ? '' :\r\n                                    srcPath.length ? srcPath.shift() : '';\r\n    //occationaly the auth can get stuck only in host\r\n    //this especially happens in cases like\r\n    //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\r\n    var authInHost = result.host && result.host.indexOf('@') > 0 ?\r\n                     result.host.split('@') : false;\r\n    if (authInHost) {\r\n      result.auth = authInHost.shift();\r\n      result.host = result.hostname = authInHost.shift();\r\n    }\r\n  }\r\n\r\n  mustEndAbs = mustEndAbs || (result.host && srcPath.length);\r\n\r\n  if (mustEndAbs && !isAbsolute) {\r\n    srcPath.unshift('');\r\n  }\r\n\r\n  if (!srcPath.length) {\r\n    result.pathname = null;\r\n    result.path = null;\r\n  } else {\r\n    result.pathname = srcPath.join('/');\r\n  }\r\n\r\n  //to support request.http\r\n  if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\r\n    result.path = (result.pathname ? result.pathname : '') +\r\n                  (result.search ? result.search : '');\r\n  }\r\n  result.auth = relative.auth || result.auth;\r\n  result.slashes = result.slashes || relative.slashes;\r\n  result.href = result.format();\r\n  return result;\r\n};\r\n\r\nUrl.prototype.parseHost = function() {\r\n  var host = this.host;\r\n  var port = portPattern.exec(host);\r\n  if (port) {\r\n    port = port[0];\r\n    if (port !== ':') {\r\n      this.port = port.substr(1);\r\n    }\r\n    host = host.substr(0, host.length - port.length);\r\n  }\r\n  if (host) this.hostname = host;\r\n};\r\n\r\n},{\"./util\":113,\"punycode\":54,\"querystring\":75}],113:[function(require,module,exports){\r\n'use strict';\r\n\r\nmodule.exports = {\r\n  isString: function(arg) {\r\n    return typeof(arg) === 'string';\r\n  },\r\n  isObject: function(arg) {\r\n    return typeof(arg) === 'object' && arg !== null;\r\n  },\r\n  isNull: function(arg) {\r\n    return arg === null;\r\n  },\r\n  isNullOrUndefined: function(arg) {\r\n    return arg == null;\r\n  }\r\n};\r\n\r\n},{}],114:[function(require,module,exports){\r\n(function (global){\r\n\r\n/**\r\n * Module exports.\r\n */\r\n\r\nmodule.exports = deprecate;\r\n\r\n/**\r\n * Mark that a method should not be used.\r\n * Returns a modified function which warns once by default.\r\n *\r\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\r\n *\r\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\r\n * will throw an Error when invoked.\r\n *\r\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\r\n * will invoke `console.trace()` instead of `console.error()`.\r\n *\r\n * @param {Function} fn - the function to deprecate\r\n * @param {String} msg - the string to print to the console when `fn` is invoked\r\n * @returns {Function} a new \"deprecated\" version of `fn`\r\n * @api public\r\n */\r\n\r\nfunction deprecate (fn, msg) {\r\n  if (config('noDeprecation')) {\r\n    return fn;\r\n  }\r\n\r\n  var warned = false;\r\n  function deprecated() {\r\n    if (!warned) {\r\n      if (config('throwDeprecation')) {\r\n        throw new Error(msg);\r\n      } else if (config('traceDeprecation')) {\r\n        console.trace(msg);\r\n      } else {\r\n        console.warn(msg);\r\n      }\r\n      warned = true;\r\n    }\r\n    return fn.apply(this, arguments);\r\n  }\r\n\r\n  return deprecated;\r\n}\r\n\r\n/**\r\n * Checks `localStorage` for boolean values for the given `name`.\r\n *\r\n * @param {String} name\r\n * @returns {Boolean}\r\n * @api private\r\n */\r\n\r\nfunction config (name) {\r\n  // accessing global.localStorage can trigger a DOMException in sandboxed iframes\r\n  try {\r\n    if (!global.localStorage) return false;\r\n  } catch (_) {\r\n    return false;\r\n  }\r\n  var val = global.localStorage[name];\r\n  if (null == val) return false;\r\n  return String(val).toLowerCase() === 'true';\r\n}\r\n\r\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\r\n},{}],115:[function(require,module,exports){\r\nif (typeof Object.create === 'function') {\r\n  // implementation from standard node.js 'util' module\r\n  module.exports = function inherits(ctor, superCtor) {\r\n    ctor.super_ = superCtor\r\n    ctor.prototype = Object.create(superCtor.prototype, {\r\n      constructor: {\r\n        value: ctor,\r\n        enumerable: false,\r\n        writable: true,\r\n        configurable: true\r\n      }\r\n    });\r\n  };\r\n} else {\r\n  // old school shim for old browsers\r\n  module.exports = function inherits(ctor, superCtor) {\r\n    ctor.super_ = superCtor\r\n    var TempCtor = function () {}\r\n    TempCtor.prototype = superCtor.prototype\r\n    ctor.prototype = new TempCtor()\r\n    ctor.prototype.constructor = ctor\r\n  }\r\n}\r\n\r\n},{}],116:[function(require,module,exports){\r\nmodule.exports = function isBuffer(arg) {\r\n  return arg && typeof arg === 'object'\r\n    && typeof arg.copy === 'function'\r\n    && typeof arg.fill === 'function'\r\n    && typeof arg.readUInt8 === 'function';\r\n}\r\n},{}],117:[function(require,module,exports){\r\n(function (process,global){\r\n// Copyright Joyent, Inc. and other Node contributors.\r\n//\r\n// Permission is hereby granted, free of charge, to any person obtaining a\r\n// copy of this software and associated documentation files (the\r\n// \"Software\"), to deal in the Software without restriction, including\r\n// without limitation the rights to use, copy, modify, merge, publish,\r\n// distribute, sublicense, and/or sell copies of the Software, and to permit\r\n// persons to whom the Software is furnished to do so, subject to the\r\n// following conditions:\r\n//\r\n// The above copyright notice and this permission notice shall be included\r\n// in all copies or substantial portions of the Software.\r\n//\r\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\r\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\r\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\r\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\r\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n\r\nvar formatRegExp = /%[sdj%]/g;\r\nexports.format = function(f) {\r\n  if (!isString(f)) {\r\n    var objects = [];\r\n    for (var i = 0; i < arguments.length; i++) {\r\n      objects.push(inspect(arguments[i]));\r\n    }\r\n    return objects.join(' ');\r\n  }\r\n\r\n  var i = 1;\r\n  var args = arguments;\r\n  var len = args.length;\r\n  var str = String(f).replace(formatRegExp, function(x) {\r\n    if (x === '%%') return '%';\r\n    if (i >= len) return x;\r\n    switch (x) {\r\n      case '%s': return String(args[i++]);\r\n      case '%d': return Number(args[i++]);\r\n      case '%j':\r\n        try {\r\n          return JSON.stringify(args[i++]);\r\n        } catch (_) {\r\n          return '[Circular]';\r\n        }\r\n      default:\r\n        return x;\r\n    }\r\n  });\r\n  for (var x = args[i]; i < len; x = args[++i]) {\r\n    if (isNull(x) || !isObject(x)) {\r\n      str += ' ' + x;\r\n    } else {\r\n      str += ' ' + inspect(x);\r\n    }\r\n  }\r\n  return str;\r\n};\r\n\r\n\r\n// Mark that a method should not be used.\r\n// Returns a modified function which warns once by default.\r\n// If --no-deprecation is set, then it is a no-op.\r\nexports.deprecate = function(fn, msg) {\r\n  // Allow for deprecating things in the process of starting up.\r\n  if (isUndefined(global.process)) {\r\n    return function() {\r\n      return exports.deprecate(fn, msg).apply(this, arguments);\r\n    };\r\n  }\r\n\r\n  if (process.noDeprecation === true) {\r\n    return fn;\r\n  }\r\n\r\n  var warned = false;\r\n  function deprecated() {\r\n    if (!warned) {\r\n      if (process.throwDeprecation) {\r\n        throw new Error(msg);\r\n      } else if (process.traceDeprecation) {\r\n        console.trace(msg);\r\n      } else {\r\n        console.error(msg);\r\n      }\r\n      warned = true;\r\n    }\r\n    return fn.apply(this, arguments);\r\n  }\r\n\r\n  return deprecated;\r\n};\r\n\r\n\r\nvar debugs = {};\r\nvar debugEnviron;\r\nexports.debuglog = function(set) {\r\n  if (isUndefined(debugEnviron))\r\n    debugEnviron = process.env.NODE_DEBUG || '';\r\n  set = set.toUpperCase();\r\n  if (!debugs[set]) {\r\n    if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\r\n      var pid = process.pid;\r\n      debugs[set] = function() {\r\n        var msg = exports.format.apply(exports, arguments);\r\n        console.error('%s %d: %s', set, pid, msg);\r\n      };\r\n    } else {\r\n      debugs[set] = function() {};\r\n    }\r\n  }\r\n  return debugs[set];\r\n};\r\n\r\n\r\n/**\r\n * Echos the value of a value. Trys to print the value out\r\n * in the best way possible given the different types.\r\n *\r\n * @param {Object} obj The object to print out.\r\n * @param {Object} opts Optional options object that alters the output.\r\n */\r\n/* legacy: obj, showHidden, depth, colors*/\r\nfunction inspect(obj, opts) {\r\n  // default options\r\n  var ctx = {\r\n    seen: [],\r\n    stylize: stylizeNoColor\r\n  };\r\n  // legacy...\r\n  if (arguments.length >= 3) ctx.depth = arguments[2];\r\n  if (arguments.length >= 4) ctx.colors = arguments[3];\r\n  if (isBoolean(opts)) {\r\n    // legacy...\r\n    ctx.showHidden = opts;\r\n  } else if (opts) {\r\n    // got an \"options\" object\r\n    exports._extend(ctx, opts);\r\n  }\r\n  // set default options\r\n  if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\r\n  if (isUndefined(ctx.depth)) ctx.depth = 2;\r\n  if (isUndefined(ctx.colors)) ctx.colors = false;\r\n  if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\r\n  if (ctx.colors) ctx.stylize = stylizeWithColor;\r\n  return formatValue(ctx, obj, ctx.depth);\r\n}\r\nexports.inspect = inspect;\r\n\r\n\r\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\r\ninspect.colors = {\r\n  'bold' : [1, 22],\r\n  'italic' : [3, 23],\r\n  'underline' : [4, 24],\r\n  'inverse' : [7, 27],\r\n  'white' : [37, 39],\r\n  'grey' : [90, 39],\r\n  'black' : [30, 39],\r\n  'blue' : [34, 39],\r\n  'cyan' : [36, 39],\r\n  'green' : [32, 39],\r\n  'magenta' : [35, 39],\r\n  'red' : [31, 39],\r\n  'yellow' : [33, 39]\r\n};\r\n\r\n// Don't use 'blue' not visible on cmd.exe\r\ninspect.styles = {\r\n  'special': 'cyan',\r\n  'number': 'yellow',\r\n  'boolean': 'yellow',\r\n  'undefined': 'grey',\r\n  'null': 'bold',\r\n  'string': 'green',\r\n  'date': 'magenta',\r\n  // \"name\": intentionally not styling\r\n  'regexp': 'red'\r\n};\r\n\r\n\r\nfunction stylizeWithColor(str, styleType) {\r\n  var style = inspect.styles[styleType];\r\n\r\n  if (style) {\r\n    return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\r\n           '\\u001b[' + inspect.colors[style][1] + 'm';\r\n  } else {\r\n    return str;\r\n  }\r\n}\r\n\r\n\r\nfunction stylizeNoColor(str, styleType) {\r\n  return str;\r\n}\r\n\r\n\r\nfunction arrayToHash(array) {\r\n  var hash = {};\r\n\r\n  array.forEach(function(val, idx) {\r\n    hash[val] = true;\r\n  });\r\n\r\n  return hash;\r\n}\r\n\r\n\r\nfunction formatValue(ctx, value, recurseTimes) {\r\n  // Provide a hook for user-specified inspect functions.\r\n  // Check that value is an object with an inspect function on it\r\n  if (ctx.customInspect &&\r\n      value &&\r\n      isFunction(value.inspect) &&\r\n      // Filter out the util module, it's inspect function is special\r\n      value.inspect !== exports.inspect &&\r\n      // Also filter out any prototype objects using the circular check.\r\n      !(value.constructor && value.constructor.prototype === value)) {\r\n    var ret = value.inspect(recurseTimes, ctx);\r\n    if (!isString(ret)) {\r\n      ret = formatValue(ctx, ret, recurseTimes);\r\n    }\r\n    return ret;\r\n  }\r\n\r\n  // Primitive types cannot have properties\r\n  var primitive = formatPrimitive(ctx, value);\r\n  if (primitive) {\r\n    return primitive;\r\n  }\r\n\r\n  // Look up the keys of the object.\r\n  var keys = Object.keys(value);\r\n  var visibleKeys = arrayToHash(keys);\r\n\r\n  if (ctx.showHidden) {\r\n    keys = Object.getOwnPropertyNames(value);\r\n  }\r\n\r\n  // IE doesn't make error fields non-enumerable\r\n  // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\r\n  if (isError(value)\r\n      && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\r\n    return formatError(value);\r\n  }\r\n\r\n  // Some type of object without properties can be shortcutted.\r\n  if (keys.length === 0) {\r\n    if (isFunction(value)) {\r\n      var name = value.name ? ': ' + value.name : '';\r\n      return ctx.stylize('[Function' + name + ']', 'special');\r\n    }\r\n    if (isRegExp(value)) {\r\n      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\r\n    }\r\n    if (isDate(value)) {\r\n      return ctx.stylize(Date.prototype.toString.call(value), 'date');\r\n    }\r\n    if (isError(value)) {\r\n      return formatError(value);\r\n    }\r\n  }\r\n\r\n  var base = '', array = false, braces = ['{', '}'];\r\n\r\n  // Make Array say that they are Array\r\n  if (isArray(value)) {\r\n    array = true;\r\n    braces = ['[', ']'];\r\n  }\r\n\r\n  // Make functions say that they are functions\r\n  if (isFunction(value)) {\r\n    var n = value.name ? ': ' + value.name : '';\r\n    base = ' [Function' + n + ']';\r\n  }\r\n\r\n  // Make RegExps say that they are RegExps\r\n  if (isRegExp(value)) {\r\n    base = ' ' + RegExp.prototype.toString.call(value);\r\n  }\r\n\r\n  // Make dates with properties first say the date\r\n  if (isDate(value)) {\r\n    base = ' ' + Date.prototype.toUTCString.call(value);\r\n  }\r\n\r\n  // Make error with message first say the error\r\n  if (isError(value)) {\r\n    base = ' ' + formatError(value);\r\n  }\r\n\r\n  if (keys.length === 0 && (!array || value.length == 0)) {\r\n    return braces[0] + base + braces[1];\r\n  }\r\n\r\n  if (recurseTimes < 0) {\r\n    if (isRegExp(value)) {\r\n      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\r\n    } else {\r\n      return ctx.stylize('[Object]', 'special');\r\n    }\r\n  }\r\n\r\n  ctx.seen.push(value);\r\n\r\n  var output;\r\n  if (array) {\r\n    output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\r\n  } else {\r\n    output = keys.map(function(key) {\r\n      return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\r\n    });\r\n  }\r\n\r\n  ctx.seen.pop();\r\n\r\n  return reduceToSingleString(output, base, braces);\r\n}\r\n\r\n\r\nfunction formatPrimitive(ctx, value) {\r\n  if (isUndefined(value))\r\n    return ctx.stylize('undefined', 'undefined');\r\n  if (isString(value)) {\r\n    var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\r\n                                             .replace(/'/g, \"\\\\'\")\r\n                                             .replace(/\\\\\"/g, '\"') + '\\'';\r\n    return ctx.stylize(simple, 'string');\r\n  }\r\n  if (isNumber(value))\r\n    return ctx.stylize('' + value, 'number');\r\n  if (isBoolean(value))\r\n    return ctx.stylize('' + value, 'boolean');\r\n  // For some reason typeof null is \"object\", so special case here.\r\n  if (isNull(value))\r\n    return ctx.stylize('null', 'null');\r\n}\r\n\r\n\r\nfunction formatError(value) {\r\n  return '[' + Error.prototype.toString.call(value) + ']';\r\n}\r\n\r\n\r\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\r\n  var output = [];\r\n  for (var i = 0, l = value.length; i < l; ++i) {\r\n    if (hasOwnProperty(value, String(i))) {\r\n      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\r\n          String(i), true));\r\n    } else {\r\n      output.push('');\r\n    }\r\n  }\r\n  keys.forEach(function(key) {\r\n    if (!key.match(/^\\d+$/)) {\r\n      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\r\n          key, true));\r\n    }\r\n  });\r\n  return output;\r\n}\r\n\r\n\r\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\r\n  var name, str, desc;\r\n  desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\r\n  if (desc.get) {\r\n    if (desc.set) {\r\n      str = ctx.stylize('[Getter/Setter]', 'special');\r\n    } else {\r\n      str = ctx.stylize('[Getter]', 'special');\r\n    }\r\n  } else {\r\n    if (desc.set) {\r\n      str = ctx.stylize('[Setter]', 'special');\r\n    }\r\n  }\r\n  if (!hasOwnProperty(visibleKeys, key)) {\r\n    name = '[' + key + ']';\r\n  }\r\n  if (!str) {\r\n    if (ctx.seen.indexOf(desc.value) < 0) {\r\n      if (isNull(recurseTimes)) {\r\n        str = formatValue(ctx, desc.value, null);\r\n      } else {\r\n        str = formatValue(ctx, desc.value, recurseTimes - 1);\r\n      }\r\n      if (str.indexOf('\\n') > -1) {\r\n        if (array) {\r\n          str = str.split('\\n').map(function(line) {\r\n            return '  ' + line;\r\n          }).join('\\n').substr(2);\r\n        } else {\r\n          str = '\\n' + str.split('\\n').map(function(line) {\r\n            return '   ' + line;\r\n          }).join('\\n');\r\n        }\r\n      }\r\n    } else {\r\n      str = ctx.stylize('[Circular]', 'special');\r\n    }\r\n  }\r\n  if (isUndefined(name)) {\r\n    if (array && key.match(/^\\d+$/)) {\r\n      return str;\r\n    }\r\n    name = JSON.stringify('' + key);\r\n    if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\r\n      name = name.substr(1, name.length - 2);\r\n      name = ctx.stylize(name, 'name');\r\n    } else {\r\n      name = name.replace(/'/g, \"\\\\'\")\r\n                 .replace(/\\\\\"/g, '\"')\r\n                 .replace(/(^\"|\"$)/g, \"'\");\r\n      name = ctx.stylize(name, 'string');\r\n    }\r\n  }\r\n\r\n  return name + ': ' + str;\r\n}\r\n\r\n\r\nfunction reduceToSingleString(output, base, braces) {\r\n  var numLinesEst = 0;\r\n  var length = output.reduce(function(prev, cur) {\r\n    numLinesEst++;\r\n    if (cur.indexOf('\\n') >= 0) numLinesEst++;\r\n    return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\r\n  }, 0);\r\n\r\n  if (length > 60) {\r\n    return braces[0] +\r\n           (base === '' ? '' : base + '\\n ') +\r\n           ' ' +\r\n           output.join(',\\n  ') +\r\n           ' ' +\r\n           braces[1];\r\n  }\r\n\r\n  return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\r\n}\r\n\r\n\r\n// NOTE: These type checking functions intentionally don't use `instanceof`\r\n// because it is fragile and can be easily faked with `Object.create()`.\r\nfunction isArray(ar) {\r\n  return Array.isArray(ar);\r\n}\r\nexports.isArray = isArray;\r\n\r\nfunction isBoolean(arg) {\r\n  return typeof arg === 'boolean';\r\n}\r\nexports.isBoolean = isBoolean;\r\n\r\nfunction isNull(arg) {\r\n  return arg === null;\r\n}\r\nexports.isNull = isNull;\r\n\r\nfunction isNullOrUndefined(arg) {\r\n  return arg == null;\r\n}\r\nexports.isNullOrUndefined = isNullOrUndefined;\r\n\r\nfunction isNumber(arg) {\r\n  return typeof arg === 'number';\r\n}\r\nexports.isNumber = isNumber;\r\n\r\nfunction isString(arg) {\r\n  return typeof arg === 'string';\r\n}\r\nexports.isString = isString;\r\n\r\nfunction isSymbol(arg) {\r\n  return typeof arg === 'symbol';\r\n}\r\nexports.isSymbol = isSymbol;\r\n\r\nfunction isUndefined(arg) {\r\n  return arg === void 0;\r\n}\r\nexports.isUndefined = isUndefined;\r\n\r\nfunction isRegExp(re) {\r\n  return isObject(re) && objectToString(re) === '[object RegExp]';\r\n}\r\nexports.isRegExp = isRegExp;\r\n\r\nfunction isObject(arg) {\r\n  return typeof arg === 'object' && arg !== null;\r\n}\r\nexports.isObject = isObject;\r\n\r\nfunction isDate(d) {\r\n  return isObject(d) && objectToString(d) === '[object Date]';\r\n}\r\nexports.isDate = isDate;\r\n\r\nfunction isError(e) {\r\n  return isObject(e) &&\r\n      (objectToString(e) === '[object Error]' || e instanceof Error);\r\n}\r\nexports.isError = isError;\r\n\r\nfunction isFunction(arg) {\r\n  return typeof arg === 'function';\r\n}\r\nexports.isFunction = isFunction;\r\n\r\nfunction isPrimitive(arg) {\r\n  return arg === null ||\r\n         typeof arg === 'boolean' ||\r\n         typeof arg === 'number' ||\r\n         typeof arg === 'string' ||\r\n         typeof arg === 'symbol' ||  // ES6 symbol\r\n         typeof arg === 'undefined';\r\n}\r\nexports.isPrimitive = isPrimitive;\r\n\r\nexports.isBuffer = require('./support/isBuffer');\r\n\r\nfunction objectToString(o) {\r\n  return Object.prototype.toString.call(o);\r\n}\r\n\r\n\r\nfunction pad(n) {\r\n  return n < 10 ? '0' + n.toString(10) : n.toString(10);\r\n}\r\n\r\n\r\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\r\n              'Oct', 'Nov', 'Dec'];\r\n\r\n// 26 Feb 16:19:34\r\nfunction timestamp() {\r\n  var d = new Date();\r\n  var time = [pad(d.getHours()),\r\n              pad(d.getMinutes()),\r\n              pad(d.getSeconds())].join(':');\r\n  return [d.getDate(), months[d.getMonth()], time].join(' ');\r\n}\r\n\r\n\r\n// log is just a thin wrapper to console.log that prepends a timestamp\r\nexports.log = function() {\r\n  console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\r\n};\r\n\r\n\r\n/**\r\n * Inherit the prototype methods from one constructor into another.\r\n *\r\n * The Function.prototype.inherits from lang.js rewritten as a standalone\r\n * function (not on Function.prototype). NOTE: If this file is to be loaded\r\n * during bootstrapping this function needs to be rewritten using some native\r\n * functions as prototype setup using normal JavaScript does not work as\r\n * expected during bootstrapping (see mirror.js in r114903).\r\n *\r\n * @param {function} ctor Constructor function which needs to inherit the\r\n *     prototype.\r\n * @param {function} superCtor Constructor function to inherit prototype from.\r\n */\r\nexports.inherits = require('inherits');\r\n\r\nexports._extend = function(origin, add) {\r\n  // Don't do anything if add isn't an object\r\n  if (!add || !isObject(add)) return origin;\r\n\r\n  var keys = Object.keys(add);\r\n  var i = keys.length;\r\n  while (i--) {\r\n    origin[keys[i]] = add[keys[i]];\r\n  }\r\n  return origin;\r\n};\r\n\r\nfunction hasOwnProperty(obj, prop) {\r\n  return Object.prototype.hasOwnProperty.call(obj, prop);\r\n}\r\n\r\n}).call(this,require('_process'),typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\r\n},{\"./support/isBuffer\":116,\"_process\":72,\"inherits\":115}],118:[function(require,module,exports){\r\nvar v1 = require('./v1');\r\nvar v4 = require('./v4');\r\n\r\nvar uuid = v4;\r\nuuid.v1 = v1;\r\nuuid.v4 = v4;\r\n\r\nmodule.exports = uuid;\r\n\r\n},{\"./v1\":121,\"./v4\":122}],119:[function(require,module,exports){\r\n/**\r\n * Convert array of 16 byte values to UUID string format of the form:\r\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\r\n */\r\nvar byteToHex = [];\r\nfor (var i = 0; i < 256; ++i) {\r\n  byteToHex[i] = (i + 0x100).toString(16).substr(1);\r\n}\r\n\r\nfunction bytesToUuid(buf, offset) {\r\n  var i = offset || 0;\r\n  var bth = byteToHex;\r\n  // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\r\n  return ([bth[buf[i++]], bth[buf[i++]], \r\n\tbth[buf[i++]], bth[buf[i++]], '-',\r\n\tbth[buf[i++]], bth[buf[i++]], '-',\r\n\tbth[buf[i++]], bth[buf[i++]], '-',\r\n\tbth[buf[i++]], bth[buf[i++]], '-',\r\n\tbth[buf[i++]], bth[buf[i++]],\r\n\tbth[buf[i++]], bth[buf[i++]],\r\n\tbth[buf[i++]], bth[buf[i++]]]).join('');\r\n}\r\n\r\nmodule.exports = bytesToUuid;\r\n\r\n},{}],120:[function(require,module,exports){\r\n// Unique ID creation requires a high quality random # generator.  In the\r\n// browser this is a little complicated due to unknown quality of Math.random()\r\n// and inconsistent support for the `crypto` API.  We do the best we can via\r\n// feature-detection\r\n\r\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\r\n// implementation. Also, find the complete implementation of crypto on IE11.\r\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\r\n                      (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\r\n\r\nif (getRandomValues) {\r\n  // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\r\n  var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\r\n\r\n  module.exports = function whatwgRNG() {\r\n    getRandomValues(rnds8);\r\n    return rnds8;\r\n  };\r\n} else {\r\n  // Math.random()-based (RNG)\r\n  //\r\n  // If all else fails, use Math.random().  It's fast, but is of unspecified\r\n  // quality.\r\n  var rnds = new Array(16);\r\n\r\n  module.exports = function mathRNG() {\r\n    for (var i = 0, r; i < 16; i++) {\r\n      if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\r\n      rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\r\n    }\r\n\r\n    return rnds;\r\n  };\r\n}\r\n\r\n},{}],121:[function(require,module,exports){\r\nvar rng = require('./lib/rng');\r\nvar bytesToUuid = require('./lib/bytesToUuid');\r\n\r\n// **`v1()` - Generate time-based UUID**\r\n//\r\n// Inspired by https://github.com/LiosK/UUID.js\r\n// and http://docs.python.org/library/uuid.html\r\n\r\nvar _nodeId;\r\nvar _clockseq;\r\n\r\n// Previous uuid creation time\r\nvar _lastMSecs = 0;\r\nvar _lastNSecs = 0;\r\n\r\n// See https://github.com/broofa/node-uuid for API details\r\nfunction v1(options, buf, offset) {\r\n  var i = buf && offset || 0;\r\n  var b = buf || [];\r\n\r\n  options = options || {};\r\n  var node = options.node || _nodeId;\r\n  var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\r\n\r\n  // node and clockseq need to be initialized to random values if they're not\r\n  // specified.  We do this lazily to minimize issues related to insufficient\r\n  // system entropy.  See #189\r\n  if (node == null || clockseq == null) {\r\n    var seedBytes = rng();\r\n    if (node == null) {\r\n      // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\r\n      node = _nodeId = [\r\n        seedBytes[0] | 0x01,\r\n        seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\r\n      ];\r\n    }\r\n    if (clockseq == null) {\r\n      // Per 4.2.2, randomize (14 bit) clockseq\r\n      clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\r\n    }\r\n  }\r\n\r\n  // UUID timestamps are 100 nano-second units since the Gregorian epoch,\r\n  // (1582-10-15 00:00).  JSNumbers aren't precise enough for this, so\r\n  // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\r\n  // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\r\n  var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\r\n\r\n  // Per 4.2.1.2, use count of uuid's generated during the current clock\r\n  // cycle to simulate higher resolution clock\r\n  var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\r\n\r\n  // Time since last uuid creation (in msecs)\r\n  var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\r\n\r\n  // Per 4.2.1.2, Bump clockseq on clock regression\r\n  if (dt < 0 && options.clockseq === undefined) {\r\n    clockseq = clockseq + 1 & 0x3fff;\r\n  }\r\n\r\n  // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\r\n  // time interval\r\n  if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\r\n    nsecs = 0;\r\n  }\r\n\r\n  // Per 4.2.1.2 Throw error if too many uuids are requested\r\n  if (nsecs >= 10000) {\r\n    throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\r\n  }\r\n\r\n  _lastMSecs = msecs;\r\n  _lastNSecs = nsecs;\r\n  _clockseq = clockseq;\r\n\r\n  // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\r\n  msecs += 12219292800000;\r\n\r\n  // `time_low`\r\n  var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\r\n  b[i++] = tl >>> 24 & 0xff;\r\n  b[i++] = tl >>> 16 & 0xff;\r\n  b[i++] = tl >>> 8 & 0xff;\r\n  b[i++] = tl & 0xff;\r\n\r\n  // `time_mid`\r\n  var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\r\n  b[i++] = tmh >>> 8 & 0xff;\r\n  b[i++] = tmh & 0xff;\r\n\r\n  // `time_high_and_version`\r\n  b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\r\n  b[i++] = tmh >>> 16 & 0xff;\r\n\r\n  // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\r\n  b[i++] = clockseq >>> 8 | 0x80;\r\n\r\n  // `clock_seq_low`\r\n  b[i++] = clockseq & 0xff;\r\n\r\n  // `node`\r\n  for (var n = 0; n < 6; ++n) {\r\n    b[i + n] = node[n];\r\n  }\r\n\r\n  return buf ? buf : bytesToUuid(b);\r\n}\r\n\r\nmodule.exports = v1;\r\n\r\n},{\"./lib/bytesToUuid\":119,\"./lib/rng\":120}],122:[function(require,module,exports){\r\nvar rng = require('./lib/rng');\r\nvar bytesToUuid = require('./lib/bytesToUuid');\r\n\r\nfunction v4(options, buf, offset) {\r\n  var i = buf && offset || 0;\r\n\r\n  if (typeof(options) == 'string') {\r\n    buf = options === 'binary' ? new Array(16) : null;\r\n    options = null;\r\n  }\r\n  options = options || {};\r\n\r\n  var rnds = options.random || (options.rng || rng)();\r\n\r\n  // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\r\n  rnds[6] = (rnds[6] & 0x0f) | 0x40;\r\n  rnds[8] = (rnds[8] & 0x3f) | 0x80;\r\n\r\n  // Copy bytes to buffer, if provided\r\n  if (buf) {\r\n    for (var ii = 0; ii < 16; ++ii) {\r\n      buf[i + ii] = rnds[ii];\r\n    }\r\n  }\r\n\r\n  return buf || bytesToUuid(rnds);\r\n}\r\n\r\nmodule.exports = v4;\r\n\r\n},{\"./lib/bytesToUuid\":119,\"./lib/rng\":120}],123:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\n\r\nvar _toDate = require('./lib/toDate');\r\n\r\nvar _toDate2 = _interopRequireDefault(_toDate);\r\n\r\nvar _toFloat = require('./lib/toFloat');\r\n\r\nvar _toFloat2 = _interopRequireDefault(_toFloat);\r\n\r\nvar _toInt = require('./lib/toInt');\r\n\r\nvar _toInt2 = _interopRequireDefault(_toInt);\r\n\r\nvar _toBoolean = require('./lib/toBoolean');\r\n\r\nvar _toBoolean2 = _interopRequireDefault(_toBoolean);\r\n\r\nvar _equals = require('./lib/equals');\r\n\r\nvar _equals2 = _interopRequireDefault(_equals);\r\n\r\nvar _contains = require('./lib/contains');\r\n\r\nvar _contains2 = _interopRequireDefault(_contains);\r\n\r\nvar _matches = require('./lib/matches');\r\n\r\nvar _matches2 = _interopRequireDefault(_matches);\r\n\r\nvar _isEmail = require('./lib/isEmail');\r\n\r\nvar _isEmail2 = _interopRequireDefault(_isEmail);\r\n\r\nvar _isURL = require('./lib/isURL');\r\n\r\nvar _isURL2 = _interopRequireDefault(_isURL);\r\n\r\nvar _isMACAddress = require('./lib/isMACAddress');\r\n\r\nvar _isMACAddress2 = _interopRequireDefault(_isMACAddress);\r\n\r\nvar _isIP = require('./lib/isIP');\r\n\r\nvar _isIP2 = _interopRequireDefault(_isIP);\r\n\r\nvar _isFQDN = require('./lib/isFQDN');\r\n\r\nvar _isFQDN2 = _interopRequireDefault(_isFQDN);\r\n\r\nvar _isBoolean = require('./lib/isBoolean');\r\n\r\nvar _isBoolean2 = _interopRequireDefault(_isBoolean);\r\n\r\nvar _isAlpha = require('./lib/isAlpha');\r\n\r\nvar _isAlpha2 = _interopRequireDefault(_isAlpha);\r\n\r\nvar _isAlphanumeric = require('./lib/isAlphanumeric');\r\n\r\nvar _isAlphanumeric2 = _interopRequireDefault(_isAlphanumeric);\r\n\r\nvar _isNumeric = require('./lib/isNumeric');\r\n\r\nvar _isNumeric2 = _interopRequireDefault(_isNumeric);\r\n\r\nvar _isPort = require('./lib/isPort');\r\n\r\nvar _isPort2 = _interopRequireDefault(_isPort);\r\n\r\nvar _isLowercase = require('./lib/isLowercase');\r\n\r\nvar _isLowercase2 = _interopRequireDefault(_isLowercase);\r\n\r\nvar _isUppercase = require('./lib/isUppercase');\r\n\r\nvar _isUppercase2 = _interopRequireDefault(_isUppercase);\r\n\r\nvar _isAscii = require('./lib/isAscii');\r\n\r\nvar _isAscii2 = _interopRequireDefault(_isAscii);\r\n\r\nvar _isFullWidth = require('./lib/isFullWidth');\r\n\r\nvar _isFullWidth2 = _interopRequireDefault(_isFullWidth);\r\n\r\nvar _isHalfWidth = require('./lib/isHalfWidth');\r\n\r\nvar _isHalfWidth2 = _interopRequireDefault(_isHalfWidth);\r\n\r\nvar _isVariableWidth = require('./lib/isVariableWidth');\r\n\r\nvar _isVariableWidth2 = _interopRequireDefault(_isVariableWidth);\r\n\r\nvar _isMultibyte = require('./lib/isMultibyte');\r\n\r\nvar _isMultibyte2 = _interopRequireDefault(_isMultibyte);\r\n\r\nvar _isSurrogatePair = require('./lib/isSurrogatePair');\r\n\r\nvar _isSurrogatePair2 = _interopRequireDefault(_isSurrogatePair);\r\n\r\nvar _isInt = require('./lib/isInt');\r\n\r\nvar _isInt2 = _interopRequireDefault(_isInt);\r\n\r\nvar _isFloat = require('./lib/isFloat');\r\n\r\nvar _isFloat2 = _interopRequireDefault(_isFloat);\r\n\r\nvar _isDecimal = require('./lib/isDecimal');\r\n\r\nvar _isDecimal2 = _interopRequireDefault(_isDecimal);\r\n\r\nvar _isHexadecimal = require('./lib/isHexadecimal');\r\n\r\nvar _isHexadecimal2 = _interopRequireDefault(_isHexadecimal);\r\n\r\nvar _isDivisibleBy = require('./lib/isDivisibleBy');\r\n\r\nvar _isDivisibleBy2 = _interopRequireDefault(_isDivisibleBy);\r\n\r\nvar _isHexColor = require('./lib/isHexColor');\r\n\r\nvar _isHexColor2 = _interopRequireDefault(_isHexColor);\r\n\r\nvar _isISRC = require('./lib/isISRC');\r\n\r\nvar _isISRC2 = _interopRequireDefault(_isISRC);\r\n\r\nvar _isMD = require('./lib/isMD5');\r\n\r\nvar _isMD2 = _interopRequireDefault(_isMD);\r\n\r\nvar _isHash = require('./lib/isHash');\r\n\r\nvar _isHash2 = _interopRequireDefault(_isHash);\r\n\r\nvar _isJSON = require('./lib/isJSON');\r\n\r\nvar _isJSON2 = _interopRequireDefault(_isJSON);\r\n\r\nvar _isEmpty = require('./lib/isEmpty');\r\n\r\nvar _isEmpty2 = _interopRequireDefault(_isEmpty);\r\n\r\nvar _isLength = require('./lib/isLength');\r\n\r\nvar _isLength2 = _interopRequireDefault(_isLength);\r\n\r\nvar _isByteLength = require('./lib/isByteLength');\r\n\r\nvar _isByteLength2 = _interopRequireDefault(_isByteLength);\r\n\r\nvar _isUUID = require('./lib/isUUID');\r\n\r\nvar _isUUID2 = _interopRequireDefault(_isUUID);\r\n\r\nvar _isMongoId = require('./lib/isMongoId');\r\n\r\nvar _isMongoId2 = _interopRequireDefault(_isMongoId);\r\n\r\nvar _isAfter = require('./lib/isAfter');\r\n\r\nvar _isAfter2 = _interopRequireDefault(_isAfter);\r\n\r\nvar _isBefore = require('./lib/isBefore');\r\n\r\nvar _isBefore2 = _interopRequireDefault(_isBefore);\r\n\r\nvar _isIn = require('./lib/isIn');\r\n\r\nvar _isIn2 = _interopRequireDefault(_isIn);\r\n\r\nvar _isCreditCard = require('./lib/isCreditCard');\r\n\r\nvar _isCreditCard2 = _interopRequireDefault(_isCreditCard);\r\n\r\nvar _isISIN = require('./lib/isISIN');\r\n\r\nvar _isISIN2 = _interopRequireDefault(_isISIN);\r\n\r\nvar _isISBN = require('./lib/isISBN');\r\n\r\nvar _isISBN2 = _interopRequireDefault(_isISBN);\r\n\r\nvar _isISSN = require('./lib/isISSN');\r\n\r\nvar _isISSN2 = _interopRequireDefault(_isISSN);\r\n\r\nvar _isMobilePhone = require('./lib/isMobilePhone');\r\n\r\nvar _isMobilePhone2 = _interopRequireDefault(_isMobilePhone);\r\n\r\nvar _isCurrency = require('./lib/isCurrency');\r\n\r\nvar _isCurrency2 = _interopRequireDefault(_isCurrency);\r\n\r\nvar _isISO = require('./lib/isISO8601');\r\n\r\nvar _isISO2 = _interopRequireDefault(_isISO);\r\n\r\nvar _isISO31661Alpha = require('./lib/isISO31661Alpha2');\r\n\r\nvar _isISO31661Alpha2 = _interopRequireDefault(_isISO31661Alpha);\r\n\r\nvar _isBase = require('./lib/isBase64');\r\n\r\nvar _isBase2 = _interopRequireDefault(_isBase);\r\n\r\nvar _isDataURI = require('./lib/isDataURI');\r\n\r\nvar _isDataURI2 = _interopRequireDefault(_isDataURI);\r\n\r\nvar _isMimeType = require('./lib/isMimeType');\r\n\r\nvar _isMimeType2 = _interopRequireDefault(_isMimeType);\r\n\r\nvar _isLatLong = require('./lib/isLatLong');\r\n\r\nvar _isLatLong2 = _interopRequireDefault(_isLatLong);\r\n\r\nvar _isPostalCode = require('./lib/isPostalCode');\r\n\r\nvar _isPostalCode2 = _interopRequireDefault(_isPostalCode);\r\n\r\nvar _ltrim = require('./lib/ltrim');\r\n\r\nvar _ltrim2 = _interopRequireDefault(_ltrim);\r\n\r\nvar _rtrim = require('./lib/rtrim');\r\n\r\nvar _rtrim2 = _interopRequireDefault(_rtrim);\r\n\r\nvar _trim = require('./lib/trim');\r\n\r\nvar _trim2 = _interopRequireDefault(_trim);\r\n\r\nvar _escape = require('./lib/escape');\r\n\r\nvar _escape2 = _interopRequireDefault(_escape);\r\n\r\nvar _unescape = require('./lib/unescape');\r\n\r\nvar _unescape2 = _interopRequireDefault(_unescape);\r\n\r\nvar _stripLow = require('./lib/stripLow');\r\n\r\nvar _stripLow2 = _interopRequireDefault(_stripLow);\r\n\r\nvar _whitelist = require('./lib/whitelist');\r\n\r\nvar _whitelist2 = _interopRequireDefault(_whitelist);\r\n\r\nvar _blacklist = require('./lib/blacklist');\r\n\r\nvar _blacklist2 = _interopRequireDefault(_blacklist);\r\n\r\nvar _isWhitelisted = require('./lib/isWhitelisted');\r\n\r\nvar _isWhitelisted2 = _interopRequireDefault(_isWhitelisted);\r\n\r\nvar _normalizeEmail = require('./lib/normalizeEmail');\r\n\r\nvar _normalizeEmail2 = _interopRequireDefault(_normalizeEmail);\r\n\r\nvar _toString = require('./lib/util/toString');\r\n\r\nvar _toString2 = _interopRequireDefault(_toString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar version = '9.4.1';\r\n\r\nvar validator = {\r\n  version: version,\r\n  toDate: _toDate2.default,\r\n  toFloat: _toFloat2.default,\r\n  toInt: _toInt2.default,\r\n  toBoolean: _toBoolean2.default,\r\n  equals: _equals2.default,\r\n  contains: _contains2.default,\r\n  matches: _matches2.default,\r\n  isEmail: _isEmail2.default,\r\n  isURL: _isURL2.default,\r\n  isMACAddress: _isMACAddress2.default,\r\n  isIP: _isIP2.default,\r\n  isFQDN: _isFQDN2.default,\r\n  isBoolean: _isBoolean2.default,\r\n  isAlpha: _isAlpha2.default,\r\n  isAlphanumeric: _isAlphanumeric2.default,\r\n  isNumeric: _isNumeric2.default,\r\n  isPort: _isPort2.default,\r\n  isLowercase: _isLowercase2.default,\r\n  isUppercase: _isUppercase2.default,\r\n  isAscii: _isAscii2.default,\r\n  isFullWidth: _isFullWidth2.default,\r\n  isHalfWidth: _isHalfWidth2.default,\r\n  isVariableWidth: _isVariableWidth2.default,\r\n  isMultibyte: _isMultibyte2.default,\r\n  isSurrogatePair: _isSurrogatePair2.default,\r\n  isInt: _isInt2.default,\r\n  isFloat: _isFloat2.default,\r\n  isDecimal: _isDecimal2.default,\r\n  isHexadecimal: _isHexadecimal2.default,\r\n  isDivisibleBy: _isDivisibleBy2.default,\r\n  isHexColor: _isHexColor2.default,\r\n  isISRC: _isISRC2.default,\r\n  isMD5: _isMD2.default,\r\n  isHash: _isHash2.default,\r\n  isJSON: _isJSON2.default,\r\n  isEmpty: _isEmpty2.default,\r\n  isLength: _isLength2.default,\r\n  isByteLength: _isByteLength2.default,\r\n  isUUID: _isUUID2.default,\r\n  isMongoId: _isMongoId2.default,\r\n  isAfter: _isAfter2.default,\r\n  isBefore: _isBefore2.default,\r\n  isIn: _isIn2.default,\r\n  isCreditCard: _isCreditCard2.default,\r\n  isISIN: _isISIN2.default,\r\n  isISBN: _isISBN2.default,\r\n  isISSN: _isISSN2.default,\r\n  isMobilePhone: _isMobilePhone2.default,\r\n  isPostalCode: _isPostalCode2.default,\r\n  isCurrency: _isCurrency2.default,\r\n  isISO8601: _isISO2.default,\r\n  isISO31661Alpha2: _isISO31661Alpha2.default,\r\n  isBase64: _isBase2.default,\r\n  isDataURI: _isDataURI2.default,\r\n  isMimeType: _isMimeType2.default,\r\n  isLatLong: _isLatLong2.default,\r\n  ltrim: _ltrim2.default,\r\n  rtrim: _rtrim2.default,\r\n  trim: _trim2.default,\r\n  escape: _escape2.default,\r\n  unescape: _unescape2.default,\r\n  stripLow: _stripLow2.default,\r\n  whitelist: _whitelist2.default,\r\n  blacklist: _blacklist2.default,\r\n  isWhitelisted: _isWhitelisted2.default,\r\n  normalizeEmail: _normalizeEmail2.default,\r\n  toString: _toString2.default\r\n};\r\n\r\nexports.default = validator;\r\nmodule.exports = exports['default'];\r\n},{\"./lib/blacklist\":125,\"./lib/contains\":126,\"./lib/equals\":127,\"./lib/escape\":128,\"./lib/isAfter\":129,\"./lib/isAlpha\":130,\"./lib/isAlphanumeric\":131,\"./lib/isAscii\":132,\"./lib/isBase64\":133,\"./lib/isBefore\":134,\"./lib/isBoolean\":135,\"./lib/isByteLength\":136,\"./lib/isCreditCard\":137,\"./lib/isCurrency\":138,\"./lib/isDataURI\":139,\"./lib/isDecimal\":140,\"./lib/isDivisibleBy\":141,\"./lib/isEmail\":142,\"./lib/isEmpty\":143,\"./lib/isFQDN\":144,\"./lib/isFloat\":145,\"./lib/isFullWidth\":146,\"./lib/isHalfWidth\":147,\"./lib/isHash\":148,\"./lib/isHexColor\":149,\"./lib/isHexadecimal\":150,\"./lib/isIP\":151,\"./lib/isISBN\":152,\"./lib/isISIN\":153,\"./lib/isISO31661Alpha2\":154,\"./lib/isISO8601\":155,\"./lib/isISRC\":156,\"./lib/isISSN\":157,\"./lib/isIn\":158,\"./lib/isInt\":159,\"./lib/isJSON\":160,\"./lib/isLatLong\":161,\"./lib/isLength\":162,\"./lib/isLowercase\":163,\"./lib/isMACAddress\":164,\"./lib/isMD5\":165,\"./lib/isMimeType\":166,\"./lib/isMobilePhone\":167,\"./lib/isMongoId\":168,\"./lib/isMultibyte\":169,\"./lib/isNumeric\":170,\"./lib/isPort\":171,\"./lib/isPostalCode\":172,\"./lib/isSurrogatePair\":173,\"./lib/isURL\":174,\"./lib/isUUID\":175,\"./lib/isUppercase\":176,\"./lib/isVariableWidth\":177,\"./lib/isWhitelisted\":178,\"./lib/ltrim\":179,\"./lib/matches\":180,\"./lib/normalizeEmail\":181,\"./lib/rtrim\":182,\"./lib/stripLow\":183,\"./lib/toBoolean\":184,\"./lib/toDate\":185,\"./lib/toFloat\":186,\"./lib/toInt\":187,\"./lib/trim\":188,\"./lib/unescape\":189,\"./lib/util/toString\":192,\"./lib/whitelist\":193}],124:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nvar alpha = exports.alpha = {\r\n  'en-US': /^[A-Z]+$/i,\r\n  'bg-BG': /^[А-Я]+$/i,\r\n  'cs-CZ': /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\r\n  'da-DK': /^[A-ZÆØÅ]+$/i,\r\n  'de-DE': /^[A-ZÄÖÜß]+$/i,\r\n  'el-GR': /^[Α-ω]+$/i,\r\n  'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i,\r\n  'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\r\n  'it-IT': /^[A-ZÀÉÈÌÎÓÒÙ]+$/i,\r\n  'nb-NO': /^[A-ZÆØÅ]+$/i,\r\n  'nl-NL': /^[A-ZÁÉËÏÓÖÜÚ]+$/i,\r\n  'nn-NO': /^[A-ZÆØÅ]+$/i,\r\n  'hu-HU': /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,\r\n  'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\r\n  'pt-PT': /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,\r\n  'ru-RU': /^[А-ЯЁ]+$/i,\r\n  'sk-SK': /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,\r\n  'sr-RS@latin': /^[A-ZČĆŽŠĐ]+$/i,\r\n  'sr-RS': /^[А-ЯЂЈЉЊЋЏ]+$/i,\r\n  'sv-SE': /^[A-ZÅÄÖ]+$/i,\r\n  'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,\r\n  'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,\r\n  ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/\r\n};\r\n\r\nvar alphanumeric = exports.alphanumeric = {\r\n  'en-US': /^[0-9A-Z]+$/i,\r\n  'bg-BG': /^[0-9А-Я]+$/i,\r\n  'cs-CZ': /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\r\n  'da-DK': /^[0-9A-ZÆØÅ]+$/i,\r\n  'de-DE': /^[0-9A-ZÄÖÜß]+$/i,\r\n  'el-GR': /^[0-9Α-ω]+$/i,\r\n  'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,\r\n  'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\r\n  'it-IT': /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,\r\n  'hu-HU': /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,\r\n  'nb-NO': /^[0-9A-ZÆØÅ]+$/i,\r\n  'nl-NL': /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,\r\n  'nn-NO': /^[0-9A-ZÆØÅ]+$/i,\r\n  'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\r\n  'pt-PT': /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,\r\n  'ru-RU': /^[0-9А-ЯЁ]+$/i,\r\n  'sk-SK': /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,\r\n  'sr-RS@latin': /^[0-9A-ZČĆŽŠĐ]+$/i,\r\n  'sr-RS': /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,\r\n  'sv-SE': /^[0-9A-ZÅÄÖ]+$/i,\r\n  'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,\r\n  'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,\r\n  ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/\r\n};\r\n\r\nvar decimal = exports.decimal = {\r\n  'en-US': '.',\r\n  ar: '٫'\r\n};\r\n\r\nvar englishLocales = exports.englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM'];\r\n\r\nfor (var locale, i = 0; i < englishLocales.length; i++) {\r\n  locale = 'en-' + englishLocales[i];\r\n  alpha[locale] = alpha['en-US'];\r\n  alphanumeric[locale] = alphanumeric['en-US'];\r\n  decimal[locale] = decimal['en-US'];\r\n}\r\n\r\n// Source: http://www.localeplanet.com/java/\r\nvar arabicLocales = exports.arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE'];\r\n\r\nfor (var _locale, _i = 0; _i < arabicLocales.length; _i++) {\r\n  _locale = 'ar-' + arabicLocales[_i];\r\n  alpha[_locale] = alpha.ar;\r\n  alphanumeric[_locale] = alphanumeric.ar;\r\n  decimal[_locale] = decimal.ar;\r\n}\r\n\r\n// Source: https://en.wikipedia.org/wiki/Decimal_mark\r\nvar dotDecimal = exports.dotDecimal = [];\r\nvar commaDecimal = exports.commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'es-ES', 'fr-FR', 'it-IT', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-Pl', 'pt-PT', 'ru-RU', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA'];\r\n\r\nfor (var _i2 = 0; _i2 < dotDecimal.length; _i2++) {\r\n  decimal[dotDecimal[_i2]] = decimal['en-US'];\r\n}\r\n\r\nfor (var _i3 = 0; _i3 < commaDecimal.length; _i3++) {\r\n  decimal[commaDecimal[_i3]] = ',';\r\n}\r\n\r\nalpha['pt-BR'] = alpha['pt-PT'];\r\nalphanumeric['pt-BR'] = alphanumeric['pt-PT'];\r\ndecimal['pt-BR'] = decimal['pt-PT'];\r\n},{}],125:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = blacklist;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction blacklist(str, chars) {\r\n  (0, _assertString2.default)(str);\r\n  return str.replace(new RegExp('[' + chars + ']+', 'g'), '');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],126:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = contains;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _toString = require('./util/toString');\r\n\r\nvar _toString2 = _interopRequireDefault(_toString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction contains(str, elem) {\r\n  (0, _assertString2.default)(str);\r\n  return str.indexOf((0, _toString2.default)(elem)) >= 0;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190,\"./util/toString\":192}],127:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = equals;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction equals(str, comparison) {\r\n  (0, _assertString2.default)(str);\r\n  return str === comparison;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],128:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = escape;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction escape(str) {\r\n  (0, _assertString2.default)(str);\r\n  return str.replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/'/g, '&#x27;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\\//g, '&#x2F;').replace(/\\\\/g, '&#x5C;').replace(/`/g, '&#96;');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],129:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isAfter;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _toDate = require('./toDate');\r\n\r\nvar _toDate2 = _interopRequireDefault(_toDate);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isAfter(str) {\r\n  var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date());\r\n\r\n  (0, _assertString2.default)(str);\r\n  var comparison = (0, _toDate2.default)(date);\r\n  var original = (0, _toDate2.default)(str);\r\n  return !!(original && comparison && original > comparison);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./toDate\":185,\"./util/assertString\":190}],130:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isAlpha;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _alpha = require('./alpha');\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isAlpha(str) {\r\n  var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\r\n\r\n  (0, _assertString2.default)(str);\r\n  if (locale in _alpha.alpha) {\r\n    return _alpha.alpha[locale].test(str);\r\n  }\r\n  throw new Error('Invalid locale \\'' + locale + '\\'');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./alpha\":124,\"./util/assertString\":190}],131:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isAlphanumeric;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _alpha = require('./alpha');\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isAlphanumeric(str) {\r\n  var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\r\n\r\n  (0, _assertString2.default)(str);\r\n  if (locale in _alpha.alphanumeric) {\r\n    return _alpha.alphanumeric[locale].test(str);\r\n  }\r\n  throw new Error('Invalid locale \\'' + locale + '\\'');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./alpha\":124,\"./util/assertString\":190}],132:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isAscii;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/* eslint-disable no-control-regex */\r\nvar ascii = /^[\\x00-\\x7F]+$/;\r\n/* eslint-enable no-control-regex */\r\n\r\nfunction isAscii(str) {\r\n  (0, _assertString2.default)(str);\r\n  return ascii.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],133:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isBase64;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar notBase64 = /[^A-Z0-9+\\/=]/i;\r\n\r\nfunction isBase64(str) {\r\n  (0, _assertString2.default)(str);\r\n  var len = str.length;\r\n  if (!len || len % 4 !== 0 || notBase64.test(str)) {\r\n    return false;\r\n  }\r\n  var firstPaddingChar = str.indexOf('=');\r\n  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],134:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isBefore;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _toDate = require('./toDate');\r\n\r\nvar _toDate2 = _interopRequireDefault(_toDate);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isBefore(str) {\r\n  var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : String(new Date());\r\n\r\n  (0, _assertString2.default)(str);\r\n  var comparison = (0, _toDate2.default)(date);\r\n  var original = (0, _toDate2.default)(str);\r\n  return !!(original && comparison && original < comparison);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./toDate\":185,\"./util/assertString\":190}],135:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isBoolean;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isBoolean(str) {\r\n  (0, _assertString2.default)(str);\r\n  return ['true', 'false', '1', '0'].indexOf(str) >= 0;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],136:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\n\r\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\r\n\r\nexports.default = isByteLength;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/* eslint-disable prefer-rest-params */\r\nfunction isByteLength(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  var min = void 0;\r\n  var max = void 0;\r\n  if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\r\n    min = options.min || 0;\r\n    max = options.max;\r\n  } else {\r\n    // backwards compatibility: isByteLength(str, min [, max])\r\n    min = arguments[1];\r\n    max = arguments[2];\r\n  }\r\n  var len = encodeURI(str).split(/%..|./).length - 1;\r\n  return len >= min && (typeof max === 'undefined' || len <= max);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],137:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isCreditCard;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/* eslint-disable max-len */\r\nvar creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11}|62[0-9]{14})$/;\r\n/* eslint-enable max-len */\r\n\r\nfunction isCreditCard(str) {\r\n  (0, _assertString2.default)(str);\r\n  var sanitized = str.replace(/[- ]+/g, '');\r\n  if (!creditCard.test(sanitized)) {\r\n    return false;\r\n  }\r\n  var sum = 0;\r\n  var digit = void 0;\r\n  var tmpNum = void 0;\r\n  var shouldDouble = void 0;\r\n  for (var i = sanitized.length - 1; i >= 0; i--) {\r\n    digit = sanitized.substring(i, i + 1);\r\n    tmpNum = parseInt(digit, 10);\r\n    if (shouldDouble) {\r\n      tmpNum *= 2;\r\n      if (tmpNum >= 10) {\r\n        sum += tmpNum % 10 + 1;\r\n      } else {\r\n        sum += tmpNum;\r\n      }\r\n    } else {\r\n      sum += tmpNum;\r\n    }\r\n    shouldDouble = !shouldDouble;\r\n  }\r\n  return !!(sum % 10 === 0 ? sanitized : false);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],138:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isCurrency;\r\n\r\nvar _merge = require('./util/merge');\r\n\r\nvar _merge2 = _interopRequireDefault(_merge);\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction currencyRegex(options) {\r\n  var decimal_digits = '\\\\d{' + options.digits_after_decimal[0] + '}';\r\n  options.digits_after_decimal.forEach(function (digit, index) {\r\n    if (index !== 0) decimal_digits = decimal_digits + '|\\\\d{' + digit + '}';\r\n  });\r\n  var symbol = '(\\\\' + options.symbol.replace(/\\./g, '\\\\.') + ')' + (options.require_symbol ? '' : '?'),\r\n      negative = '-?',\r\n      whole_dollar_amount_without_sep = '[1-9]\\\\d*',\r\n      whole_dollar_amount_with_sep = '[1-9]\\\\d{0,2}(\\\\' + options.thousands_separator + '\\\\d{3})*',\r\n      valid_whole_dollar_amounts = ['0', whole_dollar_amount_without_sep, whole_dollar_amount_with_sep],\r\n      whole_dollar_amount = '(' + valid_whole_dollar_amounts.join('|') + ')?',\r\n      decimal_amount = '(\\\\' + options.decimal_separator + '(' + decimal_digits + '))' + (options.require_decimal ? '' : '?');\r\n  var pattern = whole_dollar_amount + (options.allow_decimal || options.require_decimal ? decimal_amount : '');\r\n\r\n  // default is negative sign before symbol, but there are two other options (besides parens)\r\n  if (options.allow_negatives && !options.parens_for_negatives) {\r\n    if (options.negative_sign_after_digits) {\r\n      pattern += negative;\r\n    } else if (options.negative_sign_before_digits) {\r\n      pattern = negative + pattern;\r\n    }\r\n  }\r\n\r\n  // South African Rand, for example, uses R 123 (space) and R-123 (no space)\r\n  if (options.allow_negative_sign_placeholder) {\r\n    pattern = '( (?!\\\\-))?' + pattern;\r\n  } else if (options.allow_space_after_symbol) {\r\n    pattern = ' ?' + pattern;\r\n  } else if (options.allow_space_after_digits) {\r\n    pattern += '( (?!$))?';\r\n  }\r\n\r\n  if (options.symbol_after_digits) {\r\n    pattern += symbol;\r\n  } else {\r\n    pattern = symbol + pattern;\r\n  }\r\n\r\n  if (options.allow_negatives) {\r\n    if (options.parens_for_negatives) {\r\n      pattern = '(\\\\(' + pattern + '\\\\)|' + pattern + ')';\r\n    } else if (!(options.negative_sign_before_digits || options.negative_sign_after_digits)) {\r\n      pattern = negative + pattern;\r\n    }\r\n  }\r\n\r\n  // ensure there's a dollar and/or decimal amount, and that\r\n  // it doesn't start with a space or a negative sign followed by a space\r\n  return new RegExp('^(?!-? )(?=.*\\\\d)' + pattern + '$');\r\n}\r\n\r\nvar default_currency_options = {\r\n  symbol: '$',\r\n  require_symbol: false,\r\n  allow_space_after_symbol: false,\r\n  symbol_after_digits: false,\r\n  allow_negatives: true,\r\n  parens_for_negatives: false,\r\n  negative_sign_before_digits: false,\r\n  negative_sign_after_digits: false,\r\n  allow_negative_sign_placeholder: false,\r\n  thousands_separator: ',',\r\n  decimal_separator: '.',\r\n  allow_decimal: true,\r\n  require_decimal: false,\r\n  digits_after_decimal: [2],\r\n  allow_space_after_digits: false\r\n};\r\n\r\nfunction isCurrency(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  options = (0, _merge2.default)(options, default_currency_options);\r\n  return currencyRegex(options).test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190,\"./util/merge\":191}],139:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isDataURI;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar validMediaType = /^[a-z]+\\/[a-z0-9\\-\\+]+$/i;\r\n\r\nvar validAttribute = /^[a-z\\-]+=[a-z0-9\\-]+$/i;\r\n\r\nvar validData = /^[a-z0-9!\\$&'\\(\\)\\*\\+,;=\\-\\._~:@\\/\\?%\\s]*$/i;\r\n\r\nfunction isDataURI(str) {\r\n  (0, _assertString2.default)(str);\r\n  var data = str.split(',');\r\n  if (data.length < 2) {\r\n    return false;\r\n  }\r\n  var attributes = data.shift().trim().split(';');\r\n  var schemeAndMediaType = attributes.shift();\r\n  if (schemeAndMediaType.substr(0, 5) !== 'data:') {\r\n    return false;\r\n  }\r\n  var mediaType = schemeAndMediaType.substr(5);\r\n  if (mediaType !== '' && !validMediaType.test(mediaType)) {\r\n    return false;\r\n  }\r\n  for (var i = 0; i < attributes.length; i++) {\r\n    if (i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') {\r\n      // ok\r\n    } else if (!validAttribute.test(attributes[i])) {\r\n      return false;\r\n    }\r\n  }\r\n  for (var _i = 0; _i < data.length; _i++) {\r\n    if (!validData.test(data[_i])) {\r\n      return false;\r\n    }\r\n  }\r\n  return true;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],140:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isDecimal;\r\n\r\nvar _merge = require('./util/merge');\r\n\r\nvar _merge2 = _interopRequireDefault(_merge);\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _alpha = require('./alpha');\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction decimalRegExp(options) {\r\n  var regExp = new RegExp('^[-+]?([0-9]+)?(\\\\' + _alpha.decimal[options.locale] + '[0-9]{' + options.decimal_digits + '})' + (options.force_decimal ? '' : '?') + '$');\r\n  return regExp;\r\n}\r\n\r\nvar default_decimal_options = {\r\n  force_decimal: false,\r\n  decimal_digits: '1,',\r\n  locale: 'en-US'\r\n};\r\n\r\nvar blacklist = ['', '-', '+'];\r\n\r\nfunction isDecimal(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  options = (0, _merge2.default)(options, default_decimal_options);\r\n  if (options.locale in _alpha.decimal) {\r\n    return !blacklist.includes(str.replace(/ /g, '')) && decimalRegExp(options).test(str);\r\n  }\r\n  throw new Error('Invalid locale \\'' + options.locale + '\\'');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./alpha\":124,\"./util/assertString\":190,\"./util/merge\":191}],141:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isDivisibleBy;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _toFloat = require('./toFloat');\r\n\r\nvar _toFloat2 = _interopRequireDefault(_toFloat);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isDivisibleBy(str, num) {\r\n  (0, _assertString2.default)(str);\r\n  return (0, _toFloat2.default)(str) % parseInt(num, 10) === 0;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./toFloat\":186,\"./util/assertString\":190}],142:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isEmail;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _merge = require('./util/merge');\r\n\r\nvar _merge2 = _interopRequireDefault(_merge);\r\n\r\nvar _isByteLength = require('./isByteLength');\r\n\r\nvar _isByteLength2 = _interopRequireDefault(_isByteLength);\r\n\r\nvar _isFQDN = require('./isFQDN');\r\n\r\nvar _isFQDN2 = _interopRequireDefault(_isFQDN);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar default_email_options = {\r\n  allow_display_name: false,\r\n  require_display_name: false,\r\n  allow_utf8_local_part: true,\r\n  require_tld: true\r\n};\r\n\r\n/* eslint-disable max-len */\r\n/* eslint-disable no-control-regex */\r\nvar displayName = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\,\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF\\s]*<(.+)>$/i;\r\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\r\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\r\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\r\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\r\n/* eslint-enable max-len */\r\n/* eslint-enable no-control-regex */\r\n\r\nfunction isEmail(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  options = (0, _merge2.default)(options, default_email_options);\r\n\r\n  if (options.require_display_name || options.allow_display_name) {\r\n    var display_email = str.match(displayName);\r\n    if (display_email) {\r\n      str = display_email[1];\r\n    } else if (options.require_display_name) {\r\n      return false;\r\n    }\r\n  }\r\n\r\n  var parts = str.split('@');\r\n  var domain = parts.pop();\r\n  var user = parts.join('@');\r\n\r\n  var lower_domain = domain.toLowerCase();\r\n  if (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com') {\r\n    user = user.replace(/\\./g, '').toLowerCase();\r\n  }\r\n\r\n  if (!(0, _isByteLength2.default)(user, { max: 64 }) || !(0, _isByteLength2.default)(domain, { max: 254 })) {\r\n    return false;\r\n  }\r\n\r\n  if (!(0, _isFQDN2.default)(domain, { require_tld: options.require_tld })) {\r\n    return false;\r\n  }\r\n\r\n  if (user[0] === '\"') {\r\n    user = user.slice(1, user.length - 1);\r\n    return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\r\n  }\r\n\r\n  var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\r\n\r\n  var user_parts = user.split('.');\r\n  for (var i = 0; i < user_parts.length; i++) {\r\n    if (!pattern.test(user_parts[i])) {\r\n      return false;\r\n    }\r\n  }\r\n\r\n  return true;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./isByteLength\":136,\"./isFQDN\":144,\"./util/assertString\":190,\"./util/merge\":191}],143:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isEmpty;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isEmpty(str) {\r\n  (0, _assertString2.default)(str);\r\n  return str.length === 0;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],144:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isFQDN;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _merge = require('./util/merge');\r\n\r\nvar _merge2 = _interopRequireDefault(_merge);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar default_fqdn_options = {\r\n  require_tld: true,\r\n  allow_underscores: false,\r\n  allow_trailing_dot: false\r\n};\r\n\r\nfunction isFQDN(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  options = (0, _merge2.default)(options, default_fqdn_options);\r\n\r\n  /* Remove the optional trailing dot before checking validity */\r\n  if (options.allow_trailing_dot && str[str.length - 1] === '.') {\r\n    str = str.substring(0, str.length - 1);\r\n  }\r\n  var parts = str.split('.');\r\n  if (options.require_tld) {\r\n    var tld = parts.pop();\r\n    if (!parts.length || !/^([a-z\\u00a1-\\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\r\n      return false;\r\n    }\r\n    // disallow spaces\r\n    if (/[\\s\\u2002-\\u200B\\u202F\\u205F\\u3000\\uFEFF\\uDB40\\uDC20]/.test(tld)) {\r\n      return false;\r\n    }\r\n  }\r\n  for (var part, i = 0; i < parts.length; i++) {\r\n    part = parts[i];\r\n    if (options.allow_underscores) {\r\n      part = part.replace(/_/g, '');\r\n    }\r\n    if (!/^[a-z\\u00a1-\\uffff0-9-]+$/i.test(part)) {\r\n      return false;\r\n    }\r\n    // disallow full-width chars\r\n    if (/[\\uff01-\\uff5e]/.test(part)) {\r\n      return false;\r\n    }\r\n    if (part[0] === '-' || part[part.length - 1] === '-') {\r\n      return false;\r\n    }\r\n  }\r\n  return true;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190,\"./util/merge\":191}],145:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isFloat;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _alpha = require('./alpha');\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isFloat(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  options = options || {};\r\n  var float = new RegExp('^(?:[-+])?(?:[0-9]+)?(?:\\\\' + (options.locale ? _alpha.decimal[options.locale] : '.') + '[0-9]*)?(?:[eE][\\\\+\\\\-]?(?:[0-9]+))?$');\r\n  if (str === '' || str === '.' || str === '-' || str === '+') {\r\n    return false;\r\n  }\r\n  return float.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max) && (!options.hasOwnProperty('lt') || str < options.lt) && (!options.hasOwnProperty('gt') || str > options.gt);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./alpha\":124,\"./util/assertString\":190}],146:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.fullWidth = undefined;\r\nexports.default = isFullWidth;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar fullWidth = exports.fullWidth = /[^\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/;\r\n\r\nfunction isFullWidth(str) {\r\n  (0, _assertString2.default)(str);\r\n  return fullWidth.test(str);\r\n}\r\n},{\"./util/assertString\":190}],147:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.halfWidth = undefined;\r\nexports.default = isHalfWidth;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar halfWidth = exports.halfWidth = /[\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/;\r\n\r\nfunction isHalfWidth(str) {\r\n  (0, _assertString2.default)(str);\r\n  return halfWidth.test(str);\r\n}\r\n},{\"./util/assertString\":190}],148:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isHash;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar lengths = {\r\n  md5: 32,\r\n  md4: 32,\r\n  sha1: 40,\r\n  sha256: 64,\r\n  sha384: 96,\r\n  sha512: 128,\r\n  ripemd128: 32,\r\n  ripemd160: 40,\r\n  tiger128: 32,\r\n  tiger160: 40,\r\n  tiger192: 48,\r\n  crc32: 8,\r\n  crc32b: 8\r\n};\r\n\r\nfunction isHash(str, algorithm) {\r\n  (0, _assertString2.default)(str);\r\n  var hash = new RegExp('^[a-f0-9]{' + lengths[algorithm] + '}$');\r\n  return hash.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],149:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isHexColor;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;\r\n\r\nfunction isHexColor(str) {\r\n  (0, _assertString2.default)(str);\r\n  return hexcolor.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],150:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isHexadecimal;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar hexadecimal = /^[0-9A-F]+$/i;\r\n\r\nfunction isHexadecimal(str) {\r\n  (0, _assertString2.default)(str);\r\n  return hexadecimal.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],151:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isIP;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar ipv4Maybe = /^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/;\r\nvar ipv6Block = /^[0-9A-F]{1,4}$/i;\r\n\r\nfunction isIP(str) {\r\n  var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\r\n\r\n  (0, _assertString2.default)(str);\r\n  version = String(version);\r\n  if (!version) {\r\n    return isIP(str, 4) || isIP(str, 6);\r\n  } else if (version === '4') {\r\n    if (!ipv4Maybe.test(str)) {\r\n      return false;\r\n    }\r\n    var parts = str.split('.').sort(function (a, b) {\r\n      return a - b;\r\n    });\r\n    return parts[3] <= 255;\r\n  } else if (version === '6') {\r\n    var blocks = str.split(':');\r\n    var foundOmissionBlock = false; // marker to indicate ::\r\n\r\n    // At least some OS accept the last 32 bits of an IPv6 address\r\n    // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says\r\n    // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses,\r\n    // and '::a.b.c.d' is deprecated, but also valid.\r\n    var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4);\r\n    var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8;\r\n\r\n    if (blocks.length > expectedNumberOfBlocks) {\r\n      return false;\r\n    }\r\n    // initial or final ::\r\n    if (str === '::') {\r\n      return true;\r\n    } else if (str.substr(0, 2) === '::') {\r\n      blocks.shift();\r\n      blocks.shift();\r\n      foundOmissionBlock = true;\r\n    } else if (str.substr(str.length - 2) === '::') {\r\n      blocks.pop();\r\n      blocks.pop();\r\n      foundOmissionBlock = true;\r\n    }\r\n\r\n    for (var i = 0; i < blocks.length; ++i) {\r\n      // test for a :: which can not be at the string start/end\r\n      // since those cases have been handled above\r\n      if (blocks[i] === '' && i > 0 && i < blocks.length - 1) {\r\n        if (foundOmissionBlock) {\r\n          return false; // multiple :: in address\r\n        }\r\n        foundOmissionBlock = true;\r\n      } else if (foundIPv4TransitionBlock && i === blocks.length - 1) {\r\n        // it has been checked before that the last\r\n        // block is a valid IPv4 address\r\n      } else if (!ipv6Block.test(blocks[i])) {\r\n        return false;\r\n      }\r\n    }\r\n    if (foundOmissionBlock) {\r\n      return blocks.length >= 1;\r\n    }\r\n    return blocks.length === expectedNumberOfBlocks;\r\n  }\r\n  return false;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],152:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isISBN;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/;\r\nvar isbn13Maybe = /^(?:[0-9]{13})$/;\r\nvar factor = [1, 3];\r\n\r\nfunction isISBN(str) {\r\n  var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\r\n\r\n  (0, _assertString2.default)(str);\r\n  version = String(version);\r\n  if (!version) {\r\n    return isISBN(str, 10) || isISBN(str, 13);\r\n  }\r\n  var sanitized = str.replace(/[\\s-]+/g, '');\r\n  var checksum = 0;\r\n  var i = void 0;\r\n  if (version === '10') {\r\n    if (!isbn10Maybe.test(sanitized)) {\r\n      return false;\r\n    }\r\n    for (i = 0; i < 9; i++) {\r\n      checksum += (i + 1) * sanitized.charAt(i);\r\n    }\r\n    if (sanitized.charAt(9) === 'X') {\r\n      checksum += 10 * 10;\r\n    } else {\r\n      checksum += 10 * sanitized.charAt(9);\r\n    }\r\n    if (checksum % 11 === 0) {\r\n      return !!sanitized;\r\n    }\r\n  } else if (version === '13') {\r\n    if (!isbn13Maybe.test(sanitized)) {\r\n      return false;\r\n    }\r\n    for (i = 0; i < 12; i++) {\r\n      checksum += factor[i % 2] * sanitized.charAt(i);\r\n    }\r\n    if (sanitized.charAt(12) - (10 - checksum % 10) % 10 === 0) {\r\n      return !!sanitized;\r\n    }\r\n  }\r\n  return false;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],153:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isISIN;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;\r\n\r\nfunction isISIN(str) {\r\n  (0, _assertString2.default)(str);\r\n  if (!isin.test(str)) {\r\n    return false;\r\n  }\r\n\r\n  var checksumStr = str.replace(/[A-Z]/g, function (character) {\r\n    return parseInt(character, 36);\r\n  });\r\n\r\n  var sum = 0;\r\n  var digit = void 0;\r\n  var tmpNum = void 0;\r\n  var shouldDouble = true;\r\n  for (var i = checksumStr.length - 2; i >= 0; i--) {\r\n    digit = checksumStr.substring(i, i + 1);\r\n    tmpNum = parseInt(digit, 10);\r\n    if (shouldDouble) {\r\n      tmpNum *= 2;\r\n      if (tmpNum >= 10) {\r\n        sum += tmpNum + 1;\r\n      } else {\r\n        sum += tmpNum;\r\n      }\r\n    } else {\r\n      sum += tmpNum;\r\n    }\r\n    shouldDouble = !shouldDouble;\r\n  }\r\n\r\n  return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],154:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isISO31661Alpha2;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n// from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\r\nvar validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW'];\r\n\r\nfunction isISO31661Alpha2(str) {\r\n  (0, _assertString2.default)(str);\r\n  return validISO31661Alpha2CountriesCodes.includes(str.toUpperCase());\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],155:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isISO8601;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/* eslint-disable max-len */\r\n// from http://goo.gl/0ejHHW\r\nvar iso8601 = /^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/;\r\n/* eslint-enable max-len */\r\n\r\nfunction isISO8601(str) {\r\n  (0, _assertString2.default)(str);\r\n  return iso8601.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],156:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isISRC;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n// see http://isrc.ifpi.org/en/isrc-standard/code-syntax\r\nvar isrc = /^[A-Z]{2}[0-9A-Z]{3}\\d{2}\\d{5}$/;\r\n\r\nfunction isISRC(str) {\r\n  (0, _assertString2.default)(str);\r\n  return isrc.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],157:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isISSN;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar issn = '^\\\\d{4}-?\\\\d{3}[\\\\dX]$';\r\n\r\nfunction isISSN(str) {\r\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\r\n\r\n  (0, _assertString2.default)(str);\r\n  var testIssn = issn;\r\n  testIssn = options.require_hyphen ? testIssn.replace('?', '') : testIssn;\r\n  testIssn = options.case_sensitive ? new RegExp(testIssn) : new RegExp(testIssn, 'i');\r\n  if (!testIssn.test(str)) {\r\n    return false;\r\n  }\r\n  var issnDigits = str.replace('-', '');\r\n  var position = 8;\r\n  var checksum = 0;\r\n  var _iteratorNormalCompletion = true;\r\n  var _didIteratorError = false;\r\n  var _iteratorError = undefined;\r\n\r\n  try {\r\n    for (var _iterator = issnDigits[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\r\n      var digit = _step.value;\r\n\r\n      var digitValue = digit.toUpperCase() === 'X' ? 10 : +digit;\r\n      checksum += digitValue * position;\r\n      --position;\r\n    }\r\n  } catch (err) {\r\n    _didIteratorError = true;\r\n    _iteratorError = err;\r\n  } finally {\r\n    try {\r\n      if (!_iteratorNormalCompletion && _iterator.return) {\r\n        _iterator.return();\r\n      }\r\n    } finally {\r\n      if (_didIteratorError) {\r\n        throw _iteratorError;\r\n      }\r\n    }\r\n  }\r\n\r\n  return checksum % 11 === 0;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],158:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\n\r\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\r\n\r\nexports.default = isIn;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _toString = require('./util/toString');\r\n\r\nvar _toString2 = _interopRequireDefault(_toString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isIn(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  var i = void 0;\r\n  if (Object.prototype.toString.call(options) === '[object Array]') {\r\n    var array = [];\r\n    for (i in options) {\r\n      if ({}.hasOwnProperty.call(options, i)) {\r\n        array[i] = (0, _toString2.default)(options[i]);\r\n      }\r\n    }\r\n    return array.indexOf(str) >= 0;\r\n  } else if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\r\n    return options.hasOwnProperty(str);\r\n  } else if (options && typeof options.indexOf === 'function') {\r\n    return options.indexOf(str) >= 0;\r\n  }\r\n  return false;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190,\"./util/toString\":192}],159:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isInt;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar int = /^(?:[-+]?(?:0|[1-9][0-9]*))$/;\r\nvar intLeadingZeroes = /^[-+]?[0-9]+$/;\r\n\r\nfunction isInt(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  options = options || {};\r\n\r\n  // Get the regex to use for testing, based on whether\r\n  // leading zeroes are allowed or not.\r\n  var regex = options.hasOwnProperty('allow_leading_zeroes') && !options.allow_leading_zeroes ? int : intLeadingZeroes;\r\n\r\n  // Check min/max/lt/gt\r\n  var minCheckPassed = !options.hasOwnProperty('min') || str >= options.min;\r\n  var maxCheckPassed = !options.hasOwnProperty('max') || str <= options.max;\r\n  var ltCheckPassed = !options.hasOwnProperty('lt') || str < options.lt;\r\n  var gtCheckPassed = !options.hasOwnProperty('gt') || str > options.gt;\r\n\r\n  return regex.test(str) && minCheckPassed && maxCheckPassed && ltCheckPassed && gtCheckPassed;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],160:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\n\r\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\r\n\r\nexports.default = isJSON;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isJSON(str) {\r\n  (0, _assertString2.default)(str);\r\n  try {\r\n    var obj = JSON.parse(str);\r\n    return !!obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object';\r\n  } catch (e) {/* ignore */}\r\n  return false;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],161:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\n\r\nexports.default = function (str) {\r\n  (0, _assertString2.default)(str);\r\n  if (!str.includes(',')) return false;\r\n  var pair = str.split(',');\r\n  return lat.test(pair[0]) && long.test(pair[1]);\r\n};\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar lat = /^\\(?[+-]?(90(\\.0+)?|[1-8]?\\d(\\.\\d+)?)$/;\r\nvar long = /^\\s?[+-]?(180(\\.0+)?|1[0-7]\\d(\\.\\d+)?|\\d{1,2}(\\.\\d+)?)\\)?$/;\r\n\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],162:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\n\r\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\r\n\r\nexports.default = isLength;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/* eslint-disable prefer-rest-params */\r\nfunction isLength(str, options) {\r\n  (0, _assertString2.default)(str);\r\n  var min = void 0;\r\n  var max = void 0;\r\n  if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\r\n    min = options.min || 0;\r\n    max = options.max;\r\n  } else {\r\n    // backwards compatibility: isLength(str, min [, max])\r\n    min = arguments[1];\r\n    max = arguments[2];\r\n  }\r\n  var surrogatePairs = str.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g) || [];\r\n  var len = str.length - surrogatePairs.length;\r\n  return len >= min && (typeof max === 'undefined' || len <= max);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],163:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isLowercase;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isLowercase(str) {\r\n  (0, _assertString2.default)(str);\r\n  return str === str.toLowerCase();\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],164:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isMACAddress;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;\r\n\r\nfunction isMACAddress(str) {\r\n  (0, _assertString2.default)(str);\r\n  return macAddress.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],165:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isMD5;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar md5 = /^[a-f0-9]{32}$/;\r\n\r\nfunction isMD5(str) {\r\n  (0, _assertString2.default)(str);\r\n  return md5.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],166:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isMimeType;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/*\r\n  Checks if the provided string matches to a correct Media type format (MIME type)\r\n\r\n  This function only checks is the string format follows the\r\n  etablished rules by the according RFC specifications.\r\n  This function supports 'charset' in textual media types\r\n  (https://tools.ietf.org/html/rfc6657).\r\n\r\n  This function does not check against all the media types listed\r\n  by the IANA (https://www.iana.org/assignments/media-types/media-types.xhtml)\r\n  because of lightness purposes : it would require to include\r\n  all these MIME types in this librairy, which would weigh it\r\n  significantly. This kind of effort maybe is not worth for the use that\r\n  this function has in this entire librairy.\r\n\r\n  More informations in the RFC specifications :\r\n  - https://tools.ietf.org/html/rfc2045\r\n  - https://tools.ietf.org/html/rfc2046\r\n  - https://tools.ietf.org/html/rfc7231#section-3.1.1.1\r\n  - https://tools.ietf.org/html/rfc7231#section-3.1.1.5\r\n*/\r\n\r\n// Match simple MIME types\r\n// NB :\r\n//   Subtype length must not exceed 100 characters.\r\n//   This rule does not comply to the RFC specs (what is the max length ?).\r\nvar mimeTypeSimple = /^(application|audio|font|image|message|model|multipart|text|video)\\/[a-zA-Z0-9\\.\\-\\+]{1,100}$/i; // eslint-disable-line max-len\r\n\r\n// Handle \"charset\" in \"text/*\"\r\nvar mimeTypeText = /^text\\/[a-zA-Z0-9\\.\\-\\+]{1,100};\\s?charset=(\"[a-zA-Z0-9\\.\\-\\+\\s]{0,70}\"|[a-zA-Z0-9\\.\\-\\+]{0,70})(\\s?\\([a-zA-Z0-9\\.\\-\\+\\s]{1,20}\\))?$/i; // eslint-disable-line max-len\r\n\r\n// Handle \"boundary\" in \"multipart/*\"\r\nvar mimeTypeMultipart = /^multipart\\/[a-zA-Z0-9\\.\\-\\+]{1,100}(;\\s?(boundary|charset)=(\"[a-zA-Z0-9\\.\\-\\+\\s]{0,70}\"|[a-zA-Z0-9\\.\\-\\+]{0,70})(\\s?\\([a-zA-Z0-9\\.\\-\\+\\s]{1,20}\\))?){0,2}$/i; // eslint-disable-line max-len\r\n\r\nfunction isMimeType(str) {\r\n  (0, _assertString2.default)(str);\r\n  return mimeTypeSimple.test(str) || mimeTypeText.test(str) || mimeTypeMultipart.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],167:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isMobilePhone;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/* eslint-disable max-len */\r\nvar phones = {\r\n  'ar-AE': /^((\\+?971)|0)?5[024568]\\d{7}$/,\r\n  'ar-DZ': /^(\\+?213|0)(5|6|7)\\d{8}$/,\r\n  'ar-EG': /^((\\+?20)|0)?1[012]\\d{8}$/,\r\n  'ar-JO': /^(\\+?962|0)?7[789]\\d{7}$/,\r\n  'ar-SA': /^(!?(\\+?966)|0)?5\\d{8}$/,\r\n  'ar-SY': /^(!?(\\+?963)|0)?9\\d{8}$/,\r\n  'be-BY': /^(\\+?375)?(24|25|29|33|44)\\d{7}$/,\r\n  'bg-BG': /^(\\+?359|0)?8[789]\\d{7}$/,\r\n  'cs-CZ': /^(\\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\r\n  'da-DK': /^(\\+?45)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\r\n  'de-DE': /^(\\+?49[ \\.\\-])?([\\(]{1}[0-9]{1,6}[\\)])?([0-9 \\.\\-\\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,\r\n  'el-GR': /^(\\+?30|0)?(69\\d{8})$/,\r\n  'en-AU': /^(\\+?61|0)4\\d{8}$/,\r\n  'en-GB': /^(\\+?44|0)7\\d{9}$/,\r\n  'en-HK': /^(\\+?852\\-?)?[456789]\\d{3}\\-?\\d{4}$/,\r\n  'en-IN': /^(\\+?91|0)?[6789]\\d{9}$/,\r\n  'en-KE': /^(\\+?254|0)?[7]\\d{8}$/,\r\n  'en-NG': /^(\\+?234|0)?[789]\\d{9}$/,\r\n  'en-NZ': /^(\\+?64|0)2\\d{7,9}$/,\r\n  'en-PK': /^((\\+92)|(0092))-{0,1}\\d{3}-{0,1}\\d{7}$|^\\d{11}$|^\\d{4}-\\d{7}$/,\r\n  'en-RW': /^(\\+?250|0)?[7]\\d{8}$/,\r\n  'en-SG': /^(\\+65)?[89]\\d{7}$/,\r\n  'en-TZ': /^(\\+?255|0)?[67]\\d{8}$/,\r\n  'en-UG': /^(\\+?256|0)?[7]\\d{8}$/,\r\n  'en-US': /^(\\+?1)?[2-9]\\d{2}[2-9](?!11)\\d{6}$/,\r\n  'en-ZA': /^(\\+?27|0)\\d{9}$/,\r\n  'en-ZM': /^(\\+?26)?09[567]\\d{7}$/,\r\n  'es-ES': /^(\\+?34)?(6\\d{1}|7[1234])\\d{7}$/,\r\n  'et-EE': /^(\\+?372)?\\s?(5|8[1-4])\\s?([0-9]\\s?){6,7}$/,\r\n  'fa-IR': /^(\\+?98[\\-\\s]?|0)9[0-39]\\d[\\-\\s]?\\d{3}[\\-\\s]?\\d{4}$/,\r\n  'fi-FI': /^(\\+?358|0)\\s?(4(0|1|2|4|5|6)?|50)\\s?(\\d\\s?){4,8}\\d$/,\r\n  'fo-FO': /^(\\+?298)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\r\n  'fr-FR': /^(\\+?33|0)[67]\\d{8}$/,\r\n  'he-IL': /^(\\+972|0)([23489]|5[012345689]|77)[1-9]\\d{6}/,\r\n  'hu-HU': /^(\\+?36)(20|30|70)\\d{7}$/,\r\n  'id-ID': /^(\\+?62|0[1-9])[\\s|\\d]+$/,\r\n  'it-IT': /^(\\+?39)?\\s?3\\d{2} ?\\d{6,7}$/,\r\n  'ja-JP': /^(\\+?81|0)[789]0[ \\-]?[1-9]\\d{2}[ \\-]?\\d{5}$/,\r\n  'kk-KZ': /^(\\+?7|8)?7\\d{9}$/,\r\n  'kl-GL': /^(\\+?299)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\r\n  'ko-KR': /^((\\+?82)[ \\-]?)?0?1([0|1|6|7|8|9]{1})[ \\-]?\\d{3,4}[ \\-]?\\d{4}$/,\r\n  'lt-LT': /^(\\+370|8)\\d{8}$/,\r\n  'ms-MY': /^(\\+?6?01){1}(([145]{1}(\\-|\\s)?\\d{7,8})|([236789]{1}(\\s|\\-)?\\d{7}))$/,\r\n  'nb-NO': /^(\\+?47)?[49]\\d{7}$/,\r\n  'nl-BE': /^(\\+?32|0)4?\\d{8}$/,\r\n  'nn-NO': /^(\\+?47)?[49]\\d{7}$/,\r\n  'pl-PL': /^(\\+?48)? ?[5-8]\\d ?\\d{3} ?\\d{2} ?\\d{2}$/,\r\n  'pt-BR': /^(\\+?55|0)\\-?[1-9]{2}\\-?[2-9]{1}\\d{3,4}\\-?\\d{4}$/,\r\n  'pt-PT': /^(\\+?351)?9[1236]\\d{7}$/,\r\n  'ro-RO': /^(\\+?4?0)\\s?7\\d{2}(\\/|\\s|\\.|\\-)?\\d{3}(\\s|\\.|\\-)?\\d{3}$/,\r\n  'ru-RU': /^(\\+?7|8)?9\\d{9}$/,\r\n  'sk-SK': /^(\\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\r\n  'sr-RS': /^(\\+3816|06)[- \\d]{5,9}$/,\r\n  'th-TH': /^(\\+66|66|0)\\d{9}$/,\r\n  'tr-TR': /^(\\+?90|0)?5\\d{9}$/,\r\n  'uk-UA': /^(\\+?38|8)?0\\d{9}$/,\r\n  'vi-VN': /^(\\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,\r\n  'zh-CN': /^(\\+?0?86\\-?)?1[3456789]\\d{9}$/,\r\n  'zh-TW': /^(\\+?886\\-?|0)?9\\d{8}$/\r\n};\r\n/* eslint-enable max-len */\r\n\r\n// aliases\r\nphones['en-CA'] = phones['en-US'];\r\nphones['fr-BE'] = phones['nl-BE'];\r\nphones['zh-HK'] = phones['en-HK'];\r\n\r\nfunction isMobilePhone(str, locale, options) {\r\n  (0, _assertString2.default)(str);\r\n  if (options && options.strictMode && !str.startsWith('+')) {\r\n    return false;\r\n  }\r\n  if (locale in phones) {\r\n    return phones[locale].test(str);\r\n  } else if (locale === 'any') {\r\n    for (var key in phones) {\r\n      if (phones.hasOwnProperty(key)) {\r\n        var phone = phones[key];\r\n        if (phone.test(str)) {\r\n          return true;\r\n        }\r\n      }\r\n    }\r\n    return false;\r\n  }\r\n  throw new Error('Invalid locale \\'' + locale + '\\'');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],168:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isMongoId;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _isHexadecimal = require('./isHexadecimal');\r\n\r\nvar _isHexadecimal2 = _interopRequireDefault(_isHexadecimal);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isMongoId(str) {\r\n  (0, _assertString2.default)(str);\r\n  return (0, _isHexadecimal2.default)(str) && str.length === 24;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./isHexadecimal\":150,\"./util/assertString\":190}],169:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isMultibyte;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n/* eslint-disable no-control-regex */\r\nvar multibyte = /[^\\x00-\\x7F]/;\r\n/* eslint-enable no-control-regex */\r\n\r\nfunction isMultibyte(str) {\r\n  (0, _assertString2.default)(str);\r\n  return multibyte.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],170:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isNumeric;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar numeric = /^[-+]?[0-9]+$/;\r\n\r\nfunction isNumeric(str) {\r\n  (0, _assertString2.default)(str);\r\n  return numeric.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],171:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isPort;\r\n\r\nvar _isInt = require('./isInt');\r\n\r\nvar _isInt2 = _interopRequireDefault(_isInt);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isPort(str) {\r\n  return (0, _isInt2.default)(str, { min: 0, max: 65535 });\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./isInt\":159}],172:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.locales = undefined;\r\n\r\nexports.default = function (str, locale) {\r\n  (0, _assertString2.default)(str);\r\n  if (locale in patterns) {\r\n    return patterns[locale].test(str);\r\n  } else if (locale === 'any') {\r\n    for (var key in patterns) {\r\n      if (patterns.hasOwnProperty(key)) {\r\n        var pattern = patterns[key];\r\n        if (pattern.test(str)) {\r\n          return true;\r\n        }\r\n      }\r\n    }\r\n    return false;\r\n  }\r\n  throw new Error('Invalid locale \\'' + locale + '\\'');\r\n};\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\n// common patterns\r\nvar threeDigit = /^\\d{3}$/;\r\nvar fourDigit = /^\\d{4}$/;\r\nvar fiveDigit = /^\\d{5}$/;\r\nvar sixDigit = /^\\d{6}$/;\r\n\r\nvar patterns = {\r\n  AT: fourDigit,\r\n  AU: fourDigit,\r\n  BE: fourDigit,\r\n  BG: fourDigit,\r\n  CA: /^[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][\\s\\-]?\\d[ABCEGHJ-NPRSTV-Z]\\d$/i,\r\n  CH: fourDigit,\r\n  CZ: /^\\d{3}\\s?\\d{2}$/,\r\n  DE: fiveDigit,\r\n  DK: fourDigit,\r\n  DZ: fiveDigit,\r\n  ES: fiveDigit,\r\n  FI: fiveDigit,\r\n  FR: /^\\d{2}\\s?\\d{3}$/,\r\n  GB: /^(gir\\s?0aa|[a-z]{1,2}\\d[\\da-z]?\\s?(\\d[a-z]{2})?)$/i,\r\n  GR: /^\\d{3}\\s?\\d{2}$/,\r\n  IL: fiveDigit,\r\n  IN: sixDigit,\r\n  IS: threeDigit,\r\n  IT: fiveDigit,\r\n  JP: /^\\d{3}\\-\\d{4}$/,\r\n  KE: fiveDigit,\r\n  LI: /^(948[5-9]|949[0-7])$/,\r\n  MX: fiveDigit,\r\n  NL: /^\\d{4}\\s?[a-z]{2}$/i,\r\n  NO: fourDigit,\r\n  PL: /^\\d{2}\\-\\d{3}$/,\r\n  PT: /^\\d{4}\\-\\d{3}?$/,\r\n  RO: sixDigit,\r\n  RU: sixDigit,\r\n  SA: fiveDigit,\r\n  SE: /^\\d{3}\\s?\\d{2}$/,\r\n  TW: /^\\d{3}(\\d{2})?$/,\r\n  US: /^\\d{5}(-\\d{4})?$/,\r\n  ZA: fourDigit,\r\n  ZM: fiveDigit\r\n};\r\n\r\nvar locales = exports.locales = Object.keys(patterns);\r\n},{\"./util/assertString\":190}],173:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isSurrogatePair;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar surrogatePair = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/;\r\n\r\nfunction isSurrogatePair(str) {\r\n  (0, _assertString2.default)(str);\r\n  return surrogatePair.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],174:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isURL;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _isFQDN = require('./isFQDN');\r\n\r\nvar _isFQDN2 = _interopRequireDefault(_isFQDN);\r\n\r\nvar _isIP = require('./isIP');\r\n\r\nvar _isIP2 = _interopRequireDefault(_isIP);\r\n\r\nvar _merge = require('./util/merge');\r\n\r\nvar _merge2 = _interopRequireDefault(_merge);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar default_url_options = {\r\n  protocols: ['http', 'https', 'ftp'],\r\n  require_tld: true,\r\n  require_protocol: false,\r\n  require_host: true,\r\n  require_valid_protocol: true,\r\n  allow_underscores: false,\r\n  allow_trailing_dot: false,\r\n  allow_protocol_relative_urls: false\r\n};\r\n\r\nvar wrapped_ipv6 = /^\\[([^\\]]+)\\](?::([0-9]+))?$/;\r\n\r\nfunction isRegExp(obj) {\r\n  return Object.prototype.toString.call(obj) === '[object RegExp]';\r\n}\r\n\r\nfunction checkHost(host, matches) {\r\n  for (var i = 0; i < matches.length; i++) {\r\n    var match = matches[i];\r\n    if (host === match || isRegExp(match) && match.test(host)) {\r\n      return true;\r\n    }\r\n  }\r\n  return false;\r\n}\r\n\r\nfunction isURL(url, options) {\r\n  (0, _assertString2.default)(url);\r\n  if (!url || url.length >= 2083 || /[\\s<>]/.test(url)) {\r\n    return false;\r\n  }\r\n  if (url.indexOf('mailto:') === 0) {\r\n    return false;\r\n  }\r\n  options = (0, _merge2.default)(options, default_url_options);\r\n  var protocol = void 0,\r\n      auth = void 0,\r\n      host = void 0,\r\n      hostname = void 0,\r\n      port = void 0,\r\n      port_str = void 0,\r\n      split = void 0,\r\n      ipv6 = void 0;\r\n\r\n  split = url.split('#');\r\n  url = split.shift();\r\n\r\n  split = url.split('?');\r\n  url = split.shift();\r\n\r\n  split = url.split('://');\r\n  if (split.length > 1) {\r\n    protocol = split.shift();\r\n    if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {\r\n      return false;\r\n    }\r\n  } else if (options.require_protocol) {\r\n    return false;\r\n  } else if (options.allow_protocol_relative_urls && url.substr(0, 2) === '//') {\r\n    split[0] = url.substr(2);\r\n  }\r\n  url = split.join('://');\r\n\r\n  if (url === '') {\r\n    return false;\r\n  }\r\n\r\n  split = url.split('/');\r\n  url = split.shift();\r\n\r\n  if (url === '' && !options.require_host) {\r\n    return true;\r\n  }\r\n\r\n  split = url.split('@');\r\n  if (split.length > 1) {\r\n    auth = split.shift();\r\n    if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {\r\n      return false;\r\n    }\r\n  }\r\n  hostname = split.join('@');\r\n\r\n  port_str = null;\r\n  ipv6 = null;\r\n  var ipv6_match = hostname.match(wrapped_ipv6);\r\n  if (ipv6_match) {\r\n    host = '';\r\n    ipv6 = ipv6_match[1];\r\n    port_str = ipv6_match[2] || null;\r\n  } else {\r\n    split = hostname.split(':');\r\n    host = split.shift();\r\n    if (split.length) {\r\n      port_str = split.join(':');\r\n    }\r\n  }\r\n\r\n  if (port_str !== null) {\r\n    port = parseInt(port_str, 10);\r\n    if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {\r\n      return false;\r\n    }\r\n  }\r\n\r\n  if (!(0, _isIP2.default)(host) && !(0, _isFQDN2.default)(host, options) && (!ipv6 || !(0, _isIP2.default)(ipv6, 6))) {\r\n    return false;\r\n  }\r\n\r\n  host = host || ipv6;\r\n\r\n  if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {\r\n    return false;\r\n  }\r\n  if (options.host_blacklist && checkHost(host, options.host_blacklist)) {\r\n    return false;\r\n  }\r\n\r\n  return true;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./isFQDN\":144,\"./isIP\":151,\"./util/assertString\":190,\"./util/merge\":191}],175:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isUUID;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar uuid = {\r\n  3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\r\n  4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\r\n  5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\r\n  all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i\r\n};\r\n\r\nfunction isUUID(str) {\r\n  var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all';\r\n\r\n  (0, _assertString2.default)(str);\r\n  var pattern = uuid[version];\r\n  return pattern && pattern.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],176:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isUppercase;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isUppercase(str) {\r\n  (0, _assertString2.default)(str);\r\n  return str === str.toUpperCase();\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],177:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isVariableWidth;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _isFullWidth = require('./isFullWidth');\r\n\r\nvar _isHalfWidth = require('./isHalfWidth');\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isVariableWidth(str) {\r\n  (0, _assertString2.default)(str);\r\n  return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./isFullWidth\":146,\"./isHalfWidth\":147,\"./util/assertString\":190}],178:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = isWhitelisted;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction isWhitelisted(str, chars) {\r\n  (0, _assertString2.default)(str);\r\n  for (var i = str.length - 1; i >= 0; i--) {\r\n    if (chars.indexOf(str[i]) === -1) {\r\n      return false;\r\n    }\r\n  }\r\n  return true;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],179:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = ltrim;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction ltrim(str, chars) {\r\n  (0, _assertString2.default)(str);\r\n  var pattern = chars ? new RegExp('^[' + chars + ']+', 'g') : /^\\s+/g;\r\n  return str.replace(pattern, '');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],180:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = matches;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction matches(str, pattern, modifiers) {\r\n  (0, _assertString2.default)(str);\r\n  if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {\r\n    pattern = new RegExp(pattern, modifiers);\r\n  }\r\n  return pattern.test(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],181:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = normalizeEmail;\r\n\r\nvar _merge = require('./util/merge');\r\n\r\nvar _merge2 = _interopRequireDefault(_merge);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar default_normalize_email_options = {\r\n  // The following options apply to all email addresses\r\n  // Lowercases the local part of the email address.\r\n  // Please note this may violate RFC 5321 as per http://stackoverflow.com/a/9808332/192024).\r\n  // The domain is always lowercased, as per RFC 1035\r\n  all_lowercase: true,\r\n\r\n  // The following conversions are specific to GMail\r\n  // Lowercases the local part of the GMail address (known to be case-insensitive)\r\n  gmail_lowercase: true,\r\n  // Removes dots from the local part of the email address, as that's ignored by GMail\r\n  gmail_remove_dots: true,\r\n  // Removes the subaddress (e.g. \"+foo\") from the email address\r\n  gmail_remove_subaddress: true,\r\n  // Conversts the googlemail.com domain to gmail.com\r\n  gmail_convert_googlemaildotcom: true,\r\n\r\n  // The following conversions are specific to Outlook.com / Windows Live / Hotmail\r\n  // Lowercases the local part of the Outlook.com address (known to be case-insensitive)\r\n  outlookdotcom_lowercase: true,\r\n  // Removes the subaddress (e.g. \"+foo\") from the email address\r\n  outlookdotcom_remove_subaddress: true,\r\n\r\n  // The following conversions are specific to Yahoo\r\n  // Lowercases the local part of the Yahoo address (known to be case-insensitive)\r\n  yahoo_lowercase: true,\r\n  // Removes the subaddress (e.g. \"-foo\") from the email address\r\n  yahoo_remove_subaddress: true,\r\n\r\n  // The following conversions are specific to iCloud\r\n  // Lowercases the local part of the iCloud address (known to be case-insensitive)\r\n  icloud_lowercase: true,\r\n  // Removes the subaddress (e.g. \"+foo\") from the email address\r\n  icloud_remove_subaddress: true\r\n};\r\n\r\n// List of domains used by iCloud\r\nvar icloud_domains = ['icloud.com', 'me.com'];\r\n\r\n// List of domains used by Outlook.com and its predecessors\r\n// This list is likely incomplete.\r\n// Partial reference:\r\n// https://blogs.office.com/2013/04/17/outlook-com-gets-two-step-verification-sign-in-by-alias-and-new-international-domains/\r\nvar outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.cl', 'hotmail.co.il', 'hotmail.co.nz', 'hotmail.co.th', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.ar', 'hotmail.com.au', 'hotmail.com.br', 'hotmail.com.gr', 'hotmail.com.mx', 'hotmail.com.pe', 'hotmail.com.tr', 'hotmail.com.vn', 'hotmail.cz', 'hotmail.de', 'hotmail.dk', 'hotmail.es', 'hotmail.fr', 'hotmail.hu', 'hotmail.id', 'hotmail.ie', 'hotmail.in', 'hotmail.it', 'hotmail.jp', 'hotmail.kr', 'hotmail.lv', 'hotmail.my', 'hotmail.ph', 'hotmail.pt', 'hotmail.sa', 'hotmail.sg', 'hotmail.sk', 'live.be', 'live.co.uk', 'live.com', 'live.com.ar', 'live.com.mx', 'live.de', 'live.es', 'live.eu', 'live.fr', 'live.it', 'live.nl', 'msn.com', 'outlook.at', 'outlook.be', 'outlook.cl', 'outlook.co.il', 'outlook.co.nz', 'outlook.co.th', 'outlook.com', 'outlook.com.ar', 'outlook.com.au', 'outlook.com.br', 'outlook.com.gr', 'outlook.com.pe', 'outlook.com.tr', 'outlook.com.vn', 'outlook.cz', 'outlook.de', 'outlook.dk', 'outlook.es', 'outlook.fr', 'outlook.hu', 'outlook.id', 'outlook.ie', 'outlook.in', 'outlook.it', 'outlook.jp', 'outlook.kr', 'outlook.lv', 'outlook.my', 'outlook.ph', 'outlook.pt', 'outlook.sa', 'outlook.sg', 'outlook.sk', 'passport.com'];\r\n\r\n// List of domains used by Yahoo Mail\r\n// This list is likely incomplete\r\nvar yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com'];\r\n\r\nfunction normalizeEmail(email, options) {\r\n  options = (0, _merge2.default)(options, default_normalize_email_options);\r\n\r\n  var raw_parts = email.split('@');\r\n  var domain = raw_parts.pop();\r\n  var user = raw_parts.join('@');\r\n  var parts = [user, domain];\r\n\r\n  // The domain is always lowercased, as it's case-insensitive per RFC 1035\r\n  parts[1] = parts[1].toLowerCase();\r\n\r\n  if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') {\r\n    // Address is GMail\r\n    if (options.gmail_remove_subaddress) {\r\n      parts[0] = parts[0].split('+')[0];\r\n    }\r\n    if (options.gmail_remove_dots) {\r\n      parts[0] = parts[0].replace(/\\./g, '');\r\n    }\r\n    if (!parts[0].length) {\r\n      return false;\r\n    }\r\n    if (options.all_lowercase || options.gmail_lowercase) {\r\n      parts[0] = parts[0].toLowerCase();\r\n    }\r\n    parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1];\r\n  } else if (~icloud_domains.indexOf(parts[1])) {\r\n    // Address is iCloud\r\n    if (options.icloud_remove_subaddress) {\r\n      parts[0] = parts[0].split('+')[0];\r\n    }\r\n    if (!parts[0].length) {\r\n      return false;\r\n    }\r\n    if (options.all_lowercase || options.icloud_lowercase) {\r\n      parts[0] = parts[0].toLowerCase();\r\n    }\r\n  } else if (~outlookdotcom_domains.indexOf(parts[1])) {\r\n    // Address is Outlook.com\r\n    if (options.outlookdotcom_remove_subaddress) {\r\n      parts[0] = parts[0].split('+')[0];\r\n    }\r\n    if (!parts[0].length) {\r\n      return false;\r\n    }\r\n    if (options.all_lowercase || options.outlookdotcom_lowercase) {\r\n      parts[0] = parts[0].toLowerCase();\r\n    }\r\n  } else if (~yahoo_domains.indexOf(parts[1])) {\r\n    // Address is Yahoo\r\n    if (options.yahoo_remove_subaddress) {\r\n      var components = parts[0].split('-');\r\n      parts[0] = components.length > 1 ? components.slice(0, -1).join('-') : components[0];\r\n    }\r\n    if (!parts[0].length) {\r\n      return false;\r\n    }\r\n    if (options.all_lowercase || options.yahoo_lowercase) {\r\n      parts[0] = parts[0].toLowerCase();\r\n    }\r\n  } else if (options.all_lowercase) {\r\n    // Any other address\r\n    parts[0] = parts[0].toLowerCase();\r\n  }\r\n  return parts.join('@');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/merge\":191}],182:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = rtrim;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction rtrim(str, chars) {\r\n  (0, _assertString2.default)(str);\r\n  var pattern = chars ? new RegExp('[' + chars + ']') : /\\s/;\r\n\r\n  var idx = str.length - 1;\r\n  while (idx >= 0 && pattern.test(str[idx])) {\r\n    idx--;\r\n  }\r\n\r\n  return idx < str.length ? str.substr(0, idx + 1) : str;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],183:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = stripLow;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nvar _blacklist = require('./blacklist');\r\n\r\nvar _blacklist2 = _interopRequireDefault(_blacklist);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction stripLow(str, keep_new_lines) {\r\n  (0, _assertString2.default)(str);\r\n  var chars = keep_new_lines ? '\\\\x00-\\\\x09\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F' : '\\\\x00-\\\\x1F\\\\x7F';\r\n  return (0, _blacklist2.default)(str, chars);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./blacklist\":125,\"./util/assertString\":190}],184:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = toBoolean;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction toBoolean(str, strict) {\r\n  (0, _assertString2.default)(str);\r\n  if (strict) {\r\n    return str === '1' || str === 'true';\r\n  }\r\n  return str !== '0' && str !== 'false' && str !== '';\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],185:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = toDate;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction toDate(date) {\r\n  (0, _assertString2.default)(date);\r\n  date = Date.parse(date);\r\n  return !isNaN(date) ? new Date(date) : null;\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],186:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = toFloat;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction toFloat(str) {\r\n  (0, _assertString2.default)(str);\r\n  return parseFloat(str);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],187:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = toInt;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction toInt(str, radix) {\r\n  (0, _assertString2.default)(str);\r\n  return parseInt(str, radix || 10);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],188:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = trim;\r\n\r\nvar _rtrim = require('./rtrim');\r\n\r\nvar _rtrim2 = _interopRequireDefault(_rtrim);\r\n\r\nvar _ltrim = require('./ltrim');\r\n\r\nvar _ltrim2 = _interopRequireDefault(_ltrim);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction trim(str, chars) {\r\n  return (0, _rtrim2.default)((0, _ltrim2.default)(str, chars), chars);\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./ltrim\":179,\"./rtrim\":182}],189:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = unescape;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction unescape(str) {\r\n  (0, _assertString2.default)(str);\r\n  return str.replace(/&amp;/g, '&').replace(/&quot;/g, '\"').replace(/&#x27;/g, \"'\").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '/').replace(/&#x5C;/g, '\\\\').replace(/&#96;/g, '`');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],190:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = assertString;\r\nfunction assertString(input) {\r\n  var isString = typeof input === 'string' || input instanceof String;\r\n\r\n  if (!isString) {\r\n    throw new TypeError('This library (validator.js) validates strings only');\r\n  }\r\n}\r\nmodule.exports = exports['default'];\r\n},{}],191:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = merge;\r\nfunction merge() {\r\n  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\r\n  var defaults = arguments[1];\r\n\r\n  for (var key in defaults) {\r\n    if (typeof obj[key] === 'undefined') {\r\n      obj[key] = defaults[key];\r\n    }\r\n  }\r\n  return obj;\r\n}\r\nmodule.exports = exports['default'];\r\n},{}],192:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\n\r\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\r\n\r\nexports.default = toString;\r\nfunction toString(input) {\r\n  if ((typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' && input !== null) {\r\n    if (typeof input.toString === 'function') {\r\n      input = input.toString();\r\n    } else {\r\n      input = '[object Object]';\r\n    }\r\n  } else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) {\r\n    input = '';\r\n  }\r\n  return String(input);\r\n}\r\nmodule.exports = exports['default'];\r\n},{}],193:[function(require,module,exports){\r\n'use strict';\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n  value: true\r\n});\r\nexports.default = whitelist;\r\n\r\nvar _assertString = require('./util/assertString');\r\n\r\nvar _assertString2 = _interopRequireDefault(_assertString);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction whitelist(str, chars) {\r\n  (0, _assertString2.default)(str);\r\n  return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');\r\n}\r\nmodule.exports = exports['default'];\r\n},{\"./util/assertString\":190}],194:[function(require,module,exports){\r\n(function (process){\r\n// Generated by CoffeeScript 1.6.3\r\n(function() {\r\n  var events, isEmpty, sax,\r\n    __hasProp = {}.hasOwnProperty,\r\n    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };\r\n\r\n  sax = require('sax');\r\n\r\n  events = require('events');\r\n\r\n  isEmpty = function(thing) {\r\n    return typeof thing === \"object\" && (thing != null) && Object.keys(thing).length === 0;\r\n  };\r\n\r\n  exports.defaults = {\r\n    \"0.1\": {\r\n      explicitCharkey: false,\r\n      trim: true,\r\n      normalize: true,\r\n      normalizeTags: false,\r\n      attrkey: \"@\",\r\n      charkey: \"#\",\r\n      explicitArray: false,\r\n      ignoreAttrs: false,\r\n      mergeAttrs: false,\r\n      explicitRoot: false,\r\n      validator: null,\r\n      xmlns: false,\r\n      explicitChildren: false,\r\n      childkey: '@@',\r\n      charsAsChildren: false,\r\n      async: false,\r\n      strict: true\r\n    },\r\n    \"0.2\": {\r\n      explicitCharkey: false,\r\n      trim: false,\r\n      normalize: false,\r\n      normalizeTags: false,\r\n      attrkey: \"$\",\r\n      charkey: \"_\",\r\n      explicitArray: true,\r\n      ignoreAttrs: false,\r\n      mergeAttrs: false,\r\n      explicitRoot: true,\r\n      validator: null,\r\n      xmlns: false,\r\n      explicitChildren: false,\r\n      childkey: '$$',\r\n      charsAsChildren: false,\r\n      async: false,\r\n      strict: true\r\n    }\r\n  };\r\n\r\n  exports.ValidationError = (function(_super) {\r\n    __extends(ValidationError, _super);\r\n\r\n    function ValidationError(message) {\r\n      this.message = message;\r\n    }\r\n\r\n    return ValidationError;\r\n\r\n  })(Error);\r\n\r\n  exports.Parser = (function(_super) {\r\n    __extends(Parser, _super);\r\n\r\n    function Parser(opts) {\r\n      this.parseString = __bind(this.parseString, this);\r\n      this.reset = __bind(this.reset, this);\r\n      var key, value, _ref;\r\n      if (!(this instanceof exports.Parser)) {\r\n        return new exports.Parser(opts);\r\n      }\r\n      this.options = {};\r\n      _ref = exports.defaults[\"0.2\"];\r\n      for (key in _ref) {\r\n        if (!__hasProp.call(_ref, key)) continue;\r\n        value = _ref[key];\r\n        this.options[key] = value;\r\n      }\r\n      for (key in opts) {\r\n        if (!__hasProp.call(opts, key)) continue;\r\n        value = opts[key];\r\n        this.options[key] = value;\r\n      }\r\n      if (this.options.xmlns) {\r\n        this.options.xmlnskey = this.options.attrkey + \"ns\";\r\n      }\r\n      this.reset();\r\n    }\r\n\r\n    Parser.prototype.reset = function() {\r\n      var attrkey, charkey, err, ontext, stack,\r\n        _this = this;\r\n      this.removeAllListeners();\r\n      this.saxParser = sax.parser(this.options.strict, {\r\n        trim: false,\r\n        normalize: false,\r\n        xmlns: this.options.xmlns\r\n      });\r\n      err = false;\r\n      this.saxParser.onerror = function(error) {\r\n        if (!err) {\r\n          err = true;\r\n          return _this.emit(\"error\", error);\r\n        }\r\n      };\r\n      this.EXPLICIT_CHARKEY = this.options.explicitCharkey;\r\n      this.resultObject = null;\r\n      stack = [];\r\n      attrkey = this.options.attrkey;\r\n      charkey = this.options.charkey;\r\n      this.saxParser.onopentag = function(node) {\r\n        var key, obj, _ref;\r\n        obj = {};\r\n        obj[charkey] = \"\";\r\n        if (!_this.options.ignoreAttrs) {\r\n          _ref = node.attributes;\r\n          for (key in _ref) {\r\n            if (!__hasProp.call(_ref, key)) continue;\r\n            if (!(attrkey in obj) && !_this.options.mergeAttrs) {\r\n              obj[attrkey] = {};\r\n            }\r\n            if (_this.options.mergeAttrs) {\r\n              obj[key] = node.attributes[key];\r\n            } else {\r\n              obj[attrkey][key] = node.attributes[key];\r\n            }\r\n          }\r\n        }\r\n        obj[\"#name\"] = _this.options.normalizeTags ? node.name.toLowerCase() : node.name;\r\n        if (_this.options.xmlns) {\r\n          obj[_this.options.xmlnskey] = {\r\n            uri: node.uri,\r\n            local: node.local\r\n          };\r\n        }\r\n        return stack.push(obj);\r\n      };\r\n      this.saxParser.onclosetag = function() {\r\n        var cdata, emptyStr, node, nodeName, obj, old, s, xpath;\r\n        obj = stack.pop();\r\n        nodeName = obj[\"#name\"];\r\n        delete obj[\"#name\"];\r\n        cdata = obj.cdata;\r\n        delete obj.cdata;\r\n        s = stack[stack.length - 1];\r\n        if (obj[charkey].match(/^\\s*$/) && !cdata) {\r\n          emptyStr = obj[charkey];\r\n          delete obj[charkey];\r\n        } else {\r\n          if (_this.options.trim) {\r\n            obj[charkey] = obj[charkey].trim();\r\n          }\r\n          if (_this.options.normalize) {\r\n            obj[charkey] = obj[charkey].replace(/\\s{2,}/g, \" \").trim();\r\n          }\r\n          if (Object.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) {\r\n            obj = obj[charkey];\r\n          }\r\n        }\r\n        if (isEmpty(obj)) {\r\n          obj = _this.options.emptyTag !== void 0 ? _this.options.emptyTag : emptyStr;\r\n        }\r\n        if (_this.options.validator != null) {\r\n          xpath = \"/\" + ((function() {\r\n            var _i, _len, _results;\r\n            _results = [];\r\n            for (_i = 0, _len = stack.length; _i < _len; _i++) {\r\n              node = stack[_i];\r\n              _results.push(node[\"#name\"]);\r\n            }\r\n            return _results;\r\n          })()).concat(nodeName).join(\"/\");\r\n          try {\r\n            obj = _this.options.validator(xpath, s && s[nodeName], obj);\r\n          } catch (_error) {\r\n            err = _error;\r\n            _this.emit(\"error\", err);\r\n          }\r\n        }\r\n        if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {\r\n          node = {};\r\n          if (_this.options.attrkey in obj) {\r\n            node[_this.options.attrkey] = obj[_this.options.attrkey];\r\n            delete obj[_this.options.attrkey];\r\n          }\r\n          if (!_this.options.charsAsChildren && _this.options.charkey in obj) {\r\n            node[_this.options.charkey] = obj[_this.options.charkey];\r\n            delete obj[_this.options.charkey];\r\n          }\r\n          if (Object.getOwnPropertyNames(obj).length > 0) {\r\n            node[_this.options.childkey] = obj;\r\n          }\r\n          obj = node;\r\n        }\r\n        if (stack.length > 0) {\r\n          if (!_this.options.explicitArray) {\r\n            if (!(nodeName in s)) {\r\n              return s[nodeName] = obj;\r\n            } else if (s[nodeName] instanceof Array) {\r\n              return s[nodeName].push(obj);\r\n            } else {\r\n              old = s[nodeName];\r\n              s[nodeName] = [old];\r\n              return s[nodeName].push(obj);\r\n            }\r\n          } else {\r\n            if (!(s[nodeName] instanceof Array)) {\r\n              s[nodeName] = [];\r\n            }\r\n            return s[nodeName].push(obj);\r\n          }\r\n        } else {\r\n          if (_this.options.explicitRoot) {\r\n            old = obj;\r\n            obj = {};\r\n            obj[nodeName] = old;\r\n          }\r\n          _this.resultObject = obj;\r\n          return _this.emit(\"end\", _this.resultObject);\r\n        }\r\n      };\r\n      ontext = function(text) {\r\n        var s;\r\n        s = stack[stack.length - 1];\r\n        if (s) {\r\n          s[charkey] += text;\r\n          return s;\r\n        }\r\n      };\r\n      this.saxParser.ontext = ontext;\r\n      return this.saxParser.oncdata = function(text) {\r\n        var s;\r\n        s = ontext(text);\r\n        if (s) {\r\n          return s.cdata = true;\r\n        }\r\n      };\r\n    };\r\n\r\n    Parser.prototype.parseString = function(str, cb) {\r\n      if ((cb != null) && typeof cb === \"function\") {\r\n        this.on(\"end\", function(result) {\r\n          this.reset();\r\n          if (this.options.async) {\r\n            return process.nextTick(function() {\r\n              return cb(null, result);\r\n            });\r\n          } else {\r\n            return cb(null, result);\r\n          }\r\n        });\r\n        this.on(\"error\", function(err) {\r\n          this.reset();\r\n          if (this.options.async) {\r\n            return process.nextTick(function() {\r\n              return cb(err);\r\n            });\r\n          } else {\r\n            return cb(err);\r\n          }\r\n        });\r\n      }\r\n      if (str.toString().trim() === '') {\r\n        this.emit(\"end\", null);\r\n        return true;\r\n      }\r\n      return this.saxParser.write(str.toString());\r\n    };\r\n\r\n    return Parser;\r\n\r\n  })(events.EventEmitter);\r\n\r\n  exports.parseString = function(str, a, b) {\r\n    var cb, options, parser;\r\n    if (b != null) {\r\n      if (typeof b === 'function') {\r\n        cb = b;\r\n      }\r\n      if (typeof a === 'object') {\r\n        options = a;\r\n      }\r\n    } else {\r\n      if (typeof a === 'function') {\r\n        cb = a;\r\n      }\r\n      options = {};\r\n    }\r\n    parser = new exports.Parser(options);\r\n    return parser.parseString(str, cb);\r\n  };\r\n\r\n}).call(this);\r\n\r\n}).call(this,require('_process'))\r\n},{\"_process\":72,\"events\":59,\"sax\":87}],195:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var assign, isArray, isEmpty, isFunction, isObject, isPlainObject,\r\n    slice = [].slice,\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  assign = function() {\r\n    var i, key, len, source, sources, target;\r\n    target = arguments[0], sources = 2 <= arguments.length ? slice.call(arguments, 1) : [];\r\n    if (isFunction(Object.assign)) {\r\n      Object.assign.apply(null, arguments);\r\n    } else {\r\n      for (i = 0, len = sources.length; i < len; i++) {\r\n        source = sources[i];\r\n        if (source != null) {\r\n          for (key in source) {\r\n            if (!hasProp.call(source, key)) continue;\r\n            target[key] = source[key];\r\n          }\r\n        }\r\n      }\r\n    }\r\n    return target;\r\n  };\r\n\r\n  isFunction = function(val) {\r\n    return !!val && Object.prototype.toString.call(val) === '[object Function]';\r\n  };\r\n\r\n  isObject = function(val) {\r\n    var ref;\r\n    return !!val && ((ref = typeof val) === 'function' || ref === 'object');\r\n  };\r\n\r\n  isArray = function(val) {\r\n    if (isFunction(Array.isArray)) {\r\n      return Array.isArray(val);\r\n    } else {\r\n      return Object.prototype.toString.call(val) === '[object Array]';\r\n    }\r\n  };\r\n\r\n  isEmpty = function(val) {\r\n    var key;\r\n    if (isArray(val)) {\r\n      return !val.length;\r\n    } else {\r\n      for (key in val) {\r\n        if (!hasProp.call(val, key)) continue;\r\n        return false;\r\n      }\r\n      return true;\r\n    }\r\n  };\r\n\r\n  isPlainObject = function(val) {\r\n    var ctor, proto;\r\n    return isObject(val) && (proto = Object.getPrototypeOf(val)) && (ctor = proto.constructor) && (typeof ctor === 'function') && (ctor instanceof ctor) && (Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object));\r\n  };\r\n\r\n  module.exports.assign = assign;\r\n\r\n  module.exports.isFunction = isFunction;\r\n\r\n  module.exports.isObject = isObject;\r\n\r\n  module.exports.isArray = isArray;\r\n\r\n  module.exports.isEmpty = isEmpty;\r\n\r\n  module.exports.isPlainObject = isPlainObject;\r\n\r\n}).call(this);\r\n\r\n},{}],196:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLAttribute;\r\n\r\n  module.exports = XMLAttribute = (function() {\r\n    function XMLAttribute(parent, name, value) {\r\n      this.options = parent.options;\r\n      this.stringify = parent.stringify;\r\n      if (name == null) {\r\n        throw new Error(\"Missing attribute name of element \" + parent.name);\r\n      }\r\n      if (value == null) {\r\n        throw new Error(\"Missing attribute value for attribute \" + name + \" of element \" + parent.name);\r\n      }\r\n      this.name = this.stringify.attName(name);\r\n      this.value = this.stringify.attValue(value);\r\n    }\r\n\r\n    XMLAttribute.prototype.clone = function() {\r\n      return Object.create(this);\r\n    };\r\n\r\n    XMLAttribute.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).attribute(this);\r\n    };\r\n\r\n    return XMLAttribute;\r\n\r\n  })();\r\n\r\n}).call(this);\r\n\r\n},{}],197:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLCData, XMLNode,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLCData = (function(superClass) {\r\n    extend(XMLCData, superClass);\r\n\r\n    function XMLCData(parent, text) {\r\n      XMLCData.__super__.constructor.call(this, parent);\r\n      if (text == null) {\r\n        throw new Error(\"Missing CDATA text\");\r\n      }\r\n      this.text = this.stringify.cdata(text);\r\n    }\r\n\r\n    XMLCData.prototype.clone = function() {\r\n      return Object.create(this);\r\n    };\r\n\r\n    XMLCData.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).cdata(this);\r\n    };\r\n\r\n    return XMLCData;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],198:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLComment, XMLNode,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLComment = (function(superClass) {\r\n    extend(XMLComment, superClass);\r\n\r\n    function XMLComment(parent, text) {\r\n      XMLComment.__super__.constructor.call(this, parent);\r\n      if (text == null) {\r\n        throw new Error(\"Missing comment text\");\r\n      }\r\n      this.text = this.stringify.comment(text);\r\n    }\r\n\r\n    XMLComment.prototype.clone = function() {\r\n      return Object.create(this);\r\n    };\r\n\r\n    XMLComment.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).comment(this);\r\n    };\r\n\r\n    return XMLComment;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],199:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDTDAttList, XMLNode,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLDTDAttList = (function(superClass) {\r\n    extend(XMLDTDAttList, superClass);\r\n\r\n    function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) {\r\n      XMLDTDAttList.__super__.constructor.call(this, parent);\r\n      if (elementName == null) {\r\n        throw new Error(\"Missing DTD element name\");\r\n      }\r\n      if (attributeName == null) {\r\n        throw new Error(\"Missing DTD attribute name\");\r\n      }\r\n      if (!attributeType) {\r\n        throw new Error(\"Missing DTD attribute type\");\r\n      }\r\n      if (!defaultValueType) {\r\n        throw new Error(\"Missing DTD attribute default\");\r\n      }\r\n      if (defaultValueType.indexOf('#') !== 0) {\r\n        defaultValueType = '#' + defaultValueType;\r\n      }\r\n      if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) {\r\n        throw new Error(\"Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT\");\r\n      }\r\n      if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) {\r\n        throw new Error(\"Default value only applies to #FIXED or #DEFAULT\");\r\n      }\r\n      this.elementName = this.stringify.eleName(elementName);\r\n      this.attributeName = this.stringify.attName(attributeName);\r\n      this.attributeType = this.stringify.dtdAttType(attributeType);\r\n      this.defaultValue = this.stringify.dtdAttDefault(defaultValue);\r\n      this.defaultValueType = defaultValueType;\r\n    }\r\n\r\n    XMLDTDAttList.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).dtdAttList(this);\r\n    };\r\n\r\n    return XMLDTDAttList;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],200:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDTDElement, XMLNode,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLDTDElement = (function(superClass) {\r\n    extend(XMLDTDElement, superClass);\r\n\r\n    function XMLDTDElement(parent, name, value) {\r\n      XMLDTDElement.__super__.constructor.call(this, parent);\r\n      if (name == null) {\r\n        throw new Error(\"Missing DTD element name\");\r\n      }\r\n      if (!value) {\r\n        value = '(#PCDATA)';\r\n      }\r\n      if (Array.isArray(value)) {\r\n        value = '(' + value.join(',') + ')';\r\n      }\r\n      this.name = this.stringify.eleName(name);\r\n      this.value = this.stringify.dtdElementValue(value);\r\n    }\r\n\r\n    XMLDTDElement.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).dtdElement(this);\r\n    };\r\n\r\n    return XMLDTDElement;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],201:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDTDEntity, XMLNode, isObject,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  isObject = require('./Utility').isObject;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLDTDEntity = (function(superClass) {\r\n    extend(XMLDTDEntity, superClass);\r\n\r\n    function XMLDTDEntity(parent, pe, name, value) {\r\n      XMLDTDEntity.__super__.constructor.call(this, parent);\r\n      if (name == null) {\r\n        throw new Error(\"Missing entity name\");\r\n      }\r\n      if (value == null) {\r\n        throw new Error(\"Missing entity value\");\r\n      }\r\n      this.pe = !!pe;\r\n      this.name = this.stringify.eleName(name);\r\n      if (!isObject(value)) {\r\n        this.value = this.stringify.dtdEntityValue(value);\r\n      } else {\r\n        if (!value.pubID && !value.sysID) {\r\n          throw new Error(\"Public and/or system identifiers are required for an external entity\");\r\n        }\r\n        if (value.pubID && !value.sysID) {\r\n          throw new Error(\"System identifier is required for a public external entity\");\r\n        }\r\n        if (value.pubID != null) {\r\n          this.pubID = this.stringify.dtdPubID(value.pubID);\r\n        }\r\n        if (value.sysID != null) {\r\n          this.sysID = this.stringify.dtdSysID(value.sysID);\r\n        }\r\n        if (value.nData != null) {\r\n          this.nData = this.stringify.dtdNData(value.nData);\r\n        }\r\n        if (this.pe && this.nData) {\r\n          throw new Error(\"Notation declaration is not allowed in a parameter entity\");\r\n        }\r\n      }\r\n    }\r\n\r\n    XMLDTDEntity.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).dtdEntity(this);\r\n    };\r\n\r\n    return XMLDTDEntity;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLNode\":208}],202:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDTDNotation, XMLNode,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLDTDNotation = (function(superClass) {\r\n    extend(XMLDTDNotation, superClass);\r\n\r\n    function XMLDTDNotation(parent, name, value) {\r\n      XMLDTDNotation.__super__.constructor.call(this, parent);\r\n      if (name == null) {\r\n        throw new Error(\"Missing notation name\");\r\n      }\r\n      if (!value.pubID && !value.sysID) {\r\n        throw new Error(\"Public or system identifiers are required for an external entity\");\r\n      }\r\n      this.name = this.stringify.eleName(name);\r\n      if (value.pubID != null) {\r\n        this.pubID = this.stringify.dtdPubID(value.pubID);\r\n      }\r\n      if (value.sysID != null) {\r\n        this.sysID = this.stringify.dtdSysID(value.sysID);\r\n      }\r\n    }\r\n\r\n    XMLDTDNotation.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).dtdNotation(this);\r\n    };\r\n\r\n    return XMLDTDNotation;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],203:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDeclaration, XMLNode, isObject,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  isObject = require('./Utility').isObject;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLDeclaration = (function(superClass) {\r\n    extend(XMLDeclaration, superClass);\r\n\r\n    function XMLDeclaration(parent, version, encoding, standalone) {\r\n      var ref;\r\n      XMLDeclaration.__super__.constructor.call(this, parent);\r\n      if (isObject(version)) {\r\n        ref = version, version = ref.version, encoding = ref.encoding, standalone = ref.standalone;\r\n      }\r\n      if (!version) {\r\n        version = '1.0';\r\n      }\r\n      this.version = this.stringify.xmlVersion(version);\r\n      if (encoding != null) {\r\n        this.encoding = this.stringify.xmlEncoding(encoding);\r\n      }\r\n      if (standalone != null) {\r\n        this.standalone = this.stringify.xmlStandalone(standalone);\r\n      }\r\n    }\r\n\r\n    XMLDeclaration.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).declaration(this);\r\n    };\r\n\r\n    return XMLDeclaration;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLNode\":208}],204:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDocType, XMLNode, isObject,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  isObject = require('./Utility').isObject;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  XMLDTDAttList = require('./XMLDTDAttList');\r\n\r\n  XMLDTDEntity = require('./XMLDTDEntity');\r\n\r\n  XMLDTDElement = require('./XMLDTDElement');\r\n\r\n  XMLDTDNotation = require('./XMLDTDNotation');\r\n\r\n  module.exports = XMLDocType = (function(superClass) {\r\n    extend(XMLDocType, superClass);\r\n\r\n    function XMLDocType(parent, pubID, sysID) {\r\n      var ref, ref1;\r\n      XMLDocType.__super__.constructor.call(this, parent);\r\n      this.documentObject = parent;\r\n      if (isObject(pubID)) {\r\n        ref = pubID, pubID = ref.pubID, sysID = ref.sysID;\r\n      }\r\n      if (sysID == null) {\r\n        ref1 = [pubID, sysID], sysID = ref1[0], pubID = ref1[1];\r\n      }\r\n      if (pubID != null) {\r\n        this.pubID = this.stringify.dtdPubID(pubID);\r\n      }\r\n      if (sysID != null) {\r\n        this.sysID = this.stringify.dtdSysID(sysID);\r\n      }\r\n    }\r\n\r\n    XMLDocType.prototype.element = function(name, value) {\r\n      var child;\r\n      child = new XMLDTDElement(this, name, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLDocType.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\r\n      var child;\r\n      child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLDocType.prototype.entity = function(name, value) {\r\n      var child;\r\n      child = new XMLDTDEntity(this, false, name, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLDocType.prototype.pEntity = function(name, value) {\r\n      var child;\r\n      child = new XMLDTDEntity(this, true, name, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLDocType.prototype.notation = function(name, value) {\r\n      var child;\r\n      child = new XMLDTDNotation(this, name, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLDocType.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).docType(this);\r\n    };\r\n\r\n    XMLDocType.prototype.ele = function(name, value) {\r\n      return this.element(name, value);\r\n    };\r\n\r\n    XMLDocType.prototype.att = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\r\n      return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue);\r\n    };\r\n\r\n    XMLDocType.prototype.ent = function(name, value) {\r\n      return this.entity(name, value);\r\n    };\r\n\r\n    XMLDocType.prototype.pent = function(name, value) {\r\n      return this.pEntity(name, value);\r\n    };\r\n\r\n    XMLDocType.prototype.not = function(name, value) {\r\n      return this.notation(name, value);\r\n    };\r\n\r\n    XMLDocType.prototype.up = function() {\r\n      return this.root() || this.documentObject;\r\n    };\r\n\r\n    return XMLDocType;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLDTDAttList\":199,\"./XMLDTDElement\":200,\"./XMLDTDEntity\":201,\"./XMLDTDNotation\":202,\"./XMLNode\":208}],205:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDocument, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  isPlainObject = require('./Utility').isPlainObject;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  XMLStringifier = require('./XMLStringifier');\r\n\r\n  XMLStringWriter = require('./XMLStringWriter');\r\n\r\n  module.exports = XMLDocument = (function(superClass) {\r\n    extend(XMLDocument, superClass);\r\n\r\n    function XMLDocument(options) {\r\n      XMLDocument.__super__.constructor.call(this, null);\r\n      options || (options = {});\r\n      if (!options.writer) {\r\n        options.writer = new XMLStringWriter();\r\n      }\r\n      this.options = options;\r\n      this.stringify = new XMLStringifier(options);\r\n      this.isDocument = true;\r\n    }\r\n\r\n    XMLDocument.prototype.end = function(writer) {\r\n      var writerOptions;\r\n      if (!writer) {\r\n        writer = this.options.writer;\r\n      } else if (isPlainObject(writer)) {\r\n        writerOptions = writer;\r\n        writer = this.options.writer.set(writerOptions);\r\n      }\r\n      return writer.document(this);\r\n    };\r\n\r\n    XMLDocument.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).document(this);\r\n    };\r\n\r\n    return XMLDocument;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLNode\":208,\"./XMLStringWriter\":212,\"./XMLStringifier\":213}],206:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, isFunction, isObject, isPlainObject, ref,\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  ref = require('./Utility'), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject;\r\n\r\n  XMLElement = require('./XMLElement');\r\n\r\n  XMLCData = require('./XMLCData');\r\n\r\n  XMLComment = require('./XMLComment');\r\n\r\n  XMLRaw = require('./XMLRaw');\r\n\r\n  XMLText = require('./XMLText');\r\n\r\n  XMLProcessingInstruction = require('./XMLProcessingInstruction');\r\n\r\n  XMLDeclaration = require('./XMLDeclaration');\r\n\r\n  XMLDocType = require('./XMLDocType');\r\n\r\n  XMLDTDAttList = require('./XMLDTDAttList');\r\n\r\n  XMLDTDEntity = require('./XMLDTDEntity');\r\n\r\n  XMLDTDElement = require('./XMLDTDElement');\r\n\r\n  XMLDTDNotation = require('./XMLDTDNotation');\r\n\r\n  XMLAttribute = require('./XMLAttribute');\r\n\r\n  XMLStringifier = require('./XMLStringifier');\r\n\r\n  XMLStringWriter = require('./XMLStringWriter');\r\n\r\n  module.exports = XMLDocumentCB = (function() {\r\n    function XMLDocumentCB(options, onData, onEnd) {\r\n      var writerOptions;\r\n      options || (options = {});\r\n      if (!options.writer) {\r\n        options.writer = new XMLStringWriter(options);\r\n      } else if (isPlainObject(options.writer)) {\r\n        writerOptions = options.writer;\r\n        options.writer = new XMLStringWriter(writerOptions);\r\n      }\r\n      this.options = options;\r\n      this.writer = options.writer;\r\n      this.stringify = new XMLStringifier(options);\r\n      this.onDataCallback = onData || function() {};\r\n      this.onEndCallback = onEnd || function() {};\r\n      this.currentNode = null;\r\n      this.currentLevel = -1;\r\n      this.openTags = {};\r\n      this.documentStarted = false;\r\n      this.documentCompleted = false;\r\n      this.root = null;\r\n    }\r\n\r\n    XMLDocumentCB.prototype.node = function(name, attributes, text) {\r\n      var ref1;\r\n      if (name == null) {\r\n        throw new Error(\"Missing node name\");\r\n      }\r\n      if (this.root && this.currentLevel === -1) {\r\n        throw new Error(\"Document can only have one root node\");\r\n      }\r\n      this.openCurrent();\r\n      name = name.valueOf();\r\n      if (attributes == null) {\r\n        attributes = {};\r\n      }\r\n      attributes = attributes.valueOf();\r\n      if (!isObject(attributes)) {\r\n        ref1 = [attributes, text], text = ref1[0], attributes = ref1[1];\r\n      }\r\n      this.currentNode = new XMLElement(this, name, attributes);\r\n      this.currentNode.children = false;\r\n      this.currentLevel++;\r\n      this.openTags[this.currentLevel] = this.currentNode;\r\n      if (text != null) {\r\n        this.text(text);\r\n      }\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.element = function(name, attributes, text) {\r\n      if (this.currentNode && this.currentNode instanceof XMLDocType) {\r\n        return this.dtdElement.apply(this, arguments);\r\n      } else {\r\n        return this.node(name, attributes, text);\r\n      }\r\n    };\r\n\r\n    XMLDocumentCB.prototype.attribute = function(name, value) {\r\n      var attName, attValue;\r\n      if (!this.currentNode || this.currentNode.children) {\r\n        throw new Error(\"att() can only be used immediately after an ele() call in callback mode\");\r\n      }\r\n      if (name != null) {\r\n        name = name.valueOf();\r\n      }\r\n      if (isObject(name)) {\r\n        for (attName in name) {\r\n          if (!hasProp.call(name, attName)) continue;\r\n          attValue = name[attName];\r\n          this.attribute(attName, attValue);\r\n        }\r\n      } else {\r\n        if (isFunction(value)) {\r\n          value = value.apply();\r\n        }\r\n        if (!this.options.skipNullAttributes || (value != null)) {\r\n          this.currentNode.attributes[name] = new XMLAttribute(this, name, value);\r\n        }\r\n      }\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.text = function(value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLText(this, value);\r\n      this.onData(this.writer.text(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.cdata = function(value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLCData(this, value);\r\n      this.onData(this.writer.cdata(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.comment = function(value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLComment(this, value);\r\n      this.onData(this.writer.comment(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.raw = function(value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLRaw(this, value);\r\n      this.onData(this.writer.raw(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.instruction = function(target, value) {\r\n      var i, insTarget, insValue, len, node;\r\n      this.openCurrent();\r\n      if (target != null) {\r\n        target = target.valueOf();\r\n      }\r\n      if (value != null) {\r\n        value = value.valueOf();\r\n      }\r\n      if (Array.isArray(target)) {\r\n        for (i = 0, len = target.length; i < len; i++) {\r\n          insTarget = target[i];\r\n          this.instruction(insTarget);\r\n        }\r\n      } else if (isObject(target)) {\r\n        for (insTarget in target) {\r\n          if (!hasProp.call(target, insTarget)) continue;\r\n          insValue = target[insTarget];\r\n          this.instruction(insTarget, insValue);\r\n        }\r\n      } else {\r\n        if (isFunction(value)) {\r\n          value = value.apply();\r\n        }\r\n        node = new XMLProcessingInstruction(this, target, value);\r\n        this.onData(this.writer.processingInstruction(node, this.currentLevel + 1));\r\n      }\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.declaration = function(version, encoding, standalone) {\r\n      var node;\r\n      this.openCurrent();\r\n      if (this.documentStarted) {\r\n        throw new Error(\"declaration() must be the first node\");\r\n      }\r\n      node = new XMLDeclaration(this, version, encoding, standalone);\r\n      this.onData(this.writer.declaration(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.doctype = function(root, pubID, sysID) {\r\n      this.openCurrent();\r\n      if (root == null) {\r\n        throw new Error(\"Missing root node name\");\r\n      }\r\n      if (this.root) {\r\n        throw new Error(\"dtd() must come before the root node\");\r\n      }\r\n      this.currentNode = new XMLDocType(this, pubID, sysID);\r\n      this.currentNode.rootNodeName = root;\r\n      this.currentNode.children = false;\r\n      this.currentLevel++;\r\n      this.openTags[this.currentLevel] = this.currentNode;\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.dtdElement = function(name, value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLDTDElement(this, name, value);\r\n      this.onData(this.writer.dtdElement(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);\r\n      this.onData(this.writer.dtdAttList(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.entity = function(name, value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLDTDEntity(this, false, name, value);\r\n      this.onData(this.writer.dtdEntity(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.pEntity = function(name, value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLDTDEntity(this, true, name, value);\r\n      this.onData(this.writer.dtdEntity(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.notation = function(name, value) {\r\n      var node;\r\n      this.openCurrent();\r\n      node = new XMLDTDNotation(this, name, value);\r\n      this.onData(this.writer.dtdNotation(node, this.currentLevel + 1));\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.up = function() {\r\n      if (this.currentLevel < 0) {\r\n        throw new Error(\"The document node has no parent\");\r\n      }\r\n      if (this.currentNode) {\r\n        if (this.currentNode.children) {\r\n          this.closeNode(this.currentNode);\r\n        } else {\r\n          this.openNode(this.currentNode);\r\n        }\r\n        this.currentNode = null;\r\n      } else {\r\n        this.closeNode(this.openTags[this.currentLevel]);\r\n      }\r\n      delete this.openTags[this.currentLevel];\r\n      this.currentLevel--;\r\n      return this;\r\n    };\r\n\r\n    XMLDocumentCB.prototype.end = function() {\r\n      while (this.currentLevel >= 0) {\r\n        this.up();\r\n      }\r\n      return this.onEnd();\r\n    };\r\n\r\n    XMLDocumentCB.prototype.openCurrent = function() {\r\n      if (this.currentNode) {\r\n        this.currentNode.children = true;\r\n        return this.openNode(this.currentNode);\r\n      }\r\n    };\r\n\r\n    XMLDocumentCB.prototype.openNode = function(node) {\r\n      if (!node.isOpen) {\r\n        if (!this.root && this.currentLevel === 0 && node instanceof XMLElement) {\r\n          this.root = node;\r\n        }\r\n        this.onData(this.writer.openNode(node, this.currentLevel));\r\n        return node.isOpen = true;\r\n      }\r\n    };\r\n\r\n    XMLDocumentCB.prototype.closeNode = function(node) {\r\n      if (!node.isClosed) {\r\n        this.onData(this.writer.closeNode(node, this.currentLevel));\r\n        return node.isClosed = true;\r\n      }\r\n    };\r\n\r\n    XMLDocumentCB.prototype.onData = function(chunk) {\r\n      this.documentStarted = true;\r\n      return this.onDataCallback(chunk);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.onEnd = function() {\r\n      this.documentCompleted = true;\r\n      return this.onEndCallback();\r\n    };\r\n\r\n    XMLDocumentCB.prototype.ele = function() {\r\n      return this.element.apply(this, arguments);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.nod = function(name, attributes, text) {\r\n      return this.node(name, attributes, text);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.txt = function(value) {\r\n      return this.text(value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.dat = function(value) {\r\n      return this.cdata(value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.com = function(value) {\r\n      return this.comment(value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.ins = function(target, value) {\r\n      return this.instruction(target, value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.dec = function(version, encoding, standalone) {\r\n      return this.declaration(version, encoding, standalone);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.dtd = function(root, pubID, sysID) {\r\n      return this.doctype(root, pubID, sysID);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.e = function(name, attributes, text) {\r\n      return this.element(name, attributes, text);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.n = function(name, attributes, text) {\r\n      return this.node(name, attributes, text);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.t = function(value) {\r\n      return this.text(value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.d = function(value) {\r\n      return this.cdata(value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.c = function(value) {\r\n      return this.comment(value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.r = function(value) {\r\n      return this.raw(value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.i = function(target, value) {\r\n      return this.instruction(target, value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.att = function() {\r\n      if (this.currentNode && this.currentNode instanceof XMLDocType) {\r\n        return this.attList.apply(this, arguments);\r\n      } else {\r\n        return this.attribute.apply(this, arguments);\r\n      }\r\n    };\r\n\r\n    XMLDocumentCB.prototype.a = function() {\r\n      if (this.currentNode && this.currentNode instanceof XMLDocType) {\r\n        return this.attList.apply(this, arguments);\r\n      } else {\r\n        return this.attribute.apply(this, arguments);\r\n      }\r\n    };\r\n\r\n    XMLDocumentCB.prototype.ent = function(name, value) {\r\n      return this.entity(name, value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.pent = function(name, value) {\r\n      return this.pEntity(name, value);\r\n    };\r\n\r\n    XMLDocumentCB.prototype.not = function(name, value) {\r\n      return this.notation(name, value);\r\n    };\r\n\r\n    return XMLDocumentCB;\r\n\r\n  })();\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLAttribute\":196,\"./XMLCData\":197,\"./XMLComment\":198,\"./XMLDTDAttList\":199,\"./XMLDTDElement\":200,\"./XMLDTDEntity\":201,\"./XMLDTDNotation\":202,\"./XMLDeclaration\":203,\"./XMLDocType\":204,\"./XMLElement\":207,\"./XMLProcessingInstruction\":209,\"./XMLRaw\":210,\"./XMLStringWriter\":212,\"./XMLStringifier\":213,\"./XMLText\":214}],207:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLAttribute, XMLElement, XMLNode, isFunction, isObject, ref,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  ref = require('./Utility'), isObject = ref.isObject, isFunction = ref.isFunction;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  XMLAttribute = require('./XMLAttribute');\r\n\r\n  module.exports = XMLElement = (function(superClass) {\r\n    extend(XMLElement, superClass);\r\n\r\n    function XMLElement(parent, name, attributes) {\r\n      XMLElement.__super__.constructor.call(this, parent);\r\n      if (name == null) {\r\n        throw new Error(\"Missing element name\");\r\n      }\r\n      this.name = this.stringify.eleName(name);\r\n      this.attributes = {};\r\n      if (attributes != null) {\r\n        this.attribute(attributes);\r\n      }\r\n      if (parent.isDocument) {\r\n        this.isRoot = true;\r\n        this.documentObject = parent;\r\n        parent.rootObject = this;\r\n      }\r\n    }\r\n\r\n    XMLElement.prototype.clone = function() {\r\n      var att, attName, clonedSelf, ref1;\r\n      clonedSelf = Object.create(this);\r\n      if (clonedSelf.isRoot) {\r\n        clonedSelf.documentObject = null;\r\n      }\r\n      clonedSelf.attributes = {};\r\n      ref1 = this.attributes;\r\n      for (attName in ref1) {\r\n        if (!hasProp.call(ref1, attName)) continue;\r\n        att = ref1[attName];\r\n        clonedSelf.attributes[attName] = att.clone();\r\n      }\r\n      clonedSelf.children = [];\r\n      this.children.forEach(function(child) {\r\n        var clonedChild;\r\n        clonedChild = child.clone();\r\n        clonedChild.parent = clonedSelf;\r\n        return clonedSelf.children.push(clonedChild);\r\n      });\r\n      return clonedSelf;\r\n    };\r\n\r\n    XMLElement.prototype.attribute = function(name, value) {\r\n      var attName, attValue;\r\n      if (name != null) {\r\n        name = name.valueOf();\r\n      }\r\n      if (isObject(name)) {\r\n        for (attName in name) {\r\n          if (!hasProp.call(name, attName)) continue;\r\n          attValue = name[attName];\r\n          this.attribute(attName, attValue);\r\n        }\r\n      } else {\r\n        if (isFunction(value)) {\r\n          value = value.apply();\r\n        }\r\n        if (!this.options.skipNullAttributes || (value != null)) {\r\n          this.attributes[name] = new XMLAttribute(this, name, value);\r\n        }\r\n      }\r\n      return this;\r\n    };\r\n\r\n    XMLElement.prototype.removeAttribute = function(name) {\r\n      var attName, i, len;\r\n      if (name == null) {\r\n        throw new Error(\"Missing attribute name\");\r\n      }\r\n      name = name.valueOf();\r\n      if (Array.isArray(name)) {\r\n        for (i = 0, len = name.length; i < len; i++) {\r\n          attName = name[i];\r\n          delete this.attributes[attName];\r\n        }\r\n      } else {\r\n        delete this.attributes[name];\r\n      }\r\n      return this;\r\n    };\r\n\r\n    XMLElement.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).element(this);\r\n    };\r\n\r\n    XMLElement.prototype.att = function(name, value) {\r\n      return this.attribute(name, value);\r\n    };\r\n\r\n    XMLElement.prototype.a = function(name, value) {\r\n      return this.attribute(name, value);\r\n    };\r\n\r\n    return XMLElement;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLAttribute\":196,\"./XMLNode\":208}],208:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLElement, XMLNode, XMLProcessingInstruction, XMLRaw, XMLText, isEmpty, isFunction, isObject, ref,\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  ref = require('./Utility'), isObject = ref.isObject, isFunction = ref.isFunction, isEmpty = ref.isEmpty;\r\n\r\n  XMLElement = null;\r\n\r\n  XMLCData = null;\r\n\r\n  XMLComment = null;\r\n\r\n  XMLDeclaration = null;\r\n\r\n  XMLDocType = null;\r\n\r\n  XMLRaw = null;\r\n\r\n  XMLText = null;\r\n\r\n  XMLProcessingInstruction = null;\r\n\r\n  module.exports = XMLNode = (function() {\r\n    function XMLNode(parent) {\r\n      this.parent = parent;\r\n      if (this.parent) {\r\n        this.options = this.parent.options;\r\n        this.stringify = this.parent.stringify;\r\n      }\r\n      this.children = [];\r\n      if (!XMLElement) {\r\n        XMLElement = require('./XMLElement');\r\n        XMLCData = require('./XMLCData');\r\n        XMLComment = require('./XMLComment');\r\n        XMLDeclaration = require('./XMLDeclaration');\r\n        XMLDocType = require('./XMLDocType');\r\n        XMLRaw = require('./XMLRaw');\r\n        XMLText = require('./XMLText');\r\n        XMLProcessingInstruction = require('./XMLProcessingInstruction');\r\n      }\r\n    }\r\n\r\n    XMLNode.prototype.element = function(name, attributes, text) {\r\n      var childNode, item, j, k, key, lastChild, len, len1, ref1, val;\r\n      lastChild = null;\r\n      if (attributes == null) {\r\n        attributes = {};\r\n      }\r\n      attributes = attributes.valueOf();\r\n      if (!isObject(attributes)) {\r\n        ref1 = [attributes, text], text = ref1[0], attributes = ref1[1];\r\n      }\r\n      if (name != null) {\r\n        name = name.valueOf();\r\n      }\r\n      if (Array.isArray(name)) {\r\n        for (j = 0, len = name.length; j < len; j++) {\r\n          item = name[j];\r\n          lastChild = this.element(item);\r\n        }\r\n      } else if (isFunction(name)) {\r\n        lastChild = this.element(name.apply());\r\n      } else if (isObject(name)) {\r\n        for (key in name) {\r\n          if (!hasProp.call(name, key)) continue;\r\n          val = name[key];\r\n          if (isFunction(val)) {\r\n            val = val.apply();\r\n          }\r\n          if ((isObject(val)) && (isEmpty(val))) {\r\n            val = null;\r\n          }\r\n          if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) {\r\n            lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val);\r\n          } else if (!this.options.separateArrayItems && Array.isArray(val)) {\r\n            for (k = 0, len1 = val.length; k < len1; k++) {\r\n              item = val[k];\r\n              childNode = {};\r\n              childNode[key] = item;\r\n              lastChild = this.element(childNode);\r\n            }\r\n          } else if (isObject(val)) {\r\n            lastChild = this.element(key);\r\n            lastChild.element(val);\r\n          } else {\r\n            lastChild = this.element(key, val);\r\n          }\r\n        }\r\n      } else {\r\n        if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) {\r\n          lastChild = this.text(text);\r\n        } else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) {\r\n          lastChild = this.cdata(text);\r\n        } else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) {\r\n          lastChild = this.comment(text);\r\n        } else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) {\r\n          lastChild = this.raw(text);\r\n        } else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && name.indexOf(this.stringify.convertPIKey) === 0) {\r\n          lastChild = this.instruction(name.substr(this.stringify.convertPIKey.length), text);\r\n        } else {\r\n          lastChild = this.node(name, attributes, text);\r\n        }\r\n      }\r\n      if (lastChild == null) {\r\n        throw new Error(\"Could not create any elements with: \" + name);\r\n      }\r\n      return lastChild;\r\n    };\r\n\r\n    XMLNode.prototype.insertBefore = function(name, attributes, text) {\r\n      var child, i, removed;\r\n      if (this.isRoot) {\r\n        throw new Error(\"Cannot insert elements at root level\");\r\n      }\r\n      i = this.parent.children.indexOf(this);\r\n      removed = this.parent.children.splice(i);\r\n      child = this.parent.element(name, attributes, text);\r\n      Array.prototype.push.apply(this.parent.children, removed);\r\n      return child;\r\n    };\r\n\r\n    XMLNode.prototype.insertAfter = function(name, attributes, text) {\r\n      var child, i, removed;\r\n      if (this.isRoot) {\r\n        throw new Error(\"Cannot insert elements at root level\");\r\n      }\r\n      i = this.parent.children.indexOf(this);\r\n      removed = this.parent.children.splice(i + 1);\r\n      child = this.parent.element(name, attributes, text);\r\n      Array.prototype.push.apply(this.parent.children, removed);\r\n      return child;\r\n    };\r\n\r\n    XMLNode.prototype.remove = function() {\r\n      var i, ref1;\r\n      if (this.isRoot) {\r\n        throw new Error(\"Cannot remove the root element\");\r\n      }\r\n      i = this.parent.children.indexOf(this);\r\n      [].splice.apply(this.parent.children, [i, i - i + 1].concat(ref1 = [])), ref1;\r\n      return this.parent;\r\n    };\r\n\r\n    XMLNode.prototype.node = function(name, attributes, text) {\r\n      var child, ref1;\r\n      if (name != null) {\r\n        name = name.valueOf();\r\n      }\r\n      attributes || (attributes = {});\r\n      attributes = attributes.valueOf();\r\n      if (!isObject(attributes)) {\r\n        ref1 = [attributes, text], text = ref1[0], attributes = ref1[1];\r\n      }\r\n      child = new XMLElement(this, name, attributes);\r\n      if (text != null) {\r\n        child.text(text);\r\n      }\r\n      this.children.push(child);\r\n      return child;\r\n    };\r\n\r\n    XMLNode.prototype.text = function(value) {\r\n      var child;\r\n      child = new XMLText(this, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.cdata = function(value) {\r\n      var child;\r\n      child = new XMLCData(this, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.comment = function(value) {\r\n      var child;\r\n      child = new XMLComment(this, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.commentBefore = function(value) {\r\n      var child, i, removed;\r\n      i = this.parent.children.indexOf(this);\r\n      removed = this.parent.children.splice(i);\r\n      child = this.parent.comment(value);\r\n      Array.prototype.push.apply(this.parent.children, removed);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.commentAfter = function(value) {\r\n      var child, i, removed;\r\n      i = this.parent.children.indexOf(this);\r\n      removed = this.parent.children.splice(i + 1);\r\n      child = this.parent.comment(value);\r\n      Array.prototype.push.apply(this.parent.children, removed);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.raw = function(value) {\r\n      var child;\r\n      child = new XMLRaw(this, value);\r\n      this.children.push(child);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.instruction = function(target, value) {\r\n      var insTarget, insValue, instruction, j, len;\r\n      if (target != null) {\r\n        target = target.valueOf();\r\n      }\r\n      if (value != null) {\r\n        value = value.valueOf();\r\n      }\r\n      if (Array.isArray(target)) {\r\n        for (j = 0, len = target.length; j < len; j++) {\r\n          insTarget = target[j];\r\n          this.instruction(insTarget);\r\n        }\r\n      } else if (isObject(target)) {\r\n        for (insTarget in target) {\r\n          if (!hasProp.call(target, insTarget)) continue;\r\n          insValue = target[insTarget];\r\n          this.instruction(insTarget, insValue);\r\n        }\r\n      } else {\r\n        if (isFunction(value)) {\r\n          value = value.apply();\r\n        }\r\n        instruction = new XMLProcessingInstruction(this, target, value);\r\n        this.children.push(instruction);\r\n      }\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.instructionBefore = function(target, value) {\r\n      var child, i, removed;\r\n      i = this.parent.children.indexOf(this);\r\n      removed = this.parent.children.splice(i);\r\n      child = this.parent.instruction(target, value);\r\n      Array.prototype.push.apply(this.parent.children, removed);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.instructionAfter = function(target, value) {\r\n      var child, i, removed;\r\n      i = this.parent.children.indexOf(this);\r\n      removed = this.parent.children.splice(i + 1);\r\n      child = this.parent.instruction(target, value);\r\n      Array.prototype.push.apply(this.parent.children, removed);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.declaration = function(version, encoding, standalone) {\r\n      var doc, xmldec;\r\n      doc = this.document();\r\n      xmldec = new XMLDeclaration(doc, version, encoding, standalone);\r\n      if (doc.children[0] instanceof XMLDeclaration) {\r\n        doc.children[0] = xmldec;\r\n      } else {\r\n        doc.children.unshift(xmldec);\r\n      }\r\n      return doc.root() || doc;\r\n    };\r\n\r\n    XMLNode.prototype.doctype = function(pubID, sysID) {\r\n      var child, doc, doctype, i, j, k, len, len1, ref1, ref2;\r\n      doc = this.document();\r\n      doctype = new XMLDocType(doc, pubID, sysID);\r\n      ref1 = doc.children;\r\n      for (i = j = 0, len = ref1.length; j < len; i = ++j) {\r\n        child = ref1[i];\r\n        if (child instanceof XMLDocType) {\r\n          doc.children[i] = doctype;\r\n          return doctype;\r\n        }\r\n      }\r\n      ref2 = doc.children;\r\n      for (i = k = 0, len1 = ref2.length; k < len1; i = ++k) {\r\n        child = ref2[i];\r\n        if (child.isRoot) {\r\n          doc.children.splice(i, 0, doctype);\r\n          return doctype;\r\n        }\r\n      }\r\n      doc.children.push(doctype);\r\n      return doctype;\r\n    };\r\n\r\n    XMLNode.prototype.up = function() {\r\n      if (this.isRoot) {\r\n        throw new Error(\"The root node has no parent. Use doc() if you need to get the document object.\");\r\n      }\r\n      return this.parent;\r\n    };\r\n\r\n    XMLNode.prototype.root = function() {\r\n      var node;\r\n      node = this;\r\n      while (node) {\r\n        if (node.isDocument) {\r\n          return node.rootObject;\r\n        } else if (node.isRoot) {\r\n          return node;\r\n        } else {\r\n          node = node.parent;\r\n        }\r\n      }\r\n    };\r\n\r\n    XMLNode.prototype.document = function() {\r\n      var node;\r\n      node = this;\r\n      while (node) {\r\n        if (node.isDocument) {\r\n          return node;\r\n        } else {\r\n          node = node.parent;\r\n        }\r\n      }\r\n    };\r\n\r\n    XMLNode.prototype.end = function(options) {\r\n      return this.document().end(options);\r\n    };\r\n\r\n    XMLNode.prototype.prev = function() {\r\n      var i;\r\n      i = this.parent.children.indexOf(this);\r\n      if (i < 1) {\r\n        throw new Error(\"Already at the first node\");\r\n      }\r\n      return this.parent.children[i - 1];\r\n    };\r\n\r\n    XMLNode.prototype.next = function() {\r\n      var i;\r\n      i = this.parent.children.indexOf(this);\r\n      if (i === -1 || i === this.parent.children.length - 1) {\r\n        throw new Error(\"Already at the last node\");\r\n      }\r\n      return this.parent.children[i + 1];\r\n    };\r\n\r\n    XMLNode.prototype.importDocument = function(doc) {\r\n      var clonedRoot;\r\n      clonedRoot = doc.root().clone();\r\n      clonedRoot.parent = this;\r\n      clonedRoot.isRoot = false;\r\n      this.children.push(clonedRoot);\r\n      return this;\r\n    };\r\n\r\n    XMLNode.prototype.ele = function(name, attributes, text) {\r\n      return this.element(name, attributes, text);\r\n    };\r\n\r\n    XMLNode.prototype.nod = function(name, attributes, text) {\r\n      return this.node(name, attributes, text);\r\n    };\r\n\r\n    XMLNode.prototype.txt = function(value) {\r\n      return this.text(value);\r\n    };\r\n\r\n    XMLNode.prototype.dat = function(value) {\r\n      return this.cdata(value);\r\n    };\r\n\r\n    XMLNode.prototype.com = function(value) {\r\n      return this.comment(value);\r\n    };\r\n\r\n    XMLNode.prototype.ins = function(target, value) {\r\n      return this.instruction(target, value);\r\n    };\r\n\r\n    XMLNode.prototype.doc = function() {\r\n      return this.document();\r\n    };\r\n\r\n    XMLNode.prototype.dec = function(version, encoding, standalone) {\r\n      return this.declaration(version, encoding, standalone);\r\n    };\r\n\r\n    XMLNode.prototype.dtd = function(pubID, sysID) {\r\n      return this.doctype(pubID, sysID);\r\n    };\r\n\r\n    XMLNode.prototype.e = function(name, attributes, text) {\r\n      return this.element(name, attributes, text);\r\n    };\r\n\r\n    XMLNode.prototype.n = function(name, attributes, text) {\r\n      return this.node(name, attributes, text);\r\n    };\r\n\r\n    XMLNode.prototype.t = function(value) {\r\n      return this.text(value);\r\n    };\r\n\r\n    XMLNode.prototype.d = function(value) {\r\n      return this.cdata(value);\r\n    };\r\n\r\n    XMLNode.prototype.c = function(value) {\r\n      return this.comment(value);\r\n    };\r\n\r\n    XMLNode.prototype.r = function(value) {\r\n      return this.raw(value);\r\n    };\r\n\r\n    XMLNode.prototype.i = function(target, value) {\r\n      return this.instruction(target, value);\r\n    };\r\n\r\n    XMLNode.prototype.u = function() {\r\n      return this.up();\r\n    };\r\n\r\n    XMLNode.prototype.importXMLBuilder = function(doc) {\r\n      return this.importDocument(doc);\r\n    };\r\n\r\n    return XMLNode;\r\n\r\n  })();\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLCData\":197,\"./XMLComment\":198,\"./XMLDeclaration\":203,\"./XMLDocType\":204,\"./XMLElement\":207,\"./XMLProcessingInstruction\":209,\"./XMLRaw\":210,\"./XMLText\":214}],209:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLNode, XMLProcessingInstruction,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLProcessingInstruction = (function(superClass) {\r\n    extend(XMLProcessingInstruction, superClass);\r\n\r\n    function XMLProcessingInstruction(parent, target, value) {\r\n      XMLProcessingInstruction.__super__.constructor.call(this, parent);\r\n      if (target == null) {\r\n        throw new Error(\"Missing instruction target\");\r\n      }\r\n      this.target = this.stringify.insTarget(target);\r\n      if (value) {\r\n        this.value = this.stringify.insValue(value);\r\n      }\r\n    }\r\n\r\n    XMLProcessingInstruction.prototype.clone = function() {\r\n      return Object.create(this);\r\n    };\r\n\r\n    XMLProcessingInstruction.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).processingInstruction(this);\r\n    };\r\n\r\n    return XMLProcessingInstruction;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],210:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLNode, XMLRaw,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLRaw = (function(superClass) {\r\n    extend(XMLRaw, superClass);\r\n\r\n    function XMLRaw(parent, text) {\r\n      XMLRaw.__super__.constructor.call(this, parent);\r\n      if (text == null) {\r\n        throw new Error(\"Missing raw text\");\r\n      }\r\n      this.value = this.stringify.raw(text);\r\n    }\r\n\r\n    XMLRaw.prototype.clone = function() {\r\n      return Object.create(this);\r\n    };\r\n\r\n    XMLRaw.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).raw(this);\r\n    };\r\n\r\n    return XMLRaw;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],211:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStreamWriter, XMLText, XMLWriterBase,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLDeclaration = require('./XMLDeclaration');\r\n\r\n  XMLDocType = require('./XMLDocType');\r\n\r\n  XMLCData = require('./XMLCData');\r\n\r\n  XMLComment = require('./XMLComment');\r\n\r\n  XMLElement = require('./XMLElement');\r\n\r\n  XMLRaw = require('./XMLRaw');\r\n\r\n  XMLText = require('./XMLText');\r\n\r\n  XMLProcessingInstruction = require('./XMLProcessingInstruction');\r\n\r\n  XMLDTDAttList = require('./XMLDTDAttList');\r\n\r\n  XMLDTDElement = require('./XMLDTDElement');\r\n\r\n  XMLDTDEntity = require('./XMLDTDEntity');\r\n\r\n  XMLDTDNotation = require('./XMLDTDNotation');\r\n\r\n  XMLWriterBase = require('./XMLWriterBase');\r\n\r\n  module.exports = XMLStreamWriter = (function(superClass) {\r\n    extend(XMLStreamWriter, superClass);\r\n\r\n    function XMLStreamWriter(stream, options) {\r\n      XMLStreamWriter.__super__.constructor.call(this, options);\r\n      this.stream = stream;\r\n    }\r\n\r\n    XMLStreamWriter.prototype.document = function(doc) {\r\n      var child, i, j, len, len1, ref, ref1, results;\r\n      ref = doc.children;\r\n      for (i = 0, len = ref.length; i < len; i++) {\r\n        child = ref[i];\r\n        child.isLastRootNode = false;\r\n      }\r\n      doc.children[doc.children.length - 1].isLastRootNode = true;\r\n      ref1 = doc.children;\r\n      results = [];\r\n      for (j = 0, len1 = ref1.length; j < len1; j++) {\r\n        child = ref1[j];\r\n        switch (false) {\r\n          case !(child instanceof XMLDeclaration):\r\n            results.push(this.declaration(child));\r\n            break;\r\n          case !(child instanceof XMLDocType):\r\n            results.push(this.docType(child));\r\n            break;\r\n          case !(child instanceof XMLComment):\r\n            results.push(this.comment(child));\r\n            break;\r\n          case !(child instanceof XMLProcessingInstruction):\r\n            results.push(this.processingInstruction(child));\r\n            break;\r\n          default:\r\n            results.push(this.element(child));\r\n        }\r\n      }\r\n      return results;\r\n    };\r\n\r\n    XMLStreamWriter.prototype.attribute = function(att) {\r\n      return this.stream.write(' ' + att.name + '=\"' + att.value + '\"');\r\n    };\r\n\r\n    XMLStreamWriter.prototype.cdata = function(node, level) {\r\n      return this.stream.write(this.space(level) + '<![CDATA[' + node.text + ']]>' + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.comment = function(node, level) {\r\n      return this.stream.write(this.space(level) + '<!-- ' + node.text + ' -->' + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.declaration = function(node, level) {\r\n      this.stream.write(this.space(level));\r\n      this.stream.write('<?xml version=\"' + node.version + '\"');\r\n      if (node.encoding != null) {\r\n        this.stream.write(' encoding=\"' + node.encoding + '\"');\r\n      }\r\n      if (node.standalone != null) {\r\n        this.stream.write(' standalone=\"' + node.standalone + '\"');\r\n      }\r\n      this.stream.write(this.spacebeforeslash + '?>');\r\n      return this.stream.write(this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.docType = function(node, level) {\r\n      var child, i, len, ref;\r\n      level || (level = 0);\r\n      this.stream.write(this.space(level));\r\n      this.stream.write('<!DOCTYPE ' + node.root().name);\r\n      if (node.pubID && node.sysID) {\r\n        this.stream.write(' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"');\r\n      } else if (node.sysID) {\r\n        this.stream.write(' SYSTEM \"' + node.sysID + '\"');\r\n      }\r\n      if (node.children.length > 0) {\r\n        this.stream.write(' [');\r\n        this.stream.write(this.endline(node));\r\n        ref = node.children;\r\n        for (i = 0, len = ref.length; i < len; i++) {\r\n          child = ref[i];\r\n          switch (false) {\r\n            case !(child instanceof XMLDTDAttList):\r\n              this.dtdAttList(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLDTDElement):\r\n              this.dtdElement(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLDTDEntity):\r\n              this.dtdEntity(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLDTDNotation):\r\n              this.dtdNotation(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLCData):\r\n              this.cdata(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLComment):\r\n              this.comment(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLProcessingInstruction):\r\n              this.processingInstruction(child, level + 1);\r\n              break;\r\n            default:\r\n              throw new Error(\"Unknown DTD node type: \" + child.constructor.name);\r\n          }\r\n        }\r\n        this.stream.write(']');\r\n      }\r\n      this.stream.write(this.spacebeforeslash + '>');\r\n      return this.stream.write(this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.element = function(node, level) {\r\n      var att, child, i, len, name, ref, ref1, space;\r\n      level || (level = 0);\r\n      space = this.space(level);\r\n      this.stream.write(space + '<' + node.name);\r\n      ref = node.attributes;\r\n      for (name in ref) {\r\n        if (!hasProp.call(ref, name)) continue;\r\n        att = ref[name];\r\n        this.attribute(att);\r\n      }\r\n      if (node.children.length === 0 || node.children.every(function(e) {\r\n        return e.value === '';\r\n      })) {\r\n        if (this.allowEmpty) {\r\n          this.stream.write('></' + node.name + '>');\r\n        } else {\r\n          this.stream.write(this.spacebeforeslash + '/>');\r\n        }\r\n      } else if (this.pretty && node.children.length === 1 && (node.children[0].value != null)) {\r\n        this.stream.write('>');\r\n        this.stream.write(node.children[0].value);\r\n        this.stream.write('</' + node.name + '>');\r\n      } else {\r\n        this.stream.write('>' + this.newline);\r\n        ref1 = node.children;\r\n        for (i = 0, len = ref1.length; i < len; i++) {\r\n          child = ref1[i];\r\n          switch (false) {\r\n            case !(child instanceof XMLCData):\r\n              this.cdata(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLComment):\r\n              this.comment(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLElement):\r\n              this.element(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLRaw):\r\n              this.raw(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLText):\r\n              this.text(child, level + 1);\r\n              break;\r\n            case !(child instanceof XMLProcessingInstruction):\r\n              this.processingInstruction(child, level + 1);\r\n              break;\r\n            default:\r\n              throw new Error(\"Unknown XML node type: \" + child.constructor.name);\r\n          }\r\n        }\r\n        this.stream.write(space + '</' + node.name + '>');\r\n      }\r\n      return this.stream.write(this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.processingInstruction = function(node, level) {\r\n      this.stream.write(this.space(level) + '<?' + node.target);\r\n      if (node.value) {\r\n        this.stream.write(' ' + node.value);\r\n      }\r\n      return this.stream.write(this.spacebeforeslash + '?>' + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.raw = function(node, level) {\r\n      return this.stream.write(this.space(level) + node.value + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.text = function(node, level) {\r\n      return this.stream.write(this.space(level) + node.value + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.dtdAttList = function(node, level) {\r\n      this.stream.write(this.space(level) + '<!ATTLIST ' + node.elementName + ' ' + node.attributeName + ' ' + node.attributeType);\r\n      if (node.defaultValueType !== '#DEFAULT') {\r\n        this.stream.write(' ' + node.defaultValueType);\r\n      }\r\n      if (node.defaultValue) {\r\n        this.stream.write(' \"' + node.defaultValue + '\"');\r\n      }\r\n      return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.dtdElement = function(node, level) {\r\n      this.stream.write(this.space(level) + '<!ELEMENT ' + node.name + ' ' + node.value);\r\n      return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.dtdEntity = function(node, level) {\r\n      this.stream.write(this.space(level) + '<!ENTITY');\r\n      if (node.pe) {\r\n        this.stream.write(' %');\r\n      }\r\n      this.stream.write(' ' + node.name);\r\n      if (node.value) {\r\n        this.stream.write(' \"' + node.value + '\"');\r\n      } else {\r\n        if (node.pubID && node.sysID) {\r\n          this.stream.write(' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"');\r\n        } else if (node.sysID) {\r\n          this.stream.write(' SYSTEM \"' + node.sysID + '\"');\r\n        }\r\n        if (node.nData) {\r\n          this.stream.write(' NDATA ' + node.nData);\r\n        }\r\n      }\r\n      return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.dtdNotation = function(node, level) {\r\n      this.stream.write(this.space(level) + '<!NOTATION ' + node.name);\r\n      if (node.pubID && node.sysID) {\r\n        this.stream.write(' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"');\r\n      } else if (node.pubID) {\r\n        this.stream.write(' PUBLIC \"' + node.pubID + '\"');\r\n      } else if (node.sysID) {\r\n        this.stream.write(' SYSTEM \"' + node.sysID + '\"');\r\n      }\r\n      return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));\r\n    };\r\n\r\n    XMLStreamWriter.prototype.endline = function(node) {\r\n      if (!node.isLastRootNode) {\r\n        return this.newline;\r\n      } else {\r\n        return '';\r\n      }\r\n    };\r\n\r\n    return XMLStreamWriter;\r\n\r\n  })(XMLWriterBase);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLCData\":197,\"./XMLComment\":198,\"./XMLDTDAttList\":199,\"./XMLDTDElement\":200,\"./XMLDTDEntity\":201,\"./XMLDTDNotation\":202,\"./XMLDeclaration\":203,\"./XMLDocType\":204,\"./XMLElement\":207,\"./XMLProcessingInstruction\":209,\"./XMLRaw\":210,\"./XMLText\":214,\"./XMLWriterBase\":215}],212:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLText, XMLWriterBase,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLDeclaration = require('./XMLDeclaration');\r\n\r\n  XMLDocType = require('./XMLDocType');\r\n\r\n  XMLCData = require('./XMLCData');\r\n\r\n  XMLComment = require('./XMLComment');\r\n\r\n  XMLElement = require('./XMLElement');\r\n\r\n  XMLRaw = require('./XMLRaw');\r\n\r\n  XMLText = require('./XMLText');\r\n\r\n  XMLProcessingInstruction = require('./XMLProcessingInstruction');\r\n\r\n  XMLDTDAttList = require('./XMLDTDAttList');\r\n\r\n  XMLDTDElement = require('./XMLDTDElement');\r\n\r\n  XMLDTDEntity = require('./XMLDTDEntity');\r\n\r\n  XMLDTDNotation = require('./XMLDTDNotation');\r\n\r\n  XMLWriterBase = require('./XMLWriterBase');\r\n\r\n  module.exports = XMLStringWriter = (function(superClass) {\r\n    extend(XMLStringWriter, superClass);\r\n\r\n    function XMLStringWriter(options) {\r\n      XMLStringWriter.__super__.constructor.call(this, options);\r\n    }\r\n\r\n    XMLStringWriter.prototype.document = function(doc) {\r\n      var child, i, len, r, ref;\r\n      this.textispresent = false;\r\n      r = '';\r\n      ref = doc.children;\r\n      for (i = 0, len = ref.length; i < len; i++) {\r\n        child = ref[i];\r\n        r += (function() {\r\n          switch (false) {\r\n            case !(child instanceof XMLDeclaration):\r\n              return this.declaration(child);\r\n            case !(child instanceof XMLDocType):\r\n              return this.docType(child);\r\n            case !(child instanceof XMLComment):\r\n              return this.comment(child);\r\n            case !(child instanceof XMLProcessingInstruction):\r\n              return this.processingInstruction(child);\r\n            default:\r\n              return this.element(child, 0);\r\n          }\r\n        }).call(this);\r\n      }\r\n      if (this.pretty && r.slice(-this.newline.length) === this.newline) {\r\n        r = r.slice(0, -this.newline.length);\r\n      }\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.attribute = function(att) {\r\n      return ' ' + att.name + '=\"' + att.value + '\"';\r\n    };\r\n\r\n    XMLStringWriter.prototype.cdata = function(node, level) {\r\n      return this.space(level) + '<![CDATA[' + node.text + ']]>' + this.newline;\r\n    };\r\n\r\n    XMLStringWriter.prototype.comment = function(node, level) {\r\n      return this.space(level) + '<!-- ' + node.text + ' -->' + this.newline;\r\n    };\r\n\r\n    XMLStringWriter.prototype.declaration = function(node, level) {\r\n      var r;\r\n      r = this.space(level);\r\n      r += '<?xml version=\"' + node.version + '\"';\r\n      if (node.encoding != null) {\r\n        r += ' encoding=\"' + node.encoding + '\"';\r\n      }\r\n      if (node.standalone != null) {\r\n        r += ' standalone=\"' + node.standalone + '\"';\r\n      }\r\n      r += this.spacebeforeslash + '?>';\r\n      r += this.newline;\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.docType = function(node, level) {\r\n      var child, i, len, r, ref;\r\n      level || (level = 0);\r\n      r = this.space(level);\r\n      r += '<!DOCTYPE ' + node.root().name;\r\n      if (node.pubID && node.sysID) {\r\n        r += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\r\n      } else if (node.sysID) {\r\n        r += ' SYSTEM \"' + node.sysID + '\"';\r\n      }\r\n      if (node.children.length > 0) {\r\n        r += ' [';\r\n        r += this.newline;\r\n        ref = node.children;\r\n        for (i = 0, len = ref.length; i < len; i++) {\r\n          child = ref[i];\r\n          r += (function() {\r\n            switch (false) {\r\n              case !(child instanceof XMLDTDAttList):\r\n                return this.dtdAttList(child, level + 1);\r\n              case !(child instanceof XMLDTDElement):\r\n                return this.dtdElement(child, level + 1);\r\n              case !(child instanceof XMLDTDEntity):\r\n                return this.dtdEntity(child, level + 1);\r\n              case !(child instanceof XMLDTDNotation):\r\n                return this.dtdNotation(child, level + 1);\r\n              case !(child instanceof XMLCData):\r\n                return this.cdata(child, level + 1);\r\n              case !(child instanceof XMLComment):\r\n                return this.comment(child, level + 1);\r\n              case !(child instanceof XMLProcessingInstruction):\r\n                return this.processingInstruction(child, level + 1);\r\n              default:\r\n                throw new Error(\"Unknown DTD node type: \" + child.constructor.name);\r\n            }\r\n          }).call(this);\r\n        }\r\n        r += ']';\r\n      }\r\n      r += this.spacebeforeslash + '>';\r\n      r += this.newline;\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.element = function(node, level) {\r\n      var att, child, i, j, len, len1, name, r, ref, ref1, ref2, space, textispresentwasset;\r\n      level || (level = 0);\r\n      textispresentwasset = false;\r\n      if (this.textispresent) {\r\n        this.newline = '';\r\n        this.pretty = false;\r\n      } else {\r\n        this.newline = this.newlinedefault;\r\n        this.pretty = this.prettydefault;\r\n      }\r\n      space = this.space(level);\r\n      r = '';\r\n      r += space + '<' + node.name;\r\n      ref = node.attributes;\r\n      for (name in ref) {\r\n        if (!hasProp.call(ref, name)) continue;\r\n        att = ref[name];\r\n        r += this.attribute(att);\r\n      }\r\n      if (node.children.length === 0 || node.children.every(function(e) {\r\n        return e.value === '';\r\n      })) {\r\n        if (this.allowEmpty) {\r\n          r += '></' + node.name + '>' + this.newline;\r\n        } else {\r\n          r += this.spacebeforeslash + '/>' + this.newline;\r\n        }\r\n      } else if (this.pretty && node.children.length === 1 && (node.children[0].value != null)) {\r\n        r += '>';\r\n        r += node.children[0].value;\r\n        r += '</' + node.name + '>' + this.newline;\r\n      } else {\r\n        if (this.dontprettytextnodes) {\r\n          ref1 = node.children;\r\n          for (i = 0, len = ref1.length; i < len; i++) {\r\n            child = ref1[i];\r\n            if (child.value != null) {\r\n              this.textispresent++;\r\n              textispresentwasset = true;\r\n              break;\r\n            }\r\n          }\r\n        }\r\n        if (this.textispresent) {\r\n          this.newline = '';\r\n          this.pretty = false;\r\n          space = this.space(level);\r\n        }\r\n        r += '>' + this.newline;\r\n        ref2 = node.children;\r\n        for (j = 0, len1 = ref2.length; j < len1; j++) {\r\n          child = ref2[j];\r\n          r += (function() {\r\n            switch (false) {\r\n              case !(child instanceof XMLCData):\r\n                return this.cdata(child, level + 1);\r\n              case !(child instanceof XMLComment):\r\n                return this.comment(child, level + 1);\r\n              case !(child instanceof XMLElement):\r\n                return this.element(child, level + 1);\r\n              case !(child instanceof XMLRaw):\r\n                return this.raw(child, level + 1);\r\n              case !(child instanceof XMLText):\r\n                return this.text(child, level + 1);\r\n              case !(child instanceof XMLProcessingInstruction):\r\n                return this.processingInstruction(child, level + 1);\r\n              default:\r\n                throw new Error(\"Unknown XML node type: \" + child.constructor.name);\r\n            }\r\n          }).call(this);\r\n        }\r\n        if (textispresentwasset) {\r\n          this.textispresent--;\r\n        }\r\n        if (!this.textispresent) {\r\n          this.newline = this.newlinedefault;\r\n          this.pretty = this.prettydefault;\r\n        }\r\n        r += space + '</' + node.name + '>' + this.newline;\r\n      }\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.processingInstruction = function(node, level) {\r\n      var r;\r\n      r = this.space(level) + '<?' + node.target;\r\n      if (node.value) {\r\n        r += ' ' + node.value;\r\n      }\r\n      r += this.spacebeforeslash + '?>' + this.newline;\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.raw = function(node, level) {\r\n      return this.space(level) + node.value + this.newline;\r\n    };\r\n\r\n    XMLStringWriter.prototype.text = function(node, level) {\r\n      return this.space(level) + node.value + this.newline;\r\n    };\r\n\r\n    XMLStringWriter.prototype.dtdAttList = function(node, level) {\r\n      var r;\r\n      r = this.space(level) + '<!ATTLIST ' + node.elementName + ' ' + node.attributeName + ' ' + node.attributeType;\r\n      if (node.defaultValueType !== '#DEFAULT') {\r\n        r += ' ' + node.defaultValueType;\r\n      }\r\n      if (node.defaultValue) {\r\n        r += ' \"' + node.defaultValue + '\"';\r\n      }\r\n      r += this.spacebeforeslash + '>' + this.newline;\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.dtdElement = function(node, level) {\r\n      return this.space(level) + '<!ELEMENT ' + node.name + ' ' + node.value + this.spacebeforeslash + '>' + this.newline;\r\n    };\r\n\r\n    XMLStringWriter.prototype.dtdEntity = function(node, level) {\r\n      var r;\r\n      r = this.space(level) + '<!ENTITY';\r\n      if (node.pe) {\r\n        r += ' %';\r\n      }\r\n      r += ' ' + node.name;\r\n      if (node.value) {\r\n        r += ' \"' + node.value + '\"';\r\n      } else {\r\n        if (node.pubID && node.sysID) {\r\n          r += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\r\n        } else if (node.sysID) {\r\n          r += ' SYSTEM \"' + node.sysID + '\"';\r\n        }\r\n        if (node.nData) {\r\n          r += ' NDATA ' + node.nData;\r\n        }\r\n      }\r\n      r += this.spacebeforeslash + '>' + this.newline;\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.dtdNotation = function(node, level) {\r\n      var r;\r\n      r = this.space(level) + '<!NOTATION ' + node.name;\r\n      if (node.pubID && node.sysID) {\r\n        r += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\r\n      } else if (node.pubID) {\r\n        r += ' PUBLIC \"' + node.pubID + '\"';\r\n      } else if (node.sysID) {\r\n        r += ' SYSTEM \"' + node.sysID + '\"';\r\n      }\r\n      r += this.spacebeforeslash + '>' + this.newline;\r\n      return r;\r\n    };\r\n\r\n    XMLStringWriter.prototype.openNode = function(node, level) {\r\n      var att, name, r, ref;\r\n      level || (level = 0);\r\n      if (node instanceof XMLElement) {\r\n        r = this.space(level) + '<' + node.name;\r\n        ref = node.attributes;\r\n        for (name in ref) {\r\n          if (!hasProp.call(ref, name)) continue;\r\n          att = ref[name];\r\n          r += this.attribute(att);\r\n        }\r\n        r += (node.children ? '>' : '/>') + this.newline;\r\n        return r;\r\n      } else {\r\n        r = this.space(level) + '<!DOCTYPE ' + node.rootNodeName;\r\n        if (node.pubID && node.sysID) {\r\n          r += ' PUBLIC \"' + node.pubID + '\" \"' + node.sysID + '\"';\r\n        } else if (node.sysID) {\r\n          r += ' SYSTEM \"' + node.sysID + '\"';\r\n        }\r\n        r += (node.children ? ' [' : '>') + this.newline;\r\n        return r;\r\n      }\r\n    };\r\n\r\n    XMLStringWriter.prototype.closeNode = function(node, level) {\r\n      level || (level = 0);\r\n      switch (false) {\r\n        case !(node instanceof XMLElement):\r\n          return this.space(level) + '</' + node.name + '>' + this.newline;\r\n        case !(node instanceof XMLDocType):\r\n          return this.space(level) + ']>' + this.newline;\r\n      }\r\n    };\r\n\r\n    return XMLStringWriter;\r\n\r\n  })(XMLWriterBase);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLCData\":197,\"./XMLComment\":198,\"./XMLDTDAttList\":199,\"./XMLDTDElement\":200,\"./XMLDTDEntity\":201,\"./XMLDTDNotation\":202,\"./XMLDeclaration\":203,\"./XMLDocType\":204,\"./XMLElement\":207,\"./XMLProcessingInstruction\":209,\"./XMLRaw\":210,\"./XMLText\":214,\"./XMLWriterBase\":215}],213:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLStringifier,\r\n    bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  module.exports = XMLStringifier = (function() {\r\n    function XMLStringifier(options) {\r\n      this.assertLegalChar = bind(this.assertLegalChar, this);\r\n      var key, ref, value;\r\n      options || (options = {});\r\n      this.noDoubleEncoding = options.noDoubleEncoding;\r\n      ref = options.stringify || {};\r\n      for (key in ref) {\r\n        if (!hasProp.call(ref, key)) continue;\r\n        value = ref[key];\r\n        this[key] = value;\r\n      }\r\n    }\r\n\r\n    XMLStringifier.prototype.eleName = function(val) {\r\n      val = '' + val || '';\r\n      return this.assertLegalChar(val);\r\n    };\r\n\r\n    XMLStringifier.prototype.eleText = function(val) {\r\n      val = '' + val || '';\r\n      return this.assertLegalChar(this.elEscape(val));\r\n    };\r\n\r\n    XMLStringifier.prototype.cdata = function(val) {\r\n      val = '' + val || '';\r\n      val = val.replace(']]>', ']]]]><![CDATA[>');\r\n      return this.assertLegalChar(val);\r\n    };\r\n\r\n    XMLStringifier.prototype.comment = function(val) {\r\n      val = '' + val || '';\r\n      if (val.match(/--/)) {\r\n        throw new Error(\"Comment text cannot contain double-hypen: \" + val);\r\n      }\r\n      return this.assertLegalChar(val);\r\n    };\r\n\r\n    XMLStringifier.prototype.raw = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.attName = function(val) {\r\n      return val = '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.attValue = function(val) {\r\n      val = '' + val || '';\r\n      return this.attEscape(val);\r\n    };\r\n\r\n    XMLStringifier.prototype.insTarget = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.insValue = function(val) {\r\n      val = '' + val || '';\r\n      if (val.match(/\\?>/)) {\r\n        throw new Error(\"Invalid processing instruction value: \" + val);\r\n      }\r\n      return val;\r\n    };\r\n\r\n    XMLStringifier.prototype.xmlVersion = function(val) {\r\n      val = '' + val || '';\r\n      if (!val.match(/1\\.[0-9]+/)) {\r\n        throw new Error(\"Invalid version number: \" + val);\r\n      }\r\n      return val;\r\n    };\r\n\r\n    XMLStringifier.prototype.xmlEncoding = function(val) {\r\n      val = '' + val || '';\r\n      if (!val.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)) {\r\n        throw new Error(\"Invalid encoding: \" + val);\r\n      }\r\n      return val;\r\n    };\r\n\r\n    XMLStringifier.prototype.xmlStandalone = function(val) {\r\n      if (val) {\r\n        return \"yes\";\r\n      } else {\r\n        return \"no\";\r\n      }\r\n    };\r\n\r\n    XMLStringifier.prototype.dtdPubID = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.dtdSysID = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.dtdElementValue = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.dtdAttType = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.dtdAttDefault = function(val) {\r\n      if (val != null) {\r\n        return '' + val || '';\r\n      } else {\r\n        return val;\r\n      }\r\n    };\r\n\r\n    XMLStringifier.prototype.dtdEntityValue = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.dtdNData = function(val) {\r\n      return '' + val || '';\r\n    };\r\n\r\n    XMLStringifier.prototype.convertAttKey = '@';\r\n\r\n    XMLStringifier.prototype.convertPIKey = '?';\r\n\r\n    XMLStringifier.prototype.convertTextKey = '#text';\r\n\r\n    XMLStringifier.prototype.convertCDataKey = '#cdata';\r\n\r\n    XMLStringifier.prototype.convertCommentKey = '#comment';\r\n\r\n    XMLStringifier.prototype.convertRawKey = '#raw';\r\n\r\n    XMLStringifier.prototype.assertLegalChar = function(str) {\r\n      var res;\r\n      res = str.match(/[\\0\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/);\r\n      if (res) {\r\n        throw new Error(\"Invalid character in string: \" + str + \" at index \" + res.index);\r\n      }\r\n      return str;\r\n    };\r\n\r\n    XMLStringifier.prototype.elEscape = function(str) {\r\n      var ampregex;\r\n      ampregex = this.noDoubleEncoding ? /(?!&\\S+;)&/g : /&/g;\r\n      return str.replace(ampregex, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\\r/g, '&#xD;');\r\n    };\r\n\r\n    XMLStringifier.prototype.attEscape = function(str) {\r\n      var ampregex;\r\n      ampregex = this.noDoubleEncoding ? /(?!&\\S+;)&/g : /&/g;\r\n      return str.replace(ampregex, '&amp;').replace(/</g, '&lt;').replace(/\"/g, '&quot;').replace(/\\t/g, '&#x9;').replace(/\\n/g, '&#xA;').replace(/\\r/g, '&#xD;');\r\n    };\r\n\r\n    return XMLStringifier;\r\n\r\n  })();\r\n\r\n}).call(this);\r\n\r\n},{}],214:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLNode, XMLText,\r\n    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  XMLNode = require('./XMLNode');\r\n\r\n  module.exports = XMLText = (function(superClass) {\r\n    extend(XMLText, superClass);\r\n\r\n    function XMLText(parent, text) {\r\n      XMLText.__super__.constructor.call(this, parent);\r\n      if (text == null) {\r\n        throw new Error(\"Missing element text\");\r\n      }\r\n      this.value = this.stringify.eleText(text);\r\n    }\r\n\r\n    XMLText.prototype.clone = function() {\r\n      return Object.create(this);\r\n    };\r\n\r\n    XMLText.prototype.toString = function(options) {\r\n      return this.options.writer.set(options).text(this);\r\n    };\r\n\r\n    return XMLText;\r\n\r\n  })(XMLNode);\r\n\r\n}).call(this);\r\n\r\n},{\"./XMLNode\":208}],215:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLWriterBase,\r\n    hasProp = {}.hasOwnProperty;\r\n\r\n  module.exports = XMLWriterBase = (function() {\r\n    function XMLWriterBase(options) {\r\n      var key, ref, ref1, ref2, ref3, ref4, ref5, ref6, value;\r\n      options || (options = {});\r\n      this.pretty = options.pretty || false;\r\n      this.allowEmpty = (ref = options.allowEmpty) != null ? ref : false;\r\n      if (this.pretty) {\r\n        this.indent = (ref1 = options.indent) != null ? ref1 : '  ';\r\n        this.newline = (ref2 = options.newline) != null ? ref2 : '\\n';\r\n        this.offset = (ref3 = options.offset) != null ? ref3 : 0;\r\n        this.dontprettytextnodes = (ref4 = options.dontprettytextnodes) != null ? ref4 : 0;\r\n      } else {\r\n        this.indent = '';\r\n        this.newline = '';\r\n        this.offset = 0;\r\n        this.dontprettytextnodes = 0;\r\n      }\r\n      this.spacebeforeslash = (ref5 = options.spacebeforeslash) != null ? ref5 : '';\r\n      if (this.spacebeforeslash === true) {\r\n        this.spacebeforeslash = ' ';\r\n      }\r\n      this.newlinedefault = this.newline;\r\n      this.prettydefault = this.pretty;\r\n      ref6 = options.writer || {};\r\n      for (key in ref6) {\r\n        if (!hasProp.call(ref6, key)) continue;\r\n        value = ref6[key];\r\n        this[key] = value;\r\n      }\r\n    }\r\n\r\n    XMLWriterBase.prototype.set = function(options) {\r\n      var key, ref, value;\r\n      options || (options = {});\r\n      if (\"pretty\" in options) {\r\n        this.pretty = options.pretty;\r\n      }\r\n      if (\"allowEmpty\" in options) {\r\n        this.allowEmpty = options.allowEmpty;\r\n      }\r\n      if (this.pretty) {\r\n        this.indent = \"indent\" in options ? options.indent : '  ';\r\n        this.newline = \"newline\" in options ? options.newline : '\\n';\r\n        this.offset = \"offset\" in options ? options.offset : 0;\r\n        this.dontprettytextnodes = \"dontprettytextnodes\" in options ? options.dontprettytextnodes : 0;\r\n      } else {\r\n        this.indent = '';\r\n        this.newline = '';\r\n        this.offset = 0;\r\n        this.dontprettytextnodes = 0;\r\n      }\r\n      this.spacebeforeslash = \"spacebeforeslash\" in options ? options.spacebeforeslash : '';\r\n      if (this.spacebeforeslash === true) {\r\n        this.spacebeforeslash = ' ';\r\n      }\r\n      this.newlinedefault = this.newline;\r\n      this.prettydefault = this.pretty;\r\n      ref = options.writer || {};\r\n      for (key in ref) {\r\n        if (!hasProp.call(ref, key)) continue;\r\n        value = ref[key];\r\n        this[key] = value;\r\n      }\r\n      return this;\r\n    };\r\n\r\n    XMLWriterBase.prototype.space = function(level) {\r\n      var indent;\r\n      if (this.pretty) {\r\n        indent = (level || 0) + this.offset + 1;\r\n        if (indent > 0) {\r\n          return new Array(indent).join(this.indent);\r\n        } else {\r\n          return '';\r\n        }\r\n      } else {\r\n        return '';\r\n      }\r\n    };\r\n\r\n    return XMLWriterBase;\r\n\r\n  })();\r\n\r\n}).call(this);\r\n\r\n},{}],216:[function(require,module,exports){\r\n// Generated by CoffeeScript 1.12.7\r\n(function() {\r\n  var XMLDocument, XMLDocumentCB, XMLStreamWriter, XMLStringWriter, assign, isFunction, ref;\r\n\r\n  ref = require('./Utility'), assign = ref.assign, isFunction = ref.isFunction;\r\n\r\n  XMLDocument = require('./XMLDocument');\r\n\r\n  XMLDocumentCB = require('./XMLDocumentCB');\r\n\r\n  XMLStringWriter = require('./XMLStringWriter');\r\n\r\n  XMLStreamWriter = require('./XMLStreamWriter');\r\n\r\n  module.exports.create = function(name, xmldec, doctype, options) {\r\n    var doc, root;\r\n    if (name == null) {\r\n      throw new Error(\"Root element needs a name\");\r\n    }\r\n    options = assign({}, xmldec, doctype, options);\r\n    doc = new XMLDocument(options);\r\n    root = doc.element(name);\r\n    if (!options.headless) {\r\n      doc.declaration(options);\r\n      if ((options.pubID != null) || (options.sysID != null)) {\r\n        doc.doctype(options);\r\n      }\r\n    }\r\n    return root;\r\n  };\r\n\r\n  module.exports.begin = function(options, onData, onEnd) {\r\n    var ref1;\r\n    if (isFunction(options)) {\r\n      ref1 = [options, onData], onData = ref1[0], onEnd = ref1[1];\r\n      options = {};\r\n    }\r\n    if (onData) {\r\n      return new XMLDocumentCB(options, onData, onEnd);\r\n    } else {\r\n      return new XMLDocument(options);\r\n    }\r\n  };\r\n\r\n  module.exports.stringWriter = function(options) {\r\n    return new XMLStringWriter(options);\r\n  };\r\n\r\n  module.exports.streamWriter = function(stream, options) {\r\n    return new XMLStreamWriter(stream, options);\r\n  };\r\n\r\n}).call(this);\r\n\r\n},{\"./Utility\":195,\"./XMLDocument\":205,\"./XMLDocumentCB\":206,\"./XMLStreamWriter\":211,\"./XMLStringWriter\":212}],217:[function(require,module,exports){\r\nmodule.exports = extend\r\n\r\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\r\n\r\nfunction extend() {\r\n    var target = {}\r\n\r\n    for (var i = 0; i < arguments.length; i++) {\r\n        var source = arguments[i]\r\n\r\n        for (var key in source) {\r\n            if (hasOwnProperty.call(source, key)) {\r\n                target[key] = source[key]\r\n            }\r\n        }\r\n    }\r\n\r\n    return target\r\n}\r\n\r\n},{}]},{},[1])(1)\r\n});\r\n","/*!\r\n * UAParser.js v0.7.21\r\n * Lightweight JavaScript-based User-Agent string parser\r\n * https://github.com/faisalman/ua-parser-js\r\n *\r\n * Copyright © 2012-2019 Faisal Salman <f@faisalman.com>\r\n * Licensed under MIT License\r\n */\r\n(function(window,undefined){\"use strict\";var LIBVERSION=\"0.7.21\",EMPTY=\"\",UNKNOWN=\"?\",FUNC_TYPE=\"function\",UNDEF_TYPE=\"undefined\",OBJ_TYPE=\"object\",STR_TYPE=\"string\",MAJOR=\"major\",MODEL=\"model\",NAME=\"name\",TYPE=\"type\",VENDOR=\"vendor\",VERSION=\"version\",ARCHITECTURE=\"architecture\",CONSOLE=\"console\",MOBILE=\"mobile\",TABLET=\"tablet\",SMARTTV=\"smarttv\",WEARABLE=\"wearable\",EMBEDDED=\"embedded\";var util={extend:function(regexes,extensions){var mergedRegexes={};for(var i in regexes){if(extensions[i]&&extensions[i].length%2===0){mergedRegexes[i]=extensions[i].concat(regexes[i])}else{mergedRegexes[i]=regexes[i]}}return mergedRegexes},has:function(str1,str2){if(typeof str1===\"string\"){return str2.toLowerCase().indexOf(str1.toLowerCase())!==-1}else{return false}},lowerize:function(str){return str.toLowerCase()},major:function(version){return typeof version===STR_TYPE?version.replace(/[^\\d\\.]/g,\"\").split(\".\")[0]:undefined},trim:function(str){return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\")}};var mapper={rgx:function(ua,arrays){var i=0,j,k,p,q,matches,match;while(i<arrays.length&&!matches){var regex=arrays[i],props=arrays[i+1];j=k=0;while(j<regex.length&&!matches){matches=regex[j++].exec(ua);if(!!matches){for(p=0;p<props.length;p++){match=matches[++k];q=props[p];if(typeof q===OBJ_TYPE&&q.length>0){if(q.length==2){if(typeof q[1]==FUNC_TYPE){this[q[0]]=q[1].call(this,match)}else{this[q[0]]=q[1]}}else if(q.length==3){if(typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)){this[q[0]]=match?q[1].call(this,match,q[2]):undefined}else{this[q[0]]=match?match.replace(q[1],q[2]):undefined}}else if(q.length==4){this[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):undefined}}else{this[q]=match?match:undefined}}}}i+=2}},str:function(str,map){for(var i in map){if(typeof map[i]===OBJ_TYPE&&map[i].length>0){for(var j=0;j<map[i].length;j++){if(util.has(map[i][j],str)){return i===UNKNOWN?undefined:i}}}else if(util.has(map[i],str)){return i===UNKNOWN?undefined:i}}return str}};var maps={browser:{oldsafari:{version:{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}}},device:{amazon:{model:{\"Fire Phone\":[\"SD\",\"KF\"]}},sprint:{model:{\"Evo Shift 4G\":\"7373KT\"},vendor:{HTC:\"APA\",Sprint:\"Sprint\"}}},os:{windows:{version:{ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2000:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"}}}};var regexes={browser:[[/(opera\\smini)\\/([\\w\\.-]+)/i,/(opera\\s[mobiletab]+).+version\\/([\\w\\.-]+)/i,/(opera).+version\\/([\\w\\.]+)/i,/(opera)[\\/\\s]+([\\w\\.]+)/i],[NAME,VERSION],[/(opios)[\\/\\s]+([\\w\\.]+)/i],[[NAME,\"Opera Mini\"],VERSION],[/\\s(opr)\\/([\\w\\.]+)/i],[[NAME,\"Opera\"],VERSION],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/\\s]?([\\w\\.]*)/i,/(avant\\s|iemobile|slim)(?:browser)?[\\/\\s]?([\\w\\.]*)/i,/(bidubrowser|baidubrowser)[\\/\\s]?([\\w\\.]+)/i,/(?:ms|\\()(ie)\\s([\\w\\.]+)/i,/(rekonq)\\/([\\w\\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\\/([\\w\\.-]+)/i],[NAME,VERSION],[/(konqueror)\\/([\\w\\.]+)/i],[[NAME,\"Konqueror\"],VERSION],[/(trident).+rv[:\\s]([\\w\\.]+).+like\\sgecko/i],[[NAME,\"IE\"],VERSION],[/(edge|edgios|edga|edg)\\/((\\d+)?[\\w\\.]+)/i],[[NAME,\"Edge\"],VERSION],[/(yabrowser)\\/([\\w\\.]+)/i],[[NAME,\"Yandex\"],VERSION],[/(Avast)\\/([\\w\\.]+)/i],[[NAME,\"Avast Secure Browser\"],VERSION],[/(AVG)\\/([\\w\\.]+)/i],[[NAME,\"AVG Secure Browser\"],VERSION],[/(puffin)\\/([\\w\\.]+)/i],[[NAME,\"Puffin\"],VERSION],[/(focus)\\/([\\w\\.]+)/i],[[NAME,\"Firefox Focus\"],VERSION],[/(opt)\\/([\\w\\.]+)/i],[[NAME,\"Opera Touch\"],VERSION],[/((?:[\\s\\/])uc?\\s?browser|(?:juc.+)ucweb)[\\/\\s]?([\\w\\.]+)/i],[[NAME,\"UCBrowser\"],VERSION],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[NAME,/_/g,\" \"],VERSION],[/(windowswechat qbcore)\\/([\\w\\.]+)/i],[[NAME,\"WeChat(Win) Desktop\"],VERSION],[/(micromessenger)\\/([\\w\\.]+)/i],[[NAME,\"WeChat\"],VERSION],[/(brave)\\/([\\w\\.]+)/i],[[NAME,\"Brave\"],VERSION],[/(qqbrowserlite)\\/([\\w\\.]+)/i],[NAME,VERSION],[/(QQ)\\/([\\d\\.]+)/i],[NAME,VERSION],[/m?(qqbrowser)[\\/\\s]?([\\w\\.]+)/i],[NAME,VERSION],[/(baiduboxapp)[\\/\\s]?([\\w\\.]+)/i],[NAME,VERSION],[/(2345Explorer)[\\/\\s]?([\\w\\.]+)/i],[NAME,VERSION],[/(MetaSr)[\\/\\s]?([\\w\\.]+)/i],[NAME],[/(LBBROWSER)/i],[NAME],[/xiaomi\\/miuibrowser\\/([\\w\\.]+)/i],[VERSION,[NAME,\"MIUI Browser\"]],[/;fbav\\/([\\w\\.]+);/i],[VERSION,[NAME,\"Facebook\"]],[/safari\\s(line)\\/([\\w\\.]+)/i,/android.+(line)\\/([\\w\\.]+)\\/iab/i],[NAME,VERSION],[/headlesschrome(?:\\/([\\w\\.]+)|\\s)/i],[VERSION,[NAME,\"Chrome Headless\"]],[/\\swv\\).+(chrome)\\/([\\w\\.]+)/i],[[NAME,/(.+)/,\"$1 WebView\"],VERSION],[/((?:oculus|samsung)browser)\\/([\\w\\.]+)/i],[[NAME,/(.+(?:g|us))(.+)/,\"$1 $2\"],VERSION],[/android.+version\\/([\\w\\.]+)\\s+(?:mobile\\s?safari|safari)*/i],[VERSION,[NAME,\"Android Browser\"]],[/(sailfishbrowser)\\/([\\w\\.]+)/i],[[NAME,\"Sailfish Browser\"],VERSION],[/(chrome|omniweb|arora|[tizenoka]{5}\\s?browser)\\/v?([\\w\\.]+)/i],[NAME,VERSION],[/(dolfin)\\/([\\w\\.]+)/i],[[NAME,\"Dolphin\"],VERSION],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[NAME,\"360 Browser\"]],[/((?:android.+)crmo|crios)\\/([\\w\\.]+)/i],[[NAME,\"Chrome\"],VERSION],[/(coast)\\/([\\w\\.]+)/i],[[NAME,\"Opera Coast\"],VERSION],[/fxios\\/([\\w\\.-]+)/i],[VERSION,[NAME,\"Firefox\"]],[/version\\/([\\w\\.]+).+?mobile\\/\\w+\\s(safari)/i],[VERSION,[NAME,\"Mobile Safari\"]],[/version\\/([\\w\\.]+).+?(mobile\\s?safari|safari)/i],[VERSION,NAME],[/webkit.+?(gsa)\\/([\\w\\.]+).+?(mobile\\s?safari|safari)(\\/[\\w\\.]+)/i],[[NAME,\"GSA\"],VERSION],[/webkit.+?(mobile\\s?safari|safari)(\\/[\\w\\.]+)/i],[NAME,[VERSION,mapper.str,maps.browser.oldsafari.version]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[NAME,VERSION],[/(navigator|netscape)\\/([\\w\\.-]+)/i],[[NAME,\"Netscape\"],VERSION],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\\sbrowser|minimo|conkeror)[\\/\\s]?([\\w\\.\\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([\\w\\.-]+)$/i,/(mozilla)\\/([\\w\\.]+).+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\\/\\s]?([\\w\\.]+)/i,/(links)\\s\\(([\\w\\.]+)/i,/(gobrowser)\\/?([\\w\\.]*)/i,/(ice\\s?browser)\\/v?([\\w\\._]+)/i,/(mosaic)[\\/\\s]([\\w\\.]+)/i],[NAME,VERSION]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\\)]/i],[[ARCHITECTURE,\"amd64\"]],[/(ia32(?=;))/i],[[ARCHITECTURE,util.lowerize]],[/((?:i[346]|x)86)[;\\)]/i],[[ARCHITECTURE,\"ia32\"]],[/windows\\s(ce|mobile);\\sppc;/i],[[ARCHITECTURE,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?:\\smac|;|\\))/i],[[ARCHITECTURE,/ower/,\"\",util.lowerize]],[/(sun4\\w)[;\\)]/i],[[ARCHITECTURE,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|arm(?:64|(?=v\\d+[;l]))|(?=atmel\\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[ARCHITECTURE,util.lowerize]]],device:[[/\\((ipad|playbook);[\\w\\s\\),;-]+(rim|apple)/i],[MODEL,VENDOR,[TYPE,TABLET]],[/applecoremedia\\/[\\w\\.]+ \\((ipad)/],[MODEL,[VENDOR,\"Apple\"],[TYPE,TABLET]],[/(apple\\s{0,1}tv)/i],[[MODEL,\"Apple TV\"],[VENDOR,\"Apple\"],[TYPE,SMARTTV]],[/(archos)\\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/\\s(nook)[\\w\\s]+build\\/(\\w+)/i,/(dell)\\s(strea[kpr\\s\\d]*[\\dko])/i],[VENDOR,MODEL,[TYPE,TABLET]],[/(kf[A-z]+)\\sbuild\\/.+silk\\//i],[MODEL,[VENDOR,\"Amazon\"],[TYPE,TABLET]],[/(sd|kf)[0349hijorstuw]+\\sbuild\\/.+silk\\//i],[[MODEL,mapper.str,maps.device.amazon.model],[VENDOR,\"Amazon\"],[TYPE,MOBILE]],[/android.+aft([bms])\\sbuild/i],[MODEL,[VENDOR,\"Amazon\"],[TYPE,SMARTTV]],[/\\((ip[honed|\\s\\w*]+);.+(apple)/i],[MODEL,VENDOR,[TYPE,MOBILE]],[/\\((ip[honed|\\s\\w*]+);/i],[MODEL,[VENDOR,\"Apple\"],[TYPE,MOBILE]],[/(blackberry)[\\s-]?(\\w+)/i,/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\\s_-]?([\\w-]*)/i,/(hp)\\s([\\w\\s]+\\w)/i,/(asus)-?(\\w+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/\\(bb10;\\s(\\w+)/i],[MODEL,[VENDOR,\"BlackBerry\"],[TYPE,MOBILE]],[/android.+(transfo[prime\\s]{4,10}\\s\\w+|eeepc|slider\\s\\w+|nexus 7|padfone|p00c)/i],[MODEL,[VENDOR,\"Asus\"],[TYPE,TABLET]],[/(sony)\\s(tablet\\s[ps])\\sbuild\\//i,/(sony)?(?:sgp.+)\\sbuild\\//i],[[VENDOR,\"Sony\"],[MODEL,\"Xperia Tablet\"],[TYPE,TABLET]],[/android.+\\s([c-g]\\d{4}|so[-l]\\w+)(?=\\sbuild\\/|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[MODEL,[VENDOR,\"Sony\"],[TYPE,MOBILE]],[/\\s(ouya)\\s/i,/(nintendo)\\s([wids3u]+)/i],[VENDOR,MODEL,[TYPE,CONSOLE]],[/android.+;\\s(shield)\\sbuild/i],[MODEL,[VENDOR,\"Nvidia\"],[TYPE,CONSOLE]],[/(playstation\\s[34portablevi]+)/i],[MODEL,[VENDOR,\"Sony\"],[TYPE,CONSOLE]],[/(sprint\\s(\\w+))/i],[[VENDOR,mapper.str,maps.device.sprint.vendor],[MODEL,mapper.str,maps.device.sprint.model],[TYPE,MOBILE]],[/(htc)[;_\\s-]+([\\w\\s]+(?=\\)|\\sbuild)|\\w+)/i,/(zte)-(\\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\\s)sony)[_\\s-]?([\\w-]*)/i],[VENDOR,[MODEL,/_/g,\" \"],[TYPE,MOBILE]],[/(nexus\\s9)/i],[MODEL,[VENDOR,\"HTC\"],[TYPE,TABLET]],[/d\\/huawei([\\w\\s-]+)[;\\)]/i,/(nexus\\s6p|vog-l29|ane-lx1|eml-l29)/i],[MODEL,[VENDOR,\"Huawei\"],[TYPE,MOBILE]],[/android.+(bah2?-a?[lw]\\d{2})/i],[MODEL,[VENDOR,\"Huawei\"],[TYPE,TABLET]],[/(microsoft);\\s(lumia[\\s\\w]+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/[\\s\\(;](xbox(?:\\sone)?)[\\s\\);]/i],[MODEL,[VENDOR,\"Microsoft\"],[TYPE,CONSOLE]],[/(kin\\.[onetw]{3})/i],[[MODEL,/\\./g,\" \"],[VENDOR,\"Microsoft\"],[TYPE,MOBILE]],[/\\s(milestone|droid(?:[2-4x]|\\s(?:bionic|x2|pro|razr))?:?(\\s4g)?)[\\w\\s]+build\\//i,/mot[\\s-]?(\\w*)/i,/(XT\\d{3,4}) build\\//i,/(nexus\\s6)/i],[MODEL,[VENDOR,\"Motorola\"],[TYPE,MOBILE]],[/android.+\\s(mz60\\d|xoom[\\s2]{0,2})\\sbuild\\//i],[MODEL,[VENDOR,\"Motorola\"],[TYPE,TABLET]],[/hbbtv\\/\\d+\\.\\d+\\.\\d+\\s+\\([\\w\\s]*;\\s*(\\w[^;]*);([^;]*)/i],[[VENDOR,util.trim],[MODEL,util.trim],[TYPE,SMARTTV]],[/hbbtv.+maple;(\\d+)/i],[[MODEL,/^/,\"SmartTV\"],[VENDOR,\"Samsung\"],[TYPE,SMARTTV]],[/\\(dtv[\\);].+(aquos)/i],[MODEL,[VENDOR,\"Sharp\"],[TYPE,SMARTTV]],[/android.+((sch-i[89]0\\d|shw-m380s|gt-p\\d{4}|gt-n\\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\\w+))/i],[[VENDOR,\"Samsung\"],MODEL,[TYPE,TABLET]],[/smart-tv.+(samsung)/i],[VENDOR,[TYPE,SMARTTV],MODEL],[/((s[cgp]h-\\w+|gt-\\w+|galaxy\\snexus|sm-\\w[\\w\\d]+))/i,/(sam[sung]*)[\\s-]*(\\w+-?[\\w-]*)/i,/sec-((sgh\\w+))/i],[[VENDOR,\"Samsung\"],MODEL,[TYPE,MOBILE]],[/sie-(\\w*)/i],[MODEL,[VENDOR,\"Siemens\"],[TYPE,MOBILE]],[/(maemo|nokia).*(n900|lumia\\s\\d+)/i,/(nokia)[\\s_-]?([\\w-]*)/i],[[VENDOR,\"Nokia\"],MODEL,[TYPE,MOBILE]],[/android[x\\d\\.\\s;]+\\s([ab][1-7]\\-?[0178a]\\d\\d?)/i],[MODEL,[VENDOR,\"Acer\"],[TYPE,TABLET]],[/android.+([vl]k\\-?\\d{3})\\s+build/i],[MODEL,[VENDOR,\"LG\"],[TYPE,TABLET]],[/android\\s3\\.[\\s\\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[VENDOR,\"LG\"],MODEL,[TYPE,TABLET]],[/(lg) netcast\\.tv/i],[VENDOR,MODEL,[TYPE,SMARTTV]],[/(nexus\\s[45])/i,/lg[e;\\s\\/-]+(\\w*)/i,/android.+lg(\\-?[\\d\\w]+)\\s+build/i],[MODEL,[VENDOR,\"LG\"],[TYPE,MOBILE]],[/(lenovo)\\s?(s(?:5000|6000)(?:[\\w-]+)|tab(?:[\\s\\w]+))/i],[VENDOR,MODEL,[TYPE,TABLET]],[/android.+(ideatab[a-z0-9\\-\\s]+)/i],[MODEL,[VENDOR,\"Lenovo\"],[TYPE,TABLET]],[/(lenovo)[_\\s-]?([\\w-]+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/linux;.+((jolla));/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/((pebble))app\\/[\\d\\.]+\\s/i],[VENDOR,MODEL,[TYPE,WEARABLE]],[/android.+;\\s(oppo)\\s?([\\w\\s]+)\\sbuild/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/crkey/i],[[MODEL,\"Chromecast\"],[VENDOR,\"Google\"],[TYPE,SMARTTV]],[/android.+;\\s(glass)\\s\\d/i],[MODEL,[VENDOR,\"Google\"],[TYPE,WEARABLE]],[/android.+;\\s(pixel c)[\\s)]/i],[MODEL,[VENDOR,\"Google\"],[TYPE,TABLET]],[/android.+;\\s(pixel( [23])?( xl)?)[\\s)]/i],[MODEL,[VENDOR,\"Google\"],[TYPE,MOBILE]],[/android.+;\\s(\\w+)\\s+build\\/hm\\1/i,/android.+(hm[\\s\\-_]*note?[\\s_]*(?:\\d\\w)?)\\s+build/i,/android.+(mi[\\s\\-_]*(?:a\\d|one|one[\\s_]plus|note lte)?[\\s_]*(?:\\d?\\w?)[\\s_]*(?:plus)?)\\s+build/i,/android.+(redmi[\\s\\-_]*(?:note)?(?:[\\s_]*[\\w\\s]+))\\s+build/i],[[MODEL,/_/g,\" \"],[VENDOR,\"Xiaomi\"],[TYPE,MOBILE]],[/android.+(mi[\\s\\-_]*(?:pad)(?:[\\s_]*[\\w\\s]+))\\s+build/i],[[MODEL,/_/g,\" \"],[VENDOR,\"Xiaomi\"],[TYPE,TABLET]],[/android.+;\\s(m[1-5]\\snote)\\sbuild/i],[MODEL,[VENDOR,\"Meizu\"],[TYPE,MOBILE]],[/(mz)-([\\w-]{2,})/i],[[VENDOR,\"Meizu\"],MODEL,[TYPE,MOBILE]],[/android.+a000(1)\\s+build/i,/android.+oneplus\\s(a\\d{4})[\\s)]/i],[MODEL,[VENDOR,\"OnePlus\"],[TYPE,MOBILE]],[/android.+[;\\/]\\s*(RCT[\\d\\w]+)\\s+build/i],[MODEL,[VENDOR,\"RCA\"],[TYPE,TABLET]],[/android.+[;\\/\\s]+(Venue[\\d\\s]{2,7})\\s+build/i],[MODEL,[VENDOR,\"Dell\"],[TYPE,TABLET]],[/android.+[;\\/]\\s*(Q[T|M][\\d\\w]+)\\s+build/i],[MODEL,[VENDOR,\"Verizon\"],[TYPE,TABLET]],[/android.+[;\\/]\\s+(Barnes[&\\s]+Noble\\s+|BN[RT])(V?.*)\\s+build/i],[[VENDOR,\"Barnes & Noble\"],MODEL,[TYPE,TABLET]],[/android.+[;\\/]\\s+(TM\\d{3}.*\\b)\\s+build/i],[MODEL,[VENDOR,\"NuVision\"],[TYPE,TABLET]],[/android.+;\\s(k88)\\sbuild/i],[MODEL,[VENDOR,\"ZTE\"],[TYPE,TABLET]],[/android.+[;\\/]\\s*(gen\\d{3})\\s+build.*49h/i],[MODEL,[VENDOR,\"Swiss\"],[TYPE,MOBILE]],[/android.+[;\\/]\\s*(zur\\d{3})\\s+build/i],[MODEL,[VENDOR,\"Swiss\"],[TYPE,TABLET]],[/android.+[;\\/]\\s*((Zeki)?TB.*\\b)\\s+build/i],[MODEL,[VENDOR,\"Zeki\"],[TYPE,TABLET]],[/(android).+[;\\/]\\s+([YR]\\d{2})\\s+build/i,/android.+[;\\/]\\s+(Dragon[\\-\\s]+Touch\\s+|DT)(\\w{5})\\sbuild/i],[[VENDOR,\"Dragon Touch\"],MODEL,[TYPE,TABLET]],[/android.+[;\\/]\\s*(NS-?\\w{0,9})\\sbuild/i],[MODEL,[VENDOR,\"Insignia\"],[TYPE,TABLET]],[/android.+[;\\/]\\s*((NX|Next)-?\\w{0,9})\\s+build/i],[MODEL,[VENDOR,\"NextBook\"],[TYPE,TABLET]],[/android.+[;\\/]\\s*(Xtreme\\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\\s+build/i],[[VENDOR,\"Voice\"],MODEL,[TYPE,MOBILE]],[/android.+[;\\/]\\s*(LVTEL\\-)?(V1[12])\\s+build/i],[[VENDOR,\"LvTel\"],MODEL,[TYPE,MOBILE]],[/android.+;\\s(PH-1)\\s/i],[MODEL,[VENDOR,\"Essential\"],[TYPE,MOBILE]],[/android.+[;\\/]\\s*(V(100MD|700NA|7011|917G).*\\b)\\s+build/i],[MODEL,[VENDOR,\"Envizen\"],[TYPE,TABLET]],[/android.+[;\\/]\\s*(Le[\\s\\-]+Pan)[\\s\\-]+(\\w{1,9})\\s+build/i],[VENDOR,MODEL,[TYPE,TABLET]],[/android.+[;\\/]\\s*(Trio[\\s\\-]*.*)\\s+build/i],[MODEL,[VENDOR,\"MachSpeed\"],[TYPE,TABLET]],[/android.+[;\\/]\\s*(Trinity)[\\-\\s]*(T\\d{3})\\s+build/i],[VENDOR,MODEL,[TYPE,TABLET]],[/android.+[;\\/]\\s*TU_(1491)\\s+build/i],[MODEL,[VENDOR,\"Rotor\"],[TYPE,TABLET]],[/android.+(KS(.+))\\s+build/i],[MODEL,[VENDOR,\"Amazon\"],[TYPE,TABLET]],[/android.+(Gigaset)[\\s\\-]+(Q\\w{1,9})\\s+build/i],[VENDOR,MODEL,[TYPE,TABLET]],[/\\s(tablet|tab)[;\\/]/i,/\\s(mobile)(?:[;\\/]|\\ssafari)/i],[[TYPE,util.lowerize],VENDOR,MODEL],[/[\\s\\/\\(](smart-?tv)[;\\)]/i],[[TYPE,SMARTTV]],[/(android[\\w\\.\\s\\-]{0,9});.+build/i],[MODEL,[VENDOR,\"Generic\"]]],engine:[[/windows.+\\sedge\\/([\\w\\.]+)/i],[VERSION,[NAME,\"EdgeHTML\"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[VERSION,[NAME,\"Blink\"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/\\s]\\(?([\\w\\.]+)/i,/(icab)[\\/\\s]([23]\\.[\\d\\.]+)/i],[NAME,VERSION],[/rv\\:([\\w\\.]{1,9}).+(gecko)/i],[VERSION,NAME]],os:[[/microsoft\\s(windows)\\s(vista|xp)/i],[NAME,VERSION],[/(windows)\\snt\\s6\\.2;\\s(arm)/i,/(windows\\sphone(?:\\sos)*)[\\s\\/]?([\\d\\.\\s\\w]*)/i,/(windows\\smobile|windows)[\\s\\/]?([ntce\\d\\.\\s]+\\w)/i],[NAME,[VERSION,mapper.str,maps.os.windows.version]],[/(win(?=3|9|n)|win\\s9x\\s)([nt\\d\\.]+)/i],[[NAME,\"Windows\"],[VERSION,mapper.str,maps.os.windows.version]],[/\\((bb)(10);/i],[[NAME,\"BlackBerry\"],VERSION],[/(blackberry)\\w*\\/?([\\w\\.]*)/i,/(tizen|kaios)[\\/\\s]([\\w\\.]+)/i,/(android|webos|palm\\sos|qnx|bada|rim\\stablet\\sos|meego|sailfish|contiki)[\\/\\s-]?([\\w\\.]*)/i],[NAME,VERSION],[/(symbian\\s?os|symbos|s60(?=;))[\\/\\s-]?([\\w\\.]*)/i],[[NAME,\"Symbian\"],VERSION],[/\\((series40);/i],[NAME],[/mozilla.+\\(mobile;.+gecko.+firefox/i],[[NAME,\"Firefox OS\"],VERSION],[/(nintendo|playstation)\\s([wids34portablevu]+)/i,/(mint)[\\/\\s\\(]?(\\w*)/i,/(mageia|vectorlinux)[;\\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\\/\\s-]?(?!chrom)([\\w\\.-]*)/i,/(hurd|linux)\\s?([\\w\\.]*)/i,/(gnu)\\s?([\\w\\.]*)/i],[NAME,VERSION],[/(cros)\\s[\\w]+\\s([\\w\\.]+\\w)/i],[[NAME,\"Chromium OS\"],VERSION],[/(sunos)\\s?([\\w\\.\\d]*)/i],[[NAME,\"Solaris\"],VERSION],[/\\s([frentopc-]{0,4}bsd|dragonfly)\\s?([\\w\\.]*)/i],[NAME,VERSION],[/(haiku)\\s(\\w+)/i],[NAME,VERSION],[/cfnetwork\\/.+darwin/i,/ip[honead]{2,4}(?:.*os\\s([\\w]+)\\slike\\smac|;\\sopera)/i],[[VERSION,/_/g,\".\"],[NAME,\"iOS\"]],[/(mac\\sos\\sx)\\s?([\\w\\s\\.]*)/i,/(macintosh|mac(?=_powerpc)\\s)/i],[[NAME,\"Mac OS\"],[VERSION,/_/g,\".\"]],[/((?:open)?solaris)[\\/\\s-]?([\\w\\.]*)/i,/(aix)\\s((\\d)(?=\\.|\\)|\\s)[\\w\\.])*/i,/(plan\\s9|minix|beos|os\\/2|amigaos|morphos|risc\\sos|openvms|fuchsia)/i,/(unix)\\s?([\\w\\.]*)/i],[NAME,VERSION]]};var UAParser=function(uastring,extensions){if(typeof uastring===\"object\"){extensions=uastring;uastring=undefined}if(!(this instanceof UAParser)){return new UAParser(uastring,extensions).getResult()}var ua=uastring||(window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:EMPTY);var rgxmap=extensions?util.extend(regexes,extensions):regexes;this.getBrowser=function(){var browser={name:undefined,version:undefined};mapper.rgx.call(browser,ua,rgxmap.browser);browser.major=util.major(browser.version);return browser};this.getCPU=function(){var cpu={architecture:undefined};mapper.rgx.call(cpu,ua,rgxmap.cpu);return cpu};this.getDevice=function(){var device={vendor:undefined,model:undefined,type:undefined};mapper.rgx.call(device,ua,rgxmap.device);return device};this.getEngine=function(){var engine={name:undefined,version:undefined};mapper.rgx.call(engine,ua,rgxmap.engine);return engine};this.getOS=function(){var os={name:undefined,version:undefined};mapper.rgx.call(os,ua,rgxmap.os);return os};this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}};this.getUA=function(){return ua};this.setUA=function(uastring){ua=uastring;return this};return this};UAParser.VERSION=LIBVERSION;UAParser.BROWSER={NAME:NAME,MAJOR:MAJOR,VERSION:VERSION};UAParser.CPU={ARCHITECTURE:ARCHITECTURE};UAParser.DEVICE={MODEL:MODEL,VENDOR:VENDOR,TYPE:TYPE,CONSOLE:CONSOLE,MOBILE:MOBILE,SMARTTV:SMARTTV,TABLET:TABLET,WEARABLE:WEARABLE,EMBEDDED:EMBEDDED};UAParser.ENGINE={NAME:NAME,VERSION:VERSION};UAParser.OS={NAME:NAME,VERSION:VERSION};if(typeof exports!==UNDEF_TYPE){if(typeof module!==UNDEF_TYPE&&module.exports){exports=module.exports=UAParser}exports.UAParser=UAParser}else{if(typeof define===\"function\"&&define.amd){define(function(){return UAParser})}else if(window){window.UAParser=UAParser}}var $=window&&(window.jQuery||window.Zepto);if($&&!$.ua){var parser=new UAParser;$.ua=parser.getResult();$.ua.get=function(){return parser.getUA()};$.ua.set=function(uastring){parser.setUA(uastring);var result=parser.getResult();for(var prop in result){$.ua[prop]=result[prop]}}}})(typeof window===\"object\"?window:this);\r\n"]}