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ACAA,gBAEAA,eAEUzE,gBAEVyE,eACAA,sBAEQzE,QAERyE,gBAIA,UAGAkC,aAEG,CAAE,kFAAkF,mBAkBvF,IAMA2C,EANArJ,oBACAkD,kBACAD,yBAEAqB,EADAsC,sBACAub,cACApiB,oBAGAyE,GADA6E,mBACA+Y,UAEA,cACA,6BAWA,aACAzb,oBACAA,oBASApG,kBACA,YACA,0BACAL,yBACAA,GASAK,kBACA,YACA,0BACAL,yBACAA,GASAK,mBACA,YACA,0BACAL,0BACAA,GASAK,kBACA,YACA,0BACAL,4BACAA,GASAK,mBACA,YACA,0BACAL,0BACAA,GASAK,oBACA,YACA,0BACAL,2BACAA,GAUAK,uCACA,yBACAoG,oBAGAA,qBAEAA,MASApG,wCACA,0BAEAP,mCACA2G,qBAGAA,MAGApG,wCACA,OACAoG,sBADA,OACA1G,EAKA0G,MAWApG,4CACA,yBAEMyI,IACNrC,uBAFAA,sBAKAA,MAWApG,yCACA,KACA,YAAsBL,mBAAsBA,IAC5CD,iBACA0G,mDAKA,aAUApG,qCACA,sBACAoG,iBAGA3G,4CACAE,sCAEAyG,mBAGAA,MASApG,iCACA,mBACAoG,MAWApG,oCACA,KACA,YAAsBL,mBAAsBA,IAC5CD,iBACA0G,8CAKA,aAGApG,mDACA,WAEA,UACA8L,mCACA,6CACA,+CAGA,WACA,6CACA,iDAGA,sCACA5F,KAEA4F,YADAnM,wBACAmiB,iBACA,WACAxd,+CAEA3E,mCAEAA,oBAKAyG,MASApG,4BACA,sBAsBAA,oCACA,OAhBA,cACA,kBACAN,YACAA,YAaAE,6CACAF,UAGAC,GAGAwG,aACG,CAAE,gFAA8E,oBAiBnF,kBAEAxD,eAGAA,qCACA,cAGAwD,aACG,CAAE,cAAY,oBAkBjB,IACAxD,EADA0D,uBACA0b,gBAEAthB,oBACA,SAEA,uBACAuD,yBAGAtB,oBACAsB,iCAGAA,IAEG,CAAE,yBAAuB,oBAkB5B,sBACArB,kBAEAD,oBACAsB,2BAEAxE,EADA6G,uBACA2b,cAEAvhB,aAQAwhB,sBACA,6CAA2EC,iCAE3ExY,iBACA,mBACAA,sBACA,WAQA,GAPAzF,IACAke,iCACAA,UACAC,OACAC,KACAF,qBAEAviB,SACA,cACAH,cACAC,eAIAA,cAEAuE,IACAke,aACAC,OACAC,KAGA,aACA,eACA5iB,cACAE,eAIAA,cAEAsE,IACAke,cACAC,OACAC,KAGAziB,gBACAqE,IACAke,kBACAC,mBACAC,MAGApe,gBAGAA,oBAGAxD,oBACA,SAEA,2EAEAhB,eACAqJ,OAGAA,sBACA,SACAY,iBACAA,uBACA1J,uCAGA0J,wBACA1J,yCAGA0J,4BACA1J,0CAIAiE,aAIAA,IAEG,CAAE,kGAAoG,oBAkBzG,sBACAtB,kBAGAqB,EADAqC,uBACAic,2BAIA,gBACA,gBACA,QACA5Z,MAGAxC,oCAEAA,OADA,cACAA,yBACAkc,eACAC,KAEAnc,yBACAkc,QACAC,UAGA,WACAnc,wBACAkc,YACAC,MACQ,gBACRnc,wBACAkc,OACAC,MAGAnc,UAgHA,gBAEAA,OADA,cACAA,yBACAkc,eACAC,KAEAnc,yBACAkc,iCACAC,KAIAnc,OADA,cACAA,yBACAkc,eACAC,KAEAnc,yBACAkc,QACAC,KAGA3Z,iBACA,kBACAxC,gCACAkc,mBACAC,MACQ,gBACRnc,gCACAkc,QACAC,OAGAte,uBAuGA,cACA,SAEA,4BACA2E,mCAGA,aACAA,4BAGAA,EA6BA,cACA,SAEA,4BACAA,0BAGA,gBACAA,mCAGA,oBACAA,2CAGA,wBACAA,wCAGAA,GA/UAjI,aAoOAwhB,sBACA,qDAAiGC,iCAEjG,mBAxIA,gBAEAhc,OADA,cACAA,yBACAkc,eACAC,KAEAnc,yBACAkc,iCACAC,KAIAnc,OADA,aACAA,wBACAkc,cACAC,KAEAnc,wBACAkc,QACAC,KAIAnc,OADA,WACAA,sBACAkc,YACAC,KAEAnc,sBACAkc,QACAC,KAaAte,EATAmC,OADA,YACAA,uBACAkc,aACAC,KAEAn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nB,qBACpoB,YAiBA,aAEA,sBACAvgB,WAEAsB,oBACAD,yBACAvE,yBACAsJ,kCACA7E,yBACAyF,wBACA1J,kBACAJ,iCAEAF,+CACAC,uEACA8I,8DACAN,iCACAuE,0DACAxG,+DACAwC,wCAAiF,wBAEjFpE,oBACAL,qBACAyF,eAGAxF,oBACAD,sBACAyF,eAGAlB,oBACAvE,sBACAyF,eAGAtF,oBACAH,qBACAyF,eAGArF,oBACAJ,uBACAyF,eAGAf,GACA1E,+BACAA,qCACAA,kCACAA,oBACAA,mBACAA,+BACAA,qBACAA,sBACAA,sBACAA,qBACAA,wBAgBA,kCACAmC,aACAA,YAGAA,eADAjC,gBACAA,YAEAA,GAGAiC,qBACAA,sBACAA,sBACAA,sBAGAA,sBADA6Y,KAGA,EAGA7Y,eASAiM,yCACA,kCAEA,IACA,8BAMA,CANA,MACMlO,IACN,mCAIA,SAFAJ,4BAEA,GAKAsO,0CACA,UACA,oBACA,2CAEQ,4CACR8Q,WAKA,WACAlE,sBACAA,uBACAA,uBACAA,uBAEAA,kEAGAA,oBACAA,mBACAA,8BACAA,uBACAA,cAEA5M,0BAGAA,mCAEA,GADA5S,uCAEA,gDAGA,oEACA,KACA,uCAGA,2DACA8S,yDACA,SACA,+CAGA,4CASAF,iCAEA,6BACA4K,EACAlZ,iBACAA,eAGA,MACA,gCACAE,qCACAgZ,GAGA,qDAoBA,OAhBA3K,yBACA2K,EACAlZ,cACA0E,EACAN,EACAuE,GAEA3I,WACAO,EACAJ,EACAsE,EACApE,EACAC,OASAiO,yBACA2K,EACAlZ,cACAoE,EACAuE,GAEA3I,aACAO,EACAJ,EACAsE,EACApE,EACAC,OASAiO,yBACA2K,EACAlZ,cACAmC,GAEAnC,aACAO,EACAJ,EACAsE,EACApE,EACAC,OAUAiO,yBACA2K,EACAlZ,cACAO,GAEAP,WACAK,EACAF,EACAsE,EACAnE,OASAiO,yBACA2K,EACAlZ,cACA2E,GAEA3E,aACAO,EACAJ,EACAsE,EACApE,K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AyF,OAOAlK,kCACA,uDACA,qBACA,IACA,KAAa4G,+CAAkDA,2BAC/D,gBACA,OAGAA,2BADAA,0CAEAA,8CAGAA,yBACAA,qBACAA,oBACAA,0BAGA,CAHA,QAGAA,uBAOA5G,+CACA,MACAkD,kCAA2E9C,IAAaI,MAExFoG,6CACA,KACApG,SACQ,CACR,WACAmI,mDACAA,6EACAA,gCACAA,wBACAnI,aAQAR,6BACA4G,uBAMA5G,6BACA4G,iBAMA5G,8BACA4G,gBACAA,kBACAA,mBAOA5G,4BACA4G,aACAA,oBACAA,2BAGAD,cAEG8c,0BACA,CAAE,sEAAwE,qBAC7E,YAiBA,kBACAvgB,YACAsB,oBAMA,cACAoC,YACAA,2BACAA,6BACAA,+CACAA,wBACAA,uDACAA,sBACAA,sBACAA,oBAQA,gBACA,mBACAnC,WACAA,KAEA,IACAjE,yCACA,sCAFA,8CAEAA,GAZA0C,gBAkBAqB,0CACA,iBACA2F,uCACA,WACA,wBACAA,MACA,uBACAA,MACA,oBACAA,kGAEA,UAOA3F,2CACA,yBACA+E,WACAA,MAEA,kDAEA,mBACA,IAEA,GAQA/E,wCACA,iCACA,sDAMAA,iCACAqC,2BACA,iCACA,+CACAA,mDAMArC,8CACAE,OACAA,KAEA,UACA,eACAjE,aAEAA,GAMA+D,2CAGA,QAFA+E,aACA7E,IACAyF,IAAmBA,2BAA8BA,KACjDtD,uBACA0C,mDACA7E,6BAEAmC,2BAGAA,yBAMArC,kCACAqC,qBACAA,qBAEA,WACA,6BACAnC,qBAGAmC,mBAMArC,qCACA,iBACA2F,yCACA,MACA,oBACA1J,oBACA0J,cACAA,UACQ1J,OACR0J,WAEAtD,sEACAA,2BAIAA,uCADAsD,GAAe6c,mBACf,EAOAxiB,iDACA,WACA,qBACA,OACA,MAEAnE,GADAI,mBACA8I,EAEA9I,EAEAiE,kBAQAF,qCACA,aACAvE,kBAEA4G,gBAOArC,wCACA,aACAvE,qBAEA4G,mBAIAD,cAEG8c,0BACA,CAAE,mDA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BAEAC,qCAEAC,wDAEAC,6BAEAC,mCAEAC,4CAEAC,sCAEAC,8DAEAC,+EAEAC,6CAIAC,kEAEAC,sCAEAC,wCAEAC,4CAEAC,8CAEAC,4CAEAC,gDAEAC,8CAEAC,2DAEAC,6CAEAC,6BAEAC,+BAEAC,wCAEAC,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,8CAIA,GAEGpgB,0BACA,CAAEqgB,cAAc,oBA6BnB7iC,0BACA,eACA,gCACAkC,GASAlC,2BACA,eACA,kCACAkC,GASAlC,6BACA,eACA,sCACAkC,GASAlC,6BACA,eACA,sCACAkC,IAEG,IAAG,oBAkCNlC,qBACA,sBACA,0CASAA,oBACA,mBACAuD,kBACAD,kBACAvE,kBACAsJ,IACA/E,OACA+E,mBAGA,wBACAy6B,kBACAA,oBACAA,kBACAA,kBACAA,kBACAA,kBACAnjC,oBA7CA,cAEA,QADA4D,OACAA,SA2CA,GA1CAA,OAGA,SAuCAvE,kBAGA,WAEG,IAAG,oBAiBN,aAEA4G,mCAKAm9B,sCACA,MAGA,GADAx/B,UADA,0DAGA,2DAEA,WAEG,CAAE,sCAAoC,oBA4EzCmC,UAzDA,CACAs9B,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,qFACAC,iJACAC,2EACAC,8GAGA,EACG,IAAG,oBA0CN3gC,UAnBA,CAOA4gC,cAEAnf,eAEAof,yBAEAnf,iBAEAof,0BAIA,EACG,IAAG,qBACN,cAiBA,sBACAjjC,YACAD,WACAvE,cACAsJ,mBACA7E,sBACAyF,0BACA1J,YAQAS,8BAEA,QADAgI,cACA6a,sGACA7a,mBAEA1E,aASAtD,+BACA,SAIAiC,iBAHA,GAWAjC,uBACA,kCAQAA,kBACA,kBACA,SAGA,iCACAgI,qBACAN,wBACA,iBAQA1H,kBACA,uCASAA,2BACA,sCASAA,4BACA,qBASAA,0BACA,oEASAA,0BACA,oCASAA,6BACA,sBAQAA,+BACA,wBAOAA,kCACA,qBACA,kBACAA,yBAEA0H,gBAUA1H,4BACA,8CASAA,mDAKA,SAJAiC,uCAIAA,qCAcAjC,2BACA,sBACA,aAAsB,mBAA0BgI,IAChD9I,8BAIA,UAUAc,iCACA,qBAIAd,0BAUAc,+BACA,qBAIAd,iCASAc,wBACA,2DACAd,kBAGAA,GASAc,mBACA,uCAcAA,mCACA,sCAAqD,yBAAyBd,kBAgB9Ec,yCACA,KACA,eACA,gFACA,YAKA,UAcAA,mCACA,gBACA,SAGA,gBACA,wBACAA,6BAGA0H,GAiBA1H,8CACA,oBAIA,iBACA,gBAEA,YADAd,QAIAA,OACAA,SAGAc,0CASAA,mCACA,sBACA,sCAGAA,gCACA,SACAiC,oBACA+F,IACM9I,IACN+M,KAGAvE,QAGA1H,4BACA,2BACA,OACA6S,kCACA4zB,wBACAC,0BAQA1mC,iCACA,iBACAiI,IACApE,0BACA3E,wBACA,iBACA,UACA6I,OACAtE,gBACAkjC,UACA9iC,YACAoE,MAEA/I,mBAEAuE,YACAI,YACAoE,cAEK4b,oBACL,kBACApe,eACA,yBAGAvG,gBACA+M,WAQAjM,8BACA,uBAAwCgI,IAASA,IACjD,YACA,SAGA,UAMA,WACAhI,yCACA,wDACA6D,gBACAJ,MACAsE,OACA,aACA5I,IACAA,cACAynC,QAEA7+B,MAEAA,cACA6+B,QAEAl/B,GACAA,YAGAxI,qBACAc,uBACAiM,iBAEAlE,OACAtE,IACAzD,gCACQA,uBACRyF,gBAQAzF,8BACAgI,gBACA,8BACA,0BACAN,aAGA1H,gCACA,eACAiJ,4BACA,sCACAA,8BACA,wCACAA,2CACAA,sCACA,mGAEA,iFAIAjJ,yCACA,iCACA,kDAGA,8BACAqI,0BACA,+CACAA,4BACA,oDAEA,kGAKArI,6BACA,yBACA,+DAEA,EAMAA,gCACA,2CACA,SAGA,mBACA,OAAa6mC,mCAMb,OACA,6CACA,6CACA,qDACA,qDACA,+CACA,2DACA,2CACAC,mBACAC,2BACAC,+BACAC,yBACAC,iBACAC,yBACAC,yBACAC,6BACAC,yCACAC,+CACAC,mDACAC,iCACAC,qCAOA1nC,2CACA,oDACA,IAIAd,GADAA,YACA,mCAMAD,EACAA,MACM,gCACNC,kBAEAA,GAOAc,0CACA,eACA,wBACA,MACA,sDACAA,6CAEAd,wBAGA,qCACA,mCACAc,gFACAA,iFASAA,+CACA,SACA,KACA,eACAgI,sBACA9I,qBACA,0BAEAwI,WAKA,YAEG8a,6CACA,CAAE,yIAAmJ,oBAiBxJ,sBACAtgB,YAGAqB,EADAqC,yBACA6f,cACAniB,2CACAvE,2CACAsJ,cACA7E,YACAyF,iBACA1J,wBACAJ,kBACAF,sBAIA,gBACA,MACAgJ,EACAxE,cACA,aACA,IAGAA,cACA,SAEAwE,gBAGApE,QAhBA7D,aA0BA2nC,iCACA,MAOA,OALAzoC,kBACA6I,IACAtE,MAGAI,mBACA,4CAKAJ,KACA,GAJAsE,wEAaA/H,yBACA,eAA4B4nC,iBAC5B,2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EG8c,+BACA,CAAE,icAA2c,oBAwIhd9c,UAhHA,CAOA8lC,yBACA7jB,SACAC,QACAC,WACAG,UACAC,WACAC,UASAujB,oBACAC,sBACAC,oBACAC,qCACAC,YACAC,mBASAC,uBACAC,sBACAC,8BASAC,iBACAC,UACAC,sBACAC,2BASAC,+BACAC,SACA7jB,sBACAN,aAQAokB,sBACAC,UACA3kB,gBACA4kB,uBAoBAC,UACAC,qBACAC,QACAC,QACAC,UACAC,UACAC,UACAC,UACAC,UACAC,WAEAC,kBACAC,UACAC,YACAC,oBAKA,EACG,IAAG,oBAiBN,4CACAtrC,2BACAD,0BAKA,oBACA0D,yBACAA,iBACAA,YACAA,oBACAA,gBACAA,oBACAA,4BACAA,6BACAA,eACAA,mBACAA,oBAEAA,kBADAnC,aACAA,aAEA,EAGAmC,gBADAnC,WACAA,WAEA8M,iBAOA/M,6BACAoC,uBAMApC,+BACAD,IACAA,MAGAA,oBACAA,yCAGA,WACAqC,+FACA,KACA5G,SACQ,CACR,oEACAkK,oBAGAA,oBAAyCwkC,KADzC,gCACyCC,UAGzCrlC,eACAA,mBACAA,aAQA9E,sCACA,uDAEA,YACAoC,6BACArC,kBACAA,iBACAA,2BAOAC,qCACAoC,oBACA,IACA,SACA,mBACA,6BACA,sCACA,+DACAA,yBACA5G,aACc4G,2BACd,SAGA,gBACA,OAGAA,0BAKA,CALA,QAKAA,sBAOApC,0CAGA,QAFA8E,qBACA7E,KACAyF,IAA6BA,WAA+BA,KAC5D,kEACAtD,0BACAnC,aACQmC,4BACR,SAGA,gBACA,OAGA,WAUA,GARApG,cACAA,SACAA,qBACAoG,kCACApG,4BACAA,cACAA,OAEAA,wBACA,MACQA,0BAGRA,4CACAA,sCACAA,uBACAA,kBACAoG,+BAKAA,wBAEA5G,KAMAwE,6BACAoC,iBAMApC,8BACAoC,gBACAA,kBACAA,uBAOApC,4BACAoC,aACAA,oBACAA,2BAGAD,aAEG,CAAE,0EAA0E,oBAiB/E,gBACAxD,6CACAD,w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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,0BACAC,4BACAC,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,0CACAC,2CACAC,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,4CACA7qC,0CACA8qC,8BACAC,4BACAC,4BACAC,4BACAC,8CACAC,kDACAC,iDACAC,6CACAC,yCACAC,0CACAC,2BACAC,wCACAC,uCACAC,uCACAC,mCACAC,mCACAC,wCACAC,wCACAC,2CACAC,wCACAC,0CACAC,0CACAC,iDACAC,0CACAC,yCACAC,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,mCACAC,6BACAC,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,+BACA5/C,4BACA6/C,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,4BACAC,sBACAC,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,8BACAjlE,kBACAklE,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,oBACAC,eACAC,eACAC,iBACAC,gBACAC,aACAtlD,iBACAzY,kBACAg+D,kBACAC,iBACAC,kBACAC,iBACAC,gBACAC,yBACAC,oBACAC,iBACAC,gBACAC,gCACAt/D,eACAu/D,gBACAC,kBACAC,iBACAC,gBACAC,gBACAC,kBACA1jD,oBACA2jD,qBACAC,qBACAC,mBACAC,qBACAC,4BACAC,4BACAC,4BACAC,mBACAC,4BACAC,uBACA,4BACAC,0BACAC,uCACAC,uBACAC,8BACAxpE,eACAypE,iBACA7pE,aACA8pE,cACAC,eACAC,eACAzhE,aACA0hE,cACAC,eACArqE,mBACAsqE,qBACAC,qBACAC,qBACAC,0BACAC,mBACAnmE,kBACAomE,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,+BACAnoD,kCACAooD,sBACAC,gBACAC,gBACA,mCACAC,6CACAC,iBACAC,kCACAC,2BACAC,qBACAC,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,yCAAgD,iBAChD,2BAEA7uD,mBACA,gBAGA,QAFArc,OAEAD,IAAsBA,WAAiBA,IAMvCqC,mBAIAA,qBACAA,2BAIA+oE,UAAiBn9B,qBAEjB,qCAGAvyC,2BACAA,iCACG,IAAG,qBACN,aAEG,YAGH,8BACAgB,cACAuD,0BACAmC,cACApC,yBAEAA,cACAA,cACAA,cAEApB,KAQA,MAiCA0B,EA9BAyE,aAGA7E,KAUAyI,UACAxG,iBACAwC,8BAGApE,GACA8qE,2DACA,6DACA,iCAKA5mE,aACApE,sBAaA,cACA,2BAWA,gBAGA,QAFAsT,YACA/E,KACA+E,MACA/E,eAEA,SAaA,gBACA,oBACAA,KAWA,OAVA+E,cAGA/E,YACA2E,SAMA3E,EADAN,GA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BA,MAAiBA,EAOrC,IANArL,QAEAR,WACA5O,cAGAoP,MAEA,eAEAH,GADAE,OAlYA,EAkYArG,KAjYA,MAiYAA,MAD0DA,KAO1DkG,OACAvT,OAHAghB,QACApN,OAEA,KAEAJ,SAGAD,kBACAxF,gBACAuF,OACA/E,IAIA+E,KACAH,EAGA,kBA6EA,GAjCA/X,GAMA0iB,gBAQAstD,MACAC,SACAC,WAEAD,UACAC,UACAC,QA/BA,eACA,uBACA,iBACA,aACAp4D,KA4BAq4D,UAnDA,eACA,uBACA,iBACAzsD,6BACA5L,MA6DM7U,KACN,gBAEAsB,iBAGA,WACAxE,sCAKAmD,aAhhBG,CAmhBAyD,QAEA6c,iHACA,IAAG,oBAsBN,aAIA,8BAGAtgB,4BAEA,QADA+F,SACAA,qBACA,iIACA,iBAEA,WA4CA,cAEA,MACA,OAFAtC,cAXA,cACA,MA/BA,cACA,mBAEA,QADA9B,IAEA,cACA,WACA,QACA,iBACA,WACA,YACA,cACA,WACA,oBACA,aACA,SACA,mBACA,aACA,YACA,MACA,iBAEA,YACAoE,uBACApE,MAQA5B,IACA,yFACA,YAQAsB,IAEAoC,mBACA,UACAA,YACAA,WACA9B,IACA,UACA,OACA8B,gBACA9B,IACA,UACA,SACA8B,YACAA,WACA9B,IACA,cAIA,OAFA8B,kBACAA,YAGAA,gBACAA,iBACAA,+BAoCA,cACA,gBAA+BsC,UAAsCA,WAAsCA,WAC3GA,cA2DA,cACA,mCACAxE,EAtBA,kBACA,mBACA,oBACA,SAEA,6BACA,mBACA,oBACA,SAEA,6BACA,gBACA,oBACA,UASAD,SACA,oBACAmC,yBACAsC,wCACAtC,yDAEAsC,wCACAtC,0BA2BA,gBACA,sBACA,8BACA,MACA,+BACA,sBACA,uBACAA,iBACAA,+BACAA,+BACAlC,cAGA,SAEA,uBACAkC,iBACAA,+BACAsC,mCAKA,cACA,mCACA,qBAEApE,qCADA8B,8BAGA9B,EAGA,gBACA,qBACA,qCACA8B,kBACAA,iBACA,MACAA,gCAEAA,+BACAA,gCAEAsC,mCAGA,cACA,mCACA,0EACApE,EAIA,cACA,iCAGA,cACA,oCAzNA7D,kBA6BAsD,8BACA,yBACA,MACAG,EACA,kBAEA,aADAI,oBACA,SACAJ,gBACAkC,qBAEAlC,IAEA,oDACAI,OAGAP,gBAwGA,cACA,mCACA,gCACAO,GAxGAP,iBA0FA,gBACA,MArEA,kBACA,iBACA,gBACA,cACA,aACAK,sBACAA,KAEAoE,eACApE,YACA,GACAA,sBACAA,KAEAoE,eACApE,YACA,GACAA,MACA,UAA6BsE,gBAE7BtE,GAEA,EA+CA0E,WACA,8CACA1C,iBACA,iCACA,iCACAsC,wBA7FA3E,iCACA,2BACA,0EACAqC,uDAEAsC,8DACAtC,wBAgKA,EAEG,CAAE,mBAAiB,qBACtB,YASA,aAEA,qBACA1D,eAEAjC,WACAA,aAwTA,cACA,cACA2kB,KAEAtc,aA3TArI,uBAEA,iBAwDA,cACA,OACA,uEAGA,wBACA,4CACAwX,EAaA,kBAEA,uBACA,sBACA,oBACA,sEAGA,YAEA,gBAgBA,kBACA,sBACA,OAiHA,gBAKA,IAJA,8BACAA,WAGAnP,gBACA,4CAGA,eACAib,OAEAD,gBAEA,gBAIAC,iBAGAA,EAtIArkB,MAGA,yBACA,YAGA,WACA,gBACA,yHACA0lB,GAIA,qBACAA,2BACA,OAkIA,kBACA,uBACA,6DAGA,yBACA,6DAGA,MACA,OACArB,OADA,kBACA,uBACM,MACN,oBAEA,sBAIAjY,qCAEAiY,EAvJAtb,QAGA,sBACA,oBACA,yEAIA,6BACA,kBACA,qBAGA,OA4IA,cACA,kBACA,oBACAmc,OAEA,qBAIAQ,gBACAR,EAGA,yBACA,uCACAplB,KAEAG,KAGA,yCACAA,eADA,CACA,CAjKAwI,IACA,gBAEA,yDACA,yCACA,cACAid,qCAIA,oBACA,yHACAA,GAqBA,cACA,sBACA,8DACM,OACN,uEA4BA,cACA,YACA5lB,gBAwCA,cAGA,QAFAyY,6BACA2M,OACAb,IAAoBA,IAAYA,KAChCa,cAEA,SAoDA,cAGA,QACA,+EACA5gB,yBAEA,WA8FA,gBACA,iBACA,gBAEA,2CACA,oBAEA,sBACA,oBACA,kGACAohB,GAIA,eACArB,wCACA,sBAIA,QADAD,QAEA,cACA,YACA,aACA,SACA,aACA,WACA,QACA,uBACA,WACA,YACA,cACA,WACA,eACA,MACA,iBACA,SACA,2BAEA,MACA,wBAEA7L,uBACA6L,OAMA,kBACA,SA8BA,SArBA,cACA7L,KAIAA,sBAIA,wBACA2M,eAGAA,QAKAA,UACA3M,QAGA,SAKA,IAFAmN,gBAGA,cACA,MACA,wBAEA,WACA,QACA,uBAEA,QACA,wBAEA,aACA,SACA,wBAEA,SACA,uBAEA,WACA,YACA,cACA,WACA,2BAGA,iDACAA,uBACArB,MAaA,kBACA,WACAqB,UACAA,OAyIA,uBAEA,yBAmBA,GAhBA,oBACArB,IACAa,KACMA,aACNA,aACMA,gBACNA,eAGA5M,EADA4M,QAGAA,mBAIAA,oBACAA,aACA,eACAA,qBACMA,IACN,QACA,SADAA,GACA,CASA,GALA,qBACA3M,eAIAnP,cAEA,qBACA,EAEA1E,cACM,sBAEN,OADA6T,OACA,gDACA6L,GACA+rD,yCAEAA,6CAGAzrE,gBAGA,4DAGA,uBACA,IA0BAyf,GA1BAM,KACAwmB,YACAr1B,YAEA,gBAEA,UADAyO,4BACA,aACA,gCACA,0BACA,SAEAI,KACAwmB,MACAr1B,MACAsP,KAIA,mBACA,cACArP,OAEAA,uBAKA,OACA,UACA,SAA2BsO,MAAeA,KAC1C,qCAEA,IADA,gBACAA,+BAEA,oBACAI,WAKA,IADAW,mBACAf,KAA2BA,MAAQA,MAEnC,QADAO,MACAS,KAAwBA,MAAeA,KACvC,2BACAT,MACA,MAGA,gBAIA,SAeA,oBACAQ,eACA,kBACAb,GAGAA,aACAD,KACAC,MAJAA,KAQA,gBAEAA,SACAA,QAEA,aAAoB4mB,OAAYA,IAChC,qCACA,mBACAvlB,WAEA,UAGA,oBACA,gCAGA,oBACA,SA83BA,cAEA,QADAnN,KACA2M,IAAoBA,aAAgBA,EAEpC3M,4BAEA,SAp4BAH,WAGA,oBACA,kBAGA,oBACA,qBAGA,qBACA,SA23BA,gBAGA,QAFA8M,IACAT,MACAwmB,KAAoBA,gBACpB1yB,WADoC0yB,GAIpC5mB,GADAa,qBACA,EAEAT,QADAS,OAEAT,WAGA,UAx4BApM,sBAiFA,kBACA,OACApV,gBADA,oBACAyiB,EAEAA,cAIA,kBACAR,uBAIA,QAHAb,KAEAD,KACAA,OACA,IAQAE,YARAG,SACAwmB,QACAr1B,YACA6O,SACAA,SACA,EAEA,YAGA,gBACA,EACAA,SACAwmB,OAEA,WACA,EAEA,WADA3mB,eAEAI,qBACA,MACAumB,OAGA,WACA,EAEA9mB,WACA,WAFAG,cAEA,gBACAI,iCACA,6BACAumB,OAGA,WACA,EAEA9mB,WACAI,WACA,WAHAD,cAGA,+BACAI,6CACA,oBACAumB,OAMA,WAGAA,SACAr1B,MACQq1B,WAGR5mB,QADA4mB,aACA,eACAA,kBAGA5mB,WACAD,OAGA,OAQA,eACA,eACA,QACA,2CAMA,QAFAc,KACAb,IACAA,KACAa,6BACAgtB,OACAxsB,iBAGA,SAvBAjC,IA/9BA1iB,iBAgBAqI,sBAUA,aAEA,IACA,wBACAmP,GAAoB63D,eAAmB,YACvC,qDACAhkE,2BACA,YAEA,CAFA,MACM8Y,GACN,UAnBA7gB,KAEA,6BACA,kCACAqd,cACA,iJAkBAtV,4CACAikE,cACAhkE,eACA,oBACA,sBAIAD,4CACAikE,cACAhkE,eACA,oBACA,0BAsCA,kDACAjD,uBACAgD,wCACA9J,WACAgO,gBACA+/D,cACAC,cAIAlnE,gBA0DAA,uBACA,iBAKAgD,wDACAA,oCA8BAhD,wBACA,OArBA,kBAEA,OADAY,KACA0b,KACA5lB,UAEA,MAIA,mBACAA,eACAA,aAEAA,KAQAQ,SAWA8I,0BACA,aAKAA,8BACA,aAsGAA,uBACA,kCACAmP,iB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EAVArrD,OACAqrD,aACAlsD,YACA,sBAEAD,KACAC,SAIA,CAIA,qBAGA,SAFA,qBAEA9L,sCACA,+DAGA6L,gBAGA,QADA6mB,QAEA,eACA,MACA,yBAEA,WACA,QACA,yBAEA,QACA,yBAEA,aACA,SACA,yBAEA,SAEA,yBAEA,WACA,YACA,cACA,WACA,8BAGA,mDACA7mB,yBACA6mB,QAKA7hC,8BACA,OACApC,cACA8F,qDAwFA,WAoBA,mBACA,SACAoY,uBAEA,aAAwBd,OAASA,GACjCC,kCAEA,SAGA,mBACA,SACAa,uBAEA,aAAwBd,OAASA,GACjCC,8BAEA,SAGA,mBACA,iBAEA9L,iBACA2M,oBAGA,QADAd,MACAK,KAAwBA,OAASA,GACjCL,aAEA,UAGA,kBAGA,QAFAC,eACAD,MACAK,KAAoBA,YAAkBA,MACtCL,2CAEA,UAkCA,kBACA,0DACA,uEA6KA,2BACA,qFACA,wEACA,2DAyLA,0BACA,2DACA,kDAGA,wBACA,YACAc,OACAd,IACAnR,WAEAjQ,sBACAkiB,IAWA,uBACA,YACAA,OACAd,IACAnR,WAEAjQ,sBACAkiB,IAxaA9b,gCACA,mBACAmP,OAGA,GACAA,MACA,SACMA,MACNA,MANA2M,oBASA,GACAA,MACA,SACMA,MACNA,KAGAA,WAEA,0BAEA,6CAEAd,IAWAhb,uCACAmP,OACA2M,OACAb,sBAKA,QAHAD,WACAK,KACAwmB,OACAA,iBACA7mB,kBAGA,WAGAhb,uCACAmP,OACA2M,OACAb,GACAxM,mBAKA,QAFAuM,eACAK,KACAS,gBACAd,mBAGA,WAGAhb,oCACA,cACA8b,sBACAxe,SAGA0C,uCACA,cACA8b,sBACAxe,sBAGA0C,uCACA,cACA8b,sBACAxe,sBAGA0C,uCACA,cACA8b,uBAEAxe,QACAA,aACAA,eACA,oBAGA0C,uCACA,cACA8b,sBAEA,kBACAxe,cACAA,aACAA,YAGA0C,sCACAmP,OACA2M,OACAb,sBAKA,QAHAD,WACAK,KACAwmB,OACAA,iBACA7mB,kBAEA,OAEAA,KAFAK,WAEAL,qBAEAA,IAGAhb,sCACAmP,OACA2M,OACAb,sBAKA,QAHAD,KACAK,KACAwmB,gBACA7mB,iBACA6mB,oBAEA,OAEAA,KAFAxmB,WAEAwmB,qBAEAA,IAGA7hC,mCAGA,OAFAmP,OACA2M,sBACA,aACA,kBADAxe,SAIA0C,sCACAmP,OACA2M,sBACA,2BACA,+BAGA9b,sCACAmP,OACA2M,sBACA,2BACA,+BAGA9b,sCACA,cACA8b,sBAEAxe,QACAA,aACAA,cACAA,eAGA0C,sCACA,cACA8b,sBAEAxe,YACAA,cACAA,aACAA,WAGA0C,sCACA,cACA8b,sBACAliB,wBAGAoG,sCACA,cACA8b,sBACAliB,wBAGAoG,uCACA,cACA8b,sBACAliB,wBAGAoG,uCACA,cACA8b,sBACAliB,wBASAoG,2CACAmP,KACA2M,OACAb,OACAD,IAEApM,cADAtX,kBACA,GAGA,SACAkV,KAEA,IADAlP,gBACAkP,iBACAlP,oBAGA,YAGA0C,2CACAmP,KACA2M,OACAb,OACAD,IAEApM,cADAtX,kBACA,GAGA,WACAkV,KAEA,IADAlP,mBACAukC,kBACAvkC,oBAGA,YAGA0C,uCACA,YACA8b,OACAb,wBACA3d,cACAwe,KAGA9b,0CACA,YACA8b,OACAb,0BACA3d,cACAA,gBACAwe,KAGA9b,0CACA,YACA8b,OACAb,0BACA3d,cACAA,gBACAwe,KAGA9b,0CACA,YACA8b,OACAb,+BACA3d,iBACAA,iBACAA,gBACAA,cACAwe,KAGA9b,0CACA,YACA8b,OACAb,+BACA3d,eACAA,iBACAA,gBACAA,gBACAwe,KAGA9b,0CAGA,GAFAmP,KACA2M,QACAd,IACA,yBAEApM,wBAGA,SACApC,KACA0O,KAEA,IADA5d,gBACAukC,iBACA1yB,gCACA+L,MAEA5d,4BAGA,YAGA0C,0CAGA,GAFAmP,KACA2M,QACAd,IACA,yBAEApM,wBAGA,WACApC,KACA0O,KAEA,IADA5d,mBACAukC,kBACA1yB,gCACA+L,MAEA5d,4BAGA,YAGA0C,sCACA,YACA8b,OACAb,2BACA9L,iBACA7R,cACAwe,KAGA9b,yCACA,YACA8b,OACAb,+BACA3d,cACAA,gBACAwe,KAGA9b,yCACA,YACA8b,OACAb,+BACA3d,cACAA,gBACAwe,KAGA9b,yCACA,YACA8b,OACAb,yCACA3d,cACAA,gBACAA,iBACAA,iBACAwe,KAGA9b,yCACA,YACA8b,OACAb,yCACA9L,wBACA7R,eACAA,iBACAA,gBACAA,gBACAwe,KAkBA9b,yCACA,0BAGAA,yCACA,0BAaAA,0CACA,yBAGAA,0CACA,yBAIAA,oCACA,qEASA,GARAib,UACAD,6BACAc,0BACAA,SACAd,mBAGAA,QACA,uCAGA,OACA,kDAEA,kEACA,wDAGAA,iCACA7L,kBACA6L,iBAGA,YAEA,gEAEA1d,gCACMA,oBAEN,gBAA4BukC,QAAQA,GACpC1yB,wBAGA43D,8BACA53D,EACA7R,oBACAwe,GAIA,WAOA9b,oCAEA,uBASA,GARA,oBACAgb,KACAc,IACAb,eACQ,qBACRD,KACAC,oBAEA,4BACA,iDAEA,0CACA,6CAEA,iBACA,wBACA,qBACA,iBAEA9L,WAGM,qBACNA,QAIA,qCACA,2CAGA,QACA,YAQA,OACA,GANA2M,OACAb,+BAEA9L,SAGA,mBACA,SAAsB0yB,OAASA,GAC/BvkC,eAEM,CACN,qBACA6R,EACAnP,aACAkb,aACA,UACA,oCACA,qCAEA,SAAkB2mB,SAAiBA,GACnCvkC,qBAIA,aAMA,0BAgBA,cACA,+BACAgf,eAGA,gBACAnN,SAMA,QALA2M,EACAb,WACAD,QACAK,MAEAwmB,KAAoBA,OAAYA,IAIhC,IAHA/lB,oBAGA,gBAEA,QAEA,aAEA3M,+BACA,YACY0yB,WAEZ1yB,+BACA,SAIA6L,KAEA,SAIA,aACA7L,+BACA6L,KACA,SAIAc,oCACQd,KAER7L,+BAMA,GAHA6L,QAGAc,OACA,kBACAT,mBACQS,QACR,kBACAT,QACAS,SACA,kBAEQA,SACR,kBACAT,QACAS,UACAA,YACA,oBAEQA,WASR,sCARA,kBACAT,QACAS,UACAA,aACAA,YACA,SAGA,EAIA,UA4BA,cACA,qBA7HA,cAMA,IAFAQ,GAFAA,mBAEA8qD,sBAEAX,kBAEA,oBACAnqD,OAEA,SAkHAvN,KAGA,oBACA,aAAoBiM,QACpBA,gCADgCA,GAEhC7L,cAEA,UAMA,gBACA,uBACA,wDACAmN,4BAEA,cAEA,eAGGnC,+BACA,CAAE,sCAAwC,oBAC7C9c,WACA,eACA,0BACA,iBACA,SACA,cACA,eACA,oCACA,iBACA,oBACA,sBACA,mBACA,uBACA,cACA,uBACA,wBACA,YACA,gBACA,mBACA,gBACA,yBACA,yBACA,kBACA,mBACA,uBACA,gBACA,gBACA,yBACA,qBACA,oCACA,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,wCAGG,IAAG,qBACN,YAyGA,cACA,yCA3EA1F,UANA,cACA,qBACA0vE,iBAEA,yBAOA1vE,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,yBACA,OAIAA,qBAGA,GAGGwiB,WAAamtD,0CACb,CAAE,gCAA8B,oBAsBnC,qBAoeA,cACA,mBACA,qBACA,OAteAztE,eAweA,cACA,SACA,0DACAsa,UAEA,UA5eAva,2BA8eA,cACA,WACA,kBACA,8BA/eA,eACA0D,uEACAA,qBACAA,qBAGAA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uBAC1C,QAET,4BAF8BA,gBAAmBA,aAEjD,SAEOA,qEAGP,OAFA+L,UAEA,qCAQA,4BAPA/L,qCACAA,qBACAA,4DACAA,oBACAA,eAGA,SAEQA,iCAGR,OAFA+L,QAEAA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,SACA,QACA,QACA,GACA/L,oCACAA,cACA,cAEAA,cACA,0BAEA,YACA,4BAGAA,oEAEAA,4BAEAA,kBAGAA,kCACAA,mBACAgd,SACA,GAEOhd,gBACP,gBACe,4BADmBA,aACnB,SACRA,gBACP,gBACe,4BADmBA,aACnB,SACRA,gBACP,gBACe,4BADmBA,cAAqBA,mBAA0BA,cAClE,SACRA,gBACP,eACe,4BADmBA,aACnB,SACRA,gBACP,gBACe,4BADmBA,aACnB,SACRA,gBACP,gBACe,4BADmBA,aACnB,SACRA,gBACP,gBACe,4BADmBA,cAAqBA,mBAA4BA,cACpE,SACRA,gBACP,gBACe,4BADmBA,aACnB,SACRA,gBACP,gBACe,4BADmBA,aACnB,SACRA,gBACP,gBACe,4BADmBA,cAAqBA,qBAA0BA,cAClE,GAIfuM,2BAIAA,4BACAvM,cACAA,0HAEAuM,kBACAvM,iBAAqBpE,gDAErB2Q,iBACA,kBACAR,mBACA/L,mBACAA,eACAA,iBACAA,cACAA,YAAsBA,gBAEtBuM,oBACAvM,YAAqBA,cACrBA,kBAEAuM,yBAGAA,yBACA,mBACA,0CACAvM,aACAA,wBAEAA,qBACOqM,OACPrM,YAEAA,WADAA,WACAA,wBAEA,GAEAA,gBACAA,cACAA,oBACOqM,OACPrM,YAEAA,WADAA,WACAA,wBAEA,GAEAA,WACAA,YACAA,sBACOqM,OACP,kBAGA,6BAFArM,UAEA,SAEOqM,OAOP,6BANA,iBAGA,6BAFArM,UAKA,SAEKA,gBACL,UACAA,WACAA,qBACQqM,OAGR,6BAFArM,UAEA,SAEKA,eACL,WACa,6BADgBA,aAChB,SACRA,eAWL,6BAVA,UACAA,eAAm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WACAA,0CACAA,YACAA,qDACAA,wDACAA,UACAA,mCACAA,mBACAA,aACAA,kCACAA,gBACAA,qCACAA,gBAKAA,qCAGAA,oCACAA,kBACAA,8BAEAtF,eAjDA7P,SACA,QACA,wBACA,kBACA,UACA,UACA,YACA,UACA,WACA,YACA,QACA,aACA,QACA,MACA,QACA,SACA,gBACA,kBAmCAmJ,0CACA,aAAoB1F,iBACpB,qBACA,QAGA0F,0DACA,qBAGAA,sCACA,SACA,8CACA,WAyDA9H,YACA,CAAMqiB,eAAmBhP,UACzB+5D,MAwvBA,cACA,WACA,+BACA,wBACA,wDACA,yBAEA,QADAt5D,SACArG,qBAQA,OAPAA,kBACAA,aACA,UACAA,SACAA,YACUA,YAEVA,cAEAc,QACA,SACAd,oBACAA,+BACYtN,UAGZmT,wCACA7F,aACAA,gBAEA,cAEAc,OACA,6BAEA,QADAoF,MACAI,sBACAA,kBACAtG,kBACAA,aACA,UACAA,SACAA,YACkBA,YAGlBA,+BAEA,SACAA,oBACAA,gCAEAtN,qCACAmT,uCACA,8BACA7F,eAEA,cAEAc,SAEA,QACAd,wBACYA,YACZ,cAEAc,gBACA,QACAd,qBAEAA,gBACAA,kBAEA,cAEAc,YAEA,SACAd,oBACAA,eACYa,SAEAA,QACZb,mBACAA,aACY,SACZA,oBACAA,cACY,SACZA,oBACAA,mCAEA6F,mBAEA7F,kCAEAsG,YADAtG,+BACA69D,aAEA79D,kBACAA,iBAEA,cAEAc,YA1uBA,aA2uBAd,6BACA+F,mBACA/F,gBACAA,cACAA,YACYA,qBACZA,kBACAA,aACAA,eAlvBA,aAmvBYA,6BACZA,mBACAA,2BACA,+CACAA,aACAA,eACY,SACZ+F,oCACA/F,cACAA,iBACYa,SACZb,4BACAA,eAEA,cAEAc,mBACAwF,UACAtG,oBACAA,QAEAA,cACA,cAEAc,UACA,SACAd,eACA+F,2BACA/F,eAEAA,aACA,8BACAa,SACAb,yBACAA,QAGA,cAEAc,iBACAd,aACAsG,UACAtG,OACAA,mBAEA,cAEAc,cACAd,aACA,0BACAa,SACAb,6BACAA,OAEA,cAEAc,qBACAd,aACAsG,UACAtG,sBACAA,QAEA,cAEAc,UACA,iCACAd,aACA,cAEAc,iBACA,SACAd,wBACAA,8BACAA,sCACAA,eAEAA,iBACAA,mBAEA,cAEAc,gBACA,SACA+E,yBAGA7F,kBACAA,mBACYA,eACZ,cAEAc,QACA,+BACAd,WACA,cAEAc,eACA,kCAEAd,eACAA,iBAEA,cAEAc,iBACA,SACAd,gCACA+F,oBACA/F,WACAA,gBACY,QACZA,cAEAA,gBACAA,iBAEA,cAEAc,YACA,mCACAD,gCACAb,kBACA,cAEAc,iBACA,oCACA,mCACAd,kBACA,cAEAc,mBACA,SACAiF,+BACA+4D,oBACAhrD,sBAEA9T,iCACAA,iBAEAA,sBACAA,0BAEA,cAEAc,WACAD,qBAEAiF,KACA,cACA,kCAEApT,WACAsN,mCACAA,mBAGA,cAEAc,iBACA,SACAE,SACAN,OAEAmF,sDACA7F,kBAEA,cAEAc,SAEA,mBACA,cACA,iCACAD,QACAb,eACAA,iBACAA,uBACY6F,8BACZ,cAEA/E,cACA,+BACA,SACA+E,+BACA7F,2BACAkB,KACAF,OAEAH,uCACAA,uBACAgF,8BACA,cAEA/E,wBACA,sCACA,oBAEA+E,+BACA7F,kCACAA,iBACA+F,kBACA,CAAuB+4D,6BACvB9+D,gBACA,cACAa,QACAb,eACAA,wBAEA6F,8BACA7F,kBAGA,cAEAc,eACA,mBACAD,QACAb,MACAA,gCAEA6F,gCACA7F,gCACAA,iBAEA,cAEAc,sBACA,YACA,wCACAd,iBACA,SAEAkB,KACAlB,OACAA,8BACA,cAEAc,sBACAD,OACAb,iBACY,cACZ,iCACAa,QACAgF,wCACA7F,eACAA,iBACAA,uBACY6F,8BACZ,cAEA/E,wBACA,YACA,wCACAd,iBACA,SAEAkB,KACA,cACAlB,iBACA,cAEAc,YACA,aAWA,aACAD,oBACAb,UACAA,yBACAA,aACAA,mBAEAtN,aACA,kCACAsN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BACA,cApBA9U,OACAuE,OACAxG,OAqBA,QA6SA,aA5SAvD,QACA,CAAI6uE,UACJC,SACAC,gBACAC,cACAC,cACAC,qBACAC,YACAC,mBACAC,gBACAC,uBACAC,qBACAC,YACAC,mBACAC,kBACAC,UACAC,iBACAC,mBACAC,cACAC,mBACAC,qBACAC,aACAC,mBACAC,WACAC,gBACAC,0BACAC,iBACAC,wBACAC,wBACAC,0BACAC,0BACAC,0BACAC,cACAC,wBACAC,WACAC,mBAGA/wE,WACA,CAAIgxE,QACJ3vD,OACA/E,OACA20D,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,SACAvwC,SACAwwC,QACAC,SACAC,UACAC,SACAC,UACAC,WACAC,QACAC,WACAC,SACAC,QACAC,SACAC,UACAC,QACAC,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,UACAt6E,UACAu6E,SACAC,UACAC,UACAC,YACAC,SACAC,QACAC,UACA9/B,SACA+/B,UACAC,WACAC,OACAC,OACAC,OACAC,YACAC,OACAC,QACAC,WACAC,UACAC,QACAC,YACAC,QACAC,QACAC,QACAC,UACAC,aACAC,UACAC,QACAC,UACAC,UACAC,YACAC,UACAC,SACA30B,SACA40B,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,WACAC,WACAC,WACAC,UACAC,WACAC,QACAC,UACAC,SACAC,WACAC,YACAC,WACAC,UACAC,WACAC,SACAC,SACAC,QACApvB,SACAqvB,SACAC,SACAC,YACAC,SACAC,UACAC,WACAC,QACAC,WACAC,QACAC,QACAle,SACAme,SACAC,UACAC,UACAC,UACAC,WACAC,YACAC,UACAC,UACAC,WACAC,WACAC,YACAC,YACAC,UACAC,UACAC,SACAC,YACAC,WACAC,YACAC,YAGAj3E,4CACA,oBACAgM,8CACAnV,kBAGAA,8BAKA,kBACAiV,cAGA,kBACAA,kBACApF,SAGA,eACAoF,gCACAA,qCACAA,cAGA,iBACA,4BACAA,uCACAnG,EAGA,iBACA,aACAmG,kBACAnG,qBACA,sBACA,gBAEAA,eACAmG,UACApF,iBACAoF,EAGA,eACA,8CACAA,4DACAuL,MACAvL,OACAA,YACApF,aACAxO,yBACA4T,EAGA,gBACA,yCACA,0CACAA,kBAGA,cACAA,+CACA,iCACAE,SAA6By4D,8BAG7B34D,yBACAA,sBAGA,iBACA,IACAG,EADAH,eACA,sBACAD,OACAtC,OAGA,wBACAsC,UACAtC,MAGA,CAAa2tE,kBAGb,cAGA,GAFAprE,sDAEA,wCACAA,8CACA,qCAGA,gBACA,0BAEAG,UAEA,aAHAtG,SAKA,gCACA6F,IACA,+CACAM,uBACU,+BACVN,IACA,iDACAM,mBACU,CACV,YACAvC,6BACAsC,cACAA,0BAEAA,sBA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AA,WAWAA,+BACA,WAEA,cACAsB,aACA,yBACAxE,UAOA,aACAA,sBACAA,WAJAA,eAQAwE,iBAIAA,+BACAxE,cACAA,iBAGA,SACA,aACAkK,IACAA,KAEA1F,SAIA,aACA0F,IACAA,KAEA,2CAIA,cAEA,GADA/J,IACA,kCACA,QAQA,aACAH,2BACAwE,4BAEAxE,0BACAA,4BAEAA,4BACAwE,4BAEAxE,0BACAA,4BAEAwE,4BAGA,OApBAxE,gBACAwE,gBAmBAxE,cACAA,gBAEAwE,gBAEAA,iBAGAA,IAGG,CAAEq/E,+LAAiM,qBACtM,YACA,yBACA3gF,sBACAsB,aACAD,4BACAvE,WAEAsJ,IAEAA,wBAEA7E,EADA,mBACAzE,WAEAwE,KAKA,8DAEApE,gBACAF,qBACAC,SACA8I,cAGA/I,yBACAA,aAGAuE,qCACAA,yCACAA,wBAIA,eACA,UACAkE,mBACAA,GAGAW,oBACA,qBACA,eACAlJ,GAGAkJ,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,iBAEGma,iHACA,CAAE,qFAAuF,qBAC5F,YAUA,MACA,aAEA,uBAEA,qBACAtgB,uBAIA,IACAA,wDAEA,CAFA,MACQnD,GACRmD,aAIAA,OAEA,SAGA,cACA,UACA,eACA,IACA,wBACAmG,kBACM,CADN,MACM7E,IACN,SAgBA,cACA,2BAvDAxD,wCAEAA,qCAEAA,uCAuCAA,wCAIAA,oCACAA,+DAIAA,2DAMAkC,SAEGsgB,iHACA,IAAG,qBACN,gBACA,wBACAlf,gBACAvE,kBACAsJ,uBAEA7E,oBACAyF,gBAgBA9J,wBACA,WACAkJ,mBAEAX,UACAA,WACAA,cACAM,QACAN,wEACA2D,2CACA3D,8BAGA,MACAjC,KACA,sEAEAA,KACAwG,aACM,4BAGNA,aACM,oCAENA,8BACMjE,mDAIN,+CAFAiE,IAEA,CAEAvE,QA9CA,gBACA,kBACA,QACMnE,wBACN,0BACMA,WACN,YACMA,iBACN,cAEA,OAoCAhE,MACAmI,mBAEAA,yBACAA,iBAIApE,gBAEAnE,oCACA,IACAsG,mBAIA,mBALAE,KAQAk9E,aACA/S,OACAvuE,WAIApC,kCACA,qCACA,SACAuI,QACA,MAGAvI,4CACAwG,KACAk9E,2BAGA1jF,iCACA,WAEA,iBAEA,eAEA8M,aACAxG,OACA,sCACAA,oBACAQ,6BAAqD1E,aAKrD,SAaA,GAZA8J,mCACA,gBACAuG,aACA89D,iBACA99D,sBACA3J,gBAGAA,gBAIA,mBACA,WAEA,sBACA,0BACApE,WACAmE,0BAEA,6CACAA,sCACAA,yBACAA,yBACAA,iCACWN,mBAIXxF,qBACA8f,sBACAK,UACAyC,eACAhf,YACAg9E,sDACAC,WACOC,iBACPh7E,mBACAA,cACO,YACP9F,8BACA8F,cACAA,wBAEM,CACN,kCACA,IACArE,qCAKA,CALA,MACQC,GAIR,YAHA5E,sBACAgJ,mBAEA,CAIA,qBACArE,wBAEA,wBACAA,uCAEA,0CACAA,yDAEA,uBACAA,2BACAA,uBACAqE,2BAIAC,sBACAtE,gCAGAqE,iBACArE,gCACA,0BACAsF,eACAA,OACAjB,mBACA,EAKA,sCACArE,wBACAqE,qBAIArE,qBACAqE,cAEAA,wCAGA,IACArE,SAKA,CALA,MACQC,GAIR,YAHA5E,sBACAgJ,mBAEA,KAmBA7I,sCACA,YAVA,cACA,IACA,eACA,sBAEA,CAFA,MACM8M,GACN,UAOAhN,yBAGA+I,aACAA,aAEAA,+BAGA7I,gCACA,WAEA6I,eAGAA,iEACAA,mCACAA,oBAGAA,iCAGA7I,mCACAwG,KAEAs9E,cACAh3E,KAGA9M,iDACA,WACA6I,gBACA9F,8BACA8F,cACAA,2BACAA,OACAA,eACAA,yBACAA,iCAGA7I,gCAEA,uBACA8M,IACAjE,UAGAK,8BANA1C,KAMAqC,QAGA7I,sCACAA,oCACAA,oCACAA,4CAGA,OACA,iBACA,kBACA,iCACA,gCACA,aACA,iBACA,SACA,UACA,OACA,MACA,SACA,OACA,aACA,SACA,UACA,KACA,UACA,oBACA,UACA,SAGGqjB,6HAAyJ5c,qBACzJ,CAAE,4FAAgG,qBACrG,gBACA,wBACAtC,gBACAvE,uBAEAsJ,iBACA66E,SACAC,SACAC,mBACAC,UACAC,QAGA9/E,sCACA,WAiBA,GAhBAzE,mBAEAG,UACAA,aACAA,gBACAA,cACAA,iBAGAA,sBAEAF,sBACAE,oBAIA,aA+CA,iBACAwI,0BACA,iBAEA,WAGA,OAFAxF,uBACAhD,aAGAA,wBACAuE,OACS8/E,kBACTrhF,kBACAhD,cACAA,qBAjDA,GAXAA,mBAEAA,YACAA,sBACAA,6BAEAK,gCACAL,6BACAA,yBAGAqE,kBACA,0BACAotE,kBACA,iCACAzxE,aACA0E,IACgB1E,kBAChByE,IAEAzE,oBAIA2xE,iBACA3uE,kBACAhD,cACAA,cAEAskF,kBACAtkF,cACAA,qBAIA,IAMA,YALAK,mCACA2C,kBACAhD,cACAA,mBAGU,CADV,MACU6I,KAGV,yBAkBAtE,SA4BA,GA1BAvE,SACAA,SAEAA,oBACAA,sBACAA,6BACA+J,yCACAw6E,oBACA,kCACA,MACA,yBACA,uBACA,mBACAvkF,iBAEAA,8BACY,iBACZA,wBAEAA,kBAEAA,gCAIAA,6BACAqE,oBACA,gCACA,MACA,yCACA0E,IACA/I,+BAGAA,aACAA,sBAKAoE,gBAEAE,6BACA,IAEAjE,EAFAoG,KAEA+9E,aACAnkF,IAHAoG,KAIA+9E,kBACAnkF,MAIAiE,sCACA,WAEAjE,SAEAJ,OACA,oBACA,OAEA,IADAA,kBACA2vE,eACA,uBACA,kCAEA,QADA5vE,oBACA8I,IAA4BA,WAAoBA,IAChD9I,yBAEA+J,eAEAA,qBAEAA,gBAEA,UACA,cACA,sCACA,MACA9J,aACA8J,kCACA,UACA,0BAEA,GADA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EAA,qBAEAA,gCAEAA,4BAGAA,oCA4CA,cAUA,sBATArC,4BAUA,uCACAqC,oCAEAA,iBAEAqL,IACA,kDACA,qDACA,wDACA,mDAGA3I,aAwJA,2BACAgP,aACAA,YACAA,aACAA,UACAA,sCAA0EC,yBAAsDtG,wBAChIqG,UAwDA,oBACAC,GASA,gBACA,4BACAD,eACArG,iBAZA8F,MACAO,cACAH,IACAyL,OAcA,iBACAtL,sBACA,wBAEA,yBAEA,IACAzC,YADAyC,wBAEAgN,uBACAA,UAIA,QAHA9M,IACAoN,KAEArN,GACA1C,OACA0C,gBACAA,SACAC,KAGA3C,eACA8N,kCAGArL,cACAA,2BAEAgN,QACAhN,4BACAgN,aAEAhN,8BAGAA,6BACM,CAEN,SACA,cAWA,GAPAqL,UADArL,wBACAG,EAHAF,WACAA,YAGAA,SACAD,yBAKAA,UACA,MAIA,uCAGAA,oBACAA,sBA2CA,cACA,iFAGA,iBACArG,qBACAqG,cAEAC,GACAtG,kBAGAqG,iBACArG,oBACA2R,SAiBA,gBACA,WAEA,WAhBA,iBACAtL,gCACA,0CAKAA,iBACArG,sBALAqG,cACAA,iBACArY,oBAGA,CASA0S,MAEA,kBACA2F,cACArG,mBAIAsG,EA/gBA1R,mBAuFAgM,iCAIA,QAHAyF,uBACAC,KAEAD,GACAC,UACAD,SAGA,UAGA,WACA,IACAhM,4CACAC,2BACA,yBACS,yFAEH,CAFG,MAEH0F,KAPN,GAcA,0GACAwL,yCACAnR,4CACA9J,kBACA,wBACAoE,UACA0R,qCAIAmF,cACA,0BA+BA3K,4BACAlM,0BA+BAkM,kCACA,0BACA+C,KAEAyP,iBAlNA,cACA,qCAiNAllB,IAEA,2BACA6R,EAzNA,cACA,iBAwNAzR,KAGA,uBACA+X,IACAD,QAGAgN,aAAmChN,yBACnC,4BACAH,SA7CA,iBACA,YAEAlG,kBACAhS,gBAyCA0E,UAA8C2gB,GAnC9C,oBACA,MAQA,OANA,SACAzP,QACM,oCACNA,yCAGAA,IACA5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A,KACAC,cA1DA,gBACA,qBACAC,kBACAJ,KACAsE,gBAIAtE,WACOE,IAiDP+D,cACQ,CAGR,qBAEA,YACA,gCAGA9D,uBAGA,iBACAA,IAEG4gF,gCACH,cACGviF,wBACH,WAKA,iCACAwB,8BACAG,EACAD,KAIAoE,sBAGG7F,MAoEHwD,UAlEA,YACA,MAEA/B,mBAA2F1B,EAA3F8F,KAA2F5I,GAC3FoC,QACAguE,cACKttE,OACLV,WACAguE,cACKttE,OACLV,WACAguE,cACKttE,OACLV,WACAguE,cACKttE,OACLV,kCACAguE,cACKttE,OACLV,oBACA,kBAEAib,GACA7Y,UACAA,UACAA,UACAuE,aAEAvE,OACAA,SAGA4rE,cACKxnE,IACL,iBACAxE,gBACA,6CACA,WAWA,OARA,WACAI,UACAA,UACAA,UACAuE,WAGAvE,OACA,CAGA,WAEA,WACAA,UACAA,UACAA,UACAiO,iBAGAjO,UAEAF,gCACAE,EAGA,GACG6e,0BACA,CAAE,oCAAoC,qBACzC,aAIA,kBAA8C,cAAkBnX,2BAAkC9J,oDAAgF0H,OAAoBA,EAEtM,IACA1F,EADAqC,YACA6+E,OAGA1lF,EADA6G,UACA8+E,QAEAr8E,yBAEA,kBACA9E,6BAGAmC,UAEA,WACA,aACAC,eACAA,eACAA,cAGA,kBAEA,0BACA,OACAoG,OACA0E,WAEA9K,+BAAkDA,YAClDA,cACAA,aAGApG,sBACA,OACAwM,OACA0E,gBAEA,+BACA9K,cACAA,aAGApG,mBACA,mBACA,sBACA,gDAA0DoG,iBAC1DA,YACA1G,IAGAM,mBACAoG,yBACAA,eAGApG,mBACA,4BAIA,QAHAL,YACA8I,YAEA9I,UACA8I,YAGA,UAGAzI,qBACA,qCAKA,QAJAL,uBACA8I,YACAN,IAEAM,GACAxE,cACAkE,iBACAM,SAGA,UAIAzI,wBACA,MAEA,gCAEAyI,4BACArC,wCAGAqC,EAFQ/I,0BAER0G,aAGAzG,wCAGA8I,GAGAzI,mBACA,uBAIAA,yBACA,gBACA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AA,sBACA,iCAKAA,0BACA,+BAIAA,sBACA,IACAwP,IADAG,cAEA,oBAEA,eADAD,sBACA03D,OAA6CzqD,IAAYA,KACzDnN,QACAG,IACAA,UAIAF,SACAzP,2BACAkN,YACA0C,yBACAD,IACAC,OAIA,UAIA5P,sBACA,IACAwP,IADAG,YAEA,oBAEA,eADAD,sBACA03D,OAA6CzqD,IAAYA,KACzDnN,QACAG,IACAA,UAIAF,SACAzP,2BACAkN,YACA0C,uBACAD,IACAC,OAIA,UAKA5P,sBAIA,UAHAyP,qBACAnG,WACAqG,WACAC,IAAgCA,IAAgBA,KAChDJ,mBACAI,eACAD,UAEA,UAMA3P,yBACA,mBACA9D,sBACAwT,yBAEA1P,qCAIAA,yBACA,gBACAA,gCACA,OACAnG,QACA0jF,QACAC,qBAEOC,mBACP,iBACAvwE,aACA,UACA,4BACA,4BAEA,yBACO,UAIP,kBACA,uBACA,SACA,gBACAlN,uBACA,eACA0P,WAEAE,IAMA5P,4BACAA,wBAAuD0P,WAKvD1P,4BACA0P,SAMA1P,4BACAA,kBAA6C0P,SAI7C1P,sBACA,SACAA,uBACA9D,yBACA8D,YAHA,IAOAA,mBACA,iBACA9D,gCAKA8D,4BACAyP,SACA,cACA,iCACAA,wBAEA,OASAzP,sCACA,WACA,uBACAA,yBAMAA,0BACA,0DAKAA,uBACA,WACA,gCACAA,kCAMAA,qCACA,iCAIAA,sBACA,+BAIA,wBAEA,QADA4P,SACA1C,cAA+DA,IAAYA,KAC3E,WACA,2CAEAuC,gBACA,mBAEA,IADAG,YACAqN,KACArN,mBAEUtG,IACVsG,UAGA,UA4GA,cACA,uBACAtG,SAGA,QAFAsG,OACAJ,YACeA,UAA8BA,KAC7C,wBAEA,UAsBA,mBACA,uBACA,eACA,sBACAE,IACAxC,yBAEAyP,qCAEUrT,QACV,OACAqG,EADAH,YACAI,OAEA,QACA,oCACA,SAEA,gBAA6CJ,UAA0BA,KACvE,qBAEA,UA1JAxP,wBACA,kBAIAA,sBACA,4C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ArzE,GACA,QACA,UACA,SACA,SACA,iBACA,kBAGAF,+BAEAN,cACA,iBAOAhK,4BACAyP,YACAA,gBAA8BA,sBAG9B,eACAA,sBACAA,2BACAA,wBACA03D,oBAGAv3D,IACAJ,WACAE,iCACA,sCACAE,cAEAE,EACAN,oDACUiN,EACVjN,0CACUoM,IACVpM,UAAuBoM,cAIvBqB,IAEAzN,UAGAC,kCAAsDD,SAEtDA,8FAEAA,kBAEA,IACA,2CAGA,CAHA,MACQyN,GACR,iBACAA,EAGA,kBACA,yBAKA,6BADAxN,mBACA,OAAoDD,MAEpDmN,GAIA3c,oBACA,WACA,mBACAyP,GAUA,oBACA,gCAIAzP,oBACAA,kCACA,gBACAA,0BACA,sBACA,4BACAib,yBAMAjb,WAGAA,8EACA,WACAA,0BACA,oBACA,6BACA,sDACAib,aAKAjb,6CACA,WACAA,0BACA,mDAKAA,6BACA,sBAKAA,yDAEAA,gCACA,uBAYA,GAGG8a,YAEA,IAAG,qBAsBN,aAEA,oBACAtgB,cASA,aACAyD,mBACAA,kBACAA,eACAA,eACAA,eACAA,mBACAA,eACAA,iBACAA,gBACAA,mBACAA,eACAA,eAnBA3F,UACAA,UA0ZA,gBACA,8BA1ZAA,gBAiaA,gBACA,SACA6D,4BADAqE,GAjaAlI,SAsVA,cAMA,OADAkC,wBACA0B,eACAA,WADA3B,4BA1VAjC,QAqBA,0BACAsD,aAGAvE,uCAOAyE,OAAkB,IAAK,yBAHvB,sCAMAyF,kBAKA1J,mBAAuC,eACvCJ,gBAEAD,2BACA8I,iCAEAN,GACA89E,cACA,kBAGAv5E,GACAu5E,cACA,kBAGA//E,GACAsqE,QACA0V,SACAC,OACAC,UACAC,QACA,WACA,YACA,UACA,aACA,YAEA39E,mBAEA,kBACA,6CAEA,YACA,sBACAuU,EAGAva,kCACA,kBACA,uEAMA,qBACA4P,GACA,gCACAnO,cAEAA,oBADA,MACA,KAGA,MAFAE,aAQA,GAFAmO,YAEAH,4BAEA,gBACA,KACA,mBACAjM,YACAA,mBACAoR,MACApR,iBAEAA,WADAuC,EACAD,+BAEAtC,uBAEUuC,IACVvC,eACAA,eAEAA,KAIA,iBACA,OAEA,QADA+c,UACAmjE,cACAlgF,iBACAoM,sBAOA,2CACA,4BACAE,oBACAF,cACApM,iBAIA,YACAsM,iBAmBA,QADA2E,MACAC,IAAsBA,WAA4BA,KAElD,KADAC,sBACA,gBACAF,MAKA,SAoBA,KARA,KATA1E,GAFA,OAEAH,mBAIAA,yBAMAkF,gBACAlF,eACApM,kCAIAiR,MACAC,IAAsBA,WAAyBA,KAC/C,OACA,KADAC,sBACA,gBACAF,OAGA,SACAA,aAEAjR,wBACAoM,cAGApM,iBAIAA,gCAIA,+BACA,4CAGA,OAEA,QADA+L,4BACAiR,iBAA8C9L,IAAOA,KACrD,WACA,OACAO,YAEA,QADAD,KACAnG,eAA6CA,IAAOA,IACpDoG,oBAIAD,OAEAA,QAIA,gBACA,mBACAD,eACAtC,aACAA,IACA0C,aACAJ,iBAEAA,WACAnF,qBAEApM,0BACA,QAOAA,cADAA,qBAjNA,IAkNA,GAGAA,4BAGAqM,KAKArM,wCAKAA,WADAA,oBADAA,4BAGAA,qBAIAqM,KACArM,6DACA,aACAoM,UAOA,UAKA,mBAA6C8E,IAAOA,KACpD,WACA,qBAEA,6BACAW,QACAA,aAEAzF,sBAMA,sBACA,QAEApM,sBACAoM,gBAEA,qBA2BA,OA1BA,OACApM,wBACAA,yBACAuC,IACAvC,gCAEAoM,gBACM7J,IAENvC,eACAA,eAEAoM,qBACAtM,OACAE,gCACAA,oBAIAA,8BAGAA,WAFAA,oBACAA,kBAKAA,wBACAA,MAcA1D,8BACA,oBACA2B,IAEAA,GADAA,yBACAqlC,oBACArlC,QAGA,wBACAgO,oBACA4K,gBACA3K,KACAnO,MAEAiC,UACAkM,cACMlM,gBACNkM,qCACAlM,cACA,uBACAA,YACAkM,mBAIAlM,YACAzD,wBACAmJ,iCACA3H,4BAGA,kCAEA,uCAIAiC,gBACAuC,kBAC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,oBACAC,wBACAC,kBACAC,qBACAC,mBACAC,oBACAC,gBACAC,wBACAC,kBACAC,kBACAC,kBACAC,yBACAC,wBACAC,sBACAC,qBACAC,4BACAC,oBACAC,qBACAC,sBACAC,qBACAC,iBACAC,iBACA5c,gBACA8V,kBACA+G,oBACAC,oBACAC,qBACAC,qBACAC,yBACAC,0BACAtpF,qBAIAqC,qBACG,CAAE,66CAA26C,qBACh7C,aAEA2F,sCACA9J,WA6DA,UA3DAvC,WACA,oBACA,8BACA,kGACA,gCACA,oCACA,8BACA,gDACA,wFACA,oDACA,gCACA,oDACA,gCACA,4DACA,wEACA,wEACA,oCACA,0GACA,wDACA,kEACA,gCACA,wDACA,yEACA4tF,0RAGA1qF,kBACA,uBACA,iCACA,qGACA,mCACA,uCACA,iCACA,mDACA,2FACA,uDACA,+DACA,mCACA,uDACA,mCACA,2EACA,2EACA,uCACA,6GACA,2DACA,qEACA,mCACA,2DACA,4EACA0qF,yVAGA3qF,aACA,YACA2qF,aAGArpF,wDAEAxE,IAA0BA,WAA2BA,IAErDC,EADAsE,cACAtE,WACAkD,gBACAD,gBAMA,UAFAoG,yGAEAY,IAA4BA,WAA2BA,IAEvDjK,EADAwE,cACAxE,KACAkD,UACAD,UAOA,QAHA1C,kBACAJ,yLAEAF,IAAoBA,WAAyBA,IAC7CgD,mBAGA,YAAoB/C,WAA2BA,IAC/C+C,YAGAjD,sBACAkD,sBACAD,uBACG,IAAG,qBACN,aAEAoJ,sCACA9J,WAEAvB,UAQA,gBACA,uBACAsD,0CARA,IAEApB,EAEA,cAAyC,0BAAuC2mF,WAFhF5mF,CAFA2D,0BAUAF,qBACG,CAAE,4BAA0B,qBAC/B,aAEA2F,sCACA9J,WAEAvB,UAYA,gBACA,uBACAqI,gCAZA,IAEAnG,IAFA0D,0BAMArC,IAFAqC,sBAIA,cAAyC,0BAAuCijF,WAMhFnjF,qBACG,CAAE,kDAAgD,qBACrD,aAEA2F,sCACA9J,WAEAvB,UAQA,gBACA,uBACA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AA,6BACAA,oBACAA,kDACA,SACAA,aAEAA,MAGAhC,oCACA,uDACAgC,sCAEAA,kBAIAhC,oCACA,MACA,gDACA,2FAKA,GAHA,UACAC,eAEAqE,KACA,YACAF,aAEApC,iBADA/B,WAIA6B,OACAyC,eAEAvC,4CACAA,gDAGA,aAGAhC,6BACA,MACA,0BACAuE,gBACAvC,qDACAA,MAGAhC,8BACA,MACA,0BACAuE,gBACAvC,sDACAA,MAGAhC,gCACA,MACA,0BACAuE,gBACAvC,wDACAA,MAGAhC,4BACA,MACA,0BACAuE,gBACAvC,oDACAA,MAGAhC,sCACA,aAQA,GAPAgC,mBACA,UACA/B,eAEA,UACAsE,eAEAwnE,iBACA,oBAA2C99D,KAASA,IAEpDjM,iBADA6W,aACA,GAEUvU,KACV,YACAF,aAEApC,mBADA/B,WAIA6B,OACAyC,aAEA4J,kBACAnM,sEAEA,aAGAhC,wCACA,MAEA,GADAgC,mBACAA,qBACA,wDAEA,2BACAA,4DACAA,MAGAhC,oCAEA,GADAgC,mBACA,QACA,0CAEA,aACA,wDAEA,wCACAA,gCACAA,6BACAA,oBACAA,kDACAA,MAGAhC,qCACA,MACA,0BACAiO,kBACAjM,2DACAA,MAGAhC,wCACA,OACA,0BACAD,yBACAiC,4DACAA,MAGAhC,iCACA,MACA,0BACAiO,qBACAjM,0DACAA,MAGAhC,kCACA,MACA,0BACAiO,qBACAjM,0DACAA,MAGAhC,mCACA,MACA,0BACAiO,kBACAjM,4DACAA,MAGAhC,0BACA,uBACA,mDAEA,yBACAgC,0BACAA,iCAEAA,gCAEAA,uBAEAA,wDAEAA,iCACAA,oBACAA,MAGAhC,2BACA,2BACAgC,UAEA,qBAGAhC,mCACA,oBACA,oCACAgC,iCAIAhC,iCACA,aACA,0DACAgC,aAEAA,uDACA/B,aAIAD,kCACA,eACA,+DACAC,eAIAD,+BACA,+BACAgC,wBAGAhC,6BACA,iCACAgC,sBAGAhC,2BACA,2CAGAA,gCACA,yBAGAA,4BACA,qBAGAA,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wBACAsB,oBACAC,gBACAyF,iBACAZ,mCAIA,2CACA,uBAYA,GAXAH,OACA,UACAzC,MAEAA,cACAxG,OACAgJ,uBAEA,UACAgE,eAEAyjE,iBACA,mBAAyC3nE,IAASA,IAElDG,eADA+D,WACA,GAEU9M,KACV+I,kCACUjJ,MACV,WACA,eAQA,GANAE,EADAuE,WAEAA,eAEAzE,eACAyE,UAEAiC,yGACAuC,4EACcvC,mDACd,oBAA6ChC,IAAUA,KAEvDE,MACAD,GAFAF,MAGAwE,uBAEcjJ,OACdiJ,mBACAwrF,YAEAxrF,0BAKAA,GADAvC,2GACAA,cACYA,6GACZA,eACYA,iHACZA,iBACYA,yGACZA,aACYA,uGACZA,iEAEAA,iBAGA,WACA,0DAEA,UAGA+B,yCACA,UACA,eACA,wDAEA,4CACAK,iCACAlE,6BACA6rE,mDACA7rE,GAGA6D,wCACA,UACA,eACA,wDAEA,4CACAK,mCACAlE,6BACA6rE,mDACA7rE,GAGA6D,8BACA,MACA,eACA,kDAEA,4CACA,2DACA/B,aAGA+B,iCACA,QACA,iBACAuE,eAEAxG,UACAA,cACAxG,OACAgJ,uBAEApE,kBACA,SACAA,UAEA8B,sBACA9B,GAGA6D,6BACA,MACA,uBACA/B,sBACAA,MAGA+B,8BACA,MACA,uBACA/B,sBACAA,MAGA+B,gCACA,MACA,uBACA/B,sBACAA,MAGA+B,sCACA,QACA,4CACA7D,iCACA8B,uBACA+pE,mDACA/pE,MAGA+B,qCACA,QACA,4CACA7D,mCACA8B,uBACA+pE,mDACA/pE,MAGA+B,4BACA,MACA,uBACA/B,sBACAA,MAGA+B,sCACA,YAOA,GANA,UACAuE,eAEA,UACAxG,eAEAiqE,iBACA,mBAA2C3nE,IAASA,IAEpDpC,iBADAsC,aACA,GAEUhJ,KACV,YACA+I,aAEArC,mBADAsG,WAIA9M,OACAsG,aAEAhC,kBACAkC,sBAEA,aAGA+B,4CACA,QACA,4CACAjE,iCACAkC,6BACA+pE,mDACA/pE,MAGA+B,2CAC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A,gBACA,6CAEA,2BAEW+e,WAEX,mEACA5e,mCAEAA,GAGAqE,kCACA,mCAGAA,gCACA,4DAGAA,kCACA,+DAGAA,sCACA,MACA,uBACAF,mCACA,mBACAA,iCAEA,qBACAA,sCAEAA,+BACApC,YACA,EAGAsC,kCACA,cASA,GARAxE,SACAyE,gBACAA,8BACArE,iBACAqE,yCACUrE,UACVqE,4BAEArE,qBAIA,IAHAqE,QACAA,gBAEAvE,OADAiO,cACAk9D,OAAwCnrE,IAASA,IACjDoE,OACAG,cACA,iBACAH,gBACA,oCACAA,gBACA,oCACAA,gBACA,mCACAA,gBACA,qCACAA,gBACA,+BACAA,gBACA,iCACAA,gBACA,iDAEA,gEAEaya,WAEbta,OAEA,qCACAvC,YACA,EAGAsC,kCACA,+BAcA,SAbAxE,SACA+a,MACA7Y,oBACAA,gBACAA,iBAEAA,iCACAA,gCAGAjC,MACAA,KAFAgf,kBAEA,WACA5Q,gBAEA7F,cAEAvI,mBADAoO,OAGA,wDACA,sBAGApO,IADAiC,gBACA,8BAEAA,gDAEUA,8DACVjC,QACAA,wBACAA,qCACU,CACV,4BAEA,WADAqO,cACA+8D,OAA2ClrE,IAASA,IAEpD,UADAD,QACApC,OACAoE,qBACA6Y,MACA,MAWA,IAPA7Y,qBACAA,gBACAA,eACA+c,kBAEAhf,qBAEAwE,OADA6O,cACA+3D,OAA0C5mE,IAAUA,IACpDvE,OACAD,eACA,iBACAC,gBACA,+BACAA,gBACA,iCACAA,gBACA,iCACAA,gBACA,6BACAA,gBACA,8BACAA,gBACA,iDAEA,gEAEa6e,WAEbhE,IACA7Y,qBAEAA,qBACAA,iCACAA,gCAEAjC,oCAEA,WAGAuE,gDACA,MACA,qCACApE,UACAkE,gBAEAA,2CACA,EAGAE,8BACA,2CAGAA,+BACA,2CAGAA,qCACA,MACA,0FACA,kCACAF,2BAEAlE,iBACAkE,4BAEAA,0CACA,EAGAE,qCACA,6FAGAA,oCACA,MACA,kCACApE,OACAkE,SAEAA,cACAl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sBA,mBAAsBA,KAC5C,mBAEA,eACAvE,cACAiD,WAKA,UAfA,qCAeA,EAGG,KAAK,GAAG,IA3pvCkY,CA2pvClY","names":["at","exports","ut","i","f","u","m","c","getRgba","getHsl","getHwb","s","hexString","rgbString","rgbaString","Math","percentaString","hslaString","keyword","rgb","l","isValid","hsl","hsv","hwb","cmyk","rgbArray","hslArray","hsvArray","hwbArray","cmykArray","rgbaArray","hslaArray","alpha","red","green","blue","hue","saturation","lightness","saturationv","whiteness","blackness","value","cyan","magenta","yellow","black","percentString","hslString","hwbString","rgbNumber","luminosity","d","a","contrast","level","dark","light","negate","lighten","darken","saturate","desaturate","whiten","blacken","greyscale","clearer","opaquer","rotate","mix","toJSON","clone","toString","e","p","n","L","tt","H","F","x","rgb2hsl","hsl2rgb","hsl2hwb","hsl2cmyk","hsl2keyword","hsv2rgb","hsv2hwb","hsv2cmyk","hsv2keyword","hwb2rgb","hwb2hsv","hwb2cmyk","hwb2keyword","cmyk2rgb","cmyk2hsv","cmyk2hwb","cmyk2keyword","keyword2rgb","keyword2hsv","keyword2hwb","keyword2cmyk","keyword2lab","keyword2xyz","xyz2rgb","lab2xyz","lch2rgb","aliceblue","C","N","this","_","hover","mode","scales","xAxes","type","offsetGridLines","yAxes","position","elements","rectangle","borderSkipped","tooltips","callbacks","title","label","dataElementType","update","updateElement","datasetLabel","updateElementGeometry","getValueScaleId","getIndexScaleId","getValueScale","getIndexScale","_getStacks","getStackCount","getStackIndex","getRuler","min","h","calculateBarValuePixels","size","calculateBarIndexPixels","chunk","U","v","S","X","base","draw","t","r","backgroundColor","setHoverStyle","_resolveElementOptions","chart","animation","animateRotate","legendCallback","legend","labels","generateLabels","o","text","onClick","cutoutPercentage","_datasetIndex","innerRadius","calculateTotal","calculateCircumference","getMaxBorderWidth","showLines","datasetElementType","spanGaps","getPointBackgroundColor","getPointBorderColor","getPointBorderWidth","getPointRotation","calculatePointY","updateBezierControlPoints","left","bottom","scale","display","gridLines","circular","pointLabels","ticks","beginAtZero","startAngle","_updateRadius","countVisibleElements","isNaN","_computeAngle","line","tension","id","pt","Object","get","set","duration","frameDuration","cancelAnimation","requestAnimationFrame","startDigest","advance","construct","data","datasets","T","initialize","clear","stop","resize","width","ensureScalesHaveIDs","buildOrUpdateScales","options","buildOrUpdateControllers","resetElements","reset","updateLayout","updateDatasets","updateDataset","meta","render","numSteps","onAnimationProgress","transition","drawDatasets","drawDataset","_drawTooltip","tooltip","getElementAtEvent","getElementsAtEvent","intersect","getElementsAtXAxis","getElementsAtEventForMode","getDatasetAtEvent","getDatasetMeta","getVisibleDatasetCount","isDatasetVisible","generateLegend","destroyDatasetMeta","destroy","toBase64Image","initToolTip","_chart","bindEvents","unbindEvents","updateHoverStyle","eventHandler","handleEvent","updateIndex","linkScales","getDataset","getMeta","getScaleForId","createMetaDataset","createMetaData","addElements","addElementAndReset","buildOrUpdateElements","configurable","listeners","removeHoverStyle","resyncElements","insertElements","onDataPush","onDataPop","onDataShift","onDataSplice","onDataUnshift","_set","pivot","tooltipPosition","hasValue","merger","Number","angle","previous","next","model","window","modes","single","point","nearest","y","responsive","onHover","layout","padding","top","defaults","addBox","removeBox","configure","k","horizontal","z","$","W","J","it","ct","Z","plugins","_plugins","unregister","count","getAll","notify","descriptors","plugin","_invalidate","scaleLabel","major","getPadding","getTicks","mergeTicksOptions","beforeUpdate","afterUpdate","beforeSetDimensions","setDimensions","afterSetDimensions","beforeDataLimits","determineDataLimits","beforeBuildTicks","buildTicks","beforeTickToLabelConversion","convertTicksToLabels","afterTickToLabelConversion","beforeCalculateTickRotation","calculateTickRotation","afterCalculateTickRotation","beforeFit","fit","handleMargins","afterFit","isHorizontal","isFullWidth","getRightValue","getLabelForIndex","getPixelForDecimal","getBasePixel","getBaseValue","_autoSkip","V","dt","bt","xt","Et","tx1","constructors","registerScaleType","getScaleConstructor","getScaleDefaults","updateScaleDefaults","addScalesToLayout","formatters","values","linear","logarithmic","enabled","beforeTitle","afterTitle","labelColor","borderColor","labelTextColor","afterLabel","average","xPadding","getTitle","getBeforeBody","getBody","before","getAfterBody","getFooter","xAlign","rt","G","q","j","xLabel","nt","B","E","w","A","R","P","M","drawCaret","getCaretPosition","x1","drawTitle","drawBody","drawFooter","drawBackground","positioners","arc","inLabelRange","inRange","getCenterPoint","getArea","radius","height","inXRange","inYRange","roundedRect","drawPoint","clipArea","unclipArea","lineTo","noop","uid","isNullOrUndef","isArray","isObject","valueOrDefault","valueAtIndexOrDefault","callback","each","arrayEquals","_merger","_mergerIf","merge","mergeIf","extend","inherits","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","easeOutSine","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInElastic","easeOutElastic","easeInOutElastic","easeInBack","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce","effects","toLineHeight","toPadding","resolve","acquireContext","touchstart","passive","_enabled","initial","releaseContext","addEventListener","Q","removeEventListener","proxies","filler","propagate","dataset","boundary","visible","beforeDatasetDraw","boxWidth","afterBuildLabels","ctx","afterEvent","getLabels","getPixelForValue","getPixelForTick","getValueForPixel","positiveValues","getTickLimit","handleDirectionalChanges","handleTickRangeOptions","maxTicks","_getFirstTickValue","showLabelBackdrop","start","setReductions","setCenterPoint","getIndexAngle","getDistanceFromCenterForValue","getPointPosition","getPointPositionForValue","getBasePosition","lt","millisecond","common","second","minute","hour","day","week","month","quarter","year","lo","time","tickFormatFunction","getPixelForOffset","getLabelWidth","getLabelCapacity","parser","autoSkip","module","define","global","self","AzureStorage","Blob","generateAccountSignedQueryString","EMERGENCY","ALERT","CRITICAL","ERROR","WARNING","NOTICE","INFO","DEBUG","toISOString","console","Error","underscore","retryInterval","retryCount","error","locationMode","currentLocation","ArgumentError","HttpVerbs","some","HeaderConstants","AclConstants","serialize","version","ele","txt","up","ServicePropertiesConstants","parse","scheme","method","host","port","path","agent","headers","withCredentials","localAddress","call","DEFAULT_PROTOCOL","ot","D","signRequest","protocol","hostname","pathname","primaryHost","secondaryHost","outputData","outputStream","mt","et","K","gt","vt","contentMD5","st","_t","proxy","on","Tt","It","yt","At","wt","O","St","Y","setTimeout","uri","xml2jsSettings","code","response","I","isSuccessful","statusCode","body","md5","parseString","withQueryOption","withHeader","withBody","INITED","QUEUED","RUNNING","COMPLETE","CALLBACK","BlobConstants","stream","buffer","end","util","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","ID","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","parseInt","prototype","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","minor","patch","copy","fill","bytesCopied","leaseId","leaseStatus","leaseDuration","leaseState","copyId","copyStatus","copySource","copyProgress","copyCompletionTime","copyStatusDescription","copyDestinationSnapshot","publicAccess","incrementalCopy","isValidEnumValue","require_tld","test","map","contains","string","stringAllowEmpty","object","exists","function","nonEmptyArray","tableNameIsValid","browserFileIsValid","containerNameIsValid","shareNameIsValid","blobNameIsValid","blobTierNameIsValid","pageRangesAreValid","queueNameIsValid","blobTypeIsValid","shareACLIsValid","shareQuotaIsValid","replace","entries","continuationToken","nextMarker","targetLocation","contentSettings","webResource","container","blob","timeoutIntervalInMs","clientRequestTimeoutInMs","snapshotId","accessConditions","withRawResponse","isCleared","performRequest","calcContentMd5","ft","logger","callInOrder","callbackInOrder","enableReuseSocket","operationMemoryUsage","operationExpiryTime","maxBlobSize","appendPosition","initialAppendPosition","absorbConditionalErrorsOnRetry","Ct","Lt","Rt","Ot","Nt","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","etag","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","ai","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","tpl","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","sm","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","dir","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","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","xml","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","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","css","csv","html","htm","n3","conf","def","list","log","in","dsc","rtx","sgml","sgm","tsv","tr","roff","man","me","ms","ttl","uris","urls","vcard","curl","dcurl","scurl","mcurl","fly","flx","gv","spot","jad","wml","wmls","asm","cc","cxx","cpp","hh","dic","for","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","md","mkd","extensions","extension","charsets","overflow","split","join","length","ucs2","decode","encode","toASCII","toUnicode","Uint8Array","foo","enumerable","writable","isFinite","trim","Array","isBuffer","arguments","fired","name","http","constructor","jsonparse","location","navigator","clearTimeout","encodeURIComponent","objectMode","slice","deprecate","corked","Stream","write","resume","close","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","not","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","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","empty","nabla","isin","notin","ni","prod","sum","minus","lowast","radic","prop","infin","ang","and","or","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams","prefix","JSON","ns","local","charAt","events","_headers","credentials","signal","then","_body","UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE","catch","abort","forEach","_resumeFetch","TypeError","getHighWaterMark","emitExperimentalWarning","hasUnpiped","afterTransform","needTransform","transforming","writecb","writechunk","writeencoding","encoding","isBuf","done","Symbol","Buffer","inspect","depth","customInspect","undestroy","readable","dup","charCodeAt","index","criteria","sort","propertyIsEnumerable","evaluate","interpolate","escape","javascript","https","ftp","gopher","file","toLowerCase","isString","isNull","isNullOrUndefined","seen","stylize","indexOf","match","bold","italic","underline","inverse","white","grey","special","number","boolean","undefined","null","date","regexp","node","random","Bt","Ft","Ht","Vt","Wt","Xt","Qt","jt","te","ie","re","oe","ce","de","he","_e","Ee","be","Te","Ae","Re","Ce","Le","Oe","Be","default","toDate","toFloat","toInt","toBoolean","equals","matches","isEmail","isURL","isMACAddress","isIP","isFQDN","isBoolean","isAlpha","isAlphanumeric","isNumeric","isPort","isLowercase","isUppercase","isAscii","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","hasOwnProperty","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","shift","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","parent","element","isLastRootNode"],"sourceRoot":"webpack:///","sources":["node_modules\\chart.js\\dist\\Chart.min.js","src\\assets\\js\\azure-storage.blob.js"],"sourcesContent":["/*!\n * Chart.js\n * http://chartjs.org/\n * Version: 2.7.3\n *\n * Copyright 2018 Chart.js Contributors\n * Released under the MIT license\n * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md\n */\n!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).Chart=t()}}(function(){return function o(r,s,l){function u(e,t){if(!s[e]){if(!r[e]){var i=\"function\"==typeof require&&require;if(!t&&i)return i(e,!0);if(d)return d(e,!0);var n=new Error(\"Cannot find module '\"+e+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var a=s[e]={exports:{}};r[e][0].call(a.exports,function(t){return u(r[e][1][t]||t)},a,a.exports,o,r,s,l)}return s[e].exports}for(var d=\"function\"==typeof require&&require,t=0;t');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o'),a[o]&&e.push(a[o]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(l){var u=l.data;return u.labels.length&&u.datasets.length?u.labels.map(function(t,e){var i=l.getDatasetMeta(0),n=u.datasets[0],a=i.data[e],o=a&&a.custom||{},r=A.valueAtIndexOrDefault,s=l.options.elements.arc;return{text:t,fillStyle:o.backgroundColor?o.backgroundColor:r(n.backgroundColor,e,s.backgroundColor),strokeStyle:o.borderColor?o.borderColor:r(n.borderColor,e,s.borderColor),lineWidth:o.borderWidth?o.borderWidth:r(n.borderWidth,e,s.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i=Math.PI?-1:f<-Math.PI?1:0))+h,p=Math.cos(f),m=Math.sin(f),v=Math.cos(g),b=Math.sin(g),x=f<=0&&0<=g||f<=2*Math.PI&&2*Math.PI<=g,y=f<=.5*Math.PI&&.5*Math.PI<=g||f<=2.5*Math.PI&&2.5*Math.PI<=g,k=f<=-Math.PI&&-Math.PI<=g||f<=Math.PI&&Math.PI<=g,M=f<=.5*-Math.PI&&.5*-Math.PI<=g||f<=1.5*Math.PI&&1.5*Math.PI<=g,w=c/100,C=k?-1:Math.min(p*(p<0?1:w),v*(v<0?1:w)),S=M?-1:Math.min(m*(m<0?1:w),b*(b<0?1:w)),_=x?1:Math.max(p*(0');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o'),a[o]&&e.push(a[o]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var i=s.getDatasetMeta(0),n=l.datasets[0],a=i.data[e].custom||{},o=k.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor?a.backgroundColor:o(n.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor?a.borderColor:o(n.borderColor,e,r.borderColor),lineWidth:a.borderWidth?a.borderWidth:o(n.borderWidth,e,r.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i=e.numSteps?(o.callback(e.onAnimationComplete,[e],i),i.animating=!1,n.splice(a,1)):++a}}},{26:26,46:46}],24:[function(t,e,i){\"use strict\";var s=t(22),l=t(23),c=t(26),h=t(46),a=t(29),o=t(31),f=t(49),g=t(32),p=t(34),n=t(36);e.exports=function(u){function d(t){return\"top\"===t||\"bottom\"===t}u.types={},u.instances={},u.controllers={},h.extend(u.prototype,{construct:function(t,e){var i,n,a=this;(n=(i=(i=e)||{}).data=i.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],i.options=h.configMerge(c.global,c[i.type],i.options||{}),e=i;var o=f.acquireContext(t,e),r=o&&o.canvas,s=r&&r.height,l=r&&r.width;a.id=h.uid(),a.ctx=o,a.canvas=r,a.config=e,a.width=l,a.height=s,a.aspectRatio=s?l/s:null,a.options=e.options,a._bufferedRender=!1,(a.chart=a).controller=a,u.instances[a.id]=a,Object.defineProperty(a,\"data\",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),o&&r?(a.initialize(),a.update()):console.error(\"Failed to create chart: can't acquire context from the given item\")},initialize:function(){var t=this;return g.notify(t,\"beforeInit\"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),g.notify(t,\"afterInit\"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return l.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,a=i.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(h.getMaximumWidth(n))),r=Math.max(0,Math.floor(a?o/a:h.getMaximumHeight(n)));if((e.width!==o||e.height!==r)&&(n.width=e.width=o,n.height=e.height=r,n.style.width=o+\"px\",n.style.height=r+\"px\",h.retinaScale(e,i.devicePixelRatio),!t)){var s={width:o,height:r};g.notify(e,\"resize\",[s]),e.options.onResize&&e.options.onResize(e,s),e.stop(),e.update({duration:e.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||\"x-axis-\"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||\"y-axis-\"+e}),i&&(i.id=i.id||\"scale\")},buildOrUpdateScales:function(){var r=this,t=r.options,s=r.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:\"category\",dposition:\"bottom\"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:\"linear\",dposition:\"left\"}}))),t.scale&&e.push({options:t.scale,dtype:\"radialLinear\",isDefault:!0,dposition:\"chartArea\"}),h.each(e,function(t){var e=t.options,i=e.id,n=h.valueOrDefault(e.type,t.dtype);d(e.position)!==d(t.dposition)&&(e.position=t.dposition),l[i]=!0;var a=null;if(i in s&&s[i].type===n)(a=s[i]).options=e,a.ctx=r.ctx,a.chart=r;else{var o=p.getScaleConstructor(n);if(!o)return;a=new o({id:i,type:n,options:e,ctx:r.ctx,chart:r}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(r.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),r.scales=s,p.addScalesToLayout(this)},buildOrUpdateControllers:function(){var o=this,r=[],s=[];return h.each(o.data.datasets,function(t,e){var i=o.getDatasetMeta(e),n=t.type||o.config.type;if(i.type&&i.type!==n&&(o.destroyDatasetMeta(e),i=o.getDatasetMeta(e)),i.type=n,r.push(i.type),i.controller)i.controller.updateIndex(e),i.controller.linkScales();else{var a=u.controllers[i.type];if(void 0===a)throw new Error('\"'+i.type+'\" is not a chart type.');i.controller=new a(o,e),s.push(i.controller)}},o),s},resetElements:function(){var i=this;h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.reset()},i)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,i,n=this;if(t&&\"object\"==typeof t||(t={duration:t,lazy:arguments[1]}),i=(e=n).options,h.each(e.scales,function(t){o.removeBox(e,t)}),i=h.configMerge(u.defaults.global,u.defaults[e.config.type],i),e.options=e.config.options=i,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=i.tooltips,e.tooltip.initialize(),g._invalidate(n),!1!==g.notify(n,\"beforeUpdate\")){n.tooltip._data=n.data;var a=n.buildOrUpdateControllers();h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.buildOrUpdateElements()},n),n.updateLayout(),n.options.animation&&n.options.animation.duration&&h.each(a,function(t){t.reset()}),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],g.notify(n,\"afterUpdate\"),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updateLayout:function(){!1!==g.notify(this,\"beforeLayout\")&&(o.update(this,this.width,this.height),g.notify(this,\"afterScaleUpdate\"),g.notify(this,\"afterLayout\"))},updateDatasets:function(){if(!1!==g.notify(this,\"beforeDatasetsUpdate\")){for(var t=0,e=this.data.datasets.length;t=e[t].length&&e[t].push({}),!e[t][a].type||r.type&&r.type!==e[t][a].type?g.merge(e[t][a],[l.getScaleDefaults(o),r]):g.merge(e[t][a],r)}else g._merger(t,e,i,n)}})},g.where=function(t,e){if(g.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return g.each(t,function(t){e(t)&&i.push(t)}),i},g.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,a=t.length;n=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},g.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},g.niceNum=function(t,e){var i=Math.floor(g.log10(t)),n=t/Math.pow(10,i);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,i)},g.requestAnimFrame=\"undefined\"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},g.getRelativePosition=function(t,e){var i,n,a=t.originalEvent||t,o=t.target||t.srcElement,r=o.getBoundingClientRect(),s=a.touches;n=s&&0i.length){for(var l=0;le&&(e=t.length)}),e},g.color=n?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),n(t)}:function(t){return console.error(\"Color.js not found!\"),t},g.getHoverColor=function(t){return t instanceof CanvasPattern?t:g.color(t).saturate(.5).darken(.1).rgbString()}}},{26:26,3:3,34:34,46:46}],29:[function(t,e,i){\"use strict\";var n=t(46);function s(t,e){return t.native?{x:t.x,y:t.y}:n.getRelativePosition(t,e)}function l(t,e){var i,n,a,o,r;for(n=0,o=t.data.datasets.length;nt.maxHeight){o--;break}o++,l=r*s}t.labelRotation=o},afterCalculateTickRotation:function(){H.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){H.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},i=k(t._ticks),n=t.options,a=n.ticks,o=n.scaleLabel,r=n.gridLines,s=n.display,l=t.isHorizontal(),u=w(a),d=n.gridLines.tickMarkLength;if(e.width=l?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&r.drawTicks?d:0,e.height=l?s&&r.drawTicks?d:0:t.maxHeight,o.display&&s){var c=C(o)+H.options.toPadding(o.padding).height;l?e.height+=c:e.width+=c}if(a.display&&s){var h=H.longestText(t.ctx,u.font,i,t.longestTextCache),f=H.numberOfLabelLines(i),g=.5*u.size,p=t.options.ticks.padding;if(l){t.longestLabelWidth=h;var m=H.toRadians(t.labelRotation),v=Math.cos(m),b=Math.sin(m)*h+u.size*f+g*(f-1)+g;e.height=Math.min(t.maxHeight,e.height+b+p),t.ctx.font=u.font;var x=M(t.ctx,i[0],u.font),y=M(t.ctx,i[i.length-1],u.font);0!==t.labelRotation?(t.paddingLeft=\"bottom\"===n.position?v*x+3:v*g+3,t.paddingRight=\"bottom\"===n.position?v*g+3:v*y+3):(t.paddingLeft=x/2+3,t.paddingRight=y/2+3)}else a.mirror?h=0:h+=p+g,e.width=Math.min(t.maxWidth,e.width+h),t.paddingTop=u.size/2,t.paddingBottom=u.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){H.callback(this.options.afterFit,[this])},isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(H.isNullOrUndef(t))return NaN;if(\"number\"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:H.noop,getPixelForValue:H.noop,getValueForPixel:H.noop,getPixelForTick:function(t){var e=this,i=e.options.offset;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(i?0:1),1),a=n*t+e.paddingLeft;i&&(a+=n/2);var o=e.left+Math.round(a);return o+=e.isFullWidth()?e.margins.left:0}var r=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(r/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,n=e.left+Math.round(i);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((c+s.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),a&&al.height-e.height&&(c=\"bottom\");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;n=\"center\"===c?(i=function(t){return t<=h},function(t){return h=l.width-e.width/2}),a=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},r=function(t){return t<=f?\"top\":\"bottom\"},i(s.x)?(d=\"left\",a(s.x)&&(d=\"center\",c=r(s.y))):n(s.x)&&(d=\"right\",o(s.x)&&(d=\"center\",c=r(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:d,yAlign:g.yAlign?g.yAlign:c}}(this,I=function(t,e){var i=t._chart.ctx,n=2*e.yPadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,c=e.footerFontSize;n+=s*u,n+=s?(s-1)*e.titleSpacing:0,n+=s?e.titleMarginBottom:0,n+=r*d,n+=r?(r-1)*e.bodySpacing:0,n+=l?e.footerMarginTop:0,n+=l*c,n+=l?(l-1)*e.footerSpacing:0;var h=0,f=function(t){a=Math.max(a,i.measureText(t).width+h)};return i.font=R.fontString(u,e._titleFontStyle,e._titleFontFamily),R.each(e.title,f),i.font=R.fontString(d,e._bodyFontStyle,e._bodyFontFamily),R.each(e.beforeBody.concat(e.afterBody),f),h=e.displayColors?d+2:0,R.each(o,function(t){R.each(t.before,f),R.each(t.lines,f),R.each(t.after,f)}),h=0,i.font=R.fontString(c,e._footerFontStyle,e._footerFontFamily),R.each(e.footer,f),{width:a+=2*e.xPadding,height:n}}(this,C)),n=C,a=I,o=D,r=k._chart,s=n.x,l=n.y,u=n.caretSize,d=n.caretPadding,c=n.cornerRadius,h=o.xAlign,f=o.yAlign,g=u+d,p=c+d,\"right\"===h?s-=a.width:\"center\"===h&&((s-=a.width/2)+a.width>r.width&&(s=r.width-a.width),s<0&&(s=0)),\"top\"===f?l+=g:l-=\"bottom\"===f?a.height+g:a.height/2,\"center\"===f?\"left\"===h?s+=g:\"right\"===h&&(s-=g):\"left\"===h?s-=p:\"right\"===h&&(s+=p),P={x:s,y:l}}else C.opacity=0;return C.xAlign=D.xAlign,C.yAlign=D.yAlign,C.x=P.x,C.y=P.y,C.width=I.width,C.height=I.height,C.caretX=A.x,C.caretY=A.y,k._model=C,t&&M.custom&&M.custom.call(k,C),k},drawCaret:function(t,e){var i=this._chart.ctx,n=this._view,a=this.getCaretPosition(t,e,n);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,i){var n,a,o,r,s,l,u=i.caretSize,d=i.cornerRadius,c=i.xAlign,h=i.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if(\"center\"===h)s=g+m/2,l=\"left\"===c?(a=(n=f)-u,o=n,r=s+u,s-u):(a=(n=f+p)+u,o=n,r=s-u,s+u);else if(o=(n=\"left\"===c?(a=f+d+u)-u:\"right\"===c?(a=f+p-d-u)-u:(a=i.caretX)-u,a+u),\"top\"===h)s=(r=g)-u,l=r;else{s=(r=g+m)+u,l=r;var v=o;o=n,n=v}return{x1:n,x2:a,x3:o,y1:r,y2:s,y3:l}},drawTitle:function(t,e,i,n){var a=e.title;if(a.length){i.textAlign=e._titleAlign,i.textBaseline=\"top\";var o,r,s=e.titleFontSize,l=e.titleSpacing;for(i.fillStyle=h(e.titleFontColor,n),i.font=R.fontString(s,e._titleFontStyle,e._titleFontFamily),o=0,r=a.length;o=i.innerRadius&&o<=i.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin=\"bevel\",e.borderWidth&&t.stroke()}})},{26:26,27:27,46:46}],38:[function(t,e,i){\"use strict\";var n=t(26),a=t(27),d=t(46),c=n.global;n._set(\"global\",{elements:{line:{tension:.4,backgroundColor:c.defaultColor,borderWidth:3,borderColor:c.defaultColor,borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,i,n,a=this._view,o=this._chart.ctx,r=a.spanGaps,s=this._children.slice(),l=c.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||l.borderDash),o.lineDashOffset=a.borderDashOffset||l.borderDashOffset,o.lineJoin=a.borderJoinStyle||l.borderJoinStyle,o.lineWidth=a.borderWidth||l.borderWidth,o.strokeStyle=a.borderColor||c.defaultColor,o.beginPath(),u=-1,t=0;t=t.left&&1.01*t.right>=i.x&&i.y>=t.top&&1.01*t.bottom>=i.y)&&(n.strokeStyle=e.borderColor||c,n.lineWidth=d.valueOrDefault(e.borderWidth,u.global.elements.point.borderWidth),n.fillStyle=e.backgroundColor||c,d.canvas.drawPoint(n,a,r,s,l,o))}})},{26:26,27:27,46:46}],40:[function(t,e,i){\"use strict\";var n=t(26),a=t(27);function l(t){return void 0!==t._view.width}function o(t){var e,i,n,a,o=t._view;if(l(t)){var r=o.width/2;e=o.x-r,i=o.x+r,n=Math.min(o.y,o.base),a=Math.max(o.y,o.base)}else{var s=o.height/2;e=Math.min(o.x,o.base),i=Math.max(o.x,o.base),n=o.y-s,a=o.y+s}return{left:e,top:n,right:i,bottom:a}}n._set(\"global\",{elements:{rectangle:{backgroundColor:n.global.defaultColor,borderColor:n.global.defaultColor,borderSkipped:\"bottom\",borderWidth:0}}}),e.exports=a.extend({draw:function(){var t,e,i,n,a,o,r,s=this._chart.ctx,l=this._view,u=l.borderWidth;if(r=l.horizontal?(t=l.base,e=l.x,i=l.y-l.height/2,n=l.y+l.height/2,a=t=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}return i},inLabelRange:function(t,e){if(!this._view)return!1;var i=o(this);return l(this)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,i=this._view;return e=l(this)?(t=i.x,(i.y+i.base)/2):(t=(i.x+i.base)/2,i.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{26:26,27:27}],41:[function(t,e,i){\"use strict\";e.exports={},e.exports.Arc=t(37),e.exports.Line=t(38),e.exports.Point=t(39),e.exports.Rectangle=t(40)},{37:37,38:38,39:39,40:40}],42:[function(t,e,i){\"use strict\";var n=t(43);i=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,i,n,a,o){if(o){var r=Math.min(o,a/2-1e-7,n/2-1e-7);t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.arcTo(e+n,i,e+n,i+r,r),t.lineTo(e+n,i+a-r),t.arcTo(e+n,i+a,e+n-r,i+a,r),t.lineTo(e+r,i+a),t.arcTo(e,i+a,e,i+a-r,r),t.lineTo(e,i+r),t.arcTo(e,i,e+r,i,r),t.closePath(),t.moveTo(e,i)}else t.rect(e,i,n,a)},drawPoint:function(t,e,i,n,a,o){var r,s,l,u,d,c;if(o=o||0,!e||\"object\"!=typeof e||\"[object HTMLImageElement]\"!==(r=e.toString())&&\"[object HTMLCanvasElement]\"!==r){if(!(isNaN(i)||i<=0)){switch(t.save(),t.translate(n,a),t.rotate(o*Math.PI/180),t.beginPath(),e){default:t.arc(0,0,i,0,2*Math.PI),t.closePath();break;case\"triangle\":d=(s=3*i/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(-s/2,d/3),t.lineTo(s/2,d/3),t.lineTo(0,-2*d/3),t.closePath();break;case\"rect\":c=1/Math.SQRT2*i,t.rect(-c,-c,2*c,2*c);break;case\"rectRounded\":var h=i/Math.SQRT2,f=-h,g=-h,p=Math.SQRT2*i;this.roundedRect(t,f,g,p,p,.425*i);break;case\"rectRot\":c=1/Math.SQRT2*i,t.moveTo(-c,0),t.lineTo(0,c),t.lineTo(c,0),t.lineTo(0,-c),t.closePath();break;case\"cross\":t.moveTo(0,i),t.lineTo(0,-i),t.moveTo(-i,0),t.lineTo(i,0);break;case\"crossRot\":l=Math.cos(Math.PI/4)*i,u=Math.sin(Math.PI/4)*i,t.moveTo(-l,-u),t.lineTo(l,u),t.moveTo(-l,u),t.lineTo(l,-u);break;case\"star\":t.moveTo(0,i),t.lineTo(0,-i),t.moveTo(-i,0),t.lineTo(i,0),l=Math.cos(Math.PI/4)*i,u=Math.sin(Math.PI/4)*i,t.moveTo(-l,-u),t.lineTo(l,u),t.moveTo(-l,u),t.lineTo(l,-u);break;case\"line\":t.moveTo(-i,0),t.lineTo(i,0);break;case\"dash\":t.moveTo(0,0),t.lineTo(i,0)}t.fill(),t.stroke(),t.restore()}}else t.drawImage(e,n-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,i,n){if(i.steppedLine)return\"after\"===i.steppedLine&&!n||\"after\"!==i.steppedLine&&n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y),void t.lineTo(i.x,i.y);i.tension?t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):t.lineTo(i.x,i.y)}};n.clear=i.clear,n.drawRoundedRectangle=function(t){t.beginPath(),i.roundedRect.apply(i,arguments)}},{43:43}],43:[function(t,e,i){\"use strict\";var n,d={noop:function(){},uid:(n=0,function(){return n++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&\"[object Object]\"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,i){return d.valueOrDefault(d.isArray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&\"function\"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,n){var a,o,r;if(d.isArray(t))if(o=t.length,n)for(a=o-1;0<=a;a--)e.call(i,t[a],a);else for(a=0;a
';var a=e.childNodes[0],o=e.childNodes[1];e._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var r=function(){e._reset(),t()};return x(a,\"scroll\",r.bind(a,\"expand\")),x(o,\"scroll\",r.bind(o,\"shrink\")),e}((o=!(n=function(){if(c.resizer)return t(y(\"resize\",i))}),r=[],function(){r=Array.prototype.slice.call(arguments),a=a||this,o||(o=!0,f.requestAnimFrame.call(window,function(){o=!1,n.apply(a,r)}))}));l=function(){if(c.resizer){var t=e.parentNode;t&&t!==h.parentNode&&t.insertBefore(h,t.firstChild),h._reset()}},u=(s=e)[g]||(s[g]={}),d=u.renderProxy=function(t){t.animationName===v&&l()},f.each(b,function(t){x(s,t,d)}),u.reflow=!!s.offsetParent,s.classList.add(m)}function o(t){var e,i,n,a=t[g]||{},o=a.resizer;delete a.resizer,i=(e=t)[g]||{},(n=i.renderProxy)&&(f.each(b,function(t){r(e,t,n)}),delete i.renderProxy),e.classList.remove(m),o&&o.parentNode&&o.parentNode.removeChild(o)}e.exports={_enabled:\"undefined\"!=typeof window&&\"undefined\"!=typeof document,initialize:function(){var t,e,i,n=\"from{opacity:0.99}to{opacity:1}\";e=\"@-webkit-keyframes \"+v+\"{\"+n+\"}@keyframes \"+v+\"{\"+n+\"}.\"+m+\"{-webkit-animation:\"+v+\" 0.001s;animation:\"+v+\" 0.001s;}\",i=(t=this)._style||document.createElement(\"style\"),t._style||(e=\"/* Chart.js */\\n\"+e,(t._style=i).setAttribute(\"type\",\"text/css\"),document.getElementsByTagName(\"head\")[0].appendChild(i)),i.appendChild(document.createTextNode(e))},acquireContext:function(t,e){\"string\"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getContext&&t.getContext(\"2d\");return i&&i.canvas===t?(function(t,e){var i=t.style,n=t.getAttribute(\"height\"),a=t.getAttribute(\"width\");if(t[g]={initial:{height:n,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||\"block\",null===a||\"\"===a){var o=l(t,\"width\");void 0!==o&&(t.width=o)}if(null===n||\"\"===n)if(\"\"===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var r=l(t,\"height\");void 0!==o&&(t.height=r)}}(t,e),i):null},releaseContext:function(t){var i=t.canvas;if(i[g]){var n=i[g].initial;[\"height\",\"width\"].forEach(function(t){var e=n[t];f.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),f.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[g]}},addEventListener:function(o,t,r){var e=o.canvas;if(\"resize\"!==t){var i=r[g]||(r[g]={});x(e,t,(i.proxies||(i.proxies={}))[o.id+\"_\"+t]=function(t){var e,i,n,a;r((i=o,n=s[(e=t).type]||e.type,a=f.getRelativePosition(e,i),y(n,i,a.x,a.y,e)))})}else a(e,r,o)},removeEventListener:function(t,e,i){var n=t.canvas;if(\"resize\"!==e){var a=((i[g]||{}).proxies||{})[t.id+\"_\"+e];a&&r(n,e,a)}else o(n)}},f.addEvent=x,f.removeEvent=r},{46:46}],49:[function(t,e,i){\"use strict\";var n=t(46),a=t(47),o=t(48),r=o._enabled?o:a;e.exports=n.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{46:46,47:47,48:48}],50:[function(t,e,i){\"use strict\";e.exports={},e.exports.filler=t(51),e.exports.legend=t(52),e.exports.title=t(53)},{51:51,52:52,53:53}],51:[function(t,e,i){\"use strict\";var u=t(26),h=t(41),d=t(46);u._set(\"global\",{plugins:{filler:{propagate:!0}}});var f={dataset:function(t){var e=t.fill,i=t.chart,n=i.getDatasetMeta(e),a=n&&i.isDatasetVisible(e)&&n.dataset._children||[],o=a.length||0;return o?function(t,e){return e');for(var i=0;i'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push(\"\");return e.push(\"\"),e.join(\"\")}});var r=n.extend({initialize:function(t){D.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:o,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:function(){var e=this,i=e.options.labels||{},t=D.callback(i.generateLabels,[e.chart],e)||[];i.filter&&(t=t.filter(function(t){return i.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:o,beforeFit:o,fit:function(){var n=this,t=n.options,a=t.labels,e=t.display,o=n.ctx,i=_.global,r=D.valueOrDefault,s=r(a.fontSize,i.defaultFontSize),l=r(a.fontStyle,i.defaultFontStyle),u=r(a.fontFamily,i.defaultFontFamily),d=D.fontString(s,l,u),c=n.legendHitBoxes=[],h=n.minSize,f=n.isHorizontal();if(h.height=f?(h.width=n.maxWidth,e?10:0):(h.width=e?10:0,n.maxHeight),e)if(o.font=d,f){var g=n.lineWidths=[0],p=n.legendItems.length?s+a.padding:0;o.textAlign=\"left\",o.textBaseline=\"top\",D.each(n.legendItems,function(t,e){var i=P(a,s)+s/2+o.measureText(t.text).width;g[g.length-1]+i+a.padding>=n.width&&(p+=s+a.padding,g[g.length]=n.left),c[e]={left:0,top:0,width:i,height:s},g[g.length-1]+=i+a.padding}),h.height+=p}else{var m=a.padding,v=n.columnWidths=[],b=a.padding,x=0,y=0,k=s+m;D.each(n.legendItems,function(t,e){var i=P(a,s)+s/2+o.measureText(t.text).width;y+k>h.height&&(b+=x+a.padding,v.push(x),y=x=0),x=Math.max(x,i),y+=k,c[e]={left:0,top:0,width:i,height:s}}),b+=x,v.push(x),h.width+=b}n.width=h.width,n.height=h.height},afterFit:o,isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},draw:function(){var c=this,h=c.options,f=h.labels,g=_.global,p=g.elements.line,m=c.width,v=c.lineWidths;if(h.display){var b,x=c.ctx,y=D.valueOrDefault,t=y(f.fontColor,g.defaultFontColor),k=y(f.fontSize,g.defaultFontSize),e=y(f.fontStyle,g.defaultFontStyle),i=y(f.fontFamily,g.defaultFontFamily),n=D.fontString(k,e,i);x.textAlign=\"left\",x.textBaseline=\"middle\",x.lineWidth=.5,x.strokeStyle=t,x.fillStyle=t,x.font=n;var M=P(f,k),w=c.legendHitBoxes,C=c.isHorizontal();b=C?{x:c.left+(m-v[0])/2,y:c.top+f.padding,line:0}:{x:c.left+f.padding,y:c.top+f.padding,line:0};var S=k+f.padding;D.each(c.legendItems,function(t,e){var i,n,a,o,r,s=x.measureText(t.text).width,l=M+k/2+s,u=b.x,d=b.y;C?m<=u+l&&(d=b.y+=S,b.line++,u=b.x=c.left+(m-v[b.line])/2):d+S>c.bottom&&(u=b.x=u+c.columnWidths[b.line]+f.padding,d=b.y=c.top+f.padding,b.line++),function(t,e,i){if(!(isNaN(M)||M<=0)){x.save(),x.fillStyle=y(i.fillStyle,g.defaultColor),x.lineCap=y(i.lineCap,p.borderCapStyle),x.lineDashOffset=y(i.lineDashOffset,p.borderDashOffset),x.lineJoin=y(i.lineJoin,p.borderJoinStyle),x.lineWidth=y(i.lineWidth,p.borderWidth),x.strokeStyle=y(i.strokeStyle,g.defaultColor);var n=0===y(i.lineWidth,p.borderWidth);if(x.setLineDash&&x.setLineDash(y(i.lineDash,p.borderDash)),h.labels&&h.labels.usePointStyle){var a=k*Math.SQRT2/2,o=a/Math.SQRT2,r=t+o,s=e+o;D.canvas.drawPoint(x,i.pointStyle,a,r,s)}else n||x.strokeRect(t,e,M,k),x.fillRect(t,e,M,k);x.restore()}}(u,d,t),w[e].left=u,w[e].top=d,i=t,n=s,o=M+(a=k/2)+u,r=d+a,x.fillText(i.text,o,r),i.hidden&&(x.beginPath(),x.lineWidth=2,x.moveTo(o,r),x.lineTo(o+n,r),x.stroke()),C?b.x+=l+f.padding:b.y+=S})}},handleEvent:function(t){var e=this,i=e.options,n=\"mouseup\"===t.type?\"click\":t.type,a=!1;if(\"mousemove\"===n){if(!i.onHover)return}else{if(\"click\"!==n)return;if(!i.onClick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&o<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if(\"click\"===n){i.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if(\"mousemove\"===n){i.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}});function s(t,e){var i=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,i,e),a.addBox(t,i),t.legend=i}e.exports={id:\"legend\",_element:r,beforeInit:function(t){var e=t.options.legend;e&&s(t,e)},beforeUpdate:function(t){var e=t.options.legend,i=t.legend;e?(D.mergeIf(e,_.global.legend),i?(a.configure(t,i,e),i.options=e):s(t,e)):i&&(a.removeBox(t,i),delete t.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}}},{26:26,27:27,31:31,46:46}],53:[function(t,e,i){\"use strict\";var M=t(26),n=t(27),w=t(46),a=t(31),o=w.noop;M._set(\"global\",{title:{display:!1,fontStyle:\"bold\",fullWidth:!0,lineHeight:1.2,padding:10,position:\"top\",text:\"\",weight:2e3}});var r=n.extend({initialize:function(t){w.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:o,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var t=this,e=w.valueOrDefault,i=t.options,n=i.display,a=e(i.fontSize,M.global.defaultFontSize),o=t.minSize,r=w.isArray(i.text)?i.text.length:1,s=w.options.toLineHeight(i.lineHeight,a),l=n?r*s+2*i.padding:0;t.isHorizontal()?(o.width=t.maxWidth,o.height=l):(o.width=l,o.height=t.maxHeight),t.width=o.width,t.height=o.height},afterFit:o,isHorizontal:function(){var t=this.options.position;return\"top\"===t||\"bottom\"===t},draw:function(){var t=this,e=t.ctx,i=w.valueOrDefault,n=t.options,a=M.global;if(n.display){var o,r,s,l=i(n.fontSize,a.defaultFontSize),u=i(n.fontStyle,a.defaultFontStyle),d=i(n.fontFamily,a.defaultFontFamily),c=w.fontString(l,u,d),h=w.options.toLineHeight(n.lineHeight,l),f=h/2+n.padding,g=0,p=t.top,m=t.left,v=t.bottom,b=t.right;e.fillStyle=i(n.fontColor,a.defaultFontColor),e.font=c,t.isHorizontal()?(r=m+(b-m)/2,s=p+f,o=b-m):(r=\"left\"===n.position?m+f:b-f,s=p+(v-p)/2,o=v-p,g=Math.PI*(\"left\"===n.position?-.5:.5)),e.save(),e.translate(r,s),e.rotate(g),e.textAlign=\"center\",e.textBaseline=\"middle\";var x=n.text;if(w.isArray(x))for(var y=0,k=0;kr.max&&(r.max=i))})});r.min=isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=isFinite(r.max)&&!isNaN(r.max)?r.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;if(this.isHorizontal())t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.width/50));else{var i=c.valueOrDefault(e.fontSize,n.global.defaultFontSize);t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this,i=e.start,n=+e.getRightValue(t),a=e.end-i;return e.isHorizontal()?e.left+e.width/a*(n-i):e.bottom-e.height/a*(n-i)},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=i?e.width:e.height,a=(i?t-e.left:e.bottom-t)/n;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});a.registerScaleType(\"linear\",i,e)}},{26:26,34:34,35:35,46:46}],56:[function(t,e,i){\"use strict\";var c=t(46),n=t(33);e.exports=function(t){var e=c.noop;t.LinearScaleBase=n.extend({getRightValue:function(t){return\"string\"==typeof t?+t:n.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var i=c.sign(t.min),n=c.sign(t.max);i<0&&n<0?t.max=0:0=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,i=t.getTickLimit(),n={maxTicks:i=Math.max(2,i),min:e.min,max:e.max,precision:e.precision,stepSize:c.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=function(t,e){var i,n,a,o=[];if(t.stepSize&&0r.max&&(r.max=i),0!==i&&(null===r.minNotZero||ir.r&&(r.r=g.end,s.r=h),p.startr.b&&(r.b=p.end,s.b=h)}t.setReductions(o,r,s)}(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,i){var n=e.l/Math.sin(i.l),a=Math.max(e.r-this.width,0)/Math.sin(i.r),o=-e.t/Math.cos(i.t),r=-Math.max(e.b-this.height,0)/Math.cos(i.b);n=s(n),a=s(a),o=s(o),r=s(r),this.drawingArea=Math.min(Math.round(t-(n+a)/2),Math.round(t-(o+r)/2)),this.setCenterPoint(n,a,o,r)},setCenterPoint:function(t,e,i,n){var a=this,o=a.width-e-a.drawingArea,r=t+a.drawingArea,s=i+a.drawingArea,l=a.height-n-a.drawingArea;a.xCenter=Math.round((r+o)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/b(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(i)*e)+this.xCenter,y:Math.round(Math.sin(i)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0>1)-1]||null,o=t[n],!a)return{lo:null,hi:o};if(o[e]i))return{lo:a,hi:o};s=n-1}}return{lo:o,hi:null}}(t,e,i),o=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-o[e],l=s?(i-o[e])/s:0,u=(r[n]-o[n])*l;return o[n]+u}function C(t,e){var i=e.parser,n=e.parser||e.format;return\"function\"==typeof i?i(t):\"string\"==typeof t&&\"string\"==typeof n?x(t,n):(t instanceof x||(t=x(t)),t.isValid()?t:\"function\"==typeof n?n(t):t)}function S(t,e){if(m.isNullOrUndef(t))return null;var i=e.options.time,n=C(e.getRightValue(t),i);return n.isValid()?(i.round&&n.startOf(i.round),n.valueOf()):null}function _(t){for(var e=k.indexOf(t)+1,i=k.length;e=k.indexOf(e);a--)if(o=k[a],y[o].common&&r.as(o)>=t.length)return o;return k[e?k.indexOf(e):0]}(b,m.minUnit,h.min,h.max),h._majorUnit=_(h._unit),h._table=function(t,e,i,n){if(\"linear\"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var a,o,r,s,l,u=[],d=[e];for(a=0,o=t.length;a 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\n exports.xmlbuilder = require('xmlbuilder');\r\n exports.xml2js = require('xml2js');\r\n\r\n exports.Logger = require('./diagnostics/logger');\r\n exports.WebResource = require('./http/webresource');\r\n\r\n // Services\r\n exports.StorageServiceClient = require('./services/storageserviceclient');\r\n\r\n // Models\r\n exports.ServicePropertiesResult = require('./models/servicepropertiesresult');\r\n exports.ServiceStatsParser = require('./models/servicestatsparser');\r\n exports.AclResult = require('./models/aclresult');\r\n exports.TokenCredential = require('./models/tokencredential');\r\n\r\n // Filters\r\n exports.LinearRetryPolicyFilter = require('./filters/linearretrypolicyfilter');\r\n exports.ExponentialRetryPolicyFilter = require('./filters/exponentialretrypolicyfilter');\r\n exports.RetryPolicyFilter = require('./filters/retrypolicyfilter');\r\n\r\n // Signing\r\n exports.SharedAccessSignature = require('./signing/sharedaccesssignature');\r\n exports.SharedKey = require('./signing/sharedkey');\r\n\r\n // Streams\r\n exports.BatchOperation = require('./streams/batchoperation');\r\n exports.ChunkAllocator = require('./streams/chunkallocator');\r\n exports.ChunkStream = require('./streams/chunkstream');\r\n exports.ChunkStreamWithStream = require('./streams/chunkstreamwithstream');\r\n exports.SpeedSummary = require('./streams/speedsummary');\r\n exports.BufferStream = require('./streams/bufferstream');\r\n\r\n // Utilities\r\n exports.Constants = require('./util/constants');\r\n exports.SR = require('./util/sr');\r\n exports.date = require('./util/date');\r\n exports.ISO8061Date = require('./util/iso8061date');\r\n exports.util = require('./util/util');\r\n exports.validate = require('./util/validate');\r\n exports.StorageUtilities = require('./util/storageutilities');\r\n exports.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\n function 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\n Logger.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\n Logger.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\n Logger.prototype.log = function (level, msg) {\r\n this.loggerFunction(level, msg);\r\n };\r\n\r\n Logger.prototype.emergency = function(msg) {\r\n this.log(Logger.LogLevels.EMERGENCY, msg);\r\n };\r\n\r\n Logger.prototype.critical = function(msg) {\r\n this.log(Logger.LogLevels.CRITICAL, msg);\r\n };\r\n\r\n Logger.prototype.alert = function(msg) {\r\n this.log(Logger.LogLevels.ALERT, msg);\r\n };\r\n\r\n Logger.prototype.error = function(msg) {\r\n this.log(Logger.LogLevels.ERROR, msg);\r\n };\r\n\r\n Logger.prototype.warn = function(msg) {\r\n this.log(Logger.LogLevels.WARNING, msg);\r\n };\r\n\r\n Logger.prototype.notice = function(msg) {\r\n this.log(Logger.LogLevels.NOTICE, msg);\r\n };\r\n\r\n Logger.prototype.info = function(msg) {\r\n this.log(Logger.LogLevels.INFO, msg);\r\n };\r\n\r\n Logger.prototype.debug = function(msg) {\r\n this.log(Logger.LogLevels.DEBUG, msg);\r\n };\r\n\r\n Logger.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\n module.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\n var util = require('util');\r\n var _ = require('underscore');\r\n\r\n function captureStackTrace(targetObject, constructorOpt) {\r\n if (Error.captureStackTrace) {\r\n Error.captureStackTrace(targetObject, constructorOpt);\r\n }\r\n }\r\n\r\n function 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\n util.inherits(ArgumentError, Error);\r\n\r\n function 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\n util.inherits(ArgumentNullError, Error);\r\n\r\n function 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\n util.inherits(StorageError, Error);\r\n\r\n function 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\n util.inherits(TimeoutError, Error);\r\n\r\n module.exports.ArgumentError = ArgumentError;\r\n module.exports.ArgumentNullError = ArgumentNullError;\r\n module.exports.StorageError = StorageError;\r\n module.exports.TimeoutError = TimeoutError;\r\n module.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\n var 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\n function 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\n ExponentialRetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL = 1000 * 30;\r\n\r\n /**\r\n * Represents the default client retry count.\r\n */\r\n ExponentialRetryPolicyFilter.DEFAULT_CLIENT_RETRY_COUNT = 3;\r\n\r\n /**\r\n * Represents the default maximum retry interval, in milliseconds.\r\n */\r\n ExponentialRetryPolicyFilter.DEFAULT_CLIENT_MAX_RETRY_INTERVAL = 1000 * 90;\r\n\r\n /**\r\n * Represents the default minimum retry interval, in milliseconds.\r\n */\r\n ExponentialRetryPolicyFilter.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\n ExponentialRetryPolicyFilter.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\n ExponentialRetryPolicyFilter.prototype.handle = function (requestOptions, next) {\r\n RetryPolicyFilter._handle(this, requestOptions, next);\r\n };\r\n\r\n module.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\n var 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\n function 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\n LinearRetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL = 1000 * 30;\r\n\r\n /**\r\n * Represents the default client retry count.\r\n */\r\n LinearRetryPolicyFilter.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\n LinearRetryPolicyFilter.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\n LinearRetryPolicyFilter.prototype.handle = function (requestOptions, next) {\r\n RetryPolicyFilter._handle(this, requestOptions, next);\r\n };\r\n\r\n module.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\n var azureutil = require('../util/util');\r\n var Constants = require('../util/constants');\r\n var StorageUtilities = require('../util/storageutilities');\r\n var 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\n function 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\n RetryPolicyFilter.DEFAULT_CLIENT_RETRY_INTERVAL = 1000 * 30;\r\n\r\n /**\r\n * Represents the default client retry count.\r\n */\r\n RetryPolicyFilter.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\n RetryPolicyFilter.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\n RetryPolicyFilter._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\n RetryPolicyFilter._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\n module.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\n var azureutil = require('../util/util');\r\n var SR = require('../util/sr');\r\n var Constants = require('../util/constants');\r\n var errors = require('../errors/errors');\r\n var ArgumentError = errors.ArgumentError;\r\n var HeaderConstants = Constants.HeaderConstants;\r\n var HttpConstants = Constants.HttpConstants;\r\n var HttpConstants = Constants.HttpConstants;\r\n var HttpVerbs = HttpConstants.HttpVerbs;\r\n\r\n function 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\n function 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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n WebResource.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\n function 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\n WebResource.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\n module.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\n var MD5 = require('md5.js');\r\n\r\n var Md5Wrapper = function () {\r\n };\r\n\r\n Md5Wrapper.prototype.createMd5Hash = function() {\r\n return new MD5();\r\n };\r\n\r\n module.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\n var Constants = require('../util/constants');\r\n var HeaderConstants = Constants.HeaderConstants;\r\n\r\n exports.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\n var _ = require('underscore');\r\n var xmlbuilder = require('xmlbuilder');\r\n\r\n var azureutil = require('../util/util');\r\n var ISO8061Date = require('../util/iso8061date');\r\n var Constants = require('../util/constants');\r\n var AclConstants = Constants.AclConstants;\r\n\r\n exports = module.exports;\r\n\r\n /**\r\n * Builds an XML representation for container acl permissions.\r\n *\r\n * @param {Object.} entity The signed identifiers.\r\n * @return {string} The XML container acl permissions.\r\n */\r\n exports.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\n exports.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\n var _ = require('underscore');\r\n var xmlbuilder = require('xmlbuilder');\r\n\r\n var Constants = require('../util/constants');\r\n var ServicePropertiesConstants = Constants.ServicePropertiesConstants;\r\n\r\n exports = module.exports;\r\n\r\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n exports.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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n exports.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\n exports = module.exports;\r\n\r\n exports.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\n function 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\n TokenCredential.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\n TokenCredential.prototype.set = function (token) {\r\n this.token = token;\r\n };\r\n\r\n module.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\n var azureCommon = require('../common.browser');\r\n var Duplex = require('stream').Duplex;\r\n var extend = require('extend');\r\n var http = require('http');\r\n var https = require('https');\r\n var url = require('url');\r\n var 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\n function 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\n util.inherits(Request, Duplex);\r\n\r\n Request.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\n Request.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\n Request.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\n Request.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\n Request.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\n Request.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\n Request.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\n Request.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\n Request.prototype.setLocation = function (uri) {\r\n this.uri = uri;\r\n return this;\r\n };\r\n\r\n Request.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\n Request.prototype._write = function (chunk, encoding, callback) {\r\n this.httpRequest.write(chunk);\r\n callback();\r\n };\r\n\r\n Request.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\n function 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\n req.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\n module.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\n var util = require('util');\r\n\r\n var azureUtil = require('../util/util');\r\n var errors = require('../errors/errors');\r\n var SR = require('../util/sr');\r\n var Constants = require('../util/constants');\r\n\r\n exports = module.exports;\r\n\r\n /**\r\n * The default protocol.\r\n */\r\n exports.DEFAULT_PROTOCOL = Constants.HTTPS;\r\n\r\n var NoMatchError = function (msg, constr) {\r\n errors.captureStackTrace(this, constr || this);\r\n this.message = msg || 'Error';\r\n };\r\n\r\n util.inherits(NoMatchError, Error);\r\n NoMatchError.prototype.name = 'NoMatchError';\r\n\r\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n var request = require('../request-wrapper');\r\n var url = require('url');\r\n var qs = require('querystring');\r\n var util = require('util');\r\n var xml2js = require('xml2js');\r\n var events = require('events');\r\n var _ = require('underscore');\r\n var guid = require('uuid');\r\n var os = require('os');\r\n var extend = require('extend');\r\n var Parser = require('json-edm-parser');\r\n\r\n var Md5Wrapper = require('../md5-wrapper');\r\n var azureutil = require('../util/util');\r\n var validate = require('../util/validate');\r\n var SR = require('../util/sr');\r\n var WebResource = require('../http/webresource');\r\n var BufferStream = require('../streams/bufferstream.js');\r\n\r\n var ServiceSettings = require('./servicesettings');\r\n var StorageServiceSettings = require('./storageservicesettings');\r\n var Constants = require('../util/constants');\r\n var StorageUtilities = require('../util/storageutilities');\r\n var ServicePropertiesResult = require('../models/servicepropertiesresult');\r\n var TableUtilities = require('../../services/table/tableutilities');\r\n\r\n var SharedKey = require('../signing/sharedkey');\r\n var SharedAccessSignature = require('../signing/sharedaccesssignature');\r\n var TokenSigner = require('../signing/tokensigner');\r\n\r\n var HeaderConstants = Constants.HeaderConstants;\r\n var QueryStringConstants = Constants.QueryStringConstants;\r\n var HttpResponseCodes = Constants.HttpConstants.HttpResponseCodes;\r\n var StorageServiceClientConstants = Constants.StorageServiceClientConstants;\r\n var defaultRequestLocationMode = Constants.RequestLocationMode.PRIMARY_ONLY;\r\n var RequestLocationMode = Constants.RequestLocationMode;\r\n\r\n var Logger = require('../diagnostics/logger');\r\n var errors = require('../errors/errors');\r\n var ArgumentError = errors.ArgumentError;\r\n var ArgumentNullError = errors.ArgumentNullError;\r\n var TimeoutError = errors.TimeoutError;\r\n var 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\n function 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\n util.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\n StorageServiceClient._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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient._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\n StorageServiceClient._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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient._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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient._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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n StorageServiceClient.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\n module.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\n var _ = require('underscore');\r\n var url = require('url');\r\n\r\n var util = require('../util/util');\r\n var ServiceSettings = require('./servicesettings');\r\n var Constants = require('../util/constants');\r\n var StorageServiceClientConstants = Constants.StorageServiceClientConstants;\r\n var ConnectionStringKeys = Constants.ConnectionStringKeys;\r\n var Validate = require('../util/validate');\r\n var SR = require('../util/sr');\r\n var TokenCredential = require('../models/tokencredential');\r\n\r\n var useDevelopmentStorageSetting = ServiceSettings.setting(ConnectionStringKeys.USE_DEVELOPMENT_STORAGE_NAME, true);\r\n var developmentStorageProxyUriSetting = ServiceSettings.settingWithFunc(ConnectionStringKeys.DEVELOPMENT_STORAGE_PROXY_URI_NAME, Validate.isValidUri);\r\n var defaultEndpointsProtocolSetting = ServiceSettings.setting(ConnectionStringKeys.DEFAULT_ENDPOINTS_PROTOCOL_NAME, 'http', 'https');\r\n var accountNameSetting = ServiceSettings.setting(ConnectionStringKeys.ACCOUNT_NAME_NAME);\r\n var accountKeySetting = ServiceSettings.settingWithFunc(ConnectionStringKeys.ACCOUNT_KEY_NAME, Validate.isBase64Encoded);\r\n var sasSetting = ServiceSettings.settingWithFunc(ConnectionStringKeys.SHARED_ACCESS_SIGNATURE_NAME, _.isString);\r\n var tokenSetting = ServiceSettings.settingWithFunc('token', function (object) {return object instanceof TokenCredential;});\r\n\r\n var blobEndpointSetting = ServiceSettings.settingWithFunc(\r\n ConnectionStringKeys.BLOB_ENDPOINT_NAME,\r\n Validate.isValidHost\r\n );\r\n\r\n var queueEndpointSetting = ServiceSettings.settingWithFunc(\r\n ConnectionStringKeys.QUEUE_ENDPOINT_NAME,\r\n Validate.isValidHost\r\n );\r\n\r\n var tableEndpointSetting = ServiceSettings.settingWithFunc(\r\n ConnectionStringKeys.TABLE_ENDPOINT_NAME,\r\n Validate.isValidHost\r\n );\r\n\r\n var fileEndpointSetting = ServiceSettings.settingWithFunc(\r\n ConnectionStringKeys.FILE_ENDPOINT_NAME,\r\n Validate.isValidHost\r\n );\r\n\r\n var endpointSuffixSetting = ServiceSettings.settingWithFunc(\r\n ConnectionStringKeys.ENDPOINT_SUFFIX_NAME,\r\n Validate.isValidHost\r\n );\r\n\r\n var 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\n function 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\n StorageServiceSettings.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\n StorageServiceSettings.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\n StorageServiceSettings.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\n StorageServiceSettings.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\n StorageServiceSettings.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\n StorageServiceSettings._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\n StorageServiceSettings.validKeys = validKeys;\r\n\r\n exports = 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\n var Constants = require('./../util/constants');\r\n var 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\n function 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\n SharedAccessSignature.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\n module.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\n function 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\n module.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\n var Constants = require('../util/constants');\r\n var 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\n function 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\n TokenSigner.prototype.signRequest = function (webResource, callback) {\r\n webResource.withHeader(HeaderConstants.AUTHORIZATION, 'Bearer ' + this.tokenCredential.get());\r\n callback(null);\r\n };\r\n\r\n module.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\n var util = require('util');\r\n var http = require('http');\r\n var https = require('https');\r\n var EventEmitter = require('events').EventEmitter;\r\n var os = require('os');\r\n\r\n var azureutil = require('../util/util');\r\n var Logger = require('../diagnostics/logger');\r\n var Constants = require('../util/constants');\r\n var errors = require('../errors/errors');\r\n var ArgumentError = errors.ArgumentError;\r\n\r\n var DEFAULT_OPERATION_MEMORY_USAGE = Constants.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n var DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES = Constants.BlobConstants.DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES;\r\n var DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES = Constants.BlobConstants.DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES;\r\n var DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES = Constants.BlobConstants.DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES;\r\n var DEFAULT_GLOBAL_CONCURRENCY = 5; //Default http connection limitation for nodejs\r\n\r\n var SystemTotalMemory = os.totalmem();\r\n var CriticalFreeMemory = 0.1 * SystemTotalMemory;\r\n var 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\n function 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\n var 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\n BatchOperation.OperationState = OperationState;\r\n\r\n /**\r\n * Set batch operation concurrency\r\n */\r\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.prototype.pause = function () {\r\n this._paused = true;\r\n };\r\n\r\n /**\r\n * Start firing user call back\r\n */\r\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.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\n BatchOperation.noOperation = function (cb) {\r\n cb();\r\n };\r\n\r\n /**\r\n * Rest operation in sdk\r\n */\r\n function 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\n BatchOperation.RestOperation = RestOperation;\r\n\r\n /**\r\n * Common operation wrapper\r\n */\r\n function 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\n BatchOperation.CommonOperation = CommonOperation;\r\n\r\n module.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\n var buffer = require('buffer').Buffer;\r\n var stream = require('stream');\r\n var util = require('util');\r\n\r\n var Constants = require('../util/constants');\r\n var bufferSize = Constants.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;\r\n\r\n function 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\n util.inherits(BrowserFileReadStream, stream.Readable);\r\n\r\n BrowserFileReadStream.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\n module.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\n var stream = require('stream');\r\n var util = require('util');\r\n\r\n function 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\n util.inherits(BufferStream, stream.Readable);\r\n\r\n BufferStream.prototype._read = function () {\r\n while (this.push(this._readNextChunk())) {\r\n continue;\r\n }\r\n };\r\n\r\n BufferStream.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\n module.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\n function 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\n ChunkAllocator.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\n ChunkAllocator.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\n ChunkAllocator.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\n ChunkAllocator.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\n ChunkAllocator.prototype.destroy = function() {\r\n this._pool = [];\r\n this._inuse = 0;\r\n };\r\n\r\n module.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\n var stream = require('stream');\r\n var util = require('util');\r\n\r\n var azureutil = require('../util/util');\r\n var Md5Wrapper = require('../md5-wrapper');\r\n var Constants = require('../util/constants');\r\n var 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\n function 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\n util.inherits(ChunkStream, stream.Stream);\r\n\r\n /**\r\n * Set the memory allocator.\r\n */\r\n ChunkStream.prototype.setMemoryAllocator = function(allocator) {\r\n this._allocator = allocator;\r\n };\r\n\r\n /**\r\n * Set the output length.\r\n */\r\n ChunkStream.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\n ChunkStream.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\n ChunkStream.prototype.finish = function () {\r\n this.emit('finish');\r\n\r\n this.destroy();\r\n };\r\n\r\n ChunkStream.prototype.error = function () {\r\n this.emit('error');\r\n\r\n this.destroy();\r\n };\r\n\r\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.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\n ChunkStream.prototype.pause = function() {\r\n this._paused = true;\r\n };\r\n\r\n /**\r\n * Resume read stream\r\n */\r\n ChunkStream.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\n module.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\n var ChunkStream = require('./chunkstream');\r\n var EventEmitter = require('events').EventEmitter;\r\n var util = require('util');\r\n var 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\n function 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\n util.inherits(ChunkStreamWithStream, ChunkStream);\r\n\r\n /**\r\n * Add event listener\r\n */\r\n ChunkStreamWithStream.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\n ChunkStreamWithStream.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\n ChunkStreamWithStream.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\n ChunkStreamWithStream.prototype.resume = function() {\r\n ChunkStream.prototype.resume.call(this);\r\n\r\n this._stream.resume();\r\n };\r\n\r\n ChunkStreamWithStream.prototype.finish = function () {\r\n ChunkStream.prototype.finish.call(this);\r\n this._stream.emit.call(this._stream, 'finish');\r\n };\r\n\r\n ChunkStreamWithStream.prototype.destroy = function () {\r\n ChunkStream.prototype.destroy.call(this);\r\n this._stream.emit.call(this._stream, 'close');\r\n };\r\n\r\n module.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\n var azureCommon = require('./../common.core');\r\n var azureutil = azureCommon.util;\r\n var Constants = require('./../util/constants');\r\n var EventEmitter = require('events').EventEmitter;\r\n\r\n /**\r\n * Range stream\r\n */\r\n function 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\n RangeStream.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\n RangeStream.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\n RangeStream.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\n RangeStream.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\n RangeStream.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\n RangeStream.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\n RangeStream.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\n RangeStream.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\n RangeStream.prototype.pause = function () {\r\n this._paused = true;\r\n };\r\n\r\n /**\r\n * Resume the stream\r\n */\r\n RangeStream.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\n RangeStream.prototype.stop = function () {\r\n this.pause();\r\n this._emittedAll = true;\r\n this._emitter.emit('end');\r\n };\r\n\r\n module.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\n var EventEmitter = require('events');\r\n var util = require('util');\r\n var 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\n function 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\n util.inherits(SpeedSummary, EventEmitter);\r\n\r\n /**\r\n * Convert the size to human readable size\r\n */\r\n function 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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n SpeedSummary.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\n module.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\n exports = 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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports = module.exports;\r\n\r\n var storageDnsSuffix = process.env.AZURE_STORAGE_DNS_SUFFIX || 'core.windows.net';\r\n\r\n /**\r\n * Defines constants.\r\n */\r\n var 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\n module.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\n exports.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\n exports.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\n exports.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\n exports.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\n var 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\n exports.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\n exports.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\n var 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\n XMLStringifier.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\n exports = module.exports;\r\n\r\n var 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\n module.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\n var StorageUtilities = {\r\n /**\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\n module.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\n var _ = require('underscore');\r\n var util = require('util');\r\n var url = require('url');\r\n var stream = require('stream');\r\n var Constants = require('./constants');\r\n var Md5Wrapper = require('../md5-wrapper');\r\n var StorageUtilities = require('./storageutilities');\r\n var 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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.truncatedISO8061Date = function (date) {\r\n var dateString = date.toISOString();\r\n return dateString.substring(0, dateString.length - 5) + 'Z';\r\n };\r\n\r\n exports.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\n exports.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\n exports.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\n exports.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\n var zeroBuffer = null;\r\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n var 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\n exports.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\n exports.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\n exports.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\n var _ = require('underscore');\r\n var util = require('util');\r\n\r\n var constants = require('./../util/constants');\r\n var blobConstants = constants.BlobConstants;\r\n var BlobUtilities = require('./../../services/blob/blobutilities');\r\n var FileUtilities = require('./../../services/file/fileutilities');\r\n var azureutil = require('./util');\r\n var SR = require('./sr');\r\n var check = require('validator');\r\n var errors = require('../errors/errors');\r\n var ArgumentError = errors.ArgumentError;\r\n var ArgumentNullError = errors.ArgumentNullError;\r\n\r\n exports = module.exports;\r\n\r\n function 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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n var 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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n exports.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\n function throwMissingArgument(name, func) {\r\n throw new ArgumentNullError(name, 'Required argument ' + name + ' for function ' + func + ' is not defined');\r\n }\r\n\r\n function 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\n function validateArgs(functionName, validationRules) {\r\n var validator = new ArgumentValidator(functionName);\r\n validationRules(validator);\r\n }\r\n\r\n exports.ArgumentValidator = ArgumentValidator;\r\n exports.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\n var BlobService = require('./blobservice.core');\r\n var azureCommon = require('./../../common/common.browser');\r\n var extend = require('extend');\r\n var mime = require('browserify-mime');\r\n\r\n var Constants = azureCommon.Constants;\r\n var azureutil = azureCommon.util;\r\n var BlobConstants = Constants.BlobConstants;\r\n var BrowserFileReadStream = azureCommon.BrowserFileReadStream;\r\n var SpeedSummary = azureCommon.SpeedSummary;\r\n var 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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n module.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\n var qs = require('querystring');\r\n var url = require('url');\r\n var util = require('util');\r\n var _ = require('underscore');\r\n var extend = require('extend');\r\n\r\n var azureCommon = require('./../../common/common.core');\r\n var BlockRangeStream = require('./internal/blockrangestream');\r\n var Md5Wrapper = require('./../../common/md5-wrapper');\r\n var PageRangeStream = require('./internal/pagerangestream');\r\n var RangeStream = require('./../../common/streams/rangestream');\r\n var azureutil = azureCommon.util;\r\n var SR = azureCommon.SR;\r\n var validate = azureCommon.validate;\r\n var StorageServiceClient = azureCommon.StorageServiceClient;\r\n var WebResource = azureCommon.WebResource;\r\n\r\n // Constants\r\n var Constants = azureCommon.Constants;\r\n var BlobConstants = Constants.BlobConstants;\r\n var HeaderConstants = Constants.HeaderConstants;\r\n var QueryStringConstants = Constants.QueryStringConstants;\r\n var RequestLocationMode = Constants.RequestLocationMode;\r\n\r\n // Streams\r\n var BatchOperation = azureCommon.BatchOperation;\r\n var SpeedSummary = azureCommon.SpeedSummary;\r\n var ChunkAllocator = azureCommon.ChunkAllocator;\r\n var ChunkStream = azureCommon.ChunkStream;\r\n var ChunkStreamWithStream = azureCommon.ChunkStreamWithStream;\r\n\r\n // Models requires\r\n var AclResult = azureCommon.AclResult;\r\n var ServiceStatsParser = azureCommon.ServiceStatsParser;\r\n var AccountPropertiesResult = require('../../common/models/accountpropertiesresult');\r\n var BlockListResult = require('./models/blocklistresult');\r\n var BlobResult = require('./models/blobresult');\r\n var ContainerResult = require('./models/containerresult');\r\n var LeaseResult = require('./models/leaseresult');\r\n\r\n var BlobUtilities = require('./blobutilities');\r\n\r\n // Errors requires\r\n var errors = require('../../common/errors/errors');\r\n var ArgumentError = errors.ArgumentError;\r\n var ArgumentNullError = errors.ArgumentNullError;\r\n var 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\n function 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\n util.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\n function 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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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.} 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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.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\n BlobService.SpeedSummary = SpeedSummary;\r\n\r\n module.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\n exports = 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\n var 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\n module.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\n var Constants = require('./../../../common/util/constants');\r\n var EventEmitter = require('events').EventEmitter;\r\n var BlobUtilities = require('./../blobutilities');\r\n\r\n /**\r\n * BlockBlob block range stream\r\n */\r\n function 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\n BlockRangeStream.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\n BlockRangeStream.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\n BlockRangeStream.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\n BlockRangeStream.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\n BlockRangeStream.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\n BlockRangeStream.prototype.pause = function () {\r\n this._paused = true;\r\n };\r\n\r\n /**\r\n * Resume the stream\r\n */\r\n BlockRangeStream.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\n BlockRangeStream.prototype.stop = function () {\r\n this.pause();\r\n this._emittedAll = true;\r\n this._emitter.emit('end');\r\n };\r\n\r\n module.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\n var util = require('util');\r\n var RangeStream = require('./../../../common/streams/rangestream');\r\n var Constants = require('./../../../common/util/constants');\r\n\r\n /**\r\n * PageBlob page range stream\r\n */\r\n function 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\n util.inherits(PageRangeStream, RangeStream);\r\n\r\n module.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\n var _ = require('underscore');\r\n\r\n var azureCommon = require('./../../../common/common.core');\r\n var azureutil = azureCommon.util;\r\n var Constants = azureCommon.Constants;\r\n var 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\n function 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\n BlobResult.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\n var 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\n BlobResult.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\n BlobResult.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\n BlobResult.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\n module.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\n var _ = require('underscore');\r\n\r\n var azureCommon = require('./../../../common/common.core');\r\n var xmlbuilder = azureCommon.xmlbuilder;\r\n var 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\n exports.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\n exports.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\n var azureCommon = require('./../../../common/common.core');\r\n var azureutil = azureCommon.util;\r\n var Constants = azureCommon.Constants;\r\n\r\n var HeaderConstants = Constants.HeaderConstants;\r\n var 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\n function 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\n ContainerResult.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\n ContainerResult.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.} signedIdentifiers The container ACL settings. See `[AccessPolicy]{@link AccessPolicy}` for detailed information.\r\n */\r\n\r\n module.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\n var Constants = require('./../../../common/common.core').Constants;\r\n var 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\n function 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\n LeaseResult.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\n module.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\n exports = 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\n var 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\n module.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\n exports = 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\n var 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\n module.exports = TableUtilities;\r\n },{}],51:[function(require,module,exports){\r\n 'use strict'\r\n\r\n exports.byteLength = byteLength\r\n exports.toByteArray = toByteArray\r\n exports.fromByteArray = fromByteArray\r\n\r\n var lookup = []\r\n var revLookup = []\r\n var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\r\n\r\n var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\r\n for (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\n revLookup['-'.charCodeAt(0)] = 62\r\n revLookup['_'.charCodeAt(0)] = 63\r\n\r\n function 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\n function 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\n function _byteLength (b64, validLen, placeHoldersLen) {\r\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\r\n }\r\n\r\n function 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\n function 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\n function 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\n function 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\n var 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\n mime.types.constructor = undefined\r\n mime.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 /** Detect free variables */\r\n var freeExports = typeof exports == 'object' && exports &&\r\n !exports.nodeType && exports;\r\n var freeModule = typeof module == 'object' && module &&\r\n !module.nodeType && module;\r\n var freeGlobal = typeof global == 'object' && global;\r\n if (\r\n freeGlobal.global === freeGlobal ||\r\n freeGlobal.window === freeGlobal ||\r\n freeGlobal.self === freeGlobal\r\n ) {\r\n root = freeGlobal;\r\n }\r\n\r\n /**\r\n * The `punycode` object.\r\n * @name punycode\r\n * @type Object\r\n */\r\n var punycode,\r\n\r\n /** Highest positive signed 32-bit float value */\r\n maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\r\n\r\n /** Bootstring parameters */\r\n base = 36,\r\n tMin = 1,\r\n tMax = 26,\r\n skew = 38,\r\n damp = 700,\r\n initialBias = 72,\r\n initialN = 128, // 0x80\r\n delimiter = '-', // '\\x2D'\r\n\r\n /** Regular expressions */\r\n regexPunycode = /^xn--/,\r\n regexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\r\n regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\r\n\r\n /** Error messages */\r\n errors = {\r\n 'overflow': 'Overflow: input needs wider integers to process',\r\n 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\r\n 'invalid-input': 'Invalid input'\r\n },\r\n\r\n /** Convenience shortcuts */\r\n baseMinusTMin = base - tMin,\r\n floor = Math.floor,\r\n stringFromCharCode = String.fromCharCode,\r\n\r\n /** Temporary variable */\r\n key;\r\n\r\n /*--------------------------------------------------------------------------*/\r\n\r\n /**\r\n * A generic error utility function.\r\n * @private\r\n * @param {String} type The error type.\r\n * @returns {Error} Throws a `RangeError` with the applicable error message.\r\n */\r\n function error(type) {\r\n throw new RangeError(errors[type]);\r\n }\r\n\r\n /**\r\n * A generic `Array#map` utility function.\r\n * @private\r\n * @param {Array} array The array to iterate over.\r\n * @param {Function} callback The function that gets called for every array\r\n * item.\r\n * @returns {Array} A new array of values returned by the callback function.\r\n */\r\n function map(array, fn) {\r\n var length = array.length;\r\n var result = [];\r\n while (length--) {\r\n result[length] = fn(array[length]);\r\n }\r\n return result;\r\n }\r\n\r\n /**\r\n * A simple `Array#map`-like wrapper to work with domain name strings or email\r\n * addresses.\r\n * @private\r\n * @param {String} domain The domain name or email address.\r\n * @param {Function} callback The function that gets called for every\r\n * character.\r\n * @returns {Array} A new string of characters returned by the callback\r\n * function.\r\n */\r\n function mapDomain(string, fn) {\r\n var parts = string.split('@');\r\n var result = '';\r\n if (parts.length > 1) {\r\n // In email addresses, only the domain name should be punycoded. Leave\r\n // the local part (i.e. everything up to `@`) intact.\r\n result = parts[0] + '@';\r\n string = parts[1];\r\n }\r\n // Avoid `split(regex)` for IE8 compatibility. See #17.\r\n string = string.replace(regexSeparators, '\\x2E');\r\n var labels = string.split('.');\r\n var encoded = map(labels, fn).join('.');\r\n return result + encoded;\r\n }\r\n\r\n /**\r\n * Creates an array containing the numeric code points of each Unicode\r\n * character in the string. While JavaScript uses UCS-2 internally,\r\n * this function will convert a pair of surrogate halves (each of which\r\n * UCS-2 exposes as separate characters) into a single code point,\r\n * matching UTF-16.\r\n * @see `punycode.ucs2.encode`\r\n * @see \r\n * @memberOf punycode.ucs2\r\n * @name decode\r\n * @param {String} string The Unicode input string (UCS-2).\r\n * @returns {Array} The new array of code points.\r\n */\r\n function ucs2decode(string) {\r\n var output = [],\r\n counter = 0,\r\n length = string.length,\r\n value,\r\n extra;\r\n while (counter < length) {\r\n value = string.charCodeAt(counter++);\r\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\r\n // high surrogate, and there is a next character\r\n extra = string.charCodeAt(counter++);\r\n if ((extra & 0xFC00) == 0xDC00) { // low surrogate\r\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\r\n } else {\r\n // unmatched surrogate; only append this code unit, in case the next\r\n // code unit is the high surrogate of a surrogate pair\r\n output.push(value);\r\n counter--;\r\n }\r\n } else {\r\n output.push(value);\r\n }\r\n }\r\n return output;\r\n }\r\n\r\n /**\r\n * Creates a string based on an array of numeric code points.\r\n * @see `punycode.ucs2.decode`\r\n * @memberOf punycode.ucs2\r\n * @name encode\r\n * @param {Array} codePoints The array of numeric code points.\r\n * @returns {String} The new Unicode string (UCS-2).\r\n */\r\n function ucs2encode(array) {\r\n return map(array, function(value) {\r\n var output = '';\r\n if (value > 0xFFFF) {\r\n value -= 0x10000;\r\n output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\r\n value = 0xDC00 | value & 0x3FF;\r\n }\r\n output += stringFromCharCode(value);\r\n return output;\r\n }).join('');\r\n }\r\n\r\n /**\r\n * Converts a basic code point into a digit/integer.\r\n * @see `digitToBasic()`\r\n * @private\r\n * @param {Number} codePoint The basic numeric code point value.\r\n * @returns {Number} The numeric value of a basic code point (for use in\r\n * representing integers) in the range `0` to `base - 1`, or `base` if\r\n * the code point does not represent a value.\r\n */\r\n function basicToDigit(codePoint) {\r\n if (codePoint - 48 < 10) {\r\n return codePoint - 22;\r\n }\r\n if (codePoint - 65 < 26) {\r\n return codePoint - 65;\r\n }\r\n if (codePoint - 97 < 26) {\r\n return codePoint - 97;\r\n }\r\n return base;\r\n }\r\n\r\n /**\r\n * Converts a digit/integer into a basic code point.\r\n * @see `basicToDigit()`\r\n * @private\r\n * @param {Number} digit The numeric value of a basic code point.\r\n * @returns {Number} The basic code point whose value (when used for\r\n * representing integers) is `digit`, which needs to be in the range\r\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\r\n * used; else, the lowercase form is used. The behavior is undefined\r\n * if `flag` is non-zero and `digit` has no uppercase form.\r\n */\r\n function digitToBasic(digit, flag) {\r\n // 0..25 map to ASCII a..z or A..Z\r\n // 26..35 map to ASCII 0..9\r\n return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\r\n }\r\n\r\n /**\r\n * Bias adaptation function as per section 3.4 of RFC 3492.\r\n * https://tools.ietf.org/html/rfc3492#section-3.4\r\n * @private\r\n */\r\n function adapt(delta, numPoints, firstTime) {\r\n var k = 0;\r\n delta = firstTime ? floor(delta / damp) : delta >> 1;\r\n delta += floor(delta / numPoints);\r\n for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\r\n delta = floor(delta / baseMinusTMin);\r\n }\r\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\r\n }\r\n\r\n /**\r\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\r\n * symbols.\r\n * @memberOf punycode\r\n * @param {String} input The Punycode string of ASCII-only symbols.\r\n * @returns {String} The resulting string of Unicode symbols.\r\n */\r\n function decode(input) {\r\n // Don't use UCS-2\r\n var output = [],\r\n inputLength = input.length,\r\n out,\r\n i = 0,\r\n n = initialN,\r\n bias = initialBias,\r\n basic,\r\n j,\r\n index,\r\n oldi,\r\n w,\r\n k,\r\n digit,\r\n t,\r\n /** Cached calculation results */\r\n baseMinusT;\r\n\r\n // Handle the basic code points: let `basic` be the number of input code\r\n // points before the last delimiter, or `0` if there is none, then copy\r\n // the first basic code points to the output.\r\n\r\n basic = input.lastIndexOf(delimiter);\r\n if (basic < 0) {\r\n basic = 0;\r\n }\r\n\r\n for (j = 0; j < basic; ++j) {\r\n // if it's not a basic code point\r\n if (input.charCodeAt(j) >= 0x80) {\r\n error('not-basic');\r\n }\r\n output.push(input.charCodeAt(j));\r\n }\r\n\r\n // Main decoding loop: start just after the last delimiter if any basic code\r\n // points were copied; start at the beginning otherwise.\r\n\r\n for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\r\n\r\n // `index` is the index of the next character to be consumed.\r\n // Decode a generalized variable-length integer into `delta`,\r\n // which gets added to `i`. The overflow checking is easier\r\n // if we increase `i` as we go, then subtract off its starting\r\n // value at the end to obtain `delta`.\r\n for (oldi = i, w = 1, k = base; /* no condition */; k += base) {\r\n\r\n if (index >= inputLength) {\r\n error('invalid-input');\r\n }\r\n\r\n digit = basicToDigit(input.charCodeAt(index++));\r\n\r\n if (digit >= base || digit > floor((maxInt - i) / w)) {\r\n error('overflow');\r\n }\r\n\r\n i += digit * w;\r\n t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\r\n\r\n if (digit < t) {\r\n break;\r\n }\r\n\r\n baseMinusT = base - t;\r\n if (w > floor(maxInt / baseMinusT)) {\r\n error('overflow');\r\n }\r\n\r\n w *= baseMinusT;\r\n\r\n }\r\n\r\n out = output.length + 1;\r\n bias = adapt(i - oldi, out, oldi == 0);\r\n\r\n // `i` was supposed to wrap around from `out` to `0`,\r\n // incrementing `n` each time, so we'll fix that now:\r\n if (floor(i / out) > maxInt - n) {\r\n error('overflow');\r\n }\r\n\r\n n += floor(i / out);\r\n i %= out;\r\n\r\n // Insert `n` at position `i` of the output\r\n output.splice(i++, 0, n);\r\n\r\n }\r\n\r\n return ucs2encode(output);\r\n }\r\n\r\n /**\r\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\r\n * Punycode string of ASCII-only symbols.\r\n * @memberOf punycode\r\n * @param {String} input The string of Unicode symbols.\r\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\r\n */\r\n function encode(input) {\r\n var n,\r\n delta,\r\n handledCPCount,\r\n basicLength,\r\n bias,\r\n j,\r\n m,\r\n q,\r\n k,\r\n t,\r\n currentValue,\r\n output = [],\r\n /** `inputLength` will hold the number of code points in `input`. */\r\n inputLength,\r\n /** Cached calculation results */\r\n handledCPCountPlusOne,\r\n baseMinusT,\r\n qMinusT;\r\n\r\n // Convert the input in UCS-2 to Unicode\r\n input = ucs2decode(input);\r\n\r\n // Cache the length\r\n inputLength = input.length;\r\n\r\n // Initialize the state\r\n n = initialN;\r\n delta = 0;\r\n bias = initialBias;\r\n\r\n // Handle the basic code points\r\n for (j = 0; j < inputLength; ++j) {\r\n currentValue = input[j];\r\n if (currentValue < 0x80) {\r\n output.push(stringFromCharCode(currentValue));\r\n }\r\n }\r\n\r\n handledCPCount = basicLength = output.length;\r\n\r\n // `handledCPCount` is the number of code points that have been handled;\r\n // `basicLength` is the number of basic code points.\r\n\r\n // Finish the basic string - if it is not empty - with a delimiter\r\n if (basicLength) {\r\n output.push(delimiter);\r\n }\r\n\r\n // Main encoding loop:\r\n while (handledCPCount < inputLength) {\r\n\r\n // All non-basic code points < n have been handled already. Find the next\r\n // larger one:\r\n for (m = maxInt, j = 0; j < inputLength; ++j) {\r\n currentValue = input[j];\r\n if (currentValue >= n && currentValue < m) {\r\n m = currentValue;\r\n }\r\n }\r\n\r\n // Increase `delta` enough to advance the decoder's state to ,\r\n // but guard against overflow\r\n handledCPCountPlusOne = handledCPCount + 1;\r\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\r\n error('overflow');\r\n }\r\n\r\n delta += (m - n) * handledCPCountPlusOne;\r\n n = m;\r\n\r\n for (j = 0; j < inputLength; ++j) {\r\n currentValue = input[j];\r\n\r\n if (currentValue < n && ++delta > maxInt) {\r\n error('overflow');\r\n }\r\n\r\n if (currentValue == n) {\r\n // Represent delta as a generalized variable-length integer\r\n for (q = delta, k = base; /* no condition */; k += base) {\r\n t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\r\n if (q < t) {\r\n break;\r\n }\r\n qMinusT = q - t;\r\n baseMinusT = base - t;\r\n output.push(\r\n stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\r\n );\r\n q = floor(qMinusT / baseMinusT);\r\n }\r\n\r\n output.push(stringFromCharCode(digitToBasic(q, 0)));\r\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\r\n delta = 0;\r\n ++handledCPCount;\r\n }\r\n }\r\n\r\n ++delta;\r\n ++n;\r\n\r\n }\r\n return output.join('');\r\n }\r\n\r\n /**\r\n * Converts a Punycode string representing a domain name or an email address\r\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\r\n * it doesn't matter if you call it on a string that has already been\r\n * converted to Unicode.\r\n * @memberOf punycode\r\n * @param {String} input The Punycoded domain name or email address to\r\n * convert to Unicode.\r\n * @returns {String} The Unicode representation of the given Punycode\r\n * string.\r\n */\r\n function toUnicode(input) {\r\n return mapDomain(input, function(string) {\r\n return regexPunycode.test(string)\r\n ? decode(string.slice(4).toLowerCase())\r\n : string;\r\n });\r\n }\r\n\r\n /**\r\n * Converts a Unicode string representing a domain name or an email address to\r\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\r\n * i.e. it doesn't matter if you call it with a domain that's already in\r\n * ASCII.\r\n * @memberOf punycode\r\n * @param {String} input The domain name or email address to convert, as a\r\n * Unicode string.\r\n * @returns {String} The Punycode representation of the given domain name or\r\n * email address.\r\n */\r\n function toASCII(input) {\r\n return mapDomain(input, function(string) {\r\n return regexNonASCII.test(string)\r\n ? 'xn--' + encode(string)\r\n : string;\r\n });\r\n }\r\n\r\n /*--------------------------------------------------------------------------*/\r\n\r\n /** Define the public API */\r\n punycode = {\r\n /**\r\n * A string representing the current Punycode.js version number.\r\n * @memberOf punycode\r\n * @type String\r\n */\r\n 'version': '1.4.1',\r\n /**\r\n * An object of methods to convert from JavaScript's internal character\r\n * representation (UCS-2) to Unicode code points, and back.\r\n * @see \r\n * @memberOf punycode\r\n * @type Object\r\n */\r\n 'ucs2': {\r\n 'decode': ucs2decode,\r\n 'encode': ucs2encode\r\n },\r\n 'decode': decode,\r\n 'encode': encode,\r\n 'toASCII': toASCII,\r\n 'toUnicode': toUnicode\r\n };\r\n\r\n /** Expose `punycode` */\r\n // Some AMD build optimizers, like r.js, check for specific condition patterns\r\n // like the following:\r\n if (\r\n typeof define == 'function' &&\r\n typeof define.amd == 'object' &&\r\n define.amd\r\n ) {\r\n define('punycode', function() {\r\n return punycode;\r\n });\r\n } else if (freeExports && freeModule) {\r\n if (module.exports == freeExports) {\r\n // in Node.js, io.js, or RingoJS v0.8.0+\r\n freeModule.exports = punycode;\r\n } else {\r\n // in Narwhal or RingoJS v0.7.0-\r\n for (key in punycode) {\r\n punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\r\n }\r\n }\r\n } else {\r\n // in Rhino or a web browser\r\n root.punycode = punycode;\r\n }\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 /**/\r\n\r\n var Buffer = require('safe-buffer').Buffer;\r\n /**/\r\n\r\n var 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\n function _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\n function 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\n exports.StringDecoder = StringDecoder;\r\n function 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\n StringDecoder.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\n StringDecoder.prototype.end = utf8End;\r\n\r\n // Returns only complete characters in a Buffer\r\n StringDecoder.prototype.text = utf8Text;\r\n\r\n // Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\r\n StringDecoder.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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n function simpleWrite(buf) {\r\n return buf.toString(this.encoding);\r\n }\r\n\r\n function 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 \r\n * @license MIT\r\n */\r\n /* eslint-disable no-proto */\r\n\r\n 'use strict'\r\n\r\n var base64 = require('base64-js')\r\n var ieee754 = require('ieee754')\r\n\r\n exports.Buffer = Buffer\r\n exports.SlowBuffer = SlowBuffer\r\n exports.INSPECT_MAX_BYTES = 50\r\n\r\n var K_MAX_LENGTH = 0x7fffffff\r\n exports.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\n Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\r\n\r\n if (!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\n function 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\n Object.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\n Object.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\n function 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\n function 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\n if (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\n Buffer.poolSize = 8192 // not used by this implementation\r\n\r\n function 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\n Buffer.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\n Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\r\n Object.setPrototypeOf(Buffer, Uint8Array)\r\n\r\n function 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\n function 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\n Buffer.alloc = function (size, fill, encoding) {\r\n return alloc(size, fill, encoding)\r\n }\r\n\r\n function 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\n Buffer.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\n Buffer.allocUnsafeSlow = function (size) {\r\n return allocUnsafe(size)\r\n }\r\n\r\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n function 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\n Buffer.byteLength = byteLength\r\n\r\n function 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\n Buffer.prototype._isBuffer = true\r\n\r\n function 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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.prototype.toLocaleString = Buffer.prototype.toString\r\n\r\n Buffer.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\n Buffer.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 ''\r\n }\r\n\r\n Buffer.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\n function 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\n function 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\n Buffer.prototype.includes = function includes (val, byteOffset, encoding) {\r\n return this.indexOf(val, byteOffset, encoding) !== -1\r\n }\r\n\r\n Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\r\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\r\n }\r\n\r\n Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\r\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\r\n }\r\n\r\n function 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\n function utf8Write (buf, string, offset, length) {\r\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\r\n }\r\n\r\n function asciiWrite (buf, string, offset, length) {\r\n return blitBuffer(asciiToBytes(string), buf, offset, length)\r\n }\r\n\r\n function latin1Write (buf, string, offset, length) {\r\n return asciiWrite(buf, string, offset, length)\r\n }\r\n\r\n function base64Write (buf, string, offset, length) {\r\n return blitBuffer(base64ToBytes(string), buf, offset, length)\r\n }\r\n\r\n function ucs2Write (buf, string, offset, length) {\r\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\r\n }\r\n\r\n Buffer.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\n Buffer.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\n function 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\n function 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\n var MAX_ARGUMENTS_LENGTH = 0x1000\r\n\r\n function 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\n function 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\n function 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\n function 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\n function 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\n Buffer.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\n function 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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n function 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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n Buffer.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\n function 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\n function 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\n Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\r\n return writeFloat(this, value, offset, true, noAssert)\r\n }\r\n\r\n Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\r\n return writeFloat(this, value, offset, false, noAssert)\r\n }\r\n\r\n function 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\n Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\r\n return writeDouble(this, value, offset, true, noAssert)\r\n }\r\n\r\n Buffer.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\n Buffer.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\n Buffer.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\n var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\r\n\r\n function 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\n function toHex (n) {\r\n if (n < 16) return '0' + n.toString(16)\r\n return n.toString(16)\r\n }\r\n\r\n function 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\n function 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\n function 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\n function base64ToBytes (str) {\r\n return base64.toByteArray(base64clean(str))\r\n }\r\n\r\n function 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\n function 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\n function 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\n module.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\n function 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\n exports.isArray = isArray;\r\n\r\n function isBoolean(arg) {\r\n return typeof arg === 'boolean';\r\n }\r\n exports.isBoolean = isBoolean;\r\n\r\n function isNull(arg) {\r\n return arg === null;\r\n }\r\n exports.isNull = isNull;\r\n\r\n function isNullOrUndefined(arg) {\r\n return arg == null;\r\n }\r\n exports.isNullOrUndefined = isNullOrUndefined;\r\n\r\n function isNumber(arg) {\r\n return typeof arg === 'number';\r\n }\r\n exports.isNumber = isNumber;\r\n\r\n function isString(arg) {\r\n return typeof arg === 'string';\r\n }\r\n exports.isString = isString;\r\n\r\n function isSymbol(arg) {\r\n return typeof arg === 'symbol';\r\n }\r\n exports.isSymbol = isSymbol;\r\n\r\n function isUndefined(arg) {\r\n return arg === void 0;\r\n }\r\n exports.isUndefined = isUndefined;\r\n\r\n function isRegExp(re) {\r\n return objectToString(re) === '[object RegExp]';\r\n }\r\n exports.isRegExp = isRegExp;\r\n\r\n function isObject(arg) {\r\n return typeof arg === 'object' && arg !== null;\r\n }\r\n exports.isObject = isObject;\r\n\r\n function isDate(d) {\r\n return objectToString(d) === '[object Date]';\r\n }\r\n exports.isDate = isDate;\r\n\r\n function isError(e) {\r\n return (objectToString(e) === '[object Error]' || e instanceof Error);\r\n }\r\n exports.isError = isError;\r\n\r\n function isFunction(arg) {\r\n return typeof arg === 'function';\r\n }\r\n exports.isFunction = isFunction;\r\n\r\n function 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\n exports.isPrimitive = isPrimitive;\r\n\r\n exports.isBuffer = Buffer.isBuffer;\r\n\r\n function 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\n var objectCreate = Object.create || objectCreatePolyfill\r\n var objectKeys = Object.keys || objectKeysPolyfill\r\n var bind = Function.prototype.bind || functionBindPolyfill\r\n\r\n function 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\n module.exports = EventEmitter;\r\n\r\n // Backwards-compat with node 0.10.x\r\n EventEmitter.EventEmitter = EventEmitter;\r\n\r\n EventEmitter.prototype._events = undefined;\r\n EventEmitter.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\n var defaultMaxListeners = 10;\r\n\r\n var hasDefineProperty;\r\n try {\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\n if (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\n EventEmitter.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\n function $getMaxListeners(that) {\r\n if (that._maxListeners === undefined)\r\n return EventEmitter.defaultMaxListeners;\r\n return that._maxListeners;\r\n }\r\n\r\n EventEmitter.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\n function 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\n function 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\n function 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\n function 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\n function 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\n EventEmitter.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\n function _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\n EventEmitter.prototype.addListener = function addListener(type, listener) {\r\n return _addListener(this, type, listener, false);\r\n };\r\n\r\n EventEmitter.prototype.on = EventEmitter.prototype.addListener;\r\n\r\n EventEmitter.prototype.prependListener =\r\n function prependListener(type, listener) {\r\n return _addListener(this, type, listener, true);\r\n };\r\n\r\n function 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\n function _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\n EventEmitter.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\n EventEmitter.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\n EventEmitter.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\n EventEmitter.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\n function _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\n EventEmitter.prototype.listeners = function listeners(type) {\r\n return _listeners(this, type, true);\r\n };\r\n\r\n EventEmitter.prototype.rawListeners = function rawListeners(type) {\r\n return _listeners(this, type, false);\r\n };\r\n\r\n EventEmitter.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\n EventEmitter.prototype.listenerCount = listenerCount;\r\n function 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\n EventEmitter.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\n function 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\n function 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\n function 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\n function objectCreatePolyfill(proto) {\r\n var F = function() {};\r\n F.prototype = proto;\r\n return new F;\r\n }\r\n function 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\n function 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\n var hasOwn = Object.prototype.hasOwnProperty;\r\n var toStr = Object.prototype.toString;\r\n var defineProperty = Object.defineProperty;\r\n var gOPD = Object.getOwnPropertyDescriptor;\r\n\r\n var isArray = function isArray(arr) {\r\n if (typeof Array.isArray === 'function') {\r\n return Array.isArray(arr);\r\n }\r\n\r\n return toStr.call(arr) === '[object Array]';\r\n };\r\n\r\n var isPlainObject = function isPlainObject(obj) {\r\n if (!obj || toStr.call(obj) !== '[object Object]') {\r\n return false;\r\n }\r\n\r\n var hasOwnConstructor = hasOwn.call(obj, 'constructor');\r\n var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\r\n // Not own constructor property must be Object\r\n if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\r\n return false;\r\n }\r\n\r\n // Own properties are enumerated firstly, so to speed up,\r\n // if last one is own, then all properties are own.\r\n var key;\r\n for (key in obj) { /**/ }\r\n\r\n return 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\n var setProperty = function setProperty(target, options) {\r\n if (defineProperty && options.name === '__proto__') {\r\n defineProperty(target, options.name, {\r\n enumerable: true,\r\n configurable: true,\r\n value: options.newValue,\r\n writable: true\r\n });\r\n } else {\r\n target[options.name] = options.newValue;\r\n }\r\n };\r\n\r\n // Return undefined instead of __proto__ if '__proto__' is not an own property\r\n var getProperty = function getProperty(obj, name) {\r\n if (name === '__proto__') {\r\n if (!hasOwn.call(obj, name)) {\r\n return void 0;\r\n } else if (gOPD) {\r\n // In early versions of node, obj['__proto__'] is buggy when obj has\r\n // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.\r\n return gOPD(obj, name).value;\r\n }\r\n }\r\n\r\n return obj[name];\r\n };\r\n\r\n module.exports = function extend() {\r\n var options, name, src, copy, copyIsArray, clone;\r\n var target = arguments[0];\r\n var i = 1;\r\n var length = arguments.length;\r\n var deep = false;\r\n\r\n // Handle a deep copy situation\r\n if (typeof target === 'boolean') {\r\n deep = target;\r\n target = arguments[1] || {};\r\n // skip the boolean and the target\r\n i = 2;\r\n }\r\n if (target == null || (typeof target !== 'object' && typeof target !== 'function')) {\r\n target = {};\r\n }\r\n\r\n for (; i < length; ++i) {\r\n options = arguments[i];\r\n // Only deal with non-null/undefined values\r\n if (options != null) {\r\n // Extend the base object\r\n for (name in options) {\r\n src = getProperty(target, name);\r\n copy = getProperty(options, name);\r\n\r\n // Prevent never-ending loop\r\n if (target !== copy) {\r\n // Recurse if we're merging plain objects or arrays\r\n if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\r\n if (copyIsArray) {\r\n copyIsArray = false;\r\n clone = src && isArray(src) ? src : [];\r\n } else {\r\n clone = src && isPlainObject(src) ? src : {};\r\n }\r\n\r\n // Never move original objects, clone them\r\n setProperty(target, { name: name, newValue: extend(deep, clone, copy) });\r\n\r\n // Don't bring in undefined values\r\n } else if (typeof copy !== 'undefined') {\r\n setProperty(target, { name: name, newValue: copy });\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Return the modified object\r\n return target;\r\n };\r\n\r\n },{}],61:[function(require,module,exports){\r\n 'use strict'\r\n var Buffer = require('safe-buffer').Buffer\r\n var Transform = require('stream').Transform\r\n var inherits = require('inherits')\r\n\r\n function 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\n function 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\n inherits(HashBase, Transform)\r\n\r\n HashBase.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\n HashBase.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\n HashBase.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\n HashBase.prototype._update = function () {\r\n throw new Error('_update is not implemented')\r\n }\r\n\r\n HashBase.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\n HashBase.prototype._digest = function () {\r\n throw new Error('_digest is not implemented')\r\n }\r\n\r\n module.exports = HashBase\r\n\r\n },{\"inherits\":64,\"safe-buffer\":86,\"stream\":88}],62:[function(require,module,exports){\r\n var http = require('http')\r\n var url = require('url')\r\n\r\n var https = module.exports\r\n\r\n for (var key in http) {\r\n if (http.hasOwnProperty(key)) https[key] = http[key]\r\n }\r\n\r\n https.request = function (params, cb) {\r\n params = validateParams(params)\r\n return http.request.call(this, params, cb)\r\n }\r\n\r\n https.get = function (params, cb) {\r\n params = validateParams(params)\r\n return http.get.call(this, params, cb)\r\n }\r\n\r\n function 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\n exports.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\n exports.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\n if (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 \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\n module.exports = function (obj) {\r\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\r\n }\r\n\r\n function 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\n function 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\n var toString = {}.toString;\r\n\r\n module.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\n var util = require('util');\r\n var JsonParser = require('jsonparse');\r\n\r\n exports = module.exports;\r\n util.inherits(Parser, JsonParser);\r\n\r\n /**\r\n * Parser Instructor\r\n */\r\n function 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\n var 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\n Parser.C = JsonParser.C;\r\n module.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\n var C = {};\r\n // Tokens\r\n var LEFT_BRACE = C.LEFT_BRACE = 0x1;\r\n var RIGHT_BRACE = C.RIGHT_BRACE = 0x2;\r\n var LEFT_BRACKET = C.LEFT_BRACKET = 0x3;\r\n var RIGHT_BRACKET = C.RIGHT_BRACKET = 0x4;\r\n var COLON = C.COLON = 0x5;\r\n var COMMA = C.COMMA = 0x6;\r\n var TRUE = C.TRUE = 0x7;\r\n var FALSE = C.FALSE = 0x8;\r\n var NULL = C.NULL = 0x9;\r\n var STRING = C.STRING = 0xa;\r\n var NUMBER = C.NUMBER = 0xb;\r\n // Tokenizer States\r\n var START = C.START = 0x11;\r\n var STOP = C.STOP = 0x12;\r\n var TRUE1 = C.TRUE1 = 0x21;\r\n var TRUE2 = C.TRUE2 = 0x22;\r\n var TRUE3 = C.TRUE3 = 0x23;\r\n var FALSE1 = C.FALSE1 = 0x31;\r\n var FALSE2 = C.FALSE2 = 0x32;\r\n var FALSE3 = C.FALSE3 = 0x33;\r\n var FALSE4 = C.FALSE4 = 0x34;\r\n var NULL1 = C.NULL1 = 0x41;\r\n var NULL2 = C.NULL2 = 0x42;\r\n var NULL3 = C.NULL3 = 0x43;\r\n var NUMBER1 = C.NUMBER1 = 0x51;\r\n var NUMBER3 = C.NUMBER3 = 0x53;\r\n var STRING1 = C.STRING1 = 0x61;\r\n var STRING2 = C.STRING2 = 0x62;\r\n var STRING3 = C.STRING3 = 0x63;\r\n var STRING4 = C.STRING4 = 0x64;\r\n var STRING5 = C.STRING5 = 0x65;\r\n var STRING6 = C.STRING6 = 0x66;\r\n // Parser States\r\n var VALUE = C.VALUE = 0x71;\r\n var KEY = C.KEY = 0x72;\r\n // Parser Modes\r\n var OBJECT = C.OBJECT = 0x81;\r\n var ARRAY = C.ARRAY = 0x82;\r\n\r\n\r\n function 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\n Parser.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\n var proto = Parser.prototype;\r\n proto.onError = function (err) { throw err; };\r\n proto.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\n proto.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\n proto.onToken = function (token, value) {\r\n // Override this to get events\r\n };\r\n\r\n proto.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\n proto.push = function () {\r\n this.stack.push({value: this.value, key: this.key, mode: this.mode});\r\n };\r\n proto.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\n proto.emit = function (value) {\r\n if (this.mode) { this.state = COMMA; }\r\n this.onValue(value);\r\n };\r\n proto.onValue = function (value) {\r\n // Override me\r\n };\r\n proto.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\n Parser.C = C;\r\n\r\n module.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\n var inherits = require('inherits')\r\n var HashBase = require('hash-base')\r\n\r\n var ARRAY16 = new Array(16)\r\n\r\n function 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\n inherits(MD5, HashBase)\r\n\r\n MD5.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\n MD5.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\n function rotl (x, n) {\r\n return (x << n) | (x >>> (32 - n))\r\n }\r\n\r\n function 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\n function 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\n function 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\n function 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\n module.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\n exports.endianness = function () { return 'LE' };\r\n\r\n exports.hostname = function () {\r\n if (typeof location !== 'undefined') {\r\n return location.hostname\r\n }\r\n else return '';\r\n };\r\n\r\n exports.loadavg = function () { return [] };\r\n\r\n exports.uptime = function () { return 0 };\r\n\r\n exports.freemem = function () {\r\n return Number.MAX_VALUE;\r\n };\r\n\r\n exports.totalmem = function () {\r\n return Number.MAX_VALUE;\r\n };\r\n\r\n exports.cpus = function () { return [] };\r\n\r\n exports.type = function () { return 'Browser' };\r\n\r\n exports.release = function () {\r\n if (typeof navigator !== 'undefined') {\r\n return navigator.appVersion;\r\n }\r\n return '';\r\n };\r\n\r\n exports.networkInterfaces\r\n = exports.getNetworkInterfaces\r\n = function () { return {} };\r\n\r\n exports.arch = function () { return 'javascript' };\r\n\r\n exports.platform = function () { return 'browser' };\r\n\r\n exports.tmpdir = exports.tmpDir = function () {\r\n return '/tmp';\r\n };\r\n\r\n exports.EOL = '\\n';\r\n\r\n exports.homedir = function () {\r\n return '/'\r\n };\r\n\r\n },{}],71:[function(require,module,exports){\r\n (function (process){\r\n 'use strict';\r\n\r\n if (!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\n function 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\n var 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\n var cachedSetTimeout;\r\n var cachedClearTimeout;\r\n\r\n function defaultSetTimout() {\r\n throw new Error('setTimeout has not been defined');\r\n }\r\n function 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\n function 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\n function 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\n var queue = [];\r\n var draining = false;\r\n var currentQueue;\r\n var queueIndex = -1;\r\n\r\n function 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\n function 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\n process.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\n function Item(fun, array) {\r\n this.fun = fun;\r\n this.array = array;\r\n }\r\n Item.prototype.run = function () {\r\n this.fun.apply(null, this.array);\r\n };\r\n process.title = 'browser';\r\n process.browser = true;\r\n process.env = {};\r\n process.argv = [];\r\n process.version = ''; // empty string to avoid regexp issues\r\n process.versions = {};\r\n\r\n function noop() {}\r\n\r\n process.on = noop;\r\n process.addListener = noop;\r\n process.once = noop;\r\n process.off = noop;\r\n process.removeListener = noop;\r\n process.removeAllListeners = noop;\r\n process.emit = noop;\r\n process.prependListener = noop;\r\n process.prependOnceListener = noop;\r\n\r\n process.listeners = function (name) { return [] }\r\n\r\n process.binding = function (name) {\r\n throw new Error('process.binding is not supported');\r\n };\r\n\r\n process.cwd = function () { return '/' };\r\n process.chdir = function (dir) {\r\n throw new Error('process.chdir is not supported');\r\n };\r\n process.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\n function hasOwnProperty(obj, prop) {\r\n return Object.prototype.hasOwnProperty.call(obj, prop);\r\n }\r\n\r\n module.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\n var 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\n var 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\n module.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\n var isArray = Array.isArray || function (xs) {\r\n return Object.prototype.toString.call(xs) === '[object Array]';\r\n };\r\n\r\n function 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\n var 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\n exports.decode = exports.parse = require('./decode');\r\n exports.encode = exports.stringify = require('./encode');\r\n\r\n },{\"./decode\":73,\"./encode\":74}],76:[function(require,module,exports){\r\n module.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 /**/\r\n\r\n var 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 /**/\r\n\r\n module.exports = Duplex;\r\n\r\n /**/\r\n var processNextTick = require('process-nextick-args');\r\n /**/\r\n\r\n /**/\r\n var util = require('core-util-is');\r\n util.inherits = require('inherits');\r\n /**/\r\n\r\n var Readable = require('./_stream_readable');\r\n var Writable = require('./_stream_writable');\r\n\r\n util.inherits(Duplex, Readable);\r\n\r\n var keys = objectKeys(Writable.prototype);\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 function 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\n function 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\n function onEndNT(self) {\r\n self.end();\r\n }\r\n\r\n function 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\n module.exports = PassThrough;\r\n\r\n var Transform = require('./_stream_transform');\r\n\r\n /**/\r\n var util = require('core-util-is');\r\n util.inherits = require('inherits');\r\n /**/\r\n\r\n util.inherits(PassThrough, Transform);\r\n\r\n function 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\n PassThrough.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\n module.exports = Readable;\r\n\r\n /**/\r\n var processNextTick = require('process-nextick-args');\r\n /**/\r\n\r\n /**/\r\n var isArray = require('isarray');\r\n /**/\r\n\r\n /**/\r\n var Buffer = require('buffer').Buffer;\r\n /**/\r\n\r\n Readable.ReadableState = ReadableState;\r\n\r\n var EE = require('events');\r\n\r\n /**/\r\n var EElistenerCount = function (emitter, type) {\r\n return emitter.listeners(type).length;\r\n };\r\n /**/\r\n\r\n /**/\r\n var 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 /**/\r\n\r\n var Buffer = require('buffer').Buffer;\r\n\r\n /**/\r\n var util = require('core-util-is');\r\n util.inherits = require('inherits');\r\n /**/\r\n\r\n /**/\r\n var debugUtil = require('util');\r\n var debug = undefined;\r\n if (debugUtil && debugUtil.debuglog) {\r\n debug = debugUtil.debuglog('stream');\r\n } else {\r\n debug = function () {};\r\n }\r\n /**/\r\n\r\n var StringDecoder;\r\n\r\n util.inherits(Readable, Stream);\r\n\r\n var Duplex;\r\n function 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\n var Duplex;\r\n function 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\n Readable.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\n Readable.prototype.unshift = function (chunk) {\r\n var state = this._readableState;\r\n return readableAddChunk(this, state, chunk, '', true);\r\n };\r\n\r\n Readable.prototype.isPaused = function () {\r\n return this._readableState.flowing === false;\r\n };\r\n\r\n function 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\n function 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\n Readable.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\n var MAX_HWM = 0x800000;\r\n function 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\n function 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\n Readable.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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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\n Readable.prototype._read = function (n) {\r\n this.emit('error', new Error('not implemented'));\r\n };\r\n\r\n Readable.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\n function 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\n Readable.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\n Readable.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\n Readable.prototype.addListener = Readable.prototype.on;\r\n\r\n function 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\n Readable.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\n function 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\n function 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\n Readable.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\n function 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\n Readable.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\n Readable._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\n function 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\n function 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\n function 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\n function 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\n function 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\n module.exports = Transform;\r\n\r\n var Duplex = require('./_stream_duplex');\r\n\r\n /**/\r\n var util = require('core-util-is');\r\n util.inherits = require('inherits');\r\n /**/\r\n\r\n util.inherits(Transform, Duplex);\r\n\r\n function 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\n function 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\n function 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\n Transform.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\n Transform.prototype._transform = function (chunk, encoding, cb) {\r\n throw new Error('not implemented');\r\n };\r\n\r\n Transform.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\n Transform.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\n function 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\n module.exports = Writable;\r\n\r\n /**/\r\n var processNextTick = require('process-nextick-args');\r\n /**/\r\n\r\n /**/\r\n var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;\r\n /**/\r\n\r\n /**/\r\n var Buffer = require('buffer').Buffer;\r\n /**/\r\n\r\n Writable.WritableState = WritableState;\r\n\r\n /**/\r\n var util = require('core-util-is');\r\n util.inherits = require('inherits');\r\n /**/\r\n\r\n /**/\r\n var internalUtil = {\r\n deprecate: require('util-deprecate')\r\n };\r\n /**/\r\n\r\n /**/\r\n var 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 /**/\r\n\r\n var Buffer = require('buffer').Buffer;\r\n\r\n util.inherits(Writable, Stream);\r\n\r\n function nop() {}\r\n\r\n function 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\n var Duplex;\r\n function 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\n WritableState.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\n var Duplex;\r\n function 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\n Writable.prototype.pipe = function () {\r\n this.emit('error', new Error('Cannot pipe. Not readable.'));\r\n };\r\n\r\n function 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\n function 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\n Writable.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\n Writable.prototype.cork = function () {\r\n var state = this._writableState;\r\n\r\n state.corked++;\r\n };\r\n\r\n Writable.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\n Writable.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\n function 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\n function 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\n function 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\n function 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\n function 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\n function 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 /**/\r\n asyncWrite(afterWrite, stream, state, finished, cb);\r\n /**/\r\n } else {\r\n afterWrite(stream, state, finished, cb);\r\n }\r\n }\r\n }\r\n\r\n function 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\n function 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\n function 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\n Writable.prototype._write = function (chunk, encoding, cb) {\r\n cb(new Error('not implemented'));\r\n };\r\n\r\n Writable.prototype._writev = null;\r\n\r\n Writable.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\n function needFinish(state) {\r\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\r\n }\r\n\r\n function 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\n function 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\n function 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\n function 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\n module.exports = require(\"./lib/_stream_passthrough.js\")\r\n\r\n },{\"./lib/_stream_passthrough.js\":78}],83:[function(require,module,exports){\r\n var 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\n exports = module.exports = require('./lib/_stream_readable.js');\r\n exports.Stream = Stream || exports;\r\n exports.Readable = exports;\r\n exports.Writable = require('./lib/_stream_writable.js');\r\n exports.Duplex = require('./lib/_stream_duplex.js');\r\n exports.Transform = require('./lib/_stream_transform.js');\r\n exports.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\n module.exports = require(\"./lib/_stream_transform.js\")\r\n\r\n },{\"./lib/_stream_transform.js\":80}],85:[function(require,module,exports){\r\n module.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\n var buffer = require('buffer')\r\n var Buffer = buffer.Buffer\r\n\r\n // alternative to using Object.keys for old browsers\r\n function copyProps (src, dst) {\r\n for (var key in src) {\r\n dst[key] = src[key]\r\n }\r\n }\r\n if (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\n function SafeBuffer (arg, encodingOrOffset, length) {\r\n return Buffer(arg, encodingOrOffset, length)\r\n }\r\n\r\n SafeBuffer.prototype = Object.create(Buffer.prototype)\r\n\r\n // Copy static methods from Buffer\r\n copyProps(Buffer, SafeBuffer)\r\n\r\n SafeBuffer.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\n SafeBuffer.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\n SafeBuffer.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\n SafeBuffer.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\n sax.parser = function (strict, opt) { return new SAXParser(strict, opt) }\r\n sax.SAXParser = SAXParser\r\n sax.SAXStream = SAXStream\r\n sax.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\n sax.MAX_BUFFER_LENGTH = 64 * 1024\r\n\r\n var buffers = [\r\n \"comment\", \"sgmlDecl\", \"textNode\", \"tagName\", \"doctype\",\r\n \"procInstName\", \"procInstBody\", \"entity\", \"attribName\",\r\n \"attribValue\", \"cdata\", \"script\"\r\n ]\r\n\r\n sax.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\n function 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\n if (!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\n if (!Object.getPrototypeOf) Object.getPrototypeOf = function (o) {\r\n return o.__proto__\r\n }\r\n\r\n if (!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\n function 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\n function 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\n function 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\n SAXParser.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\n try {\r\n var Stream = require(\"stream\").Stream\r\n } catch (ex) {\r\n var Stream = function () {}\r\n }\r\n\r\n\r\n var streamWraps = sax.EVENTS.filter(function (ev) {\r\n return ev !== \"error\" && ev !== \"end\"\r\n })\r\n\r\n function createStream (strict, opt) {\r\n return new SAXStream(strict, opt)\r\n }\r\n\r\n function 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\n SAXStream.prototype = Object.create(Stream.prototype,\r\n { constructor: { value: SAXStream } })\r\n\r\n SAXStream.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\n SAXStream.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\n SAXStream.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\n var 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\n whitespace = charClass(whitespace)\r\n number = charClass(number)\r\n letter = 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\n var 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\n var 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\n quote = charClass(quote)\r\n entity = charClass(entity)\r\n attribEnd = charClass(attribEnd)\r\n\r\n function 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\n function isRegExp (c) {\r\n return Object.prototype.toString.call(c) === '[object RegExp]'\r\n }\r\n\r\n function is (charclass, c) {\r\n return isRegExp(charclass) ? !!c.match(charclass) : charclass[c]\r\n }\r\n\r\n function not (charclass, c) {\r\n return !is(charclass, c)\r\n }\r\n\r\n var S = 0\r\n sax.STATE =\r\n { BEGIN : S++\r\n , TEXT : S++ // general stuff\r\n , TEXT_ENTITY : S++ // & and such.\r\n , OPEN_WAKA : S++ // <\r\n , SGML_DECL : S++ // \r\n , SCRIPT : S++ //