@mescius/spread-excelio 18.0.0 → 18.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * SpreadJS ExcelIO Library 18.0.0
3
+ * SpreadJS ExcelIO Library 18.0.1
4
4
  *
5
5
  * Copyright(c) MESCIUS inc. All rights reserved.
6
6
  *
@@ -22,12 +22,12 @@ borderWidth:1,borderStyle:"thin",borderColor:"#999999"},borderBottom:{borderWidt
22
22
  "HYMyeongJo-Extra":8,"HYPMokGak-Bold":9,"HYPost-Light":8,"HYPost-Medium":9,"HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":6,"Informal Roman":7,"Ink Free":6,IrisUPC:6,"Iskoola Pota":6,JasmineUPC:6,"Javanese Text":7,Jokerman:9,"Juice ITC":4,KaiTi:6,Kalinga:6,Kartika:6,"Khmer UI":6,KodchiangUPC:6,Kokila:6,"Kristen ITC":7,"Kunstler Script":4,"Lao UI":6,Latha:6,Leelawadee:6,"Leelawadee UI":6,"Leelawadee UI Semilight":7,"Levenim MT":6,LilyUPC:6,"Lucida Bright":7,"Lucida Calligraphy":9,"Lucida Console":8,"Lucida Fax":8,"Lucida Handwriting":9,"Lucida Sans":8,"Lucida Sans Typewriter":7,"Lucida Sans Unicode":9,"Magic R":8,Magneto:9,"Maiandra GD":8,"Malgun Gothic":7,"Malgun Gothic Semilight":8,Mangal:7,Marlett:13,"Matura MT Script Capitals":9,Meiryo:8,"Meiryo UI":8,"Microsoft GothicNeo":7,"Microsoft Himalaya":5,"Microsoft JhengHei":7,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":7,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":7,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":7,MingLiU:7,MingLiU_HKSCS:7,"MingLiU_HKSCS-ExtB":7,"MingLiU-ExtB":7,Miriam:7,"Miriam Fixed":7,Mistral:6,"Modern No. 20":6,"MoeumT R":8,"Mongolian Baiti":7,"Monotype Corsiva":6,MoolBoran:7,"MS Gothic":6,"MS Mincho":7,"MS Outlook":7,"MS PGothic":7,"MS PMincho":7,"MS Reference Sans Serif":9,"MS Reference Specialty":15,"MS UI Gothic":7,"MT Extra":13,"MV Boli":9,"Myanmar Text":7,Narkisim:7,"Neue Haas Grotesk Text Pro":7,"New Gulim":8,"News Gothic MT":7,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:7,"OCR A Extended":8,OCRB:8,"Old English Text MT":7,Onyx:5,"Palace Script MT":5,"Palatino Linotype":6,Papyrus:8,Parchment:4,Perpetua:6,"Perpetua Titling MT":8,"Plantagenet Cherokee":7,Playbill:5,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:6,"Pyunji R":7,Raavi:7,"Rage Italic":7,Ravie:12,Rockwell:7,"Rockwell Condensed":5,"Rockwell Extra Bold":8,"Rockwell Light":7,"Rockwell Nova":7,"Rockwell Nova Cond":7,"Rockwell Nova Cond Light":7,"Rockwell Nova Extra Bold":7,"Rockwell Nova Light":7,Rod:7,"Sakkal Majalla":7,"Sanskrit Text":7,"Script MT Bold":6,"Segoe MDL2 Assets":5,"Segoe Print":9,"Segoe Script":9,"Segoe UI":6,"Segoe UI Black":7,"Segoe UI Emoji":6,"Segoe UI Historic":6,"Segoe UI Light":6,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":6,Selawik:6,"Selawik Light":6,"Selawik Semibold":6,"Shonar Bangla":6,"Showcard Gothic":8,Shruti:6,"Simplified Arabic":6,"Simplified Arabic Fixed":6,"SimSun-ExtB":6,"Sitka Banner":6,"Sitka Display":6,"Sitka Heading":7,"Sitka Small":8,"Sitka Subheading":7,"Sitka Text":8,"Snap ITC":10,"Source Sans Pro":6,"Source Sans Pro Black":6,"Source Sans Pro ExtraLight":6,"Source Sans Pro Light":6,"Source Sans Pro SemiBold":6,Stencil:7,Sylfaen:6,Symbol:6,Tahoma:7,"Tempus Sans ITC":8,"TH SarabunPSK":6,"Times New Roman":6,"Traditional Arabic":6,"Trebuchet MS":6,Tunga:6,"Tw Cen MT":7,"Tw Cen MT Condensed":4,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":6,"UD Digi Kyokasho NK-B":6,"UD Digi Kyokasho NK-R":6,"UD Digi Kyokasho NP-B":6,"UD Digi Kyokasho NP-R":6,"UD Digi Kyokasho N-R":6,Univers:6,"Univers Condensed":6,"Univers Condensed Light":6,"Univers Light":6,"Urdu Typesetting":6,Utsaah:6,Vani:6,Verdana:8,"Verdana Pro":6,"Verdana Pro Black":6,"Verdana Pro Cond":6,"Verdana Pro Cond Black":6,"Verdana Pro Cond Light":6,"Verdana Pro Cond SemiBold":6,"Verdana Pro Light":6,"Verdana Pro SemiBold":6,Vijaya:6,"Viner Hand ITC":8,Vivaldi:5,"Vladimir Script":6,Vrinda:6,Webdings:12,"Wide Latin":15,Wingdings:16,"Wingdings 2":14,"Wingdings 3":11,"Yet R":6,"Yu Gothic":7,"Yu Gothic Light":6,"Yu Gothic Medium":7,"Yu Gothic UI":6,"Yu Gothic UI Light":6,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":6,"Yu Mincho Light":6,"\u4eff\u5b8b":6,"\u534e\u6587\u4e2d\u5b8b":7,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":7,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":6,"\u534e\u6587\u96b6\u4e66":5,"\u5b8b\u4f53":6,"\u5e7c\u5706":6,"\u5fae\u8f6f\u96c5\u9ed1":7,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":6,"\u65b9\u6b63\u59da\u4f53":6,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":6,"\u7b49\u7ebf":6,"\u7b49\u7ebf Light":6,"\u96b6\u4e66":6,"\u9ed1\u4f53":6,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":6,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':6,"\u30e1\u30a4\u30ea\u30aa":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":6,"HG\u660e\u671dB":6,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":6},10:{"Gill Sans MT":7,Abadi:8,"Abadi Extra Light":7,"Agency FB":5,Aharoni:5,Aldhabi:4,Algerian:8,"Ami R":5,"Angsana New":4,AngsanaUPC:4,Aparajita:5,"Arabic Typesetting":4,Arial:7,"Arial Black":9,"Arial Narrow":6,"Arial Nova":7,"Arial Nova Cond":7,"Arial Nova Cond Light":6,"Arial Nova Light":7,"Arial Rounded MT Bold":8,"Baskerville Old Face":6,Batang:7,BatangChe:7,"Bauhaus 93":7,"Bell MT":7,Bembo:6,"Berlin Sans FB":8,"Berlin Sans FB Demi":8,"Bernard MT Condensed":6,"Blackadder ITC":5,"Bodoni MT":6,"Bodoni MT Black":9,"Bodoni MT Condensed":4,"Bodoni MT Poster Compressed":5,"Book Antiqua":7,"Bookman Old Style":8,"Bookshelf Symbol 7":10,"Bradley Hand ITC":8,"Britannic Bold":8,Broadway:8,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":7,Calibri:7,"Calibri Light":7,"Californian FB":7,"Calisto MT":7,Cambria:7,"Cambria Math":7,Candara:7,Castellar:9,Centaur:6,Century:7,"Century Gothic":7,"Century Schoolbook":7,Chiller:6,"Colonna MT":7,"Comic Sans MS":8,Consolas:7,Constantia:7,"Cooper Black":8,"Copperplate Gothic Bold":9,"Copperplate Gothic Light":9,Corbel:7,"Cordia New":5,CordiaUPC:5,"Courier New":8,"Curlz MT":7,Dante:6,DaunPenh:4,David:6,DilleniaUPC:4,DokChampa:7,Dotum:6,DotumChe:7,Dubai:7,"Dubai Light":7,"Dubai Medium":7,Ebrima:7,"Edwardian Script ITC":6,Elephant:10,"Engravers MT":8,"Eras Bold ITC":8,"Eras Demi ITC":8,"Eras Light ITC":7,"Eras Medium ITC":7,EucrosiaUPC:5,Euphemia:8,"Expo M":11,FangSong:7,"Felix Titling":8,"Footlight MT Light":7,Forte:7,"Franklin Gothic Book":8,"Franklin Gothic Demi":8,"Franklin Gothic Demi Cond":7,"Franklin Gothic Heavy":8,"Franklin Gothic Medium":8,"Franklin Gothic Medium Cond":7,FrankRuehl:5,FreesiaUPC:6,"Freestyle Script":5,"French Script MT":5,Gabriola:5,Gadugi:7,Garamond:6,Gautami:8,Georgia:9,"Georgia Pro":7,"Georgia Pro Black":9,"Georgia Pro Cond":7,"Georgia Pro Cond Black":8,"Georgia Pro Cond Light":7,"Georgia Pro Cond Semibold":7,"Georgia Pro Light":7,"Georgia Pro Semibold":8,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":4,"Gill Sans Nova":7,"Gill Sans Nova Cond":4,"Gill Sans Nova Cond Lt":4,"Gill Sans Nova Cond Ultra Bold":8,"Gill Sans Nova Cond XBd":7,"Gill Sans Nova Light":7,"Gill Sans Nova Ultra Bold":11,"Gill Sans Ultra Bold":11,"Gill Sans Ultra Bold Condensed":8,Gisha:7,"Gloucester MT Extra Condensed":5,"Goudy Old Style":7,"Goudy Stout":11,Grotesque:6,"Grotesque Light":6,Gulim:7,GulimChe:7,Gungsuh:6,GungsuhChe:7,"Hadassah Friedlaender":7,Haettenschweiler:6,"Harlow Solid Italic":6,Harrington:7,"Headline R":9,HGGothicE:7,HGGothicM:7,HGGyoshotai:7,HGKyokashotai:7,HGMaruGothicMPRO:10,HGMinchoB:8,HGMinchoE:8,HGPGothicE:8,HGPGothicM:9,HGPGyoshotai:7,HGPKyokashotai:7,HGPMinchoB:7,HGPMinchoE:8,HGPSoeiKakugothicUB:9,HGPSoeiKakupoptai:9,HGPSoeiPresenceEB:8,HGSeikaishotaiPRO:8,HGSGothicE:7,HGSGothicM:8,HGSGyoshotai:6,HGSKyokashotai:6,HGSMinchoB:7,HGSMinchoE:8,HGSoeiKakugothicUB:8,HGSoeiKakupoptai:8,HGSoeiPresenceEB:8,HGSSoeiKakugothicUB:8,HGSSoeiKakupoptai:8,HGSSoeiPresenceEB:7,"High Tower Text":6,"HYGothic-Extra":8,"HYGothic-Medium":8,"HYGraphic-Medium":8,"HYGungSo-Bold":8,"HYHeadLine-Medium":8,"HYMyeongJo-Extra":9,"HYPMokGak-Bold":9,"HYPost-Light":9,"HYPost-Medium":9,"HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":7,"Informal Roman":7,"Ink Free":7,IrisUPC:7,"Iskoola Pota":7,JasmineUPC:7,"Javanese Text":8,Jokerman:9,"Juice ITC":5,KaiTi:7,Kalinga:7,Kartika:7,"Khmer UI":7,KodchiangUPC:4,Kokila:7,"Kristen ITC":8,"Kunstler Script":5,"Lao UI":7,Latha:7,Leelawadee:7,"Leelawadee UI":7,"Leelawadee UI Semilight":7,"Levenim MT":7,LilyUPC:7,"Lucida Bright":8,"Lucida Calligraphy":10,"Lucida Console":9,"Lucida Fax":9,"Lucida Handwriting":10,"Lucida Sans":9,"Lucida Sans Typewriter":8,"Lucida Sans Unicode":9,"Magic R":8,Magneto:10,"Maiandra GD":9,"Malgun Gothic":8,"Malgun Gothic Semilight":8,Mangal:8,Marlett:14,"Matura MT Script Capitals":10,Meiryo:9,"Meiryo UI":9,"Microsoft GothicNeo":8,"Microsoft Himalaya":5,"Microsoft JhengHei":8,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":8,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":8,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":8,MingLiU:8,MingLiU_HKSCS:8,"MingLiU_HKSCS-ExtB":8,"MingLiU-ExtB":8,Miriam:8,"Miriam Fixed":8,Mistral:7,"Modern No. 20":7,"MoeumT R":8,"Mongolian Baiti":8,"Monotype Corsiva":7,MoolBoran:8,"MS Gothic":7,"MS Mincho":8,"MS Outlook":8,"MS PGothic":8,"MS PMincho":8,"MS Reference Sans Serif":9,"MS Reference Specialty":17,"MS UI Gothic":8,"MT Extra":14,"MV Boli":10,"Myanmar Text":7,Narkisim:8,"Neue Haas Grotesk Text Pro":8,"New Gulim":8,"News Gothic MT":8,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:8,"OCR A Extended":9,OCRB:9,"Old English Text MT":8,Onyx:6,"Palace Script MT":5,"Palatino Linotype":7,Papyrus:9,Parchment:4,Perpetua:6,"Perpetua Titling MT":9,"Plantagenet Cherokee":8,Playbill:6,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:8,"Pyunji R":7,Raavi:8,"Rage Italic":8,Ravie:13,Rockwell:7,"Rockwell Condensed":6,"Rockwell Extra Bold":9,"Rockwell Light":8,"Rockwell Nova":8,"Rockwell Nova Cond":8,"Rockwell Nova Cond Light":8,"Rockwell Nova Extra Bold":8,"Rockwell Nova Light":8,Rod:8,"Sakkal Majalla":8,"Sanskrit Text":8,"Script MT Bold":7,"Segoe MDL2 Assets":5,"Segoe Print":10,"Segoe Script":10,"Segoe UI":7,"Segoe UI Black":8,"Segoe UI Emoji":7,"Segoe UI Historic":7,"Segoe UI Light":7,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":7,Selawik:7,"Selawik Light":7,"Selawik Semibold":7,"Shonar Bangla":7,"Showcard Gothic":8,Shruti:7,"Simplified Arabic":7,"Simplified Arabic Fixed":7,"SimSun-ExtB":7,"Sitka Banner":7,"Sitka Display":7,"Sitka Heading":7,"Sitka Small":9,"Sitka Subheading":8,"Sitka Text":8,"Snap ITC":11,"Source Sans Pro":7,"Source Sans Pro Black":7,"Source Sans Pro ExtraLight":7,"Source Sans Pro Light":7,"Source Sans Pro SemiBold":7,Stencil:7,Sylfaen:7,Symbol:7,Tahoma:7,"Tempus Sans ITC":9,"TH SarabunPSK":7,"Times New Roman":6,"Traditional Arabic":7,"Trebuchet MS":7,Tunga:7,"Tw Cen MT":7,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":7,"UD Digi Kyokasho NK-B":7,"UD Digi Kyokasho NK-R":7,"UD Digi Kyokasho NP-B":7,"UD Digi Kyokasho NP-R":7,"UD Digi Kyokasho N-R":7,Univers:7,"Univers Condensed":7,"Univers Condensed Light":7,"Univers Light":7,"Urdu Typesetting":7,Utsaah:7,Vani:7,Verdana:8,"Verdana Pro":8,"Verdana Pro Black":7,"Verdana Pro Cond":7,"Verdana Pro Cond Black":7,"Verdana Pro Cond Light":7,"Verdana Pro Cond SemiBold":7,"Verdana Pro Light":7,"Verdana Pro SemiBold":7,Vijaya:7,"Viner Hand ITC":9,Vivaldi:6,"Vladimir Script":6,Vrinda:7,Webdings:13,"Wide Latin":16,Wingdings:17,"Wingdings 2":15,"Wingdings 3":12,"Yet R":7,"Yu Gothic":7,"Yu Gothic Light":7,"Yu Gothic Medium":7,"Yu Gothic UI":7,"Yu Gothic UI Light":7,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":7,"Yu Mincho Light":7,"\u4eff\u5b8b":7,"\u534e\u6587\u4e2d\u5b8b":8,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":8,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":7,"\u534e\u6587\u96b6\u4e66":6,"\u5b8b\u4f53":7,"\u5e7c\u5706":7,"\u5fae\u8f6f\u96c5\u9ed1":8,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":7,"\u65b9\u6b63\u59da\u4f53":7,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":7,"\u7b49\u7ebf":7,"\u7b49\u7ebf Light":7,"\u96b6\u4e66":7,"\u9ed1\u4f53":7,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":7,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':7,"\u30e1\u30a4\u30ea\u30aa":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":7,"HG\u660e\u671dB":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":7},11:{"Gill Sans MT":8,Abadi:9,"Abadi Extra Light":8,"Agency FB":6,Aharoni:6,Aldhabi:5,Algerian:9,"Ami R":6,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:8,"Arial Black":10,"Arial Narrow":7,"Arial Nova":8,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":8,"Arial Rounded MT Bold":9,"Baskerville Old Face":7,Batang:8,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:7,"Berlin Sans FB":9,"Berlin Sans FB Demi":9,"Bernard MT Condensed":7,"Blackadder ITC":6,"Bodoni MT":7,"Bodoni MT Black":10,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":5,"Book Antiqua":8,"Bookman Old Style":9,"Bookshelf Symbol 7":11,"Bradley Hand ITC":10,"Britannic Bold":9,Broadway:10,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":8,Calibri:7,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:8,"Cambria Math":8,Candara:8,Castellar:11,Centaur:7,Century:8,"Century Gothic":8,"Century Schoolbook":8,Chiller:7,"Colonna MT":8,"Comic Sans MS":9,Consolas:8,Constantia:8,"Cooper Black":9,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":11,Corbel:8,"Cordia New":5,CordiaUPC:5,"Courier New":9,"Curlz MT":8,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:8,Dotum:9,DotumChe:8,Dubai:8,"Dubai Light":8,"Dubai Medium":8,Ebrima:8,"Edwardian Script ITC":7,Elephant:11,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":9,"Eras Light ITC":8,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":13,FangSong:8,"Felix Titling":9,"Footlight MT Light":8,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:6,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":5,Gabriola:6,Gadugi:8,Garamond:7,Gautami:9,Georgia:9,"Georgia Pro":8,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":8,"Georgia Pro Light":8,"Georgia Pro Semibold":9,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":5,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":13,"Gill Sans Ultra Bold":13,"Gill Sans Ultra Bold Condensed":9,Gisha:8,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":12,Grotesque:7,"Grotesque Light":7,Gulim:8,GulimChe:8,Gungsuh:7,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:8,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:11,HGMinchoB:9,HGMinchoE:9,HGPGothicE:9,HGPGothicM:10,HGPGyoshotai:8,HGPKyokashotai:8,HGPMinchoB:8,HGPMinchoE:9,HGPSoeiKakugothicUB:10,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:9,HGSeikaishotaiPRO:9,HGSGothicE:8,HGSGothicM:9,HGSGyoshotai:7,HGSKyokashotai:7,HGSMinchoB:8,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:9,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:8,"High Tower Text":7,"HYGothic-Extra":9,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":10,"HYPMokGak-Bold":11,"HYPost-Light":10,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":9,Impact:8,"Imprint MT Shadow":8,"Informal Roman":8,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:8,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":9,"Kunstler Script":5,"Lao UI":8,Latha:8,Leelawadee:8,"Leelawadee UI":8,"Leelawadee UI Semilight":8,"Levenim MT":9,LilyUPC:8,"Lucida Bright":9,"Lucida Calligraphy":11,"Lucida Console":10,"Lucida Fax":10,"Lucida Handwriting":11,"Lucida Sans":10,"Lucida Sans Typewriter":9,"Lucida Sans Unicode":10,"Magic R":9,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":9,Mangal:9,Marlett:16,"Matura MT Script Capitals":11,Meiryo:9,"Meiryo UI":10,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":9,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":9,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":9,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":9,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":10,Mistral:8,"Modern No. 20":8,"MoeumT R":9,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:9,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":19,"MS UI Gothic":9,"MT Extra":16,"MV Boli":12,"Myanmar Text":9,Narkisim:7,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":5,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":9,Nyala:9,"OCR A Extended":10,OCRB:10,"Old English Text MT":9,Onyx:6,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":10,"Plantagenet Cherokee":9,Playbill:6,PMingLiU:8,"PMingLiU-ExtB":8,"Poor Richard":9,Pristina:9,"Pyunji R":8,Raavi:9,"Rage Italic":9,Ravie:15,Rockwell:8,"Rockwell Condensed":6,"Rockwell Extra Bold":10,"Rockwell Light":9,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":6,"Segoe Print":11,"Segoe Script":11,"Segoe UI":8,"Segoe UI Black":9,"Segoe UI Emoji":8,"Segoe UI Historic":8,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":8,"Segoe UI Symbol":8,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":8,"Sitka Small":10,"Sitka Subheading":9,"Sitka Text":9,"Snap ITC":13,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:8,"Tempus Sans ITC":10,"TH SarabunPSK":8,"Times New Roman":7,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":8,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":7,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:8,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":10,Vivaldi:6,"Vladimir Script":7,Vrinda:9,Webdings:15,"Wide Latin":19,Wingdings:20,"Wingdings 2":17,"Wingdings 3":13,"Yet R":8,"Yu Gothic":8,"Yu Gothic Light":8,"Yu Gothic Medium":8,"Yu Gothic UI":8,"Yu Gothic UI Light":8,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":8,"Yu Mincho":8,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":9,"\u534e\u6587\u4eff\u5b8b":7,"\u534e\u6587\u5b8b\u4f53":7,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":7,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":8,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":8,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":8,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":9,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},12:{"Gill Sans MT":8,Abadi:10,"Abadi Extra Light":9,"Agency FB":6,Aharoni:7,Aldhabi:5,Algerian:10,"Ami R":7,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:9,"Arial Black":11,"Arial Narrow":7,"Arial Nova":9,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":9,"Arial Rounded MT Bold":10,"Baskerville Old Face":8,Batang:9,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:8,"Berlin Sans FB":10,"Berlin Sans FB Demi":10,"Bernard MT Condensed":8,"Blackadder ITC":6,"Bodoni MT":8,"Bodoni MT Black":11,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":6,"Book Antiqua":8,"Bookman Old Style":10,"Bookshelf Symbol 7":12,"Bradley Hand ITC":10,"Britannic Bold":10,Broadway:10,"Browallia New":6,BrowalliaUPC:6,"Brush Script MT":8,Calibri:8,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:9,"Cambria Math":9,Candara:9,Castellar:12,Centaur:8,Century:9,"Century Gothic":9,"Century Schoolbook":9,Chiller:8,"Colonna MT":8,"Comic Sans MS":10,Consolas:9,Constantia:9,"Cooper Black":10,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":12,Corbel:8,"Cordia New":6,CordiaUPC:6,"Courier New":10,"Curlz MT":9,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:9,Dotum:8,DotumChe:8,Dubai:9,"Dubai Light":9,"Dubai Medium":9,Ebrima:9,"Edwardian Script ITC":8,Elephant:12,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":10,"Eras Light ITC":9,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":14,FangSong:8,"Felix Titling":9,"Footlight MT Light":9,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:7,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":6,Gabriola:6,Gadugi:9,Garamond:8,Gautami:10,Georgia:10,"Georgia Pro":9,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":9,"Georgia Pro Light":9,"Georgia Pro Semibold":10,Gigi:7,"Gill Sans MT Condensed":6,"Gill Sans MT Ext Condensed Bold":6,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":14,"Gill Sans Ultra Bold":14,"Gill Sans Ultra Bold Condensed":9,Gisha:9,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":13,Grotesque:8,"Grotesque Light":8,Gulim:9,GulimChe:8,Gungsuh:9,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:9,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:12,HGMinchoB:9,HGMinchoE:9,HGPGothicE:10,HGPGothicM:10,HGPGyoshotai:9,HGPKyokashotai:8,HGPMinchoB:9,HGPMinchoE:9,HGPSoeiKakugothicUB:11,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:10,HGSeikaishotaiPRO:10,HGSGothicE:9,HGSGothicM:9,HGSGyoshotai:8,HGSKyokashotai:7,HGSMinchoB:9,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:10,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:9,"High Tower Text":8,"HYGothic-Extra":10,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":11,"HYPMokGak-Bold":11,"HYPost-Light":11,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":10,Impact:9,"Imprint MT Shadow":8,"Informal Roman":9,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:9,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":10,"Kunstler Script":6,"Lao UI":8,Latha:8,Leelawadee:9,"Leelawadee UI":9,"Leelawadee UI Semilight":9,"Levenim MT":9,LilyUPC:7,"Lucida Bright":10,"Lucida Calligraphy":12,"Lucida Console":11,"Lucida Fax":11,"Lucida Handwriting":12,"Lucida Sans":11,"Lucida Sans Typewriter":10,"Lucida Sans Unicode":11,"Magic R":10,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":10,Mangal:9,Marlett:17,"Matura MT Script Capitals":12,Meiryo:11,"Meiryo UI":11,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":10,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":10,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":10,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":10,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":11,Mistral:8,"Modern No. 20":8,"MoeumT R":10,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:7,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":20,"MS UI Gothic":9,"MT Extra":17,"MV Boli":12,"Myanmar Text":9,Narkisim:8,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":6,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":10,Nyala:9,"OCR A Extended":11,OCRB:11,"Old English Text MT":9,Onyx:7,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":11,"Plantagenet Cherokee":9,Playbill:7,PMingLiU:9,"PMingLiU-ExtB":9,"Poor Richard":10,Pristina:9,"Pyunji R":9,Raavi:8,"Rage Italic":9,Ravie:16,Rockwell:9,"Rockwell Condensed":7,"Rockwell Extra Bold":11,"Rockwell Light":10,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":7,"Segoe Print":12,"Segoe Script":12,"Segoe UI":9,"Segoe UI Black":10,"Segoe UI Emoji":9,"Segoe UI Historic":9,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":9,"Segoe UI Symbol":9,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":9,"Sitka Small":11,"Sitka Subheading":9,"Sitka Text":10,"Snap ITC":14,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:9,"Tempus Sans ITC":11,"TH SarabunPSK":8,"Times New Roman":8,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":9,"Tw Cen MT Condensed":6,"Tw Cen MT Condensed Extra Bold":8,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:6,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":11,Vivaldi:7,"Vladimir Script":7,Vrinda:9,Webdings:16,"Wide Latin":20,Wingdings:22,"Wingdings 2":18,"Wingdings 3":14,"Yet R":9,"Yu Gothic":9,"Yu Gothic Light":9,"Yu Gothic Medium":9,"Yu Gothic UI":9,"Yu Gothic UI Light":9,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":9,"Yu Mincho":9,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":10,"\u534e\u6587\u4eff\u5b8b":8,"\u534e\u6587\u5b8b\u4f53":8,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":8,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":9,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":9,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":9,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},14:{"Gill Sans MT":10,Abadi:11,"Abadi Extra Light":11,"Agency FB":8,Aharoni:8,Aldhabi:6,Algerian:11,"Ami R":8,"Angsana New":6,AngsanaUPC:6,Aparajita:8,"Arabic Typesetting":6,Arial:11,"Arial Black":13,"Arial Narrow":9,"Arial Nova":11,"Arial Nova Cond":10,"Arial Nova Cond Light":9,"Arial Nova Light":11,"Arial Rounded MT Bold":11,"Baskerville Old Face":9,Batang:10,BatangChe:10,"Bauhaus 93":11,"Bell MT":10,Bembo:9,"Berlin Sans FB":11,"Berlin Sans FB Demi":12,"Bernard MT Condensed":9,"Blackadder ITC":8,"Bodoni MT":9,"Bodoni MT Black":12,"Bodoni MT Condensed":6,"Bodoni MT Poster Compressed":6,"Book Antiqua":10,"Bookman Old Style":12,"Bookshelf Symbol 7":14,"Bradley Hand ITC":12,"Britannic Bold":12,Broadway:12,"Browallia New":7,BrowalliaUPC:7,"Brush Script MT":10,Calibri:10,"Calibri Light":10,"Californian FB":11,"Calisto MT":10,Cambria:11,"Cambria Math":11,Candara:10,Castellar:14,Centaur:9,Century:11,"Century Gothic":11,"Century Schoolbook":11,Chiller:9,"Colonna MT":10,"Comic Sans MS":12,Consolas:10,Constantia:10,"Cooper Black":11,"Copperplate Gothic Bold":14,"Copperplate Gothic Light":14,Corbel:10,"Cordia New":7,CordiaUPC:7,"Courier New":11,"Curlz MT":10,Dante:9,DaunPenh:6,David:8,DilleniaUPC:6,DokChampa:11,Dotum:10,DotumChe:10,Dubai:10,"Dubai Light":10,"Dubai Medium":10,Ebrima:10,"Edwardian Script ITC":9,Elephant:14,"Engravers MT":12,"Eras Bold ITC":12,"Eras Demi ITC":12,"Eras Light ITC":10,"Eras Medium ITC":11,EucrosiaUPC:8,Euphemia:11,"Expo M":16,FangSong:10,"Felix Titling":11,"Footlight MT Light":11,Forte:10,"Franklin Gothic Book":11,"Franklin Gothic Demi":11,"Franklin Gothic Demi Cond":10,"Franklin Gothic Heavy":11,"Franklin Gothic Medium":11,"Franklin Gothic Medium Cond":10,FrankRuehl:8,FreesiaUPC:8,"Freestyle Script":7,"French Script MT":7,Gabriola:8,Gadugi:10,Garamond:9,Gautami:11,Georgia:12,"Georgia Pro":11,"Georgia Pro Black":13,"Georgia Pro Cond":10,"Georgia Pro Cond Black":12,"Georgia Pro Cond Light":10,"Georgia Pro Cond Semibold":11,"Georgia Pro Light":10,"Georgia Pro Semibold":12,Gigi:10,"Gill Sans MT Condensed":7,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":10,"Gill Sans Nova Cond":6,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":11,"Gill Sans Nova Cond XBd":10,"Gill Sans Nova Light":10,"Gill Sans Nova Ultra Bold":16,"Gill Sans Ultra Bold":16,"Gill Sans Ultra Bold Condensed":11,Gisha:10,"Gloucester MT Extra Condensed":7,"Goudy Old Style":10,"Goudy Stout":16,Grotesque:9,"Grotesque Light":9,Gulim:10,GulimChe:10,Gungsuh:10,GungsuhChe:10,"Hadassah Friedlaender":11,Haettenschweiler:8,"Harlow Solid Italic":9,Harrington:11,"Headline R":14,HGGothicE:10,HGGothicM:10,HGGyoshotai:10,HGKyokashotai:10,HGMaruGothicMPRO:14,HGMinchoB:11,HGMinchoE:11,HGPGothicE:11,HGPGothicM:12,HGPGyoshotai:10,HGPKyokashotai:10,HGPMinchoB:10,HGPMinchoE:11,HGPSoeiKakugothicUB:13,HGPSoeiKakupoptai:13,HGPSoeiPresenceEB:12,HGSeikaishotaiPRO:11,HGSGothicE:10,HGSGothicM:11,HGSGyoshotai:9,HGSKyokashotai:9,HGSMinchoB:10,HGSMinchoE:11,HGSoeiKakugothicUB:11,HGSoeiKakupoptai:11,HGSoeiPresenceEB:11,HGSSoeiKakugothicUB:12,HGSSoeiKakupoptai:12,HGSSoeiPresenceEB:11,"High Tower Text":9,"HYGothic-Extra":12,"HYGothic-Medium":11,"HYGraphic-Medium":11,"HYGungSo-Bold":11,"HYHeadLine-Medium":11,"HYMyeongJo-Extra":13,"HYPMokGak-Bold":13,"HYPost-Light":13,"HYPost-Medium":13,"HYShortSamul-Medium":7,"HYSinMyeongJo-Medium":12,Impact:10,"Imprint MT Shadow":10,"Informal Roman":10,"Ink Free":10,IrisUPC:10,"Iskoola Pota":10,JasmineUPC:10,"Javanese Text":11,Jokerman:14,"Juice ITC":7,KaiTi:10,
23
23
  Kalinga:11,Kartika:11,"Khmer UI":10,KodchiangUPC:7,Kokila:10,"Kristen ITC":11,"Kunstler Script":7,"Lao UI":10,Latha:10,Leelawadee:10,"Leelawadee UI":10,"Leelawadee UI Semilight":10,"Levenim MT":11,LilyUPC:8,"Lucida Bright":12,"Lucida Calligraphy":14,"Lucida Console":12,"Lucida Fax":13,"Lucida Handwriting":14,"Lucida Sans":13,"Lucida Sans Typewriter":11,"Lucida Sans Unicode":13,"Magic R":12,Magneto:15,"Maiandra GD":12,"Malgun Gothic":11,"Malgun Gothic Semilight":12,Mangal:11,Marlett:20,"Matura MT Script Capitals":13,Meiryo:13,"Meiryo UI":13,"Microsoft GothicNeo":11,"Microsoft Himalaya":7,"Microsoft JhengHei":11,"Microsoft JhengHei Light":12,"Microsoft JhengHei UI":11,"Microsoft JhengHei UI Light":12,"Microsoft New Tai Lue":11,"Microsoft PhagsPa":11,"Microsoft Sans Serif":11,"Microsoft Tai Le":11,"Microsoft Uighur":7,"Microsoft YaHei Light":12,"Microsoft YaHei UI":12,"Microsoft YaHei UI Light":12,"Microsoft Yi Baiti":11,MingLiU:11,MingLiU_HKSCS:11,"MingLiU_HKSCS-ExtB":11,"MingLiU-ExtB":11,Miriam:10,"Miriam Fixed":12,Mistral:10,"Modern No. 20":10,"MoeumT R":11,"Mongolian Baiti":11,"Monotype Corsiva":9,MoolBoran:8,"MS Gothic":10,"MS Mincho":11,"MS Outlook":11,"MS PGothic":11,"MS PMincho":11,"MS Reference Sans Serif":13,"MS Reference Specialty":24,"MS UI Gothic":11,"MT Extra":20,"MV Boli":14,"Myanmar Text":11,Narkisim:9,"Neue Haas Grotesk Text Pro":11,"New Gulim":12,"News Gothic MT":12,"Niagara Engraved":7,"Niagara Solid":7,"Nirmala UI":11,"Nirmala UI Semilight":11,Nyala:11,"OCR A Extended":12,OCRB:12,"Old English Text MT":11,Onyx:7,"Palace Script MT":7,"Palatino Linotype":10,Papyrus:12,Parchment:5,Perpetua:9,"Perpetua Titling MT":13,"Plantagenet Cherokee":11,Playbill:8,PMingLiU:10,"PMingLiU-ExtB":10,"Poor Richard":11,Pristina:10,"Pyunji R":10,Raavi:10,"Rage Italic":11,Ravie:19,Rockwell:10,"Rockwell Condensed":8,"Rockwell Extra Bold":13,"Rockwell Light":11,"Rockwell Nova":11,"Rockwell Nova Cond":11,"Rockwell Nova Cond Light":11,"Rockwell Nova Extra Bold":11,"Rockwell Nova Light":11,Rod:11,"Sakkal Majalla":11,"Sanskrit Text":12,"Script MT Bold":10,"Segoe MDL2 Assets":8,"Segoe Print":14,"Segoe Script":14,"Segoe UI":10,"Segoe UI Black":12,"Segoe UI Emoji":10,"Segoe UI Historic":10,"Segoe UI Light":10,"Segoe UI Semibold":11,"Segoe UI Semilight":10,"Segoe UI Symbol":10,Selawik:10,"Selawik Light":10,"Selawik Semibold":10,"Shonar Bangla":10,"Showcard Gothic":11,Shruti:11,"Simplified Arabic":10,"Simplified Arabic Fixed":11,"SimSun-ExtB":10,"Sitka Banner":10,"Sitka Display":10,"Sitka Heading":11,"Sitka Small":13,"Sitka Subheading":11,"Sitka Text":12,"Snap ITC":16,"Source Sans Pro":9,"Source Sans Pro Black":10,"Source Sans Pro ExtraLight":9,"Source Sans Pro Light":10,"Source Sans Pro SemiBold":10,Stencil:11,Sylfaen:10,Symbol:10,Tahoma:10,"Tempus Sans ITC":13,"TH SarabunPSK":7,"Times New Roman":10,"Traditional Arabic":10,"Trebuchet MS":10,Tunga:10,"Tw Cen MT":10,"Tw Cen MT Condensed":7,"Tw Cen MT Condensed Extra Bold":9,"UD Digi Kyokasho N-B":10,"UD Digi Kyokasho NK-B":10,"UD Digi Kyokasho NK-R":10,"UD Digi Kyokasho NP-B":10,"UD Digi Kyokasho NP-R":10,"UD Digi Kyokasho N-R":10,Univers:10,"Univers Condensed":10,"Univers Condensed Light":8,"Univers Light":10,"Urdu Typesetting":10,Utsaah:8,Vani:11,Verdana:12,"Verdana Pro":12,"Verdana Pro Black":10,"Verdana Pro Cond":10,"Verdana Pro Cond Black":10,"Verdana Pro Cond Light":10,"Verdana Pro Cond SemiBold":10,"Verdana Pro Light":10,"Verdana Pro SemiBold":10,Vijaya:10,"Viner Hand ITC":13,Vivaldi:8,"Vladimir Script":9,Vrinda:11,Webdings:19,"Wide Latin":24,Wingdings:26,"Wingdings 2":22,"Wingdings 3":17,"Yet R":10,"Yu Gothic":11,"Yu Gothic Light":10,"Yu Gothic Medium":11,"Yu Gothic UI":10,"Yu Gothic UI Light":10,"Yu Gothic UI Semibold":11,"Yu Gothic UI Semilight":10,"Yu Mincho":10,"Yu Mincho Demibold":10,"Yu Mincho Light":10,"\u4eff\u5b8b":10,"\u534e\u6587\u4e2d\u5b8b":12,"\u534e\u6587\u4eff\u5b8b":9,"\u534e\u6587\u5b8b\u4f53":9,"\u534e\u6587\u5f69\u4e91":11,"\u534e\u6587\u65b0\u9b4f":11,"\u534e\u6587\u6977\u4f53":9,"\u534e\u6587\u7425\u73c0":11,"\u534e\u6587\u7ec6\u9ed1":11,"\u534e\u6587\u884c\u6977":10,"\u534e\u6587\u96b6\u4e66":8,"\u5b8b\u4f53":10,"\u5e7c\u5706":10,"\u5fae\u8f6f\u96c5\u9ed1":11,"\u5fae\u8f6f\u96c5\u9ed1 Light":11,"\u65b0\u5b8b\u4f53":10,"\u65b9\u6b63\u59da\u4f53":10,"\u65b9\u6b63\u8212\u4f53":10,"\u6977\u4f53":10,"\u7b49\u7ebf":10,"\u7b49\u7ebf Light":10,"\u96b6\u4e66":10,"\u9ed1\u4f53":10,"\u6e38\u30b4\u30b7\u30c3\u30af":11,"\uff2d\uff33 \uff30\u660e\u671d":10,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':10,"\u30e1\u30a4\u30ea\u30aa":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":10,"HG\u660e\u671dB":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":10},16:{"Gill Sans MT":11,Abadi:13,"Abadi Extra Light":12,"Agency FB":9,Aharoni:9,Aldhabi:7,Algerian:13,"Ami R":9,"Angsana New":7,AngsanaUPC:7,Aparajita:8,"Arabic Typesetting":7,Arial:12,"Arial Black":14,"Arial Narrow":10,"Arial Nova":12,"Arial Nova Cond":11,"Arial Nova Cond Light":9,"Arial Nova Light":12,"Arial Rounded MT Bold":12,"Baskerville Old Face":10,Batang:10,BatangChe:11,"Bauhaus 93":12,"Bell MT":11,Bembo:10,"Berlin Sans FB":13,"Berlin Sans FB Demi":13,"Bernard MT Condensed":10,"Blackadder ITC":8,"Bodoni MT":10,"Bodoni MT Black":14,"Bodoni MT Condensed":7,"Bodoni MT Poster Compressed":7,"Book Antiqua":11,"Bookman Old Style":13,"Bookshelf Symbol 7":16,"Bradley Hand ITC":14,"Britannic Bold":13,Broadway:14,"Browallia New":8,BrowalliaUPC:8,"Brush Script MT":11,Calibri:11,"Calibri Light":11,"Californian FB":12,"Calisto MT":11,Cambria:12,"Cambria Math":12,Candara:12,Castellar:15,Centaur:10,Century:12,"Century Gothic":12,"Century Schoolbook":12,Chiller:10,"Colonna MT":11,"Comic Sans MS":13,Consolas:12,Constantia:11,"Cooper Black":13,"Copperplate Gothic Bold":15,"Copperplate Gothic Light":15,Corbel:11,"Cordia New":8,CordiaUPC:8,"Courier New":13,"Curlz MT":11,Dante:9,DaunPenh:7,David:9,DilleniaUPC:7,DokChampa:12,Dotum:11,DotumChe:11,Dubai:11,"Dubai Light":11,"Dubai Medium":11,Ebrima:11,"Edwardian Script ITC":10,Elephant:16,"Engravers MT":14,"Eras Bold ITC":14,"Eras Demi ITC":13,"Eras Light ITC":11,"Eras Medium ITC":12,EucrosiaUPC:9,Euphemia:12,"Expo M":18,FangSong:11,"Felix Titling":12,"Footlight MT Light":12,Forte:11,"Franklin Gothic Book":12,"Franklin Gothic Demi":12,"Franklin Gothic Demi Cond":11,"Franklin Gothic Heavy":12,"Franklin Gothic Medium":12,"Franklin Gothic Medium Cond":11,FrankRuehl:9,FreesiaUPC:9,"Freestyle Script":8,"French Script MT":8,Gabriola:8,Gadugi:11,Garamond:10,Gautami:13,Georgia:13,"Georgia Pro":12,"Georgia Pro Black":15,"Georgia Pro Cond":11,"Georgia Pro Cond Black":13,"Georgia Pro Cond Light":11,"Georgia Pro Cond Semibold":12,"Georgia Pro Light":12,"Georgia Pro Semibold":13,Gigi:12,"Gill Sans MT Condensed":8,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":11,"Gill Sans Nova Cond":7,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":12,"Gill Sans Nova Cond XBd":11,"Gill Sans Nova Light":11,"Gill Sans Nova Ultra Bold":18,"Gill Sans Ultra Bold":18,"Gill Sans Ultra Bold Condensed":12,Gisha:11,"Gloucester MT Extra Condensed":8,"Goudy Old Style":11,"Goudy Stout":17,Grotesque:10,"Grotesque Light":10,Gulim:11,GulimChe:11,Gungsuh:11,GungsuhChe:11,"Hadassah Friedlaender":12,Haettenschweiler:9,"Harlow Solid Italic":10,Harrington:12,"Headline R":15,HGGothicE:11,HGGothicM:11,HGGyoshotai:11,HGKyokashotai:11,HGMaruGothicMPRO:16,HGMinchoB:12,HGMinchoE:12,HGPGothicE:12,HGPGothicM:13,HGPGyoshotai:11,HGPKyokashotai:11,HGPMinchoB:11,HGPMinchoE:12,HGPSoeiKakugothicUB:14,HGPSoeiKakupoptai:15,HGPSoeiPresenceEB:13,HGSeikaishotaiPRO:12,HGSGothicE:11,HGSGothicM:12,HGSGyoshotai:10,HGSKyokashotai:10,HGSMinchoB:11,HGSMinchoE:12,HGSoeiKakugothicUB:12,HGSoeiKakupoptai:12,HGSoeiPresenceEB:12,HGSSoeiKakugothicUB:13,HGSSoeiKakupoptai:14,HGSSoeiPresenceEB:12,"High Tower Text":10,"HYGothic-Extra":13,"HYGothic-Medium":12,"HYGraphic-Medium":12,"HYGungSo-Bold":12,"HYHeadLine-Medium":12,"HYMyeongJo-Extra":14,"HYPMokGak-Bold":15,"HYPost-Light":14,"HYPost-Medium":15,"HYShortSamul-Medium":8,"HYSinMyeongJo-Medium":13,Impact:11,"Imprint MT Shadow":11,"Informal Roman":11,"Ink Free":11,IrisUPC:11,"Iskoola Pota":11,JasmineUPC:10,"Javanese Text":12,Jokerman:15,"Juice ITC":8,KaiTi:11,Kalinga:12,Kartika:12,"Khmer UI":11,KodchiangUPC:7,Kokila:8,"Kristen ITC":13,"Kunstler Script":7,"Lao UI":11,Latha:11,Leelawadee:11,"Leelawadee UI":11,"Leelawadee UI Semilight":12,"Levenim MT":12,LilyUPC:9,"Lucida Bright":13,"Lucida Calligraphy":15,"Lucida Console":14,"Lucida Fax":14,"Lucida Handwriting":15,"Lucida Sans":14,"Lucida Sans Typewriter":13,"Lucida Sans Unicode":14,"Magic R":13,Magneto:16,"Maiandra GD":13,"Malgun Gothic":12,"Malgun Gothic Semilight":13,Mangal:12,Marlett:22,"Matura MT Script Capitals":15,Meiryo:14,"Meiryo UI":14,"Microsoft GothicNeo":12,"Microsoft Himalaya":8,"Microsoft JhengHei":13,"Microsoft JhengHei Light":13,"Microsoft JhengHei UI":13,"Microsoft JhengHei UI Light":13,"Microsoft New Tai Lue":12,"Microsoft PhagsPa":12,"Microsoft Sans Serif":13,"Microsoft Tai Le":12,"Microsoft Uighur":8,"Microsoft YaHei Light":13,"Microsoft YaHei UI":13,"Microsoft YaHei UI Light":13,"Microsoft Yi Baiti":12,MingLiU:12,MingLiU_HKSCS:12,"MingLiU_HKSCS-ExtB":12,"MingLiU-ExtB":12,Miriam:11,"Miriam Fixed":14,Mistral:10,"Modern No. 20":11,"MoeumT R":13,"Mongolian Baiti":12,"Monotype Corsiva":10,MoolBoran:8,"MS Gothic":11,"MS Mincho":12,"MS Outlook":12,"MS PGothic":12,"MS PMincho":12,"MS Reference Sans Serif":14,"MS Reference Specialty":26,"MS UI Gothic":12,"MT Extra":22,"MV Boli":16,"Myanmar Text":12,Narkisim:10,"Neue Haas Grotesk Text Pro":12,"New Gulim":13,"News Gothic MT":14,"Niagara Engraved":8,"Niagara Solid":8,"Nirmala UI":12,"Nirmala UI Semilight":13,Nyala:12,"OCR A Extended":14,OCRB:14,"Old English Text MT":12,Onyx:8,"Palace Script MT":8,"Palatino Linotype":11,Papyrus:14,Parchment:5,Perpetua:10,"Perpetua Titling MT":14,"Plantagenet Cherokee":12,Playbill:8,PMingLiU:11,"PMingLiU-ExtB":11,"Poor Richard":13,Pristina:11,"Pyunji R":11,Raavi:11,"Rage Italic":12,Ravie:21,Rockwell:11,"Rockwell Condensed":9,"Rockwell Extra Bold":14,"Rockwell Light":12,"Rockwell Nova":12,"Rockwell Nova Cond":12,"Rockwell Nova Cond Light":12,"Rockwell Nova Extra Bold":12,"Rockwell Nova Light":12,Rod:12,"Sakkal Majalla":12,"Sanskrit Text":13,"Script MT Bold":11,"Segoe MDL2 Assets":8,"Segoe Print":15,"Segoe Script":15,"Segoe UI":11,"Segoe UI Black":13,"Segoe UI Emoji":11,"Segoe UI Historic":11,"Segoe UI Light":11,"Segoe UI Semibold":12,"Segoe UI Semilight":11,"Segoe UI Symbol":11,Selawik:11,"Selawik Light":11,"Selawik Semibold":12,"Shonar Bangla":11,"Showcard Gothic":12,Shruti:13,"Simplified Arabic":11,"Simplified Arabic Fixed":13,"SimSun-ExtB":11,"Sitka Banner":11,"Sitka Display":11,"Sitka Heading":12,"Sitka Small":14,"Sitka Subheading":12,"Sitka Text":13,"Snap ITC":18,"Source Sans Pro":10,"Source Sans Pro Black":11,"Source Sans Pro ExtraLight":10,"Source Sans Pro Light":11,"Source Sans Pro SemiBold":11,Stencil:12,Sylfaen:11,Symbol:11,Tahoma:11,"Tempus Sans ITC":14,"TH SarabunPSK":8,"Times New Roman":11,"Traditional Arabic":10,"Trebuchet MS":11,Tunga:11,"Tw Cen MT":12,"Tw Cen MT Condensed":8,"Tw Cen MT Condensed Extra Bold":10,"UD Digi Kyokasho N-B":11,"UD Digi Kyokasho NK-B":11,"UD Digi Kyokasho NK-R":11,"UD Digi Kyokasho NP-B":11,"UD Digi Kyokasho NP-R":11,"UD Digi Kyokasho N-R":11,Univers:11,"Univers Condensed":11,"Univers Condensed Light":9,"Univers Light":11,"Urdu Typesetting":11,Utsaah:8,Vani:13,Verdana:13,"Verdana Pro":13,"Verdana Pro Black":11,"Verdana Pro Cond":11,"Verdana Pro Cond Black":11,"Verdana Pro Cond Light":11,"Verdana Pro Cond SemiBold":11,"Verdana Pro Light":11,"Verdana Pro SemiBold":11,Vijaya:11,"Viner Hand ITC":14,Vivaldi:9,"Vladimir Script":10,Vrinda:12,Webdings:21,"Wide Latin":26,Wingdings:28,"Wingdings 2":24,"Wingdings 3":19,"Yet R":11,"Yu Gothic":12,"Yu Gothic Light":11,"Yu Gothic Medium":12,"Yu Gothic UI":11,"Yu Gothic UI Light":11,"Yu Gothic UI Semibold":12,"Yu Gothic UI Semilight":12,"Yu Mincho":11,"Yu Mincho Demibold":11,"Yu Mincho Light":11,"\u4eff\u5b8b":11,"\u534e\u6587\u4e2d\u5b8b":13,"\u534e\u6587\u4eff\u5b8b":10,"\u534e\u6587\u5b8b\u4f53":10,"\u534e\u6587\u5f69\u4e91":12,"\u534e\u6587\u65b0\u9b4f":12,"\u534e\u6587\u6977\u4f53":10,"\u534e\u6587\u7425\u73c0":12,"\u534e\u6587\u7ec6\u9ed1":12,"\u534e\u6587\u884c\u6977":11,"\u534e\u6587\u96b6\u4e66":9,"\u5b8b\u4f53":11,"\u5e7c\u5706":11,"\u5fae\u8f6f\u96c5\u9ed1":12,"\u5fae\u8f6f\u96c5\u9ed1 Light":12,"\u65b0\u5b8b\u4f53":11,"\u65b9\u6b63\u59da\u4f53":11,"\u65b9\u6b63\u8212\u4f53":11,"\u6977\u4f53":11,"\u7b49\u7ebf":11,"\u7b49\u7ebf Light":11,"\u96b6\u4e66":11,"\u9ed1\u4f53":11,"\u6e38\u30b4\u30b7\u30c3\u30af":12,"\uff2d\uff33 \uff30\u660e\u671d":11,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':11,"\u30e1\u30a4\u30ea\u30aa":13,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":11,"HG\u660e\u671dB":11,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":11},18:{"Gill Sans MT":12,Abadi:15,"Abadi Extra Light":13,"Agency FB":10,Aharoni:10,Aldhabi:8,Algerian:14,"Ami R":10,"Angsana New":8,AngsanaUPC:8,Aparajita:10,"Arabic Typesetting":8,Arial:13,"Arial Black":16,"Arial Narrow":11,"Arial Nova":13,"Arial Nova Cond":12,"Arial Nova Cond Light":11,"Arial Nova Light":13,"Arial Rounded MT Bold":14,"Baskerville Old Face":12,Batang:12,BatangChe:12,"Bauhaus 93":14,"Bell MT":12,Bembo:12,"Berlin Sans FB":14,"Berlin Sans FB Demi":15,"Bernard MT Condensed":12,"Blackadder ITC":9,"Bodoni MT":12,"Bodoni MT Black":16,"Bodoni MT Condensed":8,"Bodoni MT Poster Compressed":8,"Book Antiqua":12,"Bookman Old Style":15,"Bookshelf Symbol 7":18,"Bradley Hand ITC":15,"Britannic Bold":15,Broadway:16,"Browallia New":9,BrowalliaUPC:9,"Brush Script MT":12,Calibri:12,"Calibri Light":12,"Californian FB":13,"Calisto MT":12,Cambria:13,"Cambria Math":13,Candara:13,Castellar:17,Centaur:12,Century:13,"Century Gothic":13,"Century Schoolbook":13,Chiller:11,"Colonna MT":12,"Comic Sans MS":15,Consolas:13,Constantia:13,"Cooper Black":14,"Copperplate Gothic Bold":17,"Copperplate Gothic Light":17,Corbel:13,"Cordia New":9,CordiaUPC:9,"Courier New":14,"Curlz MT":13,Dante:11,DaunPenh:8,David:11,DilleniaUPC:7,DokChampa:13,Dotum:13,DotumChe:12,Dubai:13,"Dubai Light":13,"Dubai Medium":13,Ebrima:13,"Edwardian Script ITC":11,Elephant:18,"Engravers MT":16,"Eras Bold ITC":16,"Eras Demi ITC":15,"Eras Light ITC":13,"Eras Medium ITC":14,EucrosiaUPC:10,Euphemia:14,"Expo M":21,FangSong:12,"Felix Titling":14,"Footlight MT Light":13,Forte:13,"Franklin Gothic Book":14,"Franklin Gothic Demi":14,"Franklin Gothic Demi Cond":12,"Franklin Gothic Heavy":14,"Franklin Gothic Medium":14,"Franklin Gothic Medium Cond":12,FrankRuehl:10,FreesiaUPC:11,"Freestyle Script":9,"French Script MT":9,Gabriola:10,Gadugi:13,Garamond:11,Gautami:14,Georgia:15,"Georgia Pro":14,"Georgia Pro Black":17,"Georgia Pro Cond":13,"Georgia Pro Cond Black":15,"Georgia Pro Cond Light":12,"Georgia Pro Cond Semibold":13,"Georgia Pro Light":13,"Georgia Pro Semibold":15,Gigi:12,"Gill Sans MT Condensed":9,"Gill Sans MT Ext Condensed Bold":8,"Gill Sans Nova":12,"Gill Sans Nova Cond":8,"Gill Sans Nova Cond Lt":7,"Gill Sans Nova Cond Ultra Bold":14,"Gill Sans Nova Cond XBd":13,"Gill Sans Nova Light":12,"Gill Sans Nova Ultra Bold":20,"Gill Sans Ultra Bold":21,"Gill Sans Ultra Bold Condensed":14,Gisha:13,"Gloucester MT Extra Condensed":9,"Goudy Old Style":12,"Goudy Stout":20,Grotesque:12,"Grotesque Light":12,Gulim:13,GulimChe:12,Gungsuh:13,GungsuhChe:12,"Hadassah Friedlaender":14,Haettenschweiler:11,"Harlow Solid Italic":11,Harrington:13,"Headline R":17,HGGothicE:12,HGGothicM:12,HGGyoshotai:12,HGKyokashotai:12,HGMaruGothicMPRO:18,HGMinchoB:13,HGMinchoE:13,HGPGothicE:14,HGPGothicM:15,HGPGyoshotai:12,HGPKyokashotai:12,HGPMinchoB:12,HGPMinchoE:13,HGPSoeiKakugothicUB:16,HGPSoeiKakupoptai:17,HGPSoeiPresenceEB:14,HGSeikaishotaiPRO:14,HGSGothicE:13,HGSGothicM:14,HGSGyoshotai:11,HGSKyokashotai:11,HGSMinchoB:12,HGSMinchoE:13,HGSoeiKakugothicUB:13,HGSoeiKakupoptai:13,HGSoeiPresenceEB:13,HGSSoeiKakugothicUB:15,HGSSoeiKakupoptai:16,HGSSoeiPresenceEB:13,"High Tower Text":12,"HYGothic-Extra":15,"HYGothic-Medium":14,"HYGraphic-Medium":14,"HYGungSo-Bold":14,"HYHeadLine-Medium":14,"HYMyeongJo-Extra":16,"HYPMokGak-Bold":17,"HYPost-Light":16,"HYPost-Medium":17,"HYShortSamul-Medium":9,"HYSinMyeongJo-Medium":15,Impact:13,"Imprint MT Shadow":12,"Informal Roman":13,"Ink Free":12,IrisUPC:12,"Iskoola Pota":12,JasmineUPC:11,"Javanese Text":14,Jokerman:17,"Juice ITC":8,KaiTi:12,Kalinga:13,Kartika:14,"Khmer UI":13,KodchiangUPC:8,Kokila:9,"Kristen ITC":14,"Kunstler Script":8,"Lao UI":13,Latha:12,Leelawadee:13,"Leelawadee UI":13,"Leelawadee UI Semilight":13,"Levenim MT":14,LilyUPC:11,"Lucida Bright":15,"Lucida Calligraphy":17,"Lucida Console":15,"Lucida Fax":16,"Lucida Handwriting":17,"Lucida Sans":16,"Lucida Sans Typewriter":14,"Lucida Sans Unicode":16,"Magic R":14,Magneto:19,"Maiandra GD":15,"Malgun Gothic":14,"Malgun Gothic Semilight":14,Mangal:14,Marlett:25,"Matura MT Script Capitals":17,Meiryo:16,"Meiryo UI":16,"Microsoft GothicNeo":13,"Microsoft Himalaya":9,"Microsoft JhengHei":14,"Microsoft JhengHei Light":15,"Microsoft JhengHei UI":14,"Microsoft JhengHei UI Light":15,"Microsoft New Tai Lue":14,"Microsoft PhagsPa":14,"Microsoft Sans Serif":14,"Microsoft Tai Le":14,"Microsoft Uighur":9,"Microsoft YaHei Light":15,"Microsoft YaHei UI":15,"Microsoft YaHei UI Light":15,"Microsoft Yi Baiti":13,MingLiU:13,MingLiU_HKSCS:13,"MingLiU_HKSCS-ExtB":13,"MingLiU-ExtB":13,Miriam:12,"Miriam Fixed":15,Mistral:12,"Modern No. 20":12,"MoeumT R":14,"Mongolian Baiti":13,"Monotype Corsiva":12,MoolBoran:9,"MS Gothic":12,"MS Mincho":13,"MS Outlook":13,"MS PGothic":13,"MS PMincho":13,"MS Reference Sans Serif":16,"MS Reference Specialty":30,"MS UI Gothic":13,"MT Extra":25,"MV Boli":18,"Myanmar Text":14,Narkisim:11,"Neue Haas Grotesk Text Pro":13,"New Gulim":15,"News Gothic MT":16,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":14,"Nirmala UI Semilight":14,Nyala:13,"OCR A Extended":15,OCRB:15,"Old English Text MT":13,Onyx:9,"Palace Script MT":9,"Palatino Linotype":12,Papyrus:15,Parchment:6,Perpetua:11,"Perpetua Titling MT":16,"Plantagenet Cherokee":13,Playbill:10,PMingLiU:12,"PMingLiU-ExtB":12,"Poor Richard":14,Pristina:13,"Pyunji R":13,Raavi:12,"Rage Italic":13,Ravie:24,Rockwell:13,"Rockwell Condensed":10,"Rockwell Extra Bold":17,"Rockwell Light":14,"Rockwell Nova":13,"Rockwell Nova Cond":13,"Rockwell Nova Cond Light":13,"Rockwell Nova Extra Bold":13,"Rockwell Nova Light":13,Rod:15,"Sakkal Majalla":10,"Sanskrit Text":15,"Script MT Bold":13,"Segoe MDL2 Assets":10,"Segoe Print":18,"Segoe Script":18,"Segoe UI":13,"Segoe UI Black":15,"Segoe UI Emoji":13,"Segoe UI Historic":13,"Segoe UI Light":12,"Segoe UI Semibold":14,"Segoe UI Semilight":13,"Segoe UI Symbol":13,Selawik:12,"Selawik Light":13,"Selawik Semibold":14,"Shonar Bangla":12,"Showcard Gothic":14,Shruti:14,"Simplified Arabic":13,"Simplified Arabic Fixed":14,"SimSun-ExtB":12,"Sitka Banner":12,"Sitka Display":13,"Sitka Heading":13,"Sitka Small":16,"Sitka Subheading":14,"Sitka Text":15,"Snap ITC":21,"Source Sans Pro":12,"Source Sans Pro Black":12,"Source Sans Pro ExtraLight":11,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":12,Stencil:14,Sylfaen:12,Symbol:12,Tahoma:13,"Tempus Sans ITC":16,"TH SarabunPSK":9,"Times New Roman":12,"Traditional Arabic":12,"Trebuchet MS":13,Tunga:13,"Tw Cen MT":13,"Tw Cen MT Condensed":9,"Tw Cen MT Condensed Extra Bold":12,"UD Digi Kyokasho N-B":12,"UD Digi Kyokasho NK-B":12,"UD Digi Kyokasho NK-R":12,"UD Digi Kyokasho NP-B":17,"UD Digi Kyokasho NP-R":12,"UD Digi Kyokasho N-R":12,Univers:12,"Univers Condensed":12,"Univers Condensed Light":11,"Univers Light":12,"Urdu Typesetting":12,Utsaah:10,Vani:15,Verdana:15,"Verdana Pro":15,"Verdana Pro Black":12,"Verdana Pro Cond":12,"Verdana Pro Cond Black":12,"Verdana Pro Cond Light":12,"Verdana Pro Cond SemiBold":12,"Verdana Pro Light":12,"Verdana Pro SemiBold":12,Vijaya:12,"Viner Hand ITC":16,Vivaldi:10,"Vladimir Script":11,Vrinda:14,Webdings:24,"Wide Latin":30,Wingdings:32,"Wingdings 2":27,"Wingdings 3":21,"Yet R":13,"Yu Gothic":13,"Yu Gothic Light":13,"Yu Gothic Medium":13,"Yu Gothic UI":13,"Yu Gothic UI Light":13,"Yu Gothic UI Semibold":14,"Yu Gothic UI Semilight":13,"Yu Mincho":13,"Yu Mincho Demibold":13,"Yu Mincho Light":12,"\u4eff\u5b8b":12,"\u534e\u6587\u4e2d\u5b8b":15,"\u534e\u6587\u4eff\u5b8b":11,"\u534e\u6587\u5b8b\u4f53":11,"\u534e\u6587\u5f69\u4e91":14,"\u534e\u6587\u65b0\u9b4f":14,"\u534e\u6587\u6977\u4f53":11,"\u534e\u6587\u7425\u73c0":14,"\u534e\u6587\u7ec6\u9ed1":13,"\u534e\u6587\u884c\u6977":12,"\u534e\u6587\u96b6\u4e66":11,"\u5b8b\u4f53":12,"\u5e7c\u5706":12,"\u5fae\u8f6f\u96c5\u9ed1":14,"\u5fae\u8f6f\u96c5\u9ed1 Light":14,"\u65b0\u5b8b\u4f53":12,"\u65b9\u6b63\u59da\u4f53":12,"\u65b9\u6b63\u8212\u4f53":13,"\u6977\u4f53":12,"\u7b49\u7ebf":13,"\u7b49\u7ebf Light":12,"\u96b6\u4e66":12,"\u9ed1\u4f53":12,"\u6e38\u30b4\u30b7\u30c3\u30af":13,"\uff2d\uff33 \uff30\u660e\u671d":12,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':12,"\u30e1\u30a4\u30ea\u30aa":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":12,"HG\u660e\u671dB":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":12},20:{"Gill Sans MT":14,Abadi:16,"Abadi Extra Light":15,"Agency FB":11,Aharoni:11,Aldhabi:9,Algerian:16,"Ami R":11,"Angsana New":9,AngsanaUPC:9,Aparajita:11,"Arabic Typesetting":9,Arial:15,"Arial Black":18,"Arial Narrow":12,"Arial Nova":15,"Arial Nova Cond":14,"Arial Nova Cond Light":12,"Arial Nova Light":15,"Arial Rounded MT Bold":16,"Baskerville Old Face":13,Batang:16,BatangChe:14,"Bauhaus 93":15,"Bell MT":14,Bembo:13,"Berlin Sans FB":16,"Berlin Sans FB Demi":17,"Bernard MT Condensed":13,"Blackadder ITC":11,"Bodoni MT":13,"Bodoni MT Black":18,"Bodoni MT Condensed":9,"Bodoni MT Poster Compressed":8,"Book Antiqua":14,"Bookman Old Style":17,"Bookshelf Symbol 7":20,"Bradley Hand ITC":17,"Britannic Bold":17,Broadway:17,"Browallia New":10,BrowalliaUPC:10,"Brush Script MT":14,Calibri:14,"Calibri Light":14,"Californian FB":14,"Calisto MT":14,Cambria:15,"Cambria Math":15,Candara:15,Castellar:19,Centaur:13,Century:15,"Century Gothic":15,"Century Schoolbook":15,Chiller:13,"Colonna MT":14,"Comic Sans MS":16,Consolas:15,Constantia:15,"Cooper Black":16,"Copperplate Gothic Bold":19,"Copperplate Gothic Light":19,Corbel:14,"Cordia New":10,CordiaUPC:10,"Courier New":16,"Curlz MT":15,Dante:12,DaunPenh:9,David:12,DilleniaUPC:8,DokChampa:15,Dotum:16,DotumChe:14,Dubai:15,"Dubai Light":15,"Dubai Medium":15,Ebrima:15,"Edwardian Script ITC":13,Elephant:20,"Engravers MT":17,"Eras Bold ITC":18,"Eras Demi ITC":16,"Eras Light ITC":14,"Eras Medium ITC":15,EucrosiaUPC:11,Euphemia:16,"Expo M":23,FangSong:14,"Felix Titling":16,"Footlight MT Light":15,Forte:14,"Franklin Gothic Book":16,"Franklin Gothic Demi":16,"Franklin Gothic Demi Cond":14,"Franklin Gothic Heavy":16,"Franklin Gothic Medium":16,"Franklin Gothic Medium Cond":14,FrankRuehl:11,FreesiaUPC:12,"Freestyle Script":10,"French Script MT":10,Gabriola:11,Gadugi:15,Garamond:13,Gautami:16,Georgia:17,"Georgia Pro":15,"Georgia Pro Black":19,"Georgia Pro Cond":14,"Georgia Pro Cond Black":17,"Georgia Pro Cond Light":14,"Georgia Pro Cond Semibold":15,"Georgia Pro Light":15,"Georgia Pro Semibold":17,Gigi:14,"Gill Sans MT Condensed":10,"Gill Sans MT Ext Condensed Bold":9,"Gill Sans Nova":14,"Gill Sans Nova Cond":9,"Gill Sans Nova Cond Lt":8,"Gill Sans Nova Cond Ultra Bold":16,"Gill Sans Nova Cond XBd":14,"Gill Sans Nova Light":14,"Gill Sans Nova Ultra Bold":23,"Gill Sans Ultra Bold":23,"Gill Sans Ultra Bold Condensed":16,Gisha:15,"Gloucester MT Extra Condensed":10,"Goudy Old Style":14,"Goudy Stout":22,Grotesque:13,"Grotesque Light":13,Gulim:16,GulimChe:14,Gungsuh:16,GungsuhChe:14,"Hadassah Friedlaender":15,Haettenschweiler:12,"Harlow Solid Italic":13,Harrington:15,"Headline R":19,HGGothicE:14,HGGothicM:14,HGGyoshotai:14,HGKyokashotai:14,HGMaruGothicMPRO:20,HGMinchoB:15,HGMinchoE:15,HGPGothicE:16,HGPGothicM:17,HGPGyoshotai:14,HGPKyokashotai:14,HGPMinchoB:14,HGPMinchoE:15,HGPSoeiKakugothicUB:18,HGPSoeiKakupoptai:19,HGPSoeiPresenceEB:16,HGSeikaishotaiPRO:16,HGSGothicE:15,HGSGothicM:16,HGSGyoshotai:13,HGSKyokashotai:13,HGSMinchoB:14,HGSMinchoE:15,HGSoeiKakugothicUB:15,HGSoeiKakupoptai:15,HGSoeiPresenceEB:15,HGSSoeiKakugothicUB:17,HGSSoeiKakupoptai:18,HGSSoeiPresenceEB:15,"High Tower Text":13,"HYGothic-Extra":17,"HYGothic-Medium":16,"HYGraphic-Medium":16,"HYGungSo-Bold":16,"HYHeadLine-Medium":16,"HYMyeongJo-Extra":18,"HYPMokGak-Bold":19,"HYPost-Light":18,"HYPost-Medium":19,"HYShortSamul-Medium":10,"HYSinMyeongJo-Medium":17,Impact:15,"Imprint MT Shadow":14,"Informal Roman":15,"Ink Free":14,IrisUPC:14,"Iskoola Pota":14,JasmineUPC:12,"Javanese Text":16,Jokerman:19,"Juice ITC":10,KaiTi:14,Kalinga:15,Kartika:16,"Khmer UI":15,KodchiangUPC:9,Kokila:10,"Kristen ITC":16,"Kunstler Script":10,"Lao UI":15,Latha:14,Leelawadee:15,"Leelawadee UI":15,"Leelawadee UI Semilight":15,"Levenim MT":15,LilyUPC:12,"Lucida Bright":16,"Lucida Calligraphy":19,"Lucida Console":17,"Lucida Fax":18,"Lucida Handwriting":19,"Lucida Sans":18,"Lucida Sans Typewriter":16,"Lucida Sans Unicode":18,"Magic R":16,Magneto:21,"Maiandra GD":17,"Malgun Gothic":16,"Malgun Gothic Semilight":16,Mangal:16,Marlett:28,"Matura MT Script Capitals":19,Meiryo:18,"Meiryo UI":18,"Microsoft GothicNeo":15,"Microsoft Himalaya":10,"Microsoft JhengHei":16,"Microsoft JhengHei Light":17,"Microsoft JhengHei UI":16,"Microsoft JhengHei UI Light":17,"Microsoft New Tai Lue":16,"Microsoft PhagsPa":16,"Microsoft Sans Serif":16,"Microsoft Tai Le":16,"Microsoft Uighur":10,"Microsoft YaHei Light":16,"Microsoft YaHei UI":17,"Microsoft YaHei UI Light":16,"Microsoft Yi Baiti":15,MingLiU:15,MingLiU_HKSCS:15,"MingLiU_HKSCS-ExtB":15,"MingLiU-ExtB":15,Miriam:14,"Miriam Fixed":17,Mistral:13,"Modern No. 20":13,"MoeumT R":16,"Mongolian Baiti":15,"Monotype Corsiva":13,MoolBoran:10,"MS Gothic":14,"MS Mincho":15,"MS Outlook":15,"MS PGothic":15,"MS PMincho":15,"MS Reference Sans Serif":18,"MS Reference Specialty":33,"MS UI Gothic":15,"MT Extra":29,"MV Boli":20,"Myanmar Text":16,Narkisim:12,"Neue Haas Grotesk Text Pro":15,"New Gulim":17,"News Gothic MT":18,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":16,"Nirmala UI Semilight":16,Nyala:15,"OCR A Extended":17,OCRB:17,"Old English Text MT":15,Onyx:9,"Palace Script MT":9,"Palatino Linotype":14,Papyrus:16,Parchment:7,Perpetua:12,"Perpetua Titling MT":18,"Plantagenet Cherokee":15,Playbill:11,PMingLiU:14,"PMingLiU-ExtB":14,"Poor Richard":16,Pristina:14,"Pyunji R":14,Raavi:14,"Rage Italic":15,Ravie:27,Rockwell:15,"Rockwell Condensed":12,"Rockwell Extra Bold":19,"Rockwell Light":15,"Rockwell Nova":15,"Rockwell Nova Cond":15,"Rockwell Nova Cond Light":15,"Rockwell Nova Extra Bold":15,"Rockwell Nova Light":15,Rod:17,"Sakkal Majalla":11,"Sanskrit Text":17,"Script MT Bold":14,"Segoe MDL2 Assets":11,"Segoe Print":20,"Segoe Script":20,"Segoe UI":15,"Segoe UI Black":17,"Segoe UI Emoji":15,"Segoe UI Historic":15,"Segoe UI Light":14,"Segoe UI Semibold":15,"Segoe UI Semilight":15,"Segoe UI Symbol":15,Selawik:14,"Selawik Light":14,"Selawik Semibold":15,"Shonar Bangla":14,"Showcard Gothic":16,Shruti:16,"Simplified Arabic":14,"Simplified Arabic Fixed":16,"SimSun-ExtB":14,"Sitka Banner":14,"Sitka Display":14,"Sitka Heading":15,"Sitka Small":18,"Sitka Subheading":16,"Sitka Text":17,"Snap ITC":23,"Source Sans Pro":13,"Source Sans Pro Black":14,"Source Sans Pro ExtraLight":12,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":14,Stencil:16,Sylfaen:14,Symbol:14,Tahoma:15,"Tempus Sans ITC":18,"TH SarabunPSK":10,"Times New Roman":14,"Traditional Arabic":13,"Trebuchet MS":14,Tunga:14,"Tw Cen MT":15,"Tw Cen MT Condensed":10,"Tw Cen MT Condensed Extra Bold":13,"UD Digi Kyokasho N-B":14,"UD Digi Kyokasho NK-B":14,"UD Digi Kyokasho NK-R":14,"UD Digi Kyokasho NP-B":19,"UD Digi Kyokasho NP-R":14,"UD Digi Kyokasho N-R":14,Univers:14,"Univers Condensed":14,"Univers Condensed Light":12,"Univers Light":14,"Urdu Typesetting":14,Utsaah:11,Vani:17,Verdana:17,"Verdana Pro":17,"Verdana Pro Black":14,"Verdana Pro Cond":14,"Verdana Pro Cond Black":14,"Verdana Pro Cond Light":14,"Verdana Pro Cond SemiBold":14,"Verdana Pro Light":14,"Verdana Pro SemiBold":14,Vijaya:14,"Viner Hand ITC":18,Vivaldi:12,"Vladimir Script":13,Vrinda:16,Webdings:27,"Wide Latin":33,Wingdings:36,"Wingdings 2":31,"Wingdings 3":24,"Yet R":14,"Yu Gothic":15,"Yu Gothic Light":14,"Yu Gothic Medium":15,"Yu Gothic UI":15,"Yu Gothic UI Light":14,"Yu Gothic UI Semibold":16,"Yu Gothic UI Semilight":15,"Yu Mincho":15,"Yu Mincho Demibold":14,"Yu Mincho Light":14,"\u4eff\u5b8b":14,"\u534e\u6587\u4e2d\u5b8b":17,"\u534e\u6587\u4eff\u5b8b":13,"\u534e\u6587\u5b8b\u4f53":13,"\u534e\u6587\u5f69\u4e91":15,"\u534e\u6587\u65b0\u9b4f":16,"\u534e\u6587\u6977\u4f53":13,"\u534e\u6587\u7425\u73c0":15,"\u534e\u6587\u7ec6\u9ed1":15,"\u534e\u6587\u884c\u6977":14,"\u534e\u6587\u96b6\u4e66":12,"\u5b8b\u4f53":14,"\u5e7c\u5706":14,"\u5fae\u8f6f\u96c5\u9ed1":16,"\u5fae\u8f6f\u96c5\u9ed1 Light":15,"\u65b0\u5b8b\u4f53":14,"\u65b9\u6b63\u59da\u4f53":14,"\u65b9\u6b63\u8212\u4f53":15,"\u6977\u4f53":14,"\u7b49\u7ebf":14,"\u7b49\u7ebf Light":14,"\u96b6\u4e66":14,"\u9ed1\u4f53":14,"\u6e38\u30b4\u30b7\u30c3\u30af":15,"\uff2d\uff33 \uff30\u660e\u671d":14,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':14,"\u30e1\u30a4\u30ea\u30aa":17,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":14,"HG\u660e\u671dB":14,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":14},22:{"Gill Sans MT":15,Abadi:18,"Abadi Extra Light":16,"Agency FB":11,Aharoni:12,Aldhabi:9,Algerian:17,"Ami R":12,"Angsana New":10,AngsanaUPC:10,Aparajita:12,"Arabic Typesetting":10,Arial:16,"Arial Black":19,"Arial Narrow":13,"Arial Nova":16,"Arial Nova Cond":15,"Arial Nova Cond Light":13,"Arial Nova Light":16,"Arial Rounded MT Bold":17,"Baskerville Old Face":14,Batang:17,BatangChe:15,"Bauhaus 93":16,"Bell MT":15,Bembo:14,"Berlin Sans FB":17,"Berlin Sans FB Demi":18,"Bernard MT Condensed":14,"Blackadder ITC":11,"Bodoni MT":14,"Bodoni MT Black":19,"Bodoni MT Condensed":10,"Bodoni MT Poster Compressed":9,"Book Antiqua":15,"Bookman Old Style":18,"Bookshelf Symbol 7":21,"Bradley Hand ITC":19,"Britannic Bold":18,Broadway:19,"Browallia New":11,BrowalliaUPC:11,"Brush Script MT":15,Calibri:15,"Calibri Light":15,"Californian FB":15,"Calisto MT":15,Cambria:16,"Cambria Math":16,Candara:16,Castellar:21,Centaur:14,Century:16,"Century Gothic":16,"Century Schoolbook":16,Chiller:14,"Colonna MT":15,"Comic Sans MS":18,Consolas:16,Constantia:16,"Cooper Black":17,"Copperplate Gothic Bold":21,"Copperplate Gothic Light":21,Corbel:15,"Cordia New":11,CordiaUPC:11,"Courier New":17,"Curlz MT":16,Dante:13,DaunPenh:10,David:13,DilleniaUPC:9,DokChampa:16,Dotum:17,DotumChe:15,Dubai:16,"Dubai Light":16,"Dubai Medium":16,Ebrima:16,"Edwardian Script ITC":14,Elephant:22,"Engravers MT":19,"Eras Bold ITC":19,"Eras Demi ITC":18,"Eras Light ITC":16,"Eras Medium ITC":17,EucrosiaUPC:12,Euphemia:17,"Expo M":25,FangSong:15,"Felix Titling":17,"Footlight MT Light":16,Forte:15,"Franklin Gothic Book":17,"Franklin Gothic Demi":17,"Franklin Gothic Demi Cond":15,"Franklin Gothic Heavy":17,"Franklin Gothic Medium":17,"Franklin Gothic Medium Cond":15,FrankRuehl:12,FreesiaUPC:13,"Freestyle Script":10,"French Script MT":11,Gabriola:12,Gadugi:16,Garamond:14,Gautami:17,Georgia:18,"Georgia Pro":16,"Georgia Pro Black":21,"Georgia Pro Cond":15,"Georgia Pro Cond Black":18,"Georgia Pro Cond Light":15,"Georgia Pro Cond Semibold":16,"Georgia Pro Light":16,"Georgia Pro Semibold":18,Gigi:14,"Gill Sans MT Condensed":11,"Gill Sans MT Ext Condensed Bold":10,"Gill Sans Nova":15,"Gill Sans Nova Cond":10,"Gill Sans Nova Cond Lt":9,"Gill Sans Nova Cond Ultra Bold":17,"Gill Sans Nova Cond XBd":15,"Gill Sans Nova Light":15,"Gill Sans Nova Ultra Bold":25,"Gill Sans Ultra Bold":25,"Gill Sans Ultra Bold Condensed":17,Gisha:16,"Gloucester MT Extra Condensed":11,"Goudy Old Style":15,"Goudy Stout":24,Grotesque:14,"Grotesque Light":14,Gulim:17,GulimChe:15,Gungsuh:17,GungsuhChe:15,"Hadassah Friedlaender":17,Haettenschweiler:13,"Harlow Solid Italic":14,Harrington:16,"Headline R":21,
24
24
  HGGothicE:15,HGGothicM:15,HGGyoshotai:15,HGKyokashotai:15,HGMaruGothicMPRO:22,HGMinchoB:16,HGMinchoE:16,HGPGothicE:17,HGPGothicM:18,HGPGyoshotai:15,HGPKyokashotai:14,HGPMinchoB:15,HGPMinchoE:16,HGPSoeiKakugothicUB:19,HGPSoeiKakupoptai:20,HGPSoeiPresenceEB:17,HGSeikaishotaiPRO:17,HGSGothicE:16,HGSGothicM:17,HGSGyoshotai:14,HGSKyokashotai:13,HGSMinchoB:15,HGSMinchoE:16,HGSoeiKakugothicUB:16,HGSoeiKakupoptai:16,HGSoeiPresenceEB:16,HGSSoeiKakugothicUB:18,HGSSoeiKakupoptai:19,HGSSoeiPresenceEB:16,"High Tower Text":14,"HYGothic-Extra":18,"HYGothic-Medium":17,"HYGraphic-Medium":17,"HYGungSo-Bold":17,"HYHeadLine-Medium":17,"HYMyeongJo-Extra":19,"HYPMokGak-Bold":21,"HYPost-Light":19,"HYPost-Medium":21,"HYShortSamul-Medium":11,"HYSinMyeongJo-Medium":18,Impact:16,"Imprint MT Shadow":15,"Informal Roman":16,"Ink Free":15,IrisUPC:15,"Iskoola Pota":15,JasmineUPC:13,"Javanese Text":17,Jokerman:21,"Juice ITC":11,KaiTi:15,Kalinga:16,Kartika:17,"Khmer UI":16,KodchiangUPC:10,Kokila:11,"Kristen ITC":17,"Kunstler Script":10,"Lao UI":16,Latha:15,Leelawadee:16,"Leelawadee UI":16,"Leelawadee UI Semilight":16,"Levenim MT":17,LilyUPC:13,"Lucida Bright":18,"Lucida Calligraphy":20,"Lucida Console":18,"Lucida Fax":19,"Lucida Handwriting":21,"Lucida Sans":19,"Lucida Sans Typewriter":17,"Lucida Sans Unicode":19,"Magic R":17,Magneto:22,"Maiandra GD":18,"Malgun Gothic":17,"Malgun Gothic Semilight":17,Mangal:17,Marlett:30,"Matura MT Script Capitals":20,Meiryo:20,"Meiryo UI":20,"Microsoft GothicNeo":16,"Microsoft Himalaya":11,"Microsoft JhengHei":17,"Microsoft JhengHei Light":18,"Microsoft JhengHei UI":17,"Microsoft JhengHei UI Light":18,"Microsoft New Tai Lue":17,"Microsoft PhagsPa":17,"Microsoft Sans Serif":17,"Microsoft Tai Le":17,"Microsoft Uighur":11,"Microsoft YaHei Light":18,"Microsoft YaHei UI":18,"Microsoft YaHei UI Light":18,"Microsoft Yi Baiti":16,MingLiU:16,MingLiU_HKSCS:16,"MingLiU_HKSCS-ExtB":16,"MingLiU-ExtB":16,Miriam:15,"Miriam Fixed":18,Mistral:14,"Modern No. 20":14,"MoeumT R":17,"Mongolian Baiti":16,"Monotype Corsiva":14,MoolBoran:11,"MS Gothic":15,"MS Mincho":16,"MS Outlook":16,"MS PGothic":16,"MS PMincho":16,"MS Reference Sans Serif":19,"MS Reference Specialty":36,"MS UI Gothic":16,"MT Extra":31,"MV Boli":21,"Myanmar Text":17,Narkisim:13,"Neue Haas Grotesk Text Pro":16,"New Gulim":18,"News Gothic MT":19,"Niagara Engraved":10,"Niagara Solid":10,"Nirmala UI":17,"Nirmala UI Semilight":17,Nyala:16,"OCR A Extended":19,OCRB:18,"Old English Text MT":16,Onyx:10,"Palace Script MT":10,"Palatino Linotype":15,Papyrus:18,Parchment:7,Perpetua:13,"Perpetua Titling MT":20,"Plantagenet Cherokee":16,Playbill:11,PMingLiU:15,"PMingLiU-ExtB":15,"Poor Richard":17,Pristina:15,"Pyunji R":15,Raavi:15,"Rage Italic":16,Ravie:29,Rockwell:16,"Rockwell Condensed":12,"Rockwell Extra Bold":20,"Rockwell Light":16,"Rockwell Nova":16,"Rockwell Nova Cond":16,"Rockwell Nova Cond Light":16,"Rockwell Nova Extra Bold":16,"Rockwell Nova Light":16,Rod:18,"Sakkal Majalla":12,"Sanskrit Text":18,"Script MT Bold":15,"Segoe MDL2 Assets":12,"Segoe Print":21,"Segoe Script":21,"Segoe UI":16,"Segoe UI Black":18,"Segoe UI Emoji":16,"Segoe UI Historic":16,"Segoe UI Light":15,"Segoe UI Semibold":17,"Segoe UI Semilight":16,"Segoe UI Symbol":16,Selawik:15,"Selawik Light":15,"Selawik Semibold":16,"Shonar Bangla":15,"Showcard Gothic":17,Shruti:17,"Simplified Arabic":15,"Simplified Arabic Fixed":17,"SimSun-ExtB":15,"Sitka Banner":15,"Sitka Display":15,"Sitka Heading":16,"Sitka Small":20,"Sitka Subheading":17,"Sitka Text":18,"Snap ITC":25,"Source Sans Pro":14,"Source Sans Pro Black":15,"Source Sans Pro ExtraLight":13,"Source Sans Pro Light":13,"Source Sans Pro SemiBold":14,Stencil:17,Sylfaen:15,Symbol:15,Tahoma:16,"Tempus Sans ITC":19,"TH SarabunPSK":11,"Times New Roman":15,"Traditional Arabic":14,"Trebuchet MS":15,Tunga:15,"Tw Cen MT":16,"Tw Cen MT Condensed":11,"Tw Cen MT Condensed Extra Bold":14,"UD Digi Kyokasho N-B":15,"UD Digi Kyokasho NK-B":15,"UD Digi Kyokasho NK-R":15,"UD Digi Kyokasho NP-B":21,"UD Digi Kyokasho NP-R":15,"UD Digi Kyokasho N-R":15,Univers:15,"Univers Condensed":15,"Univers Condensed Light":13,"Univers Light":15,"Urdu Typesetting":15,Utsaah:12,Vani:18,Verdana:18,"Verdana Pro":18,"Verdana Pro Black":15,"Verdana Pro Cond":15,"Verdana Pro Cond Black":15,"Verdana Pro Cond Light":15,"Verdana Pro Cond SemiBold":15,"Verdana Pro Light":15,"Verdana Pro SemiBold":15,Vijaya:12,"Viner Hand ITC":20,Vivaldi:12,"Vladimir Script":13,Vrinda:17,Webdings:29,"Wide Latin":36,Wingdings:39,"Wingdings 2":33,"Wingdings 3":26,"Yet R":16,"Yu Gothic":16,"Yu Gothic Light":16,"Yu Gothic Medium":16,"Yu Gothic UI":16,"Yu Gothic UI Light":15,"Yu Gothic UI Semibold":17,"Yu Gothic UI Semilight":16,"Yu Mincho":16,"Yu Mincho Demibold":15,"Yu Mincho Light":15,"\u4eff\u5b8b":15,"\u534e\u6587\u4e2d\u5b8b":18,"\u534e\u6587\u4eff\u5b8b":14,"\u534e\u6587\u5b8b\u4f53":14,"\u534e\u6587\u5f69\u4e91":16,"\u534e\u6587\u65b0\u9b4f":17,"\u534e\u6587\u6977\u4f53":14,"\u534e\u6587\u7425\u73c0":16,"\u534e\u6587\u7ec6\u9ed1":16,"\u534e\u6587\u884c\u6977":15,"\u534e\u6587\u96b6\u4e66":13,"\u5b8b\u4f53":15,"\u5e7c\u5706":15,"\u5fae\u8f6f\u96c5\u9ed1":17,"\u5fae\u8f6f\u96c5\u9ed1 Light":17,"\u65b0\u5b8b\u4f53":15,"\u65b9\u6b63\u59da\u4f53":15,"\u65b9\u6b63\u8212\u4f53":16,"\u6977\u4f53":15,"\u7b49\u7ebf":15,"\u7b49\u7ebf Light":15,"\u96b6\u4e66":15,"\u9ed1\u4f53":15,"\u6e38\u30b4\u30b7\u30c3\u30af":16,"\uff2d\uff33 \uff30\u660e\u671d":15,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':15,"\u30e1\u30a4\u30ea\u30aa":18,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":15,"HG\u660e\u671dB":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":15},24:{"Gill Sans MT":16,Abadi:19,"Abadi Extra Light":18,"Agency FB":14,Aharoni:13,Aldhabi:10,Algerian:19,"Ami R":13,"Angsana New":11,AngsanaUPC:11,Aparajita:13,"Arabic Typesetting":11,Arial:18,"Arial Black":21,"Arial Narrow":15,"Arial Nova":18,"Arial Nova Cond":16,"Arial Nova Cond Light":14,"Arial Nova Light":18,"Arial Rounded MT Bold":19,"Baskerville Old Face":16,Batang:19,BatangChe:16,"Bauhaus 93":18,"Bell MT":16,Bembo:16,"Berlin Sans FB":19,"Berlin Sans FB Demi":20,"Bernard MT Condensed":16,"Blackadder ITC":13,"Bodoni MT":16,"Bodoni MT Black":21,"Bodoni MT Condensed":11,"Bodoni MT Poster Compressed":9,"Book Antiqua":16,"Bookman Old Style":20,"Bookshelf Symbol 7":24,"Bradley Hand ITC":21,"Britannic Bold":20,Broadway:21,"Browallia New":12,BrowalliaUPC:12,"Brush Script MT":16,Calibri:16,"Calibri Light":16,"Californian FB":17,"Calisto MT":16,Cambria:18,"Cambria Math":18,Candara:18,Castellar:23,Centaur:16,Century:18,"Century Gothic":18,"Century Schoolbook":18,Chiller:15,"Colonna MT":16,"Comic Sans MS":20,Consolas:18,Constantia:17,"Cooper Black":19,"Copperplate Gothic Bold":23,"Copperplate Gothic Light":23,Corbel:17,"Cordia New":12,CordiaUPC:12,"Courier New":19,"Curlz MT":17,Dante:14,DaunPenh:11,David:14,DilleniaUPC:10,DokChampa:18,Dotum:19,DotumChe:16,Dubai:17,"Dubai Light":17,"Dubai Medium":17,Ebrima:17,"Edwardian Script ITC":15,Elephant:24,"Engravers MT":21,"Eras Bold ITC":21,"Eras Demi ITC":20,"Eras Light ITC":17,"Eras Medium ITC":18,EucrosiaUPC:13,Euphemia:19,"Expo M":28,FangSong:16,"Felix Titling":19,"Footlight MT Light":18,Forte:17,"Franklin Gothic Book":19,"Franklin Gothic Demi":19,"Franklin Gothic Demi Cond":16,"Franklin Gothic Heavy":19,"Franklin Gothic Medium":19,"Franklin Gothic Medium Cond":16,FrankRuehl:13,FreesiaUPC:14,"Freestyle Script":12,"French Script MT":12,Gabriola:13,Gadugi:17,Garamond:15,Gautami:19,Georgia:20,"Georgia Pro":18,"Georgia Pro Black":23,"Georgia Pro Cond":17,"Georgia Pro Cond Black":20,"Georgia Pro Cond Light":16,"Georgia Pro Cond Semibold":18,"Georgia Pro Light":18,"Georgia Pro Semibold":20,Gigi:17,"Gill Sans MT Condensed":12,"Gill Sans MT Ext Condensed Bold":11,"Gill Sans Nova":16,"Gill Sans Nova Cond":11,"Gill Sans Nova Cond Lt":10,"Gill Sans Nova Cond Ultra Bold":19,"Gill Sans Nova Cond XBd":17,"Gill Sans Nova Light":16,"Gill Sans Nova Ultra Bold":27,"Gill Sans Ultra Bold":27,"Gill Sans Ultra Bold Condensed":19,Gisha:17,"Gloucester MT Extra Condensed":12,"Goudy Old Style":16,"Goudy Stout":26,Grotesque:15,"Grotesque Light":15,Gulim:18,GulimChe:16,Gungsuh:19,GungsuhChe:16,"Hadassah Friedlaender":18,Haettenschweiler:14,"Harlow Solid Italic":15,Harrington:18,"Headline R":23,HGGothicE:16,HGGothicM:16,HGGyoshotai:16,HGKyokashotai:16,HGMaruGothicMPRO:24,HGMinchoB:17,HGMinchoE:17,HGPGothicE:18,HGPGothicM:20,HGPGyoshotai:16,HGPKyokashotai:16,HGPMinchoB:16,HGPMinchoE:18,HGPSoeiKakugothicUB:21,HGPSoeiKakupoptai:22,HGPSoeiPresenceEB:19,HGSeikaishotaiPRO:19,HGSGothicE:17,HGSGothicM:19,HGSGyoshotai:15,HGSKyokashotai:15,HGSMinchoB:16,HGSMinchoE:18,HGSoeiKakugothicUB:17,HGSoeiKakupoptai:17,HGSoeiPresenceEB:17,HGSSoeiKakugothicUB:20,HGSSoeiKakupoptai:21,HGSSoeiPresenceEB:18,"High Tower Text":15,"HYGothic-Extra":20,"HYGothic-Medium":19,"HYGraphic-Medium":19,"HYGungSo-Bold":19,"HYHeadLine-Medium":19,"HYMyeongJo-Extra":21,"HYPMokGak-Bold":23,"HYPost-Light":21,"HYPost-Medium":23,"HYShortSamul-Medium":12,"HYSinMyeongJo-Medium":20,Impact:17,"Imprint MT Shadow":16,"Informal Roman":17,"Ink Free":16,IrisUPC:16,"Iskoola Pota":16,JasmineUPC:15,"Javanese Text":19,Jokerman:23,"Juice ITC":11,KaiTi:16,Kalinga:18,Kartika:18,"Khmer UI":17,KodchiangUPC:11,Kokila:12,"Kristen ITC":19,"Kunstler Script":11,"Lao UI":17,Latha:16,Leelawadee:17,"Leelawadee UI":17,"Leelawadee UI Semilight":18,"Levenim MT":18,LilyUPC:14,"Lucida Bright":19,"Lucida Calligraphy":22,"Lucida Console":20,"Lucida Fax":21,"Lucida Handwriting":23,"Lucida Sans":21,"Lucida Sans Typewriter":19,"Lucida Sans Unicode":21,"Magic R":19,Magneto:25,"Maiandra GD":20,"Malgun Gothic":19,"Malgun Gothic Semilight":19,Mangal:18,Marlett:33,"Matura MT Script Capitals":22,Meiryo:22,"Meiryo UI":22,"Microsoft GothicNeo":17,"Microsoft Himalaya":12,"Microsoft JhengHei":19,"Microsoft JhengHei Light":19,"Microsoft JhengHei UI":19,"Microsoft JhengHei UI Light":19,"Microsoft New Tai Lue":18,"Microsoft PhagsPa":18,"Microsoft Sans Serif":19,"Microsoft Tai Le":18,"Microsoft Uighur":12,"Microsoft YaHei Light":19,"Microsoft YaHei UI":20,"Microsoft YaHei UI Light":19,"Microsoft Yi Baiti":17,MingLiU:17,MingLiU_HKSCS:17,"MingLiU_HKSCS-ExtB":17,"MingLiU-ExtB":17,Miriam:16,"Miriam Fixed":20,Mistral:15,"Modern No. 20":16,"MoeumT R":19,"Mongolian Baiti":17,"Monotype Corsiva":15,MoolBoran:12,"MS Gothic":16,"MS Mincho":17,"MS Outlook":17,"MS PGothic":17,"MS PMincho":17,"MS Reference Sans Serif":21,"MS Reference Specialty":39,"MS UI Gothic":17,"MT Extra":34,"MV Boli":23,"Myanmar Text":18,Narkisim:14,"Neue Haas Grotesk Text Pro":17,"New Gulim":19,"News Gothic MT":21,"Niagara Engraved":11,"Niagara Solid":11,"Nirmala UI":18,"Nirmala UI Semilight":19,Nyala:17,"OCR A Extended":20,OCRB:20,"Old English Text MT":17,Onyx:10,"Palace Script MT":11,"Palatino Linotype":16,Papyrus:20,Parchment:8,Perpetua:15,"Perpetua Titling MT":22,"Plantagenet Cherokee":18,Playbill:12,PMingLiU:16,"PMingLiU-ExtB":16,"Poor Richard":19,Pristina:16,"Pyunji R":17,Raavi:16,"Rage Italic":18,Ravie:31,Rockwell:17,"Rockwell Condensed":14,"Rockwell Extra Bold":22,"Rockwell Light":18,"Rockwell Nova":17,"Rockwell Nova Cond":17,"Rockwell Nova Cond Light":17,"Rockwell Nova Extra Bold":17,"Rockwell Nova Light":17,Rod:20,"Sakkal Majalla":13,"Sanskrit Text":19,"Script MT Bold":17,"Segoe MDL2 Assets":13,"Segoe Print":23,"Segoe Script":23,"Segoe UI":17,"Segoe UI Black":20,"Segoe UI Emoji":17,"Segoe UI Historic":17,"Segoe UI Light":16,"Segoe UI Semibold":18,"Segoe UI Semilight":17,"Segoe UI Symbol":17,Selawik:17,"Selawik Light":17,"Selawik Semibold":18,"Shonar Bangla":13,"Showcard Gothic":19,Shruti:19,"Simplified Arabic":17,"Simplified Arabic Fixed":19,"SimSun-ExtB":16,"Sitka Banner":16,"Sitka Display":17,"Sitka Heading":18,"Sitka Small":22,"Sitka Subheading":19,"Sitka Text":20,"Snap ITC":28,"Source Sans Pro":15,"Source Sans Pro Black":17,"Source Sans Pro ExtraLight":15,"Source Sans Pro Light":15,"Source Sans Pro SemiBold":16,Stencil:18,Sylfaen:16,Symbol:16,Tahoma:17,"Tempus Sans ITC":21,"TH SarabunPSK":12,"Times New Roman":16,"Traditional Arabic":16,"Trebuchet MS":17,Tunga:17,"Tw Cen MT":18,"Tw Cen MT Condensed":12,"Tw Cen MT Condensed Extra Bold":16,"UD Digi Kyokasho N-B":16,"UD Digi Kyokasho NK-B":16,"UD Digi Kyokasho NK-R":16,"UD Digi Kyokasho NP-B":23,"UD Digi Kyokasho NP-R":16,"UD Digi Kyokasho N-R":16,Univers:16,"Univers Condensed":16,"Univers Condensed Light":14,"Univers Light":16,"Urdu Typesetting":16,Utsaah:13,Vani:20,Verdana:20,"Verdana Pro":20,"Verdana Pro Black":16,"Verdana Pro Cond":16,"Verdana Pro Cond Black":16,"Verdana Pro Cond Light":16,"Verdana Pro Cond SemiBold":16,"Verdana Pro Light":16,"Verdana Pro SemiBold":16,Vijaya:13,"Viner Hand ITC":22,Vivaldi:14,"Vladimir Script":15,Vrinda:18,Webdings:32,"Wide Latin":40,Wingdings:43,"Wingdings 2":36,"Wingdings 3":29,"Yet R":17,"Yu Gothic":18,"Yu Gothic Light":17,"Yu Gothic Medium":18,"Yu Gothic UI":17,"Yu Gothic UI Light":17,"Yu Gothic UI Semibold":18,"Yu Gothic UI Semilight":18,"Yu Mincho":17,"Yu Mincho Demibold":17,"Yu Mincho Light":16,"\u4eff\u5b8b":16,"\u534e\u6587\u4e2d\u5b8b":20,"\u534e\u6587\u4eff\u5b8b":15,"\u534e\u6587\u5b8b\u4f53":15,"\u534e\u6587\u5f69\u4e91":18,"\u534e\u6587\u65b0\u9b4f":19,"\u534e\u6587\u6977\u4f53":15,"\u534e\u6587\u7425\u73c0":18,"\u534e\u6587\u7ec6\u9ed1":18,"\u534e\u6587\u884c\u6977":16,"\u534e\u6587\u96b6\u4e66":14,"\u5b8b\u4f53":16,"\u5e7c\u5706":16,"\u5fae\u8f6f\u96c5\u9ed1":19,"\u5fae\u8f6f\u96c5\u9ed1 Light":18,"\u65b0\u5b8b\u4f53":16,"\u65b9\u6b63\u59da\u4f53":16,"\u65b9\u6b63\u8212\u4f53":18,"\u6977\u4f53":16,"\u7b49\u7ebf":17,"\u7b49\u7ebf Light":16,"\u96b6\u4e66":16,"\u9ed1\u4f53":16,"\u6e38\u30b4\u30b7\u30c3\u30af":18,"\uff2d\uff33 \uff30\u660e\u671d":16,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':16,"\u30e1\u30a4\u30ea\u30aa":20,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":16,"HG\u660e\u671dB":16,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":16}},t.unknownFontMaxDigitWidthMap={},a="http://schemas.openxmlformats.org/spreadsheetml/2006/main",t.XFileConstants={Bb:"_rels",Cb:"/xl",Db:"[Content_Types].xml",Eb:"bin",Fb:"application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings",Gb:"rels",Hb:"application/vnd.openxmlformats-package.relationships+xml",Ib:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",Jb:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",Kb:"application/vnd.openxmlformats-officedocument.theme+xml",Lb:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",Mb:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",Ob:"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml",Pb:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",Qb:"application/vnd.openxmlformats-officedocument.drawing+xml",Rb:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",Sb:"application/vnd.ms-office.chartex+xml",Tb:"application/vnd.ms-office.chartstyle+xml",Ub:"application/vnd.ms-office.chartcolorstyle+xml",Vb:"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml",Wb:"application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml",Xb:"application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml",Yb:"application/vnd.ms-office.drawingml.diagramDrawing+xml",Zb:"application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml",$b:"application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml",_b:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",ac:"application/vnd.ms-excel.threadedcomments+xml",bc:"application/vnd.ms-excel.person+xml",cc:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",dc:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",ec:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",fc:"application/vnd.ms-excel.slicer+xml",gc:"application/vnd.ms-excel.slicerCache+xml",hc:"application/vnd.ms-excel.timeline+xml",ic:"application/vnd.ms-excel.timelineCache+xml",jc:"application/vnd.ms-office.vbaProject",kc:"application/vnd.openxmlformats-officedocument.vmlDrawing",lc:"application/vnd.ms-excel.controlproperties+xml",nc:"xml",oc:"vml",pc:"application/xml",qc:"jpg",sc:"image/jpg",tc:"tiff",uc:"image/tiff",vc:"jpeg",wc:"image/jpeg",xc:"svg",yc:"image/svg+xml",zc:"png",Ac:"image/png",Bc:"bmp",Cc:"image/bmp",Dc:"gif",Ec:"image/gif",Fc:"emf",Gc:"image/x-emf",Hc:"wmf",Ic:"image/x-wmf",Jc:"drawings",Kc:"vmlDrawing",Lc:"/xl/charts",Mc:"/xl/drawings",Nc:"/xl/persons",Oc:"/xl/media",Pc:"/xl/ctrlProps",Qc:"/xl/threadedComments",Rc:"/xl/worksheets",Sc:"/xl/tables",Tc:"/xl/slicers",Uc:"/xl/timelines",Vc:"/xl/externalLinks",Wc:"/xl/slicerCaches",Xc:"/xl/timelineCaches",Yc:"/xl/pivotCache",Zc:"/xl/pivotTables",$c:"sheet",_c:"externalLink",ad:"comments",bd:"chart",dd:"chartEx",ed:"style",fd:"person",hd:"colors",jd:"drawing",kd:"threadedComment",ld:"image",md:"ctrlProp",od:"table",pd:"slicer",qd:"timeline",rd:"slicerCache",sd:"timelineCache",td:"pivotCacheDefinition",ud:"pivotCacheRecords",vd:"pivotTable",wd:"/xl/sharedStrings.xml",xd:"/xl/theme/theme1.xml",yd:"/xl/worksheets",zd:"/xl/workbook.xml",Ad:"/docProps/core.xml",Bd:"/docProps/app.xml",Cd:"/docProps/custom.xml",Dd:"/xl/styles.xml",Ed:"/xl/theme/theme1.xml",Fd:"metadata.xml",Gd:"/xl/_rels/workbook.xml.rels",Hd:a,Jd:"http://schemas.openxmlformats.org/markup-compatibility/2006",Kd:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",Ld:"http://schemas.openxmlformats.org/drawingml/2006/main",Md:a,Nd:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",Od:"x14ac",Pd:"x14ac xr xr2 xr3",Qd:"xr",Rd:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",Sd:"http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",Td:"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",Ud:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",Vd:"http://schemas.openxmlformats.org/package/2006/content-types",Wd:"http://schemas.openxmlformats.org/package/2006/relationships",Xd:"http://schemas.openxmlformats.org/drawingml/2006/main",Yd:"http://schemas.microsoft.com/office/drawing/2010/main",Zd:"http://schemas.microsoft.com/office/drawing/2016/SVG/main",$d:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",_d:"http://schemas.microsoft.com/office/excel/2006/main",ae:"http://schemas.openxmlformats.org/markup-compatibility/2006",be:a,ce:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",de:"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main",ee:"http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures",fe:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",ge:"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray",he:"http://schemas.microsoft.com/office/spreadsheetml/2017/richdata",ie:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",je:a,ke:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",le:a,me:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",ne:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",oe:"http://purl.org/dc/elements/1.1/",pe:"http://purl.org/dc/terms/",qe:"http://purl.org/dc/dcmitype/",re:"http://www.w3.org/2001/XMLSchema-instance",se:"application/vnd.openxmlformats-package.core-properties+xml",te:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",ue:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",ve:"application/vnd.openxmlformats-officedocument.extended-properties+xml",we:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",xe:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",ye:"application/vnd.openxmlformats-officedocument.custom-properties+xml"},function(e){e[e.latin=0]="latin",e[e.cs=1]="cs",e[e.ea=2]="ea",e[e.sym=3]="sym"}(l=t.FontLanguage||(t.FontLanguage={})),s=function(){function e(e,t){this.row=e,this.col=t}return e}(),t.ExcelCell=s,c=function(){function e(e){this.index=e}return e}(),t.ExcelColumn=c,d=function(){function e(e){this.index=e}return e}(),t.ExcelRow=d,u=function(){function e(e,t,r){this.name=e,this.colorScheme=t,this.fontScheme=r}return e}(),t.ExcelTheme=u,f=function(){function e(e,t){this.name=e,this.schemeColors=t}return e}(),t.ColorScheme=f,b=function(){function e(e,t,r){this.name=e,this.majorFont=t,this.minorFont=r}return e}(),t.FontScheme=b,h=function(){function e(e,t){this.script=e,this.typeface=t}return e}(),t.ThemeFont=h,p=function(){function e(e,t){this.runFormattings=e,this.themesFonts=t}return e}(),t.ThemeFonts=p,m=function(){function e(e,t){this.fontLanguage=e,this.typeface=t}return e}(),t.RunFormatting=m,g=function(){function e(){}return e}(),t.SheetInfo=g,y=function(){function e(){}return e}(),t.DefaultContentType=y,S=function(){function e(){}return e}(),t.OverrideContentType=S,C=function(){function e(){}return e}(),w=function(){function e(e,t){this.fileName=e,this.fileType=t,this.relationFiles={count:0}}return e.prototype.ze=function(e){if(!e)return"";this.relationFiles.count++;var r=t.RelationshipConstants.Ja+this.relationFiles.count;return this.relationFiles[r]=e,r},e.prototype.Ae=function(r){var i,n,a,l,s,c,d,u,f;if(r&&(i=this.Be(this.fileName,r)))for(n=0,a=i.length;n<a;n++)l=i[n],s=l.target,c="hyperlink",d=l.type.substring(l.type.length-c.length,l.type.length)===c,u=l.type===t.RelationshipConstants.rb,d||u||o.isNullOrUndefined(s)||""===s||(s="/"!==s[0]?o.Util.qa(this.fileName,s):s.substr(1)),f=new e(s,l.type),f.targetMode=l.targetMode,f.Ae(r),this.relationFiles[l.id]||this.relationFiles.count++,this.relationFiles[l.id]=f},e.prototype.Be=function(e,t){if(null===e||!t)return null;var r=this.Ce(e);return r?this.De(t[r.toLowerCase()]):null},e.prototype.Ce=function(e){return null===e||void 0===e?"":0===e.length?t.XFileConstants.Bb+"/."+t.XFileConstants.Gb:e.substring("/"===e.charAt(0)?1:0,e.lastIndexOf("/"))+"/"+t.XFileConstants.Bb+"/"+e.substring(e.lastIndexOf("/")+1)+"."+t.XFileConstants.Gb},e.prototype.Ee=function(e){var t,r;if(!this.relationFiles||0===this.relationFiles.count)return null;if(o.StringEx.L(e))return null;for(t in this.relationFiles)if("count"!==t&&(r=this.relationFiles[t],r.fileType===e))return r;return null},e.prototype.Fe=function(e){var t,r,i;if(!this.relationFiles||0===this.relationFiles.count)return null;if(o.StringEx.L(e))return null;t=[];for(r in this.relationFiles)"count"!==r&&(i=this.relationFiles[r],i.fileType===e&&t.push({id:r,file:i}));return t},e.prototype.Ge=function(e){return!this.relationFiles||0===this.relationFiles.count||o.StringEx.O(e)?null:this.relationFiles[e]},e.prototype.De=function(e){var t,r,o,n,a,l,s,c;if(e){if(t=[],r=i.parseXmlToObject(e),o=r.Relationships)for(n=o.Relationship,Array.isArray(n)||(n=[n]),a=0,l=n.length;a<l;a++)s=n[a],s&&(c=new C,s._attr.Id&&(c.id=s._attr.Id),s._attr.Target&&(c.target=s._attr.Target),s._attr.Type&&(c.type=s._attr.Type),s._attr.TargetMode&&(c.targetMode=s._attr.TargetMode),t.push(c));return t}},e}(),t.XFile=w,t.PivotSharedItemType={B:"b",D:"d",E:"e",M:"m",N:"n",S:"s",X:"x"}},"./src/common/range-parser.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts");function n(e,t){var r,o=[];return null===e?o:(r=e.replace(/('.+')/g,"").split(" "),r.forEach(function(e){var r=a(e,t);r&&o.push(r)}),o)}t.getRangesFromString=n;function a(e,t){var r,n,a,l,s,c,d,u={},f=e.indexOf("!");if(f>-1&&(e=e.substr(f+1)),r=e.split("$").join(""),r=r.split(":"),1===r.length){if(c=r[0],n=o.IndexHelper.P(c),a=o.IndexHelper.R(c),n===-1&&a===-1)return null;u.row=n,u.col=a,u.rowCount=1,u.colCount=1}else 2===r.length&&(c=r[0],d=r[1],n=o.IndexHelper.P(c),a=o.IndexHelper.R(c),l=o.IndexHelper.P(d),s=o.IndexHelper.R(d),u.row=n,u.col=a,u.rowCount=l-n+1,u.colCount=s-a+1,t||0!==n||u.rowCount!==i.ExcelConstants.wb||(u.row=-1,u.rowCount=-1),t||0!==a||u.colCount!==i.ExcelConstants.vb||(u.col=-1,u.colCount=-1));return u}function l(e){var t,r,n,a,l,s,c,d=[];for(t=0;t<e.length;t++)r=e[t],o.isRangeWholeRow(r)&&(r.col=0,r.colCount=i.ExcelConstants.vb),o.isRangeWholeColumn(r)&&(r.row=0,r.rowCount=i.ExcelConstants.wb),n=r.row,a=r.row+r.rowCount-1,l=r.col,s=r.col+r.colCount-1,c=o.IndexHelper.T(l)+(n+1),(r.rowCount>1||r.colCount>1)&&(c+=":"+o.IndexHelper.T(s)+(a+1)),d.push(c);return d.join(" ")}t.getRangeString=l},"./src/common/tuple.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){var e,t,r,o=[];for(e=0;e<arguments.length;e++)o[e]=arguments[e];for(this.equals=function(e,t){var r,o,i,n;for(r=1,o=this.count;r<=o;r++)if(i=this["item"+r],n=e["item"+r],!(i&&n&&i.equals&&i.equals(n,t)||i===n))return!1;return!0},t=o.length,r=1;r<=t;r++)this["item"+r]=o[r-1];this.count=t}return e}();t.Tuple=o},"./src/datamodel/chart-model.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B,P,W,_,N,M,O,H,G,U,J,z,V,j,X,K,q,Y,Q,Z,$,ee,te,re,oe,ie,ne,ae,le,se,ce,de,ue,fe,be,he,pe,me,ge,ye,Se,Ce,we,xe,Ae,Te,ve,ke,Fe,Re,Ee,Ie,Le,De,Be,Pe,We,_e,Ne,Me,Oe,He,Ge;Object.defineProperty(t,"__esModule",{value:!0}),o=void 0;function Ue(e){for(var t in e)e[t]!==o&&(e[e[t]]=t)}t.Charts={},i={major:0,minor:1,none:2},Ue(i),t.Charts.ST_FontCollectionIndex=i,n={dk1:0,lt1:1,dk2:2,lt2:3,accent1:4,accent2:5,accent3:6,accent4:7,accent5:8,accent6:9,hlink:10,folHlink:11},Ue(n),t.Charts.ST_ColorSchemeIndex=n,a={scrollBar:0,background:1,activeCaption:2,inactiveCaption:3,menu:4,window:5,windowFrame:6,menuText:7,windowText:8,captionText:9,activeBorder:10,inactiveBorder:11,appWorkspace:12,highlight:13,highlightText:14,btnFace:15,btnShadow:16,grayText:17,btnText:18,inactiveCaptionText:19,btnHighlight:20,Item3dDkShadow:21,Item3dLight:22,infoText:23,infoBk:24,hotLight:25,gradientActiveCaption:26,gradientInactiveCaption:27,menuHighlight:28,menuBar:29},Ue(a),t.Charts.ST_SystemColorVal=a,l={bg1:0,tx1:1,bg2:2,tx2:3,accent1:4,accent2:5,accent3:6,accent4:7,accent5:8,accent6:9,hlink:10,folHlink:11,phClr:12,dk1:13,lt1:14,dk2:15,lt2:16},Ue(l),t.Charts.ST_SchemeColorVal=l,s={aliceBlue:0,antiqueWhite:1,aqua:2,aquamarine:3,azure:4,beige:5,bisque:6,black:7,blanchedAlmond:8,blue:9,blueViolet:10,brown:11,burlyWood:12,cadetBlue:13,chartreuse:14,chocolate:15,coral:16,cornflowerBlue:17,cornsilk:18,crimson:19,cyan:20,darkBlue:21,darkCyan:22,darkGoldenrod:23,darkGray:24,darkGreen:25,darkGrey:26,darkKhaki:27,darkMagenta:28,darkOliveGreen:29,darkOrange:30,darkOrchid:31,darkRed:32,darkSalmon:33,darkSeaGreen:34,darkSlateBlue:35,darkSlateGray:36,darkSlateGrey:37,darkTurquoise:38,darkViolet:39,deepPink:40,deepSkyBlue:41,dimGray:42,dimGrey:43,dkBlue:44,dkCyan:45,dkGoldenrod:46,dkGray:47,dkGreen:48,dkGrey:49,dkKhaki:50,dkMagenta:51,dkOliveGreen:52,dkOrange:53,dkOrchid:54,dkRed:55,dkSalmon:56,dkSeaGreen:57,dkSlateBlue:58,dkSlateGray:59,dkSlateGrey:60,dkTurquoise:61,dkViolet:62,dodgerBlue:63,firebrick:64,floralWhite:65,forestGreen:66,fuchsia:67,gainsboro:68,ghostWhite:69,gold:70,goldenrod:71,gray:72,green:73,greenYellow:74,grey:75,honeydew:76,hotPink:77,indianRed:78,indigo:79,ivory:80,khaki:81,lavender:82,lavenderBlush:83,lawnGreen:84,lemonChiffon:85,lightBlue:86,lightCoral:87,lightCyan:88,lightGoldenrodYellow:89,lightGray:90,lightGreen:91,lightGrey:92,lightPink:93,lightSalmon:94,lightSeaGreen:95,lightSkyBlue:96,lightSlateGray:97,lightSlateGrey:98,lightSteelBlue:99,lightYellow:100,lime:101,limeGreen:102,linen:103,ltBlue:104,ltCoral:105,ltCyan:106,ltGoldenrodYellow:107,ltGray:108,ltGreen:109,ltGrey:110,ltPink:111,ltSalmon:112,ltSeaGreen:113,ltSkyBlue:114,ltSlateGray:115,ltSlateGrey:116,ltSteelBlue:117,ltYellow:118,magenta:119,maroon:120,medAquamarine:121,medBlue:122,mediumAquamarine:123,mediumBlue:124,mediumOrchid:125,mediumPurple:126,mediumSeaGreen:127,mediumSlateBlue:128,mediumSpringGreen:129,mediumTurquoise:130,mediumVioletRed:131,medOrchid:132,medPurple:133,medSeaGreen:134,medSlateBlue:135,medSpringGreen:136,medTurquoise:137,medVioletRed:138,midnightBlue:139,mintCream:140,mistyRose:141,moccasin:142,navajoWhite:143,navy:144,oldLace:145,olive:146,oliveDrab:147,orange:148,orangeRed:149,orchid:150,paleGoldenrod:151,paleGreen:152,paleTurquoise:153,paleVioletRed:154,papayaWhip:155,peachPuff:156,peru:157,pink:158,plum:159,powderBlue:160,purple:161,red:162,rosyBrown:163,royalBlue:164,saddleBrown:165,salmon:166,sandyBrown:167,seaGreen:168,seaShell:169,sienna:170,silver:171,skyBlue:172,slateBlue:173,slateGray:174,slateGrey:175,snow:176,springGreen:177,steelBlue:178,tan:179,teal:180,thistle:181,tomato:182,turquoise:183,violet:184,wheat:185,white:186,whiteSmoke:187,yellow:188,yellowGreen:189},Ue(s),t.Charts.ST_PresetColorVal=s,c={tl:0,t:1,tr:2,l:3,ctr:4,r:5,bl:6,b:7,br:8},Ue(c),t.Charts.ST_RectAlignment=c,d={clr:0,auto:1,gray:2,ltGray:3,invGray:4,grayWhite:5,blackGray:6,blackWhite:7,black:8,white:9,hidden:10},Ue(d),t.Charts.ST_BlackWhiteMode=d,u={inner:0,outer:1},Ue(u),t.Charts.ST_LayoutTarget=u,f={edge:0,factor:1},Ue(f),t.Charts.ST_LayoutMode=f,b={area:0,w:1},Ue(b),t.Charts.ST_SizeRepresents=b,h={auto:0,cust:1,percent:2,pos:3,val:4},Ue(h),t.Charts.ST_SplitType=h,p={ctr:0,l:1,r:2},Ue(p),t.Charts.ST_LblAlgn=p,m={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Ue(m),t.Charts.ST_DLblPos=m,g={circle:0,dash:1,diamond:2,dot:3,none:4,picture:5,plus:6,square:7,star:8,triangle:9,x:10},Ue(g),t.Charts.ST_MarkerStyle=g,y={exp:0,linear:1,log:2,movingAvg:3,poly:4,power:5},Ue(y),t.Charts.ST_TrendlineType=y,S={x:0,y:1},Ue(S),t.Charts.ST_ErrDir=S,C={both:0,minus:1,plus:2},Ue(C),t.Charts.ST_ErrBarType=C,w={cust:0,fixedVal:1,percentage:2,stdDev:3,stdErr:4},Ue(w),t.Charts.ST_ErrValType=w,x={percentStacked:0,standard:1,stacked:2},Ue(x),t.Charts.ST_Grouping=x,A={none:0,line:1,lineMarker:2,marker:3,smooth:4,smoothMarker:5},Ue(A),t.Charts.ST_ScatterStyle=A,T={standard:0,marker:1,filled:2},Ue(T),t.Charts.ST_RadarStyle=T,v={percentStacked:0,clustered:1,standard:2,stacked:3},Ue(v),t.Charts.ST_BarGrouping=v,k={bar:0,col:1},Ue(k),t.Charts.ST_BarDir=k,F={cone:0,coneToMax:1,box:2,cylinder:3,pyramid:4,pyramidToMax:5},Ue(F),t.Charts.ST_Shape=F,R={pie:0,bar:1},Ue(R),t.Charts.ST_OfPieType=R,E={b:0,l:1,r:2,t:3},Ue(E),t.Charts.ST_AxPos=E,I={autoZero:0,max:1,min:2},Ue(I),t.Charts.ST_Crosses=I,L={between:0,midCat:1},Ue(L),t.Charts.ST_CrossBetween=L,D={cross:0,in:1,none:2,out:3},Ue(D),t.Charts.ST_TickMark=D,B={high:0,low:1,nextTo:2,none:3},Ue(B),t.Charts.ST_TickLblPos=B,P={days:0,months:1,years:2},Ue(P),t.Charts.ST_TimeUnit=P,W={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8},Ue(W),t.Charts.ST_BuiltInUnit=W,_={stretch:0,stack:1,stackScale:2},Ue(_),t.Charts.ST_PictureFormat=_,N={maxMin:0,minMax:1},Ue(N),t.Charts.ST_Orientation=N,M={b:0,tr:1,l:2,r:3,t:4},Ue(M),t.Charts.ST_LegendPos=M,O={span:0,gap:1,zero:2},Ue(O),t.Charts.ST_DispBlanksAs=O,H={default:0,portrait:1,landscape:2},Ue(H),t.Charts.ST_PageSetupOrientation=H,G={legacyObliqueTopLeft:0,legacyObliqueTop:1,legacyObliqueTopRight:2,legacyObliqueLeft:3,legacyObliqueFront:4,legacyObliqueRight:5,legacyObliqueBottomLeft:6,legacyObliqueBottom:7,legacyObliqueBottomRight:8,legacyPerspectiveTopLeft:9,legacyPerspectiveTop:10,legacyPerspectiveTopRight:11,legacyPerspectiveLeft:12,legacyPerspectiveFront:13,legacyPerspectiveRight:14,legacyPerspectiveBottomLeft:15,legacyPerspectiveBottom:16,legacyPerspectiveBottomRight:17,orthographicFront:18,isometricTopUp:19,isometricTopDown:20,isometricBottomUp:21,isometricBottomDown:22,isometricLeftUp:23,isometricLeftDown:24,isometricRightUp:25,isometricRightDown:26,isometricOffAxis1Left:27,isometricOffAxis1Right:28,isometricOffAxis1Top:29,isometricOffAxis2Left:30,isometricOffAxis2Right:31,isometricOffAxis2Top:32,isometricOffAxis3Left:33,isometricOffAxis3Right:34,isometricOffAxis3Bottom:35,isometricOffAxis4Left:36,isometricOffAxis4Right:37,
25
- isometricOffAxis4Bottom:38,obliqueTopLeft:39,obliqueTop:40,obliqueTopRight:41,obliqueLeft:42,obliqueRight:43,obliqueBottomLeft:44,obliqueBottom:45,obliqueBottomRight:46,perspectiveFront:47,perspectiveLeft:48,perspectiveRight:49,perspectiveAbove:50,perspectiveBelow:51,perspectiveAboveLeftFacing:52,perspectiveAboveRightFacing:53,perspectiveContrastingLeftFacing:54,perspectiveContrastingRightFacing:55,perspectiveHeroicLeftFacing:56,perspectiveHeroicRightFacing:57,perspectiveHeroicExtremeLeftFacing:58,perspectiveHeroicExtremeRightFacing:59,perspectiveRelaxed:60,perspectiveRelaxedModerately:61},Ue(G),t.Charts.ST_PresetCameraType=G,U={tl:0,t:1,tr:2,l:3,r:4,bl:5,b:6,br:7},Ue(U),t.Charts.ST_LightRigDirection=U,J={legacyFlat1:0,legacyFlat2:1,legacyFlat3:2,legacyFlat4:3,legacyNormal1:4,legacyNormal2:5,legacyNormal3:6,legacyNormal4:7,legacyHarsh1:8,legacyHarsh2:9,legacyHarsh3:10,legacyHarsh4:11,threePt:12,balanced:13,soft:14,harsh:15,flood:16,contrasting:17,morning:18,sunrise:19,sunset:20,chilly:21,freezing:22,flat:23,twoPt:24,glow:25,brightRoom:26},Ue(J),t.Charts.ST_LightRigType=J,z={relaxedInset:0,circle:1,slope:2,cross:3,angle:4,softRound:5,convex:6,coolSlant:7,divot:8,riblet:9,hardEdge:10,artDeco:11},Ue(z),t.Charts.ST_BevelPresetType=z,V={legacyMatte:0,legacyPlastic:1,legacyMetal:2,legacyWireframe:3,matte:4,plastic:5,metal:6,warmMatte:7,translucentPowder:8,powder:9,dkEdge:10,softEdge:11,clear:12,flat:13,softmetal:14},Ue(V),t.Charts.ST_PresetMaterialType=V,j={shdw1:0,shdw2:1,shdw3:2,shdw4:3,shdw5:4,shdw6:5,shdw7:6,shdw8:7,shdw9:8,shdw10:9,shdw11:10,shdw12:11,shdw13:12,shdw14:13,shdw15:14,shdw16:15,shdw17:16,shdw18:17,shdw19:18,shdw20:19},Ue(j),t.Charts.ST_PresetShadowVal=j,X={shape:0,circle:1,rect:2},Ue(X),t.Charts.ST_PathShadeType=X,K={none:0,x:1,y:2,xy:3},Ue(K),t.Charts.ST_TileFlipMode=K,q={email:0,screen:1,print:2,hqprint:3,none:4},Ue(q),t.Charts.ST_BlipCompression=q,Y={pct5:0,pct10:1,pct20:2,pct25:3,pct30:4,pct40:5,pct50:6,pct60:7,pct70:8,pct75:9,pct80:10,pct90:11,horz:12,vert:13,ltHorz:14,ltVert:15,dkHorz:16,dkVert:17,narHorz:18,narVert:19,dashHorz:20,dashVert:21,cross:22,dnDiag:23,upDiag:24,ltDnDiag:25,ltUpDiag:26,dkDnDiag:27,dkUpDiag:28,wdDnDiag:29,wdUpDiag:30,dashDnDiag:31,dashUpDiag:32,diagCross:33,smCheck:34,lgCheck:35,smGrid:36,lgGrid:37,dotGrid:38,smConfetti:39,lgConfetti:40,horzBrick:41,diagBrick:42,solidDmnd:43,openDmnd:44,dotDmnd:45,plaid:46,sphere:47,weave:48,divot:49,shingle:50,wave:51,trellis:52,zigZag:53},Ue(Y),t.Charts.ST_PresetPatternVal=Y,Q={png:0,jpg:1,jpeg:2,emf:3},Ue(Q),t.Charts.ST_BobType=Q,Z={over:0,mult:1,screen:2,darken:3,lighten:4},Ue(Z),t.Charts.ST_BlendMode=Z,$={sib:0,tree:1},Ue($),t.Charts.ST_EffectContainerType=$,t.Charts.ST_PathToType={PathLine:0,PathMove:1,PathQuadBez:2,PathCubicBez:3},ee={line:0,lineInv:1,triangle:2,rtTriangle:3,rect:4,diamond:5,parallelogram:6,trapezoid:7,nonIsoscelesTrapezoid:8,pentagon:9,hexagon:10,heptagon:11,octagon:12,decagon:13,dodecagon:14,star4:15,star5:16,star6:17,star7:18,star8:19,star10:20,star12:21,star16:22,star24:23,star32:24,roundRect:25,round1Rect:26,round2SameRect:27,round2DiagRect:28,snipRoundRect:29,snip1Rect:30,snip2SameRect:31,snip2DiagRect:32,plaque:33,ellipse:34,teardrop:35,homePlate:36,chevron:37,pieWedge:38,pie:39,blockArc:40,donut:41,noSmoking:42,rightArrow:43,leftArrow:44,upArrow:45,downArrow:46,stripedRightArrow:47,notchedRightArrow:48,bentUpArrow:49,leftRightArrow:50,upDownArrow:51,leftUpArrow:52,leftRightUpArrow:53,quadArrow:54,leftArrowCallout:55,rightArrowCallout:56,upArrowCallout:57,downArrowCallout:58,leftRightArrowCallout:59,upDownArrowCallout:60,quadArrowCallout:61,bentArrow:62,uturnArrow:63,circularArrow:64,leftCircularArrow:65,leftRightCircularArrow:66,curvedRightArrow:67,curvedLeftArrow:68,curvedUpArrow:69,curvedDownArrow:70,swooshArrow:71,cube:72,can:73,lightningBolt:74,heart:75,sun:76,moon:77,smileyFace:78,irregularSeal1:79,irregularSeal2:80,foldedCorner:81,bevel:82,frame:83,halfFrame:84,corner:85,diagStripe:86,chord:87,arc:88,leftBracket:89,rightBracket:90,leftBrace:91,rightBrace:92,bracketPair:93,bracePair:94,straightConnector1:95,bentConnector2:96,bentConnector3:97,bentConnector4:98,bentConnector5:99,curvedConnector2:100,curvedConnector3:101,curvedConnector4:102,curvedConnector5:103,callout1:104,callout2:105,callout3:106,accentCallout1:107,accentCallout2:108,accentCallout3:109,borderCallout1:110,borderCallout2:111,borderCallout3:112,accentBorderCallout1:113,accentBorderCallout2:114,accentBorderCallout3:115,wedgeRectCallout:116,wedgeRoundRectCallout:117,wedgeEllipseCallout:118,cloudCallout:119,cloud:120,ribbon:121,ribbon2:122,ellipseRibbon:123,ellipseRibbon2:124,leftRightRibbon:125,verticalScroll:126,horizontalScroll:127,wave:128,doubleWave:129,plus:130,flowChartProcess:131,flowChartDecision:132,flowChartInputOutput:133,flowChartPredefinedProcess:134,flowChartInternalStorage:135,flowChartDocument:136,flowChartMultidocument:137,flowChartTerminator:138,flowChartPreparation:139,flowChartManualInput:140,flowChartManualOperation:141,flowChartConnector:142,flowChartPunchedCard:143,flowChartPunchedTape:144,flowChartSummingJunction:145,flowChartOr:146,flowChartCollate:147,flowChartSort:148,flowChartExtract:149,flowChartMerge:150,flowChartOfflineStorage:151,flowChartOnlineStorage:152,flowChartMagneticTape:153,flowChartMagneticDisk:154,flowChartMagneticDrum:155,flowChartDisplay:156,flowChartDelay:157,flowChartAlternateProcess:158,flowChartOffpageConnector:159,actionButtonBlank:160,actionButtonHome:161,actionButtonHelp:162,actionButtonInformation:163,actionButtonForwardNext:164,actionButtonBackPrevious:165,actionButtonEnd:166,actionButtonBeginning:167,actionButtonReturn:168,actionButtonDocument:169,actionButtonSound:170,actionButtonMovie:171,gear6:172,gear9:173,funnel:174,mathPlus:175,mathMinus:176,mathMultiply:177,mathDivide:178,mathEqual:179,mathNotEqual:180,cornerTabs:181,squareTabs:182,plaqueTabs:183,chartX:184,chartStar:185,chartPlus:186},Ue(ee),t.Charts.ST_ShapeType=ee,te={textNoShape:0,textPlain:1,textStop:2,textTriangle:3,textTriangleInverted:4,textChevron:5,textChevronInverted:6,textRingInside:7,textRingOutside:8,textArchUp:9,textArchDown:10,textCircle:11,textButton:12,textArchUpPour:13,textArchDownPour:14,textCirclePour:15,textButtonPour:16,textCurveUp:17,textCurveDown:18,textCanUp:19,textCanDown:20,textWave1:21,textWave2:22,textDoubleWave1:23,textWave4:24,textInflate:25,textDeflate:26,textInflateBottom:27,textDeflateBottom:28,textInflateTop:29,textDeflateTop:30,textDeflateInflate:31,textDeflateInflateDeflate:32,textFadeRight:33,textFadeLeft:34,textFadeUp:35,textFadeDown:36,textSlantUp:37,textSlantDown:38,textCascadeUp:39,textCascadeDown:40},Ue(te),t.Charts.ST_TextShapeType=te,re={none:0,norm:1,lighten:2,lightenLess:3,darken:4,darkenLess:5},Ue(re),t.Charts.ST_PathFillMode=re,oe={none:0,triangle:1,stealth:2,diamond:3,oval:4,arrow:5},Ue(oe),t.Charts.ST_LineEndType=oe,ie={sm:0,med:1,lg:2},Ue(ie),t.Charts.ST_LineEndWidth=ie,ne={sm:0,med:1,lg:2},Ue(ne),t.Charts.ST_LineEndLength=ne,ae={solid:0,dot:1,dash:2,lgDash:3,dashDot:4,lgDashDot:5,lgDashDotDot:6,sysDash:7,sysDot:8,sysDashDot:9,sysDashDotDot:10},Ue(ae),t.Charts.ST_PresetLineDashVal=ae,le={rnd:0,sq:1,flat:2},Ue(le),t.Charts.ST_LineCap=le,se={ctr:0,in:1},Ue(se),t.Charts.ST_PenAlignment=se,ce={sng:0,dbl:1,thickThin:2,thinThick:3,tri:4},Ue(ce),t.Charts.ST_CompoundLine=ce,de={twoCell:0,oneCell:1,absolute:2},Ue(de),t.Charts.ST_EditAs=de,ue={t:0,ctr:1,b:2,just:3,dist:4},Ue(ue),t.Charts.ST_TextAnchoringType=ue,fe={overflow:0,ellipsis:1,clip:2},Ue(fe),t.Charts.ST_TextVertOverflowType=fe,be={overflow:0,clip:1},Ue(be),t.Charts.ST_TextHorzOverflowType=be,he={horz:0,vert:1,vert270:2,wordArtVert:3,eaVert:4,mongolianVert:5,wordArtVertRtl:6},Ue(he),t.Charts.ST_TextVerticalType=he,pe={none:0,square:1},Ue(pe),t.Charts.ST_TextWrappingType=pe;me={alphaLcParenBoth:0,alphaUcParenBoth:1,alphaLcParenR:2,alphaUcParenR:3,alphaLcPeriod:4,alphaUcPeriod:5,arabicParenBoth:6,arabicParenR:7,arabicPeriod:8,arabicPlain:9,romanLcParenBoth:10,romanUcParenBoth:11,romanLcParenR:12,romanUcParenR:13,romanLcPeriod:14,romanUcPeriod:15,circleNumDbPlain:16,circleNumWdBlackPlain:17,circleNumWdWhitePlain:18,arabicDbPeriod:19,arabicDbPlain:20,ea1ChsPeriod:21,ea1ChsPlain:22,ea1ChtPeriod:23,ea1ChtPlain:24,ea1JpnChsDbPeriod:25,ea1JpnKorPlain:26,ea1JpnKorPeriod:27,arabic1Minus:28,arabic2Minus:29,hebrew2Minus:30,thaiAlphaPeriod:31,thaiAlphaParenR:32,thaiAlphaParenBoth:33,thaiNumPeriod:34,thaiNumParenR:35,thaiNumParenBoth:36,hindiAlphaPeriod:37,hindiNumPeriod:38,hindiNumParenR:39,hindiAlpha1Period:40};Ue(me),t.Charts.ST_TextAutonumberScheme=me,ge={none:0,words:1,sng:2,dbl:3,heavy:4,dotted:5,dottedHeavy:6,dash:7,dashHeavy:8,dashLong:9,dashLongHeavy:10,dotDash:11,dotDashHeavy:12,dotDotDash:13,dotDotDashHeavy:14,wavy:15,wavyHeavy:16,wavyDbl:17},Ue(ge),t.Charts.ST_TextUnderlineType=ge,ye={noStrike:0,sngStrike:1,dblStrike:2},Ue(ye),t.Charts.ST_TextStrikeType=ye,Se={none:0,small:1,all:2},Ue(Se),t.Charts.ST_TextCapsType=Se,Ce={l:0,ctr:1,r:2,dec:3},Ue(Ce),t.Charts.ST_TextTabAlignType=Ce,we={l:0,ctr:1,r:2,just:3,justLow:4,dist:5,thaiDist:6},Ue(we),t.Charts.ST_TextAlignType=we,xe={auto:0,t:1,ctr:2,base:3,b:4},Ue(xe),t.Charts.ST_TextFontAlignType=xe,Ae={auto:0},Ue(Ae),t.Charts.ST_StyleColorVal=Ae,t.Charts.CT_PathType={CT_PathToList:0,CT_Path2DArcTo:1,CT_Path2DClose:2},Te={col:0,row:1},Ue(Te),t.Charts.ST_FormulaDirection=Te,ve={cat:0,colorStr:1},Ue(ve),t.Charts.ST_StringDimensionType=ve,ke={val:0,x:1,y:2,size:3,colorVal:4},Ue(ke),t.Charts.ST_NumericDimensionType=ke,Fe={l:0,t:1,r:2,b:3},Ue(Fe),t.Charts.ST_SidePos=Fe,Re={t:1,r:2,l:3,b:4},Ue(Re),t.Charts.ST_2016ChartPosLegend=Re,Ee={min:0,ctr:1,max:2},Ue(Ee),t.Charts.ST_PosAlign=Ee,Ie={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8,percentage:9},Ue(Ie),t.Charts.ST_AxisUnit=Ie,Le={in:1,out:3,cross:0,none:2},Ue(Le),t.Charts.ST_TickMarksType=Le,De={boxWhisker:0,funnel:1,paretoLine:2,regionMap:3,sunburst:4,treemap:5,waterfall:6,clusteredColumn:7},Ue(De),t.Charts.ST_SeriesLayout=De,Be={none:0,banner:1,overlapping:2},Ue(Be),t.Charts.ST_ParentLabelLayout=Be,Pe={none:0,bestFitOnly:1,showAll:2},Ue(Pe),t.Charts.ST_RegionLabelLayout=Pe,We={l:0,r:1},Ue(We),t.Charts.ST_IntervalClosedSide=We,_e={Address:0,AdminDistrict:1,AdminDistrict2:2,AdminDistrict3:3,Continent:4,CountryRegion:5,Locality:6,Ocean:7,Planet:8,PostalCode:9,Region:10,Unsupported:11},Ue(_e),t.Charts.ST_EntityType=_e,Ne={mercator:0,miller:1,robinson:2,albers:3},Ue(Ne),t.Charts.ST_GeoProjectionType=Ne,Me={dataOnly:0,postalCode:1,county:2,state:3,countryRegion:4,countryRegionList:5,world:6},Ue(Me),t.Charts.ST_GeoMappingLevel=Me,Oe={inclusive:0,exclusive:1},Ue(Oe),t.Charts.ST_QuartileMethod=Oe,He={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Ue(He),t.Charts.ST_DataLabelPos=He,Ge={default:0,portrait:1,landscape:2},Ue(Ge),t.Charts.ST_PageOrientation=Ge},"./src/datamodel/datamodel-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/excel-helper.ts"),l=r("./src/datamodel/datetime-helper.ts"),s=r("./src/common/range-parser.ts"),c=r("./src/xml-io/node-helper.ts"),d=o.StringEx.O,u=n.ConverterHelper.convertDxfToStyle,f=c.XmlNodeHelper.He,b=null,h=void 0,p="Normal";function S(e,t,r,o,i,n){var a,l,s,c,d=e.itemsData;d&&(a=d[d.length-1],l=d[d.length-2],s=a&&a.info,c=l&&l.info,s&&(o&&i&&1===a.count?c&&l.index===a.index-1&&c.level===s.level-1?c.collapsed=!0:t>0?d.splice(d.length-2,0,{index:a.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!o&&n&&(c&&a.index===l.index+1&&s.level===c.level-1?a.collapsed=!0:t>=a.index+a.count&&d.push({index:a.index+a.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function C(e,t,r,i,n,a,l,s,c,d){var u={};return u.conType=e,o.J(t)||(u.compareType=t),o.J(r)||(u.expected=r),o.J(i)||(u.ignoreBlank=i),o.J(n)||(u.type=n),o.J(a)||(u.isPercent=a),o.J(l)||(u.item1=l),o.J(s)||(u.item2=s),o.J(c)||(u.ranges=c),o.J(d)||(u.expectTypeId=d),2===e&&(u.ignoreCase=!0),u}function w(e,t){var r,o,i=e.cellColor?0:1,a=t.fill;return a&&(0===a.patternType?r="":(o={},n.ConverterHelper.Ie(a,o),r=o.backColor)),C(3,i,r)}function x(e){if(e.length>0){var t=e[0];if("number"==typeof t)return"number";if("string"==typeof t&&0===t.indexOf("/OADate(")&&t.indexOf(")")===t.length-2)return"date";if("boolean"==typeof t)return"boolean"}return""}function A(e,t,r){var o,i,n={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":o=2;break;case"number":o=1,r=parseFloat(r);break;case"date":o=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(i=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(i)):r=l.DateTimeHelper.Je(parseInt(r,10)),n={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:o=11}return C(o,n[t],r)}function T(e,t){var r,o;function i(e){var r,o,i,n,a="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(o=a?3:2,r=C(2,o,l.substring(0,l.length-1))):0===s&&s===c?(o=a?5:4,r=C(2,o,l.substring(1))):(i=a?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=C(2,i,l)):(n=x(t),r=A(n,e.operator||"none",l)),r}return e.filter1&&(r=i(e.filter1)),e.filter2&&(o=e.and?1:0,r=C(0,o,b,b,b,b,r,i(e.filter2))),r}function v(e,t){function r(e){var r;return o.J(t)||(r=C(t.conType,t.compareType,e.value)),r}var i;return e.filter1&&(i=r(e.filter1)),i=e.filter2?C(t.conType,t.compareType,b,b,b,b,i,r(e.filter2)):C(t.conType,t.compareType,b,b,b,b,i,b)}function k(e,t,r){var i,n=new o.Range(t.row,r,t.rowCount,1),a=e.type;return 100===a||101===a?i=C(10,b,b,b,a-100,b,b,b,n):16===a?i=C(6,b,0,b,b,b,b,b,b,6):a>=17&&a<=20?i=C(6,b,a-17,b,b,b,b,b,b,2):a>=21&&a<=32?i=C(6,b,a-21,b,b,b,b,b,b,3):a>=0&&a<=15&&(i=C(6,b,a)),i}function F(e,t){var r,o=t.conType;return 1===o&&(r=C(1,t.compareType,b)),r}function R(e){var t=e.top?0:1;return C(8,b,e.value,b,t,e.percent)}function E(e,t){var r=e.top?1:-1;return C(3,t.compareType,e.value,b,r,e.percent)}function I(e){return d(e)?e:"="+e}function L(e){return d(e)||e.length<=2?e:e.substr(1,e.length-2)}function D(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=D;function B(e,t,r){var o=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(o=e.name)})}),o}t.getTableColumnName=B;function P(e,t,r){var o,i,n=null;for(o=0;o<t.length;o++)if(i=t[o],""+r[i.cacheId].pivotCacheId===e){n=i.name;break}return n}function W(e,t){return t=t||" ",e.map(_).join(t)}function _(e){var t,r=e.row,n=e.col,a=e.rowCount,l=e.colCount,s=n+l-1,c=r+a-1;return o.isRangeWholeRow(e)&&o.isRangeWholeColumn(e)?t="$1:$"+i.ExcelConstants.wb:o.isRangeWholeRow(e)?t=r+1+":"+(c+1):o.isRangeWholeColumn(e)?t=o.IndexHelper.T(n)+":"+o.IndexHelper.T(s):(t=o.IndexHelper.T(n)+(r+1),(a>1||l>1)&&(t+=":"+o.IndexHelper.T(s)+(c+1))),t}m=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],g=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function N(e,t){g.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function M(e,t){e&&N(e,t)}function O(e,t){return!!e[t]}function H(e,t,r,i,n,l){var s,c,d,u=e.Ke;if(r[i]&&r[i][n]){if(s=r[i][n].style,!s)return;c=o.ga._(t.namedStyles,s),c&&(d=a.processTableCellStyle(c,u),d.name="__builtInTableStyle"+e.Le+c.name,o.ga.aa(t.namedStyles,e.Me,d),e.Le++,r[i][n].style=d.name,l[s]=d.name)}}function G(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function U(e,t){var r=f(e.bk);return r[t]}function J(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function z(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}y=function(){function e(){var e=this;e.Ne={version:"18.0.0"},e.Ke=b,e.Oe=b,e.Pe=[],e.Qe=[],e.Re=[],e.Se=[],e.Te=1,e.Le=0,e.Ue=0,e.Ve=0,e.We=[],e.Xe=[],e.Ye={},e.Ze={},e.$e=!0,e._e=b,e.af=[],e.bf=!1,e.cf=3,e.df=[],e.ef=[],e.ff="Calibri Light",e.gf="Calibri",e.hf=[],e.if=[],e.jf=[],e.Me={},e.kf=[]}return e.prototype.lf=function(e){this.mf=e,this.pf={}},e.prototype.qf=function(e,t){var r,o,i,n,a,l,s,c,d=this;return d.pf||(d.pf={}),r=this.pf,o=e+","+t,(i=r[o])?i:(n=this.mf,l=n&&n.themeElements&&n.themeElements.fmtScheme,l&&(s=m[e],c=s&&l[s],a=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),a=c[t])),r[o]=a,a)},e.prototype.rf=function(e){var t,r,o,i,n,a,l,s,c;if(e){if(t={name:e.name},e.colorScheme&&(r=e.colorScheme,t.themeColor={name:r.name,text1:r.schemeColors[1],text2:r.schemeColors[3],background1:r.schemeColors[0],background2:r.schemeColors[2],accent1:r.schemeColors[4],accent2:r.schemeColors[5],accent3:r.schemeColors[6],accent4:r.schemeColors[7],accent5:r.schemeColors[8],accent6:r.schemeColors[9],hyperlink:r.schemeColors[10],followedHyperlink:r.schemeColors[11]}),e.fontScheme){for(o=e.fontScheme,i=o.majorFont.runFormattings,n=o.minorFont.runFormattings,a=0,l=i.length;a<l;a++)s=i[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.headingFont=c,this.ff=c);for(a=0,l=n.length;a<l;a++)s=n[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.bodyFont=c,this.gf=c)}this.sf=t}},e.prototype.tf=function(e){var t,r;e&&(t=this,t.Ke=n.ConverterHelper.toCellStyle(e,t.ff,t.gf),r={},n.ConverterHelper.setStyleInfoFont(e.font,r,h,h),t.Ke.fontForColumnWidth=r.font,t.Oe=e)},e.prototype.uf=function(e,t){var r,i,a,s,c,d,u,f,b,m,g,y;if(e){if(r=this,i=r.Ne,a=n.ConverterHelper.toCellStyle(e,r.ff,r.gf),!o.J(a.formatter)){for(s=RegExp("\\[DBNum\\d+\\]","ig"),c=s.exec(a.formatter),d=a.formatter;null!==c;)u=c[0],f=parseInt(u.substring(u.indexOf("m")+1,u.indexOf("]")),10),(f>4||4===f&&d.indexOf("[$-412]")<0&&"ko-kr"!==o.Fa())&&(d=d.replace(u,"[DBNum3]")),c=s.exec(a.formatter);a.formatter=d}r.Pe.push(a),b=n.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(b)),"@"===b?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(m=r.wf(t),m===-1&&(m=r.Ve),r.We.length>m?r.Se[r.Se.length]=r.We[m]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(g="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(g=r.Se[e.parentFormatID]),(g===p||"__builtInStyle"===g.substring(0,14)||o.StringEx.L(g))&&(g="__builtInStyle"+r.Te,r.Te++),a.name=g,y=r.Ze[g],"__builtInStyle"===g.substring(0,14)||y===h||e.equals(y)||(a.parentName=g,g="__builtInStyle"+r.Te,r.Te++,a.name=g),i.namedStyles||(i.namedStyles=[]),o.ga.aa(i.namedStyles,r.Me,a),r.Se[r.Se.length]=g)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,i,a,l,s,c,d,u,f;if(e){if(r=this,i=r.Ne,r.$e&&(r.yf(),r.$e=!1),a=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s<c;s++)if(d=l[s],d.builtInStyle===e.builtInStyle){a=d.name;break}if(o.ga.Z(r.Me,a)){for(s=0,c=r.af.length;s<c;s++)if(f=r.af[s],f.name===a){r.af[s]=e,r.Xe[s]=e.format(),r.Ye[t]=s;break}r.Ze[a]=e.format(),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}else r.Ze[a]=e.format(),r.af.push(e),r.Xe.push(e.format()),r.Ye[t]=r.Xe.length-1,r.We.push(a),i.namedStyles||(i.namedStyles=[]),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}},e.prototype.yf=function(){var e,t,r,o,i=this,a=i.Ne;if(i.$e)for(a.namedStyles||(a.namedStyles=[]),i._e=n.BuiltInExcelStyles.getBuiltInStyles(),e=0,t=i._e.length;e<t;e++)r=i._e[e],r&&r.name===p&&(i.Ve=i.Xe.length),i.af.push(r),i.Xe.push(r.format()),i.We.push(r.name),i.Ze[r.name]=r.format(),o=n.ConverterHelper.toCellStyle(r.format(),i.ff,i.gf),o.name=r.name},e.prototype.zf=function(e){this.bf=e},e.prototype.Af=function(e,t){var r=this.Ne;e||(r.showHorizontalScrollbar=e),t||(r.showVerticalScrollbar=t)},e.prototype.Bf=function(e,t,r,o){var i=this.Ne;e||(i.tabStripVisible=e),i.startSheetIndex=r,i.activeSheetIndex=t,i.tabStripRatio=o/1e3},e.prototype.Cf=function(e,t,r){var i={},n=this.Ne;i.name=e,i.index=t,1===r?i.visible=0:2===r&&(i.visible=2),i.allowCellOverflow=!0,i.theme=this.sf,i.defaults=o.Ea(),o.J(n.sheetCount)&&(n.sheetCount=0),n.sheetCount++,n.sheets||(n.sheets={}),n.sheets[e]=i},e.prototype.Df=function(e,t,r){var i,n,a=this.Ne;if(e&&(a.referenceStyle=1,a.sheets))for(i in a.sheets)a.sheets.hasOwnProperty(i)&&(n=a.sheets[i],n.referenceStyle=1,n.colHeaderAutoText=1);a.calculationMode=r,a.iterativeCalculation="1"===t.iterate,a.iterativeCalculationMaximumIterations=o.J(t.count)?100:parseInt(t.count,10),a.iterativeCalculationMaximumChange=o.J(t.delta)?.001:parseFloat(t.delta)},e.prototype.Ef=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];r===!1&&(i.rowOutlines||(i.rowOutlines={}),i.rowOutlines.direction=0),t===!1&&(i.columnOutlines||(i.columnOutlines={}),i.columnOutlines.direction=0)},e.prototype.Ff=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];t!==n.ExcelColor.EmptyColor&&(t.isThemeColor()?o.sheetTabColor=n.ColorHelper.getThemeColorName(t):o.sheetTabColor=n.ColorHelper.toRGBColor(t))},e.prototype.Gf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.rowCount=t,i.columnCount=r},e.prototype.Hf=function(e,t,r,o,i,a,l,s){var c,d=this.Ne,u=d.sheets&&d.sheets[e];o||(u.rowHeaderVisible=o,u.colHeaderVisible=o),a&&(u.showFormulas=!0),l?u.showZeros=!0:u.showZeros=!1,100!==i&&(u.zoomFactor=i/100),t&&t.isIndexedColor()&&64===t.value()&&(t=null),null===t&&r||(c={},null!==t&&(c.color=""+n.ColorHelper.toRGBColor(t)),r||(c.showVerticalGridline=r,c.showHorizontalGridline=r),u.gridline=c),u.isSelected=s},e.prototype.If=function(e,t,r,o,i,n,a,l,s){var c,d,u,f,b,h,p,m,g=this.Ne,y=g.sheets&&g.sheets[e];if(this.cf===t){for(y.rowCount<=r&&(y.rowCount=r+1),y.columnCount<=o&&(y.columnCount=o+1),c=0,d=n.length;c<d;c++)u=n[c],f=a[c],b=l[c],h=s[c],f===-1&&(f=y.rowCount-1),h===-1&&(h=y.columnCount-1),u=u>=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u<y.rowCount&&b<y.columnCount&&(p=Math.min(y.rowCount-u,f-u+1),m=Math.min(y.columnCount-b,h-b+1),p>=1&&m>=1&&(y.selections=y.selections||{},y.selections[c]={row:u,rowCount:p,col:b,colCount:m}));y.selections&&(y.selections.length=n.length),y.activeRow=r>=0&&r<y.rowCount?r:0,y.activeCol=o>=0&&o<y.columnCount?o:0}},e.prototype.Jf=function(e,t,r,i,n){var a,l,s,c,d,u,f,b,h;n&&(a=this.Ne,l=a.sheets&&a.sheets[e],s=this.Kf,c=o.IndexHelper.P(s),d=o.IndexHelper.R(s),u=o.IndexHelper.P(i),f=o.IndexHelper.R(i),r&&t?this.Lf(u,f,e):r&&!t?this.Lf(u,d,e):!r&&t&&this.Lf(c,f,e),r&&(b=r+c,l.rowCount<=b&&(l.rowCount=b),l.frozenRowCount=b,l.frozenTopRow=c),t&&(h=t+d,l.columnCount<=h&&(l.columnCount=h),l.frozenColCount=h,l.frozenLeftCol=d))},e.prototype.Mf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.defaults={colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:t,colWidth:r}},e.prototype.Nf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.defaults.rowHeight=n.UnitHelper.pointToPixel(t)},e.prototype.Of=function(e,t,r){var o,i=this.Ne,n=i.sheets&&i.sheets[e];isNaN(r)?(o=this.Pf(t),n.defaults._isExcelDefaultColumnWidth=!0):o=this.Qf(r),n.defaults.colWidth=o},e.prototype.Pf=function(e){var t=this.Ke,r=this.getMaxiumDigitWidth(t.fontForColumnWidth?t.fontForColumnWidth:t.font),o=2*Math.ceil(r/4)+1,i=this.Qf(e,r)+o;return 8*Math.ceil(i/8)},e.prototype.Qf=function(e,t){if(0===e)return 0;var r=this.Ke,i=r.fontForColumnWidth?r.fontForColumnWidth:r.font;return Math.floor(Math.floor(256*e)/256*(o.J(t)?this.getMaxiumDigitWidth(i):t)+.5)},e.prototype.getMaxiumDigitWidth=function(e){return this.Rf===h&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.Sf=function(e){var t=this,r=t.Ne,o=r.sheets&&r.sheets[e],i=o.columnCount||0,n=o.rowCount||0,a=t.Tf,l=t.Uf;o.columnCount=Math.max(i,a+1),o.rowCount=Math.max(n,l+1)},e.prototype.Vf=function(e,t,r,o,n,a,l,s){var c,d,u,f,p,m,g,y,C,w,x,A,T,v,k=this.Ne,F=k.sheets&&k.sheets[e],R=F.columnOutlines&&0===F.columnOutlines.direction,E=this.jf,I=this.Qf(n),L=i.ExcelConstants.vb;for(r>=L-1&&(r=L-1),c=!1,d=t;d<=r;d++){if(u=!1,(l>0||s)&&(d+2>F.columnCount&&(f=F.columnOutlines&&F.columnOutlines.items,l<=0&&(!f||!f[d-1]||f[d-1].level<0)&&(c=!0),c||(F.columnCount=d+2)),c||(F.columnOutlines||(F.columnOutlines={}),F.columnOutlines.items||(F.columnOutlines.items=[]),F.columnOutlines.itemsData||(F.columnOutlines.itemsData=[]),p=F.columnOutlines.items,p[d]={level:l-1,collapsed:s},a&&(u=!0),m=F.columnOutlines.itemsData,g=m[m.length-1],g&&d===g.index+g.count&&g.info.level===l-1&&g.info.collapsed===s?g.count++:m.push({index:d,count:1,info:{level:l-1,collapsed:s}}))),F.columnOutlines&&F.columnOutlines.itemsData&&(y=F.columnOutlines.itemsData,S(y,d,l,R,a,E[d-1]&&E[d-1].hidden)),I!==-1||a){for(F.columns||(F.columns=[]),C=F.columns.length,w=C;w<d;w++)F.columns[w]=b,E[w]=b;x={},A={},x.hidden=a,a&&0===l&&(A.visible=x.visible=!1),I!==-1&&(A.size=x.size=I),x.visible!==!1&&u!==!0||0!==x.size||(A.size=x.size=h),E[d]=x,F.columns[d]=A}1!==o&&(T=this.Se[o],T!==h?this.df[d]={style:T}:o<this.Pe.length&&(this.df[d]={style:this.Pe[o]}),v=this.Pe[o],v&&v.isVerticalText===!0&&this.kf.push(d))}F.columnCount>L&&(F.columnCount=L)},e.prototype.Wf=function(e){var t,r,o,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets&&f.sheets[e],h=b.defaults,p=b.data,m=b.columns,g=b.columnCount,y=h.colWidth;if(m&&(t=m.length,g<t))for(r=g;r<t;r++)if(o=m[r],o&&o.size===y){i=m.slice(0,r),u.jf=i,b.columns=i,p&&p.columnDataArray&&(p.columnDataArray=p.columnDataArray.slice(0,r));break}if(n=b.rows,a=b.rowCount,l=h.rowHeight,n&&(s=n.length,a<s))for(r=a;r<s;r++)if(c=n[r],c&&c.size===l){d=n.slice(0,r),u.if=d,b.rows=d,p&&p.rowDataArray&&(p.rowDataArray=p.rowDataArray.slice(0,r));break}},e.prototype.Xf=function(e,t,r,i,n){var a=this.Ne,l=a.sheets&&a.sheets[e];l.spans||(l.spans=[]),l.spans.push(new o.Range(t,i,r-t+1,n-i+1))},e.prototype.Yf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.isProtected=t},e.prototype.Zf=function(e,t,r){var o,i,n,l,s=this.Ne,c=s.sheets&&s.sheets[e];for(c.protectionOptions=c.protectionOptions||{},o=0;o<t.length;o++)i=t[o].name,n=t[o].value,l=a.toProtectionOptions[i],l?c.protectionOptions[l]=n:c.protectionOptions[i]=n;r&&c.protectionOptions.allowEditObjects===h&&(c.protectionOptions.allowEditObjects=!0)},e.prototype.$f=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,this.ef.length>0&&(t.rowDataArray=this.ef,this.ef=[]),this.df.length>0&&(t.columnDataArray=this.df,this.df=[]),this.Ke&&(t.defaultDataNode={style:this.Ke}),this.sf&&(o.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x=this.Ne,A=x.sheets&&x.sheets[e];if(A&&(r=t?A.rowOutlines:A.columnOutlines))for(o=0===r.direction,i=r.items,n=t?A.rows:A.columns,a=t?this.if:this.jf,l=function(){return o?0:n.length-1},s=function(e){return o?e<n.length:e>=0},c=function(e){return o?e+1:e-1},d=function(e){return o?e-1:e+1},u=function(e,t){var r=i[e];if(r)return r.level<=t?r:u(r.parentIndex,t)},f=l(),b=void 0;s(f);f=c(f))h=i[f],h&&h.level!==-1?(p=d(f),m=i[p],g=!m&&"number"==typeof h.level||m&&m.level<h.level,y=m&&m.level>h.level,S=void 0,C=void 0,g?(S=p,C=!!m&&(m.collapsed||m.viewCollapsed)):y?h.level===-1?C=!1:(w=void 0,w=m.parentIndex===b?m:u(m.parentIndex,h.level),w&&(S=w.parentIndex,C=w.viewCollapsed)):(S=m.parentIndex,C=m.viewCollapsed),h.parentIndex=S,h.viewCollapsed=C,!C&&a[f].hidden&&(n[f].visible=!1)):b=f},e.prototype.ag=function(e,t,r,o,i,a,l){var s,c,d,u,f,p,m,g,y=this.Ne,C=y.sheets&&y.sheets[e],w=C.rowOutlines&&0===C.rowOutlines.direction,x=this.if;if((i>0||a)&&(!w&&t+2>C.rowCount&&(C.rowCount=t+2),C.rowOutlines||(C.rowOutlines={}),C.rowOutlines.items||(C.rowOutlines.items=[]),C.rowOutlines.itemsData||(C.rowOutlines.itemsData=[]),s=C.rowOutlines.items,s[t]={level:i-1,collapsed:a},c=C.rowOutlines.itemsData,d=c[c.length-1],d&&t===d.index+d.count&&d.info.level===i-1&&d.info.collapsed===a?d.count++:c.push({index:t,count:1,info:{level:i-1,collapsed:a}})),u=x[t-1]&&x[t-1].hidden,C.rowOutlines&&C.rowOutlines.itemsData&&S(C.rowOutlines,t,i,w,l,u),i<=0&&t+1>C.rowCount&&(C.rowCount=t+1),r!==-1&&t<C.rowCount&&(f=this.Se[r],f!==h?this.ef[t]={style:f}:r<this.Pe.length&&(this.ef[t]={style:this.Pe[r]})),o!==-1||l){for(C.rows||(C.rows=[]),p=C.rows.length;p<t;p++)C.rows.push(b),x.push(b);m={},g={},m.hidden=l,l&&0===i&&(g.visible=m.visible=!1),o!==-1&&(g.size=m.size=Math.round(n.UnitHelper.pointToPixel(o))),m.visible===!1&&0===m.size&&(g.size=m.size=h),x.push(m),C.rows.push(g)}},e.prototype.bg=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,t.dataTable||(t.dataTable={})},e.prototype.cg=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e],i=o.data.dataTable;i[t]||(i[t]={})},e.prototype.dg=function(e,t,r,i){var n,a,l,s=this,c=s.Ne,d=c.sheets&&c.sheets[e],u=d.data.dataTable[t];u[r]||(u[r]={}),n=u[r],a=s.Se[i],a!==h?n.style=a:i<s.Pe.length&&(n.style=s.Pe[i]),s.kf.indexOf(r)>-1&&(l=s.Pe[i],l&&o.J(l.isVerticalText)&&(s.Pe[i].isVerticalText=!1))},e.prototype.eg=function(e,t,r,o){var i,n=this,a=n.Ne,l=a.sheets&&a.sheets[e],s=l.data.dataTable[t];s||(l.data.dataTable[t]=s={}),s[r]||(s[r]={}),i=s[r],i.hyperlink=o},e.prototype.fg=function(e,t){if(t[0]){var r=this,o=r.Ne,i=o.sheets&&o.sheets[e];i&&(i.sharedFormulas=t)}},e.prototype.gg=function(e,t,r,o,i,a,l,s){var c,d,u,f=this,b=f.Ne,h=b.sheets&&b.sheets[e],p=h.data.dataTable[t];if(p[r]||(p[r]={}),c=p[r],o<f.Qe.length&&f.Qe[o]&&"number"==typeof i&&(i=f.hg(i)),void 0!==i&&(c.value=i),void 0!==a&&(c.formula=a),l&&(c.arrayInfo=l),s){for(d=[],u=0;u<s.length;u++)s[u].style?d.push({style:n.ConverterHelper.toRichTextStyle(s[u].style,f.ff,f.gf),text:s[u].text}):d.push(s[u]);c.value={richText:d}}},e.prototype.hg=function(e){return this.bf&&(e+=1462),e=l.DateTimeHelper.Je(e),e instanceof Date&&(e=l.DateTimeHelper.ig(e)),l.DateTimeHelper.jg(e)},e.prototype.kg=function(e){var t,r,o;if(e&&e.length>0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r<o;r++)t[r]=n.ColorHelper.fromArgb(e[r]);n.ColorHelper.customPalette=t}},e.prototype.mg=function(){this.cf=3},e.prototype.ng=function(e){this.cf=e},e.prototype.Lf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[r];i.topCellIndex=e,i.leftCellIndex=t},e.prototype.og=function(){this.Ne.names=[];for(var e in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(e)&&(this.Ne.sheets[e].names=[])},e.prototype.pg=function(e,t,r,o){var i,n;if(r===-1)this.Ne.names.push({name:e,formula:t,row:0,col:0,comment:o});else for(i in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(i)&&(n=this.Ne.sheets[i],n.index===r&&n.names.push({name:e,formula:t,row:0,col:0,comment:o}))},e.prototype.qg=function(e){var t=this.rg[e];return u(t,this.ff,this.gf)},e.prototype.sg=function(e){var t=this.tg[e];return u(t,this.ff,this.gf)},e.prototype.ug=function(e){var t=this.hf[e];return u(t,this.ff,this.gf)},e.prototype.vg=function(e,t){return u(e,this.ff,this.gf,t)},e.prototype.wg=function(e,t){var r,i,n,a=this.Ne.sheets[e];for(a.conditionalFormats||(a.conditionalFormats={rules:[]}),r=0;r<t.rules.length;r++)i=t.rules[r],!o.J(i.dxfId)&&i.dxfId>-1&&(n=this.ug(i.dxfId),n.font&&0===n.font.indexOf("normal normal")&&delete n.font,i.style=n,delete i.dxfId),a.conditionalFormats.rules.push(i)},e.prototype.xg=function(e){return this.Ne.sheets[e].conditionalFormats},e.prototype.yg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.comments=e.map(function(e){return a.convertFromExcelComment(i,e)})},e.prototype.zg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.pivotTables=e},e.prototype.Ag=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t],n=e.pictures,a=e.charts,l=e.shapes,s=r.Bg&&r.Bg.importPictureAsFloatingObject;n&&s&&this.Cg(n,i),a&&this.Dg(a,i),l&&(s&&(l=J(l)),this.Eg(l,i))},e.prototype.Cg=function(e,t){t.floatingObjects=t.floatingObjects||[];var r=t.floatingObjects;e.forEach(function(e){var o=a.convertFromExcelPicture(t,e,r);o.typeName="1",r.push(o)})},e.prototype.Dg=function(e,t){t.charts=t.charts||[],e.map(function(e){var r=a.convertFromExcelChart(t,e);t.charts.push(r)})},e.prototype.Fg=function(e,t){var r,o=this,i=o.Ne.pivotCaches;if(i)for(r in i)if(i.hasOwnProperty(r)&&i[r]&&i[r][e]===t)return i[r];
25
+ isometricOffAxis4Bottom:38,obliqueTopLeft:39,obliqueTop:40,obliqueTopRight:41,obliqueLeft:42,obliqueRight:43,obliqueBottomLeft:44,obliqueBottom:45,obliqueBottomRight:46,perspectiveFront:47,perspectiveLeft:48,perspectiveRight:49,perspectiveAbove:50,perspectiveBelow:51,perspectiveAboveLeftFacing:52,perspectiveAboveRightFacing:53,perspectiveContrastingLeftFacing:54,perspectiveContrastingRightFacing:55,perspectiveHeroicLeftFacing:56,perspectiveHeroicRightFacing:57,perspectiveHeroicExtremeLeftFacing:58,perspectiveHeroicExtremeRightFacing:59,perspectiveRelaxed:60,perspectiveRelaxedModerately:61},Ue(G),t.Charts.ST_PresetCameraType=G,U={tl:0,t:1,tr:2,l:3,r:4,bl:5,b:6,br:7},Ue(U),t.Charts.ST_LightRigDirection=U,J={legacyFlat1:0,legacyFlat2:1,legacyFlat3:2,legacyFlat4:3,legacyNormal1:4,legacyNormal2:5,legacyNormal3:6,legacyNormal4:7,legacyHarsh1:8,legacyHarsh2:9,legacyHarsh3:10,legacyHarsh4:11,threePt:12,balanced:13,soft:14,harsh:15,flood:16,contrasting:17,morning:18,sunrise:19,sunset:20,chilly:21,freezing:22,flat:23,twoPt:24,glow:25,brightRoom:26},Ue(J),t.Charts.ST_LightRigType=J,z={relaxedInset:0,circle:1,slope:2,cross:3,angle:4,softRound:5,convex:6,coolSlant:7,divot:8,riblet:9,hardEdge:10,artDeco:11},Ue(z),t.Charts.ST_BevelPresetType=z,V={legacyMatte:0,legacyPlastic:1,legacyMetal:2,legacyWireframe:3,matte:4,plastic:5,metal:6,warmMatte:7,translucentPowder:8,powder:9,dkEdge:10,softEdge:11,clear:12,flat:13,softmetal:14},Ue(V),t.Charts.ST_PresetMaterialType=V,j={shdw1:0,shdw2:1,shdw3:2,shdw4:3,shdw5:4,shdw6:5,shdw7:6,shdw8:7,shdw9:8,shdw10:9,shdw11:10,shdw12:11,shdw13:12,shdw14:13,shdw15:14,shdw16:15,shdw17:16,shdw18:17,shdw19:18,shdw20:19},Ue(j),t.Charts.ST_PresetShadowVal=j,X={shape:0,circle:1,rect:2},Ue(X),t.Charts.ST_PathShadeType=X,K={none:0,x:1,y:2,xy:3},Ue(K),t.Charts.ST_TileFlipMode=K,q={email:0,screen:1,print:2,hqprint:3,none:4},Ue(q),t.Charts.ST_BlipCompression=q,Y={pct5:0,pct10:1,pct20:2,pct25:3,pct30:4,pct40:5,pct50:6,pct60:7,pct70:8,pct75:9,pct80:10,pct90:11,horz:12,vert:13,ltHorz:14,ltVert:15,dkHorz:16,dkVert:17,narHorz:18,narVert:19,dashHorz:20,dashVert:21,cross:22,dnDiag:23,upDiag:24,ltDnDiag:25,ltUpDiag:26,dkDnDiag:27,dkUpDiag:28,wdDnDiag:29,wdUpDiag:30,dashDnDiag:31,dashUpDiag:32,diagCross:33,smCheck:34,lgCheck:35,smGrid:36,lgGrid:37,dotGrid:38,smConfetti:39,lgConfetti:40,horzBrick:41,diagBrick:42,solidDmnd:43,openDmnd:44,dotDmnd:45,plaid:46,sphere:47,weave:48,divot:49,shingle:50,wave:51,trellis:52,zigZag:53},Ue(Y),t.Charts.ST_PresetPatternVal=Y,Q={png:0,jpg:1,jpeg:2,emf:3},Ue(Q),t.Charts.ST_BobType=Q,Z={over:0,mult:1,screen:2,darken:3,lighten:4},Ue(Z),t.Charts.ST_BlendMode=Z,$={sib:0,tree:1},Ue($),t.Charts.ST_EffectContainerType=$,t.Charts.ST_PathToType={PathLine:0,PathMove:1,PathQuadBez:2,PathCubicBez:3},ee={line:0,lineInv:1,triangle:2,rtTriangle:3,rect:4,diamond:5,parallelogram:6,trapezoid:7,nonIsoscelesTrapezoid:8,pentagon:9,hexagon:10,heptagon:11,octagon:12,decagon:13,dodecagon:14,star4:15,star5:16,star6:17,star7:18,star8:19,star10:20,star12:21,star16:22,star24:23,star32:24,roundRect:25,round1Rect:26,round2SameRect:27,round2DiagRect:28,snipRoundRect:29,snip1Rect:30,snip2SameRect:31,snip2DiagRect:32,plaque:33,ellipse:34,teardrop:35,homePlate:36,chevron:37,pieWedge:38,pie:39,blockArc:40,donut:41,noSmoking:42,rightArrow:43,leftArrow:44,upArrow:45,downArrow:46,stripedRightArrow:47,notchedRightArrow:48,bentUpArrow:49,leftRightArrow:50,upDownArrow:51,leftUpArrow:52,leftRightUpArrow:53,quadArrow:54,leftArrowCallout:55,rightArrowCallout:56,upArrowCallout:57,downArrowCallout:58,leftRightArrowCallout:59,upDownArrowCallout:60,quadArrowCallout:61,bentArrow:62,uturnArrow:63,circularArrow:64,leftCircularArrow:65,leftRightCircularArrow:66,curvedRightArrow:67,curvedLeftArrow:68,curvedUpArrow:69,curvedDownArrow:70,swooshArrow:71,cube:72,can:73,lightningBolt:74,heart:75,sun:76,moon:77,smileyFace:78,irregularSeal1:79,irregularSeal2:80,foldedCorner:81,bevel:82,frame:83,halfFrame:84,corner:85,diagStripe:86,chord:87,arc:88,leftBracket:89,rightBracket:90,leftBrace:91,rightBrace:92,bracketPair:93,bracePair:94,straightConnector1:95,bentConnector2:96,bentConnector3:97,bentConnector4:98,bentConnector5:99,curvedConnector2:100,curvedConnector3:101,curvedConnector4:102,curvedConnector5:103,callout1:104,callout2:105,callout3:106,accentCallout1:107,accentCallout2:108,accentCallout3:109,borderCallout1:110,borderCallout2:111,borderCallout3:112,accentBorderCallout1:113,accentBorderCallout2:114,accentBorderCallout3:115,wedgeRectCallout:116,wedgeRoundRectCallout:117,wedgeEllipseCallout:118,cloudCallout:119,cloud:120,ribbon:121,ribbon2:122,ellipseRibbon:123,ellipseRibbon2:124,leftRightRibbon:125,verticalScroll:126,horizontalScroll:127,wave:128,doubleWave:129,plus:130,flowChartProcess:131,flowChartDecision:132,flowChartInputOutput:133,flowChartPredefinedProcess:134,flowChartInternalStorage:135,flowChartDocument:136,flowChartMultidocument:137,flowChartTerminator:138,flowChartPreparation:139,flowChartManualInput:140,flowChartManualOperation:141,flowChartConnector:142,flowChartPunchedCard:143,flowChartPunchedTape:144,flowChartSummingJunction:145,flowChartOr:146,flowChartCollate:147,flowChartSort:148,flowChartExtract:149,flowChartMerge:150,flowChartOfflineStorage:151,flowChartOnlineStorage:152,flowChartMagneticTape:153,flowChartMagneticDisk:154,flowChartMagneticDrum:155,flowChartDisplay:156,flowChartDelay:157,flowChartAlternateProcess:158,flowChartOffpageConnector:159,actionButtonBlank:160,actionButtonHome:161,actionButtonHelp:162,actionButtonInformation:163,actionButtonForwardNext:164,actionButtonBackPrevious:165,actionButtonEnd:166,actionButtonBeginning:167,actionButtonReturn:168,actionButtonDocument:169,actionButtonSound:170,actionButtonMovie:171,gear6:172,gear9:173,funnel:174,mathPlus:175,mathMinus:176,mathMultiply:177,mathDivide:178,mathEqual:179,mathNotEqual:180,cornerTabs:181,squareTabs:182,plaqueTabs:183,chartX:184,chartStar:185,chartPlus:186},Ue(ee),t.Charts.ST_ShapeType=ee,te={textNoShape:0,textPlain:1,textStop:2,textTriangle:3,textTriangleInverted:4,textChevron:5,textChevronInverted:6,textRingInside:7,textRingOutside:8,textArchUp:9,textArchDown:10,textCircle:11,textButton:12,textArchUpPour:13,textArchDownPour:14,textCirclePour:15,textButtonPour:16,textCurveUp:17,textCurveDown:18,textCanUp:19,textCanDown:20,textWave1:21,textWave2:22,textDoubleWave1:23,textWave4:24,textInflate:25,textDeflate:26,textInflateBottom:27,textDeflateBottom:28,textInflateTop:29,textDeflateTop:30,textDeflateInflate:31,textDeflateInflateDeflate:32,textFadeRight:33,textFadeLeft:34,textFadeUp:35,textFadeDown:36,textSlantUp:37,textSlantDown:38,textCascadeUp:39,textCascadeDown:40},Ue(te),t.Charts.ST_TextShapeType=te,re={none:0,norm:1,lighten:2,lightenLess:3,darken:4,darkenLess:5},Ue(re),t.Charts.ST_PathFillMode=re,oe={none:0,triangle:1,stealth:2,diamond:3,oval:4,arrow:5},Ue(oe),t.Charts.ST_LineEndType=oe,ie={sm:0,med:1,lg:2},Ue(ie),t.Charts.ST_LineEndWidth=ie,ne={sm:0,med:1,lg:2},Ue(ne),t.Charts.ST_LineEndLength=ne,ae={solid:0,dot:1,dash:2,lgDash:3,dashDot:4,lgDashDot:5,lgDashDotDot:6,sysDash:7,sysDot:8,sysDashDot:9,sysDashDotDot:10},Ue(ae),t.Charts.ST_PresetLineDashVal=ae,le={rnd:0,sq:1,flat:2},Ue(le),t.Charts.ST_LineCap=le,se={ctr:0,in:1},Ue(se),t.Charts.ST_PenAlignment=se,ce={sng:0,dbl:1,thickThin:2,thinThick:3,tri:4},Ue(ce),t.Charts.ST_CompoundLine=ce,de={twoCell:0,oneCell:1,absolute:2},Ue(de),t.Charts.ST_EditAs=de,ue={t:0,ctr:1,b:2,just:3,dist:4},Ue(ue),t.Charts.ST_TextAnchoringType=ue,fe={overflow:0,ellipsis:1,clip:2},Ue(fe),t.Charts.ST_TextVertOverflowType=fe,be={overflow:0,clip:1},Ue(be),t.Charts.ST_TextHorzOverflowType=be,he={horz:0,vert:1,vert270:2,wordArtVert:3,eaVert:4,mongolianVert:5,wordArtVertRtl:6},Ue(he),t.Charts.ST_TextVerticalType=he,pe={none:0,square:1},Ue(pe),t.Charts.ST_TextWrappingType=pe;me={alphaLcParenBoth:0,alphaUcParenBoth:1,alphaLcParenR:2,alphaUcParenR:3,alphaLcPeriod:4,alphaUcPeriod:5,arabicParenBoth:6,arabicParenR:7,arabicPeriod:8,arabicPlain:9,romanLcParenBoth:10,romanUcParenBoth:11,romanLcParenR:12,romanUcParenR:13,romanLcPeriod:14,romanUcPeriod:15,circleNumDbPlain:16,circleNumWdBlackPlain:17,circleNumWdWhitePlain:18,arabicDbPeriod:19,arabicDbPlain:20,ea1ChsPeriod:21,ea1ChsPlain:22,ea1ChtPeriod:23,ea1ChtPlain:24,ea1JpnChsDbPeriod:25,ea1JpnKorPlain:26,ea1JpnKorPeriod:27,arabic1Minus:28,arabic2Minus:29,hebrew2Minus:30,thaiAlphaPeriod:31,thaiAlphaParenR:32,thaiAlphaParenBoth:33,thaiNumPeriod:34,thaiNumParenR:35,thaiNumParenBoth:36,hindiAlphaPeriod:37,hindiNumPeriod:38,hindiNumParenR:39,hindiAlpha1Period:40};Ue(me),t.Charts.ST_TextAutonumberScheme=me,ge={none:0,words:1,sng:2,dbl:3,heavy:4,dotted:5,dottedHeavy:6,dash:7,dashHeavy:8,dashLong:9,dashLongHeavy:10,dotDash:11,dotDashHeavy:12,dotDotDash:13,dotDotDashHeavy:14,wavy:15,wavyHeavy:16,wavyDbl:17},Ue(ge),t.Charts.ST_TextUnderlineType=ge,ye={noStrike:0,sngStrike:1,dblStrike:2},Ue(ye),t.Charts.ST_TextStrikeType=ye,Se={none:0,small:1,all:2},Ue(Se),t.Charts.ST_TextCapsType=Se,Ce={l:0,ctr:1,r:2,dec:3},Ue(Ce),t.Charts.ST_TextTabAlignType=Ce,we={l:0,ctr:1,r:2,just:3,justLow:4,dist:5,thaiDist:6},Ue(we),t.Charts.ST_TextAlignType=we,xe={auto:0,t:1,ctr:2,base:3,b:4},Ue(xe),t.Charts.ST_TextFontAlignType=xe,Ae={auto:0},Ue(Ae),t.Charts.ST_StyleColorVal=Ae,t.Charts.CT_PathType={CT_PathToList:0,CT_Path2DArcTo:1,CT_Path2DClose:2},Te={col:0,row:1},Ue(Te),t.Charts.ST_FormulaDirection=Te,ve={cat:0,colorStr:1},Ue(ve),t.Charts.ST_StringDimensionType=ve,ke={val:0,x:1,y:2,size:3,colorVal:4},Ue(ke),t.Charts.ST_NumericDimensionType=ke,Fe={l:0,t:1,r:2,b:3},Ue(Fe),t.Charts.ST_SidePos=Fe,Re={t:1,r:2,l:3,b:4},Ue(Re),t.Charts.ST_2016ChartPosLegend=Re,Ee={min:0,ctr:1,max:2},Ue(Ee),t.Charts.ST_PosAlign=Ee,Ie={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8,percentage:9},Ue(Ie),t.Charts.ST_AxisUnit=Ie,Le={in:1,out:3,cross:0,none:2},Ue(Le),t.Charts.ST_TickMarksType=Le,De={boxWhisker:0,funnel:1,paretoLine:2,regionMap:3,sunburst:4,treemap:5,waterfall:6,clusteredColumn:7},Ue(De),t.Charts.ST_SeriesLayout=De,Be={none:0,banner:1,overlapping:2},Ue(Be),t.Charts.ST_ParentLabelLayout=Be,Pe={none:0,bestFitOnly:1,showAll:2},Ue(Pe),t.Charts.ST_RegionLabelLayout=Pe,We={l:0,r:1},Ue(We),t.Charts.ST_IntervalClosedSide=We,_e={Address:0,AdminDistrict:1,AdminDistrict2:2,AdminDistrict3:3,Continent:4,CountryRegion:5,Locality:6,Ocean:7,Planet:8,PostalCode:9,Region:10,Unsupported:11},Ue(_e),t.Charts.ST_EntityType=_e,Ne={mercator:0,miller:1,robinson:2,albers:3},Ue(Ne),t.Charts.ST_GeoProjectionType=Ne,Me={dataOnly:0,postalCode:1,county:2,state:3,countryRegion:4,countryRegionList:5,world:6},Ue(Me),t.Charts.ST_GeoMappingLevel=Me,Oe={inclusive:0,exclusive:1},Ue(Oe),t.Charts.ST_QuartileMethod=Oe,He={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Ue(He),t.Charts.ST_DataLabelPos=He,Ge={default:0,portrait:1,landscape:2},Ue(Ge),t.Charts.ST_PageOrientation=Ge},"./src/datamodel/datamodel-reader.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/excel-helper.ts"),l=r("./src/datamodel/datetime-helper.ts"),s=r("./src/common/range-parser.ts"),c=r("./src/xml-io/node-helper.ts"),d=o.StringEx.O,u=n.ConverterHelper.convertDxfToStyle,f=c.XmlNodeHelper.He,b=null,h=void 0,p="Normal";function S(e,t,r,o,i,n){var a,l,s,c,d=e.itemsData;d&&(a=d[d.length-1],l=d[d.length-2],s=a&&a.info,c=l&&l.info,s&&(o&&i&&1===a.count?c&&l.index===a.index-1&&c.level===s.level-1?c.collapsed=!0:t>0?d.splice(d.length-2,0,{index:a.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!o&&n&&(c&&a.index===l.index+1&&s.level===c.level-1?a.collapsed=!0:t>=a.index+a.count&&d.push({index:a.index+a.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function C(e,t,r,i,n,a,l,s,c,d){var u={};return u.conType=e,o.J(t)||(u.compareType=t),o.J(r)||(u.expected=r),o.J(i)||(u.ignoreBlank=i),o.J(n)||(u.type=n),o.J(a)||(u.isPercent=a),o.J(l)||(u.item1=l),o.J(s)||(u.item2=s),o.J(c)||(u.ranges=c),o.J(d)||(u.expectTypeId=d),2===e&&(u.ignoreCase=!0),u}function w(e,t){var r,o,i=e.cellColor?0:1,a=t.fill;return a&&(0===a.patternType?r="":(o={},n.ConverterHelper.Ie(a,o),r=o.backColor)),C(3,i,r)}function x(e){if(e.length>0){var t=e[0];if("number"==typeof t)return"number";if("string"==typeof t&&0===t.indexOf("/OADate(")&&t.indexOf(")")===t.length-2)return"date";if("boolean"==typeof t)return"boolean"}return""}function A(e,t,r){var o,i,n={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":o=2;break;case"number":o=1,r=parseFloat(r);break;case"date":o=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(i=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(i)):r=l.DateTimeHelper.Je(parseInt(r,10)),n={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:o=11}return C(o,n[t],r)}function T(e,t){var r,o;function i(e){var r,o,i,n,a="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(o=a?3:2,r=C(2,o,l.substring(0,l.length-1))):0===s&&s===c?(o=a?5:4,r=C(2,o,l.substring(1))):(i=a?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=C(2,i,l)):(n=x(t),r=A(n,e.operator||"none",l)),r}return e.filter1&&(r=i(e.filter1)),e.filter2&&(o=e.and?1:0,r=C(0,o,b,b,b,b,r,i(e.filter2))),r}function v(e,t){function r(e){var r;return o.J(t)||(r=C(t.conType,t.compareType,e.value)),r}var i;return e.filter1&&(i=r(e.filter1)),i=e.filter2?C(t.conType,t.compareType,b,b,b,b,i,r(e.filter2)):C(t.conType,t.compareType,b,b,b,b,i,b)}function k(e,t,r){var i,n=new o.Range(t.row,r,t.rowCount,1),a=e.type;return 100===a||101===a?i=C(10,b,b,b,a-100,b,b,b,n):16===a?i=C(6,b,0,b,b,b,b,b,b,6):a>=17&&a<=20?i=C(6,b,a-17,b,b,b,b,b,b,2):a>=21&&a<=32?i=C(6,b,a-21,b,b,b,b,b,b,3):a>=0&&a<=15&&(i=C(6,b,a)),i}function F(e,t){var r,o=t.conType;return 1===o&&(r=C(1,t.compareType,b)),r}function R(e){var t=e.top?0:1;return C(8,b,e.value,b,t,e.percent)}function E(e,t){var r=e.top?1:-1;return C(3,t.compareType,e.value,b,r,e.percent)}function I(e){return d(e)?e:"="+e}function L(e){return d(e)||e.length<=2?e:e.substr(1,e.length-2)}function D(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=D;function B(e,t,r){var o=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(o=e.name)})}),o}t.getTableColumnName=B;function P(e,t,r){var o,i,n=null;for(o=0;o<t.length;o++)if(i=t[o],""+r[i.cacheId].pivotCacheId===e){n=i.name;break}return n}function W(e,t){return t=t||" ",e.map(_).join(t)}function _(e){var t,r=e.row,n=e.col,a=e.rowCount,l=e.colCount,s=n+l-1,c=r+a-1;return o.isRangeWholeRow(e)&&o.isRangeWholeColumn(e)?t="$1:$"+i.ExcelConstants.wb:o.isRangeWholeRow(e)?t=r+1+":"+(c+1):o.isRangeWholeColumn(e)?t=o.IndexHelper.T(n)+":"+o.IndexHelper.T(s):(t=o.IndexHelper.T(n)+(r+1),(a>1||l>1)&&(t+=":"+o.IndexHelper.T(s)+(c+1))),t}m=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],g=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function N(e,t){g.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function M(e,t){e&&N(e,t)}function O(e,t){return!!e[t]}function H(e,t,r,i,n,l){var s,c,d,u=e.Ke;if(r[i]&&r[i][n]){if(s=r[i][n].style,!s)return;c=o.ga._(t.namedStyles,s),c&&(d=a.processTableCellStyle(c,u),d.name="__builtInTableStyle"+e.Le+c.name,o.ga.aa(t.namedStyles,e.Me,d),e.Le++,r[i][n].style=d.name,l[s]=d.name)}}function G(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function U(e,t){var r=f(e.bk);return r[t]}function J(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function z(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}y=function(){function e(){var e=this;e.Ne={version:"18.0.1"},e.Ke=b,e.Oe=b,e.Pe=[],e.Qe=[],e.Re=[],e.Se=[],e.Te=1,e.Le=0,e.Ue=0,e.Ve=0,e.We=[],e.Xe=[],e.Ye={},e.Ze={},e.$e=!0,e._e=b,e.af=[],e.bf=!1,e.cf=3,e.df=[],e.ef=[],e.ff="Calibri Light",e.gf="Calibri",e.hf=[],e.if=[],e.jf=[],e.Me={},e.kf=[]}return e.prototype.lf=function(e){this.mf=e,this.pf={}},e.prototype.qf=function(e,t){var r,o,i,n,a,l,s,c,d=this;return d.pf||(d.pf={}),r=this.pf,o=e+","+t,(i=r[o])?i:(n=this.mf,l=n&&n.themeElements&&n.themeElements.fmtScheme,l&&(s=m[e],c=s&&l[s],a=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),a=c[t])),r[o]=a,a)},e.prototype.rf=function(e){var t,r,o,i,n,a,l,s,c;if(e){if(t={name:e.name},e.colorScheme&&(r=e.colorScheme,t.themeColor={name:r.name,text1:r.schemeColors[1],text2:r.schemeColors[3],background1:r.schemeColors[0],background2:r.schemeColors[2],accent1:r.schemeColors[4],accent2:r.schemeColors[5],accent3:r.schemeColors[6],accent4:r.schemeColors[7],accent5:r.schemeColors[8],accent6:r.schemeColors[9],hyperlink:r.schemeColors[10],followedHyperlink:r.schemeColors[11]}),e.fontScheme){for(o=e.fontScheme,i=o.majorFont.runFormattings,n=o.minorFont.runFormattings,a=0,l=i.length;a<l;a++)s=i[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.headingFont=c,this.ff=c);for(a=0,l=n.length;a<l;a++)s=n[a],s&&0===s.fontLanguage&&(c=z(s.typeface),t.bodyFont=c,this.gf=c)}this.sf=t}},e.prototype.tf=function(e){var t,r;e&&(t=this,t.Ke=n.ConverterHelper.toCellStyle(e,t.ff,t.gf),r={},n.ConverterHelper.setStyleInfoFont(e.font,r,h,h),t.Ke.fontForColumnWidth=r.font,t.Oe=e)},e.prototype.uf=function(e,t){var r,i,a,s,c,d,u,f,b,m,g,y;if(e){if(r=this,i=r.Ne,a=n.ConverterHelper.toCellStyle(e,r.ff,r.gf),!o.J(a.formatter)){for(s=RegExp("\\[DBNum\\d+\\]","ig"),c=s.exec(a.formatter),d=a.formatter;null!==c;)u=c[0],f=parseInt(u.substring(u.indexOf("m")+1,u.indexOf("]")),10),(f>4||4===f&&d.indexOf("[$-412]")<0&&"ko-kr"!==o.Fa())&&(d=d.replace(u,"[DBNum3]")),c=s.exec(a.formatter);a.formatter=d}r.Pe.push(a),b=n.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(b)),"@"===b?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(m=r.wf(t),m===-1&&(m=r.Ve),r.We.length>m?r.Se[r.Se.length]=r.We[m]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(g="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(g=r.Se[e.parentFormatID]),(g===p||"__builtInStyle"===g.substring(0,14)||o.StringEx.L(g))&&(g="__builtInStyle"+r.Te,r.Te++),a.name=g,y=r.Ze[g],"__builtInStyle"===g.substring(0,14)||y===h||e.equals(y)||(a.parentName=g,g="__builtInStyle"+r.Te,r.Te++,a.name=g),i.namedStyles||(i.namedStyles=[]),o.ga.aa(i.namedStyles,r.Me,a),r.Se[r.Se.length]=g)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,i,a,l,s,c,d,u,f;if(e){if(r=this,i=r.Ne,r.$e&&(r.yf(),r.$e=!1),a=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s<c;s++)if(d=l[s],d.builtInStyle===e.builtInStyle){a=d.name;break}if(o.ga.Z(r.Me,a)){for(s=0,c=r.af.length;s<c;s++)if(f=r.af[s],f.name===a){r.af[s]=e,r.Xe[s]=e.format(),r.Ye[t]=s;break}r.Ze[a]=e.format(),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}else r.Ze[a]=e.format(),r.af.push(e),r.Xe.push(e.format()),r.Ye[t]=r.Xe.length-1,r.We.push(a),i.namedStyles||(i.namedStyles=[]),u=n.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),u.name=a,o.ga.aa(i.namedStyles,r.Me,u)}},e.prototype.yf=function(){var e,t,r,o,i=this,a=i.Ne;if(i.$e)for(a.namedStyles||(a.namedStyles=[]),i._e=n.BuiltInExcelStyles.getBuiltInStyles(),e=0,t=i._e.length;e<t;e++)r=i._e[e],r&&r.name===p&&(i.Ve=i.Xe.length),i.af.push(r),i.Xe.push(r.format()),i.We.push(r.name),i.Ze[r.name]=r.format(),o=n.ConverterHelper.toCellStyle(r.format(),i.ff,i.gf),o.name=r.name},e.prototype.zf=function(e){this.bf=e},e.prototype.Af=function(e,t){var r=this.Ne;e||(r.showHorizontalScrollbar=e),t||(r.showVerticalScrollbar=t)},e.prototype.Bf=function(e,t,r,o){var i=this.Ne;e||(i.tabStripVisible=e),i.startSheetIndex=r,i.activeSheetIndex=t,i.tabStripRatio=o/1e3},e.prototype.Cf=function(e,t,r){var i={},n=this.Ne;i.name=e,i.index=t,1===r?i.visible=0:2===r&&(i.visible=2),i.allowCellOverflow=!0,i.theme=this.sf,i.defaults=o.Ea(),o.J(n.sheetCount)&&(n.sheetCount=0),n.sheetCount++,n.sheets||(n.sheets={}),n.sheets[e]=i},e.prototype.Df=function(e,t,r){var i,n,a=this.Ne;if(e&&(a.referenceStyle=1,a.sheets))for(i in a.sheets)a.sheets.hasOwnProperty(i)&&(n=a.sheets[i],n.referenceStyle=1,n.colHeaderAutoText=1);a.calculationMode=r,a.iterativeCalculation="1"===t.iterate,a.iterativeCalculationMaximumIterations=o.J(t.count)?100:parseInt(t.count,10),a.iterativeCalculationMaximumChange=o.J(t.delta)?.001:parseFloat(t.delta)},e.prototype.Ef=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];r===!1&&(i.rowOutlines||(i.rowOutlines={}),i.rowOutlines.direction=0),t===!1&&(i.columnOutlines||(i.columnOutlines={}),i.columnOutlines.direction=0)},e.prototype.Ff=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];t!==n.ExcelColor.EmptyColor&&(t.isThemeColor()?o.sheetTabColor=n.ColorHelper.getThemeColorName(t):o.sheetTabColor=n.ColorHelper.toRGBColor(t))},e.prototype.Gf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.rowCount=t,i.columnCount=r},e.prototype.Hf=function(e,t,r,o,i,a,l,s){var c,d=this.Ne,u=d.sheets&&d.sheets[e];o||(u.rowHeaderVisible=o,u.colHeaderVisible=o),a&&(u.showFormulas=!0),l?u.showZeros=!0:u.showZeros=!1,100!==i&&(u.zoomFactor=i/100),t&&t.isIndexedColor()&&64===t.value()&&(t=null),null===t&&r||(c={},null!==t&&(c.color=""+n.ColorHelper.toRGBColor(t)),r||(c.showVerticalGridline=r,c.showHorizontalGridline=r),u.gridline=c),u.isSelected=s},e.prototype.If=function(e,t,r,o,i,n,a,l,s){var c,d,u,f,b,h,p,m,g=this.Ne,y=g.sheets&&g.sheets[e];if(this.cf===t){for(y.rowCount<=r&&(y.rowCount=r+1),y.columnCount<=o&&(y.columnCount=o+1),c=0,d=n.length;c<d;c++)u=n[c],f=a[c],b=l[c],h=s[c],f===-1&&(f=y.rowCount-1),h===-1&&(h=y.columnCount-1),u=u>=0?u:0,f=f>=0?f:0,b=b>=0?b:0,h=h>=0?h:0,u<y.rowCount&&b<y.columnCount&&(p=Math.min(y.rowCount-u,f-u+1),m=Math.min(y.columnCount-b,h-b+1),p>=1&&m>=1&&(y.selections=y.selections||{},y.selections[c]={row:u,rowCount:p,col:b,colCount:m}));y.selections&&(y.selections.length=n.length),y.activeRow=r>=0&&r<y.rowCount?r:0,y.activeCol=o>=0&&o<y.columnCount?o:0}},e.prototype.Jf=function(e,t,r,i,n){var a,l,s,c,d,u,f,b,h;n&&(a=this.Ne,l=a.sheets&&a.sheets[e],s=this.Kf,c=o.IndexHelper.P(s),d=o.IndexHelper.R(s),u=o.IndexHelper.P(i),f=o.IndexHelper.R(i),r&&t?this.Lf(u,f,e):r&&!t?this.Lf(u,d,e):!r&&t&&this.Lf(c,f,e),r&&(b=r+c,l.rowCount<=b&&(l.rowCount=b),l.frozenRowCount=b,l.frozenTopRow=c),t&&(h=t+d,l.columnCount<=h&&(l.columnCount=h),l.frozenColCount=h,l.frozenLeftCol=d))},e.prototype.Mf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[e];i.defaults={colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:t,colWidth:r}},e.prototype.Nf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.defaults.rowHeight=n.UnitHelper.pointToPixel(t)},e.prototype.Of=function(e,t,r){var o,i=this.Ne,n=i.sheets&&i.sheets[e];isNaN(r)?(o=this.Pf(t),n.defaults._isExcelDefaultColumnWidth=!0):o=this.Qf(r),n.defaults.colWidth=o},e.prototype.Pf=function(e){var t=this.Ke,r=this.getMaxiumDigitWidth(t.fontForColumnWidth?t.fontForColumnWidth:t.font),o=2*Math.ceil(r/4)+1,i=this.Qf(e,r)+o;return 8*Math.ceil(i/8)},e.prototype.Qf=function(e,t){if(0===e)return 0;var r=this.Ke,i=r.fontForColumnWidth?r.fontForColumnWidth:r.font;return Math.floor(Math.floor(256*e)/256*(o.J(t)?this.getMaxiumDigitWidth(i):t)+.5)},e.prototype.getMaxiumDigitWidth=function(e){return this.Rf===h&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.Sf=function(e){var t=this,r=t.Ne,o=r.sheets&&r.sheets[e],i=o.columnCount||0,n=o.rowCount||0,a=t.Tf,l=t.Uf;o.columnCount=Math.max(i,a+1),o.rowCount=Math.max(n,l+1)},e.prototype.Vf=function(e,t,r,o,n,a,l,s){var c,d,u,f,p,m,g,y,C,w,x,A,T,v,k=this.Ne,F=k.sheets&&k.sheets[e],R=F.columnOutlines&&0===F.columnOutlines.direction,E=this.jf,I=this.Qf(n),L=i.ExcelConstants.vb;for(r>=L-1&&(r=L-1),c=!1,d=t;d<=r;d++){if(u=!1,(l>0||s)&&(d+2>F.columnCount&&(f=F.columnOutlines&&F.columnOutlines.items,l<=0&&(!f||!f[d-1]||f[d-1].level<0)&&(c=!0),c||(F.columnCount=d+2)),c||(F.columnOutlines||(F.columnOutlines={}),F.columnOutlines.items||(F.columnOutlines.items=[]),F.columnOutlines.itemsData||(F.columnOutlines.itemsData=[]),p=F.columnOutlines.items,p[d]={level:l-1,collapsed:s},a&&(u=!0),m=F.columnOutlines.itemsData,g=m[m.length-1],g&&d===g.index+g.count&&g.info.level===l-1&&g.info.collapsed===s?g.count++:m.push({index:d,count:1,info:{level:l-1,collapsed:s}}))),F.columnOutlines&&F.columnOutlines.itemsData&&(y=F.columnOutlines.itemsData,S(y,d,l,R,a,E[d-1]&&E[d-1].hidden)),I!==-1||a){for(F.columns||(F.columns=[]),C=F.columns.length,w=C;w<d;w++)F.columns[w]=b,E[w]=b;x={},A={},x.hidden=a,a&&0===l&&(A.visible=x.visible=!1),I!==-1&&(A.size=x.size=I),x.visible!==!1&&u!==!0||0!==x.size||(A.size=x.size=h),E[d]=x,F.columns[d]=A}1!==o&&(T=this.Se[o],T!==h?this.df[d]={style:T}:o<this.Pe.length&&(this.df[d]={style:this.Pe[o]}),v=this.Pe[o],v&&v.isVerticalText===!0&&this.kf.push(d))}F.columnCount>L&&(F.columnCount=L)},e.prototype.Wf=function(e){var t,r,o,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets&&f.sheets[e],h=b.defaults,p=b.data,m=b.columns,g=b.columnCount,y=h.colWidth;if(m&&(t=m.length,g<t))for(r=g;r<t;r++)if(o=m[r],o&&o.size===y){i=m.slice(0,r),u.jf=i,b.columns=i,p&&p.columnDataArray&&(p.columnDataArray=p.columnDataArray.slice(0,r));break}if(n=b.rows,a=b.rowCount,l=h.rowHeight,n&&(s=n.length,a<s))for(r=a;r<s;r++)if(c=n[r],c&&c.size===l){d=n.slice(0,r),u.if=d,b.rows=d,p&&p.rowDataArray&&(p.rowDataArray=p.rowDataArray.slice(0,r));break}},e.prototype.Xf=function(e,t,r,i,n){var a=this.Ne,l=a.sheets&&a.sheets[e];l.spans||(l.spans=[]),l.spans.push(new o.Range(t,i,r-t+1,n-i+1))},e.prototype.Yf=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e];o.isProtected=t},e.prototype.Zf=function(e,t,r){var o,i,n,l,s=this.Ne,c=s.sheets&&s.sheets[e];for(c.protectionOptions=c.protectionOptions||{},o=0;o<t.length;o++)i=t[o].name,n=t[o].value,l=a.toProtectionOptions[i],l?c.protectionOptions[l]=n:c.protectionOptions[i]=n;r&&c.protectionOptions.allowEditObjects===h&&(c.protectionOptions.allowEditObjects=!0)},e.prototype.$f=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,this.ef.length>0&&(t.rowDataArray=this.ef,this.ef=[]),this.df.length>0&&(t.columnDataArray=this.df,this.df=[]),this.Ke&&(t.defaultDataNode={style:this.Ke}),this.sf&&(o.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x=this.Ne,A=x.sheets&&x.sheets[e];if(A&&(r=t?A.rowOutlines:A.columnOutlines))for(o=0===r.direction,i=r.items,n=t?A.rows:A.columns,a=t?this.if:this.jf,l=function(){return o?0:n.length-1},s=function(e){return o?e<n.length:e>=0},c=function(e){return o?e+1:e-1},d=function(e){return o?e-1:e+1},u=function(e,t){var r=i[e];if(r)return r.level<=t?r:u(r.parentIndex,t)},f=l(),b=void 0;s(f);f=c(f))h=i[f],h&&h.level!==-1?(p=d(f),m=i[p],g=!m&&"number"==typeof h.level||m&&m.level<h.level,y=m&&m.level>h.level,S=void 0,C=void 0,g?(S=p,C=!!m&&(m.collapsed||m.viewCollapsed)):y?h.level===-1?C=!1:(w=void 0,w=m.parentIndex===b?m:u(m.parentIndex,h.level),w&&(S=w.parentIndex,C=w.viewCollapsed)):(S=m.parentIndex,C=m.viewCollapsed),h.parentIndex=S,h.viewCollapsed=C,!C&&a[f].hidden&&(n[f].visible=!1)):b=f},e.prototype.ag=function(e,t,r,o,i,a,l){var s,c,d,u,f,p,m,g,y=this.Ne,C=y.sheets&&y.sheets[e],w=C.rowOutlines&&0===C.rowOutlines.direction,x=this.if;if((i>0||a)&&(!w&&t+2>C.rowCount&&(C.rowCount=t+2),C.rowOutlines||(C.rowOutlines={}),C.rowOutlines.items||(C.rowOutlines.items=[]),C.rowOutlines.itemsData||(C.rowOutlines.itemsData=[]),s=C.rowOutlines.items,s[t]={level:i-1,collapsed:a},c=C.rowOutlines.itemsData,d=c[c.length-1],d&&t===d.index+d.count&&d.info.level===i-1&&d.info.collapsed===a?d.count++:c.push({index:t,count:1,info:{level:i-1,collapsed:a}})),u=x[t-1]&&x[t-1].hidden,C.rowOutlines&&C.rowOutlines.itemsData&&S(C.rowOutlines,t,i,w,l,u),i<=0&&t+1>C.rowCount&&(C.rowCount=t+1),r!==-1&&t<C.rowCount&&(f=this.Se[r],f!==h?this.ef[t]={style:f}:r<this.Pe.length&&(this.ef[t]={style:this.Pe[r]})),o!==-1||l){for(C.rows||(C.rows=[]),p=C.rows.length;p<t;p++)C.rows.push(b),x.push(b);m={},g={},m.hidden=l,l&&0===i&&(g.visible=m.visible=!1),o!==-1&&(g.size=m.size=Math.round(n.UnitHelper.pointToPixel(o))),m.visible===!1&&0===m.size&&(g.size=m.size=h),x.push(m),C.rows.push(g)}},e.prototype.bg=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];o.data||(o.data={}),t=o.data,t.dataTable||(t.dataTable={})},e.prototype.cg=function(e,t){var r=this.Ne,o=r.sheets&&r.sheets[e],i=o.data.dataTable;i[t]||(i[t]={})},e.prototype.dg=function(e,t,r,i){var n,a,l,s=this,c=s.Ne,d=c.sheets&&c.sheets[e],u=d.data.dataTable[t];u[r]||(u[r]={}),n=u[r],a=s.Se[i],a!==h?n.style=a:i<s.Pe.length&&(n.style=s.Pe[i]),s.kf.indexOf(r)>-1&&(l=s.Pe[i],l&&o.J(l.isVerticalText)&&(s.Pe[i].isVerticalText=!1))},e.prototype.eg=function(e,t,r,o){var i,n=this,a=n.Ne,l=a.sheets&&a.sheets[e],s=l.data.dataTable[t];s||(l.data.dataTable[t]=s={}),s[r]||(s[r]={}),i=s[r],i.hyperlink=o},e.prototype.fg=function(e,t){if(t[0]){var r=this,o=r.Ne,i=o.sheets&&o.sheets[e];i&&(i.sharedFormulas=t)}},e.prototype.gg=function(e,t,r,o,i,a,l,s){var c,d,u,f=this,b=f.Ne,h=b.sheets&&b.sheets[e],p=h.data.dataTable[t];if(p[r]||(p[r]={}),c=p[r],o<f.Qe.length&&f.Qe[o]&&"number"==typeof i&&(i=f.hg(i)),void 0!==i&&(c.value=i),void 0!==a&&(c.formula=a),l&&(c.arrayInfo=l),s){for(d=[],u=0;u<s.length;u++)s[u].style?d.push({style:n.ConverterHelper.toRichTextStyle(s[u].style,f.ff,f.gf),text:s[u].text}):d.push(s[u]);c.value={richText:d}}},e.prototype.hg=function(e){return this.bf&&(e+=1462),e=l.DateTimeHelper.Je(e),e instanceof Date&&(e=l.DateTimeHelper.ig(e)),l.DateTimeHelper.jg(e)},e.prototype.kg=function(e){var t,r,o;if(e&&e.length>0){for(n.ColorHelper.useCustomPalette=!0,t={},r=0,o=e.length;r<o;r++)t[r]=n.ColorHelper.fromArgb(e[r]);n.ColorHelper.customPalette=t}},e.prototype.mg=function(){this.cf=3},e.prototype.ng=function(e){this.cf=e},e.prototype.Lf=function(e,t,r){var o=this.Ne,i=o.sheets&&o.sheets[r];i.topCellIndex=e,i.leftCellIndex=t},e.prototype.og=function(){this.Ne.names=[];for(var e in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(e)&&(this.Ne.sheets[e].names=[])},e.prototype.pg=function(e,t,r,o){var i,n;if(r===-1)this.Ne.names.push({name:e,formula:t,row:0,col:0,comment:o});else for(i in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(i)&&(n=this.Ne.sheets[i],n.index===r&&n.names.push({name:e,formula:t,row:0,col:0,comment:o}))},e.prototype.qg=function(e){var t=this.rg[e];return u(t,this.ff,this.gf)},e.prototype.sg=function(e){var t=this.tg[e];return u(t,this.ff,this.gf)},e.prototype.ug=function(e){var t=this.hf[e];return u(t,this.ff,this.gf)},e.prototype.vg=function(e,t){return u(e,this.ff,this.gf,t)},e.prototype.wg=function(e,t){var r,i,n,a=this.Ne.sheets[e];for(a.conditionalFormats||(a.conditionalFormats={rules:[]}),r=0;r<t.rules.length;r++)i=t.rules[r],!o.J(i.dxfId)&&i.dxfId>-1&&(n=this.ug(i.dxfId),n.font&&0===n.font.indexOf("normal normal")&&delete n.font,i.style=n,delete i.dxfId),a.conditionalFormats.rules.push(i)},e.prototype.xg=function(e){return this.Ne.sheets[e].conditionalFormats},e.prototype.yg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.comments=e.map(function(e){return a.convertFromExcelComment(i,e)})},e.prototype.zg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.pivotTables=e},e.prototype.Ag=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t],n=e.pictures,a=e.charts,l=e.shapes,s=r.Bg&&r.Bg.importPictureAsFloatingObject;n&&s&&this.Cg(n,i),a&&this.Dg(a,i),l&&(s&&(l=J(l)),this.Eg(l,i))},e.prototype.Cg=function(e,t){t.floatingObjects=t.floatingObjects||[];var r=t.floatingObjects;e.forEach(function(e){var o=a.convertFromExcelPicture(t,e,r);o.typeName="1",r.push(o)})},e.prototype.Dg=function(e,t){t.charts=t.charts||[],e.map(function(e){var r=a.convertFromExcelChart(t,e);t.charts.push(r)})},e.prototype.Fg=function(e,t){var r,o=this,i=o.Ne.pivotCaches;if(i)for(r in i)if(i.hasOwnProperty(r)&&i[r]&&i[r][e]===t)return i[r];
26
26
  },e.prototype.Gg=function(e){var t,r,o,i,n,a,l=this,s=e.sp||e.cxnSp,c=s&&s.style,d=s&&s.spPr;c&&(t=c.lnRef,r=void 0,o=void 0,i=d.ln,i||(i={}),t&&(r=t.idx,r&&(o=l.qf(1,r-1),M(o,i),d.ln=i))),n=e.grpSp,n&&(a=n.sp,a&&a.length&&a.forEach(function(e){l.Gg({sp:e})}))},e.prototype.Eg=function(e,t){var r=this;t.shapes=t.shapes||[],e.map(function(e){r.Gg(e);var o=a.convertFromExcelShape(t,e);t.shapes.push(o)})},e.prototype.Hg=function(e,t){var r=this,o=r.Ne,i=o.sheets&&o.sheets[t];i.controls=e},e.prototype.Ig=function(e,t){var r=function(e){var t,r,o=e&&e.nvSpPr&&e.nvSpPr.cNvPr,i=o&&o.extLst&&o.extLst.ext||[];for(t=0;t<i.length;t++)if(r=i[t],r.compatExt)return r.compatExt.spid},o=function(e){return r(e)===t},i=function(e){var t,r,n,a=e&&e.sp||[];for(t=0;t<a.length;t++){if(r=a[t],o(r))return r;if(3===r.shapeType&&(n=i(r)))return n}},n=function(e){var t,r,n;for(t=0;t<e.length;t++)if(r=e[t],7===r.shapeType){if(o(r.shapeData&&r.shapeData.sp))return r.shapeData.sp}else if(3===r.shapeType&&(n=i(r.shapeData.grpSp)))return n},a=this,l=a.Ne,s=l.sheets&&l.sheets[e];return s&&s.shapes&&n(s.shapes)},e.prototype.Jg=function(e,t){var r,o,i,n=this,a=n.Ne,l=a.sheets&&a.sheets[t];for(l.sparklineGroups=e,r=0;r<e.length;r++)for(o=e[r].sparklines,i=0;i<o.length;i++)o[i].row>=l.rowCount&&(l.rowCount=o[i].row+1),o[i].col>=l.columnCount&&(l.columnCount=o[i].col+1)},e.prototype.Kg=function(e,t){var r,o,i,a,l,s,c,d,u,f,b,h=this,p=h.Ne,m=p.sheets&&p.sheets[t];for(m.tables=e,r=0;r<e.length;r++){e[r].row+e[r].rowCount>m.rowCount&&(m.rowCount=e[r].row+e[r].rowCount),e[r].col+e[r].colCount>m.columnCount&&(m.columnCount=e[r].col+e[r].colCount),o=m.data&&m.data.dataTable,i=e[r],a=m.data&&m.data.defaultDataNode&&m.data.defaultDataNode.style&&m.data.defaultDataNode.style.font;for(l in i.style)i.style.hasOwnProperty(l)&&i.style[l]&&i.style[l].font&&(i.style[l].font=n.ConverterHelper.composeFontWeightAndFontStyleToDestFont(i.style[l].font,a));for(s={},c=i.row+i.rowCount,d=i.col+i.colCount,u=i.row;u<c;u++)for(f=i.col;f<d;f++)o[u]&&o[u][f]&&(b=o[u][f].style,O(s,b)?o[u][f].style=s[b]:H(h,p,o,u,f,s))}},e.prototype.Lg=function(e,t,r,i){var n=this.Ne.sheets[e],a,l=[],s=0,c;if(n&&n.data&&n.data.dataTable&&(a=n.data.dataTable))for(;i>0&&s<t.rowCount;)a[t.row+s]&&(c=a[t.row+s][r],o.J(c.value)||(l.push(c.value),i--)),s++;return l},e.prototype.Mg=function(e,t){var r,i,a,l,s,c,d,u=this;if(!o.J(e)&&!o.J(e.range))return r={},r.filterItemMap=[],r.filteredColumns=[],i=e.range,i=new o.Range(i.row+1,i.col,i.rowCount-1,i.colCount),r.range=i,e.filterColumns.forEach(function(e){var n,a=e.autoFilterColumnId+i.col,l=[],s=!1,c=e.colorFilter;c&&(l.push(w(c,u.hf[c.dxfId])),s=!0),n=e.filters,n&&(n.blank&&n.filter.push(""),n.filter.forEach(function(e){l.push(C(2,0,e,n.blank))}),n.dateGroupItem.forEach(function(e){var t=new Date(e.year,e.month>0?e.month-1:e.month,e.day,e.hour,e.minute,e.second);l.push(C(5,0,t,!n.blank))}),s=!0),e.customFilters&&(l.push(T(e.customFilters,o.J(t)?i:u.Lg(t,i,a,1))),s=!0),e.dynamicFilter&&(l.push(k(e.dynamicFilter,i,a)),s=!0),e.top10Filter&&(l.push(R(e.top10Filter)),s=!0),s&&(r.filteredColumns.push(a),r.filterItemMap.push({index:a,conditions:l}))}),a=e.sortInfo,a&&a.dxfId===h?r.sortInfo=a:a&&a.dxfId!==h&&(l=void 0,s=e.sortInfo.isBackColor,c=u.hf[a.dxfId]&&u.hf[a.dxfId].fill,c&&(0===c.patternType?l="":(d={},n.ConverterHelper.Ie(c,d),l="object"==typeof d.backColor?JSON.stringify(d.backColor):d.backColor)),r.sortInfo={ascending:a.ascending,index:a.index,isBackColor:s,color:l}),r},e.prototype.Ng=function(e,t){if(!o.J(e)){var r={};return r.filterItemMap=[],e.filterColumns.forEach(function(e){var o=[],i=e.filters;i&&(i.filter.forEach(function(e){o.push(C(t.conType,0,e,i.blank))}),i.dateGroupItem.forEach(function(e){var r=new Date(e.year,e.month>0?e.month-1:e.month,e.day,e.hour,e.minute,e.second);o.push(C(t.conType,0,r,!i.blank))})),e.customFilters&&o.push(v(e.customFilters,t)),e.dynamicFilter&&o.push(F(e.dynamicFilter,t)),e.top10Filter&&o.push(E(e.top10Filter,t)),r.filterItemMap.push({conditions:o})}),r}},e.prototype.Og=function(e,t){if(!o.J(e)){var r=this,i=r.Ne,n=i.sheets&&i.sheets[e];n.rowFilter=r.Mg(t,e),i.allowAutoExtendFilterRange=!0}},e.prototype.Pg=function(e,t){var r,o,i,n,l,s=this,c=s.Ne,d=c.sheets&&c.sheets[t];d.slicers=d.slicers||[],r=d.slicers,o=[];for(i in c.sheets)c.sheets[i].tables&&(o=o.concat(c.sheets[i].tables));n=[];for(l in c.sheets)c.sheets[l].pivotTables&&(n=n.concat(c.sheets[l].pivotTables));e.forEach(function(e){"pivot"===e.type||"timeline"===e.type?e.pivotName=P(e.pivotCacheId,n,c.pivotCaches):(e.tableName=D(e.tableId,o),e.columnName=B(e.tableId,e.columnId,o),delete e.tableId,delete e.columnId),a.inflateWorksheetByAnchor(d,e),r.push(e)})},e.prototype.Qg=function(e,t){var r,i,n,a,l;o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],a=r.Rg(t),l=n.validations,l||(l=n.validations=[]),a.ranges=W(t.ranges,", "),l.push(a))},e.prototype.Rg=function(e){var t,r,i,n,a,l,s,c;if(o.J(e))return b;switch(t=e.type,r=e.compareOperator,i=e.firstFormula,n=e.secondFormula,a={type:t},t){case 0:break;case 1:case 2:case 6:l={operator:r,value1:I(i),value2:I(n)};break;case 3:s=i,o.J(s)&&(s=n),s&&(l='"'===s[0]&&'"'===s[s.length-1]?{value:L(s)}:{formula:I(s)});break;case 4:case 5:c=void 0,o.J(i)||(c=parseFloat(i),isNaN(c)||(i=this.hg(c))),o.J(n)||(c=parseFloat(n),isNaN(c)||(n=this.hg(c))),l={operator:r,value1:i&&i.indexOf("/OADate(")!==-1?i:I(i),value2:n&&n.indexOf("/OADate(")!==-1?n:I(n)};break;case 7:l={formula:I(i)}}return l&&(a.validatorInfo=l),a!==b&&(a.errorStyle=e.errorType,a.errorMessage=e.error,a.errorTitle=e.errorTitle,a.ignoreBlank=e.allowBlank,a.inCellDropdown=e.showPromptBox,a.inputMessage=e.prompt,a.inputTitle=e.promptTitle,a.showErrorMessage=e.showErrorMessage,a.showInputMessage=e.showInputMessage),a},e.prototype.Sg=function(e,t){var r,i,n,a;function l(e){return e=e||0,parseInt(Math.round(100*e),10)}o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,a.margin={top:l(t.top),bottom:l(t.bottom),left:l(t.left),right:l(t.right),header:l(t.header),footer:l(t.footer)})},e.prototype.Tg=function(e,t){var r,i,n,a,l,s,c,d;o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,a.showGridLine=t.printGridLine,l=t.horizontalCentered,s=t.verticalCentered,c=0,l&&s?c=3:l?c=1:s&&(c=2),a.centering=c,d=t.printRowColumnsHeaders?2:1,a.showColumnHeader=d,a.showRowHeader=d)},e.prototype.Ug=function(e,t,r){e.rows||(e.rows=[]);var o=e.rows[t];o?o.pageBreak=r:e.rows[t]={pageBreak:r}},e.prototype.Vg=function(e,t,r){e.columns||(e.columns=[]);var o=e.columns[t];o?o.pageBreak=r:e.columns[t]={pageBreak:r}},e.prototype.Wg=function(e,t){var r,i,n,a,l,s,c,d,u,f,p,m,g,y,S;function C(e){var t,r,o,i,n;if(e===h)return b;if(t=["","",""],e===b||""===e)return t;for(r=0,o=1,i=e.length;r<i;){if(r<i-1){if(n=e.substr(r,2),"&L"===n){o=0,r+=2;continue}if("&C"===n){o=1,r+=2;continue}if("&R"===n){o=2,r+=2;continue}}t[o]=t[o].concat(e[r]),r++}return t}o.J(e)||(r=this,i=r.Ne,n=i.sheets&&i.sheets[e],n.printInfo||(n.printInfo={}),a=n.printInfo,l=t.paperSizeIndex,0!==l&&(a.paperSize={kind:l}),t.useCustomStartingPage&&(a.firstPageNumber=t.firstPageNumber),o.J(t.showColor)||(a.blackAndWhite=!t.showColor),a.orientation=2===t.orientation?2:1,a.pageOrder=2===t.pageOrder?2:1,t.zoomFactor>0&&(a.zoomFactor=t.zoomFactor),t.useSmartPrint&&(t.smartPrintPagesWidth>=1&&(a.fitPagesWide=t.smartPrintPagesWidth),t.smartPrintPagesHeight>=1&&(a.fitPagesTall=t.smartPrintPagesHeight)),s=t.advancedHeadFooterSetting,s&&(c=a.pageHeaderFooter={},a.differentOddAndEvenPages=s.headerFooterDifferentOddEvenPages,a.differentFirstPage=s.headerFooterDifferentFirstPage,d=C(s.headerOddPage),d&&(s.headerFooterDifferentOddEvenPages?c.odd={header:{left:d[0],center:d[1],right:d[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}}:c.normal={header:{left:d[0],center:d[1],right:d[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}},a.headerLeft=d[0],a.headerCenter=d[1],a.headerRight=d[2]),u=C(s.footerOddPage),u&&(s.headerFooterDifferentOddEvenPages?(c.odd=c.odd||{},c.odd.footer={left:u[0],center:u[1],right:u[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}):(c.normal=c.normal||{},c.normal.footer={left:u[0],center:u[1],right:u[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}),a.footerLeft=u[0],a.footerCenter=u[1],a.footerRight=u[2]),f=C(s.headerEvenPage),f&&(c.even={header:{left:f[0],center:f[1],right:f[2],leftImage:s.evenHeaderLeftImage,centerImage:s.evenHeaderCenterImage,rightImage:s.evenHeaderRightImage}}),p=C(s.footerEvenPage),p&&(c.even=c.even||{},c.even.footer={left:p[0],center:p[1],right:p[2],leftImage:s.evenFooterLeftImage,centerImage:s.evenFooterCenterImage,rightImage:s.evenFooterRightImage}),m=C(s.headerFirstPage),m&&(c.first={header:{left:m[0],center:m[1],right:m[2],leftImage:s.firstHeaderLeftImage,centerImage:s.firstHeaderCenterImage,rightImage:s.firstHeaderRightImage}}),g=C(s.footerFirstPage),g&&(c.first=c.first||{},c.first.footer={left:g[0],center:g[1],right:g[2],leftImage:s.firstFooterLeftImage,centerImage:s.firstFooterCenterImage,rightImage:s.firstFooterRightImage}),s.headerLeftImage&&(a.headerLeftImage=s.headerLeftImage),s.headerCenterImage&&(a.headerCenterImage=s.headerCenterImage),s.headerRightImage&&(a.headerRightImage=s.headerRightImage),s.footerLeftImage&&(a.footerLeftImage=s.footerLeftImage),s.footerCenterImage&&(a.footerCenterImage=s.footerCenterImage),s.footerRightImage&&(a.footerRightImage=s.footerRightImage)),y=t.rowBreakLines,y&&y.length>0&&y.forEach(function(e){r.Ug(n,e,!0)}),S=t.columnBreakLines,S&&S.length>0&&S.forEach(function(e){r.Vg(n,e,!0)}))},e.prototype.Xg=function(e,t){var r,o,i,n;e<0||(r=this,o=r.Yg(e),o.printInfo||(o.printInfo={}),i=s.getRangesFromString(t),1===i.length&&(n=i[0],n&&(n.row>-1&&(o.printInfo.rowStart=n.row),n.rowCount>0&&(o.printInfo.rowEnd=n.row+n.rowCount-1),n.col>-1&&(o.printInfo.columnStart=n.col),n.colCount>0&&(o.printInfo.columnEnd=n.col+n.colCount-1))))},e.prototype.Zg=function(e,t){var r,i,n,a,l;if(!(e<0))for(r=this,i=r.Yg(e),i.printInfo||(i.printInfo={}),n=s.getRangesFromString(t.replace(","," ")),a=0;a<n.length;a++)l=n[a],l&&(o.isRangeWholeRow(l)?(i.printInfo.repeatRowStart=l.row,i.printInfo.repeatRowEnd=l.row+l.rowCount-1):o.isRangeWholeColumn(l)&&(i.printInfo.repeatColumnStart=l.col,i.printInfo.repeatColumnEnd=l.col+l.colCount-1))},e.prototype.Yg=function(e){var t,r,o=this.Ne.sheets;for(t in o)if(o.hasOwnProperty(t)&&(r=o[t],r.index===e))return r;return h},e.prototype.$g=function(e){this._g=e,this.ah={},this.bh={}},e.prototype.dh=function(e,t){var r,o,i,n,a,l,s,c,d,u,b,h,p,m,g=this._g,y=+t-1;if(g&&("cm"===e?(r=g.cellMetadata,o=this.ah):"vm"===e&&(r=g.valueMetadata,o=this.bh)),r){if(i=[e,y].join(","),n=o[i])return n;if(a=U(r,y)){l=a.rc,s=l._attr,c=+s.t-1,d=+s.v;try{if(u=f(g.metadataTypes.metadataType),b=f(g.futureMetadata),h=u[c],p=h&&h._attr.name,m=G(b,p))return n={name:p,detail:U(m,d)},o[i]=n,n}catch(e){}}}},e.prototype.eh=function(e){var t=this.dh("cm",e);return t&&"XLDAPR"===t.name},e.prototype.fh=function(e,t){var r=this;o.J(r.Ne.docProps)&&(r.Ne.docProps={}),o.J(r.Ne.docProps.docPropsCore)&&(r.Ne.docProps.docPropsCore={}),r.Ne.docProps.docPropsCore[e]=t},e.prototype.gh=function(e,t){var r=this;o.J(r.Ne.docProps)&&(r.Ne.docProps={}),o.J(r.Ne.docProps.docPropsApp)&&(r.Ne.docProps.docPropsApp={}),r.Ne.docProps.docPropsApp[e]=t},e.prototype.hh=function(e){var t=this;o.J(t.Ne.docProps)&&(t.Ne.docProps={}),o.J(t.Ne.docProps.docPropsCustom)&&(t.Ne.docProps.docPropsCustom=[]),t.Ne.docProps.docPropsCustom=e},e}(),t.ReaderDataModel=y},"./src/datamodel/datamodel-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/common/excel-types.ts"),l=r("./src/datamodel/excel-helper.ts"),s=r("./src/common/tuple.ts"),c=r("./src/datamodel/datetime-helper.ts"),d=r("./src/excel-io.ts"),u=n.ColorHelper.fromColorToExcelColor,f=n.ColorHelper.toExcelColor,b=o.Util.sa,h=o.Util.ta,p=void 0,m=null,g="__builtInStyle",y="__builtInValidatorStyle",S="__builtInTableStyle",C=/^(__builtInTableStyle\d+)?__builtInStyle\d+$/,w=/^__builtInTableStyle\d+__builtInStyle\d+$/;function T(e){return"string"==typeof e}function v(e){return"string"==typeof e||!e}function k(e){return"object"==typeof e}function F(e){return e.substring(0,19)===S}function R(e){return e.substring(0,23)===y}function E(e){var t=e.formula;return o.J(t)&&(t=e.expected,T(t)&&(t='"'+t+'"')),t}function I(e){var t,r,o;return T(e)&&(t=e.indexOf("/OADate(")+1,r=e.indexOf(")"),0!==t&&r>t&&(o=parseFloat(e.substring(t+7,r)),isNaN(o)||(e=""+o))),e}function L(e,t,r){var o,i=e.tables||[];return i.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(o=e,!1)}),o}function D(e,t,r){var o,i=e.spans||[];return i.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(o=e,!1)}),o}function B(e,t){var r,o=e.spans||[];for(r=0;r<o.length;r++)if(t.row===o[r].row&&t.col===o[r].col){o.splice(r,1);break}}function P(e){if("/OADate("===e.substr(0,8)){var t=parseFloat(e.substr(8,e.length-10));return c.DateTimeHelper.Je(t)}}function W(e,t,r){e.ih||(e.ih={}),e.ih[t]=r}function _(e){return e.defaults?e.defaults.rowHeight:i.DefaultSize.Ab}function N(e){return e.defaults?e.defaults.colWidth:i.DefaultSize.zb}function M(e,t,r){var o=e.data.dataTable[t];if(o&&o[r])return o[r].value}function O(e,t,r){void 0===r&&(r=0);var i=t.row,n=t.col,a=t.rowCount,l=t.colCount;return i===-1&&(i=r,a=e.rowCount),n===-1&&(n=0,l=e.columnCount),i<=0?i=0:(i--,a+=1),new o.Range(i,n,a,l)}t.getFilterRange=O;function H(e){return o.J(e)?e:e.length>=2&&"="===e[0]?e.substring(1):"="===e?"":e}function G(e,t,r,i){var n,a,l;if(1===r.colCount){for(n=[],l=r.row;l<r.row+r.rowCount;l++)a=M(e,l,r.col),o.J(a)||n.push(a);return n.sort(function(e,t){return i?t-e:e-t}),n[t-1]}}function U(e,t,r){var i,n={filterType:1};if(n.isBottom=1===t.type,t.percent&&(n.percent=!0),i=t.expected,!o.J(i))return n.value=i,n.percent&&(i=Math.ceil(r.rowCount%i/100)),o.J(r)?n.filterValue=NaN:n.filterValue=G(e,i,r,!n.isBottom),n}function J(e){var t,r={filterType:1};return r.isBottom=e.type===-1,r.percent=1===e.compareType,t=e.expected,o.J(t)||(r.value=t,r.filterValue=t),r}function z(e,t,r){var o,i,n,a,l={filterType:2};if(0===t.type?l.type=100:1===t.type&&(l.type=101),r===m)return m;for(o=0,i=0,n=0;n<r.rowCount;n++)a=parseFloat(M(e,r.row+n,r.col)),isNaN(a)||(o+=a,i++);return i>0&&(l.value=o/i),l}function V(e){var t=new Date,r=t.getDay(),o=t.getDate(),i=new Date(t),n=new Date(t);switch(e){case 3:i.setDate(o-6);break;case 1:i.setDate(o-1);break;case 0:break;case 2:i.setDate(o+1);break;case 8:i.setDate(o-r-7),n.setDate(o-r-1);break;case 7:i.setDate(o-r),n.setDate(o-r+6);break;case 9:i.setDate(o-r+7),n.setDate(o-r+13);break;case 5:i.setDate(1),i.setMonth(i.getMonth()-1),n.setDate(0);break;case 4:i.setDate(1),n.setMonth(n.getMonth()+1),n.setDate(0);break;case 6:i.setDate(1),i.setMonth(i.getMonth()+1),n.setMonth(n.getMonth()+2),n.setDate(0)}return i.setHours(0),i.setMinutes(0),i.setSeconds(0),n.setHours(23),n.setMinutes(59),n.setSeconds(59),{from:i,to:n}}function j(e){var t,r,o,i,n,a,l=new Date,s=l.getDay(),d=l.getDate(),u=new Date(l),f=new Date(l);switch(e){case 11:u.setDate(d-6);break;case 9:u.setDate(d-1);break;case 8:break;case 10:u.setDate(d+1);break;case 16:u.setDate(d-s-7),f.setDate(d-s-1);break;case 15:u.setDate(d-s),f.setDate(d-s+6);break;case 17:u.setDate(d-s+7),f.setDate(d-s+13);break;case 13:u.setDate(1),u.setMonth(u.getMonth()-1),f.setDate(0);break;case 12:u.setDate(1),f.setMonth(f.getMonth()+1),f.setDate(0);break;case 14:u.setDate(1),u.setMonth(u.getMonth()+1),f.setMonth(f.getMonth()+2),f.setDate(0);break;case 18:t=u.getMonth()-u.getMonth()%3+1+3,r=t+3+3,u.setDate(1),u.setMonth(t),f.setMonth(r),f.setDate(0);break;case 19:o=u.getMonth()-u.getMonth()%3+1,i=o+3,u.setDate(1),u.setMonth(o),f.setMonth(i),f.setDate(0);break;case 20:n=u.getMonth()-u.getMonth()%3+1-3,a=o+3-3,u.setDate(1),u.setMonth(n),f.setMonth(a),f.setDate(0);break;case 21:u.setDate(1),u.setMonth(1),u.setFullYear(u.getFullYear()+1),f.setFullYear(f.getFullYear()+2),f.setMonth(0),f.setDate(0);break;case 22:u.setDate(1),u.setMonth(1),f.setFullYear(f.getFullYear()+1),f.setMonth(0),f.setDate(0);break;case 23:u.setDate(1),u.setMonth(1),u.setMonth(u.getFullYear()-1),f.setMonth(0),f.setDate(0);break;case 40:u.setMonth(0,1),u.setHours(0,0,0,0),f.setHours(23,59,59,999)}return u.setHours(0),u.setMinutes(0),u.setSeconds(0),f.setHours(23),f.setMinutes(59),f.setSeconds(59),{from:c.DateTimeHelper.ig(u),to:c.DateTimeHelper.ig(f)}}function X(e){var t,r=e.expected,o={filterType:2,type:r,conType:e.conType,expectTypeId:e.expectTypeId};return r>=0&&r<=15||r>=21&&r<=32?(t=V(r),t.from&&t.to&&(o.value=t.from,o.maxValue=t.to)):o.type=-1,o}function K(e){if(!o.J(e.compareType)){var t={filterType:4};return t.filter1={},t.filter1.operator=e.compareType,o.J(e.expected)?t.filter1.value=H(e.formula):t.filter1.value=e.expected,t}}function q(e){var t,r,i,n;if(!o.J(e.compareType))return t={filterType:4},t.filter1={},r=e.compareType,i=void 0,n=void 0,6===r?(i=5,n=3,t.and=!0):(i=r,n=r),t.filter1.operator=i,e.item1&&!o.J(e.item1.expected)&&(t.filter1.value=e.item1.expected),e.item2&&!o.J(e.item2.expected)&&(t.filter2={},t.filter2.operator=n,t.filter2.value=e.item2.expected),t}function Y(e){var t=e.expected,r=-1;switch(e.compareType){case 0:return{filterType:3,filter:[t]};case 1:r=1;break;case 2:t+="*";break;case 3:r=1,t+="*";break;case 4:t="*"+t;break;case 5:r=1,t="*"+t;break;case 6:t="*"+t+"*";break;case 7:r=1,t="*"+t+"*"}return{filterType:4,filter1:{operator:r,value:t}}}function Q(e){var t,r,i;if(o.J(e.value1)?o.J(e.item1)||(t=e.item1.expected):t=e.value1,o.J(e.value2)?o.J(e.item2)||(r=e.item2.expected):r=e.value2,!r){switch(i=-1,e.compareType){case 0:return{filterType:3,filter:[t]};case 1:i=1;break;case 2:t+="*";break;case 3:i=1,t+="*";break;case 4:t="*"+t;break;case 5:i=1,t="*"+t;break;case 6:t="*"+t+"*";break;case 7:i=1,t="*"+t+"*";break;case 8:i=2;break;case 9:i=5;break;case 10:i=4;break;case 11:i=3}return{filterType:4,filter1:{operator:i,value:t}}}return 12===e.compareType?{filterType:4,filter1:{operator:3,value:t},filter2:{operator:5,value:r}}:13===e.compareType?{filterType:4,filter1:{operator:4,value:t},filter2:{operator:2,value:r}}:void 0}function Z(e,t){var r;r="/OADate"===e.expected.substring(0,7)?P(e.expected):new Date(e.expected),t.dateGroupItem=t.dateGroupItem||[],t.dateGroupItem.push({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:r.getHours(),minute:r.getMinutes(),second:r.getSeconds(),dateTimeGrouping:2})}function $(e,t){var r,i,n,a=o.J(e.compareType)?e.operator:e.compareType;if(a>=8&&a<=23||40===a)r={filterType:2,type:t},i=j(a),i.from&&i.to&&(r.value=i.from,r.maxValue=i.to);else if(a>=24&&a<=39)r={filterType:2,type:t};else if(a>=0&&a<=7)return n=q(e),e.isWholeDay&&(n.isWholeDay=e.isWholeDay),n;return r}t.getPivotDateFilter=$;function ee(e){var t,r,o;if(0===e.compareType)return t={filterType:3},Z(e,t),t;switch(r=-1,e.compareType){case 0:break;case 1:r=1;break;case 2:r=4;break;case 3:r=5;break;case 4:r=2;break;case 5:r=3}return r!==-1?(o=E(e),o=I(o),{filterType:4,filter1:{operator:r,value:o}}):void 0}function te(e){var t,r,i=[],n=[];for(n.push(e);n.length>0;)t=n.shift(),0===t.conType?(r=t,o.J(r.item1)||n.push(r.item1),o.J(r.item2)||n.push(r.item2)):i.push(t);return i}function re(e){var t=-1;switch(e){case 0:case 2:case 4:case 6:t=0;break;case 1:case 3:case 5:case 7:t=1;break;default:t=0}return t}function oe(e,t){switch(t){case 0:case 1:return e;case 2:case 3:return e.concat("*");case 4:case 5:return"*".concat(e);case 6:case 7:return"*".concat(e).concat("*");default:return e}}function ie(e){var t={filterType:3,filter:[]};return e.forEach(function(e){o.J(e.expected)||t.filter.push(e.expected)}),t}function ne(e,t){return e.every(function(e){return e.conType===t})}function ae(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g;if(0===e.compareType){if(i=te(e),ne(i,5))return n={filterType:3},i.forEach(function(e){Z(e,n)}),n;if(ne(i,2)){if(s=!1,i.length<=2)for(c=0;c<i.length;c++)if(0!==i[c].compareType){s=!0;break}return s?(l={filterType:4},d=i[0],a=re(d.compareType),l.filter1={},l.filter1.operator=a,o.J(d.expected)?l.filter1.value=H(d.formula):l.filter1.value=oe(d.expected,d.compareType),2===i.length&&(d=i[1],a=re(d.compareType),l.filter2={},l.filter2.operator=a,o.J(d.expected)?l.filter2.value=H(d.formula):l.filter2.value=oe(d.expected,d.compareType)),l.and=!1,l):ie(i)}if(ne(i,11)){if(u=!0,i.length<=2&&(u=!1),u)return ie(i);if(i.length>0)return f=i[0],l={filterType:4,filter1:{operator:f.compareType}},o.J(f.expected)?l.filter1.value=H(f.formula):l.filter1.value=f.expected,2===i.length&&(f=i[1],l.filter2={operator:f.compareType},o.J(f.expected)?l.filter2.value=H(f.formula):l.filter2.value=f.expected),l.and=!1,l}return l={filterType:4,and:!1},b=le(t,i[0],r),l.filter1=b.filter1,i.length>1&&(h=le(t,i[1],r),l.filter2=h.filter1),l}if(i=te(e),2===i.length)return l={filterType:4},l.and=!0,p=le(t,i[0],r),o.J(p)||!p.filter1?m:(l.filter1=p.filter1,g=le(t,i[1],r),o.J(g)||!g.filter1?m:(l.filter2=g.filter1,l))}function le(e,t,r){if(e===m)return m;var o=t.conType;if(3===o);else{if(8===o)return U(e,t,r);if(10===o)return z(e,t,r);if(6===o)return X(t);if(11===o||1===o)return K(t);if(2===o)return Y(t);if(5===o)return ee(t);if(0===o)return ae(t,e,r)}}function se(e,t){var r=e.conType;return 3===r?J(e):2===r?q(e):0===r?Q(e):1===r?$(e,t):void 0}function ce(e){var t,r,i;return o.J(e)?m:(t=m,r=m,i=0,i=1===e.compareType?6:7,e.item1&&(t=0===e.item1.conType?ce(e.item1):de(e.item1)),e.item2&&(r=0===e.item2.conType?ce(e.item2):de(e.item2)),new s.Tuple(t,r,i))}function de(e){if(!o.J(e)){var t=e.conType,r,i;return 0===t?ce(e):1===t||7===t?(r=e.compareType,i=e.formula,o.J(i)&&(i=e.expected),new s.Tuple(i,m,r)):4===t?new s.Tuple(o.J(e.formula)?e.expected:e.formula,m,1):12===t||5===t||13===t?(i=E(e),new s.Tuple(i,m,1)):m}}function ue(e){if(e instanceof s.Tuple){var t=e;if(!o.J(t.item1))return ue(t.item1)}else if(!o.J(e))return H(""+e);return""}function fe(e,t,r){var i,n,a,l,s;return o.J(e)?m:(i=de(e.condition),n=m,a=m,o.J(i)||(o.J(i.item1)||(n=ue(i.item1)),o.J(i.item2)||(a=ue(i.item2))),l={},(h(n,t,r)||h(a,t,r))&&(l.external=!0),s=e.type,l.type=s,l.firstFormula=n,l.secondFormula=a,4!==s&&5!==s||(o.J(l.firstFormula)||(l.firstFormula=I(l.firstFormula)),o.J(l.secondFormula)||(l.secondFormula=I(l.secondFormula))),l.compareOperator=e.comparisonOperator,l.allowBlank=e.ignoreBlank,l.error=e.errorMessage,l.errorTitle=e.errorTitle,l.errorStyle=e.errorStyle,l.prompt=e.inputMessage,l.showPromptBox=e.inCellDropdown,l.promptTitle=e.inputTitle,l.showErrorBox=e.showErrorMessage,l.showInputMessage=e.showInputMessage,l)}function be(e,t,r){if(r.ih&&r.ih[e])return r.ih[e];var i=o.ga._(r.namedStyles,e);return i?(W(r,e,i),i):t.ih&&t.ih[e]?t.ih[e]:(i=o.ga._(t.namedStyles,e),i&&W(t,e,i),i)}function he(e,t,r,o){e.forEach(function(e){var i=fe(e,r,o);i.ranges=e.ranges.split(", ").join(" "),t.push(i)})}x={empty:0,thin:1,medium:2,dashed:3,dotted:4,thick:5,double:6,hair:7,mediumDashed:8,dashDot:9,mediumDashDot:10,dashDotDot:11,mediumDashDotDot:12,slantedDashDot:13};function pe(e){if(e){var t={};return e.borderColor&&(t.color=e.borderColor),e.borderStyle&&(t.style=x[e.borderStyle]),t}}function me(e,t){var r,o;if(e){for(r in e)e.hasOwnProperty(r)&&r.indexOf("border")>=0&&(o=e[r],o&&(e[r]=pe(o)));return t&&(e.isSlicerHeader=!0),e}}function ge(e){var t,r,i=e.sheets;if(i)for(t in i)i.hasOwnProperty(t)&&(r=i[t],r.defaults=r.defaults||o.Ea())}function ye(e){var t,r;if(o.J(e)||!Array.isArray(e))return m;for(t=[],r=0;r<e.length;r++)t.push(e[r].text?e[r].text:"");return t.join("")}function Se(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function Ce(e,t,r){for(var o=0;o<e.styleElements.length;o++)e.styleElements[o].type===t&&(e.styleElements[o].size=r)}function we(e,t){return b(e,t,l.isBorderEqual)}function xe(e,t){return e[t.name]&&b(e[t.name],t,we)}function Ae(e,t){for(var r=t,o=1;e[r];)r=t+"_"+o,o++;return r}function Te(e,t){var r=t;return null!==e&&void 0!==e&&(r=e),(r/100).toFixed(2)}function ve(e){var t,r=e.names;if(r)for(t=0;t<r.length;t++)if("@"===r[t].name){r.splice(t,1);break}}function ke(e){var t,r,o,i,n,a=e.jh;if(a&&a.dataSourceOption&&a.dataSourceOption.schema&&a.dataSourceOption.schema.hierarchy)for(t=a.dataSourceOption.schema.hierarchy,r=a.views.filter(function(t){return t.name===e.addition.dataView.name})[0],o=r.columns,i=0;i<o.length;i++)if(n=o[i],n.outlineColumn||n.value===t.outlineColumn||t.outlineColumn&&n.value===t.outlineColumn.value)return!0}function Fe(e){var t,r,i,n,a,l,s,c,d,u,f,b,h=e.colHeaderRowCount||1;if(e.rowCount+=h,t=e.data,ke(e)){for(r=0;r<h;r++)e.rowOutlines.items.unshift(p);for(i=e.rowOutlines.itemsData,r=0;r<i.length;r++)n=i[r],n.index+=h}for(a=t.dataTable,a||(a=t.dataTable={}),l=e.rowCount-h;l>=0;l--)a[l+h]=a[l];for(s=e.colHeaderData.dataTable,l=0;l<h;l++)a[l]=s&&s[l]||{};if(c=e.colHeaderRowInfos,d=e.defaults&&e.defaults.colHeaderRowHeight,!o.J(d))for(c||(c=[]),l=0;l<h;l++)c[l]?o.J(c[l].size)&&(c[l].size=d):c[l]={size:d};if(c&&c.length>0)for(u=e.rows,u||(e.rows=[]),l=0;l<c.length;l++)e.rows.splice(l,0,c[l]);for(f=t.rowDataArray,f||(f=t.rowDataArray={}),l=e.rowCount-h;l>=0;l--)f[l+h]=f[l];for(b=e.colHeaderData.rowDataArray,l=0;l<h;l++)f[l]=b&&b[l]||{};e.frozenRowCount>0&&(e.frozenRowCount+=h,e.topCellIndex+=h)}function Re(e){var t,r,o,i,n,a=e.colHeaderRowCount||1,l=[],s=e.data,c=s.dataTable,d=c[a-1];if(e.columnCount=e.columnCount||e.columns&&e.columns.length||0,0!==e.rowCount&&0!==e.columnCount){if(d)for(t=0;t<e.columnCount;t++)r={id:t+1},o=d[t],r.name=o&&o.value||"Column"+(t+1),l.push(r);for(i={},t=l.length-1;t>=0;t--)n=l[t],i[n.name]?n.name=n.name+" "+t:i[n.name]=!0;e.tables=[{name:e.name,row:a-1,col:0,rowCount:e.rowCount,colCount:e.columnCount,rowFilter:{range:{row:a,col:0,rowCount:e.rowCount-1,colCount:e.columnCount},showFilterButton:!0},columns:l}]}}function Ee(e,t){var r=e;return r.length>255?r=r.slice(-240):(r=t+" "+r,r.length>250&&(r=e+" "+Math.random().toString(36).slice(-6))),r}function Ie(e){Fe(e),delete e.rowFilter,Re(e)}function Le(e,t){var r,i,a,l,s;o.J(e.numberFormat)||(r=e.numberFormat,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.numberFormatId=i.numberFormat.numberFormatId),t.push(i))}function De(e,t){var r={name:e};return l.getPictureInfo(t,r),r}function Be(e,t,r){var i=m,n=p,a=!1;return o.J(e)||(k(e)?Array.isArray(e)?i=e.join(","):(n=e.richText,n?i=ye(n):o.J(e._code)||(i=e),a=e._code>=99,a&&r<3&&(r=t?2:3)):(i=e,t&&r<1&&(r=1))),{value:i,richText:n,isSpillError:a,dynamicArrayLevel:r}}function Pe(e){return e&&"'"===e[0]&&"'"===e[e.length-1]&&(e=e.substring(1,e.length-1)),e}A=function(){function e(e){var t=this;t.kh(e),t.Ne=e,t.lh={},t.mh=[],t.nh={},t.oh=[],t.ph={},t.qh=[],t.rh={},t.sh={},t.af=[],t.th=[],t.uh={},t.vh={},t.wh={},t.xh={},t.yh={},t.Ah={},t.Bh={},t.hf=[],t.Ch=[],t.Dh=[],t.Eh=e.allowDynamicArray?1:0,t.Fh={},t.Gh={},t.Hh={},t.Ih=[]}return e.prototype.kh=function(e){var t,r,o,i,n,a,l,s,c,d=e.sheetCount||0;if(e.sheetCount=d+(e.sheetTabCount||0),t=e.activeSheetIndex,r=e.activeSheetTabIndex,(void 0===t||t<0)&&void 0!==r&&r>=0&&(e.activeSheetIndex=d+r),o=e.sheetTabs){i=function(t){if(o.hasOwnProperty(t)){var r=o[t];e.dataManager&&e.dataManager.tables&&r.addition&&r.addition.dataView&&r.addition.dataView.tableName&&(r.jh=e.dataManager.tables.filter(function(e){return e.name===r.addition.dataView.tableName})[0]),Ie(r),ve(r)}};for(n in o)i(n);if(a=e.sheets){for(l in o)o.hasOwnProperty(l)&&(a[l]=o[l]);for(s in a)a.hasOwnProperty(s)&&(c=a[s],"number"==typeof c.order&&(c.index=c.order))}else e.sheets=o}void 0===e.startSheetIndex&&(e.startSheetIndex=0)},e.prototype.$e=function(){var e=n.DefaultStyle.Jh(this.Ne);this.lh.Normal=0,this.af.push(e),this.th.push(e),this.vh[e.name]=this.af.length-1},e.prototype.Kh=function(e){var t=e.index;this.uh[t]||(this.uh[t]={}),this.wh[t]||(this.wh[t]={}),this.xh[t]||(this.xh[t]={}),this.yh[t]||(this.yh[t]={}),this.Ah[t]||(this.Ah[t]={})},e.prototype.Lh=function(e,t){var r,i,n,l,s,c,d,u;if(!e||!t)return!1;if(r=!0,!o.StringEx.L(t.fileName)&&(i=this.Mh(t.fileType),!o.StringEx.L(i))){for(n=new a.OverrideContentType,n.partName=t.fileName,n.contentType=i,l=!1,s=0,c=e.length;s<c;s++)if(d=e[s],d instanceof a.OverrideContentType&&d.contentType===n.contentType&&d.partName===n.partName){l=!0;break}l||e.push(n)}if(t.relationFiles&&t.relationFiles.count>0)for(u in t.relationFiles)t.relationFiles.hasOwnProperty(u)&&"count"!==u&&(r=r&&this.Lh(e,t.relationFiles[u]));return r},e.prototype.Mh=function(e){if(o.StringEx.L(e))return"";switch(e){case i.RelationshipConstants.Sa:return i.XFileConstants.Ib;case i.RelationshipConstants.Pa:return i.XFileConstants.Jb;case i.RelationshipConstants.Ua:return i.XFileConstants.Kb;case i.RelationshipConstants.Na:return i.XFileConstants.Lb;case i.RelationshipConstants.Ra:return i.XFileConstants.Mb;case i.RelationshipConstants.Za:return i.XFileConstants.Ob;case i.RelationshipConstants.$a:return i.XFileConstants.Pb;case i.RelationshipConstants._a:return i.XFileConstants._b;case i.RelationshipConstants.eb:return i.XFileConstants.Qb;case i.RelationshipConstants.jb:return i.XFileConstants.fc;case i.RelationshipConstants.kb:return i.XFileConstants.gc;case i.RelationshipConstants.lb:return i.XFileConstants.Rb;case i.RelationshipConstants.mb:return i.XFileConstants.Sb;case i.RelationshipConstants.pb:return i.XFileConstants.Ub;case i.RelationshipConstants.qb:return i.XFileConstants.Tb;case i.RelationshipConstants.ob:return i.XFileConstants.Vb;case i.RelationshipConstants.sb:return i.XFileConstants.fe;case i.RelationshipConstants.Ka:return i.XFileConstants.se;case i.RelationshipConstants.La:return i.XFileConstants.ve;case i.RelationshipConstants.Ma:return i.XFileConstants.ye;case i.RelationshipConstants.Wa:return i.XFileConstants.cc;case i.RelationshipConstants.Xa:return i.XFileConstants.dc;case i.RelationshipConstants.Ya:return i.XFileConstants.ec;case i.RelationshipConstants.bb:return i.XFileConstants.lc;case i.RelationshipConstants.ub:return i.XFileConstants.ic;case i.RelationshipConstants.tb:return i.XFileConstants.hc;default:return""}},e.prototype.Nh=function(e,t,r,o,i){var n,a,s,c,d,u,f,b,h,p,m,y,C,w=this,x=w.Ne,A=x.namedStyles;for(n=0;n<e.length;n++)if(a=e[n])for(s=a.row,c=a.col,d=a.rowCount,u=a.colCount,f=0;f<d;f++)if(b=t[s+f])for(h=0;h<u;h++)if(p=b[c+h],p&&p.style){if("string"==typeof p.style){if(i[p.style]){p.style=i[p.style];continue}p.style=r[p.style]}p.style&&(p.style=l.resetTableCellStyle(p.style,o),p.style.name&&(m=p.style.name,y=m.indexOf(g),w.Oh++,C=S+w.Oh+m.substring(y),p.style.name=C,A.push(p.style),p.style=C,i[m]=C))}},e.prototype.Ph=function(){var e,t,r=this,o=r.Ne;r.$e(),r.Qh();for(e in o.sheets)if(o.sheets.hasOwnProperty(e)){if(t=o.sheets[e],!t)continue;r.Rh(t),r.Kh(t),r.Sh(t),r.Th(t),r.Uh(t),r.Vh(t),r.Wh(t)}ge(r.Ne)},e.prototype.Xh=function(){var e=this;e.onCompleted&&e.onCompleted()},e.prototype.Wh=function(e){var t,r,o=e.conditionalFormats&&e.conditionalFormats.rules;if(o)for(t=0;t<o.length;t++)r=o[t],r.style&&(r.style.isPartFontStyle=!0,r.style.isFormatStyle=!0,r.dxfId=this.Yh(r.style));e.Zh=this.$h(e),this._h(e),this.ai(e),this.bi(e),this.ci(e)},e.prototype.Yh=function(e){var t=this,r=t.hf.indexOf(e);return r===-1&&(r=t.hf.length,t.hf.push(e)),r},e.prototype.di=function(e){var t=this,r=t.Ch.indexOf(e);return r===-1&&(r=t.Ch.length,t.Ch.push(e)),r},e.prototype.ei=function(e){var t=this,r=t.Dh.indexOf(e);return r===-1&&(r=t.Dh.length,t.Dh.push(e)),r},e.prototype.ci=function(e){var t=this,r=e.slicers,i=t.fi();
27
- r&&r.length>0&&r.forEach(function(e){var r,n,a,l,s,c,u,f,b,h,p,m;if(e&&(r="timeline"===e.type,n=r?d.IO.timelineStyles:d.IO.slicerStyles,"string"==typeof e.style?(a=e.style.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,""),n[a]?e.style=n[a]:delete e.style):e.style instanceof Object&&(l=e.style&&e.style.name,s=l&&l.length>11&&n[l.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,"")],s&&(e.style.name="CustomSlicerStyle_"+e.name)),c=e.style,!o.J(c&&c.name))){if(u={},!xe(t.nh,c)){u={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(f in c)if(c.hasOwnProperty(f)&&"name"!==f&&!o.J(c[f]))switch(f){case"headerStyle":case"wholeSlicerStyle":b={},b.type=f,b.dxfId=t.Yh(me(c[f],"headerStyle"===f)),b.tableId=Se(e.tableName,i),u.styleElements.push(b)}t.mh.push(u)}if(r){if(!xe(t.rh,c)){h={styleElements:[],name:Ae(t.rh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectionLabelStyle":case"timeLevelStyle":case"periodLabel1Style":case"periodLabel2Style":case"selectedTimeBlockStyle":case"unselectedTimeBlockStyle":case"selectedTimeBlockSpaceStyle":h.styleElements.push({type:p,dxfId:t.ei(me(c[p]))})}t.qh.push(h),t.rh[h.name]=c}}else if(!xe(t.ph,c)){m={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectedItemWithDataStyle":case"selectedItemWithNoDataStyle":case"unSelectedItemWithDataStyle":case"unSelectedItemWithNoDataStyle":case"hoveredSelectedItemWithDataStyle":case"hoveredSelectedItemWithNoDataStyle":case"hoveredUnSelectedItemWithDataStyle":case"hoveredUnSelectedItemWithNoDataStyle":m.styleElements.push({type:p,dxfId:t.di(me(c[p]))})}t.oh.push(m),t.ph[m.name]=c}}})},e.prototype._h=function(e){var t,r,i=this;function n(e,t){var r,n,a,l,s,c,u,f,b,h;if(e&&(t?(r=e.style&&e.style.name,r&&r.length>10&&d.IO.pivotTableThemes[r.toLowerCase().replace(/^pivotstyle/,"")]&&(e.style.name="CustomPivotTableStyle_"+e.name)):"string"==typeof e.style?d.IO.tableThemes[e.style]?e.style=d.IO.tableThemes[e.style]:delete e.style:e.style instanceof Object&&(n=e.style&&e.style.name,n&&d.IO.tableThemes[n]&&(e.style.name="CustomTableStyle_"+e.name)),a=e.style,!o.J(a&&a.name))){if(xe(i.nh,a))return;l={styleElements:[]},l.name=Ae(i.nh,a.name),a.name=l.name,s=void 0,c=void 0,u=void 0,f=void 0;for(b in a)if(a.hasOwnProperty(b)&&"name"!==b&&void 0!==a[b])switch(b){case"firstRowStripSize":s=a[b];break;case"secondRowStripSize":c=a[b];break;case"firstColumnStripSize":u=a[b];break;case"secondColumnStripSize":f=a[b];break;default:h={},h.type=b,a[b].isPartFontStyle=!0,h.dxfId=i.Yh(a[b]),l.styleElements.push(h)}Ce(l,"firstRowStripStyle",s||1),Ce(l,"secondRowStripStyle",c||1),Ce(l,"firstColumnStripStyle",u||1),Ce(l,"secondColumnStripStyle",f||1),Ce(l,"firstRowStripeStyle",s||1),Ce(l,"secondRowStripeStyle",c||1),Ce(l,"firstColumnStripeStyle",u||1),Ce(l,"secondColumnStripeStyle",f||1),l.isPivot=t,i.mh.push(l),i.nh[l.name]=a}}t=e.pivotTables,t&&t.length>0&&t.forEach(function(e){return n(e,!0)}),r=e.tables,r&&r.length>0&&r.forEach(function(e){return n(e,!1)})},e.prototype.ai=function(e){var t=this,r=e.pivotTables;r&&r.length>0&&r.forEach(function(e){!o.J(e.formats)&&e.formats.length>0&&e.formats.forEach(function(e){var r,i,a,l,s;o.J(e.style)||(e.dxfId=t.Yh(e.style),e.style&&!o.J(e.style.formatter)&&(r=e.style.formatter,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.style.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.style.numberFormatId=i.numberFormat.numberFormatId),t.Ih.push(i)))}),!o.J(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){Le(e,t.Ih)}),!o.J(e.dataFields)&&e.dataFields.length>0&&e.dataFields.forEach(function(e){Le(e,t.Ih)})})},e.prototype.bi=function(e){var t,r=e.tables,o=r?r.length:0,i={};for(t=0;t<o;t++)r[t].tableSortInfo=this.gi(r[t].rowFilter);e.hi=i,e.rowFilter&&(e.rowFilter.autoFilterSortInfo=this.gi(e.rowFilter))},e.prototype.Th=function(e){var t,r=this,o=e.rows,i=_(e);for(e.rowsVisibleInfo={},t=0;t<e.rowCount;t++)e.rowsVisibleInfo[t]={},e.rowsVisibleInfo[t].size=o&&o[t]&&o[t].size||i,e.rowsVisibleInfo[t].visible=r.ii(e,t)},e.prototype.Uh=function(e){var t,r,o=e.columns,i=N(e),n=e.columnOutlines;for(e.columnVisibleInfo={},t=0;t<e.columnCount;t++)e.columnVisibleInfo[t]={},r=o&&o[t],e.columnVisibleInfo[t].size=r&&r.size||i,r&&r.visible===!1&&(e.columnVisibleInfo[t].visible=!1),l.isCollapsed(t,n)&&(e.columnVisibleInfo[t].visible=!1)},e.prototype.Rh=function(e){e.rowCount===p&&(e.rowCount=200),e.columnCount===p&&(e.columnCount=20),e.activeRow===p&&(e.activeRow=0),e.activeCol===p&&(e.activeCol=0),e.visible===p&&(e.visible=!0)},e.prototype.Vh=function(e){var t,r,o=e.index,i=this.yh[o],n=e.columnCount,a=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style;for(t=0;t<n;t++)r=this.ji(e,-1,t),this.ki(e,i,t,r,a)},e.prototype.Sh=function(e){var t,r,i,n,l,s,c,d,u,f,b,h,g,y,S,C,w,x,A,T,v,k,F,R,E,P,W,_,N,M,O,H,G,U,J,z,V,j,X,K,q,Y,Q,Z,$,ee,te,re=this,oe=e.index,ie=e.data&&e.data.dataTable,ne=e.data&&e.data.rowDataArray,ae=e.defaultData,le=re.Eh,se=re.Hh;if(0!==e.rowCount){if(t=re.li(ie,e,ae)+1,r=re.wh[oe],i=re.xh[oe],n=re.mi(e,t),l=re.Ah[oe],s=57,c=re.ni(e),d=[],u=e.tables,!o.J(u)&&Array.isArray(u))for(f=0;f<u.length;f++)for(b=u[f],h=b.row,g=h+b.rowCount-1,y=h;y<=g;y++)d[y]||(d[y]=!0);for(S={},C=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style,w=0;w<=c&&w>=0;w++)if(ie&&ie.hasOwnProperty(w+"")||ne&&ne[w]||d[w]||ae&&ae.hasOwnProperty(w+"")){for(x=re.ki(e,i,w,re.ji(e,w,-1),C),A=s,T=ie&&ie[w],v=ae&&ae[w],k=0;k<t&&k>=0;k++)if(F=L(e,w,k),T&&T.hasOwnProperty(k+"")||F||v&&v.hasOwnProperty(k+"")){if(R=w*t+k,E=void 0,P=void 0,W=m,_=m,N=m,M=T&&T[k],O=v&&v[k],H=p,G=!1,M&&(_=M.formula,N=M.arrayInfo,U=N&&N.isDynamicArray,J=M.value,z=Be(J,U,le),W=z.value,H=z.richText,G=z.isSpillError,le=z.dynamicArrayLevel),!_&&o.J(W)&&O&&(W=Be(O.v,p,le).value),V=!1,F&&(V=!0,j=D(e,w,k),j&&B(e,j)),X=re.oi(e,w,k,r,n[k],x,C,R,W),P=X.styleName,E=X.styleInfo,V){if(F.showHeader!==!1&&w===F.row&&(W=F.columns[k-F.col]&&F.columns[k-F.col].name,W&&W.indexOf("\n")!==-1&&H))for(K=0;K<H.length;K++)H[K].text=o.Util.ua(H[K].text,"\r","");F.showFooter&&w===F.row+F.rowCount-1&&(q=F.columns[k-F.col],o.J(q&&q.footerValue)||(W=""+q.footerValue))}if(Y=re.pi(W,!o.J(H)),Q=Y.value,Q=I(Q),Z=Y.cellType,E||_||Q!==m||!o.StringEx.L(P)){if($=new a.ExcelCell(w,k),$.cellType=Z,$.value=Q,$.richText=H,$.isSpillError=G,$.qi=S[w+","+k],re.dg(r,R,E,P,$),re.ri(_,N,$),N&&N.isDynamicArray&&!$.isSpillError)for(ee=N.row;ee<N.row+N.rowCount;ee++)for(te=N.col;te<N.col+N.colCount;te++)S[ee+","+te]=1;re.ti(oe,w,$),re.ui($,e,w,k,se)}}l[w]=A}re.Eh=le,re.sh={}}},e.prototype.ni=function(e){var t=this.vi(e);return Math.min(e.rowCount-1,t.length>0?t.length:0)},e.prototype.ki=function(e,t,r,i,n){var a,l,s=this;return i&&(a=s.wi(e,i)),a?(a.parentName&&(a.parentName=s.xi(e,a.parentName),l=s.af[s.lh[a.parentName]],o.ga.ca(a,l)),s.yi(e,a,n),o.ga.ba(a)||(t[r]=s.zi(a),a.parentName&&s.isSameStyleInfo(s.af[s.lh[a.parentName]],a,!0)||(a.parentName=m)),i):m},e.prototype.Ai=function(){var t,r,i,n,a,l,s,c,d,u=this,f=u.Ne,b=f.sheets;for(r in b)if(b.hasOwnProperty(r)&&(i=b[r],n=i.namedStyles,n&&n.length>0)){if(!t)if(t={},f.namedStyles)for(a=f.namedStyles,l=0;l<a.length;l++)t[a[l].name]=1;else f.namedStyles=[];for(l=0;l<n.length;l++)if(s=n[l],c=s.name,!R(c)&&!F(c)&&o.J(e.Bi[c])){for(d=s.name;t[d]||d.length>255;)d=Ee(d,i.name);s.name=d,f.namedStyles.push(s),t[d]=1,c!==d&&(i.renamedStyles=i.renamedStyles||{},i.renamedStyles[c]=d)}}},e.prototype.Ci=function(){var t,r,o,i,n,a=this,l=a.Ne,s=l.namedStyles,c={},d={};a.Oh=0,t=e.Jh(l),s?s.forEach(function(e){var t,r,o,i;e&&(t=e.name,c[t]=e,t&&w.test(t)&&(r=19,o=t.indexOf(g),i=parseInt(t.substring(r,o),10),a.Oh=Math.max(i,a.Oh)))}):l.namedStyles=[];for(r in l.sheets)if(l.sheets.hasOwnProperty(r)){if(o=l.sheets[r],!o||!o.data||!o.data.dataTable)continue;if(i=o.tables,n=o.data.dataTable,!i||i.length<=0)continue;a.Nh(i,n,c,t,d)}},e.prototype.Qh=function(){var e,t,r,i,a,l,s,c,d,u,f,b,h,m,g=this,y=g.Ne,S={},C=[];for(S.Normal={},g.Ai(),g.Ci(),g.Di(y.namedStyles,S,C),t=0,r=g.th.length;t<r;t++)e=g.th[t],e&&e.parentName&&o.ga.da(g.th,e);for(i={},a=[],l={},t=0,r=C.length;t<r;t++)s=C[t],c=n.ConverterHelper.toStringStyle(s),i[c]===p?a.push(s):l[s.name]=C[i[c]].name,i[c]=t,s.Ei=c;for(d={},t=0,r=g.af.length;t<r;t++)e=g.af[t],u=n.ConverterHelper.cloneSpreadJSStyle(e),u.parentName=e.name,u.name=p,d[t]=g.lh[e.name]=g.af.length,g.af.push(u),f=n.ConverterHelper.toStringStyle(e),i[f]!==p&&(b=C[i[f]],b&&(g.lh[b.name]=g.lh[e.name],b.added=!0));for(Object.keys(g.vh).forEach(function(e){g.lh[e]===p&&(g.lh[e]=d[g.vh[e]])}),h=o.ga._(y.namedStyles,"Normal"),m=n.ConverterHelper.toStringStyle(h),t=0,r=a.length;t<r;t++)s=a[t],s.added||(s.Ei===m?g.lh[s.name]=0:(g.lh[s.name]=g.af.length,g.af.push(s)));Object.keys(l).forEach(function(e){g.lh[e]=g.lh[l[e]]})},e.prototype.isSameStyleInfo=function(e,t,r,o){if(!e&&!t)return!0;if(!e||!t)return!1;var i,a;return e.Fi||(e.Fi={Gi:n.ConverterHelper.toExtendedFormat(e,this)}),i=e.Fi.Gi,t.Fi||(t.Fi={Gi:n.ConverterHelper.toExtendedFormat(t,this)}),a=t.Fi.Gi,i.equals(a,r,o)},e.prototype.getEqualStyle=function(e,t){var r,o;for(r=0;r<t.length;r++)if(o=t[r],this.isSameStyleInfo(e,o,!0,!0))return o;return m},e.prototype.Di=function(t,r,o){var i,n,a,l,s,c;function d(e){var t,r,o="",i=Object.getOwnPropertyNames(e);for(t=0;t<i.length;t++)r=i[t],k(e[r])?o+=r+":"+JSON.stringify(e[r])+"_":"name"!==r&&(o+=r+":"+e[r]+"_");return o}if(t)for(i={},n=0,a=t.length;n<a;n++)l=t[n],s=l.name,r[s]||(r[s]={},R(s)||F(s)||(s.indexOf(g)>=0?o.push(l):(c=d(l),i.hasOwnProperty(c)?this.vh[l.name]=i[c]:(this.af.push(l),this.th.push(l),this.vh[l.name]=this.af.length-1,e.Bi[l.name]||(i[c]=this.af.length-1)))))},e.prototype.ji=function(e,t,r){var o=e.data,i=m;return o?(t<0&&r>=0?i=o.columnDataArray&&o.columnDataArray[r]?o.columnDataArray[r].style:m:t>=0&&r<0?i=o.rowDataArray&&o.rowDataArray[t]?o.rowDataArray[t].style:m:t>=0&&r>=0&&(i=o.dataTable&&o.dataTable[t]&&o.dataTable[t][r]?e.data.dataTable[t][r].style:m),i):m},e.prototype.Hi=function(){var e,t,r,i=this.Ne,n=m;for(e in i.sheets)if(i.sheets.hasOwnProperty(e)&&(t=i.sheets[e],t&&t.theme)){n=t.theme;break}return n?T(n)?n:(r=n.name,o.StringEx.O(r)?m:("OFFICE"===r.toUpperCase()&&(r="Office Theme"),new a.ExcelTheme(r,this.Ii(n),this.Ji(n)))):m},e.prototype.Ii=function(e){var t=[];return t.push(u(e.themeColor.background1)),t.push(u(e.themeColor.text1)),t.push(u(e.themeColor.background2)),t.push(u(e.themeColor.text2)),t.push(u(e.themeColor.accent1)),t.push(u(e.themeColor.accent2)),t.push(u(e.themeColor.accent3)),t.push(u(e.themeColor.accent4)),t.push(u(e.themeColor.accent5)),t.push(u(e.themeColor.accent6)),t.push(u(e.themeColor.hyperlink)),t.push(u(e.themeColor.followedHyperlink)),new a.ColorScheme(e.themeColor.name,t)},e.prototype.Ji=function(e){var t=Pe(e.headingFont),r=Pe(e.bodyFont),o=new a.ThemeFonts([new a.RunFormatting(0,t)],[]),i=new a.ThemeFonts([new a.RunFormatting(0,r)],[]);return new a.FontScheme(e.name,o,i)},e.prototype.Ki=function(e){return e=Math.min(e,i.ExcelConstants.vb-1),o.IndexHelper.T(e)},e.prototype.Li=function(e,t){var r,o=[],n=new i.DefaultContentType;return n.extension=i.XFileConstants.Eb,n.contentType=i.XFileConstants.Fb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Gb,n.contentType=i.XFileConstants.Hb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.nc,n.contentType=i.XFileConstants.pc,o.push(n),t&&(n=new i.DefaultContentType,n.extension=i.XFileConstants.oc,n.contentType=i.XFileConstants.kc,o.push(n)),n=new i.DefaultContentType,n.extension=i.XFileConstants.qc,n.contentType=i.XFileConstants.sc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.tc,n.contentType=i.XFileConstants.uc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.vc,n.contentType=i.XFileConstants.wc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.zc,n.contentType=i.XFileConstants.Ac,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Bc,n.contentType=i.XFileConstants.Cc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Dc,n.contentType=i.XFileConstants.Ec,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.xc,n.contentType=i.XFileConstants.yc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Fc,n.contentType=i.XFileConstants.Gc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Hc,n.contentType=i.XFileConstants.Ic,o.push(n),r=this.Lh(o,e),r?o:m},e.prototype.Mi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.uh[r.index]},e.prototype.Ni=function(e){var t,r,i=this,n=[],l=i.Ne,s=l.sheets&&l.sheets[e],c=i.vi(s),d=Math.min(s.rowCount-1,c.length),u=i.Oi(s.rowOutlines);for(t=0;t<=d;t++)c[t]?(r=i.Pi(s,t,u),(r||r.collapsed||!o.J(r.outLineLevel)&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&(r.customHeight=!isNaN(r.height),n.push(r))):s.rowFilter&&i.Qi(s.rowFilter,t)&&(r=new a.ExcelRow(t),r.visible=!1,n.push(r));return n},e.prototype.Qi=function(e,t){var r,o,i,n=!1;if(e&&(r=e.filteredOutRows))for(o=0;o<r.length;o++)if(i=r[o],t===i){n=!0;break}return n},e.prototype.ii=function(e,t){var r=e.rows,o=e.rowOutlines;return(!r||!r[t]||r[t].visible!==!1)&&!l.isCollapsed(t,o)},e.prototype.Pi=function(e,t,r){var i,l,s=this,c=new a.ExcelRow(t),d=e.rowOutlines,u=e.rows&&e.rows[t];return c.height=n.UnitHelper.pixelToPoint(u&&void 0!==u.size?u.size:_(e)),r>=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t<e.rowCount&&(c.visible=s.ii(e,t)),o.J(this.xh[e.index])||(l=this.xh[e.index][t],c.formatId=o.J(l)?-1:l),c},e.prototype.vi=function(e){var t,r,o,i,n,a,l,s,c,d,u,f,b,h,p=this.Bh[e.index];if(void 0!==p)return p;if(p=[],t=e.rows,r=e.data&&e.data.rowDataArray,o=e.data&&e.data.dataTable,i=e.defaultData,t)for(n=0,a=t.length;n<a;n++)t[n]&&(p[n]=!0);if(r)for(n=0,a=r.length;n<a;n++)r[n]&&(p[n]=!0);if(o)for(l in o)o[l]&&o.hasOwnProperty(l)&&(p[l]=!0);if(i)for(l in i)i[l]&&i.hasOwnProperty(l)&&(p[l]=!0);if(s=e.tables,s&&s.forEach(function(e){var t,r=e.row,o=e.row+e.rowCount;for(t=r;t<o;t++)p[t]=!0}),c=e.spans)for(a=c.length,d=0;d<a;d++)for(u=c[d],f=u.row;f<u.row+u.rowCount;f++)p[f]=!0;if(b=e.rowOutlines&&e.rowOutlines.itemsData)for(n=0,a=b.length;n<a;n++)for(h=b[n],l=h.index;l<h.index+h.count;l++)p[l]=!0;return this.Bh[e.index]=p,p},e.prototype.Ti=function(e){var t,r,o=[],i=this.Ne,n=i.sheets&&i.sheets[e],a=this.Oi(n.columnOutlines),l=n.columnCount;for(t=0;t<l;t++)r=this.Ui(n,t,a),r&&(Math.abs(r.width-this.Vi(e))>1e-4||r.collapsed||void 0!==r.outLineLevel&&r.outLineLevel!==m&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&o.push(r);return o},e.prototype.Si=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return 0;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return n.info?n.info.level+1:1;return 0},e.prototype.Ri=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return!1;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return!!n.info&&!!n.info.collapsed;return!1},e.prototype.Ui=function(e,t,r){var i,n,s=new a.ExcelColumn(t),c=e.columnOutlines,d=e.columns&&e.columns[t];return s.width=this.calcColumnWidth(d&&void 0!==d.size?d.size:N(e)),r>=0&&t<e.columnCount&&(s.collapsed=this.Ri(t,c),i=this.Si(t,c),s.outLineLevel=i===-1?0:i),t<e.columnCount&&(d&&d.visible===!1&&(s.visible=!1),l.isCollapsed(t,c)&&(s.visible=!1)),o.J(this.yh[e.index])||(n=this.yh[e.index][t],s.formatId=o.J(n)?-1:n),s},e.prototype.Oi=function(e){var t,r,o,i;if(!e||!e.itemsData)return-1;for(t=-1,r=0,o=e.itemsData.length;r<o;r++)i=e.itemsData[r],i.info&&i.info.level>t&&(t=i.info.level);return t},e.prototype.Wi=function(e){var t,r,o=this.Ne,i=o.sheets&&o.sheets[e],n=0,a=0,l=-1,s=i.rowOutlines;return s&&(l=this.Oi(s)),l!==-1&&(n=l+2),t=-1,r=i.columnOutlines,r&&(t=this.Oi(r)),t!==-1&&(a=t+2),{outlineLevelRow:n,outlineLevelColumn:a}},e.prototype.Xi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=n.UnitHelper.pixelToPoint(r.defaults?r.defaults.rowHeight:_(r)),i=!1,a=57;return i=Math.abs(a-o)>=2,{height:o,customHeight:i}},e.prototype.Vi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.calcColumnWidth(r.defaults?r.defaults.colWidth:N(r))},e.prototype.Yi=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];if(o.defaults&&o.defaults.colWidth&&o.defaults._isExcelDefaultColumnWidth!==!0)return t=o.defaults?o.defaults.colWidth:N(o),this.calcColumnWidth(t)},e.prototype.calcColumnWidth=function(t){var r,o,i;return 0===t?0:(r=e.Jh(this.Ne),o=Math.round(this.Zi(r.fontForColumnWidth?r.fontForColumnWidth:r.font)),i=Math.floor((t-5)/o*100+.5)/100,Math.floor((i*o+5)/o*256)/256)},e.prototype.Zi=function(e){return this.Rf===p&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.$i=function(e,t,r,n){var a,l,s,c,d,u,f,b=this.Ne,h=b.sheets&&b.sheets[e];if(!h)return!1;if(a=h.frozenRowCount,l=h.frozenColCount,r.col=h.activeCol>=0?h.activeCol:0,r.row=h.activeRow>=0?h.activeRow:0,s=a>0,c=l>0,0===n){if(!s||!c)return!1}else if(1===n){if(!c)return!1;s&&(r.col=l,r.row=0)}else if(2===n){if(!s)return!1;c&&(r.col=0,r.row=a)}if(r.col=Math.min(i.ExcelConstants.vb,r.col),r.row=Math.min(i.ExcelConstants.wb,r.row),t)if(d=void 0,h.selections)for(u=0;u<h.selections.length;u++)f=h.selections[u],k(f)&&(d=new o.Range(f.row>0?f.row:0,f.col>0?f.col:0,f.rowCount>0?f.rowCount:i.ExcelConstants.wb,f.colCount>0?f.colCount:i.ExcelConstants.vb),t.push(d));else t.push(new o.Range(r.row,r.col,1,1));return!0},e.prototype.ti=function(e,t,r){o.J(this.uh[e][t])&&(this.uh[e][t]=[]),this.uh[e][t].push(r)},e.prototype._i=function(e,t){var r,o,i;if(T(e)&&"/OADate"===e.substring(0,7)&&t&&!t.formatter){if(t.autoFormatter)return void(t.formatter=t.autoFormatter.formatCached);r=e.indexOf("("),o=e.indexOf(")"),r!==-1&&o!==-1&&(i=parseInt(e.substring(r+1,o),10),i<1?t.formatter="h:mm:ss":i>1&&(t.formatter="M/d/yyyy"))}},e.prototype.dg=function(e,t,r,i,n){var a;o.StringEx.L(i)?r&&(a=e[t]):a=this.lh[i],void 0!==a?n.formatId=a:n.formatId=-1},e.prototype.ri=function(e,t,r){o.StringEx.O(e)||(r.formula=e,r.arrayFormulaRange=t)},e.prototype.ui=function(e,t,r,i,n){var a,l,s,c,d,u,f,b;if(t.data&&t.data.dataTable&&t.data.dataTable[r]&&(a=t.data.dataTable[r][i]&&t.data.dataTable[r][i].hyperlink)){if(l={},s=this.aj(t.name),c=!1,s)for(d=0;d<s.length;d++)if(u=s[d],u.row===r&&u.col===i){l.ref=o.IndexHelper.T(u.col)+(u.row+1)+":"+o.IndexHelper.T(u.col+u.colCount-1)+(u.row+u.rowCount),c=!0;break}c||(l.ref=o.IndexHelper.T(i)+(r+1)),f="sjs://",a.url&&(a.url.substring(0,f.length)===f?(l.location=o.Util.oa(a.url.replace(f,"")),b=t.data.dataTable[r][i].value,"string"==typeof b&&(l.display=o.Util.oa(b))):l.url=o.Util.oa(a.url)),a.tooltip&&(l.tooltip=o.Util.oa(a.tooltip)),l["xr:uid"]=o.Ha(),n[t.name]||(n[t.name]=[]),n[t.name].push(l)}},e.prototype.pi=function(e,t){var r=0;if(o.J(e))e=m;else{if(e._error||e._calcError)return r=7,{value:e._error||e._calcError,cellType:r};"number"==typeof e?(r=1,isNaN(e)&&(e=0)):"boolean"==typeof e?r=5:T(e)&&"/OADate"===e.substring(0,7)?r=6:t?r=9:T(e)?r=2:(r=2,e=""+e)}return{value:e,cellType:r}},e.prototype.wi=function(e,t){var r,o,i=this;return k(t)?n.ConverterHelper.cloneSpreadJSStyle(t):T(t)?C.test(t)?(r=t.indexOf(g),o=i.xi(e,t.substring(r)),n.ConverterHelper.cloneSpreadJSStyle(i.af[i.lh[o]])):{parentName:t}:void 0},e.prototype.bj=function(e){var t=this;return e&&t.af[t.lh[e]]},e.prototype.yi=function(e,t,r){var i,n=this;r&&(r=n.wi(e,r),o.ga.ca(t,r,!0),r&&r.parentName&&(r.parentName=n.xi(e,r.parentName),i=n.af[n.lh[r.parentName]],o.ga.ca(t,i)))},e.prototype.cj=function(e,t){o.J(t.linkColor)?(t.linkColor!==p||!e.foreColor&&e.foreColor!==m)&&(e.foreColor="hyperlink"):e.foreColor=t.linkColor,o.J(e.textDecoration)?e.textDecoration=1:1!==(1&e.textDecoration)&&(e.textDecoration+=1)},e.prototype.xi=function(e,t){return e.renamedStyles&&e.renamedStyles[t]&&(t=e.renamedStyles[t]),t},e.prototype.oi=function(e,t,r,i,n,a,l,s,c){var d,u,f=this,b=e.data,h=f.ji(e,t,r),g=m,y=m,S=b&&b.dataTable&&b.dataTable[t]&&b.dataTable[t][r]&&b.dataTable[t][r].hyperlink,C=S||T(c)&&"/OADate"===c.substring(0,7)||c!==m&&void 0!==c&&(n||a),w=p;return v(h)&&v(a)&&v(n)&&!C&&(w=""+h+"|"+n+"|"+a),w&&f.sh[w]?(i[s]=f.sh[w].styleIndex,f.sh[w]):(h?g=f.wi(e,h):C&&(g={}),g&&(g.parentName&&(g.parentName=f.xi(e,g.parentName),d=f.af[f.lh[g.parentName]]||f.af[f.vh[g.parentName]],o.ga.ca(g,d)),f.yi(e,g,a),f.yi(e,g,n),f.yi(e,g,l),S&&f.cj(g,S),f._i(c,g),o.ga.ba(g)?g=m:(u=i[s]=f.zi(g),g.parentName&&f.isSameStyleInfo(f.af[f.lh[g.parentName]],g,!0)&&(y=g.parentName),g.name&&f.isSameStyleInfo(f.af[f.lh[g.name]],g,!0)&&(y=g.name),w&&(f.sh[w]={styleIndex:u,styleName:y,styleInfo:g}))),{styleName:y,styleInfo:g})},e.prototype.zi=function(e){var t,r=this.af;if(!e)return 0;for(t=r.length-1;t>=0;t--)if((!r[t].name||r[t].name.indexOf(g)>=0)&&o.ga.fa(r[t],e))return t;return e.name=p,r.push(e),r.length-1},e.prototype.dj=function(e){var t,r;if(!e)return 0;t=0;for(r in e)e.hasOwnProperty(r)&&parseInt(r,10)>t&&(t=parseInt(r,10));return t},e.prototype.li=function(e,t,r){var o,i,n,a=0;if(e)for(o in e)if(e.hasOwnProperty(o))for(i in e[o])parseInt(i,10)>a&&(a=parseInt(i,10));if(r)for(o in r)if(r.hasOwnProperty(o))for(i in r[o])parseInt(i,10)>a&&(a=parseInt(i,10));return n=t.tables,n&&n.forEach(function(e){e.col+e.colCount>a&&(a=e.col+e.colCount)}),a},e.prototype.ej=function(e,t,r){for(r++;r>=0&&r<t&&!e[r];)r++;return r<t?r:-1},e.prototype.fj=function(e,t,r,o,i){var n=m;if(o>=0&&o<t&&(n=e[o]),!n)return-1;for(i++;i>=0&&i<r&&!n[i];)i++;return i<r?i:-1},e.prototype.mi=function(e,t){var r,o,i=[],n=e.columnCount;if(!e.data||!e.data.columnDataArray)return i;for(r=0;r<t;r++)r<n?(o=this.ji(e,-1,r),i.push(o)):i.push(m);return i},e.prototype.gj=function(){var e,t,r,o,i,a,l=this,s=[],c={count:0};for(e=0,t=l.af.length;e<t;e++)r=l.af[e],o=n.ConverterHelper.toExtendedFormat(r,l),r.name&&r.name.indexOf(g)<0?(c[r.name]||(c[r.name]=c.count,c.count++),o.isStyleFormat=!0):(i=0,void 0!==c[r.parentName]&&c[r.parentName]!==m&&(i=c[r.parentName],a=s[i],!o.applyNumberFormat&&a&&(a.numberFormat?o.numberFormat=a.numberFormat:void 0!==a.numberFormatIndex&&(o.numberFormatIndex=a.numberFormatIndex))),o.parentFormatID=i),s.push(o);return s},e.prototype.hj=function(){var t=n.ConverterHelper.cloneSpreadJSStyle(e.Jh(this.Ne)),r=n.ConverterHelper.toExtendedFormat(t,this);return r.parentFormatID=0,r},e.prototype.ij=function(){var t,r,o,i,a,l,s,c=this,d=[],u=m;for(t=0,r=c.th.length;t<r;t++)if(o=c.th[t],"Normal"===o.name){i=new n.ExcelStyle,i.name="Normal",i.format(n.ConverterHelper.toExtendedFormat(o,c)),i.format().isStyleFormat=!0,i.builtInStyle=0,u=i,c.Ke=o;break}for(u||(a=new n.ExcelStyle,a.name="Normal",a.format(n.ConverterHelper.toExtendedFormat(e.Jh(this.Ne),c)),a.format().font.fontSize=14.67,a.format().isStyleFormat=!0,a.builtInStyle=0,d.push(a)),t=0,r=c.th.length;t<r;t++)l=c.th[t],l.name&&(void 0!==e.Bi[l.name]?(i=new n.ExcelStyle,i.name=l.name,i.format(n.ConverterHelper.toExtendedFormat(l,c)),i.format().isStyleFormat=!0,i.builtInStyle=e.Bi[l.name],("RowLevel_"===l.name.substring(0,9)||"ColLevel_"===l.name.substring(0,9))&&l.name.length>9&&(i.outLineLevel=parseInt(l.name.substring(9),10)-1),d.push(i)):(s=new n.CustomExcelStyle,s.name=l.name,s.format(n.ConverterHelper.toExtendedFormat(l,c)),s.format().isStyleFormat=!0,d.push(s)));return d},e.prototype.jj=function(){var e,t,r=[],o=this.Ne.sheets;for(e in o)o.hasOwnProperty(e)&&(t=o[e],r[t.index]=e);return r},e.prototype.kj=function(e){return this.Ne.sheets[e]},e.prototype.lj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{colsSumRight:!(r.columnOutlines&&0===r.columnOutlines.direction),rowsSumBelow:!(r.rowOutlines&&0===r.rowOutlines.direction)}:{}},e.prototype.mj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?f(r.sheetTabColor):m},e.prototype.nj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{rowCount:r.rowCount,columnCount:r.columnCount}:{}},e.prototype.oj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i={showGridLine:!0,showRowColHeaders:!0,gridlineColor:m,zoom:1};return o?(!o.gridline||o.gridline.showVerticalGridline!==!1&&o.gridline.showHorizontalGridline!==!1||(i.showGridLine=!1),o.rowHeaderVisible===!1&&o.colHeaderVisible===!1&&(i.showRowColHeaders=!1),o.gridline&&o.gridline.color&&(i.gridlineColor=n.ColorHelper.toExcelIndexedColor(f(o.gridline.color,4291876837))),void 0!==o.topCellIndex&&void 0!==o.leftCellIndex&&(t={row:o.topCellIndex,col:o.leftCellIndex},i.topLeftCell=t),i.zoom=o.zoomFactor,i):i},e.prototype.pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o={frozenRowCount:0,frozenColCount:0,frozenTopRow:0,frozenLeftCol:0};return r?(o.frozenRowCount=r.frozenRowCount||0,o.frozenColCount=r.frozenColCount||0,o.frozenTopRow=r.frozenTopRow||0,o.frozenLeftCol=r.frozenLeftCol||0,o):o},e.prototype.qj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!!r&&r.isProtected},e.prototype.rj=function(e,t){var r,o,i=this.Ne,n=i.sheets&&i.sheets[e],a=n.protectionOptions,s={};for(o in a)a.hasOwnProperty(o)&&(r=a[o],r&&"allowSelectLockedCells"===o||r&&"allowSelectUnlockedCells"===o||r&&"allowEditObjects"===o||(s[l.fromProtectionOptions[o]?l.fromProtectionOptions[o]:o]=a[o]));return t&&!a&&(s.objects=!1),s},e.prototype.aj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?r.spans:[]},e.prototype.sj=function(){var e=this.Ne;return{showHorizontalScrollbar:e.showHorizontalScrollbar,showVerticalScrollbar:e.showVerticalScrollbar,tabStripVisible:e.tabStripVisible,tabStripRatio:e.tabStripRatio,startSheetIndex:e.startSheetIndex,activeSheetIndex:e.activeSheetIndex}},e.prototype.tj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||0===r.visible},e.prototype.uj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||2===r.visible},e.prototype.vj=function(){var e,t,r,o,i,n=[];if(this.Ne.names)for(t=0;t<this.Ne.names.length;t++)e=this.Ne.names[t],n.push({name:e.name,localSheetId:-1,formula:e.formula,comment:e.comment});r=this.Ne.sheets;for(o in r)if(r.hasOwnProperty(o)&&(i=r[o],i.names))for(t=0;t<i.names.length;t++)e=i.names[t],n.push({name:e.name,localSheetId:i.index,formula:e.formula,comment:e.comment});return n},e.prototype.xg=function(e){var t=this,r=t.Ne.sheets&&t.Ne.sheets[e];return r.conditionalFormats},e.Jh=function(e){var t,r,i,n,a,l,s={foreColor:"black",font:"normal normal normal 11pt/normal Calibri",locked:!0,name:"Normal",textDecoration:0,hAlign:3,vAlign:0};for(t in e.sheets)if(e.sheets.hasOwnProperty(t)&&(r=e.sheets[t],r.data&&r.data.defaultDataNode&&r.data.defaultDataNode.style)){for(i=r.data.defaultDataNode.style,n=this.prototype.wi(r,i),a=n.parentName;a&&(l=be(a,e,r));)o.ga.ca(n,l),a=l.parentName;return o.ga.ca(n,s),n}return s},e.prototype.wj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.comments&&r.comments.map(function(e){return l.convertToExcelComment(r,e)})},e.prototype.xj=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].pivotTables;for(t in o.sheets)o.sheets[t].pivotTables&&(r=r.concat(o.sheets[t].pivotTables));return r},e.prototype.yj=function(e){return e.floatingObjects&&e.floatingObjects.filter(function(e){return"1"===e.typeName&&e.src&&e.src.indexOf(";base64,")!==-1}).map(function(t){return l.convertToExcelPicture(e,t)})},e.prototype.zj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.sparklineGroups},e.prototype.$h=function(e){var t,r,o,i=e.rowFilter,a=this;if(i)return t=[],r=i.filteredColumns,o=i.filterItemMap,o&&r&&r.length>0&&o.forEach(function(o){var l,s;r.indexOf(o.index)<0||(l=o.conditions[0],3===l.conType&&(s=0===l.compareType,t.push({autoFilterColumnId:o.index-O(e,i.range).col,colorFilter:{cellColor:s,dxfId:a.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(l.expected,s)})}})))}),t},e.prototype.gi=function(e){var t,r,i=m;return e&&(t=e.sortInfo,!t||o.J(t.ascending)||o.J(t.index)||(i={range:new o.Range(e.range.row,t.index,e.range.rowCount,1),descending:!t.ascending},t.color!==p&&(r=t.isBackColor,i.isBackColor=r,"{"===t.color[0]&&(t.color=JSON.parse(t.color)),i.dxfid=this.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(t.color,r)})))),i},e.prototype.Aj=function(e,t){var r=e.autoFilter,i={range:"A1",filterColumns:[]},n=r.filterItemMap;return n&&n.forEach(function(e){var r,n,a,l,s;e&&(r=e.conditions,n=r[0],a={autoFilterColumnId:0},l=se(n,t),o.J(l)||(s=l.filterType,1===s?a.top10=l:2===s?a.dynamicFilter=l:4===s?a.customFilters=l:3===s&&(a.filters=l),i.filterColumns.push(a)))}),i},e.prototype.Bj=function(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C,w,x,A,T,v,k,F=this,R=F.Ne,E=R.sheets&&R.sheets[e];if(o.J(t)||o.J(t.range))return m;if(i=t.adjustRangeForFrozen?E.frozenRowCount:0,n=O(E,t.range,i),a={range:n,filterColumns:[]},E.Zh&&E.Zh.length>0&&(a.filterColumns=E.Zh),l=t.filteredColumns,s=t.filterItemMap,s&&l&&l.length>0&&s.forEach(function(e){var t,r,i,s,c,d;if(!(e.index<n.col||e.index>=n.col+n.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],i=1;i<t.length;i++)r={conType:0,compareType:0,item1:r,item2:t[i]};r&&(s={autoFilterColumnId:e.index-a.range.col},c=le(E,r,new o.Range(a.range.row+1,a.range.col,a.range.rowCount-1,1)),o.J(c)||(d=c.filterType,1===d?s.top10=c:2===d?s.dynamicFilter=c:3===d?s.filters=c:4===d&&(s.customFilters=c),a.filterColumns.push(s)))}}),c=F.aj(e),c&&c.length>0){for(d=n.row,u=n.col,f=n.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p<g.length;p++)if(y=g[p],S=y.row,C=y.rowCount,w=y.col,x=y.colCount,w>=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A<w+x-1;A++)T=A-u,b?(v=a.filterColumns[A],v&&v.autoFilterColumnId===T?v.showButton=0:(k={autoFilterColumnId:T,showButton:0},h.push(k))):(k={autoFilterColumnId:T,showButton:0},h.push(k));h.length>0&&(a.filterColumns=a.filterColumns.concat(h))}return a.sortInfo=r,a},e.prototype.Cj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=m;return r.rowFilter&&(o=r.rowFilter.autoFilterSortInfo),this.Bj(e,r.rowFilter,o)},e.prototype.fi=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].tables;for(t in o.sheets)o.sheets[t].tables&&(r=r.concat(o.sheets[t].tables));return r},e.prototype.Dj=function(e){var t,r,o,i=this.Ne.sheets[e];if(!i.slicers)return[];for(t=[],r=0;r<i.slicers.length;r++)o=i.slicers[r],o.type&&"table"!==o.type||t.push(l.convertToExcelSlicer(i,o));return t},e.prototype.Ej=function(e,t){var r,o,i,n=this.Ne.sheets[e];if(!n.slicers)return[];for(r=[],o=0;o<n.slicers.length;o++)i=n.slicers[o],i.type===t&&r.push(l.convertToExcelSlicer(n,i));return r},e.prototype.Fj=function(e){return e.charts&&e.charts.map(function(t){return l.convertToExcelChart(e,t)})},e.prototype.Gj=function(e){return e.shapes&&e.shapes.map(function(t){return l.convertToExcelShape(e,t)})},e.prototype.Hj=function(e){var t,r=function(e){var t=[],o=e&&e.sp||[];return o.forEach(function(e){e.control?t.push({sp:e}):3===e.shapeType&&t.push.apply(t,r(e))}),t},o=function(e){var t=[];return e.forEach(function(e){e.sp&&e.sp.control?t.push(e):e.grpSp&&t.push.apply(t,r(e.grpSp))}),t},i=o(this.Gj(e)||[]);return i.forEach(function(e){var t=e.sp.control,r=e.sp.nvSpPr.cNvPr;t.id=r.id,t.name=r.name,t.visible=!r.hidden,r.hidden=!0}),t=function(e){return e.sp.control.id},i.sort(function(e,r){return t(e)-t(r)}),i},e.prototype.Ij=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=this.Dj(e),i=this.Ej(e,"pivot"),n=this.Ej(e,"timeline"),a=o.concat(i).concat(n),l=this.yj(r),s=this.Fj(r),c=this.Gj(r),d=this.Hj(r),u=0;return[a,l,s,c].forEach(function(e){e&&(u+=e.length)}),{slicers:a,pictures:l,charts:s,shapes:c,controlShapes:d,withDrawingObjects:u>0}},e.prototype.Jj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=[],n=o.validations;return n&&(t=this.jj(),he(n,i,e,t)),i},e.prototype.Kj=function(e){var t={top:75,bottom:75,left:70,right:70,header:30,footer:30},r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo,n=i&&i.margin;return n?{bottom:Te(n.bottom,t.bottom),top:Te(n.top,t.bottom),left:Te(n.left,t.bottom),right:Te(n.right,t.bottom),header:Te(n.header,t.bottom),footer:Te(n.footer,t.bottom)}:m},
28
- e.prototype.Lj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo;if(i)return t=i.centering,{horizontalCentered:1===t||3===t,verticalCentered:2===t||3===t,printGridLine:i.showGridLine,printRowColumnsHeaders:2===i.showRowHeader&&2===i.showColumnHeader}},e.prototype.Mj=function(e,t){var r,i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C;function w(e,t,r){return e=e||"",t=t||"",r=r||"","&L"+e+"&C"+t+"&R"+r}function x(e,t,r){if(e[t]&&e[t][r]){var o=e[t][r];return w(o.left,o.center,o.right)}}return r=this.Ne,i=r.sheets&&r.sheets[e],(n=i.printInfo)?(a={},l=n.fitPagesTall,s=n.fitPagesWide,o.J(l)||l===-1||(a.useSmartPrint=!0,a.smartPrintPagesHeight=Math.max(0,l)),o.J(s)||s===-1||(a.useSmartPrint=!0,a.smartPrintPagesWidth=Math.max(0,s)),t||(n.paperSize&&(c=n.paperSize.kind,0!==c&&(a.paperSizeIndex=c)),a.copies=1,o.J(n.firstPageNumber)||(a.useCustomStartingPage=!0,a.firstPageNumber=n.firstPageNumber),a.orientation=2===n.orientation?2:1,a.pageOrder=1===n.pageOrder?1:2,a.zoomFactor=parseFloat(n.zoomFactor),a.showColor=!n.blackAndWhite,a.advancedHeadFooterSetting={},d=a.advancedHeadFooterSetting,u=n.pageHeaderFooter,f=void 0,u?(d.headerFooterDifferentFirstPage=n.differentFirstPage,f=x(u,"first","header"),f&&(d.headerFirstPage=f),f=x(u,"first","footer"),f&&(d.footerFirstPage=f),b=n.differentOddAndEvenPages,d.headerFooterDifferentOddEvenPages=n.differentOddAndEvenPages,f=b?x(u,"odd","header"):x(u,"normal","header"),f&&(d.headerOddPage=f),f=b?x(u,"odd","footer"):x(u,"normal","footer"),f&&(d.footerOddPage=f),f=x(u,"even","header"),f&&(d.headerEvenPage=f),f=x(u,"even","footer"),f&&(d.footerEvenPage=f)):(h=w(n.headerLeft,n.headerCenter,n.headerRight),p=w(n.footerLeft,n.footerCenter,n.footerRight),a.advancedHeadFooterSetting={headerEvenPage:h,headerOddPage:h,footerOddPage:p,footerEvenPage:p}),g=i.rows,y=[],g&&g.length>0&&g.forEach(function(e,t){e&&e.pageBreak&&y.push(t)}),S=i.columns,C=[],S&&S.length>0&&S.forEach(function(e,t){e&&e.pageBreak&&C.push(t)}),y.length>0&&(a.rowBreakLines=y),C.length>0&&(a.columnBreakLines=C)),a):m},e.prototype.Nj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].printInfo},e.prototype.Oj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].rowFilter},e.prototype.Pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=r.shapes,i=[];return o&&o.length>0&&this.Qj(o,i),i},e.prototype.Qj=function(e,t){var r=this;e.forEach(function(e,o){var i,n,a,l;1===e.shapeType?(i=void 0,e.shapeData&&e.shapeData.pic&&e.shapeData.pic.cameraTool?i=e.shapeData.pic:e.cameraTool===!0&&(i=e),i&&(n=o+1,a=De("Picture_x0020_"+n,i.src),a.style=i.vmlStyle,a.anchor=i.anchor,a.cellRange=i.cellRange,a.spid="_x0000_s10"+i.spid,t.push(a))):3===e.shapeType&&(l=e.shapeData&&e.shapeData.grpSp&&e.shapeData.grpSp.sp||e.sp,l&&r.Qj(l,t))})},e.prototype.Rj=function(e){var t,r,o,i,n,a,l,s=this.Ne,c=s.sheets&&s.sheets[e],d=c.printInfo,u=[];return d&&(t=d.pageHeaderFooter,t?(r=t.normal,o=t.odd,o?(i=o.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=o.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))):r&&(i=r.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=r.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))),a=t.even,a&&(i=a.header||{},i.leftImage&&u.push(De("LHEVEN",i.leftImage)),i.centerImage&&u.push(De("CHEVEN",i.centerImage)),i.rightImage&&u.push(De("RHEVEN",i.rightImage)),n=a.footer||{},n.leftImage&&u.push(De("LFEVEN",n.leftImage)),n.centerImage&&u.push(De("CFEVEN",n.centerImage)),n.rightImage&&u.push(De("RFEVEN",n.rightImage))),l=t.first,l&&(i=l.header||{},i.leftImage&&u.push(De("LHFIRST",i.leftImage)),i.centerImage&&u.push(De("CHFIRST",i.centerImage)),i.rightImage&&u.push(De("RHFIRST",i.rightImage)),n=l.footer||{},n.leftImage&&u.push(De("LFFIRST",n.leftImage)),n.centerImage&&u.push(De("CFFIRST",n.centerImage)),n.rightImage&&u.push(De("RFFIRST",n.rightImage)))):(d.headerLeftImage&&u.push(De("LH",d.headerLeftImage)),d.headerCenterImage&&u.push(De("CH",d.headerCenterImage)),d.headerRightImage&&u.push(De("RH",d.headerRightImage)),d.footerLeftImage&&u.push(De("LF",d.footerLeftImage)),d.footerCenterImage&&u.push(De("CF",d.footerCenterImage)),d.footerRightImage&&u.push(De("RF",d.footerRightImage)))),u},e.prototype.Sj=function(){return this.vh},e.Bi={"20% - Accent1":30,"20% - Accent2":34,"20% - Accent3":38,"20% - Accent4":42,"20% - Accent5":46,"20% - Accent6":50,"40% - Accent1":31,"40% - Accent2":35,"40% - Accent3":39,"40% - Accent4":43,"40% - Accent5":47,"40% - Accent6":51,"60% - Accent1":32,"60% - Accent2":36,"60% - Accent3":40,"60% - Accent4":44,"60% - Accent5":48,"60% - Accent6":52,Accent1:29,Accent2:33,Accent3:37,Accent4:41,Accent5:45,Accent6:49,Bad:27,Calculation:22,"Check Cell":23,Comma:3,"Comma [0]":6,Currency:4,"Currency [0]":7,"Explanatory Text":53,Good:26,"Heading 1":16,"Heading 2":17,"Heading 3":18,"Heading 4":19,Input:20,"Linked Cell":24,Neutral:28,Normal:0,Note:10,Output:21,Percent:5,Title:15,Total:25,"Warning Text":11,Hyperlink:8,FollowedHyperLink:9,RowLevel_1:1,RowLevel_2:1,RowLevel_3:1,RowLevel_4:1,RowLevel_5:1,RowLevel_6:1,RowLevel_7:1,ColLevel_1:2,ColLevel_2:2,ColLevel_3:2,ColLevel_4:2,ColLevel_5:2,ColLevel_6:2,ColLevel_7:2},e}(),t.WriterDataModel=A},"./src/datamodel/datetime-helper.ts":function(e,t,r){"use strict";var o,i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=null,n=void 0;function l(e){var t=e.getTimezoneOffset();return t===-485&&(t=-485-43/60),t===-321&&(t=-321-10/60),t===-507&&(t=-507-52/60),t===-402&&(t=-402-4/60),t}a=function(){function e(){}return e.jg=function(e){return"/OADate("+e+")/"},e.Tj=function(e){return"string"==typeof e&&"/OADate("===e.substr(0,8)?parseInt(e.substr(8,e.length-8-1-1),10):e},e.ig=function(e){return e===n||e===i?0:("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date?(1440*e.getTime()+3181192704e6-864e5*l(e))/124416e6:0)},e.Je=function(e){var t,r=e-25569,o=new Date(864e5*r),i=r>=0?1:-1,n=l(o),a=(864e5*e*1440+i-3181192704e6+864e5*n)/1440,s=new Date(a),c=n>=0?1:-1,d=new Date(a+36e5*c),u=l(d);return Math.abs(n-u)>=60?new Date(a+60*(u-n)*1e3):(t=e+"",s=999===s.getMilliseconds()&&"33333333"===t.substr(t.length-8)?new Date(s.valueOf()+1):s)},e.vf=function(t){var r,o,n,a,l,s,c;if(!t||" "===t)return!1;if(0===t.length)return!1;if(t=t.toUpperCase(),t=t.replace(/(\[.*\])+/g," "),t=t.replace(/"[^"]*"/g," "),t=t.replace(/(\*.|_.|\\.)+/g," "),t.indexOf("GENERAL")!==-1)return!1;for(r=-1,o=0,n=!1,a=null,l=0;l<t.length;l++){if(s=t[l],"["===s)do s=t[l],l++;while(l<t.length&&"]"!==s);if("Y"===s||"D"===s||"M"===s||"H"===s||"S"===s||"A"===s)n?o++:(0===l||t.length>0&&"\\"!==t[l-1])&&(n=!0,r=l,o=1);else{if(n=!1," "===s&&a)return!0;0!==o&&(c=t.substring(r,r+o),r=l,o=0,a=a===i?e.Uj(c):a&&e.Uj(c))}}return 0!==o&&l===t.length&&(c=t.substring(r,r+o),a=a===i?e.Uj(c):a&&e.Uj(c)),!!a},e.Uj=function(e){var t,r,i,a,l,s,c,d,u;if(o.StringEx.O(e))return!1;for(t=[],r="",i=0,a=e.length;i<a;i++)l=e[i],r.indexOf(l)===-1&&(t.push({key:l,count:e.match(RegExp(l,"g")).length}),r+=l);for(s={Y:4,D:4,M:5,H:2,S:2,A:4},i=0,c=t.length;i<c;i++){if(d=t[i],u=s[d.key],u===n)return!1;if(d.count>u)return!1}return!0},e}(),t.DateTimeHelper=a},"./src/datamodel/excel-helper.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/datamodel/excel-style.ts"),n=r("./src/datamodel/chart-model.ts"),a=r("./src/common/excel-types.ts"),l=null;function h(e,t,r){var o,i=e.defaults.colWidth,n=e.columns,a=0,s=n?l:i;for(o=t;o<r;o++)a+=s||p(n,o,i,e.columnOutlines);return a}function p(e,t,r,o){var i=e[t];return i?o&&w(t,o)?0:i.visible===!1?0:i.size:r}function m(e,t,r){var o,i=e.defaults.rowHeight,n=e.rows,a=0,s=n?l:i;for(o=t;o<r;o++)a+=s||g(n,o,i,e.rowOutlines);return a}function g(e,t,r,o){var i=e[t];return i?o&&w(t,o)?0:i.visible===!1?0:i.size:r}function y(e,t){for(var r,o,i=e.defaults.colWidth,n=e.columns,s=0,c=0,d=n&&n.length||a.ExcelConstants.vb,u=n?l:i;s<t&&c<d;)r=u||p(n,c,i),s+=r,c++;return o=s-t,o>0?(c--,o=r-o):o=t-s,{col:c,colOffset:o}}function S(e,t){for(var r,o,i=e.defaults.rowHeight,n=e.rowsVisibleInfo||e.rows,s=0,c=0,d=n&&n.length||a.ExcelConstants.wb,u=n?l:i;s<t&&c<d;)r=u||g(n,c,i),s+=r,c++;return o=s-t,o>0?(c--,o=r-o):o=t-s,{row:c,rowOffset:o}}function C(e,t){var r=t.x,o=t.y,i={},n={},a=S(e,o);return A(a,i,["row","rowOffset"]),a=y(e,r),A(a,i,["col","colOffset"]),a=S(e,o+t.height),A(a,n,["row","rowOffset"]),a=y(e,r+t.width),A(a,n,["col","colOffset"]),{startPoint:i,endPoint:n}}function w(e,t){if(!t)return!1;if(t.items)return t.items[e]&&t.items[e].viewCollapsed;if(!t.itemsData)return!1;t.collapseIndexMap||x(t);var r=t.collapseIndexMap;return!!r[e]}t.isCollapsed=w;function x(e){var t,r,o,i,n,a,l,s=e.itemsData,c=e.collapseIndexMap={},d=!1;if(0===e.direction){for(t=s.length-1;t>=0;t--)if(o=s[t],o&&1===o.count&&o.info&&o.info.collapsed){for(i=o.index+o.count,n=t+1;n<s.length;n++)a=s[n],a&&a.info&&a.info.level>o.info.level&&a.index===i&&(i=a.index+a.count);for(l=o.index+1;l<i;l++)c[l]=!0}}else for(r=s.length,t=0;t<r;t++)if(o=s[t],o&&1===o.count&&o.info&&o.info.collapsed){if(i=o.index-1,i<0&&o.info.level===-1)break;for(n=t-1;n>=0;n--)a=s[n],a&&a.info&&a.info.level>o.info.level&&a.index+a.count-1===i&&(i=a.index-1);for(l=i+1;l<o.index;l++)c[l]=!0}}s=7;function A(e,t,r){r.forEach(function(r){void 0!==e[r]&&(t[r]=e[r])})}function T(e,t){var r,n,a,c,d,u,f,b,p,g,y,S,C,w,x,T,v={};return A(t,v,["fontSize","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode"]),r=e.forzenRowCount||0,n=e.forzenColumnCount||0,a=t.row,c=t.col,d=t.anchor,u=h(e,n,c+1),f=m(e,r,a),v.rowIndex=a-r,v.colIndex=c-n,d?(b=h(e,n,d[0])+d[1]-s,p=m(e,r,d[2])+d[3]-s,g=h(e,n,d[4])+d[5]+s,y=m(e,r,d[6])+d[7]+s,v.location={x:b-u,y:p-f},v.width=g-b,v.height=y-p,V(e,d)):(v.location={x:i.UnitHelper.pointToPixel(t.marginLeft)-u-s,y:i.UnitHelper.pointToPixel(t.marginTop)-f-s},v.width=k(t.width)+2*s,v.height=k(t.height)+2*s,V(e,l,{x:v.location.x+u,y:v.location.y+f,width:v.width,height:v.height})),S=t.foreColor,S&&S!==i.ExcelColor.EmptyColor&&(v.foreColor=i.ColorHelper.toRGBColor(S)),S=t.backColor,S&&(v.backColor=S.split(" ")[0]),S=t.borderColor,S&&(v.borderColor=S.split(" ")[0]),C=t.borderWidth,C&&(v.borderWidth=k(C)),v.borderStyle=R(t.dashStyle,t.lineStyle),w=t.zIndex,o.J(w)||(v.zIndex=w),w=t.opacity,o.J(w)||(v.opacity=w),t.autoSize&&(v.autoSize=!0),v.locked=t.locked!==!1,v.lockText=t.lockText!==!1,v.dynamicSize=t.dynamicSize!==!1,v.dynamicMove=t.dynamicMove!==!1,w=t.inset,w&&(x=[0,0,0,0],w.trim().split(",").forEach(function(e,t){var r=e||["0.1in","0.05in"][t%2];x[t]=F(r)}),v.padding={left:x[0],top:x[1],right:x[2],bottom:x[3]}),T=["left","center","right"].indexOf(t.hAlign),T!==-1&&(v.horizontalAlign=T),v}t.convertFromExcelComment=T;function v(e,t){var r,n,a,l,c,d,u=t.rowIndex,f=t.colIndex,b=t.location||{x:9,y:-18},p={row:u,col:f};return o.J(t.width)&&(t.width=160),o.J(t.height)&&(t.height=100),t.fontFamily=t.fontFamily||"Arial",t.borderColor=t.borderColor||"black",t.backColor=t.backColor||"#FFFFE1",A(t,p,["zIndex","opacity","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode","backColor","borderColor"]),r=h(e,0,f+1),n=m(e,0,u),p.marginLeft=i.UnitHelper.pixelToPoint(r+b.x+s),p.marginTop=i.UnitHelper.pixelToPoint(n+b.y+s),p.width=i.UnitHelper.pixelToPoint(t.width-2*s)+"pt",p.height=i.UnitHelper.pixelToPoint(t.height-2*s)+"pt",a=t.fontSize||"9pt",a.indexOf("px")!==-1?p.fontSize=i.UnitHelper.pixelToPoint(parseFloat(a)):p.fontSize=a.replace("pt",""),l=t.foreColor,p.foreColor=l&&i.ColorHelper.toExcelColor(l),p.borderWidth=i.UnitHelper.pixelToPoint(t.borderWidth||1)+"pt",c=E(t.borderStyle),p.dashStyle=c.dashStyle,p.lineStyle=c.lineStyle,d=t.padding,d&&(p.inset=[i.UnitHelper.pixelToPoint(d.left)+"pt",i.UnitHelper.pixelToPoint(d.top)+"pt",i.UnitHelper.pixelToPoint(d.right)+"pt",i.UnitHelper.pixelToPoint(d.bottom)+"pt"].join(",")),p.hAlign=["Left","Center","Right"][t.horizontalAlign||0]||"Left",p.visibility=1===t.displayMode?"visible":"hidden",p}t.convertToExcelComment=v;function k(e){return e?i.UnitHelper.pointToPixel(parseFloat(e.replace("pt",""))):0}function F(e){var t=0;return e.indexOf("in")!==-1?t=72*parseFloat(e.replace("in","").trim()):e.indexOf("cm")!==-1?t=72*parseFloat(e.replace("cm","").trim())/2.54:e.indexOf("mm")!==-1?t=72*parseFloat(e.replace("mm","").trim())/25.4:e.indexOf("pt")!==-1&&(t=parseFloat(e.replace("pt","").trim())),i.UnitHelper.pointToPixel(t)}function R(e,t){if(!o.StringEx.L(t))return"double";if(e)switch(e.toLowerCase()){case"solid":return"solid";case"1 1":return"dotted";case"dash":case"dashdot":case"longdash":case"longdashdot":case"longdashdotdot":return"dashed"}return"solid"}function E(e){var t,r;if(e)switch(e.toLowerCase()){case"solid":t="solid";break;case"dotted":t="1 1";break;case"dashed":t="dash";break;case"double":r="thinThin"}return{dashStyle:t,lineStyle:r}}function I(e,t){if(e){var r=e.startPoint,o=e.endPoint;t.startRow=r.row,t.startRowOffset=r.rowOffset,t.startRowOffsetEmu=r.rowOffsetEmu,t.startColumn=r.col,t.startColumnOffset=r.colOffset,t.startColumnOffsetEmu=r.colOffsetEmu,t.endRow=o.row,t.endRowOffset=o.rowOffset,t.endRowOffsetEmu=o.rowOffsetEmu,t.endColumn=o.col,t.endColumnOffset=o.colOffset,t.endColumnOffsetEmu=o.colOffsetEmu}}c=1e5;function L(e){return{l:e.l/c,t:e.t/c,r:e.r/c,b:e.b/c}}function D(e){return{l:parseInt((e.l||0)*c,10),t:parseInt((e.t||0)*c,10),r:parseInt((e.r||0)*c,10),b:parseInt((e.b||0)*c,10)}}function B(e,t,r){var o,i=G(r,t.name,"picture"),n={name:i,alt:t.descr};return A(t,n,["src","isVisible","locked","rot"]),de(t.anchor,e,n,t.xfrm),U(t.pictureFormat,n),o=t.srcRect,o&&(n.srcRect=L(o)),n}t.convertFromExcelPicture=B;function P(e,t){return t.twoCellAnchor=Z(e,t),t}t.convertToExcelSlicer=P;function W(e,t){switch(e){case"solid":return"dbl"===t?"double":"solid";case"dot":case"sysDot":return"dotted"}return"dashed"}function _(e){return!e||"hidden"===e}function N(e){switch(e){case"dotted":return"dot";case"dashed":return"dash";case"double":return"dbl"}return"solid"}function M(e,t){var r,o={},n=t.src;return O(n,o),A(t,o,["name","locked","rot"]),o.descr=t.alt,o.twoCellAnchor=Z(e,t,!0),o.hidden=t.isVisible===!1,o.fillColor=i.ColorHelper.toExcelColor(t.backColor),o.lineBorder={width:_(t.borderStyle)?0:t.borderWidth,color:i.ColorHelper.toExcelColor(t.borderColor),style:N(t.borderStyle),noFill:t.noFill},r=t.srcRect,r&&(o.srcRect=D(r)),o}t.convertToExcelPicture=M,d=";base64,";function O(e,t){var r,o=e.indexOf(d);o>0&&(t.base64Image=e.substr(o+d.length),r=e.substr(0,o).split("/").pop(),"x-icon"===r&&(r="png"),t.imageType=r)}t.getPictureInfo=O;function H(e){if(!e)return!1;var t={};return O(e,t),"svg+xml"===t.imageType}t.isSVGPicture=H;function G(e,t,r){function o(e){return e.name===this.name}function i(t){var r=o.bind({name:t});return void 0!==e.filter(r)[0]}t=t||r;for(var n=t,a=1;i(n);)n=t+"_"+a,a++;return n}function U(e,t){var r,o,n,a,l;return e?(r=e.fillFormat,r&&1===r.fillFormatType&&(t.backColor=i.ColorHelper.toRGBColor(r.color)),o=e.lineFormat,void(o&&(t.borderWidth=o.width,n=o.fillFormat,n&&1===n.fillFormatType?t.borderColor=i.ColorHelper.toRGBColor(n.color):n&&0===n.fillFormatType&&(t.noFill=!0),a=o.lineDashType,a&&(l=o.compoundLineType,t.borderStyle=W(a,l))))):null}u=2;function J(e,t,r){e.rowCount<t&&(e.rowCount=t),e.columnCount<r&&(e.columnCount=r)}function z(e,t){var r=0,o=0,i=t.endPoint;i&&(r=i.row,o=i.col),r+=u,o+=u,J(e,r,o)}t.inflateWorksheetByAnchor=z;function V(e,t,r){var o,i,n;t?(o=t[6]+1,i=t[4]+1):(n=C(e,r),o=n.endPoint.row+u,i=n.endPoint.col+u),J(e,o,i)}function j(e,t,r){var o,i,n,a;return o=h(e,0,t.col)+t.colOffset,i=m(e,0,t.row)+t.rowOffset,n=h(e,0,r.col)+r.colOffset,a=m(e,0,r.row)+r.rowOffset,{x:o,y:i,width:n-o,height:a-i}}t.getBounds=j;function X(e,t){return j(e,t.startPoint,t.endPoint)}function K(e,t){var r=t.startPoint,o=h(e,0,r.col)+r.colOffset,i=m(e,0,r.row)+r.rowOffset;return{x:o,y:i,width:t.width,height:t.height}}function q(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}function Y(e,t,r){var o=e.startPoint,i=e.endPoint,n=o.x*t,a=o.y*r,l=i.x*t,s=i.y*r;return{x:n,y:a,width:l-n,height:s-a}}function Q(e,t,r){var o=e.startPoint;return{x:o.x*t,y:o.y*r,width:e.width,height:e.height}}function Z(e,t,r){var i,n,a;return o.J(t.startRow)?C(e,{x:t.x||0,y:t.y||0,width:t.width||0,height:t.height||0}):(r&&(t=$(e,t)),i={row:t.startRow,rowOffset:t.startRowOffset||0,col:t.startColumn,colOffset:t.startColumnOffset||0},n={row:t.endRow,rowOffset:t.endRowOffset||0,col:t.endColumn,colOffset:t.endColumnOffset||0},a=ne(t.dynamicMove,t.dynamicSize),{startPoint:i,endPoint:n,editAs:a})}function $(e,t){var r=t.pictureStretch;return 0===r?t:1===r?ee(e,t):2===r?te(e,t):3===r?re(e,t):t}function ee(e,t){var r,o,i,n,a,l,s,c,d,u,f=e.rowCount,b=e.columnCount,p=t.width,g=t.height,y=t.startRow,S=t.startRowOffset||0,C=t.startColumn,w=t.startColumnOffset||0,x=t.endRow,A=t.endRowOffset||0,T=t.endColumn,v=t.endColumnOffset||0,k=t.originalWidth,F=t.originalHeight,R=Math.min(p,k),E=Math.min(g,F),I=F>g?S:S+(g-F)/2,L=k>p?w:w+(p-k)/2;for(p=R,g=E,r=0,o=y,i=I,n=!1;o<f;)if(a=m(e,o,o+1),o++,r+=a,!n&&(i-=a),i<0&&!n&&(y=o-1<0?0:o-1,S=a+i,n=!0),r>g+I){x=o-1<0?0:o-1,A=a-(r-g-I);break}for(l=0,s=C,c=L,d=!1;s<b;)if(u=h(e,s,s+1),s++,l+=u,!d&&(c-=u),c<0&&!d&&(C=s-1<0?0:s-1,w=u+c,d=!0),l>p+L){T=s-1<0?0:s-1,v=u-(l-p-L);break}return t.width=p,t.height=g,t.startRow=y,t.startRowOffset=S,t.endRow=x,t.endRowOffset=A,t.startColumn=C,t.startColumnOffset=w,t.endColumn=T,t.endColumnOffset=v,t}function te(e,t){var r,o,i,n,a,l,s,c,d=e.rowCount,u=e.columnCount,f=t.width,b=t.height,p=t.startRow,g=t.startRowOffset||0,y=t.startColumn,S=t.startColumnOffset||0,C=t.endRow,w=t.endRowOffset||0,x=t.endColumn,A=t.endColumnOffset||0,T=t.originalWidth,v=t.originalHeight,k=f/b,F=T/v,R=0,E=0,I=f,L=b;if(b>0&&v>0&&k>F)I=F*b,R=S+f/2-I/2,f=I,b=1/F*f;else{if(!(f>0&&T>0&&1/k>1/F))return t;L=1/F*f,E=g+b/2-L/2,b=L,f=F*b}if(R>0){for(;y<u;)if(r=h(e,y,y+1),y++,R-=r,R<0){y--,S=R+r;break}for(o=0,i=y;i<u;)if(n=h(e,i,i+1),i++,o+=n,o>I+S){A=n-(o-I-S),x=i-1<0?0:i-1;break}}else if(E>0){for(;p<d;)if(a=m(e,p,p+1),p++,E-=a,E<0){p--,g=E+a;break}for(l=0,s=p;s<d;)if(c=m(e,s,s+1),s++,l+=c,l>L+g){w=c-(l-L-g),C=s-1<0?0:s-1;break}}return t.width=f,t.height=b,t.startRow=p,t.startRowOffset=g,t.endRow=C,t.endRowOffset=w,t.startColumn=y,t.startColumnOffset=S,t.endColumn=x,t.endColumnOffset=A,t}function re(e,t){var r,o,i,n,a,l,s=e.rowCount,c=e.columnCount,d=t.width,u=t.height,f=t.startRow,b=t.startRowOffset||0,p=t.startColumn,g=t.startColumnOffset||0,y=t.endRow,S=t.endRowOffset||0,C=t.endColumn,w=t.endColumnOffset||0,x=t.originalWidth,A=t.originalHeight;for(d=Math.min(d,x),u=Math.min(u,A),r=0,o=f;o<s;)if(i=m(e,o,o+1),o++,r+=i,r>u+b){y=o-1<0?0:o-1,S=i-(r-u-b);break}for(n=0,a=p;a<c;)if(l=h(e,a,a+1),a++,n+=l,n>d+g){C=a-1<0?0:a-1,w=l-(n-d-g);break}return t.width=d,t.height=u,t.startRow=f,t.startRowOffset=b,t.endRow=y,t.endRowOffset=S,t.startColumn=p,t.startColumnOffset=g,t.endColumn=C,t.endColumnOffset=w,t}function oe(e,t,r,o){var i=t.anchorType;return 0===i?X(e,t):1===i?K(e,t):2===i?q(t):3===i?Y(t,r,o):4===i?Q(t,r,o):null}function ie(e){var t=e.anchorType||e.editAs||0,r=!0,o=!0;return 2===t?(r=!1,o=!1):1===t&&(o=!1),{dynamicMove:r,dynamicSize:o}}function ne(e,t){var r;return e===!1&&t===!1?r=2:t===!1&&(r=1),r}function ae(e,t,r){var o={x:e.x||0,y:e.y||0,width:e.width||0,height:e.height||0};return{startPoint:{x:(o.x/t).toFixed(5),y:(o.y/r).toFixed(5)},endPoint:{x:((o.x+o.width)/t).toFixed(5),y:((o.y+o.height)/r).toFixed(5)}}}function le(e){var t,r,o;return e?(t=i.ColorHelper.toExcelColor(e),r=t.colorType(),2===r?(o=i.ColorHelper.getRGBAColorData(t),{srgbClr:{val:o.rgb}}):3===r?{schemeClr:{val:t.value()}}:null):null}function se(e,t,r){return{x:e.x*r-e.y*t,y:e.x*t+e.y*r}}f=Math.PI/180/6e4;function ce(e){var t,r,i,n,a,l,s,c,d,u,b,h,p,m,g,y,S,C,w,x;if(e&&!o.J(e.rot))return t=e.rot,r=e.off,i=e.ext,n=r.x,a=r.y,l=i.cx,s=i.cy,c=l/2,d=s/2,u=t*f,b=Math.sin(u),h=Math.cos(u),p=n+c,m=a+d,g=[],y=[],[{x:-c,y:-d},{x:c,y:-d},{x:-c,y:d},{x:c,y:d}].forEach(function(e){var t=se(e,b,h);g.push(t.x+p),y.push(t.y+m)}),S=Math.min.apply(null,g),C=Math.max.apply(null,g),w=Math.min.apply(null,y),x=Math.max.apply(null,y),{x:S,y:w,width:C-S,height:x-w}}function de(e,t,r,o){var i,n,a=ce(o)||oe(t,e),l=ie(e);r.dynamicMove=l.dynamicMove,r.dynamicSize=l.dynamicSize,A(a,r,["x","y","width","height"]),0===e.anchorType?(i=o?C(t,a):e,I(i,r)):i=C(t,a),z(t,i),n=e.clientData,n&&(r.isLocked=n.fLocksWithSheet,r.canPrint=n.fPrintsWithSheet)}function ue(e,t){var r,i,n,a,l,s,c,d,u,f,b;return z(e,t),n=o.Util.za(t),a=n&&n.layoutId,l=o.Util.Aa(a),r=l?t.AlternateContent&&t.AlternateContent.Choice&&t.AlternateContent.Choice.GraphicalObjectFrame&&t.AlternateContent.Choice.GraphicalObjectFrame.nvGraphicFramePr:2===t.shapeType?t.nvGraphicFramePr:t.graphicFrame&&t.graphicFrame.nvGraphicFramePr,i=r&&r.cNvPr,s=G(e.charts,i.name,"chart"),c=t.chartSpace,d={name:s,chartSpace:c,isVisible:!i.hidden,alt:i.descr,AlternateContent:t.AlternateContent},de(t,e,d,t.xfrm),u=d.width,f=d.height,b=c.userShapes,b&&(c.userShapes=b.map(function(t){return t.pic?me(e,t,u,f):t.graphicFrame?he(e,t,u,f):void 0})),d}t.convertFromExcelChart=ue;function fe(e,t){var r,o=t.shapeData;return o.editAs=ne(t.dynamicMove,t.dynamicSize),o.clientData={fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},r=t.alt,r&&(o.sp?o.sp.nvSpPr.cNvPr.descr=r:o.cxnSp?o.cxnSp.nvCxnSpPr.cNvPr.descr=r:o.grpSp?o.grpSp.nvGrpSpPr.cNvPr.descr=r:o.pic&&(o.pic.nvPicPr.cNvPr.descr=r)),o}t.convertToExcelShape=fe;function be(e,t){var r,i=Z(e,t),n=t.isVisible,a=t.chartSpace,l={anchorType:0,startPoint:i.startPoint,endPoint:i.endPoint,editAs:i.editAs,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:t.name,descr:t.alt||"",hidden:!o.J(n)&&!n}}},clientData:{fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},chartSpace:a,AlternateContent:t.AlternateContent},s=1,c=a.userShapes;return c&&c.length>0&&(r=c.map(function(e){var r;return"1"===e.typeName?(r=ge(e,s,t.width,t.height),s++):"2"===e.typeName&&(r=pe(e,s,t.width,t.height),s++),r}).filter(function(e){return!!e}),r.length>0?a.userShapes={relSizeAnchor:r}:delete a.userShapes),l}t.convertToExcelChart=be;function he(e,t,r,o){var i=t.graphicFrame&&t.graphicFrame.nvGraphicFramePr&&t.graphicFrame.nvGraphicFramePr.cNvPr&&t.graphicFrame.nvGraphicFramePr.cNvPr,n=G(e.charts,i.name,"chart"),a=oe(e,t,r,o),l={name:n,chartSpace:t.chartSpace,isVisible:!i.hidden,alt:i.descr};return A(a,l,["x","y","width","height"]),l}function pe(e,t,r,i){var n=ae(e,r,i),a=e.isVisible;return{typeName:e.typeName,anchorType:3,startPoint:n.startPoint,endPoint:n.endPoint,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:e.name,descr:e.alt||"",hidden:!o.J(a)&&!a}}},chartSpace:e.chartSpace}}function me(e,t,r,o){var i,n,a,l,s,c=t.pic&&t.pic.nvPicPr&&t.pic.nvPicPr.cNvPr,d=c.name,u=e.floatingObjects;return u&&(d=G(u,d,"picture")),i=t.pic&&t.pic.blipFill,n=i&&i.blip&&i.blip.blipBlob,a=n&&n.blob,l={name:d,alt:c.descr,src:a,isVisible:!c.hidden},s=oe(e,t,r,o),A(s,l,["x","y","width","height"]),U(t.pictureFormat,l),l}function ge(e,t,r,o){var i,a,l=ae(e,r,o),s={typeName:e.typeName,anchorType:3,startPoint:l.startPoint,endPoint:l.endPoint,pic:{nvPicPr:{cNvPr:{name:e.name,descr:e.alt||""},cNvPicPr:{picLocks:{}}},spPr:{ln:{w:_(e.borderStyle)?0:e.borderWidth},prstGeom:{prst:1,avLst:{}}}},src:e.src},c=s.pic.spPr,d=c.ln,u=le(e.backColor);return u&&(c.solidFill=u),i=le(e.borderColor),i&&(d.solidFill=i),a=N(e.borderStyle),"dbl"===a?d.cmpd=n.Charts.ST_CompoundLine[a]:d.prstDash=n.Charts.ST_PresetLineDashVal[a],s}function ye(e,t){return!(!e||!t||e.color!==t.color||e.type!==t.type)||!e&&!t}t.isBorderEqual=ye,b={backColor:2,foreColor:0,borderBottom:1,borderLeft:1,borderRight:1,borderTop:1,font:0,textDecoration:0};function Se(e,t){var r,i={};for(r in e)e.hasOwnProperty(r)&&(0===b[r]?e[r]!==t[r]&&(i[r]=e[r]):1===b[r]?ye(e[r],t[r])||(i[r]=e[r]):2===b[r]?o.Util.Da(e[r],t[r])||(i[r]=e[r]):i[r]=e[r]);return i}t.processTableCellStyle=Se;function Ce(e,t){var r,o={};for(r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);for(r in b)void 0===e[r]&&void 0!==t[r]&&(o[r]=t[r]);return o}t.resetTableCellStyle=Ce;function we(e,t){var r,o="png",i=e.lastIndexOf(".");return i!==-1&&(o=e.substr(i+1)),"svg"===o&&(o="svg+xml"),r=t(e,!0),r?"data:image/"+o+";base64,"+r:l}t.getImageContent=we;function xe(e){return JSON.parse(JSON.stringify(e))}function Ae(e){var t=e.sp||e.cxnSp||e.grpSp;return t&&(t.spPr&&t.spPr.xfrm||t.grpSpPr&&t.grpSpPr.xfrm)}t.getXFrm=Ae;function Te(e,t){if(e&&5===e.shapeType){var r=t[e.nvSpPr.cNvPr.id];r&&(e.shapeType=7,e.control=r)}}function ve(e,t){var r=e&&e.sp||[];r.forEach(function(e){5===e.shapeType?Te(e,t):3===e.shapeType&&ve(e,t)})}function ke(e,t){var r,o,i={},n=e.controls||{};return de(t,e,i),t.sp?(Te(t.sp,n),i.shapeType=t.sp.shapeType,i.name=t.sp.nvSpPr.cNvPr.name,i.alt=t.sp.nvSpPr.cNvPr.descr,i.shapeData=xe(t)):t.cxnSp?(i.shapeType=t.cxnSp.shapeType,i.name=t.cxnSp.nvCxnSpPr.cNvPr.name,i.alt=t.cxnSp.nvCxnSpPr.cNvPr.descr,i.shapeData=xe(t)):t.grpSp?(ve(t.grpSp,n),i.shapeType=t.grpSp.shapeType,i.name=t.grpSp.nvGrpSpPr.cNvPr.name,i.alt=t.grpSp.nvGrpSpPr.cNvPr.descr,i.shapeData=xe(t)):t.pic&&(r=t.pic,i.shapeType=r.shapeType,i.name=r.nvPicPr.cNvPr.name,i.alt=r.nvPicPr.cNvPr.descr,i.shapeData=xe(t)),o=i.shapeData,o&&o.hidden&&(o.isVisible=!1,i.isVisible=!1,delete o.hidden),i}t.convertFromExcelShape=ke,t.toProtectionOptions={selectLockedCells:"allowSelectLockedCells",selectUnlockedCells:"allowSelectUnlockedCells",autoFilter:"allowFilter",sort:"allowSort",insertColumns:"allowInsertColumns",insertRows:"allowInsertRows",deleteColumns:"allowDeleteColumns",deleteRows:"allowDeleteRows",objects:"allowEditObjects"},t.fromProtectionOptions={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},t.excelSupportProtectionOptions={formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,sort:!0,autoFilter:!0,pivotTables:!0};function Fe(e){return Ee(e)?(e>4294934530&&e<4294967296&&(e-=4294967296),e):e}t.convertFirstPageNumber=Fe;function Re(e){return Ee(e)?(e<0&&(e+=4294967296),e):e}t.convertFirstPageNumberToExcel=Re;function Ee(e){return"string"==typeof e&&(e=+e),!(isNaN(e)||!isFinite(e))}},"./src/datamodel/excel-style.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B,P,W,_,N,M,O,H,G;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/builtIn-resource.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xml-io/xml-reader.ts"),l=r("./src/xlsx-io/reader/style-reader.ts"),s=null,c=void 0,d="Headings",u="Body",f="Calibri",b="bold",h="italic",function(e){e[e.none=0]="none",e[e.major=1]="major",e[e.minor=2]="minor",e[e.ninched=255]="ninched"}(p=t.FontSchemeCategory||(t.FontSchemeCategory={})),function(e){e[e.top=0]="top",e[e.center=1]="center",e[e.bottom=2]="bottom",e[e.justify=3]="justify",e[e.distributed=4]="distributed"}(m=t.ExcelVerticalAlignment||(t.ExcelVerticalAlignment={})),function(e){e[e.general=0]="general",e[e.left=1]="left",e[e.center=2]="center",e[e.right=3]="right",e[e.fill=4]="fill",e[e.justify=5]="justify",e[e.centerContinuous=6]="centerContinuous",e[e.distributed=7]="distributed"}(g=t.ExcelHorizontalAlignment||(t.ExcelHorizontalAlignment={})),function(e){e[e.accordingToContext=0]="accordingToContext",e[e.leftToRight=1]="leftToRight",e[e.rightToLeft=2]="rightToLeft"}(y=t.TextDirection||(t.TextDirection={})),function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.double=2]="double",e[e.singleaccounting=3]="singleaccounting",e[e.doubleaccounting=4]="doubleaccounting"}(S=t.UnderLineStyle||(t.UnderLineStyle={})),function(e){e[e.baseLine=0]="baseLine",e[e.superscript=1]="superscript",e[e.subscript=2]="subscript"}(C=t.VertAlign||(t.VertAlign={})),function(e){e[e.none=0]="none",e[e.thin=1]="thin",e[e.medium=2]="medium",e[e.dashed=3]="dashed",e[e.dotted=4]="dotted",e[e.thick=5]="thick",e[e.double=6]="double",e[e.hair=7]="hair",e[e.mediumDashed=8]="mediumDashed",e[e.dashDot=9]="dashDot",e[e.mediumDashDot=10]="mediumDashDot",e[e.dashDotDot=11]="dashDotDot",e[e.mediumDashDotDot=12]="mediumDashDotDot",e[e.slantDashDot=13]="slantDashDot"}(w=t.ExcelBorderStyle||(t.ExcelBorderStyle={})),function(e){e[e.none=0]="none",e[e.solid=1]="solid",e[e.darkGray=2]="darkGray",e[e.mediumGray=3]="mediumGray",e[e.lightGray=4]="lightGray",e[e.gray125=5]="gray125",e[e.gray0625=6]="gray0625",e[e.darkHorizontal=7]="darkHorizontal",e[e.darkVertical=8]="darkVertical",e[e.darkDown=9]="darkDown",e[e.darkUp=10]="darkUp",e[e.darkGrid=11]="darkGrid",e[e.darkTrellis=12]="darkTrellis",e[e.lightHorizontal=13]="lightHorizontal",e[e.lightVertical=14]="lightVertical",e[e.lightDown=15]="lightDown",e[e.lightUp=16]="lightUp",e[e.lightGrid=17]="lightGrid",e[e.lightTrellis=18]="lightTrellis"}(x=t.FillPatternType||(t.FillPatternType={})),A=function(){function e(e,t,r){var o=this;if(3===e&&t>11&&241!==t&&242!==t&&243!==t&&244!==t&&255!==t)throw Error("themeColorIndexError");if(r>1||r<-1)throw Error("colorTintError");1===e&&32767===t&&(o.Vj=!0),o.Wj=e||2,o.Xj=t||0,o.Yj=r||0}return e.prototype.colorType=function(){return this.Wj},e.prototype.value=function(){return this.Xj},e.prototype.tint=function(){return this.Yj},e.prototype.isAutoColor=function(e){var t=this;return 0===arguments.length?t.Vj:void("boolean"==typeof e&&e!==t.Vj&&(t.Vj=e))},e.prototype.isIndexedColor=function(){return 1===this.Wj},e.prototype.isRGBColor=function(){return 2===this.Wj},e.prototype.isThemeColor=function(){return 3===this.Wj},e.prototype.equals=function(e){return this===e||!!e&&(this.Wj===e.colorType()&&this.value()===e.value()&&this.tint()===e.tint()&&this.isAutoColor()===e.isAutoColor())},e.EmptyColor=new e,e}(),t.ExcelColor=A,T=function(){function e(e,t){this.color=e||null,this.lineStyle=t||0}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.color?t.color.equals(e.color)&&t.lineStyle===e.lineStyle:!e.color&&t.lineStyle===e.lineStyle)},e.prototype.isDefault=function(){return null===this.color&&0===this.lineStyle},e}(),t.ExcelBorderSide=T,v=function(){function e(){var e=this;e.left=new T,e.top=new T,e.right=new T,e.bottom=new T,e.diagonalUp=new T,e.diagonalDown=new T}return e.prototype.clone=function(){var t=this,r=new e;return r.left=t.left?new T(t.left.color,t.left.lineStyle):t.left,r.right=t.right?new T(t.right.color,t.right.lineStyle):t.right,r.top=t.top?new T(t.top.color,t.top.lineStyle):t.top,r.bottom=t.bottom?new T(t.bottom.color,t.bottom.lineStyle):t.bottom,r.diagonalUp=t.diagonalUp?new T(t.diagonalUp.color,t.diagonalUp.lineStyle):t.diagonalUp,r.diagonalDown=t.diagonalDown?new T(t.diagonalDown.color,t.diagonalDown.lineStyle):t.diagonalDown,r},e.prototype.compose=function(e){var t=this;t.left&&t.left.isDefault()&&(t.left=e.left),t.right&&t.right.isDefault()&&(t.right=e.right),t.top&&t.top.isDefault()&&(t.top=e.top),t.bottom&&t.bottom.isDefault()&&(t.bottom=e.bottom),t.diagonalUp&&t.diagonalUp.isDefault()&&(t.diagonalUp=e.diagonalUp),t.diagonalDown&&t.diagonalDown.isDefault()&&(t.diagonalDown=e.diagonalDown)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.left.equals(e.left)&&t.right.equals(e.right)&&t.top.equals(e.top)&&t.bottom.equals(e.bottom)&&t.diagonalUp.equals(e.diagonalUp)&&t.diagonalDown.equals(e.diagonalDown))},e}(),t.ExcelBorder=v,k=function(){
29
- function e(){}return e.prototype.clone=function(){var t=this,r=new e;return r.bgColor=t.bgColor,r.fgColor=t.fgColor,r.patternType=t.patternType,r.stops=t.stops,r.type=t.type,r.degree=t.degree,r.left=t.left,r.right=t.right,r.top=t.top,r.bottom=t.bottom,r},e.prototype.compose=function(e){var t=this;t.bgColor===c&&(t.bgColor=e.bgColor),t.fgColor===c&&(t.fgColor=e.fgColor),t.patternType===c&&(t.patternType=e.patternType),t.stops===c&&(t.stops=e.stops),t.type===c&&(t.type=e.type),t.degree===c&&(t.degree=e.degree),t.left===c&&(t.left=e.left),t.right===c&&(t.right=e.right),t.top===c&&(t.top=e.top),t.bottom===c&&(t.bottom=e.bottom)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&JSON.stringify(t)===JSON.stringify(e)},e.Default=function(){return e.Zj||(e.Zj=new e,e.Zj.bgColor=c,e.Zj.fgColor=c,e.Zj.patternType=0),e.Zj},e}(),t.ExcelFill=k,F=function(){function e(e,t,r){var o=this;void 0!==t?o.fontColor=t:o.fontColor=null,void 0!==e?o.fontName=e:o.fontName=null,void 0!==r?o.fontFamily=r:o.fontFamily=0,o.isAutoColor=!1,o.isBold=!1,o.isItalic=!1,o.isOutlineStyle=!1,o.isShadowStyle=!1,o.isStrikeOut=!1,o.fontScheme=0,o.fontSize=11,o.charSetIndex=0,o.underLineStyle=0,o.vertAlign=0,o.Zj=null}return e.prototype.equals=function(e){var t,r=this;return r===e||!!e&&(t=r.isBold===e.isBold&&r.isItalic===e.isItalic&&this.isOutlineStyle===e.isOutlineStyle&&this.isShadowStyle===e.isShadowStyle&&this.isStrikeOut===e.isStrikeOut&&this.fontName===e.fontName&&this.fontFamily===e.fontFamily&&this.fontSize===e.fontSize&&this.charSetIndex===e.charSetIndex&&this.underLineStyle===e.underLineStyle&&this.vertAlign===e.vertAlign&&this.fontScheme===e.fontScheme,!!t&&(!r.fontColor&&!e.fontColor||!(!r.fontColor&&e.fontColor)&&(!(r.fontColor&&!e.fontColor)&&r.fontColor.equals(e.fontColor))))},e.prototype.clone=function(){var t=this,r=new e(t.fontName,t.fontColor,t.fontFamily);return r.isAutoColor=t.isAutoColor,r.isBold=t.isBold,r.isItalic=t.isItalic,r.isOutlineStyle=t.isOutlineStyle,r.isShadowStyle=t.isShadowStyle,r.isStrikeOut=t.isStrikeOut,r.fontScheme=t.fontScheme,r.fontSize=t.fontSize,r.charSetIndex=t.charSetIndex,r.underLineStyle=t.underLineStyle,r.vertAlign=t.vertAlign,r.fontColor=t.fontColor,r},e.prototype.Default=function(){var t=this;return t.Zj||(t.Zj=new e,t.Zj.fontSize=11,t.Zj.fontFamily=2,t.Zj.fontColor=new A(1,0,0),t.Zj.fontName="Calibri",t.Zj.charSetIndex=0),t.Zj},e.prototype.compose=function(e){var t=this;null===t.fontColor&&(t.fontColor=e.fontColor),null===t.fontName&&(t.fontName=e.fontName),0===t.fontFamily&&(t.fontFamily=e.fontFamily),t.isAutoColor===!1&&(t.isAutoColor=e.isAutoColor),t.isBold===!1&&(t.isBold=e.isBold),t.isItalic===!1&&(t.isItalic=e.isItalic),t.isOutlineStyle===!1&&(t.isOutlineStyle=e.isOutlineStyle),t.isShadowStyle===!1&&(t.isShadowStyle=e.isShadowStyle),t.isStrikeOut===!1&&(t.isStrikeOut=e.isStrikeOut),0===t.fontScheme&&(t.fontScheme=e.fontScheme),11===t.fontSize&&(t.fontSize=e.fontSize),0===t.charSetIndex&&(t.charSetIndex=e.charSetIndex),0===t.underLineStyle&&(t.underLineStyle=e.underLineStyle),0===t.vertAlign&&(t.vertAlign=e.vertAlign),null===t.Zj&&(t.Zj=e.Zj)},e}(),t.ExcelFont=F,R=function(){function e(e,t){this.numberFormatId=e,this.numberFormatCode=t}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.numberFormatId===e.numberFormatId&&t.numberFormatCode===e.numberFormatCode)},e.prototype.compose=function(e){var t=this;t.numberFormatId===c&&(t.numberFormatId=e.numberFormatId),t.numberFormatCode===c&&(t.numberFormatCode=e.numberFormatCode)},e.prototype.clone=function(){var t=this;return new e(t.numberFormatId,t.numberFormatCode)},e}(),t.ExcelNumerFormat=R,E=function(){function e(){var e=this;e.font=(new F).Default(),e.border=new v,e.applyAlignment=c,e.applyBorder=c,e.applyFill=c,e.applyFont=c,e.applyNumberFormat=c,e.applyProtection=c,e.quotePrefix=c,e.fill=k.Default(),e.numberFormatIndex=0,e.numberFormat=c,e.isStyleFormat=!1,e.parentFormatID=c,e.parentName=c,e.horizontalAlign=0,e.verticalAlign=0,e.isLocked=!1,e.rotation=0,e.isWordWrap=!1,e.isJustfyLastLine=!1,e.isShrinkToFit=!1,e.isFirstSymbolApostrophe=!1,e.readingOrder=0,e.isHidden=!1,e.indent=0,e.isVerticalText=!1}return e.Default=function(){var t=new e;return t.numberFormatIndex=0,t.isLocked=!0,t.verticalAlign=2,t.horizontalAlign=0,t},e.prototype.copyFrom=function(e){var t=this;t.applyAlignment=e.applyAlignment,t.applyBorder=e.applyBorder,t.applyFill=e.applyFill,t.applyFont=e.applyFont,t.applyNumberFormat=e.applyNumberFormat,t.applyProtection=e.applyProtection,t.fill=null!==e.fill?e.fill.clone():null,t.border=null!==e.border?e.border.clone():null,t.font=null!==e.font?e.font.clone():null,t.numberFormatIndex=e.numberFormatIndex,t.numberFormat=e.numberFormat,t.isStyleFormat=e.isStyleFormat,t.parentFormatID=e.parentFormatID,t.horizontalAlign=e.horizontalAlign,t.verticalAlign=e.verticalAlign,t.isLocked=e.isLocked,t.rotation=e.rotation,t.isWordWrap=e.isWordWrap,t.isJustfyLastLine=e.isJustfyLastLine,t.isShrinkToFit=e.isShrinkToFit,t.isFirstSymbolApostrophe=e.isFirstSymbolApostrophe,t.readingOrder=e.readingOrder,t.isHidden=e.isHidden,t.indent=e.indent,t.quotePrefix=e.quotePrefix},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.equals=function(e,t,r){var o,i=this;if(i===e)return!0;if(!e)return!1;if(!i.numberFormat&&e.numberFormat)return!1;if(o=i.numberFormatIndex===e.numberFormatIndex&&i.horizontalAlign===e.horizontalAlign&&i.verticalAlign===e.verticalAlign&&i.isLocked===e.isLocked&&i.rotation===e.rotation&&i.isWordWrap===e.isWordWrap&&i.isJustfyLastLine===e.isJustfyLastLine&&i.isShrinkToFit===e.isShrinkToFit&&i.isFirstSymbolApostrophe===e.isFirstSymbolApostrophe&&i.readingOrder===e.readingOrder&&i.isHidden===e.isHidden&&i.indent===e.indent&&i.parentFormatID===e.parentFormatID&&i.quotePrefix===e.quotePrefix&&i.border.equals(e.border)&&i.isVerticalText===e.isVerticalText,t||(o=o&&i.parentName===e.parentName),r||(o=o&&i.applyAlignment===e.applyAlignment&&i.applyBorder===e.applyBorder&&i.applyFill===e.applyFill&&i.applyFont===e.applyFont&&i.applyNumberFormat===e.applyNumberFormat&&i.applyProtection===e.applyProtection),i.font)o=o&&i.font.equals(e.font);else if(e.font)return!1;if(i.numberFormat&&(o=o&&i.numberFormat.equals(e.numberFormat)),i.fill)o=o&&i.fill.equals(e.fill);else if(e.fill)return!1;return o},e}(),t.ExtendedFormat=E,I=function(){function e(){this.$j=null,this.builtInStyle=0,this.category=0,this.isCustomBuiltin=!1,this.name=null,this.outLineLevel=0}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):void(t.$j=e)},e.prototype.copy=function(){var t=this,r=new e;return r.builtInStyle=t.builtInStyle,r.outLineLevel=t.outLineLevel,r.isCustomBuiltin=t.isCustomBuiltin,r.category=t.category,r.name=t.name,r.format(t.format().clone()),r},e.prototype.isBuiltInStyle=function(){return!0},e.prototype.getBuiltInStyleCategory=function(){var e=this;if(!e.isBuiltInStyle())return 0;switch(e.builtInStyle){case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 2:case 1:return 4;case 24:return 1;case 19:return 2;case 20:return 2;case 3:case 6:case 4:case 7:return 5;case 49:return 2;case 23:return 1;case 13:case 14:case 15:case 16:return 3;case 17:return 2;case 21:return 2;case 25:return 1;case 0:return 1;case 10:case 18:return 2;case 5:return 5;case 12:case 22:return 3;case 11:return 2;default:return 0}},e}(),t.ExcelStyle=I,L=function(){function e(){this.$j=null,this.name=null}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):(t.$j=e,this)},e.prototype.copy=function(){var t=new e;return t.name=this.name,t.format(this.format().clone()),t},e.prototype.isBuiltInStyle=function(){return!1},e}(),t.CustomExcelStyle=L,D=function(){function e(){}return e.initBuiltInExcelStyleCollections=function(){var t,r,o,n,s,c,d,u;if(e.builtInStyles.length=0,t=i.BuiltInStylesResource)for(r=new a.XmlReader,r.reset(),r.setXml(t),o=[],n=[],s=[],c=[],d={};r.read();)if(1===r.depth&&2!==r.elementType)switch(r.name()){case"numFmts":l.readNumberFormats(r,d);break;case"fonts":l.readFonts(r,o);break;case"fills":l.readFills(r,n);break;case"borders":l.readBorders(r,s);break;case"cellStyleXfs":l.readXFs(r,c,o,s,d,n,!0);break;case"cellStyles":for(u=r.depth;r.read();){if(r.depth<=u)return;1===r.nodeType()&&"cellStyle"===r.name()&&U(r,c,d)}}},e.getBuiltInStyles=function(){var t,r,o=e.builtInStyles.length;for(47!==o&&e.initBuiltInExcelStyleCollections(),t=[],o=e.builtInStyles.length,r=0;r<o;r++)t.push(e.builtInStyles[r].copy());return t},e.getNormalStyle=function(){var e,t=new E;return t.font=new F,t.font.fontColor=new A(3,1),t.font.fontSize=11,t.font.fontName="Calibri",e=new I,e.format(t),e.name="Normal",e.builtInStyle=0,e},e.builtInStyles=[],e}(),t.BuiltInExcelStyles=D;function U(e,t,r){for(var o,i,n=c,a=0,l=0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":n=e.readContentAsString();break;case"xfId":a=e.readContentAsInt(0);break;case"builtinId":l=e.readContentAsInt(0)}o=t[a],o.isStyleFormat=!0,i=new I,i.name=n,i.format(o.clone()),!i.format().numberFormat&&r[i.format().numberFormatIndex]&&(i.format().numberFormat=r[i.format().numberFormatIndex],i.format().numberFormatIndex=0),i.isCustomBuiltin=!1,i.builtInStyle=l,i.category=i.getBuiltInStyleCategory(),D.builtInStyles.push(i)}B=function(){function e(){}return e.builtInNumberFomrat=function(){return e._j||(e._j={count:0}),0===e._j.count&&e.initBuintNumberFormat(),e._j},e.languageIndepedentNumberFormat=function(){return e.ak||(e.ak={count:0}),0===e.ak.count&&e.initLanguageIndepedentNumberFormat(),e.ak},e.formatCodeTable=function(){return e.ck||(e.ck=[]),e.ck},e.customNumberFormat=function(){return e.dk||(e.dk={count:0}),e.dk},e.getCultureInfo=function(){var e=o.K(),t=e&&e.GC&&e.GC.Spread&&e.GC.Spread.Common&&o.K().GC.Spread.Common.CultureManager.getCultureInfo();return t||o.Ga()},e.initBuintNumberFormat=function(){var t,r,i,n,a,l,s,c=e._j;if(c[0]="General",c[1]="0",c[2]="0.00",c[3]="#,##0",c[4]="#,##0.00",c[9]="0%",c[10]="0.00%",c[11]="0.00E+00",c[12]="# ?/?",c[13]="# ??/??",c[14]="m/d/yyyy",c[15]="d-mmm-yy",c[16]="d-mmm",c[17]="mmm-yy",c[18]="h:mm AM/PM",c[19]="h:mm:ss AM/PM",c[20]="h:mm",c[21]="h:mm:ss",c[22]="m/d/yyyy h:mm",c[37]="#,##0_);(#,##0)",c[38]="#,##0_);[Red](#,##0)",c[39]="#,##0.00_);(#,##0.00)",c[40]="#,##0.00_);[Red](#,##0.00)",c[45]="mm:ss",c[46]="[h]:mm:ss",c[47]="mm:ss.0",c[48]="##0.0E+0",c[49]="@",c.count=49,o.Fa())if(t=o.Fa(),"zh-cn"===t)c[14]="yyyy/m/d",c[17]="mmm-yy",c[22]="yyyy/m/d h:mm",c[27]='yyyy"\u5e74"m"\u6708"',c[28]='m"\u6708"d"\u65e5"',c[29]='m"\u6708"d"\u65e5"',c[30]="m-d-yy",c[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',c[32]='h"\u65f6"mm"\u5206"',c[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',c[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',c[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',c[36]='yyyy"\u5e74"m"\u6708"',c[39]="#,##0.00;-#,##0.00",c[40]="#,##0.00;[Red]-#,##0.00",c[50]='yyyy"\u5e74"m"\u6708"',c[51]='m"\u6708"d"\u65e5"',c[52]='yyyy"\u5e74"m"\u6708"',c[53]='m"\u6708"d"\u65e5"',c[54]='m"\u6708"d"\u65e5"',c[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',c[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',c[57]='yyyy"\u5e74"m"\u6708"',c[58]='m"\u6708"d"\u65e5"',c.count=58;else if("ja-jp"===t)c[14]="yyyy/m/d",c[15]="dd-mmm-yy",c[16]="dd-mmm",c[17]="mmm-yy",c[22]="yyyy/mm/dd h:mm",c[27]="[$-411]ge.m.d",c[28]='[$-411]ggge"\u5e74"m"\u6708"d"',c[29]='[$-411]ggge"\u5e74"m"\u6708"d"',c[30]="m/d/yy",c[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',c[32]='h"\u6642"mm"\u5206"',c[33]='h"\u6642"mm"\u5206"ss"\u79d2"',c[34]='yyyy"\u5e74"m"\u6708"',c[35]='m"\u6708"d"\u65e5"',c[36]="[$-411]ge.m.d",c[38]="#,##0;[Red]-#,##0",c[39]="#,##0.00;-#,##0.00",c[40]="#,##0.00;[Red]-#,##0.00",c[50]="[$-411]ge.m.d",c[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c[52]='yyyy"\u5e74"m"\u6708"',c[53]='m"\u6708"d"\u65e5"',c[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c[55]='yyyy"\u5e74"m"\u6708"',c[56]='m"\u6708"d"\u65e5"',c[57]="[$-411]ge.m.d",c[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c.count=58;else{if(r=e.getCultureInfo(),i=r&&r.LocalNumberFormat,o.isNullOrUndefined(i)||Array.isArray(i)||"object"!=typeof i)return;for(n in i)isNaN(+n)||(a=i[n],o.Util.Ca(a)&&(c[n]=i[n]));l=0;for(n in c)isNaN(+n)||(s=+n,s>l&&(l=s));c.count=l}},e.initLanguageIndepedentNumberFormat=function(){var t=e.ak;t[27]="m/d/yyyy",t[28]="m/d/yyyy",t[29]="m/d/yyyy",t[30]="m/d/yyyy",t[31]="m/d/yyyy",t[32]="h:mm:ss",t[33]="h:mm:ss",t[34]="m/d/yyyy",t[35]="m/d/yyyy",t[36]="m/d/yyyy",t[50]="m/d/yyyy",t[51]="m/d/yyyy",t[52]="m/d/yyyy",t[53]="m/d/yyyy",t[54]="m/d/yyyy",t[55]="m/d/yyyy",t[56]="m/d/yyyy",t[57]="m/d/yyyy",t[58]="m/d/yyyy"},e.getFormatCode=function(t){var r,o,i,n=e.builtInNumberFomrat(),a=e.customNumberFormat(),l=e.languageIndepedentNumberFormat(),s=t.numberFormatIndex;return t.numberFormat?(r=t.numberFormat,o=r.numberFormatId,i=r.numberFormatCode,n[o]&&n[o]!==i?(n[o]=i,i):(a[i]||(a[i]=o,a.count++),i)):n[s]?n[s]:l[s]?l[s]:"General"},e.getFormatId=function(t){var r,o,i,n,a,l,s,c=e.ek();if(c[t])return c[t];if(o=e.builtInNumberFomrat())for(i in o)if(o[i]===t)return r={isBuiltIn:!0,id:parseInt(i,10)},c[t]=r,r;if(n=e.customNumberFormat(),n&&n[t])return r={isBuiltIn:!1,id:n[t]},c[t]=r,r;if(a=0,n.count>0){l=0;for(s in n)n[s]>l&&(l=n[s]);a=l}return a=Math.max(e.fk,a)+1,e.fk++,n[t]=a,r={isBuiltIn:!1,id:a}},e.ek=function(){return e.gk||(e.gk={}),e.gk},e.ck=null,e.gk=null,e._j={count:0},e.ak={count:0},e.dk={count:0},e.fk=170,e}(),t.ExtendedNumberFormatHelper=B;function J(e,t){var r=Math.pow(10,t);return Math.round(e*r)/r}P=function(){function e(){}return e.pointToPixel=function(e,t){return void 0===t&&(t=2),J(96*e/72,t)},e.pixelToPoint=function(e){return 72*e/96},e.emuToPixles=function(e,t){return J(96*e/914400,t||2)},e.pixelToEMU=function(e){return Math.round(914400*e/96)},e.getMaxiumDigitWidth=function(t){var r,o,i,a,l,s,c=0,d=e.hk();if(d[t])return d[t];try{if(e.ik||(e.ik=document.createElement("span")),r=e.ik,r.style.font=t,o=r.style.fontSize,o.indexOf("px")!==-1?o=Math.round(e.pixelToPoint(parseFloat(o))):o.indexOf("pt")!==-1&&(o=Math.round(parseFloat(o))),!isNaN(o)&&o||(o=Math.round(e.pixelToPoint(parseFloat(t.match(/(\d|\.)+/))))),i=r.style.fontFamily,i||t.split(" ").forEach(function(e){"normal"!==e&&"italic"!==e&&"bold"!==e&&e.indexOf("px")===-1&&e.indexOf("pt")===-1&&isNaN(e)&&(i=e)}),n.unknownFontMaxDigitWidthMap[o]&&n.unknownFontMaxDigitWidthMap[o][i]?c=n.unknownFontMaxDigitWidthMap[o][i]:n.MaxDigitWidthMap[o]&&n.MaxDigitWidthMap[o][i]&&(c=n.MaxDigitWidthMap[o][i]),c>0)return c=Math.round(c),d[t]=c,c}catch(e){}for(a="0123456789",l=0,s=0;s<a.length;s++)l=e.measureText(a.charAt(s),t),l>c&&(c=l);return c>0?(c=Math.round(c),d[t]=c,c):(d[t]=7,d[t])},e.truncate=function(e){return Math.floor(e)},e.hk=function(){return e.jk||(e.jk={}),e.jk},e.measureText=function(t,r){var o,i;function n(){return e.kk||(e.kk=document.createElement("canvas")),e.kk}try{return o=n(),i=o.getContext("2d"),i.font=r,i.measureText(t).width}catch(e){return 8}},e.ik=null,e.jk=null,e.kk=null,e}(),t.UnitHelper=P,W=function(){function e(e,t,r,o){var i=this;i.a=e,i.r=t,i.g=r,i.b=o}return e.prototype.toString=function(){var e=this;return 255===e.a?"#"+e.getColorUnitString(e.r)+e.getColorUnitString(e.g)+e.getColorUnitString(e.b):"rgba("+e.r+","+e.g+","+e.b+","+e.a+")"},e.prototype.getColorUnitString=function(e){var t=e.toString(16);return 1===t.length&&(t="0"+t),t},e.hueToRGB=function(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e},e.fromHLS=function(t,r,o){var i,n,a,l,s;return 0===o?i=n=a=parseInt(255*r/240,10):(l=void 0,s=void 0,s=r<=120?(r*(240+o)+120)/240:r+o-(r*o+120)/240,l=2*r-s,i=parseInt((255*e.hueToRGB(l,s,t+80)+120)/240,10),n=parseInt((255*e.hueToRGB(l,s,t)+120)/240,10),a=parseInt((255*e.hueToRGB(l,s,t-80)+120)/240,10)),new e(255,i,n,a)},e}(),t.lk=W,_=function(){function e(e){var t,r,o,i,n=this,a=e.r,l=e.g,s=e.b,c=Math.max(Math.max(a,l),s),d=Math.min(Math.min(a,l),s),u=c+d;n.luminosity=parseInt(""+(240*u+255)/510,10),t=c-d,0===t?(n.saturation=0,n.hue=160):(n.luminosity<=120?n.saturation=parseInt(""+(240*t+u/2)/u,10):n.saturation=parseInt(""+(240*t+(510-u)/2)/(510-u),10),r=(40*(c-a)+t/2)/t,o=(40*(c-l)+t/2)/t,i=(40*(c-s)+t/2)/t,a===c?n.hue=parseInt(""+(i-o),10):l===c?n.hue=parseInt(""+(80+r-i),10):n.hue=parseInt(""+(160+o-r),10),n.hue<0&&(n.hue+=240),n.hue>240&&(n.hue-=240))}return e.prototype.toColor=function(){return W.fromHLS(this.hue,this.luminosity,this.saturation)},e}(),N=function(){function e(){}return e.getThemeColorName=function(e){if(!e||3!==e.colorType())return null;var t=Math.round(100*e.tint());return 0===e.value()||243===e.value()?"Background 1 "+t:1===e.value()||241===e.value()?"Text 1 "+t:2===e.value()||244===e.value()?"Background 2 "+t:3===e.value()||242===e.value()?"Text 2 "+t:4===e.value()?"Accent 1 "+t:5===e.value()?"Accent 2 "+t:6===e.value()?"Accent 3 "+t:7===e.value()?"Accent 4 "+t:8===e.value()?"Accent 5 "+t:9===e.value()?"Accent 6 "+t:10===e.value()?"hyperlink":11===e.value()?"followedHyperlink":null},e.getThemeColorIndex=function(e,t){return"Background 1"===e.substring(0,12)?t?243:0:"Text 1"===e.substring(0,6)?t?241:1:"Background 2"===e.substring(0,12)?t?244:2:"Text 2"===e.substring(0,6)?t?242:3:"Accent 1"===e.substring(0,8)?4:"Accent 2"===e.substring(0,8)?5:"Accent 3"===e.substring(0,8)?6:"Accent 4"===e.substring(0,8)?7:"Accent 5"===e.substring(0,8)?8:"Accent 6"===e.substring(0,8)?9:"hyperlink"===e?10:"followedHyperlink"===e?11:void 0},e.mk=function(){return e.nk||(e.nk={}),e.nk},e.getExcelThemeColor=function(t){var r,i,n,a;return o.StringEx.L(t)?A.EmptyColor:(r=e.mk(),r[t]?r[t]:(i=0,n=t.split(" "),n.length>=3&&(i=parseFloat(n[2]),isNaN(i)||(i/=100)),a=new A(3,e.getThemeColorIndex(t),i),r[t]=a,a))},e.toRGBColor=function(t){return t?""+e.getRGBColor(t):null},e.colorFromIndex=function(t,r){var o,i,n,a;return 32767===t?new W(0,0,0,0):t<0||t>=e.palette.length?new W(255,0,0,0):e.useCustomPalette?e.customPalette[t]!==c?e.customPalette[t]:64===t?new W(255,0,0,0):65===t?new W(255,255,255,255):new W(0,255,255,255):(o=e.palette[t],i=o>>16&255,n=o>>8&255,a=255&o,new W(r,i,n,a))},e.updateTint=function(e,t){var r,o,i;return 0===t?e:(r=new _(e),t>0?(o=240-r.luminosity,i=o*t,W.fromHLS(r.hue,r.luminosity+i,r.saturation)):(i=r.luminosity*-t,W.fromHLS(r.hue,r.luminosity-i,r.saturation)))},e.getRGBColor=function(t){var r,o;return null===t||t===c?new W(0,255,255,255):t.isAutoColor()?new W(255,0,0,0):t.isIndexedColor()?(r=e.colorFromIndex(0|t.value(),255),e.updateTint(r,t.tint())):t.isRGBColor()?(o=(16777215&t.value())+4278190080,r=e.fromArgb(o),e.updateTint(r,t.tint())):t.isThemeColor()?e.getThemeColorName(t):new W(0,255,255,255)},e.fromArgb=function(e){return new W(e>>24&255,e>>16&255,e>>8&255,255&e)},e.getRGBAColorData=function(t){var r=e.fromArgb(t.value());return{rgb:r.getColorUnitString(r.r)+r.getColorUnitString(r.g)+r.getColorUnitString(r.b),alpha:r.a}},e.pk=function(){return e.qk||(e.qk={}),e.qk},e.fromHtmlColor=function(t){var r,o,i,n,a,l;if(t)return"string"!=typeof t?t:(r=e.pk(),r[t]?r[t]:(o=t.toLowerCase(),"#"===o.substring(0,1)?(7===o.length?o="#ff"+o.substring(1):4===o.length&&(o="#ff"+o[1]+o[1]+o[2]+o[2]+o[3]+o[3]),i=parseInt(o.substring(1,o.length),16)):"rgb("===o.substring(0,4)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=255*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):"rgba("===o.substring(0,5)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=parseInt(255*parseFloat(l[3]),10)*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):i=e.rk[o]?e.rk[o]:parseInt(o,10),r[t]=i,i))},e.isThemeColor=function(e){if(!e||"string"!=typeof e)return!1;e=e.toLowerCase();var t=e[0];switch(t){case"b":return 0===e.indexOf("background ");case"t":return 0===e.indexOf("text ");case"a":return 0===e.indexOf("accent ");case"h":return 0===e.indexOf("hyperlink");case"f":return 0===e.indexOf("followedhyperlink");default:return!1}},e.mixTranslucentColor=function(t,r){var o,i,n,a;return 255===r.a?r:0===r.a?t:(o=Math.round((255-t.a)*r.a/255),i=e.getMaxInt(t.a,r.a,t.r,r.r,o+t.a),n=e.getMaxInt(t.a,r.a,t.g,r.g,o+t.a),a=e.getMaxInt(t.a,r.a,t.b,r.b,o+t.a),new W(Math.round(o+t.a),i,n,a))},e.getMaxInt=function(e,t,r,o,i){return 0===i?0:(t*o+(255-t)*e*r/255)/i},e.toExcelColor=function(t,r){if(t instanceof A)return t;if(r===c&&(r=16777215),!t)return null;if(e.isThemeColor(t))return e.getExcelThemeColor(t);var o=e.fromHtmlColor(t);return o!==r?e.fromColorToExcelColor(e.fromArgb(o)):null},e.toExcelBackColor=function(t,r){var o,i;if(t!==s&&"object"==typeof t)if(t.stops)for(o=t,i=0;i<o.stops.length;i++)o.stops[i].color=e.toExcelColor(o.stops[i].color);else o={patternType:t.type,fgColor:e.toExcelColor(t.patternColor||"#000000"),bgColor:e.toExcelColor(t.backgroundColor||"#FFFFFF")};else o=t?{patternType:1,fgColor:e.toExcelColor(t),bgColor:e.toExcelColor(r?"#000000":"#FFFFFF")}:{patternType:0,fgColor:new A(1,64,0),bgColor:new A(1,65,0)};return o},e.toExcelIndexedColor=function(t){if(t){var r=e.getPaletteColorIndex(t,63);return new A(1,r)}return null},e.fromColorToExcelColor=function(t){var r,o,i,n,a;return t=e.mixTranslucentColor(e.fromArgb(16777215),t),255!==t.a&&(r=e.sk,o=Math.round(r.r-t.a+t.a/255*t.r),i=Math.round(r.g-t.a+t.a/255*t.g),n=Math.round(r.b-t.a+t.a/255*t.b),t=new W(255,o,i,n)),a=t.a*Math.pow(16,6)+t.r*Math.pow(16,4)+t.g*Math.pow(16,2)+t.b,new A(2,a,0)},e.getClosestColorIndex=function(t,r){var o,i,n,a,l,s,d,u;for(r===c&&(r=64),o=-1,i=Number.MAX_VALUE,n=Math.min(e.palette.length-1,r);n>=0;n--)a=e.palette[n],l=(16711680&a)>>16,s=(65280&a)>>8,d=255&a,u=Math.abs(.3*(l-t.r))+Math.abs(.59*(s-t.g))+Math.abs(.11*(d-t.b)),u<i&&(i=u,o=n);return o},e.getPaletteColorIndex=function(t,r){return r===c&&(r=64),t.isThemeColor()?e.getClosestColorIndex(e.getRGBColor(new A(3,t.value(),0))):e.getClosestColorIndex(e.getRGBColor(t),r)},e.toColorSchemeIndex=function(e){return"ACCENT1"===e?4:"ACCENT2"===e?5:"ACCENT3"===e?6:"ACCENT4"===e?7:"ACCENT5"===e?8:"ACCENT6"===e?9:"DK1"===e?1:"DK2"===e?3:"LT1"===e?0:"LT2"===e?2:"HLIK"===e?10:"FOLHLINK"===e?11:"PHCLR"===e?240:"BG1"===e?243:"BG2"===e?244:"TX1"===e?241:"TX2"===e?242:255},e.scRgbTosRgb=function(e){return e<=0?0:e<=.0031308?255*e*12.92+.5:e<1?255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5:255},e.convertHLSToRGB=function(t,r,o){var i,n,a=0,l=0,s=0;return 0===o?(a=255*r/255|0,l=a,s=a):(i=void 0,i=r<=127?(r*(255+o)+127)/255:r+o-(r*o+127)/255,n=2*r-i,a=parseInt(""+(255*e.hueToRGB(n,i,t+85)+127)/255,10),l=parseInt(""+(255*e.hueToRGB(n,i,t)+127)/255,10),s=parseInt(""+(255*e.hueToRGB(n,i,t-85)+127)/255,10)),a=a>0?a:0,l=l>0?l:0,s=s>0?s:0,a=a<255?a:255,l=l<255?l:255,s=s>255?s:255,new W(0,a,l,s)},e.hueToRGB=function(e,t,r){return r<0&&(r+=255),r>255&&(r-=255),r<42?e+((t-e)*r+21)/42:r<127?t:r<170?e+((t-e)*(170-r)+21)/42:e},e.fromPresetColorVal=function(t){var r=e.rk[t];return r!==c?e.fromArgb(r):null},e.nk=null,e.qk=null,e.useCustomPalette=!1,e.customPalette=null,e.palette=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080],e.sk=new W(255,255,255,255),e.rk={aliceblue:4293982463,antiquewhite:4294634455,aqua:4278255615,aquamarine:4286578644,azure:4293984255,beige:4294309340,bisque:4294960324,black:4278190080,blanchedalmond:4294962125,blue:4278190335,blueviolet:4287245282,brown:4289014314,burlywood:4292786311,cadetblue:4284456608,chartreuse:4286578432,chocolate:4291979550,coral:4294934352,cornflowerblue:4284782061,cornsilk:4294965468,crimson:4292613180,cyan:4278255615,darkblue:4278190219,darkcyan:4278225803,darkgoldenrod:4290283019,darkgray:4289309097,darkgreen:4278215680,darkkhaki:4290623339,darkmagenta:4287299723,darkolivegreen:4283788079,darkorange:4294937600,darkorchid:4288230092,darkred:4287299584,darksalmon:4293498490,darkseagreen:4287609999,darkslateblue:4282924427,darkslategray:4281290575,darkturquoise:4278243025,darkviolet:4287889619,deeppink:4294907027,deepskyblue:4278239231,dimgray:4285098345,dodgerblue:4280193279,feldspar:4291924597,firebrick:4289864226,floralwhite:4294966e3,forestgreen:4280453922,fuchsia:4294902015,gainsboro:4292664540,ghostwhite:4294506751,gold:4294956800,goldenrod:4292519200,gray:4286611584,green:4278222848,greenyellow:4289593135,honeydew:4293984240,hotpink:4294928820,"indianred ":4291648604,"indigo ":4283105410,ivory:4294967280,khaki:4293977740,lavender:4293322490,lavenderblush:4294963445,lawngreen:4286381056,lemonchiffon:4294965965,lightblue:4289583334,lightcoral:4293951616,lightcyan:4292935679,lightgoldenrodyellow:4294638290,lightgrey:4292072403,lightgreen:4287688336,lightpink:4294948545,lightsalmon:4294942842,lightseagreen:4280332970,lightskyblue:4287090426,lightslateblue:4286869759,lightslategray:4286023833,lightsteelblue:4289774814,lightyellow:4294967264,lime:4278255360,limegreen:4281519410,linen:4294635750,magenta:4294902015,maroon:4286578688,mediumaquamarine:4284927402,mediumblue:4278190285,mediumorchid:4290401747,mediumpurple:4287852760,mediumseagreen:4282168177,mediumslateblue:4286277870,mediumspringgreen:4278254234,mediumturquoise:4282962380,mediumvioletred:4291237253,midnightblue:4279834992,mintcream:4294311930,mistyrose:4294960353,moccasin:4294960309,navajowhite:4294958765,navy:4278190208,oldlace:4294833638,olive:4286611456,olivedrab:4285238819,orange:4294944e3,orangered:4294919424,orchid:4292505814,palegoldenrod:4293847210,palegreen:4288215960,paleturquoise:4289720046,palevioletred:4292374675,papayawhip:4294963157,peachpuff:4294957753,peru:4291659071,pink:4294951115,plum:4292714717,powderblue:4289781990,purple:4286578816,red:4294901760,rosybrown:4290547599,royalblue:4282477025,saddlebrown:4287317267,salmon:4294606962,sandybrown:4294222944,seagreen:4281240407,seashell:4294964718,sienna:4288696877,silver:4290822336,skyblue:4287090411,slateblue:4285160141,slategray:4285563024,snow:4294966010,springgreen:4278255487,steelblue:4282811060,tan:4291998860,teal:4278222976,thistle:4292394968,tomato:4294927175,turquoise:4282441936,violet:4293821166,violetred:4291829904,wheat:4294303411,white:4294967295,whitesmoke:4294309365,yellow:4294967040,yellowgreen:4288335154,transparent:16777215},e}(),t.ColorHelper=N;function z(e){return e===!1}function V(e){return e&&"NORMAL"!==e.toUpperCase()&&e.indexOf("__builtInStyle")<0}M=function(){function e(){}return e.getFontName=function(e){var t,r,o;if(!e)return null;if(t=e,r=",",t.indexOf(r)!==-1&&(t=t.split(r)[0]),t){for(o=t.length-1;o>=0&&"/"!==t[o];)o--;o>=0&&(t=t.substring(o)),t&&"/#"===t.substring(0,2)&&(t=t.substring(2)),'"'===t[0]&&'"'===t[t.length-1]&&(t=t.substring(1,t.length-1))}return t},e.setStyleInfoFont=function(e,t,r,o){var i,n,a,l,s,b,h=e.fontName;h||(h=f),n="",e.fontSize>0&&(n=P.pointToPixel(e.fontSize,4)+"px"),a="",a=e.isItalic?"italic":"normal",l="",l=e.isBold?"bold":"normal",s="",s=e.fontColor?e.fontColor.isThemeColor()?N.getThemeColorName(e.fontColor):N.toRGBColor(e.fontColor):e.fontColor,t.foreColor=s,e.isStrikeOut&&(t.textDecoration=2),e.underLineStyle!==c&&(b=1,2===e.underLineStyle?b=8:0===e.underLineStyle&&(b=0),t.textDecoration===c?t.textDecoration=b:t.textDecoration=t.textDecoration|b),1===e.fontScheme?(t.themeFont=d,r&&(h=r)):2===e.fontScheme&&(t.themeFont=u,o&&(h=o)),i=a+" "+l+" "+n+" "+h,i&&(t.font=i)},e.tk=function(){return e.uk||(e.uk={}),e.uk},e.fromHtmlFont=function(t){var r,i,n,a,l,s,c,d,u,f,p,m,g,y;if(!o.StringEx.L(t)){if(r={},i=e.tk(),i[t])return i[t];if(n=e.splitFontString(t),0!==n.length){for(a=0,l=!1,s=!1,c=!1;a<n.length;){if(d=n[a].toLowerCase(),"normal"===d);else if(l||"italic"!==d&&"oblique"!==d&&"inherit"!==d)if(s||"small-caps"!==d)if(c||"bold"!==d&&"bolder"!==d&&"lighter"!==d&&"100"!==d&&"200"!==d&&"300"!==d&&"400"!==d&&"500"!==d&&"600"!==d&&"700"!==d&&"800"!==d&&"900"!==d&&"inherit"!==d){if("/"===d.substring(0,1)){a++;break}if("xx-small"===d||"x-small"===d||"small"===d||"medium"===d||"large"===d||"x-large"===d||"xx-large"===d||d.indexOf("px")!==-1||d.indexOf("pt")!==-1)break}else c=!0,"bolder"===d||parseInt(d,10)>=700?r.fontWeight=b:"lighter"===d?r.fontWeight="ExtraLight":r.fontWeight=d;else s=!0,r.fontVariant=d;else l=!0,"oblique"===d&&(d=h),r.fontStyle=d;if(a++,l&&s&&c)break}if(a<n.length&&(u=n[a].toLowerCase(),"xx-small"===u||"x-small"===u||"small"===u||"medium"===u||"large"===u||"x-large"===u||"xx-large"===u?(f=10,"xx-small"===u||"x-small"===u?f=6:"small"===u?f=8:"large"===u?f=14:"x-large"===u?f=18:"xx-large"===u&&(f=22),r.fontSize=f):(p=void 0,u.indexOf("px")!==-1?p=parseFloat(u):u.indexOf("pt")!==-1&&(m=parseFloat(u),isNaN(m)||(p=P.pointToPixel(m,4))),isNaN(p)||(r.fontSize=p)),a++),a<n.length&&(g=n[a].toLowerCase(),"/"===g.substring(0,1)&&a++),a<n.length){for(y=n[a],a++;a<n.length;a++)y=y+" "+n[a];r.fontFamily=y}return i[t]=r,r}}},e.composeFontWeightAndFontStyleToDestFont=function(t,r){var o=e.fromHtmlFont(t),i=e.fromHtmlFont(r);return o.fontWeight&&(i.fontWeight=o.fontWeight),o.fontStyle&&(i.fontStyle=o.fontStyle),(i.fontWeight?i.fontWeight:"normal")+" "+(i.fontStyle?i.fontStyle:"normal")+" "+i.fontSize+"px "+i.fontFamily+" "+(i.fontVariant?i.fontVariant:"")},e.splitFontString=function(e){var t,r,i,n,a;if(o.StringEx.L(e))return[];for(e=e.trim(),t=[],r="",i=0,n=e.length;i<n;i++)if(a=e[i]," "===a||"/"===a)t.push(r),r="","/"===a&&(r+="/");else if("'"===a||'"'===a)for(i++;e[i]!==a&&i<n;)r+=e[i],i++;else r+=a;return r.length>0&&t.push(r),t},e.toVerticalAlignment=function(e){return 0===e||1===e||2===e?e:2},e.toExcelVerticalAlignment=function(e){return 0===e||1===e||2===e?e:0},e.toHorizontalAlignment=function(e){switch(e){case 0:return 3;case 1:return 0;case 6:return 4;case 2:return 1;case 3:return 2;case 4:case 5:case 7:return 3;default:return 3}},e.toExcelHorizontalAlignment=function(e){switch(e){case 1:return 2;case 0:return 1;case 2:return 3;case 3:return 0;case 4:return 6;default:return 0}},e.toBorderLine=function(e){if(e){var t=null;return 0===e.lineStyle?null:(e.color||(e.color=new A(1,0,0)),t=e.color.isThemeColor()?{color:N.getThemeColorName(e.color),style:e.lineStyle}:{color:""+N.getRGBColor(e.color),style:e.lineStyle})}},e.toExcelBorderSide=function(e){var t,r,o=new T;return e?(t=e.color,N.isThemeColor(t)?o.color=N.getExcelThemeColor(t):(r=e.color,o.color=new A(2,N.fromHtmlColor(r),0)),o.lineStyle=e.style,o):o},e.setStyleInfoBorders=function(t,r){r.borderLeft=e.toBorderLine(t.left),r.borderRight=e.toBorderLine(t.right),r.borderTop=e.toBorderLine(t.top),r.borderBottom=e.toBorderLine(t.bottom),r.borderVertical=e.toBorderLine(t.vertical),r.borderHorizontal=e.toBorderLine(t.horizontal),r.diagonalUp=e.toBorderLine(t.diagonalUp),r.diagonalDown=e.toBorderLine(t.diagonalDown)},e.toCellStyle=function(t,r,i){var n,a,l,d,u,f,b,h,p,m,g,y={};return t?(n=t.isStyleFormat,a=t.applyFont,l=t.applyFill,d=t.applyBorder,u=t.applyAlignment,f=t.applyProtection,b=t.applyNumberFormat,n&&(z(a)&&(y.applyFont=a),z(l)&&(y.applyFill=l),z(d)&&(y.applyBorder=d),z(u)&&(y.applyAlignment=u),z(f)&&(y.applyProtection=f),z(b)&&(y.applyNumberFormat=b)),(!n&&t.applyFont!==!1||n)&&t.font&&e.setStyleInfoFont(t.font,y,r,i),y.locked=t.isLocked,t.indent!==c&&(y.textIndent=t.indent,y.textIndent>0&&(h=y.textIndent,
30
- p=Math.floor(h),h-p===.5&&0===(1&p)?y.textIndent=p:y.textIndent=Math.round(h))),y.wordWrap=t.isWordWrap,y.vAlign=e.toVerticalAlignment(t.verticalAlign),y.hAlign=e.toHorizontalAlignment(t.horizontalAlign),o.J(t.rotation)||(255===t.rotation?y.isVerticalText=!0:y.textOrientation=t.rotation>90?90-t.rotation:t.rotation),t.border&&(m=t.border,m&&e.setStyleInfoBorders(m,y)),t.fill&&0!==t.fill.patternType?e.Ie(t.fill,y):y.backColor=s,t.isShrinkToFit?y.shrinkToFit=!0:y.shrinkToFit=!1,g=B.getFormatCode(t),n&&"General"===g||(y.formatter=g),o.J(t.quotePrefix)||(y.quotePrefix=t.quotePrefix),y):null},e.toRichTextStyle=function(t,r,o){var i={};return e.setStyleInfoFont(t,i,r,o),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamily=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.fromRichTextStyle=function(t){var r,i,n,a,l;if(!o.J(t))return r=f,i={},t.font&&(n=e.fromHtmlFont(t.font),n.fontFamily&&(r=e.getFontName(n.fontFamily)),o.StringEx.L(r)&&(r=f),i.fontFamily=r,n.fontSize&&(i.fontSize=Math.round(P.pixelToPoint(n.fontSize))),n.fontStyle===h&&(i.isItalic=!0),n.fontWeight===b&&(i.isBold=!0)),t.foreColor&&(N.isThemeColor(t.foreColor)?i.foreColor=N.getExcelThemeColor(t.foreColor):(a=N.fromHtmlColor(t.foreColor),l=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(a)),a=l.a*Math.pow(16,6)+l.r*Math.pow(16,4)+l.g*Math.pow(16,2)+l.b,i.foreColor=new A(2,a,0))),t.themeFont&&(t.themeFont.toUpperCase()==="Headings".toUpperCase()?i.fontScheme=1:t.themeFont.toUpperCase()==="Body".toUpperCase()&&(i.fontScheme=2)),1===(1&t.textDecoration)&&(i.underLineStyle=1),8===(8&t.textDecoration)&&(i.underLineStyle=2),i.isStrikeOut=2===(2&t.textDecoration),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamilySet=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.toSchemeClrValue=function(e){switch(e){case 255:return"";case 1:return"dk1";case 0:return"lt1";case 3:return"dk2";case 2:return"lt2";case 4:return"accent1";case 5:return"accent2";case 6:return"accent3";case 7:return"accent4";case 8:return"accent5";case 9:return"accent6";case 10:return"hlink";case 11:return"folHlink";case 240:return"phClr";case 241:return"tx1";case 242:return"tx2";case 243:return"bg1";case 244:return"bg2";default:return""}},e.Ie=function(t,r){1===t.patternType?e.vk(t.fgColor,r):t.patternType?e.wk(t.patternType,t.fgColor,t.bgColor,r):t.stops&&e.xk(t,r)},e.vk=function(e,t){if(o.J(e))t.backColor="#000000";else{var r=e.isRGBColor()&&0===e.value();if(e.isRGBColor()&&0===e.value()||e.isIndexedColor()&&64===e.value()||e.isIndexedColor()&&65===e.value())return void(r&&(t.backColor=null));e.isThemeColor()?t.backColor=N.getThemeColorName(e):t.backColor=N.toRGBColor(e)}},e.wk=function(e,t,r,o){o.backColor={type:e,patternColor:null,backgroundColor:null},t&&(t.isThemeColor()?o.backColor.patternColor=N.getThemeColorName(t):o.backColor.patternColor=N.toRGBColor(t)),r&&!r.isAutoColor()&&(r.isThemeColor()?o.backColor.backgroundColor=N.getThemeColorName(r):o.backColor.backgroundColor=N.toRGBColor(r))},e.xk=function(e,t){var r,o;for(t.backColor=e,r=0;r<e.stops.length;r++)o=e.stops[r].color,"string"!=typeof o&&(o.isThemeColor()?e.stops[r].color=N.getThemeColorName(o):e.stops[r].color=N.toRGBColor(o))},e.getStyleFormatter=function(e){var t,r,i=s,n=e.formatter;return"string"==typeof n&&("="===n.charAt(0)||n.indexOf("{{")>=0&&n.indexOf("}}")>=0)?i:("string"==typeof n&&" "!==n?i=n:e.autoFormatter?(t=e.autoFormatter.formatCached,t&&!o.StringEx.O(t)&&(i=t)):n&&(r=n.formatCached,r&&!o.StringEx.O(r)&&(i=r)),i)},e.toExtendedFormat=function(t,r){var i,n,a,l,d,u,p,m,g,y,S,C,w,x,T,I,L,D,P;if(t){if(i=t.parentName,n=t.name,a=V(n),l=new E,d=e.getStyleFormatter(t),d?(u=B.getFormatId(d),p=u.id,m=u.isBuiltIn,m?l.numberFormatIndex=p:l.numberFormat=new R(p,d),g=r.bj(i),y=g&&e.getStyleFormatter(g),!a&&(0!==p||y&&0!==B.getFormatId(y).id)&&(l.applyNumberFormat=!0)):l.numberFormatIndex=0,t.backColor&&0!==t.backColor.type){if(a||(l.applyFill=!0),S=new k,"string"==typeof t.backColor)S.patternType=1,S.fgColor=t.backColor;else if(o.J(t.backColor.type)||"path"===t.backColor.type)for(C in t.backColor)S[C]=t.backColor[C];else S.patternType=t.backColor.type,S.fgColor=t.backColor.patternColor,S.bgColor=t.backColor.backgroundColor;for(o.J(S.fgColor)||(S.fgColor=N.toExcelColor(S.fgColor)),o.J(S.bgColor)||(S.bgColor=N.toExcelColor(S.bgColor)),w=S.stops&&S.stops.length,x=0;x<w;x++)S.stops[x].color=N.toExcelColor(S.stops[x].color);l.fill=S}return(t.borderLeft||t.borderRight||t.borderTop||t.borderBottom||t.diagonalUp||t.diagonalDown)&&(l.border=new v,t.borderLeft&&(l.border.left=e.toExcelBorderSide(t.borderLeft)),t.borderRight&&(l.border.right=e.toExcelBorderSide(t.borderRight)),t.borderTop&&(l.border.top=e.toExcelBorderSide(t.borderTop)),t.borderBottom&&(l.border.bottom=e.toExcelBorderSide(t.borderBottom)),t.diagonalDown&&(l.border.diagonalDown=e.toExcelBorderSide(t.diagonalDown)),t.diagonalUp&&(l.border.diagonalUp=e.toExcelBorderSide(t.diagonalUp)),a||(l.applyBorder=!0)),(t.font||t.fontForColumnWidth||t.foreColor||t.themeFont||t.textDecoration!==c&&null!==t.textDecoration)&&(a||(l.applyFont=!0),T=f,I=t.fontForColumnWidth?t.fontForColumnWidth:t.font,I&&(L=e.fromHtmlFont(I),L.fontFamily&&(T=e.getFontName(L.fontFamily)),o.StringEx.L(T)&&(T=f),l.font=new F(T.trim(),null,0),L.fontSize&&(l.font.fontSize=e.getExcelFontSize(L.fontSize)),L.fontStyle===h&&(l.font.isItalic=!0),L.fontWeight===b&&(l.font.isBold=!0)),1===(1&t.textDecoration)&&(l.font.underLineStyle=1),8===(8&t.textDecoration)&&(l.font.underLineStyle=2),t.foreColor&&(N.isThemeColor(t.foreColor)?l.font.fontColor=N.getExcelThemeColor(t.foreColor):(D=N.fromHtmlColor(t.foreColor),P=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(D)),D=P.a*Math.pow(16,6)+P.r*Math.pow(16,4)+P.g*Math.pow(16,2)+P.b,l.font.fontColor=new A(2,D,0))),l.font.isStrikeOut=2===(2&t.textDecoration)),t.themeFont&&(t.themeFont.toUpperCase()==="Headings".toUpperCase()?l.font.fontScheme=1:t.themeFont.toUpperCase()==="Body".toUpperCase()&&(l.font.fontScheme=2)),t.shrinkToFit&&(l.isShrinkToFit=!0),t.textOrientation&&(l.rotation=t.textOrientation<0?90-t.textOrientation:t.textOrientation),t.locked!==c?l.isLocked=t.locked:l.isLocked=!0,t.wordWrap!==s&&t.wordWrap!==c&&(l.isWordWrap=t.wordWrap),t.textIndent!==s&&t.textIndent!==c&&(l.indent=Math.ceil(t.textIndent)),l.verticalAlign=e.toExcelVerticalAlignment(t.vAlign),l.horizontalAlign=e.toExcelHorizontalAlignment(t.hAlign),t.isVerticalText===!0&&(l.isVerticalText=t.isVerticalText),o.J(t.quotePrefix)||(l.quotePrefix=t.quotePrefix),o.J(i)||(l.parentName=i),a&&(l.applyFont=t.applyFont,l.applyFill=t.applyFill,l.applyAlignment=t.applyAlignment,l.applyBorder=t.applyBorder,l.applyNumberFormat=t.applyNumberFormat,l.applyProtection=t.applyProtection),l}},e.getExcelFontSize=function(e){var t=P.pixelToPoint(e),r=.05,o=Math.round(1e3*t)/1e3,i=Math.round(o%r*1e3)/1e3;return i<r/2?Math.floor(o/r)*r:Math.ceil(o/r)*r},e.toDifferentialFormatting=function(t,r){var i,n,a,l,s,d,u,b,h,p,m,g,y={};return!o.isNullOrUndefined(t.parentName)&&r&&(i=o.ga._(r.th,t.parentName),t=i?i:t),n=t.isSlicerHeader,a=t.isFormatStyle,l=t.formatter,"string"==typeof l&&" "!==l&&(s=B.getFormatId(l),d=s.id,u=s.isBuiltIn,u?(y.numberFormatIndex=d,y.numberFormatCode=l):y.numberFormat=new R(d,l)),t.backColor!==c&&(b=t.backColor,b!==c?y.fill=N.toExcelBackColor(b,!0):y.fill=b),(a||t.borderLeft||t.borderRight||t.borderTop||t.borderBottom||t.borderVertical||t.borderHorizontal)&&(y.border=new v,t.borderLeft?y.border.left=e.toExcelBorderSide(t.borderLeft):(n||t.borderLeft===c&&a)&&(y.border.left=c),t.borderRight?y.border.right=e.toExcelBorderSide(t.borderRight):(n||t.borderRight===c&&a)&&(y.border.right=c),t.borderTop?y.border.top=e.toExcelBorderSide(t.borderTop):(n||t.borderTop===c&&a)&&(y.border.top=c),t.borderBottom?y.border.bottom=e.toExcelBorderSide(t.borderBottom):(n||t.borderBottom===c&&a)&&(y.border.bottom=c),t.borderVertical&&(y.border.vertical=e.toExcelBorderSide(t.borderVertical)),t.borderHorizontal&&(y.border.horizontal=e.toExcelBorderSide(t.borderHorizontal))),(t.font||t.foreColor!==c||t.themeFont||t.textDecoration!==c&&null!==t.textDecoration)&&(h=f,p=void 0,t.font&&(m=e.fromHtmlFont(t.font),m.fontFamily&&(h=e.getFontName(m.fontFamily)),o.StringEx.L(h)&&(h=f),y.font=new F(h.trim(),null,0),m.fontSize&&(y.font.fontSize=Math.round(P.pixelToPoint(m.fontSize))),"italic"===m.fontStyle&&(y.font.isItalic=!0),"bold"===m.fontWeight&&(y.font.isBold=!0)),y.font||(y.font=new F(h.trim(),null,0)),1===(1&t.textDecoration)&&(y.font.underLineStyle=1),8===(8&t.textDecoration)&&(y.font.underLineStyle=2),t.foreColor&&(N.isThemeColor(t.foreColor)?y.font.fontColor=N.getExcelThemeColor(t.foreColor):(p=N.fromHtmlColor(t.foreColor),g=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(p)),p=g.a*Math.pow(16,6)+g.r*Math.pow(16,4)+g.g*Math.pow(16,2)+g.b,y.font.fontColor=new A(2,p,0))),null===t.foreColor&&(y.font.fontColor=null),y.font.isStrikeOut=2===(2&t.textDecoration)),y.isPartFontStyle=t.isPartFontStyle,y.isSlicerHeader=n,y},e.toStringStyle=function(e){if(o.isNullOrUndefined(e))return"";var t="";return o.isNullOrUndefined(e.backColor)||(t+="object"==typeof e.backColor?"backColor:"+JSON.stringify(e.backColor)+",":"backColor:"+e.backColor+","),e.foreColor!==c&&(t+="foreColor:"+e.foreColor+","),e.hAlign!==c&&(t+="hAlign:"+e.hAlign+","),e.vAlign!==c&&(t+="vAlign:"+e.vAlign+","),e.font!==c&&(t+="font:"+e.font+","),e.themeFont!==c&&(t+="themeFont:"+e.themeFont+","),e.formatter!==c&&(t+="formatter:"+e.formatter+","),o.isNullOrUndefined(e.borderLeft)||(t+="borderLeft:"+JSON.stringify(e.borderLeft)+","),o.isNullOrUndefined(e.borderTop)||(t+="borderTop:"+JSON.stringify(e.borderTop)+","),o.isNullOrUndefined(e.borderRight)||(t+="borderRight:"+JSON.stringify(e.borderRight)+","),o.isNullOrUndefined(e.borderBottom)||(t+="borderBottom:"+JSON.stringify(e.borderBottom)+","),o.isNullOrUndefined(e.diagonalDown)||(t+="diagonalDown:"+JSON.stringify(e.diagonalDown)+","),o.isNullOrUndefined(e.diagonalUp)||(t+="diagonalUp:"+JSON.stringify(e.diagonalUp)+","),e.locked!==c&&(t+="locked:"+e.locked+","),e.textIndent!==c&&(t+="textIndent:"+e.textIndent+","),e.wordWrap!==c&&(t+="wordWrap:"+e.wordWrap+","),e.shrinkToFit!==c&&(t+="shrinkToFit:"+e.shrinkToFit+","),e.textDecoration!==c&&(t+="textDecoration:"+e.textDecoration+","),e.textOrientation!==c&&(t+="textOrientation:"+e.textOrientation+","),e.isVerticalText!==c&&(t+="isVerticalText:"+e.isVerticalText+","),e.quotePrefix!==c&&(t+="quotePrefix:"+e.quotePrefix+","),e.autoFormatter!==c&&(t+="autoFormatter:"+e.autoFormatter+","),o.isNullOrUndefined(e.name)||e.name.indexOf("__builtInStyle")!==-1||(t+="name:"+e.name+","),e.parentName!==c&&(t+="parentName:"+e.parentName+","),e.fontForColumnWidth!==c&&(t+="fontForColumnWidth:"+e.fontForColumnWidth+","),V(e.name)&&(e.applyFont!==c&&(t+="applyFont:"+e.applyFont+","),e.applyFill!==c&&(t+="applyFill:"+e.applyFill+","),e.applyAlignment!==c&&(t+="applyAlignment:"+e.applyAlignment+","),e.applyBorder!==c&&(t+="applyBorder:"+e.applyBorder+","),e.applyProtection!==c&&(t+="applyProtection:"+e.applyProtection+","),e.applyNumberFormat!==c&&(t+="applyNumberFormat:"+e.applyNumberFormat+",")),t},e.cloneSpreadJSStyle=function(e){if(!o.isNullOrUndefined(e)){var t={};return t.backColor=e.backColor,t.foreColor=e.foreColor,t.hAlign=e.hAlign,t.vAlign=e.vAlign,t.font=e.font,t.themeFont=e.themeFont,t.formatter=e.formatter,t.borderLeft=e.borderLeft,t.borderTop=e.borderTop,t.borderRight=e.borderRight,t.borderBottom=e.borderBottom,t.diagonalDown=e.diagonalDown,t.diagonalUp=e.diagonalUp,t.locked=e.locked,t.textIndent=e.textIndent,t.wordWrap=e.wordWrap,t.shrinkToFit=e.shrinkToFit,t.textDecoration=e.textDecoration,t.textOrientation=e.textOrientation,t.isVerticalText=e.isVerticalText,t.quotePrefix=e.quotePrefix,t.autoFormatter=e.autoFormatter,t.name=e.name,t.parentName=e.parentName,t.fontForColumnWidth=e.fontForColumnWidth,V(e.name)&&(t.applyFont=e.applyFont,t.applyFill=e.applyFill,t.applyAlignment=e.applyAlignment,t.applyBorder=e.applyBorder,t.applyProtection=e.applyProtection,t.applyNumberFormat=e.applyNumberFormat),t}},e.convertDxfToStyle=function(t,r,i,n){var a,l={};return t.font&&e.setStyleInfoFont(t.font,l,r,i),t.fill&&(o.isNullOrUndefined(t.fill.patternType)&&t.fill.bgColor&&(t.fill.patternType=1),1===t.fill.patternType&&(t.fill.fgColor=t.fill.bgColor),0!==t.fill.patternType?e.Ie(t.fill,l):l.backColor=s),t.border&&e.setStyleInfoBorders(t.border,l),t.numberFormat&&(a=B.getFormatCode(t),"General"!==a&&(l.formatter=a)),n&&t.alignment&&(t.alignment.horizontalAlign!==c&&(l.hAlign=t.alignment.horizontalAlign),t.alignment.verticalAlign!==c&&(l.vAlign=t.alignment.verticalAlign),t.alignment.isWordWrap!==c&&(l.wordWrap=t.alignment.isWordWrap),t.alignment.isShrinkToFit!==c&&(l.shrinkToFit=t.alignment.isShrinkToFit),t.alignment.indent!==c&&(l.textIndent=t.alignment.indent),t.alignment.rotation!==c&&(l.textOrientation=t.alignment.rotation)),n&&t.protection&&t.alignment.isLocked!==c&&(l.locked=t.alignment.isLocked),l},e.uk=null,e}(),t.ConverterHelper=M,O=function(){function e(){}return e.Jh=function(e){var t,r,i,n,a={foreColor:"black",font:"normal normal normal 11pt/normal Calibri",locked:!0,name:"Normal",hAlign:3,vAlign:0};for(t in e.sheets)if(e.sheets.hasOwnProperty(t)&&(r=e.sheets[t],r.data&&r.data.defaultDataNode&&r.data.defaultDataNode.style)){i=r.data.defaultDataNode.style;for(n in i)i.hasOwnProperty(n)&&!o.J(i[n])&&(a[n]=i[n]);break}return a},e}(),t.DefaultStyle=O,H=function(){function e(){}return e.getSystemColor=function(t){return N.fromArgb(e.yk[t])},e.yk=[4290032820,4288263377,4278190080,4289440683,4293980400,4288716960,4285098345,4293125091,4294967295,4278190080,4278190080,4290367978,4292338930,4285361517,4281571839,4294967295,4278216396,4294244348,4290760155,4282601044,4294967265,4278190080,4293980400,4293980400,4281571839,4278190080,4291348680,4294967295,4284769380,4278190080,4288716960,4293125091,4293980400,4294967295,4288716960,4278190080],e}(),G=function(){function e(){}return e.getSystemColor=function(t){return e.systemColors[t.toUpperCase()]},e.systemColors={length:0,"3DDKSHADOW":H.getSystemColor(30),"3DLIGHT":H.getSystemColor(31),ACTIVEBORDER:H.getSystemColor(0),ACTIVECAPTION:H.getSystemColor(1),APPWORKSPACE:H.getSystemColor(3),BACKGROUND:H.getSystemColor(10),BTNFACE:H.getSystemColor(32),BTNHIGHLIGHT:H.getSystemColor(33),BTNSHADOW:H.getSystemColor(34),BTNTEXT:H.getSystemColor(35),CAPTIONTEXT:H.getSystemColor(2),GRAYTEXT:H.getSystemColor(13),HIGHLIGHT:H.getSystemColor(14),HIGHLIGHTTEXT:H.getSystemColor(15),INACTIVEBORDER:H.getSystemColor(17),INACTIVECAPTION:H.getSystemColor(18),INACTIVECAPTIONTEXT:H.getSystemColor(19),INFOBK:H.getSystemColor(20),INFOTEXT:H.getSystemColor(21),MENU:H.getSystemColor(22),GRADIENTACTIVECAPTION:H.getSystemColor(11),HOTLIGHT:H.getSystemColor(16),GRADIENTINACTIVECAPTION:H.getSystemColor(12),MENUBAR:H.getSystemColor(23),MENUHIGHLIGHT:H.getSystemColor(24),MENUTEXT:H.getSystemColor(25),SCROLLBAR:H.getSystemColor(26),WINDOW:H.getSystemColor(27),WINDOWFRAME:H.getSystemColor(28),WINDOWTEXT:H.getSystemColor(29)},e}(),t.ExcelSystemColor=G;function j(){P.jk=c,B.gk=c,B.dk={count:0},B._j={count:0},M.uk=c,N.nk=c,N.qk=c,N.useCustomPalette=!1,N.customPalette=s}t.clearCache=j},"./src/excel-io.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xlsx-io/common/file-loader.ts"),i=r("./src/xlsx-io/reader/xlsx-reader.ts"),n=r("./src/xlsx-io/writer/xlsx-writer.ts"),a=r("./src/xlsx-io/password/xlsxEncryptionHelper.ts"),l=r("./src/xlsx-io/common/errorcode.ts"),s=r("./src/xlsx-io/common/errorMessage.ts"),c=r("./src/common/common.ts"),d=r("./src/common/excel-types.ts"),t.ErrorCode=l.errorCode,u=r("./src/lc/releaseLc.js"),u&&(u.zk&&u.zk(t),f=u.Ak,1===f&&u.Bk()),b=function(){function e(){this.Ck=new o.FileLoader}return e.prototype.open=function(e,t,r,o){var n=this;t||(t=function(){}),r||(r=function(){}),n.Ck.onFileLoad=function(e){try{var n=new i.XlsxReader;n.Dk(e,o,function(e){t(e)})}catch(e){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}},n.Ck.onError=r,n.Ck.loadFile(e,o)},e.prototype.save=function(e,t,r,o){t||(t=function(){}),r||(r=function(){});var i,d;"object"==typeof e&&(i=JSON.parse(JSON.stringify(e))),"string"==typeof e&&(i=JSON.parse(e)),new n.XlsxWriter(i,function(){try{var e=this;e.onZip=function(e){if(o&&o.password)try{e=a.XlsxEncryptionHelper.Ek(e,o.password),d||(e=a.XlsxEncryptionHelper.Fk(e))}catch(e){return void r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}t(e)},e.onError=function(){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})},c.J(o)&&(o={}),c.J(o.xlsxStrictMode)&&(o.xlsxStrictMode=!0),o&&o.password&&(d=o.useArrayBuffer,o.useArrayBuffer=!0),e.Bg=o,e.Gk()}catch(e){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}})},e.registerMaxDigitWidth=function(e,t,r){!e||c.J(t)||c.J(r)||(d.unknownFontMaxDigitWidthMap[t]||(d.unknownFontMaxDigitWidthMap[t]={}),d.unknownFontMaxDigitWidthMap[t][e]=r)},e.tableThemes=c.buildInTableThemes,e.pivotTableThemes=c.buildInPivotTableThemes,e.slicerStyles=c.buildInSlicerStyles,e.timelineStyles=c.buildInTimelineStyles,e}(),t.IO=b},"./src/lc/common.js":function(e,t,r){!function(){"use strict";var t,o,i,n,a={zk:function(e){t=e}},l=r("./src/xlsx-io/reader/xlsx-reader.ts").XlsxReader,s=r("./src/datamodel/datamodel-writer.ts").WriterDataModel,c=r("./src/common/common.ts").K,d=r("./src/lc/ipaddr.js"),u=r("./src/lc/lcValidator.js"),f=u.Hk,b=u.Ik,h="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,m=h||p||Function("return this")(),g=/^[0-9.]+$/,y="m",S="n",C="b",w="d",x="e",A="adr",T=b("XRsZ"),v=b("HUkJ"),k=b("T&g"),F=b("Q&w"),R=b("GRz1"),E=b("XSzB"),I=b("XRwh"),L=b("WQs5");function D(e,t){var r,o,i,n,a="",l=0;for(r=0;r<e.length;r++)l=Math.max(l,e[r].length);for(r=0;r<l;r++){for(t&&(o=""),n=0;n<e.length;n++)t?o+=r>=e[n].length?"00":e[n].charAt(r)+e[n].charAt(r+1):r<e[n].length&&(a+=e[n].charAt(r));t&&(i=parseInt(o,16),a+=String.fromCharCode(i),r++)}return a}function B(e){var r=c(),o=r&&r[D(["G","C"])],i=o&&o[D(["Sra","ped"])],n=i&&i[D(["Set","hes"])];return n&&n[e]||t&&t[e]}function P(){var e=c(),t=e&&e[D(["G","C"])],r=t&&t[D(["Sra","ped"])];return r&&r[D(["Cmo","omn"])]}o=function(e){var t,r=D(["Lcnee","iesKy"]),o=B(r),i="BJIH";return f(o,{pK:"l6/zrbWoSbcLFwEetFh38rH3ErBZE9H+Cqix3R+wTlfA1wD5B+lUcCQn+EJ60I4RGrm0x1sFjkiLWwB0jAn6BWZv0W4WbqAKriOdeoivxDp1Wmjs3qkEDhvbsjPtfvwx2BHil6o+/tDrdMJQSGs18WZm2PoQLQuL+9VhZ4FNRHUQU3Jtioke/OZEGHJOdYVwvCGalzBad6QFOiVbDBQPePpS3++GJzOxN8SN/7lyS5/IdKiy3WJRaVGkB370+HbN6hKraDfUgReLX26yxRaKC/5aWnGAJ2NnWLoGyAGRcwT9dVjo4bcAZNrrA0U9JVKQxaSskhdv2p49XzJkltXx5w==",aC:"B1"},function(r){t=W(r,i),t.hl=!!o,M(t,o),e(t)},function(){t=W(),t.hl=!!o,M(t,o),e(t)}),t};function W(e,t){var r,o,i,n,a={isVd:function(e){var t=this,r=B("Workbook");return e=r&&1===r.lm||e,t.s&&!t.e&&(!t.adr||!!t.adr.dsr==!!e)}},l=V(),s=function(){var a,s,c,d,u,f,b;if(!e)return!1;if(a=e[v],!a||!a.length)return!1;for(d=0,u=a.length;d<u;d++)if(s=a[d],c=s&&s[F]===t){r=s[k];break}if(!c)return!1;if(e[L]&&(n=e[L]),e[I]){if(f=new Date,b=_(e[I]),i=Math.ceil((b-f)/864e5),o=i<=0)return!1}else i=void 0;return!!(l||!e[R]&&!e[E]||J(e[R],e[E])||z(e[R],e[E]))};return a[C]=l,a.s=s(),a[y]=e?e[T]?-1:1:0,a[S]=r,a[x]=o,o||(a[w]=i),a[A]=n,a}function _(e){return new Date(N(e.substr(0,4))||0,N(e.substr(4,2))-1||0,N(e.substr(6,2))||0)}function N(e){return parseInt(e,10)}function M(e,t){e.m=t?e.m:-1}function O(e,t){var r,o,i,n,a;if(!e||0!==e.indexOf("//"))return!1;if(r=e.slice(2).split("/"),r.length<1)return!1;for(o=r[0],i=0,n=t.length;i<n;i++)if(a=t[i],a===o)return!0;return!1}function H(e,t){var r,o,i,n,a;for(r=0,o=t.length;r<o;r++){if(i=t[r],n=!1,i&&0===i.lastIndexOf("*.",0)&&(n=!0),i=n?i.slice(2):i,i===e)return!0;if(n&&(a=e.indexOf("."+i),a>0&&a===e.length-i.length-1))return!0}return!1}function G(e,t){var r,o,i,n;if(0===e.indexOf("[")&&e.lastIndexOf("]")===e.length-1&&(e=e.substring(1,e.length-1)),e.indexOf("%")>-1&&(e=e.split("%")[0]),a(e))for(r=d.parse(e),o=0;o<t.length;o++){if(i=t[o],a(i)&&s(i,e))return!0;if(n=l(i),n&&c(r,n))return!0}return!1;function a(e){return d.IPv4.isValidFourPartDecimal(e)||d.IPv6.isValid(e)}function l(e){var t,r;if(e.indexOf("/")===-1)return!1;t=e.split("/"),(t[1].indexOf(":")>-1||t[1].indexOf(".")>-1)&&(r=d.parse(t[1]).prefixLengthFromSubnetMask(),e=[t[0],r].join("/"));try{return d.parseCIDR(e)}catch(e){return!1}}function s(e,t){var r=""+d.parse(e),o=""+d.parse(t);return r===o}function c(e,t){try{return e.match(t)}catch(e){return!1}}}function U(e,t){var r,o,i,n;if(e&&4===e.split(".").length)for(r=0,o=t.length;r<o;r++)if(i=t[r],i&&(n=i.length-2,n>0&&(i===e||".*"===i.substr(n)&&e.substr(0,n)===i.substr(0,n)&&g.test(e))))return!0;return!1}function J(e,t){var r,o,i,n;return!!q()&&(r=b("JYx3Gb#8Pb5R"),o=b("1agFGc#UHbw5"),i=m[r]&&m[r][o],!!i&&(i=i.toLowerCase(),n=e.split(","),!(!e||!O(i,n))))}function z(e,t){var r,o=b("JYx3Gb#8Pb5R"),i=b("Zdg3Ga#UHbw5"),n=m[o]&&m[o][i];return!n||(n=n.toLowerCase(),r=e.split(","),!(!e||!H(n,r))||(!(!e||!U(n,r))||!(!e||!G(n,r))))}function V(){var e=b("JYx3Gb#8Pb5R");return j(m[e])}function j(e){var t=b("VdgJHc#wJb59"),r=b("Zdg3Ga#UHbw5");return e&&(X(e[t])||K(e[t])||Y(e[r]))}function X(e){var t=b("MlSZto#Z");return e&&e===t}function K(e){var t=b("yXbog&w");return e&&e===t}function q(){var e=b("JYx3Gb#8Pb5R"),t=b("VdgJHc#wJb59"),r=b("Udg36Y#oUddV"),o=m[e];return o&&o[t]===r}function Y(e){var t=b("4LJITMx8UMcA"),r=b("Zo9Wv2#M"),o=b("JYw3Gb4NOb6x");return e&&(e===t||e===r||e===o)}function Q(e){var t=B(D(["S","R"])),r=P()&&t&&P().ResourceManager;return r&&new r(t).getResource()[e]}i=function(e,t,r){var o,i,n,a=Q(D([e,"s"])),l=B(D(["Wrbo","okok"])),s=Q(l&&1===l.lm?D(["ld","se"]):D(["lr","su"])),c=Z(a,t);for(s=Z(s,t),c=c.replace("{0}",r.d),c=c.replace("{1}",s).replace("{1}",s),o=[],i=0,n=0;n<c.length;n++)"\r"!==c[n]&&"\n"!==c[n]||(o.push(c.substring(i,n)),"\r"===c[n]&&n<c.length-1&&"\n"===c[n+1]&&n++,i=n+1);return i<c.length&&o.push(c.substring(i,c.length)),o};function Z(e,t){var r,o,i,n=!0,a="";if(e)if("string"==typeof e)e=e.trim(),e&&(r=[e]);else if(Array.isArray(e)){for(o=!0,r=[],i=0;i<e.length;i++)a=e[i].trim(),r.push(a),o&&a&&(o=!1);o&&(r=null)}return r||(n=!1,r=t),D(r,n)}function $(e,t,r){var o,n={name:D(["Eauto eso","vlainVrin"]),index:0,allowCellOverflow:!0,defaults:{colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:30,colWidth:60},isSelected:!1,rowCount:20,columnCount:20,data:{dataTable:{}}},a=i(e,t,r),l=n.data.dataTable;for(o=1;o<a.length+1;o++)l[o]={},l[o][1]={value:a[o-1]};return n}function ee(e,t,r){var i=this;o(function(o){var n,a,l,s,c,d,u,f,b,h,p,m,g=["IvldEclI ies e.","nai xe Olcneky"];if(o.hl)if(o.isVd(!1)){if(o.m!==-1)return t.apply(i),void(i.onCompleted&&i.onCompleted());o.d?(n="l2",g=["Pwrdb pedSet.\rYu eprr elyetkyeprsi 0 as","oee ySra.hes \nortmoaydpomn e xie n{}dy."]):(n="l6",g=["Pwrdb pedSet vlainVrin\no iesdfrDsrbto.","oee ySra.hesEauto eso\rNtLcne o itiuin"])}else o.adr&&o.adr.dsr?n=Q(D(["l8","s"]))?"l8":"l4":o.e?(n="l5",g=["Pwrdb pedSet.\rYu eprr elyetkyhseprd","oee ySra.hes \nortmoaydpomn e a xie."]):n=Q(D(["l8","s"]))?"l8":"l4";else o.b?(n="l1",g=["Pwrdb pedSet.\no a nydpo hsEAUTO eso oal.\rTmoaydpomn esaeaalbefrtsig ","oee ySra.hes\rYucnol elyti VLAINvrinlcly \neprr elyetky r vial o etn."]):(n=Q(D(["l7","s"]))?"l7":"l3",g=["EclI ies o on\rYune ai ies e ornSraJ xe O eprr esaeaalbefreauto.I o ucae ies,yu e si orprhs ofraineal ","xe OLcneNtFud\no edavldlcnekyt u pedSEclI.Tmoayky r vial o vlain fyuprhsdalcne orkyi nyu ucaecnimto mi."]);if(a=$(n,g,o),!o.hl&&o.b||o.isVd(!1)){if(r&&t.apply(i),l=e.sheets,s=l[a.name])a.index=s.index;else{for(c in l)l.hasOwnProperty(c)&&(d=l[c],d.index++);if(u=e.slicerCaches)for(f=0;f<u.length;f++)if(b=u[f],h=b.pivotTables,h&&h.length>0)for(p=0;p<h.length;p++)m=h[p],m.tabId+=1;e.sheetCount++,e.activeSheetIndex=e.activeSheetIndex?++e.activeSheetIndex:1}l[a.name]=a,r||t.apply(i)}else e.sheetCount=1,e.sheets={},e.sheets[a.name]=a,r||t.apply(i);i.onCompleted&&i.onCompleted()})}n=function(){var e,t=l.prototype.Jk;l.prototype.Jk=function(){var e=arguments,r=this;ee.call(r,r.Kk.Ne,function(){t.apply(r,e)},!0)},l.prototype.Xh=function(){},e=s.prototype.Ph,s.prototype.Ph=function(){var t=arguments,r=this;ee.call(r,r.Ne,function(){e.apply(r,t)},!1)},s.prototype.Xh=function(){}},a.Bk=n,e.exports=a}()},"./src/lc/ipaddr.js":function(e,t,r){"use strict";!function(t){var r,o="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:RegExp("^".concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"$"),"i"),threeOctet:RegExp("^".concat(o,"\\.").concat(o,"\\.").concat(o,"$"),"i"),twoOctet:RegExp("^".concat(o,"\\.").concat(o,"$"),"i"),longValue:RegExp("^".concat(o,"$"),"i")},n=RegExp("^0[0-7]+$","i"),a=RegExp("^0x[a-f0-9]+$","i"),l="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",c={zoneIndex:RegExp(l,"i"),native:RegExp("^(::)?(".concat(s,")?([0-9a-f]+)?(::)?(").concat(l,")?$"),"i"),deprecatedTransitional:RegExp("^(?:::)(".concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"(").concat(l,")?)$"),"i"),transitional:RegExp("^((?:".concat(s,")|(?:::)(?:").concat(s,")?)").concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"(").concat(l,")?$"),"i")};function d(e,t){var r,o,i,n,a;if(e.indexOf("::")!==e.lastIndexOf("::"))return null;for(r=0,o=-1,i=(e.match(c.zoneIndex)||[])[0],i&&(i=i.substring(1),e=e.replace(/%.+$/,""));(o=e.indexOf(":",o+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(a=t-r,n=":";a--;)n+="0:";return e=e.replace("::",n),":"===e[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),t=function(){var t,r=e.split(":"),o=[];for(t=0;t<r.length;t++)o.push(parseInt(r[t],16));return o}(),{parts:t,zoneId:i}}function u(e,t,r,o){var i,n;if(e.length!==t.length)throw Error("ipaddr: cannot match CIDR for objects with different lengths");for(i=0;o>0;){if(n=r-o,n<0&&(n=0),e[i]>>n!==t[i]>>n)return!1;o-=r,i+=1}return!0}function f(e){if(a.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(n.test(e))return parseInt(e,8);throw Error("ipaddr: cannot parse ".concat(e," as octal"))}return parseInt(e,10)}function b(e,t){for(;e.length<t;)e="0".concat(e);return e}r={},r.IPv4=function(){function e(e){if(4!==e.length)throw Error("ipaddr: ipv4 octet count should be 4");var t,r;for(t=0;t<e.length;t++)if(r=e[t],!(0<=r&&r<=255))throw Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){var r;if(void 0===t&&(r=e,e=r[0],t=r[1]),"ipv4"!==e.kind())throw Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o=0,i=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=3;e>=0;e-=1){if(t=this.octets[e],!(t in n))return null;if(r=n[t],i&&0!==r)return null;8!==r&&(i=!0),o+=r}return 32-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return r.IPv6.parse("::ffff:".concat(""+this))},e.prototype.toNormalizedString=function(){return""+this},e.prototype.toString=function(){return this.octets.join(".")},e}(),r.IPv4.broadcastAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)|255^parseInt(o[n],10)),n++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.isIPv4=function(e){return null!==this.parser(e)},r.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(e){return!1}},r.IPv4.isValidFourPartDecimal=function(e){return!(!r.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},r.IPv4.networkAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),o=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],r=0;r<4;)i.push(parseInt(o[r],10)&parseInt(n[r],10)),r++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.parse=function(e){var t=this.parser(e);if(null===t)throw Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},r.IPv4.parseCIDR=function(e){var t,r,o;if((t=e.match(/^(.+)\/(\d+)$/))&&(r=parseInt(t[2]),r>=0&&r<=32))return o=[this.parse(t[1]),r],Object.defineProperty(o,"toString",{value:function e(){return this.join("/")}}),o;throw Error("ipaddr: string is not formatted like an IPv4 CIDR range")},r.IPv4.parser=function(e){var t,r,o;if(t=e.match(i.fourOctet))return function(){var e,o=t.slice(1,6),i=[];for(e=0;e<o.length;e++)r=o[e],i.push(f(r));return i}();if(t=e.match(i.longValue)){if(o=f(t[1]),o>4294967295||o<0)throw Error("ipaddr: address outside defined range");return function(){var e,t=[];for(e=0;e<=24;e+=8)t.push(o>>e&255);return t}().reverse()}return(t=e.match(i.twoOctet))?function(){var e=t.slice(1,4),r=[];if(o=f(e[1]),o>16777215||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(o>>16&255),r.push(o>>8&255),r.push(255&o),r}():(t=e.match(i.threeOctet))?function(){var e=t.slice(1,5),r=[];if(o=f(e[2]),o>65535||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(f(e[1])),r.push(o>>8&255),r.push(255&o),r}():null},r.IPv4.subnetMaskFromPrefixLength=function(e){var t,r,o;if(e=parseInt(e),e<0||e>32)throw Error("ipaddr: invalid IPv4 prefix length");for(t=[0,0,0,0],r=0,o=Math.floor(e/8);r<o;)t[r]=255,r++;return o<4&&(t[o]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},r.IPv6=function(){function e(e,t){var r,o;if(16===e.length)for(this.parts=[],r=0;r<=14;r+=2)this.parts.push(e[r]<<8|e[r+1]);else{if(8!==e.length)throw Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(r=0;r<this.parts.length;r++)if(o=this.parts[r],!(0<=o&&o<=65535))throw Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){var r;if(void 0===t&&(r=e,e=r[0],t=r[1]),"ipv6"!==e.kind())throw Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o=0,i=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};for(r=7;r>=0;r-=1){if(e=this.parts[r],!(e in n))return null;if(t=n[e],i&&0!==t)return null;16!==t&&(i=!0),o+=t}return 128-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges);
27
+ r&&r.length>0&&r.forEach(function(e){var r,n,a,l,s,c,u,f,b,h,p,m;if(e&&(r="timeline"===e.type,n=r?d.IO.timelineStyles:d.IO.slicerStyles,"string"==typeof e.style?(a=e.style.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,""),n[a]?e.style=n[a]:delete e.style):e.style instanceof Object&&(l=e.style&&e.style.name,s=l&&l.length>11&&n[l.toLowerCase().replace(r?/^timeslicerstyle/:/^slicerstyle/,"")],s&&(e.style.name="CustomSlicerStyle_"+e.name)),c=e.style,!o.J(c&&c.name))){if(u={},!xe(t.nh,c)){u={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(f in c)if(c.hasOwnProperty(f)&&"name"!==f&&!o.J(c[f]))switch(f){case"headerStyle":case"wholeSlicerStyle":b={},b.type=f,b.dxfId=t.Yh(me(c[f],"headerStyle"===f)),b.tableId=Se(e.tableName,i),u.styleElements.push(b)}t.mh.push(u)}if(r){if(!xe(t.rh,c)){h={styleElements:[],name:Ae(t.rh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectionLabelStyle":case"timeLevelStyle":case"periodLabel1Style":case"periodLabel2Style":case"selectedTimeBlockStyle":case"unselectedTimeBlockStyle":case"selectedTimeBlockSpaceStyle":h.styleElements.push({type:p,dxfId:t.ei(me(c[p]))})}t.qh.push(h),t.rh[h.name]=c}}else if(!xe(t.ph,c)){m={styleElements:[],name:Ae(t.nh,c.name)},c.name=u.name;for(p in c)if(c.hasOwnProperty(p)&&"name"!==p&&!o.J(c[p]))switch(p){case"selectedItemWithDataStyle":case"selectedItemWithNoDataStyle":case"unSelectedItemWithDataStyle":case"unSelectedItemWithNoDataStyle":case"hoveredSelectedItemWithDataStyle":case"hoveredSelectedItemWithNoDataStyle":case"hoveredUnSelectedItemWithDataStyle":case"hoveredUnSelectedItemWithNoDataStyle":m.styleElements.push({type:p,dxfId:t.di(me(c[p]))})}t.oh.push(m),t.ph[m.name]=c}}})},e.prototype._h=function(e){var t,r,i=this;function n(e,t){var r,n,a,l,s,c,u,f,b,h;if(e&&(t?(r=e.style&&e.style.name,r&&r.length>10&&d.IO.pivotTableThemes[r.toLowerCase().replace(/^pivotstyle/,"")]&&(e.style.name="CustomPivotTableStyle_"+e.name)):"string"==typeof e.style?d.IO.tableThemes[e.style]?e.style=d.IO.tableThemes[e.style]:delete e.style:e.style instanceof Object&&(n=e.style&&e.style.name,n&&d.IO.tableThemes[n]&&(e.style.name="CustomTableStyle_"+e.name)),a=e.style,!o.J(a&&a.name))){if(xe(i.nh,a))return;l={styleElements:[]},l.name=Ae(i.nh,a.name),a.name=l.name,s=void 0,c=void 0,u=void 0,f=void 0;for(b in a)if(a.hasOwnProperty(b)&&"name"!==b&&void 0!==a[b])switch(b){case"firstRowStripSize":s=a[b];break;case"secondRowStripSize":c=a[b];break;case"firstColumnStripSize":u=a[b];break;case"secondColumnStripSize":f=a[b];break;default:h={},h.type=b,a[b].isPartFontStyle=!0,h.dxfId=i.Yh(a[b]),l.styleElements.push(h)}Ce(l,"firstRowStripStyle",s||1),Ce(l,"secondRowStripStyle",c||1),Ce(l,"firstColumnStripStyle",u||1),Ce(l,"secondColumnStripStyle",f||1),Ce(l,"firstRowStripeStyle",s||1),Ce(l,"secondRowStripeStyle",c||1),Ce(l,"firstColumnStripeStyle",u||1),Ce(l,"secondColumnStripeStyle",f||1),l.isPivot=t,i.mh.push(l),i.nh[l.name]=a}}t=e.pivotTables,t&&t.length>0&&t.forEach(function(e){return n(e,!0)}),r=e.tables,r&&r.length>0&&r.forEach(function(e){return n(e,!1)})},e.prototype.ai=function(e){var t=this,r=e.pivotTables;r&&r.length>0&&r.forEach(function(e){!o.J(e.formats)&&e.formats.length>0&&e.formats.forEach(function(e){var r,i,a,l,s;o.J(e.style)||(e.dxfId=t.Yh(e.style),e.style&&!o.J(e.style.formatter)&&(r=e.style.formatter,i={},a=n.ExtendedNumberFormatHelper.getFormatId(r),l=a.id,s=a.isBuiltIn,s?(i.numberFormatIndex=l,e.style.numberFormatId=l):(i.numberFormat=new n.ExcelNumerFormat(l,r),e.style.numberFormatId=i.numberFormat.numberFormatId),t.Ih.push(i)))}),!o.J(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){Le(e,t.Ih)}),!o.J(e.dataFields)&&e.dataFields.length>0&&e.dataFields.forEach(function(e){Le(e,t.Ih)})})},e.prototype.bi=function(e){var t,r=e.tables,o=r?r.length:0,i={};for(t=0;t<o;t++)r[t].tableSortInfo=this.gi(r[t].rowFilter);e.hi=i,e.rowFilter&&(e.rowFilter.autoFilterSortInfo=this.gi(e.rowFilter))},e.prototype.Th=function(e){var t,r=this,o=e.rows,i=_(e);for(e.rowsVisibleInfo={},t=0;t<e.rowCount;t++)e.rowsVisibleInfo[t]={},e.rowsVisibleInfo[t].size=o&&o[t]&&o[t].size||i,e.rowsVisibleInfo[t].visible=r.ii(e,t)},e.prototype.Uh=function(e){var t,r,o=e.columns,i=N(e),n=e.columnOutlines;for(e.columnVisibleInfo={},t=0;t<e.columnCount;t++)e.columnVisibleInfo[t]={},r=o&&o[t],e.columnVisibleInfo[t].size=r&&r.size||i,r&&r.visible===!1&&(e.columnVisibleInfo[t].visible=!1),l.isCollapsed(t,n)&&(e.columnVisibleInfo[t].visible=!1)},e.prototype.Rh=function(e){e.rowCount===p&&(e.rowCount=200),e.columnCount===p&&(e.columnCount=20),e.activeRow===p&&(e.activeRow=0),e.activeCol===p&&(e.activeCol=0),e.visible===p&&(e.visible=!0)},e.prototype.Vh=function(e){var t,r,o=e.index,i=this.yh[o],n=e.columnCount,a=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style;for(t=0;t<n;t++)r=this.ji(e,-1,t),this.ki(e,i,t,r,a)},e.prototype.Sh=function(e){var t,r,i,n,l,s,c,d,u,f,b,h,g,y,S,C,w,x,A,T,v,k,F,R,E,P,W,_,N,M,O,H,G,U,J,z,V,j,X,K,q,Y,Q,Z,$,ee,te,re=this,oe=e.index,ie=e.data&&e.data.dataTable,ne=e.data&&e.data.rowDataArray,ae=e.defaultData,le=re.Eh,se=re.Hh;if(0!==e.rowCount){if(t=re.li(ie,e,ae)+1,r=re.wh[oe],i=re.xh[oe],n=re.mi(e,t),l=re.Ah[oe],s=57,c=re.ni(e),d=[],u=e.tables,!o.J(u)&&Array.isArray(u))for(f=0;f<u.length;f++)for(b=u[f],h=b.row,g=h+b.rowCount-1,y=h;y<=g;y++)d[y]||(d[y]=!0);for(S={},C=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style,w=0;w<=c&&w>=0;w++)if(ie&&ie.hasOwnProperty(w+"")||ne&&ne[w]||d[w]||ae&&ae.hasOwnProperty(w+"")){for(x=re.ki(e,i,w,re.ji(e,w,-1),C),A=s,T=ie&&ie[w],v=ae&&ae[w],k=0;k<t&&k>=0;k++)if(F=L(e,w,k),T&&T.hasOwnProperty(k+"")||F||v&&v.hasOwnProperty(k+"")){if(R=w*t+k,E=void 0,P=void 0,W=m,_=m,N=m,M=T&&T[k],O=v&&v[k],H=p,G=!1,M&&(_=M.formula,N=M.arrayInfo,U=N&&N.isDynamicArray,J=M.value,z=Be(J,U,le),W=z.value,H=z.richText,G=z.isSpillError,le=z.dynamicArrayLevel),!_&&o.J(W)&&O&&(W=Be(O.v,p,le).value),V=!1,F&&(V=!0,j=D(e,w,k),j&&B(e,j)),X=re.oi(e,w,k,r,n[k],x,C,R,W),P=X.styleName,E=X.styleInfo,V){if(F.showHeader!==!1&&w===F.row&&(W=F.columns[k-F.col]&&F.columns[k-F.col].name,W&&W.indexOf("\n")!==-1&&H))for(K=0;K<H.length;K++)H[K].text=o.Util.ua(H[K].text,"\r","");F.showFooter&&w===F.row+F.rowCount-1&&(q=F.columns[k-F.col],o.J(q&&q.footerValue)||(W=""+q.footerValue))}if(Y=re.pi(W,!o.J(H)),Q=Y.value,Q=I(Q),Z=Y.cellType,E||_||Q!==m||!o.StringEx.L(P)){if($=new a.ExcelCell(w,k),$.cellType=Z,$.value=Q,$.richText=H,$.isSpillError=G,$.qi=S[w+","+k],re.dg(r,R,E,P,$),re.ri(_,N,$),N&&N.isDynamicArray&&!$.isSpillError)for(ee=N.row;ee<N.row+N.rowCount;ee++)for(te=N.col;te<N.col+N.colCount;te++)S[ee+","+te]=1;re.ti(oe,w,$),re.ui($,e,w,k,se)}}l[w]=A}re.Eh=le,re.sh={}}},e.prototype.ni=function(e){var t=this.vi(e);return Math.min(e.rowCount-1,t.length>0?t.length:0)},e.prototype.ki=function(e,t,r,i,n){var a,l,s=this;return i&&(a=s.wi(e,i)),a?(a.parentName&&(a.parentName=s.xi(e,a.parentName),l=s.af[s.lh[a.parentName]],o.ga.ca(a,l)),s.yi(e,a,n),o.ga.ba(a)||(t[r]=s.zi(a),a.parentName&&s.isSameStyleInfo(s.af[s.lh[a.parentName]],a,!0)||(a.parentName=m)),i):m},e.prototype.Ai=function(){var t,r,i,n,a,l=this,s=l.Ne,c=s.sheets;if(!t)if(t={},s.namedStyles)for(r=s.namedStyles,i=0;i<r.length;i++)t[r[i].name]=1;else s.namedStyles=[];n=function(r){var i,n,a,l,d,u,f;if(c.hasOwnProperty(r)&&(i=c[r],n=i.namedStyles,n&&n.length>0)){for(a={},l=0;l<n.length;l++)if(d=n[l],u=d.name,!R(u)&&!F(u)&&o.J(e.Bi[u])){for(f=d.name;t[f]||f.length>255;)f=Ee(f,i.name);a[d.name]=f,d.name=f,s.namedStyles.push(d),t[f]=1,u!==f&&(i.renamedStyles=i.renamedStyles||{},i.renamedStyles[u]=f)}n.forEach(function(e){e.parentName&&(e.parentName=a[e.parentName]||e.parentName)})}};for(a in c)n(a)},e.prototype.Ci=function(){var t,r,o,i,n,a=this,l=a.Ne,s=l.namedStyles,c={},d={};a.Oh=0,t=e.Jh(l),s?s.forEach(function(e){var t,r,o,i;e&&(t=e.name,c[t]=e,t&&w.test(t)&&(r=19,o=t.indexOf(g),i=parseInt(t.substring(r,o),10),a.Oh=Math.max(i,a.Oh)))}):l.namedStyles=[];for(r in l.sheets)if(l.sheets.hasOwnProperty(r)){if(o=l.sheets[r],!o||!o.data||!o.data.dataTable)continue;if(i=o.tables,n=o.data.dataTable,!i||i.length<=0)continue;a.Nh(i,n,c,t,d)}},e.prototype.Qh=function(){var e,t,r,i,a,l,s,c,d,u,f,b,h,m,g=this,y=g.Ne,S={},C=[];for(S.Normal={},g.Ai(),g.Ci(),g.Di(y.namedStyles,S,C),t=0,r=g.th.length;t<r;t++)e=g.th[t],e&&e.parentName&&o.ga.da(g.th,e);for(i={},a=[],l={},t=0,r=C.length;t<r;t++)s=C[t],c=n.ConverterHelper.toStringStyle(s),i[c]===p?a.push(s):l[s.name]=C[i[c]].name,i[c]=t,s.Ei=c;for(d={},t=0,r=g.af.length;t<r;t++)e=g.af[t],u=n.ConverterHelper.cloneSpreadJSStyle(e),u.parentName=e.name,u.name=p,d[t]=g.lh[e.name]=g.af.length,g.af.push(u),f=n.ConverterHelper.toStringStyle(e),i[f]!==p&&(b=C[i[f]],b&&(g.lh[b.name]=g.lh[e.name],b.added=!0));for(Object.keys(g.vh).forEach(function(e){g.lh[e]===p&&(g.lh[e]=d[g.vh[e]])}),h=o.ga._(y.namedStyles,"Normal"),m=n.ConverterHelper.toStringStyle(h),t=0,r=a.length;t<r;t++)s=a[t],s.added||(s.Ei===m?g.lh[s.name]=0:(g.lh[s.name]=g.af.length,g.af.push(s)));Object.keys(l).forEach(function(e){g.lh[e]=g.lh[l[e]]})},e.prototype.isSameStyleInfo=function(e,t,r,o){if(!e&&!t)return!0;if(!e||!t)return!1;var i,a;return e.Fi||(e.Fi={Gi:n.ConverterHelper.toExtendedFormat(e,this)}),i=e.Fi.Gi,t.Fi||(t.Fi={Gi:n.ConverterHelper.toExtendedFormat(t,this)}),a=t.Fi.Gi,i.equals(a,r,o)},e.prototype.getEqualStyle=function(e,t){var r,o;for(r=0;r<t.length;r++)if(o=t[r],this.isSameStyleInfo(e,o,!0,!0))return o;return m},e.prototype.Di=function(t,r,o){var i,n,a,l,s,c;function d(e){var t,r,o="",i=Object.getOwnPropertyNames(e);for(t=0;t<i.length;t++)r=i[t],k(e[r])?o+=r+":"+JSON.stringify(e[r])+"_":"name"!==r&&(o+=r+":"+e[r]+"_");return o}if(t)for(i={},n=0,a=t.length;n<a;n++)l=t[n],s=l.name,r[s]||(r[s]={},R(s)||F(s)||(s.indexOf(g)>=0?o.push(l):(c=d(l),i.hasOwnProperty(c)?this.vh[l.name]=i[c]:(this.af.push(l),this.th.push(l),this.vh[l.name]=this.af.length-1,e.Bi[l.name]||(i[c]=this.af.length-1)))))},e.prototype.ji=function(e,t,r){var o=e.data,i=m;return o?(t<0&&r>=0?i=o.columnDataArray&&o.columnDataArray[r]?o.columnDataArray[r].style:m:t>=0&&r<0?i=o.rowDataArray&&o.rowDataArray[t]?o.rowDataArray[t].style:m:t>=0&&r>=0&&(i=o.dataTable&&o.dataTable[t]&&o.dataTable[t][r]?e.data.dataTable[t][r].style:m),i):m},e.prototype.Hi=function(){var e,t,r,i=this.Ne,n=m;for(e in i.sheets)if(i.sheets.hasOwnProperty(e)&&(t=i.sheets[e],t&&t.theme)){n=t.theme;break}return n?T(n)?n:(r=n.name,o.StringEx.O(r)?m:("OFFICE"===r.toUpperCase()&&(r="Office Theme"),new a.ExcelTheme(r,this.Ii(n),this.Ji(n)))):m},e.prototype.Ii=function(e){var t=[];return t.push(u(e.themeColor.background1)),t.push(u(e.themeColor.text1)),t.push(u(e.themeColor.background2)),t.push(u(e.themeColor.text2)),t.push(u(e.themeColor.accent1)),t.push(u(e.themeColor.accent2)),t.push(u(e.themeColor.accent3)),t.push(u(e.themeColor.accent4)),t.push(u(e.themeColor.accent5)),t.push(u(e.themeColor.accent6)),t.push(u(e.themeColor.hyperlink)),t.push(u(e.themeColor.followedHyperlink)),new a.ColorScheme(e.themeColor.name,t)},e.prototype.Ji=function(e){var t=Pe(e.headingFont),r=Pe(e.bodyFont),o=new a.ThemeFonts([new a.RunFormatting(0,t)],[]),i=new a.ThemeFonts([new a.RunFormatting(0,r)],[]);return new a.FontScheme(e.name,o,i)},e.prototype.Ki=function(e){return e=Math.min(e,i.ExcelConstants.vb-1),o.IndexHelper.T(e)},e.prototype.Li=function(e,t){var r,o=[],n=new i.DefaultContentType;return n.extension=i.XFileConstants.Eb,n.contentType=i.XFileConstants.Fb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Gb,n.contentType=i.XFileConstants.Hb,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.nc,n.contentType=i.XFileConstants.pc,o.push(n),t&&(n=new i.DefaultContentType,n.extension=i.XFileConstants.oc,n.contentType=i.XFileConstants.kc,o.push(n)),n=new i.DefaultContentType,n.extension=i.XFileConstants.qc,n.contentType=i.XFileConstants.sc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.tc,n.contentType=i.XFileConstants.uc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.vc,n.contentType=i.XFileConstants.wc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.zc,n.contentType=i.XFileConstants.Ac,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Bc,n.contentType=i.XFileConstants.Cc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Dc,n.contentType=i.XFileConstants.Ec,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.xc,n.contentType=i.XFileConstants.yc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Fc,n.contentType=i.XFileConstants.Gc,o.push(n),n=new i.DefaultContentType,n.extension=i.XFileConstants.Hc,n.contentType=i.XFileConstants.Ic,o.push(n),r=this.Lh(o,e),r?o:m},e.prototype.Mi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.uh[r.index]},e.prototype.Ni=function(e){var t,r,i=this,n=[],l=i.Ne,s=l.sheets&&l.sheets[e],c=i.vi(s),d=Math.min(s.rowCount-1,c.length),u=i.Oi(s.rowOutlines);for(t=0;t<=d;t++)c[t]?(r=i.Pi(s,t,u),(r||r.collapsed||!o.J(r.outLineLevel)&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&(r.customHeight=!isNaN(r.height),n.push(r))):s.rowFilter&&i.Qi(s.rowFilter,t)&&(r=new a.ExcelRow(t),r.visible=!1,n.push(r));return n},e.prototype.Qi=function(e,t){var r,o,i,n=!1;if(e&&(r=e.filteredOutRows))for(o=0;o<r.length;o++)if(i=r[o],t===i){n=!0;break}return n},e.prototype.ii=function(e,t){var r=e.rows,o=e.rowOutlines;return(!r||!r[t]||r[t].visible!==!1)&&!l.isCollapsed(t,o)},e.prototype.Pi=function(e,t,r){var i,l,s=this,c=new a.ExcelRow(t),d=e.rowOutlines,u=e.rows&&e.rows[t];return c.height=n.UnitHelper.pixelToPoint(u&&void 0!==u.size?u.size:_(e)),r>=0&&(c.collapsed=this.Ri(t,d),i=this.Si(t,d),c.outLineLevel=i===-1?0:i),t<e.rowCount&&(c.visible=s.ii(e,t)),o.J(this.xh[e.index])||(l=this.xh[e.index][t],c.formatId=o.J(l)?-1:l),c},e.prototype.vi=function(e){var t,r,o,i,n,a,l,s,c,d,u,f,b,h,p=this.Bh[e.index];if(void 0!==p)return p;if(p=[],t=e.rows,r=e.data&&e.data.rowDataArray,o=e.data&&e.data.dataTable,i=e.defaultData,t)for(n=0,a=t.length;n<a;n++)t[n]&&(p[n]=!0);if(r)for(n=0,a=r.length;n<a;n++)r[n]&&(p[n]=!0);if(o)for(l in o)o[l]&&o.hasOwnProperty(l)&&(p[l]=!0);if(i)for(l in i)i[l]&&i.hasOwnProperty(l)&&(p[l]=!0);if(s=e.tables,s&&s.forEach(function(e){var t,r=e.row,o=e.row+e.rowCount;for(t=r;t<o;t++)p[t]=!0}),c=e.spans)for(a=c.length,d=0;d<a;d++)for(u=c[d],f=u.row;f<u.row+u.rowCount;f++)p[f]=!0;if(b=e.rowOutlines&&e.rowOutlines.itemsData)for(n=0,a=b.length;n<a;n++)for(h=b[n],l=h.index;l<h.index+h.count;l++)p[l]=!0;return this.Bh[e.index]=p,p},e.prototype.Ti=function(e){var t,r,o=[],i=this.Ne,n=i.sheets&&i.sheets[e],a=this.Oi(n.columnOutlines),l=n.columnCount;for(t=0;t<l;t++)r=this.Ui(n,t,a),r&&(Math.abs(r.width-this.Vi(e))>1e-4||r.collapsed||void 0!==r.outLineLevel&&r.outLineLevel!==m&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&o.push(r);return o},e.prototype.Si=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return 0;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return n.info?n.info.level+1:1;return 0},e.prototype.Ri=function(e,t){var r,o,i,n;if(!t||!t.itemsData)return!1;for(r=t.itemsData,o=0,i=r.length;o<i;o++)if(n=r[o],e>=n.index&&e<n.index+n.count)return!!n.info&&!!n.info.collapsed;return!1},e.prototype.Ui=function(e,t,r){var i,n,s=new a.ExcelColumn(t),c=e.columnOutlines,d=e.columns&&e.columns[t];return s.width=this.calcColumnWidth(d&&void 0!==d.size?d.size:N(e)),r>=0&&t<e.columnCount&&(s.collapsed=this.Ri(t,c),i=this.Si(t,c),s.outLineLevel=i===-1?0:i),t<e.columnCount&&(d&&d.visible===!1&&(s.visible=!1),l.isCollapsed(t,c)&&(s.visible=!1)),o.J(this.yh[e.index])||(n=this.yh[e.index][t],s.formatId=o.J(n)?-1:n),s},e.prototype.Oi=function(e){var t,r,o,i;if(!e||!e.itemsData)return-1;for(t=-1,r=0,o=e.itemsData.length;r<o;r++)i=e.itemsData[r],i.info&&i.info.level>t&&(t=i.info.level);return t},e.prototype.Wi=function(e){var t,r,o=this.Ne,i=o.sheets&&o.sheets[e],n=0,a=0,l=-1,s=i.rowOutlines;return s&&(l=this.Oi(s)),l!==-1&&(n=l+2),t=-1,r=i.columnOutlines,r&&(t=this.Oi(r)),t!==-1&&(a=t+2),{outlineLevelRow:n,outlineLevelColumn:a}},e.prototype.Xi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=n.UnitHelper.pixelToPoint(r.defaults?r.defaults.rowHeight:_(r)),i=!1,a=57;return i=Math.abs(a-o)>=2,{height:o,customHeight:i}},e.prototype.Vi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.calcColumnWidth(r.defaults?r.defaults.colWidth:N(r))},e.prototype.Yi=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e];if(o.defaults&&o.defaults.colWidth&&o.defaults._isExcelDefaultColumnWidth!==!0)return t=o.defaults?o.defaults.colWidth:N(o),this.calcColumnWidth(t)},e.prototype.calcColumnWidth=function(t){var r,o,i;return 0===t?0:(r=e.Jh(this.Ne),o=Math.round(this.Zi(r.fontForColumnWidth?r.fontForColumnWidth:r.font)),i=Math.floor((t-5)/o*100+.5)/100,Math.floor((i*o+5)/o*256)/256)},e.prototype.Zi=function(e){return this.Rf===p&&(this.Rf=n.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.$i=function(e,t,r,n){var a,l,s,c,d,u,f,b=this.Ne,h=b.sheets&&b.sheets[e];if(!h)return!1;if(a=h.frozenRowCount,l=h.frozenColCount,r.col=h.activeCol>=0?h.activeCol:0,r.row=h.activeRow>=0?h.activeRow:0,s=a>0,c=l>0,0===n){if(!s||!c)return!1}else if(1===n){if(!c)return!1;s&&(r.col=l,r.row=0)}else if(2===n){if(!s)return!1;c&&(r.col=0,r.row=a)}if(r.col=Math.min(i.ExcelConstants.vb,r.col),r.row=Math.min(i.ExcelConstants.wb,r.row),t)if(d=void 0,h.selections)for(u=0;u<h.selections.length;u++)f=h.selections[u],k(f)&&(d=new o.Range(f.row>0?f.row:0,f.col>0?f.col:0,f.rowCount>0?f.rowCount:i.ExcelConstants.wb,f.colCount>0?f.colCount:i.ExcelConstants.vb),t.push(d));else t.push(new o.Range(r.row,r.col,1,1));return!0},e.prototype.ti=function(e,t,r){o.J(this.uh[e][t])&&(this.uh[e][t]=[]),this.uh[e][t].push(r)},e.prototype._i=function(e,t){var r,o,i;if(T(e)&&"/OADate"===e.substring(0,7)&&t&&!t.formatter){if(t.autoFormatter)return void(t.formatter=t.autoFormatter.formatCached);r=e.indexOf("("),o=e.indexOf(")"),r!==-1&&o!==-1&&(i=parseInt(e.substring(r+1,o),10),i<1?t.formatter="h:mm:ss":i>1&&(t.formatter="M/d/yyyy"))}},e.prototype.dg=function(e,t,r,i,n){var a;o.StringEx.L(i)?r&&(a=e[t]):a=this.lh[i],void 0!==a?n.formatId=a:n.formatId=-1},e.prototype.ri=function(e,t,r){o.StringEx.O(e)||(r.formula=e,r.arrayFormulaRange=t)},e.prototype.ui=function(e,t,r,i,n){var a,l,s,c,d,u,f,b;if(t.data&&t.data.dataTable&&t.data.dataTable[r]&&(a=t.data.dataTable[r][i]&&t.data.dataTable[r][i].hyperlink)){if(l={},s=this.aj(t.name),c=!1,s)for(d=0;d<s.length;d++)if(u=s[d],u.row===r&&u.col===i){l.ref=o.IndexHelper.T(u.col)+(u.row+1)+":"+o.IndexHelper.T(u.col+u.colCount-1)+(u.row+u.rowCount),c=!0;break}c||(l.ref=o.IndexHelper.T(i)+(r+1)),f="sjs://",a.url&&(a.url.substring(0,f.length)===f?(l.location=o.Util.oa(a.url.replace(f,"")),b=t.data.dataTable[r][i].value,"string"==typeof b&&(l.display=o.Util.oa(b))):l.url=o.Util.oa(a.url)),a.tooltip&&(l.tooltip=o.Util.oa(a.tooltip)),l["xr:uid"]=o.Ha(),n[t.name]||(n[t.name]=[]),n[t.name].push(l)}},e.prototype.pi=function(e,t){var r=0;if(o.J(e))e=m;else{if(e._error||e._calcError)return r=7,{value:e._error||e._calcError,cellType:r};"number"==typeof e?(r=1,isNaN(e)&&(e=0)):"boolean"==typeof e?r=5:T(e)&&"/OADate"===e.substring(0,7)?r=6:t?r=9:T(e)?r=2:(r=2,e=""+e)}return{value:e,cellType:r}},e.prototype.wi=function(e,t){var r,o,i=this;return k(t)?n.ConverterHelper.cloneSpreadJSStyle(t):T(t)?C.test(t)?(r=t.indexOf(g),o=i.xi(e,t.substring(r)),n.ConverterHelper.cloneSpreadJSStyle(i.af[i.lh[o]])):{parentName:t}:void 0},e.prototype.bj=function(e){var t=this;return e&&t.af[t.lh[e]]},e.prototype.yi=function(e,t,r){var i,n=this;r&&(r=n.wi(e,r),o.ga.ca(t,r,!0),r&&r.parentName&&(r.parentName=n.xi(e,r.parentName),i=n.af[n.lh[r.parentName]],o.ga.ca(t,i)))},e.prototype.cj=function(e,t){o.J(t.linkColor)?(t.linkColor!==p||!e.foreColor&&e.foreColor!==m)&&(e.foreColor="hyperlink"):e.foreColor=t.linkColor,o.J(e.textDecoration)?e.textDecoration=1:1!==(1&e.textDecoration)&&(e.textDecoration+=1)},e.prototype.xi=function(e,t){return e.renamedStyles&&e.renamedStyles[t]&&(t=e.renamedStyles[t]),t},e.prototype.oi=function(e,t,r,i,n,a,l,s,c){var d,u,f=this,b=e.data,h=f.ji(e,t,r),g=m,y=m,S=b&&b.dataTable&&b.dataTable[t]&&b.dataTable[t][r]&&b.dataTable[t][r].hyperlink,C=S||T(c)&&"/OADate"===c.substring(0,7)||c!==m&&void 0!==c&&(n||a),w=p;return v(h)&&v(a)&&v(n)&&!C&&(w=""+h+"|"+n+"|"+a),w&&f.sh[w]?(i[s]=f.sh[w].styleIndex,f.sh[w]):(h?g=f.wi(e,h):C&&(g={}),g&&(g.parentName&&(g.parentName=f.xi(e,g.parentName),d=f.af[f.lh[g.parentName]]||f.af[f.vh[g.parentName]],o.ga.ca(g,d)),f.yi(e,g,a),f.yi(e,g,n),f.yi(e,g,l),S&&f.cj(g,S),f._i(c,g),o.ga.ba(g)?g=m:(u=i[s]=f.zi(g),g.parentName&&f.isSameStyleInfo(f.af[f.lh[g.parentName]],g,!0)&&(y=g.parentName),g.name&&f.isSameStyleInfo(f.af[f.lh[g.name]],g,!0)&&(y=g.name),w&&(f.sh[w]={styleIndex:u,styleName:y,styleInfo:g}))),{styleName:y,styleInfo:g})},e.prototype.zi=function(e){var t,r=this.af;if(!e)return 0;for(t=r.length-1;t>=0;t--)if((!r[t].name||r[t].name.indexOf(g)>=0)&&o.ga.fa(r[t],e))return t;return e.name=p,r.push(e),r.length-1},e.prototype.dj=function(e){var t,r;if(!e)return 0;t=0;for(r in e)e.hasOwnProperty(r)&&parseInt(r,10)>t&&(t=parseInt(r,10));return t},e.prototype.li=function(e,t,r){var o,i,n,a=0;if(e)for(o in e)if(e.hasOwnProperty(o))for(i in e[o])parseInt(i,10)>a&&(a=parseInt(i,10));if(r)for(o in r)if(r.hasOwnProperty(o))for(i in r[o])parseInt(i,10)>a&&(a=parseInt(i,10));return n=t.tables,n&&n.forEach(function(e){e.col+e.colCount>a&&(a=e.col+e.colCount)}),a},e.prototype.ej=function(e,t,r){for(r++;r>=0&&r<t&&!e[r];)r++;return r<t?r:-1},e.prototype.fj=function(e,t,r,o,i){var n=m;if(o>=0&&o<t&&(n=e[o]),!n)return-1;for(i++;i>=0&&i<r&&!n[i];)i++;return i<r?i:-1},e.prototype.mi=function(e,t){var r,o,i=[],n=e.columnCount;if(!e.data||!e.data.columnDataArray)return i;for(r=0;r<t;r++)r<n?(o=this.ji(e,-1,r),i.push(o)):i.push(m);return i},e.prototype.gj=function(){var e,t,r,o,i,a,l=this,s=[],c={count:0};for(e=0,t=l.af.length;e<t;e++)r=l.af[e],o=n.ConverterHelper.toExtendedFormat(r,l),r.name&&r.name.indexOf(g)<0?(c[r.name]||(c[r.name]=c.count,c.count++),o.isStyleFormat=!0):(i=0,void 0!==c[r.parentName]&&c[r.parentName]!==m&&(i=c[r.parentName],a=s[i],!o.applyNumberFormat&&a&&(a.numberFormat?o.numberFormat=a.numberFormat:void 0!==a.numberFormatIndex&&(o.numberFormatIndex=a.numberFormatIndex))),o.parentFormatID=i),s.push(o);return s},e.prototype.hj=function(){var t=n.ConverterHelper.cloneSpreadJSStyle(e.Jh(this.Ne)),r=n.ConverterHelper.toExtendedFormat(t,this);return r.parentFormatID=0,r},e.prototype.ij=function(){var t,r,o,i,a,l,s,c=this,d=[],u=m;for(t=0,r=c.th.length;t<r;t++)if(o=c.th[t],"Normal"===o.name){i=new n.ExcelStyle,i.name="Normal",i.format(n.ConverterHelper.toExtendedFormat(o,c)),i.format().isStyleFormat=!0,i.builtInStyle=0,u=i,c.Ke=o;break}for(u||(a=new n.ExcelStyle,a.name="Normal",a.format(n.ConverterHelper.toExtendedFormat(e.Jh(this.Ne),c)),a.format().font.fontSize=14.67,a.format().isStyleFormat=!0,a.builtInStyle=0,d.push(a)),t=0,r=c.th.length;t<r;t++)l=c.th[t],l.name&&(void 0!==e.Bi[l.name]?(i=new n.ExcelStyle,i.name=l.name,i.format(n.ConverterHelper.toExtendedFormat(l,c)),i.format().isStyleFormat=!0,i.builtInStyle=e.Bi[l.name],("RowLevel_"===l.name.substring(0,9)||"ColLevel_"===l.name.substring(0,9))&&l.name.length>9&&(i.outLineLevel=parseInt(l.name.substring(9),10)-1),d.push(i)):(s=new n.CustomExcelStyle,s.name=l.name,s.format(n.ConverterHelper.toExtendedFormat(l,c)),s.format().isStyleFormat=!0,d.push(s)));return d},e.prototype.jj=function(){var e,t,r=[],o=this.Ne.sheets;for(e in o)o.hasOwnProperty(e)&&(t=o[e],r[t.index]=e);return r},e.prototype.kj=function(e){return this.Ne.sheets[e]},e.prototype.lj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{colsSumRight:!(r.columnOutlines&&0===r.columnOutlines.direction),rowsSumBelow:!(r.rowOutlines&&0===r.rowOutlines.direction)}:{}},e.prototype.mj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?f(r.sheetTabColor):m},e.prototype.nj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?{rowCount:r.rowCount,columnCount:r.columnCount}:{}},e.prototype.oj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i={showGridLine:!0,showRowColHeaders:!0,gridlineColor:m,zoom:1};return o?(!o.gridline||o.gridline.showVerticalGridline!==!1&&o.gridline.showHorizontalGridline!==!1||(i.showGridLine=!1),o.rowHeaderVisible===!1&&o.colHeaderVisible===!1&&(i.showRowColHeaders=!1),o.gridline&&o.gridline.color&&(i.gridlineColor=n.ColorHelper.toExcelIndexedColor(f(o.gridline.color,4291876837))),void 0!==o.topCellIndex&&void 0!==o.leftCellIndex&&(t={row:o.topCellIndex,col:o.leftCellIndex},i.topLeftCell=t),i.zoom=o.zoomFactor,i):i},e.prototype.pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o={frozenRowCount:0,frozenColCount:0,frozenTopRow:0,frozenLeftCol:0};return r?(o.frozenRowCount=r.frozenRowCount||0,o.frozenColCount=r.frozenColCount||0,o.frozenTopRow=r.frozenTopRow||0,o.frozenLeftCol=r.frozenLeftCol||0,o):o},e.prototype.qj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!!r&&r.isProtected},e.prototype.rj=function(e,t){var r,o,i=this.Ne,n=i.sheets&&i.sheets[e],a=n.protectionOptions,s={};for(o in a)a.hasOwnProperty(o)&&(r=a[o],r&&"allowSelectLockedCells"===o||r&&"allowSelectUnlockedCells"===o||r&&"allowEditObjects"===o||(s[l.fromProtectionOptions[o]?l.fromProtectionOptions[o]:o]=a[o]));return t&&!a&&(s.objects=!1),s},e.prototype.aj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r?r.spans:[]},e.prototype.sj=function(){var e=this.Ne;return{showHorizontalScrollbar:e.showHorizontalScrollbar,showVerticalScrollbar:e.showVerticalScrollbar,tabStripVisible:e.tabStripVisible,tabStripRatio:e.tabStripRatio,startSheetIndex:e.startSheetIndex,activeSheetIndex:e.activeSheetIndex}},e.prototype.tj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||0===r.visible},e.prototype.uj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return!r||2===r.visible},e.prototype.vj=function(){var e,t,r,o,i,n=[];if(this.Ne.names)for(t=0;t<this.Ne.names.length;t++)e=this.Ne.names[t],n.push({name:e.name,localSheetId:-1,formula:e.formula,comment:e.comment});r=this.Ne.sheets;for(o in r)if(r.hasOwnProperty(o)&&(i=r[o],i.names))for(t=0;t<i.names.length;t++)e=i.names[t],n.push({name:e.name,localSheetId:i.index,formula:e.formula,comment:e.comment});return n},e.prototype.xg=function(e){var t=this,r=t.Ne.sheets&&t.Ne.sheets[e];return r.conditionalFormats},e.Jh=function(e){var t,r,i,n,a,l,s={foreColor:"black",font:"normal normal normal 11pt/normal Calibri",locked:!0,name:"Normal",textDecoration:0,hAlign:3,vAlign:0};for(t in e.sheets)if(e.sheets.hasOwnProperty(t)&&(r=e.sheets[t],r.data&&r.data.defaultDataNode&&r.data.defaultDataNode.style)){for(i=r.data.defaultDataNode.style,n=this.prototype.wi(r,i),a=n.parentName;a&&(l=be(a,e,r));)o.ga.ca(n,l),a=l.parentName;return o.ga.ca(n,s),n}return s},e.prototype.wj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.comments&&r.comments.map(function(e){return l.convertToExcelComment(r,e)})},e.prototype.xj=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].pivotTables;for(t in o.sheets)o.sheets[t].pivotTables&&(r=r.concat(o.sheets[t].pivotTables));return r},e.prototype.yj=function(e){return e.floatingObjects&&e.floatingObjects.filter(function(e){return"1"===e.typeName&&e.src&&e.src.indexOf(";base64,")!==-1}).map(function(t){return l.convertToExcelPicture(e,t)})},e.prototype.zj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return r.sparklineGroups},e.prototype.$h=function(e){var t,r,o,i=e.rowFilter,a=this;if(i)return t=[],r=i.filteredColumns,o=i.filterItemMap,o&&r&&r.length>0&&o.forEach(function(o){var l,s;r.indexOf(o.index)<0||(l=o.conditions[0],3===l.conType&&(s=0===l.compareType,t.push({autoFilterColumnId:o.index-O(e,i.range).col,colorFilter:{cellColor:s,dxfId:a.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(l.expected,s)})}})))}),t},e.prototype.gi=function(e){var t,r,i=m;return e&&(t=e.sortInfo,!t||o.J(t.ascending)||o.J(t.index)||(i={range:new o.Range(e.range.row,t.index,e.range.rowCount,1),descending:!t.ascending},t.color!==p&&(r=t.isBackColor,i.isBackColor=r,"{"===t.color[0]&&(t.color=JSON.parse(t.color)),i.dxfid=this.Yh({isColorFilter:!0,fill:n.ColorHelper.toExcelBackColor(t.color,r)})))),i},e.prototype.Aj=function(e,t){var r=e.autoFilter,i={range:"A1",filterColumns:[]},n=r.filterItemMap;return n&&n.forEach(function(e){var r,n,a,l,s;e&&(r=e.conditions,n=r[0],a={autoFilterColumnId:0},l=se(n,t),o.J(l)||(s=l.filterType,1===s?a.top10=l:2===s?a.dynamicFilter=l:4===s?a.customFilters=l:3===s&&(a.filters=l),i.filterColumns.push(a)))}),i},e.prototype.Bj=function(e,t,r){var i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C,w,x,A,T,v,k,F=this,R=F.Ne,E=R.sheets&&R.sheets[e];if(o.J(t)||o.J(t.range))return m;if(i=t.adjustRangeForFrozen?E.frozenRowCount:0,n=O(E,t.range,i),a={range:n,filterColumns:[]},E.Zh&&E.Zh.length>0&&(a.filterColumns=E.Zh),l=t.filteredColumns,s=t.filterItemMap,s&&l&&l.length>0&&s.forEach(function(e){var t,r,i,s,c,d;if(!(e.index<n.col||e.index>=n.col+n.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],i=1;i<t.length;i++)r={conType:0,compareType:0,item1:r,item2:t[i]};r&&(s={autoFilterColumnId:e.index-a.range.col},c=le(E,r,new o.Range(a.range.row+1,a.range.col,a.range.rowCount-1,1)),o.J(c)||(d=c.filterType,1===d?s.top10=c:2===d?s.dynamicFilter=c:3===d?s.filters=c:4===d&&(s.customFilters=c),a.filterColumns.push(s)))}}),c=F.aj(e),c&&c.length>0){for(d=n.row,u=n.col,f=n.colCount,b=a.filterColumns.length>0,h=[],p=0,g=c;p<g.length;p++)if(y=g[p],S=y.row,C=y.rowCount,w=y.col,x=y.colCount,w>=u&&w+x<=f&&(d===S||d===S+C-1))for(A=w;A<w+x-1;A++)T=A-u,b?(v=a.filterColumns[A],v&&v.autoFilterColumnId===T?v.showButton=0:(k={autoFilterColumnId:T,showButton:0},h.push(k))):(k={autoFilterColumnId:T,showButton:0},h.push(k));h.length>0&&(a.filterColumns=a.filterColumns.concat(h))}return a.sortInfo=r,a},e.prototype.Cj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=m;return r.rowFilter&&(o=r.rowFilter.autoFilterSortInfo),this.Bj(e,r.rowFilter,o)},e.prototype.fi=function(e){var t,r=[],o=this.Ne;if(e)return o.sheets[e].tables;for(t in o.sheets)o.sheets[t].tables&&(r=r.concat(o.sheets[t].tables));return r},e.prototype.Dj=function(e){var t,r,o,i=this.Ne.sheets[e];if(!i.slicers)return[];for(t=[],r=0;r<i.slicers.length;r++)o=i.slicers[r],o.type&&"table"!==o.type||t.push(l.convertToExcelSlicer(i,o));return t},e.prototype.Ej=function(e,t){var r,o,i,n=this.Ne.sheets[e];if(!n.slicers)return[];for(r=[],o=0;o<n.slicers.length;o++)i=n.slicers[o],i.type===t&&r.push(l.convertToExcelSlicer(n,i));return r},e.prototype.Fj=function(e){return e.charts&&e.charts.map(function(t){return l.convertToExcelChart(e,t)})},e.prototype.Gj=function(e){return e.shapes&&e.shapes.map(function(t){return l.convertToExcelShape(e,t)})},e.prototype.Hj=function(e){var t,r=function(e){var t=[],o=e&&e.sp||[];return o.forEach(function(e){e.control?t.push({sp:e}):3===e.shapeType&&t.push.apply(t,r(e))}),t},o=function(e){var t=[];return e.forEach(function(e){e.sp&&e.sp.control?t.push(e):e.grpSp&&t.push.apply(t,r(e.grpSp))}),t},i=o(this.Gj(e)||[]);return i.forEach(function(e){var t=e.sp.control,r=e.sp.nvSpPr.cNvPr;t.id=r.id,t.name=r.name,t.visible=!r.hidden,r.hidden=!0}),t=function(e){return e.sp.control.id},i.sort(function(e,r){return t(e)-t(r)}),i},e.prototype.Ij=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=this.Dj(e),i=this.Ej(e,"pivot"),n=this.Ej(e,"timeline"),a=o.concat(i).concat(n),l=this.yj(r),s=this.Fj(r),c=this.Gj(r),d=this.Hj(r),u=0;return[a,l,s,c].forEach(function(e){e&&(u+=e.length)}),{slicers:a,pictures:l,charts:s,shapes:c,controlShapes:d,withDrawingObjects:u>0}},e.prototype.Jj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=[],n=o.validations;return n&&(t=this.jj(),he(n,i,e,t)),i},e.prototype.Kj=function(e){var t={top:75,bottom:75,left:70,right:70,header:30,footer:30},r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo,n=i&&i.margin;return n?{bottom:Te(n.bottom,t.bottom),top:Te(n.top,t.bottom),
28
+ left:Te(n.left,t.bottom),right:Te(n.right,t.bottom),header:Te(n.header,t.bottom),footer:Te(n.footer,t.bottom)}:m},e.prototype.Lj=function(e){var t,r=this.Ne,o=r.sheets&&r.sheets[e],i=o.printInfo;if(i)return t=i.centering,{horizontalCentered:1===t||3===t,verticalCentered:2===t||3===t,printGridLine:i.showGridLine,printRowColumnsHeaders:2===i.showRowHeader&&2===i.showColumnHeader}},e.prototype.Mj=function(e,t){var r,i,n,a,l,s,c,d,u,f,b,h,p,g,y,S,C;function w(e,t,r){return e=e||"",t=t||"",r=r||"","&L"+e+"&C"+t+"&R"+r}function x(e,t,r){if(e[t]&&e[t][r]){var o=e[t][r];return w(o.left,o.center,o.right)}}return r=this.Ne,i=r.sheets&&r.sheets[e],(n=i.printInfo)?(a={},l=n.fitPagesTall,s=n.fitPagesWide,o.J(l)||l===-1||(a.useSmartPrint=!0,a.smartPrintPagesHeight=Math.max(0,l)),o.J(s)||s===-1||(a.useSmartPrint=!0,a.smartPrintPagesWidth=Math.max(0,s)),t||(n.paperSize&&(c=n.paperSize.kind,0!==c&&(a.paperSizeIndex=c)),a.copies=1,o.J(n.firstPageNumber)||(a.useCustomStartingPage=!0,a.firstPageNumber=n.firstPageNumber),a.orientation=2===n.orientation?2:1,a.pageOrder=1===n.pageOrder?1:2,a.zoomFactor=parseFloat(n.zoomFactor),a.showColor=!n.blackAndWhite,a.advancedHeadFooterSetting={},d=a.advancedHeadFooterSetting,u=n.pageHeaderFooter,f=void 0,u?(d.headerFooterDifferentFirstPage=n.differentFirstPage,f=x(u,"first","header"),f&&(d.headerFirstPage=f),f=x(u,"first","footer"),f&&(d.footerFirstPage=f),b=n.differentOddAndEvenPages,d.headerFooterDifferentOddEvenPages=n.differentOddAndEvenPages,f=b?x(u,"odd","header"):x(u,"normal","header"),f&&(d.headerOddPage=f),f=b?x(u,"odd","footer"):x(u,"normal","footer"),f&&(d.footerOddPage=f),f=x(u,"even","header"),f&&(d.headerEvenPage=f),f=x(u,"even","footer"),f&&(d.footerEvenPage=f)):(h=w(n.headerLeft,n.headerCenter,n.headerRight),p=w(n.footerLeft,n.footerCenter,n.footerRight),a.advancedHeadFooterSetting={headerEvenPage:h,headerOddPage:h,footerOddPage:p,footerEvenPage:p}),g=i.rows,y=[],g&&g.length>0&&g.forEach(function(e,t){e&&e.pageBreak&&y.push(t)}),S=i.columns,C=[],S&&S.length>0&&S.forEach(function(e,t){e&&e.pageBreak&&C.push(t)}),y.length>0&&(a.rowBreakLines=y),C.length>0&&(a.columnBreakLines=C)),a):m},e.prototype.Nj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].printInfo},e.prototype.Oj=function(e){return this.Ne.sheets&&this.Ne.sheets[e].rowFilter},e.prototype.Pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],o=r.shapes,i=[];return o&&o.length>0&&this.Qj(o,i),i},e.prototype.Qj=function(e,t){var r=this;e.forEach(function(e,o){var i,n,a,l;1===e.shapeType?(i=void 0,e.shapeData&&e.shapeData.pic&&e.shapeData.pic.cameraTool?i=e.shapeData.pic:e.cameraTool===!0&&(i=e),i&&(n=o+1,a=De("Picture_x0020_"+n,i.src),a.style=i.vmlStyle,a.anchor=i.anchor,a.cellRange=i.cellRange,a.spid="_x0000_s10"+i.spid,t.push(a))):3===e.shapeType&&(l=e.shapeData&&e.shapeData.grpSp&&e.shapeData.grpSp.sp||e.sp,l&&r.Qj(l,t))})},e.prototype.Rj=function(e){var t,r,o,i,n,a,l,s=this.Ne,c=s.sheets&&s.sheets[e],d=c.printInfo,u=[];return d&&(t=d.pageHeaderFooter,t?(r=t.normal,o=t.odd,o?(i=o.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=o.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))):r&&(i=r.header||{},i.leftImage&&u.push(De("LH",i.leftImage)),i.centerImage&&u.push(De("CH",i.centerImage)),i.rightImage&&u.push(De("RH",i.rightImage)),n=r.footer||{},n.leftImage&&u.push(De("LF",n.leftImage)),n.centerImage&&u.push(De("CF",n.centerImage)),n.rightImage&&u.push(De("RF",n.rightImage))),a=t.even,a&&(i=a.header||{},i.leftImage&&u.push(De("LHEVEN",i.leftImage)),i.centerImage&&u.push(De("CHEVEN",i.centerImage)),i.rightImage&&u.push(De("RHEVEN",i.rightImage)),n=a.footer||{},n.leftImage&&u.push(De("LFEVEN",n.leftImage)),n.centerImage&&u.push(De("CFEVEN",n.centerImage)),n.rightImage&&u.push(De("RFEVEN",n.rightImage))),l=t.first,l&&(i=l.header||{},i.leftImage&&u.push(De("LHFIRST",i.leftImage)),i.centerImage&&u.push(De("CHFIRST",i.centerImage)),i.rightImage&&u.push(De("RHFIRST",i.rightImage)),n=l.footer||{},n.leftImage&&u.push(De("LFFIRST",n.leftImage)),n.centerImage&&u.push(De("CFFIRST",n.centerImage)),n.rightImage&&u.push(De("RFFIRST",n.rightImage)))):(d.headerLeftImage&&u.push(De("LH",d.headerLeftImage)),d.headerCenterImage&&u.push(De("CH",d.headerCenterImage)),d.headerRightImage&&u.push(De("RH",d.headerRightImage)),d.footerLeftImage&&u.push(De("LF",d.footerLeftImage)),d.footerCenterImage&&u.push(De("CF",d.footerCenterImage)),d.footerRightImage&&u.push(De("RF",d.footerRightImage)))),u},e.prototype.Sj=function(){return this.vh},e.Bi={"20% - Accent1":30,"20% - Accent2":34,"20% - Accent3":38,"20% - Accent4":42,"20% - Accent5":46,"20% - Accent6":50,"40% - Accent1":31,"40% - Accent2":35,"40% - Accent3":39,"40% - Accent4":43,"40% - Accent5":47,"40% - Accent6":51,"60% - Accent1":32,"60% - Accent2":36,"60% - Accent3":40,"60% - Accent4":44,"60% - Accent5":48,"60% - Accent6":52,Accent1:29,Accent2:33,Accent3:37,Accent4:41,Accent5:45,Accent6:49,Bad:27,Calculation:22,"Check Cell":23,Comma:3,"Comma [0]":6,Currency:4,"Currency [0]":7,"Explanatory Text":53,Good:26,"Heading 1":16,"Heading 2":17,"Heading 3":18,"Heading 4":19,Input:20,"Linked Cell":24,Neutral:28,Normal:0,Note:10,Output:21,Percent:5,Title:15,Total:25,"Warning Text":11,Hyperlink:8,FollowedHyperLink:9,RowLevel_1:1,RowLevel_2:1,RowLevel_3:1,RowLevel_4:1,RowLevel_5:1,RowLevel_6:1,RowLevel_7:1,ColLevel_1:2,ColLevel_2:2,ColLevel_3:2,ColLevel_4:2,ColLevel_5:2,ColLevel_6:2,ColLevel_7:2},e}(),t.WriterDataModel=A},"./src/datamodel/datetime-helper.ts":function(e,t,r){"use strict";var o,i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=null,n=void 0;function l(e){var t=e.getTimezoneOffset();return t===-485&&(t=-485-43/60),t===-321&&(t=-321-10/60),t===-507&&(t=-507-52/60),t===-402&&(t=-402-4/60),t}a=function(){function e(){}return e.jg=function(e){return"/OADate("+e+")/"},e.Tj=function(e){return"string"==typeof e&&"/OADate("===e.substr(0,8)?parseInt(e.substr(8,e.length-8-1-1),10):e},e.ig=function(e){return e===n||e===i?0:("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date?(1440*e.getTime()+3181192704e6-864e5*l(e))/124416e6:0)},e.Je=function(e){var t,r=e-25569,o=new Date(864e5*r),i=r>=0?1:-1,n=l(o),a=(864e5*e*1440+i-3181192704e6+864e5*n)/1440,s=new Date(a),c=n>=0?1:-1,d=new Date(a+36e5*c),u=l(d);return Math.abs(n-u)>=60?new Date(a+60*(u-n)*1e3):(t=e+"",s=999===s.getMilliseconds()&&"33333333"===t.substr(t.length-8)?new Date(s.valueOf()+1):s)},e.vf=function(t){var r,o,n,a,l,s,c;if(!t||" "===t)return!1;if(0===t.length)return!1;if(t=t.toUpperCase(),t=t.replace(/(\[.*\])+/g," "),t=t.replace(/"[^"]*"/g," "),t=t.replace(/(\*.|_.|\\.)+/g," "),t.indexOf("GENERAL")!==-1)return!1;for(r=-1,o=0,n=!1,a=null,l=0;l<t.length;l++){if(s=t[l],"["===s)do s=t[l],l++;while(l<t.length&&"]"!==s);if("Y"===s||"D"===s||"M"===s||"H"===s||"S"===s||"A"===s)n?o++:(0===l||t.length>0&&"\\"!==t[l-1])&&(n=!0,r=l,o=1);else{if(n=!1," "===s&&a)return!0;0!==o&&(c=t.substring(r,r+o),r=l,o=0,a=a===i?e.Uj(c):a&&e.Uj(c))}}return 0!==o&&l===t.length&&(c=t.substring(r,r+o),a=a===i?e.Uj(c):a&&e.Uj(c)),!!a},e.Uj=function(e){var t,r,i,a,l,s,c,d,u;if(o.StringEx.O(e))return!1;for(t=[],r="",i=0,a=e.length;i<a;i++)l=e[i],r.indexOf(l)===-1&&(t.push({key:l,count:e.match(RegExp(l,"g")).length}),r+=l);for(s={Y:4,D:4,M:5,H:2,S:2,A:4},i=0,c=t.length;i<c;i++){if(d=t[i],u=s[d.key],u===n)return!1;if(d.count>u)return!1}return!0},e}(),t.DateTimeHelper=a},"./src/datamodel/excel-helper.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/datamodel/excel-style.ts"),n=r("./src/datamodel/chart-model.ts"),a=r("./src/common/excel-types.ts"),l=null;function h(e,t,r){var o,i=e.defaults.colWidth,n=e.columns,a=0,s=n?l:i;for(o=t;o<r;o++)a+=s||p(n,o,i,e.columnOutlines);return a}function p(e,t,r,o){var i=e[t];return i?o&&w(t,o)?0:i.visible===!1?0:i.size:r}function m(e,t,r){var o,i=e.defaults.rowHeight,n=e.rows,a=0,s=n?l:i;for(o=t;o<r;o++)a+=s||g(n,o,i,e.rowOutlines);return a}function g(e,t,r,o){var i=e[t];return i?o&&w(t,o)?0:i.visible===!1?0:i.size:r}function y(e,t){for(var r,o,i=e.defaults.colWidth,n=e.columns,s=0,c=0,d=n&&n.length||a.ExcelConstants.vb,u=n?l:i;s<t&&c<d;)r=u||p(n,c,i),s+=r,c++;return o=s-t,o>0?(c--,o=r-o):o=t-s,{col:c,colOffset:o}}function S(e,t){for(var r,o,i=e.defaults.rowHeight,n=e.rowsVisibleInfo||e.rows,s=0,c=0,d=n&&n.length||a.ExcelConstants.wb,u=n?l:i;s<t&&c<d;)r=u||g(n,c,i),s+=r,c++;return o=s-t,o>0?(c--,o=r-o):o=t-s,{row:c,rowOffset:o}}function C(e,t){var r=t.x,o=t.y,i={},n={},a=S(e,o);return A(a,i,["row","rowOffset"]),a=y(e,r),A(a,i,["col","colOffset"]),a=S(e,o+t.height),A(a,n,["row","rowOffset"]),a=y(e,r+t.width),A(a,n,["col","colOffset"]),{startPoint:i,endPoint:n}}function w(e,t){if(!t)return!1;if(t.items)return t.items[e]&&t.items[e].viewCollapsed;if(!t.itemsData)return!1;t.collapseIndexMap||x(t);var r=t.collapseIndexMap;return!!r[e]}t.isCollapsed=w;function x(e){var t,r,o,i,n,a,l,s=e.itemsData,c=e.collapseIndexMap={},d=!1;if(0===e.direction){for(t=s.length-1;t>=0;t--)if(o=s[t],o&&1===o.count&&o.info&&o.info.collapsed){for(i=o.index+o.count,n=t+1;n<s.length;n++)a=s[n],a&&a.info&&a.info.level>o.info.level&&a.index===i&&(i=a.index+a.count);for(l=o.index+1;l<i;l++)c[l]=!0}}else for(r=s.length,t=0;t<r;t++)if(o=s[t],o&&1===o.count&&o.info&&o.info.collapsed){if(i=o.index-1,i<0&&o.info.level===-1)break;for(n=t-1;n>=0;n--)a=s[n],a&&a.info&&a.info.level>o.info.level&&a.index+a.count-1===i&&(i=a.index-1);for(l=i+1;l<o.index;l++)c[l]=!0}}s=7;function A(e,t,r){r.forEach(function(r){void 0!==e[r]&&(t[r]=e[r])})}function T(e,t){var r,n,a,c,d,u,f,b,p,g,y,S,C,w,x,T,v={};return A(t,v,["fontSize","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode"]),r=e.forzenRowCount||0,n=e.forzenColumnCount||0,a=t.row,c=t.col,d=t.anchor,u=h(e,n,c+1),f=m(e,r,a),v.rowIndex=a-r,v.colIndex=c-n,d?(b=h(e,n,d[0])+d[1]-s,p=m(e,r,d[2])+d[3]-s,g=h(e,n,d[4])+d[5]+s,y=m(e,r,d[6])+d[7]+s,v.location={x:b-u,y:p-f},v.width=g-b,v.height=y-p,V(e,d)):(v.location={x:i.UnitHelper.pointToPixel(t.marginLeft)-u-s,y:i.UnitHelper.pointToPixel(t.marginTop)-f-s},v.width=k(t.width)+2*s,v.height=k(t.height)+2*s,V(e,l,{x:v.location.x+u,y:v.location.y+f,width:v.width,height:v.height})),S=t.foreColor,S&&S!==i.ExcelColor.EmptyColor&&(v.foreColor=i.ColorHelper.toRGBColor(S)),S=t.backColor,S&&(v.backColor=S.split(" ")[0]),S=t.borderColor,S&&(v.borderColor=S.split(" ")[0]),C=t.borderWidth,C&&(v.borderWidth=k(C)),v.borderStyle=R(t.dashStyle,t.lineStyle),w=t.zIndex,o.J(w)||(v.zIndex=w),w=t.opacity,o.J(w)||(v.opacity=w),t.autoSize&&(v.autoSize=!0),v.locked=t.locked!==!1,v.lockText=t.lockText!==!1,v.dynamicSize=t.dynamicSize!==!1,v.dynamicMove=t.dynamicMove!==!1,w=t.inset,w&&(x=[0,0,0,0],w.trim().split(",").forEach(function(e,t){var r=e||["0.1in","0.05in"][t%2];x[t]=F(r)}),v.padding={left:x[0],top:x[1],right:x[2],bottom:x[3]}),T=["left","center","right"].indexOf(t.hAlign),T!==-1&&(v.horizontalAlign=T),v}t.convertFromExcelComment=T;function v(e,t){var r,n,a,l,c,d,u=t.rowIndex,f=t.colIndex,b=t.location||{x:9,y:-18},p={row:u,col:f};return o.J(t.width)&&(t.width=160),o.J(t.height)&&(t.height=100),t.fontFamily=t.fontFamily||"Arial",t.borderColor=t.borderColor||"black",t.backColor=t.backColor||"#FFFFE1",A(t,p,["zIndex","opacity","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode","backColor","borderColor"]),r=h(e,0,f+1),n=m(e,0,u),p.marginLeft=i.UnitHelper.pixelToPoint(r+b.x+s),p.marginTop=i.UnitHelper.pixelToPoint(n+b.y+s),p.width=i.UnitHelper.pixelToPoint(t.width-2*s)+"pt",p.height=i.UnitHelper.pixelToPoint(t.height-2*s)+"pt",a=t.fontSize||"9pt",a.indexOf("px")!==-1?p.fontSize=i.UnitHelper.pixelToPoint(parseFloat(a)):p.fontSize=a.replace("pt",""),l=t.foreColor,p.foreColor=l&&i.ColorHelper.toExcelColor(l),p.borderWidth=i.UnitHelper.pixelToPoint(t.borderWidth||1)+"pt",c=E(t.borderStyle),p.dashStyle=c.dashStyle,p.lineStyle=c.lineStyle,d=t.padding,d&&(p.inset=[i.UnitHelper.pixelToPoint(d.left)+"pt",i.UnitHelper.pixelToPoint(d.top)+"pt",i.UnitHelper.pixelToPoint(d.right)+"pt",i.UnitHelper.pixelToPoint(d.bottom)+"pt"].join(",")),p.hAlign=["Left","Center","Right"][t.horizontalAlign||0]||"Left",p.visibility=1===t.displayMode?"visible":"hidden",p}t.convertToExcelComment=v;function k(e){return e?i.UnitHelper.pointToPixel(parseFloat(e.replace("pt",""))):0}function F(e){var t=0;return e.indexOf("in")!==-1?t=72*parseFloat(e.replace("in","").trim()):e.indexOf("cm")!==-1?t=72*parseFloat(e.replace("cm","").trim())/2.54:e.indexOf("mm")!==-1?t=72*parseFloat(e.replace("mm","").trim())/25.4:e.indexOf("pt")!==-1&&(t=parseFloat(e.replace("pt","").trim())),i.UnitHelper.pointToPixel(t)}function R(e,t){if(!o.StringEx.L(t))return"double";if(e)switch(e.toLowerCase()){case"solid":return"solid";case"1 1":return"dotted";case"dash":case"dashdot":case"longdash":case"longdashdot":case"longdashdotdot":return"dashed"}return"solid"}function E(e){var t,r;if(e)switch(e.toLowerCase()){case"solid":t="solid";break;case"dotted":t="1 1";break;case"dashed":t="dash";break;case"double":r="thinThin"}return{dashStyle:t,lineStyle:r}}function I(e,t){if(e){var r=e.startPoint,o=e.endPoint;t.startRow=r.row,t.startRowOffset=r.rowOffset,t.startRowOffsetEmu=r.rowOffsetEmu,t.startColumn=r.col,t.startColumnOffset=r.colOffset,t.startColumnOffsetEmu=r.colOffsetEmu,t.endRow=o.row,t.endRowOffset=o.rowOffset,t.endRowOffsetEmu=o.rowOffsetEmu,t.endColumn=o.col,t.endColumnOffset=o.colOffset,t.endColumnOffsetEmu=o.colOffsetEmu}}c=1e5;function L(e){return{l:e.l/c,t:e.t/c,r:e.r/c,b:e.b/c}}function D(e){return{l:parseInt((e.l||0)*c,10),t:parseInt((e.t||0)*c,10),r:parseInt((e.r||0)*c,10),b:parseInt((e.b||0)*c,10)}}function B(e,t,r){var o,i=G(r,t.name,"picture"),n={name:i,alt:t.descr};return A(t,n,["src","isVisible","locked","rot"]),de(t.anchor,e,n,t.xfrm),U(t.pictureFormat,n),o=t.srcRect,o&&(n.srcRect=L(o)),n}t.convertFromExcelPicture=B;function P(e,t){return t.twoCellAnchor=Z(e,t),t}t.convertToExcelSlicer=P;function W(e,t){switch(e){case"solid":return"dbl"===t?"double":"solid";case"dot":case"sysDot":return"dotted"}return"dashed"}function _(e){return!e||"hidden"===e}function N(e){switch(e){case"dotted":return"dot";case"dashed":return"dash";case"double":return"dbl"}return"solid"}function M(e,t){var r,o={},n=t.src;return O(n,o),A(t,o,["name","locked","rot"]),o.descr=t.alt,o.twoCellAnchor=Z(e,t,!0),o.hidden=t.isVisible===!1,o.fillColor=i.ColorHelper.toExcelColor(t.backColor),o.lineBorder={width:_(t.borderStyle)?0:t.borderWidth,color:i.ColorHelper.toExcelColor(t.borderColor),style:N(t.borderStyle),noFill:t.noFill},r=t.srcRect,r&&(o.srcRect=D(r)),o}t.convertToExcelPicture=M,d=";base64,";function O(e,t){var r,o=e.indexOf(d);o>0&&(t.base64Image=e.substr(o+d.length),r=e.substr(0,o).split("/").pop(),"x-icon"===r&&(r="png"),t.imageType=r)}t.getPictureInfo=O;function H(e){if(!e)return!1;var t={};return O(e,t),"svg+xml"===t.imageType}t.isSVGPicture=H;function G(e,t,r){function o(e){return e.name===this.name}function i(t){var r=o.bind({name:t});return void 0!==e.filter(r)[0]}t=t||r;for(var n=t,a=1;i(n);)n=t+"_"+a,a++;return n}function U(e,t){var r,o,n,a,l;return e?(r=e.fillFormat,r&&1===r.fillFormatType&&(t.backColor=i.ColorHelper.toRGBColor(r.color)),o=e.lineFormat,void(o&&(t.borderWidth=o.width,n=o.fillFormat,n&&1===n.fillFormatType?t.borderColor=i.ColorHelper.toRGBColor(n.color):n&&0===n.fillFormatType&&(t.noFill=!0),a=o.lineDashType,a&&(l=o.compoundLineType,t.borderStyle=W(a,l))))):null}u=2;function J(e,t,r){e.rowCount<t&&(e.rowCount=t),e.columnCount<r&&(e.columnCount=r)}function z(e,t){var r=0,o=0,i=t.endPoint;i&&(r=i.row,o=i.col),r+=u,o+=u,J(e,r,o)}t.inflateWorksheetByAnchor=z;function V(e,t,r){var o,i,n;t?(o=t[6]+1,i=t[4]+1):(n=C(e,r),o=n.endPoint.row+u,i=n.endPoint.col+u),J(e,o,i)}function j(e,t,r){var o,i,n,a;return o=h(e,0,t.col)+t.colOffset,i=m(e,0,t.row)+t.rowOffset,n=h(e,0,r.col)+r.colOffset,a=m(e,0,r.row)+r.rowOffset,{x:o,y:i,width:n-o,height:a-i}}t.getBounds=j;function X(e,t){return j(e,t.startPoint,t.endPoint)}function K(e,t){var r=t.startPoint,o=h(e,0,r.col)+r.colOffset,i=m(e,0,r.row)+r.rowOffset;return{x:o,y:i,width:t.width,height:t.height}}function q(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}function Y(e,t,r){var o=e.startPoint,i=e.endPoint,n=o.x*t,a=o.y*r,l=i.x*t,s=i.y*r;return{x:n,y:a,width:l-n,height:s-a}}function Q(e,t,r){var o=e.startPoint;return{x:o.x*t,y:o.y*r,width:e.width,height:e.height}}function Z(e,t,r){var i,n,a;return o.J(t.startRow)?C(e,{x:t.x||0,y:t.y||0,width:t.width||0,height:t.height||0}):(r&&(t=$(e,t)),i={row:t.startRow,rowOffset:t.startRowOffset||0,col:t.startColumn,colOffset:t.startColumnOffset||0},n={row:t.endRow,rowOffset:t.endRowOffset||0,col:t.endColumn,colOffset:t.endColumnOffset||0},a=ne(t.dynamicMove,t.dynamicSize),{startPoint:i,endPoint:n,editAs:a})}function $(e,t){var r=t.pictureStretch;return 0===r?t:1===r?ee(e,t):2===r?te(e,t):3===r?re(e,t):t}function ee(e,t){var r,o,i,n,a,l,s,c,d,u,f=e.rowCount,b=e.columnCount,p=t.width,g=t.height,y=t.startRow,S=t.startRowOffset||0,C=t.startColumn,w=t.startColumnOffset||0,x=t.endRow,A=t.endRowOffset||0,T=t.endColumn,v=t.endColumnOffset||0,k=t.originalWidth,F=t.originalHeight,R=Math.min(p,k),E=Math.min(g,F),I=F>g?S:S+(g-F)/2,L=k>p?w:w+(p-k)/2;for(p=R,g=E,r=0,o=y,i=I,n=!1;o<f;)if(a=m(e,o,o+1),o++,r+=a,!n&&(i-=a),i<0&&!n&&(y=o-1<0?0:o-1,S=a+i,n=!0),r>g+I){x=o-1<0?0:o-1,A=a-(r-g-I);break}for(l=0,s=C,c=L,d=!1;s<b;)if(u=h(e,s,s+1),s++,l+=u,!d&&(c-=u),c<0&&!d&&(C=s-1<0?0:s-1,w=u+c,d=!0),l>p+L){T=s-1<0?0:s-1,v=u-(l-p-L);break}return t.width=p,t.height=g,t.startRow=y,t.startRowOffset=S,t.endRow=x,t.endRowOffset=A,t.startColumn=C,t.startColumnOffset=w,t.endColumn=T,t.endColumnOffset=v,t}function te(e,t){var r,o,i,n,a,l,s,c,d=e.rowCount,u=e.columnCount,f=t.width,b=t.height,p=t.startRow,g=t.startRowOffset||0,y=t.startColumn,S=t.startColumnOffset||0,C=t.endRow,w=t.endRowOffset||0,x=t.endColumn,A=t.endColumnOffset||0,T=t.originalWidth,v=t.originalHeight,k=f/b,F=T/v,R=0,E=0,I=f,L=b;if(b>0&&v>0&&k>F)I=F*b,R=S+f/2-I/2,f=I,b=1/F*f;else{if(!(f>0&&T>0&&1/k>1/F))return t;L=1/F*f,E=g+b/2-L/2,b=L,f=F*b}if(R>0){for(;y<u;)if(r=h(e,y,y+1),y++,R-=r,R<0){y--,S=R+r;break}for(o=0,i=y;i<u;)if(n=h(e,i,i+1),i++,o+=n,o>I+S){A=n-(o-I-S),x=i-1<0?0:i-1;break}}else if(E>0){for(;p<d;)if(a=m(e,p,p+1),p++,E-=a,E<0){p--,g=E+a;break}for(l=0,s=p;s<d;)if(c=m(e,s,s+1),s++,l+=c,l>L+g){w=c-(l-L-g),C=s-1<0?0:s-1;break}}return t.width=f,t.height=b,t.startRow=p,t.startRowOffset=g,t.endRow=C,t.endRowOffset=w,t.startColumn=y,t.startColumnOffset=S,t.endColumn=x,t.endColumnOffset=A,t}function re(e,t){var r,o,i,n,a,l,s=e.rowCount,c=e.columnCount,d=t.width,u=t.height,f=t.startRow,b=t.startRowOffset||0,p=t.startColumn,g=t.startColumnOffset||0,y=t.endRow,S=t.endRowOffset||0,C=t.endColumn,w=t.endColumnOffset||0,x=t.originalWidth,A=t.originalHeight;for(d=Math.min(d,x),u=Math.min(u,A),r=0,o=f;o<s;)if(i=m(e,o,o+1),o++,r+=i,r>u+b){y=o-1<0?0:o-1,S=i-(r-u-b);break}for(n=0,a=p;a<c;)if(l=h(e,a,a+1),a++,n+=l,n>d+g){C=a-1<0?0:a-1,w=l-(n-d-g);break}return t.width=d,t.height=u,t.startRow=f,t.startRowOffset=b,t.endRow=y,t.endRowOffset=S,t.startColumn=p,t.startColumnOffset=g,t.endColumn=C,t.endColumnOffset=w,t}function oe(e,t,r,o){var i=t.anchorType;return 0===i?X(e,t):1===i?K(e,t):2===i?q(t):3===i?Y(t,r,o):4===i?Q(t,r,o):null}function ie(e){var t=e.anchorType||e.editAs||0,r=!0,o=!0;return 2===t?(r=!1,o=!1):1===t&&(o=!1),{dynamicMove:r,dynamicSize:o}}function ne(e,t){var r;return e===!1&&t===!1?r=2:t===!1&&(r=1),r}function ae(e,t,r){var o={x:e.x||0,y:e.y||0,width:e.width||0,height:e.height||0};return{startPoint:{x:(o.x/t).toFixed(5),y:(o.y/r).toFixed(5)},endPoint:{x:((o.x+o.width)/t).toFixed(5),y:((o.y+o.height)/r).toFixed(5)}}}function le(e){var t,r,o;return e?(t=i.ColorHelper.toExcelColor(e),r=t.colorType(),2===r?(o=i.ColorHelper.getRGBAColorData(t),{srgbClr:{val:o.rgb}}):3===r?{schemeClr:{val:t.value()}}:null):null}function se(e,t,r){return{x:e.x*r-e.y*t,y:e.x*t+e.y*r}}f=Math.PI/180/6e4;function ce(e){var t,r,i,n,a,l,s,c,d,u,b,h,p,m,g,y,S,C,w,x;if(e&&!o.J(e.rot))return t=e.rot,r=e.off,i=e.ext,n=r.x,a=r.y,l=i.cx,s=i.cy,c=l/2,d=s/2,u=t*f,b=Math.sin(u),h=Math.cos(u),p=n+c,m=a+d,g=[],y=[],[{x:-c,y:-d},{x:c,y:-d},{x:-c,y:d},{x:c,y:d}].forEach(function(e){var t=se(e,b,h);g.push(t.x+p),y.push(t.y+m)}),S=Math.min.apply(null,g),C=Math.max.apply(null,g),w=Math.min.apply(null,y),x=Math.max.apply(null,y),{x:S,y:w,width:C-S,height:x-w}}function de(e,t,r,o){var i,n,a=ce(o)||oe(t,e),l=ie(e);r.dynamicMove=l.dynamicMove,r.dynamicSize=l.dynamicSize,A(a,r,["x","y","width","height"]),0===e.anchorType?(i=o?C(t,a):e,I(i,r)):i=C(t,a),z(t,i),n=e.clientData,n&&(r.isLocked=n.fLocksWithSheet,r.canPrint=n.fPrintsWithSheet)}function ue(e,t){var r,i,n,a,l,s,c,d,u,f,b;return z(e,t),n=o.Util.za(t),a=n&&n.layoutId,l=o.Util.Aa(a),r=l?t.AlternateContent&&t.AlternateContent.Choice&&t.AlternateContent.Choice.GraphicalObjectFrame&&t.AlternateContent.Choice.GraphicalObjectFrame.nvGraphicFramePr:2===t.shapeType?t.nvGraphicFramePr:t.graphicFrame&&t.graphicFrame.nvGraphicFramePr,i=r&&r.cNvPr,s=G(e.charts,i.name,"chart"),c=t.chartSpace,d={name:s,chartSpace:c,isVisible:!i.hidden,alt:i.descr,AlternateContent:t.AlternateContent},de(t,e,d,t.xfrm),u=d.width,f=d.height,b=c.userShapes,b&&(c.userShapes=b.map(function(t){return t.pic?me(e,t,u,f):t.graphicFrame?he(e,t,u,f):void 0})),d}t.convertFromExcelChart=ue;function fe(e,t){var r,o=t.shapeData;return o.editAs=ne(t.dynamicMove,t.dynamicSize),o.clientData={fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},r=t.alt,r&&(o.sp?o.sp.nvSpPr.cNvPr.descr=r:o.cxnSp?o.cxnSp.nvCxnSpPr.cNvPr.descr=r:o.grpSp?o.grpSp.nvGrpSpPr.cNvPr.descr=r:o.pic&&(o.pic.nvPicPr.cNvPr.descr=r)),o}t.convertToExcelShape=fe;function be(e,t){var r,i=Z(e,t),n=t.isVisible,a=t.chartSpace,l={anchorType:0,startPoint:i.startPoint,endPoint:i.endPoint,editAs:i.editAs,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:t.name,descr:t.alt||"",hidden:!o.J(n)&&!n}}},clientData:{fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},chartSpace:a,AlternateContent:t.AlternateContent},s=1,c=a.userShapes;return c&&c.length>0&&(r=c.map(function(e){var r;return"1"===e.typeName?(r=ge(e,s,t.width,t.height),s++):"2"===e.typeName&&(r=pe(e,s,t.width,t.height),s++),r}).filter(function(e){return!!e}),r.length>0?a.userShapes={relSizeAnchor:r}:delete a.userShapes),l}t.convertToExcelChart=be;function he(e,t,r,o){var i=t.graphicFrame&&t.graphicFrame.nvGraphicFramePr&&t.graphicFrame.nvGraphicFramePr.cNvPr&&t.graphicFrame.nvGraphicFramePr.cNvPr,n=G(e.charts,i.name,"chart"),a=oe(e,t,r,o),l={name:n,chartSpace:t.chartSpace,isVisible:!i.hidden,alt:i.descr};return A(a,l,["x","y","width","height"]),l}function pe(e,t,r,i){var n=ae(e,r,i),a=e.isVisible;return{typeName:e.typeName,anchorType:3,startPoint:n.startPoint,endPoint:n.endPoint,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:e.name,descr:e.alt||"",hidden:!o.J(a)&&!a}}},chartSpace:e.chartSpace}}function me(e,t,r,o){var i,n,a,l,s,c=t.pic&&t.pic.nvPicPr&&t.pic.nvPicPr.cNvPr,d=c.name,u=e.floatingObjects;return u&&(d=G(u,d,"picture")),i=t.pic&&t.pic.blipFill,n=i&&i.blip&&i.blip.blipBlob,a=n&&n.blob,l={name:d,alt:c.descr,src:a,isVisible:!c.hidden},s=oe(e,t,r,o),A(s,l,["x","y","width","height"]),U(t.pictureFormat,l),l}function ge(e,t,r,o){var i,a,l=ae(e,r,o),s={typeName:e.typeName,anchorType:3,startPoint:l.startPoint,endPoint:l.endPoint,pic:{nvPicPr:{cNvPr:{name:e.name,descr:e.alt||""},cNvPicPr:{picLocks:{}}},spPr:{ln:{w:_(e.borderStyle)?0:e.borderWidth},prstGeom:{prst:1,avLst:{}}}},src:e.src},c=s.pic.spPr,d=c.ln,u=le(e.backColor);return u&&(c.solidFill=u),i=le(e.borderColor),i&&(d.solidFill=i),a=N(e.borderStyle),"dbl"===a?d.cmpd=n.Charts.ST_CompoundLine[a]:d.prstDash=n.Charts.ST_PresetLineDashVal[a],s}function ye(e,t){return!(!e||!t||e.color!==t.color||e.type!==t.type)||!e&&!t}t.isBorderEqual=ye,b={backColor:2,foreColor:0,borderBottom:1,borderLeft:1,borderRight:1,borderTop:1,font:0,textDecoration:0};function Se(e,t){var r,i={};for(r in e)e.hasOwnProperty(r)&&(0===b[r]?e[r]!==t[r]&&(i[r]=e[r]):1===b[r]?ye(e[r],t[r])||(i[r]=e[r]):2===b[r]?o.Util.Da(e[r],t[r])||(i[r]=e[r]):i[r]=e[r]);return i}t.processTableCellStyle=Se;function Ce(e,t){var r,o={};for(r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);for(r in b)void 0===e[r]&&void 0!==t[r]&&(o[r]=t[r]);return o}t.resetTableCellStyle=Ce;function we(e,t){var r,o="png",i=e.lastIndexOf(".");return i!==-1&&(o=e.substr(i+1)),"svg"===o&&(o="svg+xml"),r=t(e,!0),r?"data:image/"+o+";base64,"+r:l}t.getImageContent=we;function xe(e){return JSON.parse(JSON.stringify(e))}function Ae(e){var t=e.sp||e.cxnSp||e.grpSp;return t&&(t.spPr&&t.spPr.xfrm||t.grpSpPr&&t.grpSpPr.xfrm)}t.getXFrm=Ae;function Te(e,t){if(e&&5===e.shapeType){var r=t[e.nvSpPr.cNvPr.id];r&&(e.shapeType=7,e.control=r)}}function ve(e,t){var r=e&&e.sp||[];r.forEach(function(e){5===e.shapeType?Te(e,t):3===e.shapeType&&ve(e,t)})}function ke(e,t){var r,o,i={},n=e.controls||{};return de(t,e,i),t.sp?(Te(t.sp,n),i.shapeType=t.sp.shapeType,i.name=t.sp.nvSpPr.cNvPr.name,i.alt=t.sp.nvSpPr.cNvPr.descr,i.shapeData=xe(t)):t.cxnSp?(i.shapeType=t.cxnSp.shapeType,i.name=t.cxnSp.nvCxnSpPr.cNvPr.name,i.alt=t.cxnSp.nvCxnSpPr.cNvPr.descr,i.shapeData=xe(t)):t.grpSp?(ve(t.grpSp,n),i.shapeType=t.grpSp.shapeType,i.name=t.grpSp.nvGrpSpPr.cNvPr.name,i.alt=t.grpSp.nvGrpSpPr.cNvPr.descr,i.shapeData=xe(t)):t.pic&&(r=t.pic,i.shapeType=r.shapeType,i.name=r.nvPicPr.cNvPr.name,i.alt=r.nvPicPr.cNvPr.descr,i.shapeData=xe(t)),o=i.shapeData,o&&o.hidden&&(o.isVisible=!1,i.isVisible=!1,delete o.hidden),i}t.convertFromExcelShape=ke,t.toProtectionOptions={selectLockedCells:"allowSelectLockedCells",selectUnlockedCells:"allowSelectUnlockedCells",autoFilter:"allowFilter",sort:"allowSort",insertColumns:"allowInsertColumns",insertRows:"allowInsertRows",deleteColumns:"allowDeleteColumns",deleteRows:"allowDeleteRows",objects:"allowEditObjects"},t.fromProtectionOptions={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},t.excelSupportProtectionOptions={formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,sort:!0,autoFilter:!0,pivotTables:!0};function Fe(e){return Ee(e)?(e>4294934530&&e<4294967296&&(e-=4294967296),e):e}t.convertFirstPageNumber=Fe;function Re(e){return Ee(e)?(e<0&&(e+=4294967296),e):e}t.convertFirstPageNumberToExcel=Re;function Ee(e){return"string"==typeof e&&(e=+e),!(isNaN(e)||!isFinite(e))}},"./src/datamodel/excel-style.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B,P,W,_,N,M,O,H,G;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/builtIn-resource.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xml-io/xml-reader.ts"),l=r("./src/xlsx-io/reader/style-reader.ts"),s=null,c=void 0,d="Headings",u="Body",f="Calibri",b="bold",h="italic",function(e){e[e.none=0]="none",e[e.major=1]="major",e[e.minor=2]="minor",e[e.ninched=255]="ninched"}(p=t.FontSchemeCategory||(t.FontSchemeCategory={})),function(e){e[e.top=0]="top",e[e.center=1]="center",e[e.bottom=2]="bottom",e[e.justify=3]="justify",e[e.distributed=4]="distributed"}(m=t.ExcelVerticalAlignment||(t.ExcelVerticalAlignment={})),function(e){e[e.general=0]="general",e[e.left=1]="left",e[e.center=2]="center",e[e.right=3]="right",e[e.fill=4]="fill",e[e.justify=5]="justify",e[e.centerContinuous=6]="centerContinuous",e[e.distributed=7]="distributed"}(g=t.ExcelHorizontalAlignment||(t.ExcelHorizontalAlignment={})),function(e){e[e.accordingToContext=0]="accordingToContext",e[e.leftToRight=1]="leftToRight",e[e.rightToLeft=2]="rightToLeft"}(y=t.TextDirection||(t.TextDirection={})),function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.double=2]="double",e[e.singleaccounting=3]="singleaccounting",e[e.doubleaccounting=4]="doubleaccounting"}(S=t.UnderLineStyle||(t.UnderLineStyle={})),function(e){e[e.baseLine=0]="baseLine",e[e.superscript=1]="superscript",e[e.subscript=2]="subscript"}(C=t.VertAlign||(t.VertAlign={})),function(e){e[e.none=0]="none",e[e.thin=1]="thin",e[e.medium=2]="medium",e[e.dashed=3]="dashed",e[e.dotted=4]="dotted",e[e.thick=5]="thick",e[e.double=6]="double",e[e.hair=7]="hair",e[e.mediumDashed=8]="mediumDashed",e[e.dashDot=9]="dashDot",e[e.mediumDashDot=10]="mediumDashDot",e[e.dashDotDot=11]="dashDotDot",e[e.mediumDashDotDot=12]="mediumDashDotDot",e[e.slantDashDot=13]="slantDashDot"}(w=t.ExcelBorderStyle||(t.ExcelBorderStyle={})),function(e){e[e.none=0]="none",e[e.solid=1]="solid",e[e.darkGray=2]="darkGray",e[e.mediumGray=3]="mediumGray",e[e.lightGray=4]="lightGray",e[e.gray125=5]="gray125",e[e.gray0625=6]="gray0625",e[e.darkHorizontal=7]="darkHorizontal",e[e.darkVertical=8]="darkVertical",e[e.darkDown=9]="darkDown",e[e.darkUp=10]="darkUp",e[e.darkGrid=11]="darkGrid",e[e.darkTrellis=12]="darkTrellis",e[e.lightHorizontal=13]="lightHorizontal",e[e.lightVertical=14]="lightVertical",e[e.lightDown=15]="lightDown",e[e.lightUp=16]="lightUp",e[e.lightGrid=17]="lightGrid",e[e.lightTrellis=18]="lightTrellis"}(x=t.FillPatternType||(t.FillPatternType={})),A=function(){function e(e,t,r){var o=this;if(3===e&&t>11&&241!==t&&242!==t&&243!==t&&244!==t&&255!==t)throw Error("themeColorIndexError");if(r>1||r<-1)throw Error("colorTintError");1===e&&32767===t&&(o.Vj=!0),o.Wj=e||2,o.Xj=t||0,o.Yj=r||0}return e.prototype.colorType=function(){return this.Wj},e.prototype.value=function(){return this.Xj},e.prototype.tint=function(){return this.Yj},e.prototype.isAutoColor=function(e){var t=this;return 0===arguments.length?t.Vj:void("boolean"==typeof e&&e!==t.Vj&&(t.Vj=e))},e.prototype.isIndexedColor=function(){return 1===this.Wj},e.prototype.isRGBColor=function(){return 2===this.Wj},e.prototype.isThemeColor=function(){return 3===this.Wj},e.prototype.equals=function(e){return this===e||!!e&&(this.Wj===e.colorType()&&this.value()===e.value()&&this.tint()===e.tint()&&this.isAutoColor()===e.isAutoColor())},e.EmptyColor=new e,e}(),t.ExcelColor=A,T=function(){function e(e,t){this.color=e||null,this.lineStyle=t||0}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.color?t.color.equals(e.color)&&t.lineStyle===e.lineStyle:!e.color&&t.lineStyle===e.lineStyle)},e.prototype.isDefault=function(){return null===this.color&&0===this.lineStyle},e}(),t.ExcelBorderSide=T,v=function(){function e(){var e=this;e.left=new T,e.top=new T,e.right=new T,e.bottom=new T,e.diagonalUp=new T,e.diagonalDown=new T}return e.prototype.clone=function(){var t=this,r=new e;return r.left=t.left?new T(t.left.color,t.left.lineStyle):t.left,r.right=t.right?new T(t.right.color,t.right.lineStyle):t.right,r.top=t.top?new T(t.top.color,t.top.lineStyle):t.top,r.bottom=t.bottom?new T(t.bottom.color,t.bottom.lineStyle):t.bottom,r.diagonalUp=t.diagonalUp?new T(t.diagonalUp.color,t.diagonalUp.lineStyle):t.diagonalUp,r.diagonalDown=t.diagonalDown?new T(t.diagonalDown.color,t.diagonalDown.lineStyle):t.diagonalDown,r},e.prototype.compose=function(e){var t=this;t.left&&t.left.isDefault()&&(t.left=e.left),t.right&&t.right.isDefault()&&(t.right=e.right),t.top&&t.top.isDefault()&&(t.top=e.top),t.bottom&&t.bottom.isDefault()&&(t.bottom=e.bottom),t.diagonalUp&&t.diagonalUp.isDefault()&&(t.diagonalUp=e.diagonalUp),t.diagonalDown&&t.diagonalDown.isDefault()&&(t.diagonalDown=e.diagonalDown)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.left.equals(e.left)&&t.right.equals(e.right)&&t.top.equals(e.top)&&t.bottom.equals(e.bottom)&&t.diagonalUp.equals(e.diagonalUp)&&t.diagonalDown.equals(e.diagonalDown));
29
+ },e}(),t.ExcelBorder=v,k=function(){function e(){}return e.prototype.clone=function(){var t=this,r=new e;return r.bgColor=t.bgColor,r.fgColor=t.fgColor,r.patternType=t.patternType,r.stops=t.stops,r.type=t.type,r.degree=t.degree,r.left=t.left,r.right=t.right,r.top=t.top,r.bottom=t.bottom,r},e.prototype.compose=function(e){var t=this;t.bgColor===c&&(t.bgColor=e.bgColor),t.fgColor===c&&(t.fgColor=e.fgColor),t.patternType===c&&(t.patternType=e.patternType),t.stops===c&&(t.stops=e.stops),t.type===c&&(t.type=e.type),t.degree===c&&(t.degree=e.degree),t.left===c&&(t.left=e.left),t.right===c&&(t.right=e.right),t.top===c&&(t.top=e.top),t.bottom===c&&(t.bottom=e.bottom)},e.prototype.equals=function(e){var t=this;return t===e||!!e&&JSON.stringify(t)===JSON.stringify(e)},e.Default=function(){return e.Zj||(e.Zj=new e,e.Zj.bgColor=c,e.Zj.fgColor=c,e.Zj.patternType=0),e.Zj},e}(),t.ExcelFill=k,F=function(){function e(e,t,r){var o=this;void 0!==t?o.fontColor=t:o.fontColor=null,void 0!==e?o.fontName=e:o.fontName=null,void 0!==r?o.fontFamily=r:o.fontFamily=0,o.isAutoColor=!1,o.isBold=!1,o.isItalic=!1,o.isOutlineStyle=!1,o.isShadowStyle=!1,o.isStrikeOut=!1,o.fontScheme=0,o.fontSize=11,o.charSetIndex=0,o.underLineStyle=0,o.vertAlign=0,o.Zj=null}return e.prototype.equals=function(e){var t,r=this;return r===e||!!e&&(t=r.isBold===e.isBold&&r.isItalic===e.isItalic&&this.isOutlineStyle===e.isOutlineStyle&&this.isShadowStyle===e.isShadowStyle&&this.isStrikeOut===e.isStrikeOut&&this.fontName===e.fontName&&this.fontFamily===e.fontFamily&&this.fontSize===e.fontSize&&this.charSetIndex===e.charSetIndex&&this.underLineStyle===e.underLineStyle&&this.vertAlign===e.vertAlign&&this.fontScheme===e.fontScheme,!!t&&(!r.fontColor&&!e.fontColor||!(!r.fontColor&&e.fontColor)&&(!(r.fontColor&&!e.fontColor)&&r.fontColor.equals(e.fontColor))))},e.prototype.clone=function(){var t=this,r=new e(t.fontName,t.fontColor,t.fontFamily);return r.isAutoColor=t.isAutoColor,r.isBold=t.isBold,r.isItalic=t.isItalic,r.isOutlineStyle=t.isOutlineStyle,r.isShadowStyle=t.isShadowStyle,r.isStrikeOut=t.isStrikeOut,r.fontScheme=t.fontScheme,r.fontSize=t.fontSize,r.charSetIndex=t.charSetIndex,r.underLineStyle=t.underLineStyle,r.vertAlign=t.vertAlign,r.fontColor=t.fontColor,r},e.prototype.Default=function(){var t=this;return t.Zj||(t.Zj=new e,t.Zj.fontSize=11,t.Zj.fontFamily=2,t.Zj.fontColor=new A(1,0,0),t.Zj.fontName="Calibri",t.Zj.charSetIndex=0),t.Zj},e.prototype.compose=function(e){var t=this;null===t.fontColor&&(t.fontColor=e.fontColor),null===t.fontName&&(t.fontName=e.fontName),0===t.fontFamily&&(t.fontFamily=e.fontFamily),t.isAutoColor===!1&&(t.isAutoColor=e.isAutoColor),t.isBold===!1&&(t.isBold=e.isBold),t.isItalic===!1&&(t.isItalic=e.isItalic),t.isOutlineStyle===!1&&(t.isOutlineStyle=e.isOutlineStyle),t.isShadowStyle===!1&&(t.isShadowStyle=e.isShadowStyle),t.isStrikeOut===!1&&(t.isStrikeOut=e.isStrikeOut),0===t.fontScheme&&(t.fontScheme=e.fontScheme),11===t.fontSize&&(t.fontSize=e.fontSize),0===t.charSetIndex&&(t.charSetIndex=e.charSetIndex),0===t.underLineStyle&&(t.underLineStyle=e.underLineStyle),0===t.vertAlign&&(t.vertAlign=e.vertAlign),null===t.Zj&&(t.Zj=e.Zj)},e}(),t.ExcelFont=F,R=function(){function e(e,t){this.numberFormatId=e,this.numberFormatCode=t}return e.prototype.equals=function(e){var t=this;return t===e||!!e&&(t.numberFormatId===e.numberFormatId&&t.numberFormatCode===e.numberFormatCode)},e.prototype.compose=function(e){var t=this;t.numberFormatId===c&&(t.numberFormatId=e.numberFormatId),t.numberFormatCode===c&&(t.numberFormatCode=e.numberFormatCode)},e.prototype.clone=function(){var t=this;return new e(t.numberFormatId,t.numberFormatCode)},e}(),t.ExcelNumerFormat=R,E=function(){function e(){var e=this;e.font=(new F).Default(),e.border=new v,e.applyAlignment=c,e.applyBorder=c,e.applyFill=c,e.applyFont=c,e.applyNumberFormat=c,e.applyProtection=c,e.quotePrefix=c,e.fill=k.Default(),e.numberFormatIndex=0,e.numberFormat=c,e.isStyleFormat=!1,e.parentFormatID=c,e.parentName=c,e.horizontalAlign=0,e.verticalAlign=0,e.isLocked=!1,e.rotation=0,e.isWordWrap=!1,e.isJustfyLastLine=!1,e.isShrinkToFit=!1,e.isFirstSymbolApostrophe=!1,e.readingOrder=0,e.isHidden=!1,e.indent=0,e.isVerticalText=!1}return e.Default=function(){var t=new e;return t.numberFormatIndex=0,t.isLocked=!0,t.verticalAlign=2,t.horizontalAlign=0,t},e.prototype.copyFrom=function(e){var t=this;t.applyAlignment=e.applyAlignment,t.applyBorder=e.applyBorder,t.applyFill=e.applyFill,t.applyFont=e.applyFont,t.applyNumberFormat=e.applyNumberFormat,t.applyProtection=e.applyProtection,t.fill=null!==e.fill?e.fill.clone():null,t.border=null!==e.border?e.border.clone():null,t.font=null!==e.font?e.font.clone():null,t.numberFormatIndex=e.numberFormatIndex,t.numberFormat=e.numberFormat,t.isStyleFormat=e.isStyleFormat,t.parentFormatID=e.parentFormatID,t.horizontalAlign=e.horizontalAlign,t.verticalAlign=e.verticalAlign,t.isLocked=e.isLocked,t.rotation=e.rotation,t.isWordWrap=e.isWordWrap,t.isJustfyLastLine=e.isJustfyLastLine,t.isShrinkToFit=e.isShrinkToFit,t.isFirstSymbolApostrophe=e.isFirstSymbolApostrophe,t.readingOrder=e.readingOrder,t.isHidden=e.isHidden,t.indent=e.indent,t.quotePrefix=e.quotePrefix},e.prototype.clone=function(){var t=new e;return t.copyFrom(this),t},e.prototype.equals=function(e,t,r){var o,i=this;if(i===e)return!0;if(!e)return!1;if(!i.numberFormat&&e.numberFormat)return!1;if(o=i.numberFormatIndex===e.numberFormatIndex&&i.horizontalAlign===e.horizontalAlign&&i.verticalAlign===e.verticalAlign&&i.isLocked===e.isLocked&&i.rotation===e.rotation&&i.isWordWrap===e.isWordWrap&&i.isJustfyLastLine===e.isJustfyLastLine&&i.isShrinkToFit===e.isShrinkToFit&&i.isFirstSymbolApostrophe===e.isFirstSymbolApostrophe&&i.readingOrder===e.readingOrder&&i.isHidden===e.isHidden&&i.indent===e.indent&&i.parentFormatID===e.parentFormatID&&i.quotePrefix===e.quotePrefix&&i.border.equals(e.border)&&i.isVerticalText===e.isVerticalText,t||(o=o&&i.parentName===e.parentName),r||(o=o&&i.applyAlignment===e.applyAlignment&&i.applyBorder===e.applyBorder&&i.applyFill===e.applyFill&&i.applyFont===e.applyFont&&i.applyNumberFormat===e.applyNumberFormat&&i.applyProtection===e.applyProtection),i.font)o=o&&i.font.equals(e.font);else if(e.font)return!1;if(i.numberFormat&&(o=o&&i.numberFormat.equals(e.numberFormat)),i.fill)o=o&&i.fill.equals(e.fill);else if(e.fill)return!1;return o},e}(),t.ExtendedFormat=E,I=function(){function e(){this.$j=null,this.builtInStyle=0,this.category=0,this.isCustomBuiltin=!1,this.name=null,this.outLineLevel=0}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):void(t.$j=e)},e.prototype.copy=function(){var t=this,r=new e;return r.builtInStyle=t.builtInStyle,r.outLineLevel=t.outLineLevel,r.isCustomBuiltin=t.isCustomBuiltin,r.category=t.category,r.name=t.name,r.format(t.format().clone()),r},e.prototype.isBuiltInStyle=function(){return!0},e.prototype.getBuiltInStyleCategory=function(){var e=this;if(!e.isBuiltInStyle())return 0;switch(e.builtInStyle){case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 2:case 1:return 4;case 24:return 1;case 19:return 2;case 20:return 2;case 3:case 6:case 4:case 7:return 5;case 49:return 2;case 23:return 1;case 13:case 14:case 15:case 16:return 3;case 17:return 2;case 21:return 2;case 25:return 1;case 0:return 1;case 10:case 18:return 2;case 5:return 5;case 12:case 22:return 3;case 11:return 2;default:return 0}},e}(),t.ExcelStyle=I,L=function(){function e(){this.$j=null,this.name=null}return e.prototype.format=function(e){var t=this;return 0===arguments.length?(null===t.$j&&(t.$j=new E),t.$j):(t.$j=e,this)},e.prototype.copy=function(){var t=new e;return t.name=this.name,t.format(this.format().clone()),t},e.prototype.isBuiltInStyle=function(){return!1},e}(),t.CustomExcelStyle=L,D=function(){function e(){}return e.initBuiltInExcelStyleCollections=function(){var t,r,o,n,s,c,d,u;if(e.builtInStyles.length=0,t=i.BuiltInStylesResource)for(r=new a.XmlReader,r.reset(),r.setXml(t),o=[],n=[],s=[],c=[],d={};r.read();)if(1===r.depth&&2!==r.elementType)switch(r.name()){case"numFmts":l.readNumberFormats(r,d);break;case"fonts":l.readFonts(r,o);break;case"fills":l.readFills(r,n);break;case"borders":l.readBorders(r,s);break;case"cellStyleXfs":l.readXFs(r,c,o,s,d,n,!0);break;case"cellStyles":for(u=r.depth;r.read();){if(r.depth<=u)return;1===r.nodeType()&&"cellStyle"===r.name()&&U(r,c,d)}}},e.getBuiltInStyles=function(){var t,r,o=e.builtInStyles.length;for(47!==o&&e.initBuiltInExcelStyleCollections(),t=[],o=e.builtInStyles.length,r=0;r<o;r++)t.push(e.builtInStyles[r].copy());return t},e.getNormalStyle=function(){var e,t=new E;return t.font=new F,t.font.fontColor=new A(3,1),t.font.fontSize=11,t.font.fontName="Calibri",e=new I,e.format(t),e.name="Normal",e.builtInStyle=0,e},e.builtInStyles=[],e}(),t.BuiltInExcelStyles=D;function U(e,t,r){for(var o,i,n=c,a=0,l=0;e.moveToNextAttribute();)switch(e.readAttributeNameAsString()){case"name":n=e.readContentAsString();break;case"xfId":a=e.readContentAsInt(0);break;case"builtinId":l=e.readContentAsInt(0)}o=t[a],o.isStyleFormat=!0,i=new I,i.name=n,i.format(o.clone()),!i.format().numberFormat&&r[i.format().numberFormatIndex]&&(i.format().numberFormat=r[i.format().numberFormatIndex],i.format().numberFormatIndex=0),i.isCustomBuiltin=!1,i.builtInStyle=l,i.category=i.getBuiltInStyleCategory(),D.builtInStyles.push(i)}B=function(){function e(){}return e.builtInNumberFomrat=function(){return e._j||(e._j={count:0}),0===e._j.count&&e.initBuintNumberFormat(),e._j},e.languageIndepedentNumberFormat=function(){return e.ak||(e.ak={count:0}),0===e.ak.count&&e.initLanguageIndepedentNumberFormat(),e.ak},e.formatCodeTable=function(){return e.ck||(e.ck=[]),e.ck},e.customNumberFormat=function(){return e.dk||(e.dk={count:0}),e.dk},e.getCultureInfo=function(){var e=o.K(),t=e&&e.GC&&e.GC.Spread&&e.GC.Spread.Common&&o.K().GC.Spread.Common.CultureManager.getCultureInfo();return t||o.Ga()},e.initBuintNumberFormat=function(){var t,r,i,n,a,l,s,c=e._j;if(c[0]="General",c[1]="0",c[2]="0.00",c[3]="#,##0",c[4]="#,##0.00",c[9]="0%",c[10]="0.00%",c[11]="0.00E+00",c[12]="# ?/?",c[13]="# ??/??",c[14]="m/d/yyyy",c[15]="d-mmm-yy",c[16]="d-mmm",c[17]="mmm-yy",c[18]="h:mm AM/PM",c[19]="h:mm:ss AM/PM",c[20]="h:mm",c[21]="h:mm:ss",c[22]="m/d/yyyy h:mm",c[37]="#,##0_);(#,##0)",c[38]="#,##0_);[Red](#,##0)",c[39]="#,##0.00_);(#,##0.00)",c[40]="#,##0.00_);[Red](#,##0.00)",c[45]="mm:ss",c[46]="[h]:mm:ss",c[47]="mm:ss.0",c[48]="##0.0E+0",c[49]="@",c.count=49,o.Fa())if(t=o.Fa(),"zh-cn"===t)c[14]="yyyy/m/d",c[17]="mmm-yy",c[22]="yyyy/m/d h:mm",c[27]='yyyy"\u5e74"m"\u6708"',c[28]='m"\u6708"d"\u65e5"',c[29]='m"\u6708"d"\u65e5"',c[30]="m-d-yy",c[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',c[32]='h"\u65f6"mm"\u5206"',c[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',c[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',c[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',c[36]='yyyy"\u5e74"m"\u6708"',c[39]="#,##0.00;-#,##0.00",c[40]="#,##0.00;[Red]-#,##0.00",c[50]='yyyy"\u5e74"m"\u6708"',c[51]='m"\u6708"d"\u65e5"',c[52]='yyyy"\u5e74"m"\u6708"',c[53]='m"\u6708"d"\u65e5"',c[54]='m"\u6708"d"\u65e5"',c[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',c[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',c[57]='yyyy"\u5e74"m"\u6708"',c[58]='m"\u6708"d"\u65e5"',c.count=58;else if("ja-jp"===t)c[14]="yyyy/m/d",c[15]="dd-mmm-yy",c[16]="dd-mmm",c[17]="mmm-yy",c[22]="yyyy/mm/dd h:mm",c[27]="[$-411]ge.m.d",c[28]='[$-411]ggge"\u5e74"m"\u6708"d"',c[29]='[$-411]ggge"\u5e74"m"\u6708"d"',c[30]="m/d/yy",c[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',c[32]='h"\u6642"mm"\u5206"',c[33]='h"\u6642"mm"\u5206"ss"\u79d2"',c[34]='yyyy"\u5e74"m"\u6708"',c[35]='m"\u6708"d"\u65e5"',c[36]="[$-411]ge.m.d",c[38]="#,##0;[Red]-#,##0",c[39]="#,##0.00;-#,##0.00",c[40]="#,##0.00;[Red]-#,##0.00",c[50]="[$-411]ge.m.d",c[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c[52]='yyyy"\u5e74"m"\u6708"',c[53]='m"\u6708"d"\u65e5"',c[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c[55]='yyyy"\u5e74"m"\u6708"',c[56]='m"\u6708"d"\u65e5"',c[57]="[$-411]ge.m.d",c[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',c.count=58;else{if(r=e.getCultureInfo(),i=r&&r.LocalNumberFormat,o.isNullOrUndefined(i)||Array.isArray(i)||"object"!=typeof i)return;for(n in i)isNaN(+n)||(a=i[n],o.Util.Ca(a)&&(c[n]=i[n]));l=0;for(n in c)isNaN(+n)||(s=+n,s>l&&(l=s));c.count=l}},e.initLanguageIndepedentNumberFormat=function(){var t=e.ak;t[27]="m/d/yyyy",t[28]="m/d/yyyy",t[29]="m/d/yyyy",t[30]="m/d/yyyy",t[31]="m/d/yyyy",t[32]="h:mm:ss",t[33]="h:mm:ss",t[34]="m/d/yyyy",t[35]="m/d/yyyy",t[36]="m/d/yyyy",t[50]="m/d/yyyy",t[51]="m/d/yyyy",t[52]="m/d/yyyy",t[53]="m/d/yyyy",t[54]="m/d/yyyy",t[55]="m/d/yyyy",t[56]="m/d/yyyy",t[57]="m/d/yyyy",t[58]="m/d/yyyy"},e.getFormatCode=function(t){var r,o,i,n=e.builtInNumberFomrat(),a=e.customNumberFormat(),l=e.languageIndepedentNumberFormat(),s=t.numberFormatIndex;return t.numberFormat?(r=t.numberFormat,o=r.numberFormatId,i=r.numberFormatCode,n[o]&&n[o]!==i?(n[o]=i,i):(a[i]||(a[i]=o,a.count++),i)):n[s]?n[s]:l[s]?l[s]:"General"},e.getFormatId=function(t){var r,o,i,n,a,l,s,c=e.ek();if(c[t])return c[t];if(o=e.builtInNumberFomrat())for(i in o)if(o[i]===t)return r={isBuiltIn:!0,id:parseInt(i,10)},c[t]=r,r;if(n=e.customNumberFormat(),n&&n[t])return r={isBuiltIn:!1,id:n[t]},c[t]=r,r;if(a=0,n.count>0){l=0;for(s in n)n[s]>l&&(l=n[s]);a=l}return a=Math.max(e.fk,a)+1,e.fk++,n[t]=a,r={isBuiltIn:!1,id:a}},e.ek=function(){return e.gk||(e.gk={}),e.gk},e.ck=null,e.gk=null,e._j={count:0},e.ak={count:0},e.dk={count:0},e.fk=170,e}(),t.ExtendedNumberFormatHelper=B;function J(e,t){var r=Math.pow(10,t);return Math.round(e*r)/r}P=function(){function e(){}return e.pointToPixel=function(e,t){return void 0===t&&(t=2),J(96*e/72,t)},e.pixelToPoint=function(e){return 72*e/96},e.emuToPixles=function(e,t){return J(96*e/914400,t||2)},e.pixelToEMU=function(e){return Math.round(914400*e/96)},e.getMaxiumDigitWidth=function(t){var r,o,i,a,l,s,c=0,d=e.hk();if(d[t])return d[t];try{if(e.ik||(e.ik=document.createElement("span")),r=e.ik,r.style.font=t,o=r.style.fontSize,o.indexOf("px")!==-1?o=Math.round(e.pixelToPoint(parseFloat(o))):o.indexOf("pt")!==-1&&(o=Math.round(parseFloat(o))),!isNaN(o)&&o||(o=Math.round(e.pixelToPoint(parseFloat(t.match(/(\d|\.)+/))))),i=r.style.fontFamily,i||t.split(" ").forEach(function(e){"normal"!==e&&"italic"!==e&&"bold"!==e&&e.indexOf("px")===-1&&e.indexOf("pt")===-1&&isNaN(e)&&(i=e)}),n.unknownFontMaxDigitWidthMap[o]&&n.unknownFontMaxDigitWidthMap[o][i]?c=n.unknownFontMaxDigitWidthMap[o][i]:n.MaxDigitWidthMap[o]&&n.MaxDigitWidthMap[o][i]&&(c=n.MaxDigitWidthMap[o][i]),c>0)return c=Math.round(c),d[t]=c,c}catch(e){}for(a="0123456789",l=0,s=0;s<a.length;s++)l=e.measureText(a.charAt(s),t),l>c&&(c=l);return c>0?(c=Math.round(c),d[t]=c,c):(d[t]=7,d[t])},e.truncate=function(e){return Math.floor(e)},e.hk=function(){return e.jk||(e.jk={}),e.jk},e.measureText=function(t,r){var o,i;function n(){return e.kk||(e.kk=document.createElement("canvas")),e.kk}try{return o=n(),i=o.getContext("2d"),i.font=r,i.measureText(t).width}catch(e){return 8}},e.ik=null,e.jk=null,e.kk=null,e}(),t.UnitHelper=P,W=function(){function e(e,t,r,o){var i=this;i.a=e,i.r=t,i.g=r,i.b=o}return e.prototype.toString=function(){var e=this;return 255===e.a?"#"+e.getColorUnitString(e.r)+e.getColorUnitString(e.g)+e.getColorUnitString(e.b):"rgba("+e.r+","+e.g+","+e.b+","+e.a+")"},e.prototype.getColorUnitString=function(e){var t=e.toString(16);return 1===t.length&&(t="0"+t),t},e.hueToRGB=function(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e},e.fromHLS=function(t,r,o){var i,n,a,l,s;return 0===o?i=n=a=parseInt(255*r/240,10):(l=void 0,s=void 0,s=r<=120?(r*(240+o)+120)/240:r+o-(r*o+120)/240,l=2*r-s,i=parseInt((255*e.hueToRGB(l,s,t+80)+120)/240,10),n=parseInt((255*e.hueToRGB(l,s,t)+120)/240,10),a=parseInt((255*e.hueToRGB(l,s,t-80)+120)/240,10)),new e(255,i,n,a)},e}(),t.lk=W,_=function(){function e(e){var t,r,o,i,n=this,a=e.r,l=e.g,s=e.b,c=Math.max(Math.max(a,l),s),d=Math.min(Math.min(a,l),s),u=c+d;n.luminosity=parseInt(""+(240*u+255)/510,10),t=c-d,0===t?(n.saturation=0,n.hue=160):(n.luminosity<=120?n.saturation=parseInt(""+(240*t+u/2)/u,10):n.saturation=parseInt(""+(240*t+(510-u)/2)/(510-u),10),r=(40*(c-a)+t/2)/t,o=(40*(c-l)+t/2)/t,i=(40*(c-s)+t/2)/t,a===c?n.hue=parseInt(""+(i-o),10):l===c?n.hue=parseInt(""+(80+r-i),10):n.hue=parseInt(""+(160+o-r),10),n.hue<0&&(n.hue+=240),n.hue>240&&(n.hue-=240))}return e.prototype.toColor=function(){return W.fromHLS(this.hue,this.luminosity,this.saturation)},e}(),N=function(){function e(){}return e.getThemeColorName=function(e){if(!e||3!==e.colorType())return null;var t=Math.round(100*e.tint());return 0===e.value()||243===e.value()?"Background 1 "+t:1===e.value()||241===e.value()?"Text 1 "+t:2===e.value()||244===e.value()?"Background 2 "+t:3===e.value()||242===e.value()?"Text 2 "+t:4===e.value()?"Accent 1 "+t:5===e.value()?"Accent 2 "+t:6===e.value()?"Accent 3 "+t:7===e.value()?"Accent 4 "+t:8===e.value()?"Accent 5 "+t:9===e.value()?"Accent 6 "+t:10===e.value()?"hyperlink":11===e.value()?"followedHyperlink":null},e.getThemeColorIndex=function(e,t){return"Background 1"===e.substring(0,12)?t?243:0:"Text 1"===e.substring(0,6)?t?241:1:"Background 2"===e.substring(0,12)?t?244:2:"Text 2"===e.substring(0,6)?t?242:3:"Accent 1"===e.substring(0,8)?4:"Accent 2"===e.substring(0,8)?5:"Accent 3"===e.substring(0,8)?6:"Accent 4"===e.substring(0,8)?7:"Accent 5"===e.substring(0,8)?8:"Accent 6"===e.substring(0,8)?9:"hyperlink"===e?10:"followedHyperlink"===e?11:void 0},e.mk=function(){return e.nk||(e.nk={}),e.nk},e.getExcelThemeColor=function(t){var r,i,n,a;return o.StringEx.L(t)?A.EmptyColor:(r=e.mk(),r[t]?r[t]:(i=0,n=t.split(" "),n.length>=3&&(i=parseFloat(n[2]),isNaN(i)||(i/=100)),a=new A(3,e.getThemeColorIndex(t),i),r[t]=a,a))},e.toRGBColor=function(t){return t?""+e.getRGBColor(t):null},e.colorFromIndex=function(t,r){var o,i,n,a;return 32767===t?new W(0,0,0,0):t<0||t>=e.palette.length?new W(255,0,0,0):e.useCustomPalette?e.customPalette[t]!==c?e.customPalette[t]:64===t?new W(255,0,0,0):65===t?new W(255,255,255,255):new W(0,255,255,255):(o=e.palette[t],i=o>>16&255,n=o>>8&255,a=255&o,new W(r,i,n,a))},e.updateTint=function(e,t){var r,o,i;return 0===t?e:(r=new _(e),t>0?(o=240-r.luminosity,i=o*t,W.fromHLS(r.hue,r.luminosity+i,r.saturation)):(i=r.luminosity*-t,W.fromHLS(r.hue,r.luminosity-i,r.saturation)))},e.getRGBColor=function(t){var r,o;return null===t||t===c?new W(0,255,255,255):t.isAutoColor()?new W(255,0,0,0):t.isIndexedColor()?(r=e.colorFromIndex(0|t.value(),255),e.updateTint(r,t.tint())):t.isRGBColor()?(o=(16777215&t.value())+4278190080,r=e.fromArgb(o),e.updateTint(r,t.tint())):t.isThemeColor()?e.getThemeColorName(t):new W(0,255,255,255)},e.fromArgb=function(e){return new W(e>>24&255,e>>16&255,e>>8&255,255&e)},e.getRGBAColorData=function(t){var r=e.fromArgb(t.value());return{rgb:r.getColorUnitString(r.r)+r.getColorUnitString(r.g)+r.getColorUnitString(r.b),alpha:r.a}},e.pk=function(){return e.qk||(e.qk={}),e.qk},e.fromHtmlColor=function(t){var r,o,i,n,a,l;if(t)return"string"!=typeof t?t:(r=e.pk(),r[t]?r[t]:(o=t.toLowerCase(),"#"===o.substring(0,1)?(7===o.length?o="#ff"+o.substring(1):4===o.length&&(o="#ff"+o[1]+o[1]+o[2]+o[2]+o[3]+o[3]),i=parseInt(o.substring(1,o.length),16)):"rgb("===o.substring(0,4)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=255*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):"rgba("===o.substring(0,5)?(n=o.indexOf("("),a=o.indexOf(")"),l=o.substring(n+1,a).split(","),i=parseInt(255*parseFloat(l[3]),10)*Math.pow(16,6)+parseInt(l[0],10)*Math.pow(16,4)+parseInt(l[1],10)*Math.pow(16,2)+parseInt(l[2],10)):i=e.rk[o]?e.rk[o]:parseInt(o,10),r[t]=i,i))},e.isThemeColor=function(e){if(!e||"string"!=typeof e)return!1;e=e.toLowerCase();var t=e[0];switch(t){case"b":return 0===e.indexOf("background ");case"t":return 0===e.indexOf("text ");case"a":return 0===e.indexOf("accent ");case"h":return 0===e.indexOf("hyperlink");case"f":return 0===e.indexOf("followedhyperlink");default:return!1}},e.mixTranslucentColor=function(t,r){var o,i,n,a;return 255===r.a?r:0===r.a?t:(o=Math.round((255-t.a)*r.a/255),i=e.getMaxInt(t.a,r.a,t.r,r.r,o+t.a),n=e.getMaxInt(t.a,r.a,t.g,r.g,o+t.a),a=e.getMaxInt(t.a,r.a,t.b,r.b,o+t.a),new W(Math.round(o+t.a),i,n,a))},e.getMaxInt=function(e,t,r,o,i){return 0===i?0:(t*o+(255-t)*e*r/255)/i},e.toExcelColor=function(t,r){if(t instanceof A)return t;if(r===c&&(r=16777215),!t)return null;if(e.isThemeColor(t))return e.getExcelThemeColor(t);var o=e.fromHtmlColor(t);return o!==r?e.fromColorToExcelColor(e.fromArgb(o)):null},e.toExcelBackColor=function(t,r){var o,i;if(t!==s&&"object"==typeof t)if(t.stops)for(o=t,i=0;i<o.stops.length;i++)o.stops[i].color=e.toExcelColor(o.stops[i].color);else o={patternType:t.type,fgColor:e.toExcelColor(t.patternColor||"#000000"),bgColor:e.toExcelColor(t.backgroundColor||"#FFFFFF")};else o=t?{patternType:1,fgColor:e.toExcelColor(t),bgColor:e.toExcelColor(r?"#000000":"#FFFFFF")}:{patternType:0,fgColor:new A(1,64,0),bgColor:new A(1,65,0)};return o},e.toExcelIndexedColor=function(t){if(t){var r=e.getPaletteColorIndex(t,63);return new A(1,r)}return null},e.fromColorToExcelColor=function(t){var r,o,i,n,a;return t=e.mixTranslucentColor(e.fromArgb(16777215),t),255!==t.a&&(r=e.sk,o=Math.round(r.r-t.a+t.a/255*t.r),i=Math.round(r.g-t.a+t.a/255*t.g),n=Math.round(r.b-t.a+t.a/255*t.b),t=new W(255,o,i,n)),a=t.a*Math.pow(16,6)+t.r*Math.pow(16,4)+t.g*Math.pow(16,2)+t.b,new A(2,a,0)},e.getClosestColorIndex=function(t,r){var o,i,n,a,l,s,d,u;for(r===c&&(r=64),o=-1,i=Number.MAX_VALUE,n=Math.min(e.palette.length-1,r);n>=0;n--)a=e.palette[n],l=(16711680&a)>>16,s=(65280&a)>>8,d=255&a,u=Math.abs(.3*(l-t.r))+Math.abs(.59*(s-t.g))+Math.abs(.11*(d-t.b)),u<i&&(i=u,o=n);return o},e.getPaletteColorIndex=function(t,r){return r===c&&(r=64),t.isThemeColor()?e.getClosestColorIndex(e.getRGBColor(new A(3,t.value(),0))):e.getClosestColorIndex(e.getRGBColor(t),r)},e.toColorSchemeIndex=function(e){return"ACCENT1"===e?4:"ACCENT2"===e?5:"ACCENT3"===e?6:"ACCENT4"===e?7:"ACCENT5"===e?8:"ACCENT6"===e?9:"DK1"===e?1:"DK2"===e?3:"LT1"===e?0:"LT2"===e?2:"HLIK"===e?10:"FOLHLINK"===e?11:"PHCLR"===e?240:"BG1"===e?243:"BG2"===e?244:"TX1"===e?241:"TX2"===e?242:255},e.scRgbTosRgb=function(e){return e<=0?0:e<=.0031308?255*e*12.92+.5:e<1?255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5:255},e.convertHLSToRGB=function(t,r,o){var i,n,a=0,l=0,s=0;return 0===o?(a=255*r/255|0,l=a,s=a):(i=void 0,i=r<=127?(r*(255+o)+127)/255:r+o-(r*o+127)/255,n=2*r-i,a=parseInt(""+(255*e.hueToRGB(n,i,t+85)+127)/255,10),l=parseInt(""+(255*e.hueToRGB(n,i,t)+127)/255,10),s=parseInt(""+(255*e.hueToRGB(n,i,t-85)+127)/255,10)),a=a>0?a:0,l=l>0?l:0,s=s>0?s:0,a=a<255?a:255,l=l<255?l:255,s=s>255?s:255,new W(0,a,l,s)},e.hueToRGB=function(e,t,r){return r<0&&(r+=255),r>255&&(r-=255),r<42?e+((t-e)*r+21)/42:r<127?t:r<170?e+((t-e)*(170-r)+21)/42:e},e.fromPresetColorVal=function(t){var r=e.rk[t];return r!==c?e.fromArgb(r):null},e.nk=null,e.qk=null,e.useCustomPalette=!1,e.customPalette=null,e.palette=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080],e.sk=new W(255,255,255,255),e.rk={aliceblue:4293982463,antiquewhite:4294634455,aqua:4278255615,aquamarine:4286578644,azure:4293984255,beige:4294309340,bisque:4294960324,black:4278190080,blanchedalmond:4294962125,blue:4278190335,blueviolet:4287245282,brown:4289014314,burlywood:4292786311,cadetblue:4284456608,chartreuse:4286578432,chocolate:4291979550,coral:4294934352,cornflowerblue:4284782061,cornsilk:4294965468,crimson:4292613180,cyan:4278255615,darkblue:4278190219,darkcyan:4278225803,darkgoldenrod:4290283019,darkgray:4289309097,darkgreen:4278215680,darkkhaki:4290623339,darkmagenta:4287299723,darkolivegreen:4283788079,darkorange:4294937600,darkorchid:4288230092,darkred:4287299584,darksalmon:4293498490,darkseagreen:4287609999,darkslateblue:4282924427,darkslategray:4281290575,darkturquoise:4278243025,darkviolet:4287889619,deeppink:4294907027,deepskyblue:4278239231,dimgray:4285098345,dodgerblue:4280193279,feldspar:4291924597,firebrick:4289864226,floralwhite:4294966e3,forestgreen:4280453922,fuchsia:4294902015,gainsboro:4292664540,ghostwhite:4294506751,gold:4294956800,goldenrod:4292519200,gray:4286611584,green:4278222848,greenyellow:4289593135,honeydew:4293984240,hotpink:4294928820,"indianred ":4291648604,"indigo ":4283105410,ivory:4294967280,khaki:4293977740,lavender:4293322490,lavenderblush:4294963445,lawngreen:4286381056,lemonchiffon:4294965965,lightblue:4289583334,lightcoral:4293951616,lightcyan:4292935679,lightgoldenrodyellow:4294638290,lightgrey:4292072403,lightgreen:4287688336,lightpink:4294948545,lightsalmon:4294942842,lightseagreen:4280332970,lightskyblue:4287090426,lightslateblue:4286869759,lightslategray:4286023833,lightsteelblue:4289774814,lightyellow:4294967264,lime:4278255360,limegreen:4281519410,linen:4294635750,magenta:4294902015,maroon:4286578688,mediumaquamarine:4284927402,mediumblue:4278190285,mediumorchid:4290401747,mediumpurple:4287852760,mediumseagreen:4282168177,mediumslateblue:4286277870,mediumspringgreen:4278254234,mediumturquoise:4282962380,mediumvioletred:4291237253,midnightblue:4279834992,mintcream:4294311930,mistyrose:4294960353,moccasin:4294960309,navajowhite:4294958765,navy:4278190208,oldlace:4294833638,olive:4286611456,olivedrab:4285238819,orange:4294944e3,orangered:4294919424,orchid:4292505814,palegoldenrod:4293847210,palegreen:4288215960,paleturquoise:4289720046,palevioletred:4292374675,papayawhip:4294963157,peachpuff:4294957753,peru:4291659071,pink:4294951115,plum:4292714717,powderblue:4289781990,purple:4286578816,red:4294901760,rosybrown:4290547599,royalblue:4282477025,saddlebrown:4287317267,salmon:4294606962,sandybrown:4294222944,seagreen:4281240407,seashell:4294964718,sienna:4288696877,silver:4290822336,skyblue:4287090411,slateblue:4285160141,slategray:4285563024,snow:4294966010,springgreen:4278255487,steelblue:4282811060,tan:4291998860,teal:4278222976,thistle:4292394968,tomato:4294927175,turquoise:4282441936,violet:4293821166,violetred:4291829904,wheat:4294303411,white:4294967295,whitesmoke:4294309365,yellow:4294967040,yellowgreen:4288335154,transparent:16777215},e}(),t.ColorHelper=N;function z(e){return e===!1}function V(e){return e&&"NORMAL"!==e.toUpperCase()&&e.indexOf("__builtInStyle")<0}M=function(){function e(){}return e.getFontName=function(e){var t,r,o;if(!e)return null;if(t=e,r=",",t.indexOf(r)!==-1&&(t=t.split(r)[0]),t){for(o=t.length-1;o>=0&&"/"!==t[o];)o--;o>=0&&(t=t.substring(o)),t&&"/#"===t.substring(0,2)&&(t=t.substring(2)),'"'===t[0]&&'"'===t[t.length-1]&&(t=t.substring(1,t.length-1))}return t},e.setStyleInfoFont=function(e,t,r,o){var i,n,a,l,s,b,h=e.fontName;h||(h=f),n="",e.fontSize>0&&(n=P.pointToPixel(e.fontSize,4)+"px"),a="",a=e.isItalic?"italic":"normal",l="",l=e.isBold?"bold":"normal",s="",s=e.fontColor?e.fontColor.isThemeColor()?N.getThemeColorName(e.fontColor):N.toRGBColor(e.fontColor):e.fontColor,t.foreColor=s,e.isStrikeOut&&(t.textDecoration=2),e.underLineStyle!==c&&(b=1,2===e.underLineStyle?b=8:0===e.underLineStyle&&(b=0),t.textDecoration===c?t.textDecoration=b:t.textDecoration=t.textDecoration|b),1===e.fontScheme?(t.themeFont=d,r&&(h=r)):2===e.fontScheme&&(t.themeFont=u,o&&(h=o)),i=a+" "+l+" "+n+" "+h,i&&(t.font=i)},e.tk=function(){return e.uk||(e.uk={}),e.uk},e.fromHtmlFont=function(t){var r,i,n,a,l,s,c,d,u,f,p,m,g,y;if(!o.StringEx.L(t)){if(r={},i=e.tk(),i[t])return i[t];if(n=e.splitFontString(t),0!==n.length){for(a=0,l=!1,s=!1,c=!1;a<n.length;){if(d=n[a].toLowerCase(),"normal"===d);else if(l||"italic"!==d&&"oblique"!==d&&"inherit"!==d)if(s||"small-caps"!==d)if(c||"bold"!==d&&"bolder"!==d&&"lighter"!==d&&"100"!==d&&"200"!==d&&"300"!==d&&"400"!==d&&"500"!==d&&"600"!==d&&"700"!==d&&"800"!==d&&"900"!==d&&"inherit"!==d){if("/"===d.substring(0,1)){a++;break}if("xx-small"===d||"x-small"===d||"small"===d||"medium"===d||"large"===d||"x-large"===d||"xx-large"===d||d.indexOf("px")!==-1||d.indexOf("pt")!==-1)break}else c=!0,"bolder"===d||parseInt(d,10)>=700?r.fontWeight=b:"lighter"===d?r.fontWeight="ExtraLight":r.fontWeight=d;else s=!0,r.fontVariant=d;else l=!0,"oblique"===d&&(d=h),r.fontStyle=d;if(a++,l&&s&&c)break}if(a<n.length&&(u=n[a].toLowerCase(),"xx-small"===u||"x-small"===u||"small"===u||"medium"===u||"large"===u||"x-large"===u||"xx-large"===u?(f=10,"xx-small"===u||"x-small"===u?f=6:"small"===u?f=8:"large"===u?f=14:"x-large"===u?f=18:"xx-large"===u&&(f=22),r.fontSize=f):(p=void 0,u.indexOf("px")!==-1?p=parseFloat(u):u.indexOf("pt")!==-1&&(m=parseFloat(u),isNaN(m)||(p=P.pointToPixel(m,4))),isNaN(p)||(r.fontSize=p)),a++),a<n.length&&(g=n[a].toLowerCase(),"/"===g.substring(0,1)&&a++),a<n.length){for(y=n[a],a++;a<n.length;a++)y=y+" "+n[a];r.fontFamily=y}return i[t]=r,r}}},e.composeFontWeightAndFontStyleToDestFont=function(t,r){var o=e.fromHtmlFont(t),i=e.fromHtmlFont(r);return o.fontWeight&&(i.fontWeight=o.fontWeight),o.fontStyle&&(i.fontStyle=o.fontStyle),(i.fontWeight?i.fontWeight:"normal")+" "+(i.fontStyle?i.fontStyle:"normal")+" "+i.fontSize+"px "+i.fontFamily+" "+(i.fontVariant?i.fontVariant:"")},e.splitFontString=function(e){var t,r,i,n,a;if(o.StringEx.L(e))return[];for(e=e.trim(),t=[],r="",i=0,n=e.length;i<n;i++)if(a=e[i]," "===a||"/"===a)t.push(r),r="","/"===a&&(r+="/");else if("'"===a||'"'===a)for(i++;e[i]!==a&&i<n;)r+=e[i],i++;else r+=a;return r.length>0&&t.push(r),t},e.toVerticalAlignment=function(e){return 0===e||1===e||2===e?e:2},e.toExcelVerticalAlignment=function(e){return 0===e||1===e||2===e?e:0},e.toHorizontalAlignment=function(e){switch(e){case 0:return 3;case 1:return 0;case 6:return 4;case 2:return 1;case 3:return 2;case 4:case 5:case 7:return 3;default:return 3}},e.toExcelHorizontalAlignment=function(e){switch(e){case 1:return 2;case 0:return 1;case 2:return 3;case 3:return 0;case 4:return 6;default:return 0}},e.toBorderLine=function(e){if(e){var t=null;return 0===e.lineStyle?null:(e.color||(e.color=new A(1,0,0)),t=e.color.isThemeColor()?{color:N.getThemeColorName(e.color),style:e.lineStyle}:{color:""+N.getRGBColor(e.color),style:e.lineStyle})}},e.toExcelBorderSide=function(e){var t,r,o=new T;return e?(t=e.color,N.isThemeColor(t)?o.color=N.getExcelThemeColor(t):(r=e.color,o.color=new A(2,N.fromHtmlColor(r),0)),o.lineStyle=e.style,o):o},e.setStyleInfoBorders=function(t,r){r.borderLeft=e.toBorderLine(t.left),r.borderRight=e.toBorderLine(t.right),r.borderTop=e.toBorderLine(t.top),r.borderBottom=e.toBorderLine(t.bottom),r.borderVertical=e.toBorderLine(t.vertical),r.borderHorizontal=e.toBorderLine(t.horizontal),r.diagonalUp=e.toBorderLine(t.diagonalUp),r.diagonalDown=e.toBorderLine(t.diagonalDown)},e.toCellStyle=function(t,r,i){var n,a,l,d,u,f,b,h,p,m,g,y={};return t?(n=t.isStyleFormat,a=t.applyFont,l=t.applyFill,d=t.applyBorder,u=t.applyAlignment,f=t.applyProtection,b=t.applyNumberFormat,n&&(z(a)&&(y.applyFont=a),z(l)&&(y.applyFill=l),z(d)&&(y.applyBorder=d),z(u)&&(y.applyAlignment=u),z(f)&&(y.applyProtection=f),z(b)&&(y.applyNumberFormat=b)),(!n&&t.applyFont!==!1||n)&&t.font&&e.setStyleInfoFont(t.font,y,r,i),y.locked=t.isLocked,t.indent!==c&&(y.textIndent=t.indent,
30
+ y.textIndent>0&&(h=y.textIndent,p=Math.floor(h),h-p===.5&&0===(1&p)?y.textIndent=p:y.textIndent=Math.round(h))),y.wordWrap=t.isWordWrap,y.vAlign=e.toVerticalAlignment(t.verticalAlign),y.hAlign=e.toHorizontalAlignment(t.horizontalAlign),o.J(t.rotation)||(255===t.rotation?y.isVerticalText=!0:y.textOrientation=t.rotation>90?90-t.rotation:t.rotation),t.border&&(m=t.border,m&&e.setStyleInfoBorders(m,y)),t.fill&&0!==t.fill.patternType?e.Ie(t.fill,y):y.backColor=s,t.isShrinkToFit?y.shrinkToFit=!0:y.shrinkToFit=!1,g=B.getFormatCode(t),n&&"General"===g||(y.formatter=g),o.J(t.quotePrefix)||(y.quotePrefix=t.quotePrefix),y):null},e.toRichTextStyle=function(t,r,o){var i={};return e.setStyleInfoFont(t,i,r,o),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamily=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.fromRichTextStyle=function(t){var r,i,n,a,l;if(!o.J(t))return r=f,i={},t.font&&(n=e.fromHtmlFont(t.font),n.fontFamily&&(r=e.getFontName(n.fontFamily)),o.StringEx.L(r)&&(r=f),i.fontFamily=r,n.fontSize&&(i.fontSize=Math.round(P.pixelToPoint(n.fontSize))),n.fontStyle===h&&(i.isItalic=!0),n.fontWeight===b&&(i.isBold=!0)),t.foreColor&&(N.isThemeColor(t.foreColor)?i.foreColor=N.getExcelThemeColor(t.foreColor):(a=N.fromHtmlColor(t.foreColor),l=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(a)),a=l.a*Math.pow(16,6)+l.r*Math.pow(16,4)+l.g*Math.pow(16,2)+l.b,i.foreColor=new A(2,a,0))),t.themeFont&&(t.themeFont.toUpperCase()==="Headings".toUpperCase()?i.fontScheme=1:t.themeFont.toUpperCase()==="Body".toUpperCase()&&(i.fontScheme=2)),1===(1&t.textDecoration)&&(i.underLineStyle=1),8===(8&t.textDecoration)&&(i.underLineStyle=2),i.isStrikeOut=2===(2&t.textDecoration),i.charSetIndex=t.charSetIndex,i.isCondense=t.isCondense,i.isExtend=t.isExtend,i.fontFamilySet=t.fontFamily,i.isOutlineStyle=t.isOutlineStyle,i.isShadowStyle=t.isShadowStyle,i.vertAlign=t.vertAlign,i},e.toSchemeClrValue=function(e){switch(e){case 255:return"";case 1:return"dk1";case 0:return"lt1";case 3:return"dk2";case 2:return"lt2";case 4:return"accent1";case 5:return"accent2";case 6:return"accent3";case 7:return"accent4";case 8:return"accent5";case 9:return"accent6";case 10:return"hlink";case 11:return"folHlink";case 240:return"phClr";case 241:return"tx1";case 242:return"tx2";case 243:return"bg1";case 244:return"bg2";default:return""}},e.Ie=function(t,r){1===t.patternType?e.vk(t.fgColor,r):t.patternType?e.wk(t.patternType,t.fgColor,t.bgColor,r):t.stops&&e.xk(t,r)},e.vk=function(e,t){if(o.J(e))t.backColor="#000000";else{var r=e.isRGBColor()&&0===e.value();if(e.isRGBColor()&&0===e.value()||e.isIndexedColor()&&64===e.value()||e.isIndexedColor()&&65===e.value())return void(r&&(t.backColor=null));e.isThemeColor()?t.backColor=N.getThemeColorName(e):t.backColor=N.toRGBColor(e)}},e.wk=function(e,t,r,o){o.backColor={type:e,patternColor:null,backgroundColor:null},t&&(t.isThemeColor()?o.backColor.patternColor=N.getThemeColorName(t):o.backColor.patternColor=N.toRGBColor(t)),r&&!r.isAutoColor()&&(r.isThemeColor()?o.backColor.backgroundColor=N.getThemeColorName(r):o.backColor.backgroundColor=N.toRGBColor(r))},e.xk=function(e,t){var r,o;for(t.backColor=e,r=0;r<e.stops.length;r++)o=e.stops[r].color,"string"!=typeof o&&(o.isThemeColor()?e.stops[r].color=N.getThemeColorName(o):e.stops[r].color=N.toRGBColor(o))},e.getStyleFormatter=function(e){var t,r,i=s,n=e.formatter;return"string"==typeof n&&("="===n.charAt(0)||n.indexOf("{{")>=0&&n.indexOf("}}")>=0)?i:("string"==typeof n&&" "!==n?i=n:e.autoFormatter?(t=e.autoFormatter.formatCached,t&&!o.StringEx.O(t)&&(i=t)):n&&(r=n.formatCached,r&&!o.StringEx.O(r)&&(i=r)),i)},e.toExtendedFormat=function(t,r){var i,n,a,l,d,u,p,m,g,y,S,C,w,x,T,I,L,D,P;if(t){if(i=t.parentName,n=t.name,a=V(n),l=new E,d=e.getStyleFormatter(t),d?(u=B.getFormatId(d),p=u.id,m=u.isBuiltIn,m?l.numberFormatIndex=p:l.numberFormat=new R(p,d),g=r.bj(i),y=g&&e.getStyleFormatter(g),!a&&(0!==p||y&&0!==B.getFormatId(y).id)&&(l.applyNumberFormat=!0)):l.numberFormatIndex=0,t.backColor&&0!==t.backColor.type){if(a||(l.applyFill=!0),S=new k,"string"==typeof t.backColor)S.patternType=1,S.fgColor=t.backColor;else if(o.J(t.backColor.type)||"path"===t.backColor.type)for(C in t.backColor)S[C]=t.backColor[C];else S.patternType=t.backColor.type,S.fgColor=t.backColor.patternColor,S.bgColor=t.backColor.backgroundColor;for(o.J(S.fgColor)||(S.fgColor=N.toExcelColor(S.fgColor)),o.J(S.bgColor)||(S.bgColor=N.toExcelColor(S.bgColor)),w=S.stops&&S.stops.length,x=0;x<w;x++)S.stops[x].color=N.toExcelColor(S.stops[x].color);l.fill=S}return(t.borderLeft||t.borderRight||t.borderTop||t.borderBottom||t.diagonalUp||t.diagonalDown)&&(l.border=new v,t.borderLeft&&(l.border.left=e.toExcelBorderSide(t.borderLeft)),t.borderRight&&(l.border.right=e.toExcelBorderSide(t.borderRight)),t.borderTop&&(l.border.top=e.toExcelBorderSide(t.borderTop)),t.borderBottom&&(l.border.bottom=e.toExcelBorderSide(t.borderBottom)),t.diagonalDown&&(l.border.diagonalDown=e.toExcelBorderSide(t.diagonalDown)),t.diagonalUp&&(l.border.diagonalUp=e.toExcelBorderSide(t.diagonalUp)),a||(l.applyBorder=!0)),(t.font||t.fontForColumnWidth||t.foreColor||t.themeFont||t.textDecoration!==c&&null!==t.textDecoration)&&(a||(l.applyFont=!0),T=f,I=t.fontForColumnWidth?t.fontForColumnWidth:t.font,I&&(L=e.fromHtmlFont(I),L.fontFamily&&(T=e.getFontName(L.fontFamily)),o.StringEx.L(T)&&(T=f),l.font=new F(T.trim(),null,0),L.fontSize&&(l.font.fontSize=e.getExcelFontSize(L.fontSize)),L.fontStyle===h&&(l.font.isItalic=!0),L.fontWeight===b&&(l.font.isBold=!0)),1===(1&t.textDecoration)&&(l.font.underLineStyle=1),8===(8&t.textDecoration)&&(l.font.underLineStyle=2),t.foreColor&&(N.isThemeColor(t.foreColor)?l.font.fontColor=N.getExcelThemeColor(t.foreColor):(D=N.fromHtmlColor(t.foreColor),P=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(D)),D=P.a*Math.pow(16,6)+P.r*Math.pow(16,4)+P.g*Math.pow(16,2)+P.b,l.font.fontColor=new A(2,D,0))),l.font.isStrikeOut=2===(2&t.textDecoration)),t.themeFont&&(t.themeFont.toUpperCase()==="Headings".toUpperCase()?l.font.fontScheme=1:t.themeFont.toUpperCase()==="Body".toUpperCase()&&(l.font.fontScheme=2)),t.shrinkToFit&&(l.isShrinkToFit=!0),t.textOrientation&&(l.rotation=t.textOrientation<0?90-t.textOrientation:t.textOrientation),t.locked!==c?l.isLocked=t.locked:l.isLocked=!0,t.wordWrap!==s&&t.wordWrap!==c&&(l.isWordWrap=t.wordWrap),t.textIndent!==s&&t.textIndent!==c&&(l.indent=Math.ceil(t.textIndent)),l.verticalAlign=e.toExcelVerticalAlignment(t.vAlign),l.horizontalAlign=e.toExcelHorizontalAlignment(t.hAlign),t.isVerticalText===!0&&(l.isVerticalText=t.isVerticalText),o.J(t.quotePrefix)||(l.quotePrefix=t.quotePrefix),o.J(i)||(l.parentName=i),a&&(l.applyFont=t.applyFont,l.applyFill=t.applyFill,l.applyAlignment=t.applyAlignment,l.applyBorder=t.applyBorder,l.applyNumberFormat=t.applyNumberFormat,l.applyProtection=t.applyProtection),l}},e.getExcelFontSize=function(e){var t=P.pixelToPoint(e),r=.05,o=Math.round(1e3*t)/1e3,i=Math.round(o%r*1e3)/1e3;return i<r/2?Math.floor(o/r)*r:Math.ceil(o/r)*r},e.toDifferentialFormatting=function(t,r){var i,n,a,l,s,d,u,b,h,p,m,g,y={};return!o.isNullOrUndefined(t.parentName)&&r&&(i=o.ga._(r.th,t.parentName),t=i?i:t),n=t.isSlicerHeader,a=t.isFormatStyle,l=t.formatter,"string"==typeof l&&" "!==l&&(s=B.getFormatId(l),d=s.id,u=s.isBuiltIn,u?(y.numberFormatIndex=d,y.numberFormatCode=l):y.numberFormat=new R(d,l)),t.backColor!==c&&(b=t.backColor,b!==c?y.fill=N.toExcelBackColor(b,!0):y.fill=b),(a||t.borderLeft||t.borderRight||t.borderTop||t.borderBottom||t.borderVertical||t.borderHorizontal)&&(y.border=new v,t.borderLeft?y.border.left=e.toExcelBorderSide(t.borderLeft):(n||t.borderLeft===c&&a)&&(y.border.left=c),t.borderRight?y.border.right=e.toExcelBorderSide(t.borderRight):(n||t.borderRight===c&&a)&&(y.border.right=c),t.borderTop?y.border.top=e.toExcelBorderSide(t.borderTop):(n||t.borderTop===c&&a)&&(y.border.top=c),t.borderBottom?y.border.bottom=e.toExcelBorderSide(t.borderBottom):(n||t.borderBottom===c&&a)&&(y.border.bottom=c),t.borderVertical&&(y.border.vertical=e.toExcelBorderSide(t.borderVertical)),t.borderHorizontal&&(y.border.horizontal=e.toExcelBorderSide(t.borderHorizontal))),(t.font||t.foreColor!==c||t.themeFont||t.textDecoration!==c&&null!==t.textDecoration)&&(h=f,p=void 0,t.font&&(m=e.fromHtmlFont(t.font),m.fontFamily&&(h=e.getFontName(m.fontFamily)),o.StringEx.L(h)&&(h=f),y.font=new F(h.trim(),null,0),m.fontSize&&(y.font.fontSize=Math.round(P.pixelToPoint(m.fontSize))),"italic"===m.fontStyle&&(y.font.isItalic=!0),"bold"===m.fontWeight&&(y.font.isBold=!0)),y.font||(y.font=new F(h.trim(),null,0)),1===(1&t.textDecoration)&&(y.font.underLineStyle=1),8===(8&t.textDecoration)&&(y.font.underLineStyle=2),t.foreColor&&(N.isThemeColor(t.foreColor)?y.font.fontColor=N.getExcelThemeColor(t.foreColor):(p=N.fromHtmlColor(t.foreColor),g=N.mixTranslucentColor(N.fromArgb(16777215),N.fromArgb(p)),p=g.a*Math.pow(16,6)+g.r*Math.pow(16,4)+g.g*Math.pow(16,2)+g.b,y.font.fontColor=new A(2,p,0))),null===t.foreColor&&(y.font.fontColor=null),y.font.isStrikeOut=2===(2&t.textDecoration)),y.isPartFontStyle=t.isPartFontStyle,y.isSlicerHeader=n,y},e.toStringStyle=function(e){if(o.isNullOrUndefined(e))return"";var t="";return o.isNullOrUndefined(e.backColor)||(t+="object"==typeof e.backColor?"backColor:"+JSON.stringify(e.backColor)+",":"backColor:"+e.backColor+","),e.foreColor!==c&&(t+="foreColor:"+e.foreColor+","),e.hAlign!==c&&(t+="hAlign:"+e.hAlign+","),e.vAlign!==c&&(t+="vAlign:"+e.vAlign+","),e.font!==c&&(t+="font:"+e.font+","),e.themeFont!==c&&(t+="themeFont:"+e.themeFont+","),e.formatter!==c&&(t+="formatter:"+e.formatter+","),o.isNullOrUndefined(e.borderLeft)||(t+="borderLeft:"+JSON.stringify(e.borderLeft)+","),o.isNullOrUndefined(e.borderTop)||(t+="borderTop:"+JSON.stringify(e.borderTop)+","),o.isNullOrUndefined(e.borderRight)||(t+="borderRight:"+JSON.stringify(e.borderRight)+","),o.isNullOrUndefined(e.borderBottom)||(t+="borderBottom:"+JSON.stringify(e.borderBottom)+","),o.isNullOrUndefined(e.diagonalDown)||(t+="diagonalDown:"+JSON.stringify(e.diagonalDown)+","),o.isNullOrUndefined(e.diagonalUp)||(t+="diagonalUp:"+JSON.stringify(e.diagonalUp)+","),e.locked!==c&&(t+="locked:"+e.locked+","),e.textIndent!==c&&(t+="textIndent:"+e.textIndent+","),e.wordWrap!==c&&(t+="wordWrap:"+e.wordWrap+","),e.shrinkToFit!==c&&(t+="shrinkToFit:"+e.shrinkToFit+","),e.textDecoration!==c&&(t+="textDecoration:"+e.textDecoration+","),e.textOrientation!==c&&(t+="textOrientation:"+e.textOrientation+","),e.isVerticalText!==c&&(t+="isVerticalText:"+e.isVerticalText+","),e.quotePrefix!==c&&(t+="quotePrefix:"+e.quotePrefix+","),e.autoFormatter!==c&&(t+="autoFormatter:"+e.autoFormatter+","),o.isNullOrUndefined(e.name)||e.name.indexOf("__builtInStyle")!==-1||(t+="name:"+e.name+","),e.parentName!==c&&(t+="parentName:"+e.parentName+","),e.fontForColumnWidth!==c&&(t+="fontForColumnWidth:"+e.fontForColumnWidth+","),V(e.name)&&(e.applyFont!==c&&(t+="applyFont:"+e.applyFont+","),e.applyFill!==c&&(t+="applyFill:"+e.applyFill+","),e.applyAlignment!==c&&(t+="applyAlignment:"+e.applyAlignment+","),e.applyBorder!==c&&(t+="applyBorder:"+e.applyBorder+","),e.applyProtection!==c&&(t+="applyProtection:"+e.applyProtection+","),e.applyNumberFormat!==c&&(t+="applyNumberFormat:"+e.applyNumberFormat+",")),t},e.cloneSpreadJSStyle=function(e){if(!o.isNullOrUndefined(e)){var t={};return t.backColor=e.backColor,t.foreColor=e.foreColor,t.hAlign=e.hAlign,t.vAlign=e.vAlign,t.font=e.font,t.themeFont=e.themeFont,t.formatter=e.formatter,t.borderLeft=e.borderLeft,t.borderTop=e.borderTop,t.borderRight=e.borderRight,t.borderBottom=e.borderBottom,t.diagonalDown=e.diagonalDown,t.diagonalUp=e.diagonalUp,t.locked=e.locked,t.textIndent=e.textIndent,t.wordWrap=e.wordWrap,t.shrinkToFit=e.shrinkToFit,t.textDecoration=e.textDecoration,t.textOrientation=e.textOrientation,t.isVerticalText=e.isVerticalText,t.quotePrefix=e.quotePrefix,t.autoFormatter=e.autoFormatter,t.name=e.name,t.parentName=e.parentName,t.fontForColumnWidth=e.fontForColumnWidth,V(e.name)&&(t.applyFont=e.applyFont,t.applyFill=e.applyFill,t.applyAlignment=e.applyAlignment,t.applyBorder=e.applyBorder,t.applyProtection=e.applyProtection,t.applyNumberFormat=e.applyNumberFormat),t}},e.convertDxfToStyle=function(t,r,i,n){var a,l={};return t.font&&e.setStyleInfoFont(t.font,l,r,i),t.fill&&(o.isNullOrUndefined(t.fill.patternType)&&t.fill.bgColor&&(t.fill.patternType=1),1===t.fill.patternType&&(t.fill.fgColor=t.fill.bgColor),0!==t.fill.patternType?e.Ie(t.fill,l):l.backColor=s),t.border&&e.setStyleInfoBorders(t.border,l),t.numberFormat&&(a=B.getFormatCode(t),"General"!==a&&(l.formatter=a)),n&&t.alignment&&(t.alignment.horizontalAlign!==c&&(l.hAlign=t.alignment.horizontalAlign),t.alignment.verticalAlign!==c&&(l.vAlign=t.alignment.verticalAlign),t.alignment.isWordWrap!==c&&(l.wordWrap=t.alignment.isWordWrap),t.alignment.isShrinkToFit!==c&&(l.shrinkToFit=t.alignment.isShrinkToFit),t.alignment.indent!==c&&(l.textIndent=t.alignment.indent),t.alignment.rotation!==c&&(l.textOrientation=t.alignment.rotation)),n&&t.protection&&t.alignment.isLocked!==c&&(l.locked=t.alignment.isLocked),l},e.uk=null,e}(),t.ConverterHelper=M,O=function(){function e(){}return e.Jh=function(e){var t,r,i,n,a={foreColor:"black",font:"normal normal normal 11pt/normal Calibri",locked:!0,name:"Normal",hAlign:3,vAlign:0};for(t in e.sheets)if(e.sheets.hasOwnProperty(t)&&(r=e.sheets[t],r.data&&r.data.defaultDataNode&&r.data.defaultDataNode.style)){i=r.data.defaultDataNode.style;for(n in i)i.hasOwnProperty(n)&&!o.J(i[n])&&(a[n]=i[n]);break}return a},e}(),t.DefaultStyle=O,H=function(){function e(){}return e.getSystemColor=function(t){return N.fromArgb(e.yk[t])},e.yk=[4290032820,4288263377,4278190080,4289440683,4293980400,4288716960,4285098345,4293125091,4294967295,4278190080,4278190080,4290367978,4292338930,4285361517,4281571839,4294967295,4278216396,4294244348,4290760155,4282601044,4294967265,4278190080,4293980400,4293980400,4281571839,4278190080,4291348680,4294967295,4284769380,4278190080,4288716960,4293125091,4293980400,4294967295,4288716960,4278190080],e}(),G=function(){function e(){}return e.getSystemColor=function(t){return e.systemColors[t.toUpperCase()]},e.systemColors={length:0,"3DDKSHADOW":H.getSystemColor(30),"3DLIGHT":H.getSystemColor(31),ACTIVEBORDER:H.getSystemColor(0),ACTIVECAPTION:H.getSystemColor(1),APPWORKSPACE:H.getSystemColor(3),BACKGROUND:H.getSystemColor(10),BTNFACE:H.getSystemColor(32),BTNHIGHLIGHT:H.getSystemColor(33),BTNSHADOW:H.getSystemColor(34),BTNTEXT:H.getSystemColor(35),CAPTIONTEXT:H.getSystemColor(2),GRAYTEXT:H.getSystemColor(13),HIGHLIGHT:H.getSystemColor(14),HIGHLIGHTTEXT:H.getSystemColor(15),INACTIVEBORDER:H.getSystemColor(17),INACTIVECAPTION:H.getSystemColor(18),INACTIVECAPTIONTEXT:H.getSystemColor(19),INFOBK:H.getSystemColor(20),INFOTEXT:H.getSystemColor(21),MENU:H.getSystemColor(22),GRADIENTACTIVECAPTION:H.getSystemColor(11),HOTLIGHT:H.getSystemColor(16),GRADIENTINACTIVECAPTION:H.getSystemColor(12),MENUBAR:H.getSystemColor(23),MENUHIGHLIGHT:H.getSystemColor(24),MENUTEXT:H.getSystemColor(25),SCROLLBAR:H.getSystemColor(26),WINDOW:H.getSystemColor(27),WINDOWFRAME:H.getSystemColor(28),WINDOWTEXT:H.getSystemColor(29)},e}(),t.ExcelSystemColor=G;function j(){P.jk=c,B.gk=c,B.dk={count:0},B._j={count:0},M.uk=c,N.nk=c,N.qk=c,N.useCustomPalette=!1,N.customPalette=s}t.clearCache=j},"./src/excel-io.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xlsx-io/common/file-loader.ts"),i=r("./src/xlsx-io/reader/xlsx-reader.ts"),n=r("./src/xlsx-io/writer/xlsx-writer.ts"),a=r("./src/xlsx-io/password/xlsxEncryptionHelper.ts"),l=r("./src/xlsx-io/common/errorcode.ts"),s=r("./src/xlsx-io/common/errorMessage.ts"),c=r("./src/common/common.ts"),d=r("./src/common/excel-types.ts"),t.ErrorCode=l.errorCode,u=r("./src/lc/releaseLc.js"),u&&(u.zk&&u.zk(t),f=u.Ak,1===f&&u.Bk()),b=function(){function e(){this.Ck=new o.FileLoader}return e.prototype.open=function(e,t,r,o){var n=this;t||(t=function(){}),r||(r=function(){}),n.Ck.onFileLoad=function(e){try{var n=new i.XlsxReader;n.Dk(e,o,function(e){t(e)})}catch(e){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}},n.Ck.onError=r,n.Ck.loadFile(e,o)},e.prototype.save=function(e,t,r,o){t||(t=function(){}),r||(r=function(){});var i,d;"object"==typeof e&&(i=JSON.parse(JSON.stringify(e))),"string"==typeof e&&(i=JSON.parse(e)),new n.XlsxWriter(i,function(){try{var e=this;e.onZip=function(e){if(o&&o.password)try{e=a.XlsxEncryptionHelper.Ek(e,o.password),d||(e=a.XlsxEncryptionHelper.Fk(e))}catch(e){return void r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}t(e)},e.onError=function(){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})},c.J(o)&&(o={}),c.J(o.xlsxStrictMode)&&(o.xlsxStrictMode=!0),o&&o.password&&(d=o.useArrayBuffer,o.useArrayBuffer=!0),e.Bg=o,e.Gk()}catch(e){r({errorCode:l.errorCode.fileFormatError,errorMessage:s.sR().EXP_FILE_FORMAT})}})},e.registerMaxDigitWidth=function(e,t,r){!e||c.J(t)||c.J(r)||(d.unknownFontMaxDigitWidthMap[t]||(d.unknownFontMaxDigitWidthMap[t]={}),d.unknownFontMaxDigitWidthMap[t][e]=r)},e.tableThemes=c.buildInTableThemes,e.pivotTableThemes=c.buildInPivotTableThemes,e.slicerStyles=c.buildInSlicerStyles,e.timelineStyles=c.buildInTimelineStyles,e}(),t.IO=b},"./src/lc/common.js":function(e,t,r){!function(){"use strict";var t,o,i,n,a={zk:function(e){t=e}},l=r("./src/xlsx-io/reader/xlsx-reader.ts").XlsxReader,s=r("./src/datamodel/datamodel-writer.ts").WriterDataModel,c=r("./src/common/common.ts").K,d=r("./src/lc/ipaddr.js"),u=r("./src/lc/lcValidator.js"),f=u.Hk,b=u.Ik,h="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,m=h||p||Function("return this")(),g=/^[0-9.]+$/,y="m",S="n",C="b",w="d",x="e",A="adr",T=b("XRsZ"),v=b("HUkJ"),k=b("T&g"),F=b("Q&w"),R=b("GRz1"),E=b("XSzB"),I=b("XRwh"),L=b("WQs5");function D(e,t){var r,o,i,n,a="",l=0;for(r=0;r<e.length;r++)l=Math.max(l,e[r].length);for(r=0;r<l;r++){for(t&&(o=""),n=0;n<e.length;n++)t?o+=r>=e[n].length?"00":e[n].charAt(r)+e[n].charAt(r+1):r<e[n].length&&(a+=e[n].charAt(r));t&&(i=parseInt(o,16),a+=String.fromCharCode(i),r++)}return a}function B(e){var r=c(),o=r&&r[D(["G","C"])],i=o&&o[D(["Sra","ped"])],n=i&&i[D(["Set","hes"])];return n&&n[e]||t&&t[e]}function P(){var e=c(),t=e&&e[D(["G","C"])],r=t&&t[D(["Sra","ped"])];return r&&r[D(["Cmo","omn"])]}o=function(e){var t,r=D(["Lcnee","iesKy"]),o=B(r),i="BJIH";return f(o,{pK:"l6/zrbWoSbcLFwEetFh38rH3ErBZE9H+Cqix3R+wTlfA1wD5B+lUcCQn+EJ60I4RGrm0x1sFjkiLWwB0jAn6BWZv0W4WbqAKriOdeoivxDp1Wmjs3qkEDhvbsjPtfvwx2BHil6o+/tDrdMJQSGs18WZm2PoQLQuL+9VhZ4FNRHUQU3Jtioke/OZEGHJOdYVwvCGalzBad6QFOiVbDBQPePpS3++GJzOxN8SN/7lyS5/IdKiy3WJRaVGkB370+HbN6hKraDfUgReLX26yxRaKC/5aWnGAJ2NnWLoGyAGRcwT9dVjo4bcAZNrrA0U9JVKQxaSskhdv2p49XzJkltXx5w==",aC:"B1"},function(r){t=W(r,i),t.hl=!!o,M(t,o),e(t)},function(){t=W(),t.hl=!!o,M(t,o),e(t)}),t};function W(e,t){var r,o,i,n,a={isVd:function(e){var t=this,r=B("Workbook");return e=r&&1===r.lm||e,t.s&&!t.e&&(!t.adr||!!t.adr.dsr==!!e)}},l=V(),s=function(){var a,s,c,d,u,f,b;if(!e)return!1;if(a=e[v],!a||!a.length)return!1;for(d=0,u=a.length;d<u;d++)if(s=a[d],c=s&&s[F]===t){r=s[k];break}if(!c)return!1;if(e[L]&&(n=e[L]),e[I]){if(f=new Date,b=_(e[I]),i=Math.ceil((b-f)/864e5),o=i<=0)return!1}else i=void 0;return!!(l||!e[R]&&!e[E]||J(e[R],e[E])||z(e[R],e[E]))};return a[C]=l,a.s=s(),a[y]=e?e[T]?-1:1:0,a[S]=r,a[x]=o,o||(a[w]=i),a[A]=n,a}function _(e){return new Date(N(e.substr(0,4))||0,N(e.substr(4,2))-1||0,N(e.substr(6,2))||0)}function N(e){return parseInt(e,10)}function M(e,t){e.m=t?e.m:-1}function O(e,t){var r,o,i,n,a;if(!e||0!==e.indexOf("//"))return!1;if(r=e.slice(2).split("/"),r.length<1)return!1;for(o=r[0],i=0,n=t.length;i<n;i++)if(a=t[i],a===o)return!0;return!1}function H(e,t){var r,o,i,n,a;for(r=0,o=t.length;r<o;r++){if(i=t[r],n=!1,i&&0===i.lastIndexOf("*.",0)&&(n=!0),i=n?i.slice(2):i,i===e)return!0;if(n&&(a=e.indexOf("."+i),a>0&&a===e.length-i.length-1))return!0}return!1}function G(e,t){var r,o,i,n;if(0===e.indexOf("[")&&e.lastIndexOf("]")===e.length-1&&(e=e.substring(1,e.length-1)),e.indexOf("%")>-1&&(e=e.split("%")[0]),a(e))for(r=d.parse(e),o=0;o<t.length;o++){if(i=t[o],a(i)&&s(i,e))return!0;if(n=l(i),n&&c(r,n))return!0}return!1;function a(e){return d.IPv4.isValidFourPartDecimal(e)||d.IPv6.isValid(e)}function l(e){var t,r;if(e.indexOf("/")===-1)return!1;t=e.split("/"),(t[1].indexOf(":")>-1||t[1].indexOf(".")>-1)&&(r=d.parse(t[1]).prefixLengthFromSubnetMask(),e=[t[0],r].join("/"));try{return d.parseCIDR(e)}catch(e){return!1}}function s(e,t){var r=""+d.parse(e),o=""+d.parse(t);return r===o}function c(e,t){try{return e.match(t)}catch(e){return!1}}}function U(e,t){var r,o,i,n;if(e&&4===e.split(".").length)for(r=0,o=t.length;r<o;r++)if(i=t[r],i&&(n=i.length-2,n>0&&(i===e||".*"===i.substr(n)&&e.substr(0,n)===i.substr(0,n)&&g.test(e))))return!0;return!1}function J(e,t){var r,o,i,n;return!!q()&&(r=b("JYx3Gb#8Pb5R"),o=b("1agFGc#UHbw5"),i=m[r]&&m[r][o],!!i&&(i=i.toLowerCase(),n=e.split(","),!(!e||!O(i,n))))}function z(e,t){var r,o=b("JYx3Gb#8Pb5R"),i=b("Zdg3Ga#UHbw5"),n=m[o]&&m[o][i];return!n||(n=n.toLowerCase(),r=e.split(","),!(!e||!H(n,r))||(!(!e||!U(n,r))||!(!e||!G(n,r))))}function V(){var e=b("JYx3Gb#8Pb5R");return j(m[e])}function j(e){var t=b("VdgJHc#wJb59"),r=b("Zdg3Ga#UHbw5");return e&&(X(e[t])||K(e[t])||Y(e[r]))}function X(e){var t=b("MlSZto#Z");return e&&e===t}function K(e){var t=b("yXbog&w");return e&&e===t}function q(){var e=b("JYx3Gb#8Pb5R"),t=b("VdgJHc#wJb59"),r=b("Udg36Y#oUddV"),o=m[e];return o&&o[t]===r}function Y(e){var t=b("4LJITMx8UMcA"),r=b("Zo9Wv2#M"),o=b("JYw3Gb4NOb6x");return e&&(e===t||e===r||e===o)}function Q(e){var t=B(D(["S","R"])),r=P()&&t&&P().ResourceManager;return r&&new r(t).getResource()[e]}i=function(e,t,r){var o,i,n,a=Q(D([e,"s"])),l=B(D(["Wrbo","okok"])),s=Q(l&&1===l.lm?D(["ld","se"]):D(["lr","su"])),c=Z(a,t);for(s=Z(s,t),c=c.replace("{0}",r.d),c=c.replace("{1}",s).replace("{1}",s),o=[],i=0,n=0;n<c.length;n++)"\r"!==c[n]&&"\n"!==c[n]||(o.push(c.substring(i,n)),"\r"===c[n]&&n<c.length-1&&"\n"===c[n+1]&&n++,i=n+1);return i<c.length&&o.push(c.substring(i,c.length)),o};function Z(e,t){var r,o,i,n=!0,a="";if(e)if("string"==typeof e)e=e.trim(),e&&(r=[e]);else if(Array.isArray(e)){for(o=!0,r=[],i=0;i<e.length;i++)a=e[i].trim(),r.push(a),o&&a&&(o=!1);o&&(r=null)}return r||(n=!1,r=t),D(r,n)}function $(e,t,r){var o,n={name:D(["Eauto eso","vlainVrin"]),index:0,allowCellOverflow:!0,defaults:{colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:30,colWidth:60},isSelected:!1,rowCount:20,columnCount:20,data:{dataTable:{}}},a=i(e,t,r),l=n.data.dataTable;for(o=1;o<a.length+1;o++)l[o]={},l[o][1]={value:a[o-1]};return n}function ee(e,t,r){var i=this;o(function(o){var n,a,l,s,c,d,u,f,b,h,p,m,g=["IvldEclI ies e.","nai xe Olcneky"];if(o.hl)if(o.isVd(!1)){if(o.m!==-1)return t.apply(i),void(i.onCompleted&&i.onCompleted());o.d?(n="l2",g=["Pwrdb pedSet.\rYu eprr elyetkyeprsi 0 as","oee ySra.hes \nortmoaydpomn e xie n{}dy."]):(n="l6",g=["Pwrdb pedSet vlainVrin\no iesdfrDsrbto.","oee ySra.hesEauto eso\rNtLcne o itiuin"])}else o.adr&&o.adr.dsr?n=Q(D(["l8","s"]))?"l8":"l4":o.e?(n="l5",g=["Pwrdb pedSet.\rYu eprr elyetkyhseprd","oee ySra.hes \nortmoaydpomn e a xie."]):n=Q(D(["l8","s"]))?"l8":"l4";else o.b?(n="l1",g=["Pwrdb pedSet.\no a nydpo hsEAUTO eso oal.\rTmoaydpomn esaeaalbefrtsig ","oee ySra.hes\rYucnol elyti VLAINvrinlcly \neprr elyetky r vial o etn."]):(n=Q(D(["l7","s"]))?"l7":"l3",g=["EclI ies o on\rYune ai ies e ornSraJ xe O eprr esaeaalbefreauto.I o ucae ies,yu e si orprhs ofraineal ","xe OLcneNtFud\no edavldlcnekyt u pedSEclI.Tmoayky r vial o vlain fyuprhsdalcne orkyi nyu ucaecnimto mi."]);if(a=$(n,g,o),!o.hl&&o.b||o.isVd(!1)){if(r&&t.apply(i),l=e.sheets,s=l[a.name])a.index=s.index;else{for(c in l)l.hasOwnProperty(c)&&(d=l[c],d.index++);if(u=e.slicerCaches)for(f=0;f<u.length;f++)if(b=u[f],h=b.pivotTables,h&&h.length>0)for(p=0;p<h.length;p++)m=h[p],m.tabId+=1;e.sheetCount++,e.activeSheetIndex=e.activeSheetIndex?++e.activeSheetIndex:1}l[a.name]=a,r||t.apply(i)}else e.sheetCount=1,e.sheets={},e.sheets[a.name]=a,r||t.apply(i);i.onCompleted&&i.onCompleted()})}n=function(){var e,t=l.prototype.Jk;l.prototype.Jk=function(){var e=arguments,r=this;ee.call(r,r.Kk.Ne,function(){t.apply(r,e)},!0)},l.prototype.Xh=function(){},e=s.prototype.Ph,s.prototype.Ph=function(){var t=arguments,r=this;ee.call(r,r.Ne,function(){e.apply(r,t)},!1)},s.prototype.Xh=function(){}},a.Bk=n,e.exports=a}()},"./src/lc/ipaddr.js":function(e,t,r){"use strict";!function(t){var r,o="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:RegExp("^".concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"$"),"i"),threeOctet:RegExp("^".concat(o,"\\.").concat(o,"\\.").concat(o,"$"),"i"),twoOctet:RegExp("^".concat(o,"\\.").concat(o,"$"),"i"),longValue:RegExp("^".concat(o,"$"),"i")},n=RegExp("^0[0-7]+$","i"),a=RegExp("^0x[a-f0-9]+$","i"),l="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",c={zoneIndex:RegExp(l,"i"),native:RegExp("^(::)?(".concat(s,")?([0-9a-f]+)?(::)?(").concat(l,")?$"),"i"),deprecatedTransitional:RegExp("^(?:::)(".concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"(").concat(l,")?)$"),"i"),transitional:RegExp("^((?:".concat(s,")|(?:::)(?:").concat(s,")?)").concat(o,"\\.").concat(o,"\\.").concat(o,"\\.").concat(o,"(").concat(l,")?$"),"i")};function d(e,t){var r,o,i,n,a;if(e.indexOf("::")!==e.lastIndexOf("::"))return null;for(r=0,o=-1,i=(e.match(c.zoneIndex)||[])[0],i&&(i=i.substring(1),e=e.replace(/%.+$/,""));(o=e.indexOf(":",o+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(a=t-r,n=":";a--;)n+="0:";return e=e.replace("::",n),":"===e[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),t=function(){var t,r=e.split(":"),o=[];for(t=0;t<r.length;t++)o.push(parseInt(r[t],16));return o}(),{parts:t,zoneId:i}}function u(e,t,r,o){var i,n;if(e.length!==t.length)throw Error("ipaddr: cannot match CIDR for objects with different lengths");for(i=0;o>0;){if(n=r-o,n<0&&(n=0),e[i]>>n!==t[i]>>n)return!1;o-=r,i+=1}return!0}function f(e){if(a.test(e))return parseInt(e,16);if("0"===e[0]&&!isNaN(parseInt(e[1],10))){if(n.test(e))return parseInt(e,8);throw Error("ipaddr: cannot parse ".concat(e," as octal"))}return parseInt(e,10)}function b(e,t){for(;e.length<t;)e="0".concat(e);return e}r={},r.IPv4=function(){function e(e){if(4!==e.length)throw Error("ipaddr: ipv4 octet count should be 4");var t,r;for(t=0;t<e.length;t++)if(r=e[t],!(0<=r&&r<=255))throw Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.kind=function(){return"ipv4"},e.prototype.match=function(e,t){var r;if(void 0===t&&(r=e,e=r[0],t=r[1]),"ipv4"!==e.kind())throw Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o=0,i=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(e=3;e>=0;e-=1){if(t=this.octets[e],!(t in n))return null;if(r=n[t],i&&0!==r)return null;8!==r&&(i=!0),o+=r}return 32-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return r.IPv6.parse("::ffff:".concat(""+this))},e.prototype.toNormalizedString=function(){return""+this},e.prototype.toString=function(){return this.octets.join(".")},e}(),r.IPv4.broadcastAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)|255^parseInt(o[n],10)),n++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.isIPv4=function(e){return null!==this.parser(e)},r.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(e){return!1}},r.IPv4.isValidFourPartDecimal=function(e){return!(!r.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},r.IPv4.networkAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),o=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],r=0;r<4;)i.push(parseInt(o[r],10)&parseInt(n[r],10)),r++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.parse=function(e){var t=this.parser(e);if(null===t)throw Error("ipaddr: string is not formatted like an IPv4 Address");return new this(t)},r.IPv4.parseCIDR=function(e){var t,r,o;if((t=e.match(/^(.+)\/(\d+)$/))&&(r=parseInt(t[2]),r>=0&&r<=32))return o=[this.parse(t[1]),r],Object.defineProperty(o,"toString",{value:function e(){return this.join("/")}}),o;throw Error("ipaddr: string is not formatted like an IPv4 CIDR range")},r.IPv4.parser=function(e){var t,r,o;if(t=e.match(i.fourOctet))return function(){var e,o=t.slice(1,6),i=[];for(e=0;e<o.length;e++)r=o[e],i.push(f(r));return i}();if(t=e.match(i.longValue)){if(o=f(t[1]),o>4294967295||o<0)throw Error("ipaddr: address outside defined range");return function(){var e,t=[];for(e=0;e<=24;e+=8)t.push(o>>e&255);return t}().reverse()}return(t=e.match(i.twoOctet))?function(){var e=t.slice(1,4),r=[];if(o=f(e[1]),o>16777215||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(o>>16&255),r.push(o>>8&255),r.push(255&o),r}():(t=e.match(i.threeOctet))?function(){var e=t.slice(1,5),r=[];if(o=f(e[2]),o>65535||o<0)throw Error("ipaddr: address outside defined range");return r.push(f(e[0])),r.push(f(e[1])),r.push(o>>8&255),r.push(255&o),r}():null},r.IPv4.subnetMaskFromPrefixLength=function(e){var t,r,o;if(e=parseInt(e),e<0||e>32)throw Error("ipaddr: invalid IPv4 prefix length");for(t=[0,0,0,0],r=0,o=Math.floor(e/8);r<o;)t[r]=255,r++;return o<4&&(t[o]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},r.IPv6=function(){function e(e,t){var r,o;if(16===e.length)for(this.parts=[],r=0;r<=14;r+=2)this.parts.push(e[r]<<8|e[r+1]);else{if(8!==e.length)throw Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(r=0;r<this.parts.length;r++)if(o=this.parts[r],!(0<=o&&o<=65535))throw Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.kind=function(){return"ipv6"},e.prototype.match=function(e,t){var r;if(void 0===t&&(r=e,e=r[0],t=r[1]),"ipv6"!==e.kind())throw Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o=0,i=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};for(r=7;r>=0;r-=1){if(e=this.parts[r],!(e in n))return null;if(t=n[e],i&&0!==t)return null;16!==t&&(i=!0),o+=t}return 128-o},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges);
31
31
  },e.prototype.toByteArray=function(){var e,t,r=[],o=this.parts;for(t=0;t<o.length;t++)e=o[t],r.push(e>>8),r.push(255&e);return r},e.prototype.toFixedLengthString=function(){var e=function(){var e,t=[];for(e=0;e<this.parts.length;e++)t.push(b(this.parts[e].toString(16),4));return t}.call(this).join(":"),t="";return this.zoneId&&(t="%".concat(this.zoneId)),e+t},e.prototype.toIPv4Address=function(){var e,t,o;if(!this.isIPv4MappedAddress())throw Error("ipaddr: trying to convert a generic ipv6 address to ipv4");return e=this.parts.slice(-2),t=e[0],o=e[1],new r.IPv4([t>>8,255&t,o>>8,255&o])},e.prototype.toNormalizedString=function(){var e=function(){var e,t=[];for(e=0;e<this.parts.length;e++)t.push(this.parts[e].toString(16));return t}.call(this).join(":"),t="";return this.zoneId&&(t="%".concat(this.zoneId)),e+t},e.prototype.toRFC5952String=function(){for(var e,t=/((^|:)(0(:|$)){2,})/g,r=this.toNormalizedString(),o=0,i=-1;e=t.exec(r);)e[0].length>i&&(o=e.index,i=e[0].length);return i<0?r:"".concat(r.substring(0,o),"::").concat(r.substring(o+i))},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e}(),r.IPv6.broadcastAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),o=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)|255^parseInt(o[n],10)),n++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv6 CIDR format (".concat(e,")"))}},r.IPv6.isIPv6=function(e){return null!==this.parser(e)},r.IPv6.isValid=function(e){if("string"==typeof e&&e.indexOf(":")===-1)return!1;try{var t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch(e){return!1}},r.IPv6.networkAddressFromCIDR=function(e){var t,r,o,i,n;try{for(t=this.parseCIDR(e),o=t[0].toByteArray(),n=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],r=0;r<16;)i.push(parseInt(o[r],10)&parseInt(n[r],10)),r++;return new this(i)}catch(e){throw Error("ipaddr: the address does not have IPv6 CIDR format (".concat(e,")"))}},r.IPv6.parse=function(e){var t=this.parser(e);if(null===t.parts)throw Error("ipaddr: string is not formatted like an IPv6 Address");return new this(t.parts,t.zoneId)},r.IPv6.parseCIDR=function(e){var t,r,o;if((r=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(r[2]),t>=0&&t<=128))return o=[this.parse(r[1]),t],Object.defineProperty(o,"toString",{value:function e(){return this.join("/")}}),o;throw Error("ipaddr: string is not formatted like an IPv6 CIDR range")},r.IPv6.parser=function(e){var t,r,o,i,n,a;if(o=e.match(c.deprecatedTransitional))return this.parser("::ffff:".concat(o[1]));if(c.native.test(e))return d(e,8);if((o=e.match(c.transitional))&&(a=o[6]||"",t=d(o[1].slice(0,-1)+a,6),t.parts)){for(n=[parseInt(o[2]),parseInt(o[3]),parseInt(o[4]),parseInt(o[5])],r=0;r<n.length;r++)if(i=n[r],!(0<=i&&i<=255))return null;return t.parts.push(n[0]<<8|n[1]),t.parts.push(n[2]<<8|n[3]),{parts:t.parts,zoneId:t.zoneId}}return null},r.IPv6.subnetMaskFromPrefixLength=function(e){var t,r,o;if(e=parseInt(e),e<0||e>128)throw Error("ipaddr: invalid IPv6 prefix length");for(t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0,o=Math.floor(e/8);r<o;)t[r]=255,r++;return o<16&&(t[o]=Math.pow(2,e%8)-1<<8-e%8),new this(t)},r.fromByteArray=function(e){var t=e.length;if(4===t)return new r.IPv4(e);if(16===t)return new r.IPv6(e);throw Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},r.isValid=function(e){return r.IPv6.isValid(e)||r.IPv4.isValid(e)},r.parse=function(e){if(r.IPv6.isValid(e))return r.IPv6.parse(e);if(r.IPv4.isValid(e))return r.IPv4.parse(e);throw Error("ipaddr: the address has neither IPv6 nor IPv4 format")},r.parseCIDR=function(e){try{return r.IPv6.parseCIDR(e)}catch(t){try{return r.IPv4.parseCIDR(e)}catch(e){throw Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},r.process=function(e){var t=this.parse(e);return"ipv6"===t.kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t},r.subnetMatch=function(e,t,r){var o,i,n,a;void 0!==r&&null!==r||(r="unicast");for(i in t)if(Object.prototype.hasOwnProperty.call(t,i))for(n=t[i],!n[0]||n[0]instanceof Array||(n=[n]),o=0;o<n.length;o++)if(a=n[o],e.kind()===a[0].kind()&&e.match.apply(e,a))return i;return r},e.exports?e.exports=r:t.ipaddr=r}(void 0)},"./src/lc/lcValidator.js":function(e,t){var r=function(e){var t={};function r(o){if(t[o])return t[o].exports;var i=t[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="dist",r(0)}([function(e,t){(function(e){"use strict";var r,o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="undefined"!=typeof window,i=String.fromCharCode,n=o&&window.Uint8Array||f,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="object"==(void 0===e?"undefined":r(e))&&e&&e.Object===Object&&e,s="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,c=l||s;function f(e){var t,o;if("number"==typeof e)for(t=Array(e),o=0;o<e;++o)t[o]=0;else t=e.slice(0);return t.buffer=t,t.byteLength=t.length,"object"===(void 0===e?"undefined":r(e))&&e.buffer&&(t.buffer=e.buffer),t}function b(e,t,r,o){return 1==e.length?e:(e.splice(r,1,o(e.splice(t,1,o(e[r]))[0])),e)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.charCodeAt(0);return r>=65&&r<=90?e.toLowerCase():r>=97&&r<=122?e.toUpperCase():r>=48&&r<=57?i(48+(r-48+10+t)%10):e}function p(e){var t,r=e.split(""),o=function e(t){return h(t,-1)};for(t=r.length-5;t>=0;t--)b(r,t+1,t+3,o),b(r,t,t+2,o);return r.join("")}function m(e){return e.split("").reverse().join("")}function g(e){var t,r,o,i,n,l,s,c,d,u=[],f="",b=a,h=e,p=h.length%3;if(p>0)for(;p++<3;)f+="=",h+="\0";for(p=0;p<h.length;p+=3)t=h.charCodeAt(p),r=h.charCodeAt(p+1),o=h.charCodeAt(p+2),i=t<<16|r<<8|o,n=i>>18&63,l=i>>12&63,s=i>>6&63,c=63&i,u[p/3]=b.charAt(n)+b.charAt(l)+b.charAt(s)+b.charAt(c);return d=u.join(""),d=d.slice(0,d.length-f.length)+f}function y(e){var t,r,o,n,l,s,c,d,u,f,b=[],h=a,p=e;for(f=0;f<p.length;f+=4)n=h.indexOf(p.charAt(f)),l=h.indexOf(p.charAt(f+1)),s=h.indexOf(p.charAt(f+2)),c=h.indexOf(p.charAt(f+3)),d=n<<18|l<<12|s<<6|c,t=d>>>16&255,r=d>>>8&255,o=255&d,b[f/4]=i(t,r,o),64==c&&(b[f/4]=i(t,r)),64==s&&(b[f/4]=i(t));return u=b.join("")}function S(e){return(o&&window.atob||y)(e)}function C(e){return(o&&window.btoa||g)(e)}function w(e){return decodeURIComponent(Array.prototype.map.call(S(e),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function x(e){return C(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return i(parseInt(t,16))}))}function A(e){var t,r;return e?(t=p(e),t=m(t),r=Math.ceil(t.length/2),t=t.substr(r)+t.substr(0,r),t=t.replace("#","="),t=t.replace("&","=="),w(t)):""}d=t.iDe=A;function T(e){var t,r=S(e),o=r.length,i=new n(o);for(t=0;t<o;t++)i[t]=r.charCodeAt(t);return i.buffer}function v(e){var t,r,o=new ArrayBuffer(e.length),i=new n(o);for(t=0,r=e.length;t<r;t++)i[t]=e.charCodeAt(t);return o}function k(e){return i.apply(null,new n(e))}function F(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function R(e){var t,r,o,i=0,n=5381,a=0;for(t=e.length-1;t>=0;t--)r=e.charCodeAt(t),i=r+(i<<6)+(i<<16)-i,n=r+((n<<5)+n),a=r+((a<<5)-a),a&=a;return o=i^n^a,o<0&&(o=~o),o.toString(16).toUpperCase()}function E(e){return e&&JSON.parse(e)||void 0}function I(e,t){try{t="#"+t;var r=e.indexOf(t);if(r>-1)return{prefix:e.substring(0,r),licData:JSON.parse(A(e.substr(r+t.length)))}}catch(e){}return!1}function L(e){return"oncomplete"in e&&(e.then=function(t,r){e.resolve=t,e.reject=r},e.oncomplete=function(t){e.resolve(e.result)},e.onerror=function(){e.reject()}),e}u=t.attorn=function e(t,r,i,n){var a,l,s,d,u,f,b,h=o?window.msCrypto?window.msCrypto:window.crypto:void 0,p=I(t,r.aC);if(!p)return n();a=p.licData,l=p.prefix+"#"+r.aC,s=k(T(x(l+JSON.stringify(a.D))));function m(){return R(l+JSON.stringify(a.D))===a.H?i(a.D):n()}return d=A("JYx3Gb#8Pb5R"),u=A("VdgJHc#wJb59"),c[d]&&c[d][u]&&!location.protocol.match(/^https/i)?m():h&&h.subtle?(f={alg:"PS256",e:"AQAB",kty:"RSA",n:F(r.pK)},f=window.msCrypto?v(JSON.stringify(f)):f,b={name:"RSA-PSS",saltLength:32,hash:{name:"SHA-256"}},L(h.subtle.importKey("jwk",f,b,!1,["verify"])).then(function(e){L(h.subtle.verify(b,e,T(a.S),v(s))).then(function(e){return e?i(a.D):n()})},function(){return m()}),void 0):m()}}).call(t,function(){return this}())}]);e.exports={Hk:r.attorn,Ik:r.iDe}},"./src/lc/releaseLc.js":function(e,t,r){var o=r("./src/lc/common.js");e.exports={Ak:1,Bk:o.Bk,zk:o.zk}},"./src/lib/jszip.min.js":function(e,t,r){(function(t,r){var o;!function(t){e.exports=t()}(function(){return function e(t,r,i){function n(l,s){var c,d,u;if(!r[l]){if(!t[l]){if(c="function"==typeof o&&o,!s&&c)return o(l,!0);if(a)return a(l,!0);throw d=Error("Cannot find module '"+l+"'"),d.code="MODULE_NOT_FOUND",d}u=r[l]={exports:{}},t[l][0].call(u.exports,function(e){var r=t[l][1][e];return n(r||e)},u,u.exports,e,t,r,i)}return r[l].exports}for(var a="function"==typeof o&&o,l=0;l<i.length;l++)n(i[l]);return n}({1:[function(e,t,r){"use strict";var o=e("./utils"),i=e("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,a,l,s,c,d=[],u=0,f=e.length,b=f,h="string"!==o.getTypeOf(e);u<e.length;)b=f-u,i=h?(t=e[u++],r=u<f?e[u++]:0,u<f?e[u++]:0):(t=e.charCodeAt(u++),r=u<f?e.charCodeAt(u++):0,u<f?e.charCodeAt(u++):0),a=t>>2,l=(3&t)<<4|r>>4,s=1<b?(15&r)<<2|i>>6:64,c=2<b?63&i:64,d.push(n.charAt(a)+n.charAt(l)+n.charAt(s)+n.charAt(c));return d.join("")},r.decode=function(e){var t,r,o,a,l,s,c,d,u=0,f=0,b="data:";if(e.substr(0,b.length)===b)throw Error("Invalid base64 input, it looks like a data url.");if(d=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4,e.charAt(e.length-1)===n.charAt(64)&&d--,e.charAt(e.length-2)===n.charAt(64)&&d--,d%1!=0)throw Error("Invalid base64 input, bad content length.");for(c=i.uint8array?new Uint8Array(0|d):Array(0|d);u<e.length;)t=n.indexOf(e.charAt(u++))<<2|(a=n.indexOf(e.charAt(u++)))>>4,r=(15&a)<<4|(l=n.indexOf(e.charAt(u++)))>>2,o=(3&l)<<6|(s=n.indexOf(e.charAt(u++))),c[f++]=t,64!==l&&(c[f++]=r),64!==s&&(c[f++]=o);return c}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var o=e("./external"),i=e("./stream/DataWorker"),n=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function l(e,t,r,o,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=o,this.compressedContent=i}l.prototype={getContentWorker:function(){var e=new i(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(e,t,r){return e.pipe(new n).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var o=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var o=e("./utils"),i=function(){var e,t,r,o;for(t=[],r=0;r<256;r++){for(e=r,o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==o.getTypeOf(e)?function(e,t,r,o){var n,a=i,l=o+r;for(e^=-1,n=o;n<l;n++)e=e>>>8^a[255&(e^t[n])];return-1^e}(0|t,e,e.length,0):function(e,t,r,o){var n,a=i,l=o+r;for(e^=-1,n=o;n<l;n++)e=e>>>8^a[255&(e^t.charCodeAt(n))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var o=null;o="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:o}},{lie:37}],7:[function(e,t,r){"use strict";var o="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),n=e("./utils"),a=e("./stream/GenericWorker"),l=o?"uint8array":"array";function s(e,t){a.call(this,"FlateWorker/"+e),this.Lk=null,this.Mk=e,this.Ok=t,this.meta={}}r.magic="\b\0",n.inherits(s,a),s.prototype.processChunk=function(e){this.meta=e.meta,null===this.Lk&&this.Pk(),this.Lk.push(n.transformTo(l,e.data),!1)},s.prototype.flush=function(){a.prototype.flush.call(this),null===this.Lk&&this.Pk(),this.Lk.push([],!0)},s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.Lk=null},s.prototype.Pk=function(){this.Lk=new i[this.Mk]({raw:!0,level:this.Ok.level||-1});var e=this;this.Lk.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new s("Deflate",e)},r.uncompressWorker=function(){return new s("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function o(e,t){var r,o="";for(r=0;r<t;r++)o+=String.fromCharCode(255&e),e>>>=8;return o}function i(e,t,r,i,a,d){var u,f,b,h,p,m,g=e.file,y=e.compression,S=d!==l.utf8encode,C=n.transformTo("string",d(g.name)),w=n.transformTo("string",l.utf8encode(g.name)),x=g.comment,A=n.transformTo("string",d(x)),T=n.transformTo("string",l.utf8encode(x)),v=w.length!==g.name.length,k=T.length!==x.length,F="",R="",E="",I=g.dir,L=g.date,D={crc32:0,compressedSize:0,uncompressedSize:0};return t&&!r||(D.crc32=e.crc32,D.compressedSize=e.compressedSize,D.uncompressedSize=e.uncompressedSize),b=0,t&&(b|=8),S||!v&&!k||(b|=2048),h=0,p=0,I&&(h|=16),"UNIX"===a?(p=798,h|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(g.unixPermissions,I)):(p=20,h|=function(e){return 63&(e||0)}(g.dosPermissions)),u=L.getUTCHours(),u<<=6,u|=L.getUTCMinutes(),u<<=5,u|=L.getUTCSeconds()/2,f=L.getUTCFullYear()-1980,f<<=4,f|=L.getUTCMonth()+1,f<<=5,f|=L.getUTCDate(),v&&(R=o(1,1)+o(s(C),4)+w,F+="up"+o(R.length,2)+R),k&&(E=o(1,1)+o(s(A),4)+T,F+="uc"+o(E.length,2)+E),m="",m+="\n\0",m+=o(b,2),m+=y.magic,m+=o(u,2),m+=o(f,2),m+=o(D.crc32,4),m+=o(D.compressedSize,4),m+=o(D.uncompressedSize,4),m+=o(C.length,2),m+=o(F.length,2),{fileRecord:c.LOCAL_FILE_HEADER+m+C+F,dirRecord:c.CENTRAL_FILE_HEADER+o(p,2)+m+o(A.length,2)+"\0\0\0\0"+o(h,4)+o(i,4)+C+F+A}}var n=e("../utils"),a=e("../stream/GenericWorker"),l=e("../utf8"),s=e("../crc32"),c=e("../signature");function d(e,t,r,o){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=o,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this.Qk=[]}n.inherits(d,a),d.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,o=this.Qk.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-o-1))/r:100}}))},d.prototype.openedSource=function(e){var t,r;this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name,t=this.streamFiles&&!e.file.dir,t?(r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:r.fileRecord,meta:{percent:0}})):this.accumulate=!0},d.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+o(e.crc32,4)+o(e.compressedSize,4)+o(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){var e,t,r,i;for(e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});r=this.bytesWritten-e,i=function(e,t,r,i,a){var l=n.transformTo("string",a(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(r,4)+o(l.length,2)+l}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName),this.push({data:i,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this.Qk.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(e){this.Qk.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t.Qk.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},d.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this.Qk.length?(this.prepareNextSource(),!0):this.previous||this.Qk.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(e){var t,r=this.Qk;if(!a.prototype.error.call(this,e))return!1;for(t=0;t<r.length;t++)try{r[t].error(e)}catch(e){}return!0},d.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this.Qk,t=0;t<e.length;t++)e[t].lock()},t.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var o=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var n=new i(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,r){a++;var i=function(e,t){var r=e||t,i=o[r];if(!i)throw Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),l=r.options.compressionOptions||t.compressionOptions||{},s=r.dir,c=r.date;r.Rk(i,l).withStreamInfo("file",{name:e,dir:s,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)}),n.entriesCount=a}catch(e){n.error(e)}return n}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function o(){if(!(this instanceof o))return new o;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e,t=new o;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(o.prototype=e("./object")).loadAsync=e("./load"),o.support=e("./support"),o.defaults=e("./defaults"),o.version="3.10.1",o.loadAsync=function(e,t){return(new o).loadAsync(e,t)},o.external=e("./external"),t.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){"use strict";var o=e("./utils"),i=e("./external"),n=e("./utf8"),a=e("./zipEntries"),l=e("./stream/Crc32Probe"),s=e("./nodejsUtils");function c(e){return new i.Promise(function(t,r){var o=e.decompressed.getContentWorker().pipe(new l);o.on("error",function(e){r(e)}).on("end",function(){o.streamInfo.crc32!==e.decompressed.crc32?r(Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=o.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),s.isNode&&s.isStream(e)?i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new a(t);return r.load(e),r}).then(function(e){var r,o=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(r=0;r<n.length;r++)o.push(c(n[r]));return i.Promise.all(o)}).then(function(e){var i,n,a,l,s,c;for(i=e.shift(),n=i.files,a=0;a<n.length;a++)l=n[a],s=l.fileNameStr,c=o.resolve(l.fileNameStr),r.file(c,l.decompressed,{binary:!0,optimizedBinaryString:!0,date:l.date,dir:l.dir,comment:l.fileCommentStr.length?l.fileCommentStr:null,unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions,createFolders:t.createFolders}),l.dir||(r.file(c).unsafeOriginalName=s);return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){"use strict";var o=e("../utils"),i=e("../stream/GenericWorker");function n(e,t){i.call(this,"Nodejs stream input adapter for "+e),this.Sk=!1,this.Tk(t)}o.inherits(n,i),n.prototype.Tk=function(e){var t=this;(this.Uk=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t.Sk=!0:t.end()})},n.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this.Uk.pause(),!0)},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this.Sk?this.end():this.Uk.resume(),!0)},t.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var o=e("readable-stream").Readable;function i(e,t,r){o.call(this,t),this.Vk=e;var i=this;e.on("data",function(e,t){i.push(e)||i.Vk.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,o),i.prototype.Wk=function(){this.Vk.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m;function g(e,t,r){var o,a,d,m,g=i.getTypeOf(t),y=i.extend(r||{},l);y.date=y.date||new Date,null!==y.compression&&(y.compression=y.compression.toUpperCase()),"string"==typeof y.unixPermissions&&(y.unixPermissions=parseInt(y.unixPermissions,8)),y.unixPermissions&&16384&y.unixPermissions&&(y.dir=!0),y.dosPermissions&&16&y.dosPermissions&&(y.dir=!0),y.dir&&(e=h(e)),y.createFolders&&(o=b(e))&&p.call(this,o,!0),a="string"===g&&!1===y.binary&&!1===y.base64,r&&void 0!==r.binary||(y.binary=!a),(t instanceof s&&0===t.uncompressedSize||y.dir||!t||0===t.length)&&(y.base64=!1,y.binary=!0,t="",y.compression="STORE",g="string"),d=null,d=t instanceof s||t instanceof n?t:u.isNode&&u.isStream(t)?new f(e,t):i.prepareContent(e,t,y.binary,y.optimizedBinaryString,y.base64),m=new c(e,d,y),this.files[e]=m}o=e("./utf8"),i=e("./utils"),n=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),l=e("./defaults"),s=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),u=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),b=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},h=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},p=function(e,t){return t=void 0!==t?t:l.createFolders,e=h(e),this.files[e]||g.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function y(e){return"[object RegExp]"===Object.prototype.toString.call(e)}m={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,o;for(t in this.files)o=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,o)},filter:function(e){var t=[];return this.forEach(function(r,o){e(r,o)&&t.push(o)}),t},file:function(e,t,r){var o,i;return 1!==arguments.length?(e=this.root+e,g.call(this,e,t,r),this):y(e)?(o=e,this.filter(function(e,t){return!t.dir&&o.test(e)})):(i=this.files[this.root+e],i&&!i.dir?i:null)},folder:function(e){if(!e)return this;if(y(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=p.call(this,t),o=this.clone();return o.root=r.name,o},remove:function(e){var t,r,o;if(e=this.root+e,t=this.files[e],t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),o=0;o<r.length;o++)delete this.files[r[o].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r,l={};try{if((l=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=l.type.toLowerCase(),l.compression=l.compression.toUpperCase(),"binarystring"===l.type&&(l.type="string"),!l.type)throw Error("No output type specified.");i.checkSupport(l.type),"darwin"!==l.platform&&"freebsd"!==l.platform&&"linux"!==l.platform&&"sunos"!==l.platform||(l.platform="UNIX"),"win32"===l.platform&&(l.platform="DOS"),r=l.comment||this.comment||"",t=d.generateWorker(this,l,r)}catch(e){(t=new n("error")).error(e)}return new a(t,l.type||"string",l.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}},t.exports=m},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){"use strict";var o=e("./DataReader");function i(e){o.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,o),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2),i=e.charCodeAt(3),n=this.length-4;0<=n;--n)if(this.data[n]===t&&this.data[n+1]===r&&this.data[n+2]===o&&this.data[n+3]===i)return n-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2),i=e.charCodeAt(3),n=this.readData(4);return t===n[0]&&r===n[1]&&o===n[2]&&i===n[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){"use strict";var o=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return o.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var o=e("./Uint8ArrayReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var o=e("./DataReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var o=e("./ArrayReader");function i(e){o.call(this,e)}e("../utils").inherits(i,o),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var o=e("../utils"),i=e("../support"),n=e("./ArrayReader"),a=e("./StringReader"),l=e("./NodeBufferReader"),s=e("./Uint8ArrayReader");t.exports=function(e){var t=o.getTypeOf(e);return o.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new l(e):i.uint8array?new s(o.transformTo("uint8array",e)):new n(o.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var o=e("./GenericWorker"),i=e("../utils");function n(e){o.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(n,o),n.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var o=e("./GenericWorker"),i=e("../crc32");function n(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(n,o),n.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./GenericWorker");function n(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}o.inherits(n,i),n.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./GenericWorker");function n(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this.Xk=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=o.getTypeOf(e),t.isPaused||t.Yk()},function(e){t.error(e)})}o.inherits(n,i),n.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.Xk&&this.dataIsReady&&(this.Xk=!0,o.delay(this.Yk,[],this)),!0)},n.prototype.Yk=function(){this.Xk=!1,this.isPaused||this.isFinished||(this.Zk(),this.isFinished||(o.delay(this.Yk,[],this),this.Xk=!0))},n.prototype.Zk=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":
32
32
  e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function o(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this.$k={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this.$k[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this.$k=[]},emit:function(e,t){if(this.$k[e])for(var r=0;r<this.$k[e].length;r++)this.$k[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=o},{}],29:[function(e,t,r){"use strict";var o=e("../utils"),i=e("./ConvertWorker"),n=e("./GenericWorker"),a=e("../base64"),l=e("../support"),s=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t){return new s.Promise(function(r,i){var n=[],l=e._k,s=e.al,c=e.cl;e.on("data",function(e,r){n.push(e),t&&t(r)}).on("error",function(e){n=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return o.newBlob(o.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return o.transformTo(e,t)}}(s,function(e,t){var r,o=0,i=null,n=0;for(r=0;r<t.length;r++)n+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(n),r=0;r<t.length;r++)i.set(t[r],o),o+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw Error("concat : unsupported type '"+e+"'")}}(l,n),c);r(e)}catch(e){i(e)}n=[]}).resume()})}function u(e,t,r){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._k=a,this.al=t,this.cl=r,o.checkSupport(a),this.dl=e.pipe(new i(a)),e.lock()}catch(e){this.dl=new n("error"),this.dl.error(e)}}u.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var r=this;return"data"===e?this.dl.on(e,function(e){t.call(r,e.data,e.meta)}):this.dl.on(e,function(){o.delay(t,arguments,r)}),this},resume:function(){return o.delay(this.dl.resume,[],this.dl),this},pause:function(){return this.dl.pause(),this},toNodejsStream:function(e){if(o.checkSupport("nodestream"),"nodebuffer"!==this.al)throw Error(this.al+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this.al},e)}},t.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";var o,i;if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{o=new ArrayBuffer(0);try{r.blob=0===new Blob([o],{type:"application/zip"}).size}catch(e){try{i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder),i.append(o),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var o=e("./utils"),i=e("./support"),n=e("./nodejsUtils"),a=e("./stream/GenericWorker"),l=Array(256),s=0;s<256;s++)l[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;l[254]=l[254]=1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function d(){a.call(this,"utf-8 encode")}r.utf8encode=function(e){return i.nodebuffer?n.newBufferFrom(e,"utf-8"):function(e){var t,r,o,n,a,l=e.length,s=0;for(n=0;n<l;n++)55296==(64512&(r=e.charCodeAt(n)))&&n+1<l&&56320==(64512&(o=e.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(o-56320),n++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(s):Array(s),n=a=0;a<s;n++)55296==(64512&(r=e.charCodeAt(n)))&&n+1<l&&56320==(64512&(o=e.charCodeAt(n+1)))&&(r=65536+(r-55296<<10)+(o-56320),n++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?o.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,n,a=e.length,s=Array(2*a);for(t=r=0;t<a;)if((i=e[t++])<128)s[r++]=i;else if(4<(n=l[i]))s[r++]=65533,t+=n-1;else{for(i&=2===n?31:3===n?15:7;1<n&&t<a;)i=i<<6|63&e[t++],n--;1<n?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),o.applyFromCharCode(s)}(e=o.transformTo(i.uint8array?"uint8array":"array",e))},o.inherits(c,a),c.prototype.processChunk=function(e){var t,n,a,s=o.transformTo(i.uint8array?"uint8array":"array",e.data);this.leftOver&&this.leftOver.length&&(i.uint8array?(t=s,(s=new Uint8Array(t.length+this.leftOver.length)).set(this.leftOver,0),s.set(t,this.leftOver.length)):s=this.leftOver.concat(s),this.leftOver=null),n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+l[e[r]]>t?r:t}(s),a=s,n!==s.length&&(i.uint8array?(a=s.subarray(0,n),this.leftOver=s.subarray(n,s.length)):(a=s.slice(0,n),this.leftOver=s.slice(n,s.length))),this.push({data:r.utf8decode(a),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,o.inherits(d,a),d.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,o){"use strict";var i,n,a=e("./support"),l=e("./base64"),s=e("./nodejsUtils"),c=e("./external");function d(e){return e}function u(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),o.newBlob=function(e,t){o.checkSupport("blob");try{return new Blob([e],{type:t})}catch(o){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw Error("Bug : can't construct the Blob.")}}},i={stringifyByChunk:function(e,t,r){var o=[],i=0,n=e.length;if(n<=r)return String.fromCharCode.apply(null,e);for(;i<n;)"array"===t||"nodebuffer"===t?o.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,n)))):o.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,n)))),i+=r;return o.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(e){return!1}}()}};function f(e){var t=65536,r=o.getTypeOf(e),n=!0;if("uint8array"===r?n=i.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=i.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return i.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return i.stringifyByChar(e)}function b(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}o.applyFromCharCode=f,n={},n.string={string:d,array:function(e){return u(e,Array(e.length))},arraybuffer:function(e){return n.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,s.allocBuffer(e.length))}},n.array={string:f,array:d,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(e)}},n.arraybuffer={string:function(e){return f(new Uint8Array(e))},array:function(e){return b(new Uint8Array(e),Array(e.byteLength))},arraybuffer:d,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(new Uint8Array(e))}},n.uint8array={string:f,array:function(e){return b(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:d,nodebuffer:function(e){return s.newBufferFrom(e)}},n.nodebuffer={string:f,array:function(e){return b(e,Array(e.length))},arraybuffer:function(e){return n.nodebuffer.uint8array(e).buffer},uint8array:function(e){return b(e,new Uint8Array(e.length))},nodebuffer:d},o.transformTo=function(e,t){if(t=t||"",!e)return t;o.checkSupport(e);var r=o.getTypeOf(t);return n[r][e](t)},o.resolve=function(e){var t,r,o,i;for(t=e.split("/"),r=[],o=0;o<t.length;o++)i=t[o],"."===i||""===i&&0!==o&&o!==t.length-1||(".."===i?r.pop():r.push(i));return r.join("/")},o.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":a.nodebuffer&&s.isBuffer(e)?"nodebuffer":a.uint8array&&e instanceof Uint8Array?"uint8array":a.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(e){if(!a[e.toLowerCase()])throw Error(e+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(e){var t,r,o="";for(r=0;r<(e||"").length;r++)o+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return o},o.delay=function(e,r,o){t(function(){e.apply(o||null,r||[])})},o.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},o.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},o.prepareContent=function(e,t,r,i,n){return c.Promise.resolve(t).then(function(e){return a.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new c.Promise(function(t,r){var o=new FileReader;o.onload=function(e){t(e.target.result)},o.onerror=function(e){r(e.target.error)},o.readAsArrayBuffer(e)}):e}).then(function(t){var s=o.getTypeOf(t);return s?("arraybuffer"===s?t=o.transformTo("uint8array",t):"string"===s&&(n?t=l.decode(t):r&&!0!==i&&(t=function(e){return u(e,a.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):c.Promise.reject(Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){"use strict";var o=e("./reader/readerFor"),i=e("./utils"),n=e("./signature"),a=e("./zipEntry"),l=e("./support");function s(e){this.files=[],this.loadOptions=e}s.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r,o=this.reader.index;return this.reader.setIndex(e),r=this.reader.readString(4)===t,this.reader.setIndex(o),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=l.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,o=this.zip64EndOfCentralSize-44;0<o;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e,t,r,o=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(o<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?Error("Corrupted zip: can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");if(this.reader.setIndex(o),e=o,this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(o=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(o),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}if(t=this.centralDirOffset+this.centralDirSize,this.zip64&&(t+=20,t+=12+this.zip64EndOfCentralSize),r=e-t,0<r)this.isSignature(e,n.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=o(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=s},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){"use strict";var o=e("./reader/readerFor"),i=e("./utils"),n=e("./compressedObject"),a=e("./crc32"),l=e("./utf8"),s=e("./compressions"),c=e("./support");function d(e,t){this.options=e,this.loadOptions=t}d.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&s[t].magic===e)return s[t];return null}(this.compressionMethod)))throw Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=o(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,o,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),o=e.readData(r),this.extraFields[t]={id:t,length:r,value:o};e.setIndex(i)},handleUTF8:function(){var e,t,r,o,n=c.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment)):(e=this.findExtraFieldUnicodePath(),null!==e?this.fileNameStr=e:(t=i.transformTo(n,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(t)),r=this.findExtraFieldUnicodeComment(),null!==r?this.fileCommentStr=r:(o=i.transformTo(n,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(o)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return t?(e=o(t.value),1!==e.readInt(1)?null:a(this.fileName)!==e.readInt(4)?null:l.utf8decode(e.readData(t.length-5))):null},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return t?(e=o(t.value),1!==e.readInt(1)?null:a(this.fileComment)!==e.readInt(4)?null:l.utf8decode(e.readData(t.length-5))):null}},t.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){"use strict";var o,i,n,a,l,s,c,d;function u(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this.el=t,this.fl=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}for(o=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),n=e("./utf8"),a=e("./compressedObject"),l=e("./stream/GenericWorker"),u.prototype={internalStream:function(e){var t,r,i=null,a="string";try{if(!e)throw Error("No output type specified.");t="string"===(a=e.toLowerCase())||"text"===a,"binarystring"!==a&&"text"!==a||(a="string"),i=this.gl(),r=!this.fl,r&&!t&&(i=i.pipe(new n.Utf8EncodeWorker)),!r&&t&&(i=i.pipe(new n.Utf8DecodeWorker))}catch(e){(i=new l("error")).error(e)}return new o(i,a,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},Rk:function(e,t){if(this.el instanceof a&&this.el.compression.magic===e.magic)return this.el.getCompressedWorker();var r=this.gl();return this.fl||(r=r.pipe(new n.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},gl:function(){return this.el instanceof a?this.el.getContentWorker():this.el instanceof l?this.el:new i(this.el)}},s=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<s.length;d++)u.prototype[s[d]]=c;t.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var r,o,i,n,a,l,s,c=e.MutationObserver||e.WebKitMutationObserver;c?(i=0,n=new c(d),a=e.document.createTextNode(""),n.observe(a,{characterData:!0}),r=function(){a.data=i=++i%2}):e.setImmediate||void 0===e.MessageChannel?r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){d(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(d,0)}:(l=new e.MessageChannel,l.port1.onmessage=d,r=function(){l.port2.postMessage(0)}),s=[];function d(){var e,t,r;for(o=!0,r=s.length;r;){for(t=s,s=[],e=-1;++e<r;)t[e]();r=s.length}o=!1}t.exports=function(e){1!==s.push(e)||o||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){"use strict";var o,i,n,a,l=e("immediate");function s(){}o={},i=["REJECTED"],n=["FULFILLED"],a=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,e!==s&&b(this,e)}function d(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function u(e,t,r){l(function(){var i;try{i=t(r)}catch(t){return o.reject(e,t)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)})}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function b(e,t){var r,i=!1;function n(t){i||(i=!0,o.reject(e,t))}function a(t){i||(i=!0,o.resolve(e,t))}r=h(function(){t(a,n)}),"error"===r.status&&n(r.value)}function h(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===n||"function"!=typeof t&&this.state===i)return this;var r=new this.constructor(s);return this.state!==a?u(r,this.state===n?e:t,this.outcome):this.queue.push(new d(r,e,t)),r},d.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},d.prototype.otherCallFulfilled=function(e){u(this.promise,this.onFulfilled,e)},d.prototype.callRejected=function(e){o.reject(this.promise,e)},d.prototype.otherCallRejected=function(e){u(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r,i,a,l=h(f,t);if("error"===l.status)return o.reject(e,l.value);if(r=l.value)b(e,r);else for(e.state=n,e.outcome=t,i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t);return e},o.reject=function(e,t){e.state=i,e.outcome=t;for(var r=-1,o=e.queue.length;++r<o;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(s),e)},c.reject=function(e){var t=new this(s);return o.reject(t,e)},c.all=function(e){var t,r,i,n,a,l,c=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));if(t=e.length,r=!1,!t)return this.resolve([]);for(i=Array(t),n=0,a=-1,l=new this(s);++a<t;)d(e[a],a);return l;function d(e,a){c.resolve(e).then(function(e){i[a]=e,++n!==t||r||(r=!0,o.resolve(l,i))},function(e){r||(r=!0,o.reject(l,e))})}},c.race=function(e){var t,r,i,n,a,l=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));if(t=e.length,r=!1,!t)return this.resolve([]);for(i=-1,n=new this(s);++i<t;)a=e[i],l.resolve(a).then(function(e){r||(r=!0,o.resolve(n,e))},function(e){r||(r=!0,o.reject(n,e))});return n}},{immediate:36}],38:[function(e,t,r){"use strict";var o={};(0,e("./lib/utils/common").assign)(o,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";var o=e("./zlib/deflate"),i=e("./utils/common"),n=e("./utils/strings"),a=e("./zlib/messages"),l=e("./zlib/zstream"),s=Object.prototype.toString,c=0,d=-1,u=0,f=8;function b(e){var t,r,h;if(!(this instanceof b))return new b(e);if(this.options=i.assign({level:d,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:u,to:""},e||{}),t=this.options,t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0,r=o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy),r!==c)throw Error(a[r]);if(t.header&&o.deflateSetHeader(this.strm,t.header),t.dictionary){if(h="string"==typeof t.dictionary?n.string2buf(t.dictionary):"[object ArrayBuffer]"===s.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=o.deflateSetDictionary(this.strm,h))!==c)throw Error(a[r]);this.il=!0}}function h(e,t){var r=new b(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}b.prototype.push=function(e,t){var r,a,l=this.strm,d=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?l.input=n.string2buf(e):"[object ArrayBuffer]"===s.call(e)?l.input=new Uint8Array(e):l.input=e,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new i.Buf8(d),l.next_out=0,l.avail_out=d),1!==(r=o.deflate(l,a))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==l.avail_out&&(0!==l.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(n.buf2binstring(i.shrinkBuf(l.output,l.next_out))):this.onData(i.shrinkBuf(l.output,l.next_out)))}while((0<l.avail_in||0===l.avail_out)&&1!==r);return 4===a?(r=o.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),!(l.avail_out=0))},b.prototype.onData=function(e){this.chunks.push(e)},b.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=b,r.deflate=h,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";var o=e("./zlib/inflate"),i=e("./utils/common"),n=e("./utils/strings"),a=e("./zlib/constants"),l=e("./zlib/messages"),s=e("./zlib/zstream"),c=e("./zlib/gzheader"),d=Object.prototype.toString;function u(e){var t,r;if(!(this instanceof u))return new u(e);if(this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{}),t=this.options,t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0,r=o.inflateInit2(this.strm,t.windowBits),r!==a.Z_OK)throw Error(l[r]);this.header=new c,o.inflateGetHeader(this.strm,this.header)}function f(e,t){var r=new u(t);if(r.push(e,!0),r.err)throw r.msg||l[r.err];return r.result}u.prototype.push=function(e,t){var r,l,s,c,u,f,b=this.strm,h=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;l=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?b.input=n.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?b.input=new Uint8Array(e):b.input=e,b.next_in=0,b.avail_in=b.input.length;do{if(0===b.avail_out&&(b.output=new i.Buf8(h),b.next_out=0,b.avail_out=h),(r=o.inflate(b,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(f="string"==typeof p?n.string2buf(p):"[object ArrayBuffer]"===d.call(p)?new Uint8Array(p):p,r=o.inflateSetDictionary(this.strm,f)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);b.next_out&&(0!==b.avail_out&&r!==a.Z_STREAM_END&&(0!==b.avail_in||l!==a.Z_FINISH&&l!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(s=n.utf8border(b.output,b.next_out),c=b.next_out-s,u=n.buf2string(b.output,s),b.next_out=c,b.avail_out=h-c,c&&i.arraySet(b.output,b.output,s,c,0),this.onData(u)):this.onData(i.shrinkBuf(b.output,b.next_out)))),0===b.avail_in&&0===b.avail_out&&(m=!0)}while((0<b.avail_in||0===b.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(l=a.Z_FINISH),l===a.Z_FINISH?(r=o.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):l!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(b.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=u,r.inflate=f,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},r.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var o,i,n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){var t,r,o;for(t=Array.prototype.slice.call(arguments,1);t.length;)if(r=t.shift()){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)},o={arraySet:function(e,t,r,o,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+o),i);else for(var n=0;n<o;n++)e[i+n]=t[r+n]},flattenChunks:function(e){
33
33
  var t,r,o,i,n,a;for(t=o=0,r=e.length;t<r;t++)o+=e[t].length;for(a=new Uint8Array(o),t=i=0,r=e.length;t<r;t++)n=e[t],a.set(n,i),i+=n.length;return a}},i={arraySet:function(e,t,r,o,i){for(var n=0;n<o;n++)e[i+n]=t[r+n]},flattenChunks:function(e){return[].concat.apply([],e)}},r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,o)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},{}],42:[function(e,t,r){"use strict";var o,i,n=e("./common"),a=!0,l=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){l=!1}for(o=new n.Buf8(256),i=0;i<256;i++)o[i]=252<=i?6:248<=i?5:240<=i?4:224<=i?3:192<=i?2:1;function s(e,t){if(t<65537&&(e.subarray&&l||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r}o[254]=o[254]=1,r.string2buf=function(e){var t,r,o,i,a,l=e.length,s=0;for(i=0;i<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<l&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(s),i=a=0;a<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<l&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return s(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r<o;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,i,n,a,l=t||e.length,c=Array(2*l);for(r=i=0;r<l;)if((n=e[r++])<128)c[i++]=n;else if(4<(a=o[n]))c[i++]=65533,r+=a-1;else{for(n&=2===a?31:3===a?15:7;1<a&&r<l;)n=n<<6|63&e[r++],a--;1<a?c[i++]=65533:n<65536?c[i++]=n:(n-=65536,c[i++]=55296|n>>10&1023,c[i++]=56320|1023&n)}return s(c,i)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,o){for(var i=65535&e|0,n=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;n=n+(i=i+t[o++]|0)|0,--a;);i%=65521,n%=65521}return i|n<<16|0}},{}],44:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){"use strict";var o=function(){var e,t,r,o;for(t=[],r=0;r<256;r++){for(e=r,o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var n,a=o,l=i+r;for(e^=-1,n=i;n<l;n++)e=e>>>8^a[255&(e^t[n])];return-1^e}},{}],46:[function(e,t,r){"use strict";var o,i=e("../utils/common"),n=e("./trees"),a=e("./adler32"),l=e("./crc32"),s=e("./messages"),c=0,d=4,u=0,f=-2,b=-1,h=4,p=2,m=8,g=9,y=286,S=30,C=19,w=2*y+1,x=15,A=3,T=258,v=T+A+1,k=42,F=113,R=1,E=2,I=3,L=4;function D(e,t){return e.msg=s[t],t}function B(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function W(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function _(e,t){n.jl(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,W(e.strm)}function N(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function O(e,t){var r,o,i=e.max_chain_length,n=e.strstart,a=e.prev_length,l=e.nice_match,s=e.strstart>e.w_size-v?e.strstart-(e.w_size-v):0,c=e.window,d=e.w_mask,u=e.prev,f=e.strstart+T,b=c[n+a-1],h=c[n+a];e.prev_length>=e.good_match&&(i>>=2),l>e.lookahead&&(l=e.lookahead);do if(c[(r=t)+a]===h&&c[r+a-1]===b&&c[r]===c[n]&&c[++r]===c[n+1]){n+=2,r++;do;while(c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&c[++n]===c[++r]&&n<f);if(o=T-(f-n),n=f-T,a<o){if(e.match_start=t,l<=(a=o))break;b=c[n+a-1],h=c[n+a]}}while((t=u[t&d])>s&&0!=--i);return a<=e.lookahead?a:e.lookahead}function H(e){var t,r,o,n,s,c,d,u,f,b,h=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-v)){for(i.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=r=e.hash_size;o=e.head[--t],e.head[t]=h<=o?o-h:0,--r;);for(t=r=h;o=e.prev[--t],e.prev[t]=h<=o?o-h:0,--r;);n+=h}if(0===e.strm.avail_in)break;if(c=e.strm,d=e.window,u=e.strstart+e.lookahead,f=n,b=void 0,b=c.avail_in,f<b&&(b=f),r=0===b?0:(c.avail_in-=b,i.arraySet(d,c.input,c.next_in,b,u),1===c.state.wrap?c.adler=a(c.adler,d,b,u):2===c.state.wrap&&(c.adler=l(c.adler,d,b,u)),c.next_in+=b,c.total_in+=b,b),e.lookahead+=r,e.lookahead+e.insert>=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+A-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<A)););}while(e.lookahead<v&&0!==e.strm.avail_in)}function G(e,t){for(var r,o;;){if(e.lookahead<v){if(H(e),e.lookahead<v&&t===c)return R;if(0===e.lookahead)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-v&&(e.match_length=O(e,r)),e.match_length>=A)if(o=n.kl(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else o=n.kl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=e.strstart<A-1?e.strstart:A-1,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}function U(e,t){for(var r,o,i;;){if(e.lookahead<v){if(H(e),e.lookahead<v&&t===c)return R;if(0===e.lookahead)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=A-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-v&&(e.match_length=O(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===A&&4096<e.strstart-e.match_start)&&(e.match_length=A-1)),e.prev_length>=A&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-A,o=n.kl(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=A-1,e.strstart++,o&&(_(e,!1),0===e.strm.avail_out))return R}else if(e.match_available){if((o=n.kl(e,0,e.window[e.strstart-1]))&&_(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return R}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=n.kl(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<A-1?e.strstart:A-1,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}function J(e,t,r,o,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=o,this.func=i}function z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*S+1)),this.bl_tree=new i.Buf16(2*(2*C+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*y+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=p,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?k:F,e.adler=2===t.wrap?0:1,t.last_flush=c,n.ll(t),u):D(e,f)}function j(e){var t=V(e);return t===u&&function(e){e.window_size=2*e.w_size,P(e.head),e.max_lazy_match=o[e.level].max_lazy,e.good_match=o[e.level].good_length,e.nice_match=o[e.level].nice_length,e.max_chain_length=o[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=A-1,e.match_available=0,e.ins_h=0}(e.state),t}function X(e,t,r,o,n,a){var l,s;return e?(l=1,t===b&&(t=6),o<0?(l=0,o=-o):15<o&&(l=2,o-=16),n<1||g<n||r!==m||o<8||15<o||t<0||9<t||a<0||h<a?D(e,f):(8===o&&(o=9),s=new z,(e.state=s).strm=e,s.wrap=l,s.gzhead=null,s.w_bits=o,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+A-1)/A),s.window=new i.Buf8(2*s.w_size),s.head=new i.Buf16(s.hash_size),s.prev=new i.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new i.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,j(e))):f}o=[new J(0,0,0,0,function(e,t){var r,o=65535;for(o>e.pending_buf_size-5&&(o=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===c)return R;if(0===e.lookahead)break}if(e.strstart+=e.lookahead,e.lookahead=0,r=e.block_start+o,(0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,_(e,!1),0===e.strm.avail_out))return R;if(e.strstart-e.block_start>=e.w_size-v&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):(e.strstart>e.block_start&&(_(e,!1),e.strm.avail_out),R)}),new J(4,4,8,4,G),new J(4,5,16,8,G),new J(4,6,32,32,G),new J(4,4,16,16,U),new J(8,16,32,32,U),new J(8,16,128,128,U),new J(8,32,128,256,U),new J(32,128,258,1024,U),new J(32,258,258,4096,U)],r.deflateInit=function(e,t){return X(e,t,m,15,8,0)},r.deflateInit2=X,r.deflateReset=j,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,u):f},r.deflate=function(e,t){var r,i,a,s,b,h;if(!e||!e.state||5<t||t<0)return e?D(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==d)return D(e,0===e.avail_out?-5:f);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===k&&(2===i.wrap?(e.adler=0,N(i,31),N(i,139),N(i,8),i.gzhead?(N(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),N(i,255&i.gzhead.time),N(i,i.gzhead.time>>8&255),N(i,i.gzhead.time>>16&255),N(i,i.gzhead.time>>24&255),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(N(i,255&i.gzhead.extra.length),N(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=l(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(N(i,0),N(i,0),N(i,0),N(i,0),N(i,0),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,3),i.status=F)):(b=m+(i.w_bits-8<<4)<<8,b|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=32),b+=31-b%31,i.status=F,M(i,b),0!==i.strstart&&(M(i,e.adler>>>16),M(i,65535&e.adler)),e.adler=1)),69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending!==i.pending_buf_size));)N(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,N(i,s)}while(0!==s);i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),0===s&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),W(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,N(i,s)}while(0!==s);i.gzhead.hcrc&&i.pending>a&&(e.adler=l(e.adler,i.pending_buf,i.pending-a,a)),0===s&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&W(e),i.pending+2<=i.pending_buf_size&&(N(i,255&e.adler),N(i,e.adler>>8&255),e.adler=0,i.status=F)):i.status=F),0!==i.pending){if(W(e),0===e.avail_out)return i.last_flush=-1,u}else if(0===e.avail_in&&B(t)<=B(r)&&t!==d)return D(e,-5);if(666===i.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){if(h=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===c)return R;break}if(e.match_length=0,r=n.kl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}(i,t):3===i.strategy?function(e,t){for(var r,o,i,a,l=e.window;;){if(e.lookahead<=T){if(H(e),e.lookahead<=T&&t===c)return R;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=A&&0<e.strstart&&(o=l[i=e.strstart-1])===l[++i]&&o===l[++i]&&o===l[++i]){a=e.strstart+T;do;while(o===l[++i]&&o===l[++i]&&o===l[++i]&&o===l[++i]&&o===l[++i]&&o===l[++i]&&o===l[++i]&&o===l[++i]&&i<a);e.match_length=T-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(r=n.kl(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=n.kl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(_(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===d?(_(e,!0),0===e.strm.avail_out?I:L):e.last_lit&&(_(e,!1),0===e.strm.avail_out)?R:E}(i,t):o[i.level].func(i,t),h!==I&&h!==L||(i.status=666),h===R||h===I)return 0===e.avail_out&&(i.last_flush=-1),u;if(h===E&&(1===t?n.ml(i):5!==t&&(n.nl(i,0,0,!1),3===t&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),W(e),0===e.avail_out))return i.last_flush=-1,u}return t!==d?u:i.wrap<=0?1:(2===i.wrap?(N(i,255&e.adler),N(i,e.adler>>8&255),N(i,e.adler>>16&255),N(i,e.adler>>24&255),N(i,255&e.total_in),N(i,e.total_in>>8&255),N(i,e.total_in>>16&255),N(i,e.total_in>>24&255)):(M(i,e.adler>>>16),M(i,65535&e.adler)),W(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?u:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==k&&69!==t&&73!==t&&91!==t&&103!==t&&t!==F&&666!==t?D(e,f):(e.state=null,t===F?D(e,-3):u):f},r.deflateSetDictionary=function(e,t){var r,o,n,l,s,c,d,b,h=t.length;if(!e||!e.state)return f;if(2===(l=(r=e.state).wrap)||1===l&&r.status!==k||r.lookahead)return f;for(1===l&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===l&&(P(r.head),r.strstart=0,r.block_start=0,r.insert=0),b=new i.Buf8(r.w_size),i.arraySet(b,t,h-r.w_size,r.w_size,0),t=b,h=r.w_size),s=e.avail_in,c=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,H(r);r.lookahead>=A;){for(o=r.strstart,n=r.lookahead-(A-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[o+A-1])&r.hash_mask,r.prev[o&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=o,o++,--n;);r.strstart=o,r.lookahead=A-1,H(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=A-1,r.match_available=0,e.next_in=c,e.input=d,e.avail_in=s,r.wrap=l,u},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){"use strict";t.exports=function(e,t){var r,o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k;r=e.state,o=e.next_in,v=e.input,i=o+(e.avail_in-5),n=e.next_out,k=e.output,a=n-(t-e.avail_out),l=n+(e.avail_out-257),s=r.dmax,c=r.wsize,d=r.whave,u=r.wnext,f=r.window,b=r.hold,h=r.bits,p=r.lencode,m=r.distcode,g=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{h<15&&(b+=v[o++]<<h,h+=8,b+=v[o++]<<h,h+=8),S=p[b&g];t:for(;;){if(b>>>=C=S>>>24,h-=C,0===(C=S>>>16&255))k[n++]=65535&S;else{if(!(16&C)){if(0==(64&C)){S=p[(65535&S)+(b&(1<<C)-1)];continue t}if(32&C){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&S,(C&=15)&&(h<C&&(b+=v[o++]<<h,h+=8),w+=b&(1<<C)-1,b>>>=C,h-=C),h<15&&(b+=v[o++]<<h,h+=8,b+=v[o++]<<h,h+=8),S=m[b&y];r:for(;;){if(b>>>=C=S>>>24,h-=C,!(16&(C=S>>>16&255))){if(0==(64&C)){S=m[(65535&S)+(b&(1<<C)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(x=65535&S,h<(C&=15)&&(b+=v[o++]<<h,(h+=8)<C&&(b+=v[o++]<<h,h+=8)),s<(x+=b&(1<<C)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(b>>>=C,h-=C,(C=n-a)<x){if(d<(C=x-C)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(T=f,(A=0)===u){if(A+=c-C,C<w){for(w-=C;k[n++]=f[A++],--C;);A=n-x,T=k}}else if(u<C){if(A+=c+u-C,(C-=u)<w){for(w-=C;k[n++]=f[A++],--C;);if(A=0,u<w){for(w-=C=u;k[n++]=f[A++],--C;);A=n-x,T=k}}}else if(A+=u-C,C<w){for(w-=C;k[n++]=f[A++],--C;);A=n-x,T=k}for(;2<w;)k[n++]=T[A++],k[n++]=T[A++],k[n++]=T[A++],w-=3;w&&(k[n++]=T[A++],1<w&&(k[n++]=T[A++]))}else{for(A=n-x;k[n++]=k[A++],k[n++]=k[A++],k[n++]=k[A++],2<(w-=3););w&&(k[n++]=k[A++],1<w&&(k[n++]=k[A++]))}break}}break}}while(o<i&&n<l);o-=w=h>>3,b&=(1<<(h-=w<<3))-1,e.next_in=o,e.next_out=n,e.avail_in=o<i?i-o+5:5-(o-i),e.avail_out=n<l?l-n+257:257-(n-l),r.hold=b,r.bits=h}},{}],49:[function(e,t,r){"use strict";var o,i,n,a=e("../utils/common"),l=e("./adler32"),s=e("./crc32"),c=e("./inffast"),d=e("./inftrees"),u=1,f=2,b=0,h=-2,p=1,m=852,g=592;function y(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new a.Buf16(320),this.work=new a.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=p,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new a.Buf32(m),t.distcode=t.distdyn=new a.Buf32(g),t.sane=1,t.back=-1,b):h}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,C(e)):h}function x(e,t){var r,o;return e&&e.state?(o=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==o.window&&o.wbits!==t&&(o.window=null),o.wrap=r,o.wbits=t,w(e))):h}function A(e,t){var r,o;return e?(o=new S,(e.state=o).window=null,(r=x(e,t))!==b&&(e.state=null),r):h}n=!0;function T(e){if(n){var t;for(o=new a.Buf32(512),i=new a.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(d(u,e.lens,0,288,o,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;d(f,e.lens,0,32,i,0,e.work,{bits:5}),n=!1}e.lencode=o,e.lenbits=9,e.distcode=i,e.distbits=5}function v(e,t,r,o){var i,n=e.state;return null===n.window&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new a.Buf8(n.wsize)),o>=n.wsize?(a.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(o<(i=n.wsize-n.wnext)&&(i=o),a.arraySet(n.window,t,r-o,i,n.wnext),(o-=i)?(a.arraySet(n.window,t,r-o,o,0),n.wnext=o,n.whave=n.wsize):(n.wnext+=i,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=i))),0}r.inflateReset=w,r.inflateReset2=x,r.inflateResetKeep=C,r.inflateInit=function(e){return A(e,15)},r.inflateInit2=A,r.inflate=function(e,t){var r,o,i,n,m,g,S,C,w,x,A,k,F,R,E,I,L,D,B,P,W,_,N,M,O=0,H=new a.Buf8(4),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(r=e.state).mode&&(r.mode=13),m=e.next_out,i=e.output,S=e.avail_out,n=e.next_in,o=e.input,g=e.avail_in,C=r.hold,w=r.bits,x=g,A=S,_=b;e:for(;;)switch(r.mode){case p:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(2&r.wrap&&35615===C){H[r.check=0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0),w=C=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&C)<<8)+(C>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&C)){e.msg="unknown compression method",r.mode=30;break}if(w-=4,W=8+(15&(C>>>=4)),0===r.wbits)r.wbits=W;else if(W>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<W,e.adler=r.check=1,r.mode=512&C?10:12,w=C=0;break;case 2:for(;w<16;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(r.flags=C,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=C>>8&1),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0)),w=C=0,r.mode=3;case 3:for(;w<32;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}r.head&&(r.head.time=C),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,H[2]=C>>>16&255,H[3]=C>>>24&255,r.check=s(r.check,H,4,0)),w=C=0,r.mode=4;case 4:for(;w<16;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}r.head&&(r.head.xflags=255&C,r.head.os=C>>8),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0)),w=C=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}r.length=C,r.head&&(r.head.extra_len=C),512&r.flags&&(H[0]=255&C,H[1]=C>>>8&255,r.check=s(r.check,H,2,0)),w=C=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(g<(k=r.length)&&(k=g),k&&(r.head&&(W=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),a.arraySet(r.head.extra,o,n,k,W)),512&r.flags&&(r.check=s(r.check,o,k,n)),g-=k,n+=k,r.length-=k),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;for(k=0;W=o[n+k++],r.head&&W&&r.length<65536&&(r.head.name+=String.fromCharCode(W)),W&&k<g;);if(512&r.flags&&(r.check=s(r.check,o,k,n)),g-=k,n+=k,W)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===g)break e;for(k=0;W=o[n+k++],r.head&&W&&r.length<65536&&(r.head.comment+=String.fromCharCode(W)),W&&k<g;);if(512&r.flags&&(r.check=s(r.check,o,k,n)),g-=k,n+=k,W)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(C!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}w=C=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}e.adler=r.check=y(C),w=C=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=m,e.avail_out=S,e.next_in=n,e.avail_in=g,r.hold=C,r.bits=w,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){C>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}switch(r.last=1&C,w-=1,3&(C>>>=1)){case 0:r.mode=14;break;case 1:if(T(r),r.mode=20,6!==t)break;C>>>=2,w-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}C>>>=2,w-=2;break;case 14:for(C>>>=7&w,w-=7&w;w<32;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if((65535&C)!=(C>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&C,w=C=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(k=r.length){if(g<k&&(k=g),S<k&&(k=S),0===k)break e;a.arraySet(i,o,n,k,m),g-=k,n+=k,S-=k,m+=k,r.length-=k;break}r.mode=12;break;case 17:for(;w<14;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(r.nlen=257+(31&C),C>>>=5,w-=5,r.ndist=1+(31&C),C>>>=5,w-=5,r.ncode=4+(15&C),C>>>=4,w-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}r.lens[G[r.have++]]=7&C,C>>>=3,w-=3}for(;r.have<19;)r.lens[G[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},_=d(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,_){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;I=(O=r.lencode[C&(1<<r.lenbits)-1])>>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(L<16)C>>>=E,w-=E,r.lens[r.have++]=L;else{if(16===L){for(M=E+2;w<M;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(C>>>=E,w-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}W=r.lens[r.have-1],k=3+(3&C),C>>>=2,w-=2}else if(17===L){for(M=E+3;w<M;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}w-=E,W=0,k=3+(7&(C>>>=E)),C>>>=3,w-=3}else{for(M=E+7;w<M;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}w-=E,W=0,k=11+(127&(C>>>=E)),C>>>=7,w-=7}if(r.have+k>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=W}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,N={bits:r.lenbits},_=d(u,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,_){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},_=d(f,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,_){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=g&&258<=S){e.next_out=m,e.avail_out=S,e.next_in=n,e.avail_in=g,r.hold=C,r.bits=w,c(e,A),m=e.next_out,i=e.output,S=e.avail_out,n=e.next_in,o=e.input,g=e.avail_in,C=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(O=r.lencode[C&(1<<r.lenbits)-1])>>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(I&&0==(240&I)){for(D=E,B=I,P=L;I=(O=r.lencode[P+((C&(1<<D+B)-1)>>D)])>>>16&255,L=65535&O,!(D+(E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}C>>>=D,w-=D,r.back+=D}if(C>>>=E,w-=E,r.back+=E,r.length=L,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(M=r.extra;w<M;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}r.length+=C&(1<<r.extra)-1,C>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(O=r.distcode[C&(1<<r.distbits)-1])>>>16&255,L=65535&O,!((E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(0==(240&I)){for(D=E,B=I,P=L;I=(O=r.distcode[P+((C&(1<<D+B)-1)>>D)])>>>16&255,L=65535&O,!(D+(E=O>>>24)<=w);){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}C>>>=D,w-=D,r.back+=D}if(C>>>=E,w-=E,r.back+=E,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=L,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(M=r.extra;w<M;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}r.offset+=C&(1<<r.extra)-1,C>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===S)break e;if(k=A-S,r.offset>k){if((k=r.offset-k)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}F=k>r.wnext?(k-=r.wnext,r.wsize-k):r.wnext-k,k>r.length&&(k=r.length),R=r.window}else R=i,F=m-r.offset,k=r.length;for(S<k&&(k=S),S-=k,r.length-=k;i[m++]=R[F++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===S)break e;i[m++]=r.length,S--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===g)break e;g--,C|=o[n++]<<w,w+=8}if(A-=S,e.total_out+=A,r.total+=A,A&&(e.adler=r.check=r.flags?s(r.check,i,A,m-A):l(r.check,i,A,m-A)),A=S,(r.flags?C:y(C))!==r.check){e.msg="incorrect data check",r.mode=30;break}w=C=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===g)break e;g--,C+=o[n++]<<w,w+=8}if(C!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}w=C=0}r.mode=29;case 29:_=1;break e;case 30:_=-3;break e;case 31:return-4;case 32:default:return h}return e.next_out=m,e.avail_out=S,e.next_in=n,e.avail_in=g,r.hold=C,r.bits=w,(r.wsize||A!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&v(e,e.output,e.next_out,A-e.avail_out)?(r.mode=31,-4):(x-=e.avail_in,A-=e.avail_out,e.total_in+=x,e.total_out+=A,r.total+=A,r.wrap&&A&&(e.adler=r.check=r.flags?s(r.check,i,A,e.next_out-A):l(r.check,i,A,e.next_out-A)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==x&&0===A||4===t)&&_===b&&(_=-5),_)},r.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,b},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?h:((r.head=t).done=!1,b):h},r.inflateSetDictionary=function(e,t){var r,o=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?h:11===r.mode&&l(1,t,o,0)!==r.check?-3:v(e,t,o,o)?(r.mode=31,-4):(r.havedict=1,b):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){"use strict";var o=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,s,c,d,u,f){var b,h,p,m,g,y,S,C,w,x=f.bits,A=0,T=0,v=0,k=0,F=0,R=0,E=0,I=0,L=0,D=0,B=null,P=0,W=new o.Buf16(16),_=new o.Buf16(16),N=null,M=0;for(A=0;A<=15;A++)W[A]=0;for(T=0;T<s;T++)W[t[r+T]]++;for(F=x,k=15;1<=k&&0===W[k];k--);if(k<F&&(F=k),0===k)return c[d++]=20971520,c[d++]=20971520,f.bits=1,0;for(v=1;v<k&&0===W[v];v++);for(F<v&&(F=v),A=I=1;A<=15;A++)if(I<<=1,(I-=W[A])<0)return-1;if(0<I&&(0===e||1!==k))return-1;for(_[1]=0,A=1;A<15;A++)_[A+1]=_[A]+W[A];for(T=0;T<s;T++)0!==t[r+T]&&(u[_[t[r+T]]++]=T);if(y=0===e?(B=N=u,19):1===e?(B=i,P-=257,N=n,M-=257,256):(B=a,N=l,-1),A=v,g=d,E=T=D=0,p=-1,m=(L=1<<(R=F))-1,1===e&&852<L||2===e&&592<L)return 1;for(;;){for(S=A-E,w=u[T]<y?(C=0,u[T]):u[T]>y?(C=N[M+u[T]],B[P+u[T]]):(C=96,0),b=1<<A-E,v=h=1<<R;c[g+(D>>E)+(h-=b)]=S<<24|C<<16|w|0,0!==h;);for(b=1<<A-1;D&b;)b>>=1;if(0!==b?(D&=b-1,D+=b):D=0,T++,0==--W[A]){if(A===k)break;A=t[r+u[T]]}if(F<A&&(D&m)!==p){for(0===E&&(E=F),g+=v,I=1<<(R=A-E);R+E<k&&!((I-=W[R+E])<=0);)R++,I<<=1;if(L+=1<<R,1===e&&852<L||2===e&&592<L)return 1;c[p=D&m]=F<<24|R<<16|g-d|0}}return 0!==D&&(c[g+D]=A-E<<24|64<<16|0),f.bits=F,0}},{"../utils/common":41}],51:[function(e,t,r){
@@ -50,7 +50,7 @@ function Vi(e,r,o,i){e.writeElement(r+":"+o,function(){e.writeAttributeString("x
50
50
  l.J(i.prst)||e.writeAttributeString(p,o.Charts.ST_TextShapeType[i.prst])},function(){At(e,i)})}t.DrawingWriter.WriteCT_PresetTextShape=sl;function cl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.avLst,r=o.gdLst,i=o.ahLst,n=o.cxnLst,a=o.rect;l.J(t)||za(e,ve,"avLst",t),l.J(r)||za(e,ve,"gdLst",r),l.J(i)||Ya(e,ve,"ahLst",i),l.J(n)||Qa(e,ve,"cxnLst",n),l.J(a)||ja(e,ve,"rect",a),al(e,ve,"pathLst",o.pathLst)})}t.DrawingWriter.WriteCT_CustomGeometry2D=cl;function dl(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.type)||e.writeAttributeString(h,o.Charts.ST_LineEndType[i.type]),l.J(i.w)||e.writeAttributeString("w",o.Charts.ST_LineEndWidth[i.w]),l.J(i.len)||e.writeAttributeString("len",o.Charts.ST_LineEndLength[i.len])})}t.DrawingWriter.WriteCT_LineEndProperties=dl;function ul(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_LineJoinBevel=ul;function fl(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_LineJoinRound=fl;function bl(e,t,r,o){Ge(e,t,r,o.lim,"lim")}t.DrawingWriter.WriteCT_LineJoinMiterProperties=bl;function hl(e,t,r,i){Ge(e,t,r,i,f,u,o.Charts.ST_PresetLineDashVal,a.ChartHelper.ToST_PresetLineDashVal)}t.DrawingWriter.WriteCT_PresetLineDashProperties=hl;function pl(e,t,r,o){ze(e,t,r,o,"d","sp")}t.DrawingWriter.WriteCT_DashStop=pl;function ml(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.ds,function(t){pl(e,ve,"ds",t)})})}t.DrawingWriter.WriteCT_DashStopList=ml;function gl(e,r,i,a){a.w<=0&&(a.noFill=!0),e.writeElement(r+":"+i,function(){r===Le&&e.writeAttributeString("xmlns:a14",t.DrawingWriter.a14),!l.J(a.w)&&a.w>=0&&e.writeAttributeString("w",n(a.w)),l.J(a.cap)||e.writeAttributeString("cap",o.Charts.ST_LineCap[a.cap]),l.J(a.cmpd)||e.writeAttributeString("cmpd",o.Charts.ST_CompoundLine[a.cmpd]),l.J(a.algn)||e.writeAttributeString("algn",o.Charts.ST_PenAlignment[a.algn])},function(){var t=a.noFill,r=a.solidFill,o=a.gradFill,i=a.pattFill,n=a.prstDash,s=a.custDash,c=a.round,d=a.bevel,u=a.miter,f=a.headEnd,b=a.tailEnd,h=a.extLst;l.J(t)?l.J(r)?l.J(o)?l.J(i)||Ba(e,ve,W,i):Fa(e,ve,B,o):xr(e,ve,D,r):xa(e,ve,L),l.J(n)?l.J(s)||ml(e,ve,"custDash",s):hl(e,ve,"prstDash",n),l.J(c)||fl(e,ve,"round"),l.J(d)||ul(e,ve,"bevel"),l.J(u)||bl(e,ve,"miter",u),l.J(f)||dl(e,ve,"headEnd",f),l.J(b)||dl(e,ve,"tailEnd",b),l.J(h)||hr(e,ve,m,h)})}t.DrawingWriter.WriteCT_LineProperties=gl;function yl(e,t){e.writeLeafElement("asvg:svgBlip",function(){e.writeAttributeString("xmlns:asvg",s.XFileConstants.Zd);var r=t.embed;l.J(r)||e.writeAttributeString("r:embed",r)})}t.DrawingWriter.WriteCT_SvgBlipProperties=yl;function Sl(e,t,r,o,i){e.writeElement(t+":"+r,function(){Tt(e,o)},function(){var t=o.xfrm,r=o.custGeom,n=o.prstGeom,a=o.noFill,s=o.solidFill,c=o.gradFill,d=o.blipFill,u=o.pattFill,f=o.grpFill,b=o.ln,h=o.effectLst,p=o.effectDag,g=o.scene3d,y=o.sp3d,w=o.extLst;l.J(i)&&(i=!0),mr(e,ve,"xfrm",t,i),l.J(r)?l.J(n)||ll(e,ve,"prstGeom",n):cl(e,ve,"custGeom",r),l.J(a)?l.J(s)?l.J(c)?l.J(d)?l.J(u)?l.J(f)||Pa(e,ve,_):Ba(e,ve,W,u):Da(e,ve,P,d):Fa(e,ve,B,c):xr(e,ve,D,s):xa(e,ve,L),l.J(b)||gl(e,ve,"ln",b),l.J(h)||Ga(e,ve,S,h),l.J(p)||Ma(e,ve,C,p),l.J(g)||qn(e,ve,M,g),l.J(y)||Zn(e,ve,"sp3d",y),l.J(w)||hr(e,ve,m,w)})}t.DrawingWriter.WriteCT_ShapeProperties=Sl;function Cl(e,t,r,o){e.writeElement(t+":"+r,function(){Tt(e,o)},function(){var t=o.xfrm,r=o.scene3d,i=o.extLst,n=o.effectLst,a=o.effectDag;l.J(t)||gr(e,ve,"xfrm",t),je(e,o),l.J(n)||Ga(e,ve,S,n),l.J(a)||Ma(e,ve,C,a),l.J(r)||qn(e,ve,M,r),l.J(i)||hr(e,ve,m,i)})}t.DrawingWriter.WriteCT_GroupShapeProperties=Cl;function wl(e,t,r,o){e.writeElement(t+":"+r,function(){vt(e,o)},function(){o.ColorProp&&Ve(e,o.ColorProp)})}t.DrawingWriter.WriteCT_StyleMatrixReference=wl;function xl(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.idx)||e.writeAttributeString("idx",o.Charts.ST_FontCollectionIndex[i.idx])},function(){var t=i.TextCharacterProperties&&i.TextCharacterProperties.solidFill;t&&Ve(e,t)})}t.DrawingWriter.WriteCT_FontReference=xl;function Al(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.lnRef,r=o.fillRef,i=o.effectRef,n=o.fontRef;l.J(t)||wl(e,ve,"lnRef",t),l.J(r)||wl(e,ve,"fillRef",r),l.J(i)||wl(e,ve,"effectRef",i),l.J(n)||xl(e,ve,"fontRef",n)})}t.DrawingWriter.WriteCT_ShapeStyle=Al;function Tl(e,t,r,o){e.writeLeafElement(t+":"+r,function(){o.fLocksWithSheet===!1&&e.writeAttributeString("fLocksWithSheet","0"),o.fPrintsWithSheet===!1&&e.writeAttributeString("fPrintsWithSheet","0")})}t.DrawingWriter.WriteCT_AnchorClientData=Tl;function vl(e,t,r,o){nt(e,t,r,o,t)}t.DrawingWriter.WriteCT_ShapeNonVisual=vl;function kl(e,t,r,o){nt(e,t,r,o,ke)}t.DrawingWriter.WriteCT_ShapeNonVisualForCdr=kl;function Fl(e,t,r,o){nt(e,t,r,o,Re)}t.DrawingWriter.WriteCT_ShapeNonVisualForXdr=Fl;function Rl(e,t,r,o){it(e,t,r,o,t,vl)}t.DrawingWriter.WriteCT_Shape=Rl;function El(e,t,r,o){it(e,t,r,o,ke,kl)}t.DrawingWriter.WriteCT_ShapeForCdr=El;function Il(e,t,r,o){it(e,t,r,o,Re,Fl)}t.DrawingWriter.WriteCT_ShapeForXdr=Il;function Ll(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvCxnSpPr;l.J(t)||Mn(e,Re,g,t),l.J(r)||Hn(e,Re,"cNvCxnSpPr",r)})}t.DrawingWriter.WriteCT_ConnectorNonVisual=Ll;function Dl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvCxnSpPr;l.J(t)||Mn(e,ke,g,t),l.J(r)||Hn(e,ke,"cNvCxnSpPr",r)})}t.DrawingWriter.WriteCT_ConnectorNonVisualCdr=Dl;function Bl(e,t,r,o){e.writeElement(t+":"+r,function(){kt(e,o)},function(){var t=o.nvCxnSpPr,r=o.spPr,i=o.style;l.J(t)||Ll(e,Re,"nvCxnSpPr",t),l.J(r)||Sl(e,Re,O,r,!1),l.J(i)||Al(e,Re,ye,i)})}t.DrawingWriter.WriteCT_Connector=Bl;function Pl(e,t,r,o){e.writeElement(t+":"+r,function(){kt(e,o)},function(){var t=o.nvCxnSpPr,r=o.spPr,i=o.style;l.J(t)||Ll(e,ke,"nvCxnSpPr",t),l.J(r)||Sl(e,ke,O,r,!1),l.J(i)||Al(e,ke,ye,i)})}t.DrawingWriter.WriteCT_ConnectorCdr=Pl;function Wl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,Re,g,t),l.J(r)||Gn(e,Re,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisualGroup=Wl;function _l(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,ve,g,t),l.J(r)||Gn(e,ve,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisual=_l;function Nl(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.cNvPr,r=o.cNvPicPr;l.J(t)||Mn(e,ke,g,t),l.J(r)||Gn(e,ke,Ce,r)})}t.DrawingWriter.WriteCT_PictureNonVisualrelSizeAnchor=Nl,t.DrawingWriter.WriteCT_PictureNonVisualOneCellAnchor=Wl,t.DrawingWriter.WriteCT_PictureNonVisualForXdr=Wl;function Ml(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Wl(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i,!1),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_PictureGroup=Ml;function Ol(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Nl(e,ke,we,t),l.J(r)||Da(e,ke,P,r),l.J(i)||Sl(e,ke,O,i),l.J(n)||Al(e,ke,ye,n)})}t.DrawingWriter.WriteCT_PictureRelSizeAnchor=Ol;function Hl(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||_l(e,Re,we,t),l.J(r)||Da(e,ve,P,r),l.J(i)||Sl(e,ve,O,i),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_Picture=Hl;function Gl(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||_l(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i),l.J(n)||Al(e,ve,ye,n)})}t.DrawingWriter.WriteCT_PictureOneCellAnchor=Gl;function Ul(e,t,r,o){e.writeElement(t+":"+r,function(){Ft(e,o)},function(){var t=o.nvPicPr,r=o.blipFill,i=o.spPr,n=o.style;l.J(t)||Wl(e,Re,we,t),l.J(r)||Da(e,Re,P,r),l.J(i)||Sl(e,Re,O,i,!1),l.J(n)||Al(e,Re,ye,n)})}t.DrawingWriter.WriteCT_PictureForXdr=Ul;function Jl(e,t,r,o){Ye(e,t,r,o,Re)}t.DrawingWriter.WriteCT_GraphicalObjectFrameNonVisual=Jl;function zl(e,t,r,o){Ye(e,t,r,o,ke)}t.DrawingWriter.WriteCT_GraphicalObjectFrameNonVisual_cdr=zl;function Vl(e,t,r,o,i){e.writeElement(t+":"+r,function(){e.writeAttributeString(y,"")},function(){var t=o.nvGraphicFramePr,r=o.graphic;l.J(t)||Jl(e,Re,"nvGraphicFramePr",t),mr(e,Re,"xfrm",u,!0),l.J(r)||jn(e,ve,"graphic",r,i)})}t.DrawingWriter.WriteCT_GraphicalObjectFrame=Vl;function jl(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.macro)||e.writeAttributeString(y,o.macro),o.fPublished===!0&&e.writeAttributeString(w,"1")},function(){var t=o.nvGraphicFramePr,r=o.xfrm,i=o.graphic;l.J(t)||zl(e,ke,"nvGraphicFramePr",t),mr(e,ke,"xfrm",r,!0),l.J(i)||jn(e,ve,"graphic",i)})}t.DrawingWriter.WriteCT_GraphicalObjectFrame_cdr=jl;function Xl(e,t,r,o){e.writeElement(t+":"+r,function(){var r=o.cNvPr,i=o.cNvGrpSpPr;l.J(r)||Mn(e,t,g,r),l.J(i)||Un(e,t,"cNvGrpSpPr",i)})}t.DrawingWriter.WriteCT_GroupShapeNonVisual=Xl;function Kl(e,r,o,i){e.writeElement(r+":"+o,function(){var o=i.nvGrpSpPr,n=i.grpSpPr;l.J(o)||Xl(e,Re,"nvGrpSpPr",o),l.J(n)||Cl(e,Re,"grpSpPr",n),i.sp.forEach(function(o){var i,n,a,s;5===o.shapeType?Rl(e,r,"sp",o):3===o.shapeType?Kl(e,r,z,o):2===o.shapeType?Vl(e,r,x,o):4===o.shapeType?Bl(e,r,V,o):1===o.shapeType?l.J(o.cellRange)||o.cameraTool!==!0?Ml(e,r,"pic",o):(i={a14:t.DrawingWriter.a14,Requires:"a14",pic:o},n={},o={AlternateContent:t.DrawingWriter.mc,Choice:i,Fallback:n},Ql(e,"mc","AlternateContent",o)):0===o.shapeType||7===o.shapeType&&(a=o.nvSpPr.cNvPr.extLst||{},a.ext=a.ext||[],a.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:o.control.spid}}),o.nvSpPr.cNvPr.extLst=a,i={a14:t.DrawingWriter.a14,Requires:"a14",sp:o},s={AlternateContent:t.DrawingWriter.mc,Choice:i,FallBack:!0},Ql(e,"mc","AlternateContent",s))})})}t.DrawingWriter.WriteCT_GroupShape=Kl;function ql(e,t,r,o){var i=void 0===t?r:t+":"+r;e.writeElement(i,function(){var t,r;l.J(o.col)||e.writeElementString("xdr:col",o.col),t=o.colOffset,l.J(t)||e.writeElementString("xdr:colOff",n(t)),l.J(o.row)||e.writeElementString("xdr:row",o.row),r=o.rowOffset,l.J(r)||e.writeElementString("xdr:rowOff",n(r))})}t.DrawingWriter.WriteCT_Position=ql;function Yl(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.editAs;l.J(t)||0===t||e.writeAttributeString("editAs",o.Charts.ST_EditAs[t])},function(){var t=i.startPoint,r=i.endPoint,o=i.AlternateContent,n=i.sp,a=i.grpSp,s=i.graphicFrame,c=i.cxnSp,d=i.pic,u=i.clientData,f=l.Util.za(i),b=f&&f.layoutId,h=l.Util.Aa(b);l.J(t)||ql(e,Re,"from",t),l.J(r)||ql(e,Re,"to",r),!l.J(o)&&h&&Ql(e,Be,Ae,o,h),l.J(n)||Il(e,Re,"sp",n),l.J(a)||Kl(e,Re,z,a),l.J(s)||h||Vl(e,Re,x,s,h),l.J(c)||Bl(e,Re,V,c),l.J(d)||Ul(e,Re,"pic",d),l.J(u)||Tl(e,Re,Te,u)})}t.DrawingWriter.WriteCT_TwoCellAnchor=Yl;function Ql(e,r,o,i,n){e.writeElement(r+":"+o,function(){e.writeAttributeString("xmlns:mc",i.AlternateContent)},function(){var r=i.Choice,o=i.Fallback;l.J(r)&&Zl(i)&&(r={a14:t.DrawingWriter.a14,Requires:"a14",twoCellAnchor:i},o={}),l.J(r)||$l(e,Be,"Choice",r,n),l.J(o)||es(e,Be,"Fallback",o)})}t.DrawingWriter.WriteCT_AlternateContent=Ql;function Zl(e){return!(!e||!e.pic||e.pic.cameraTool!==!0)}function $l(e,t,r,o,i){e.writeElement(t+":"+r,function(){!i||l.J(o.Requires)||l.J(o.cx)||e.writeAttributeString("xmlns:"+o.Requires,o.cx);var t=o.a14;l.J(t)||e.writeAttributeString("xmlns:a14",o.a14),e.writeAttributeString("Requires",o.Requires)},function(){var t,r,n,a=o.GraphicalObjectFrame;l.J(a)||Vl(e,Re,"graphicFrame",a,i),t=o.twoCellAnchor,l.J(t)||Yl(e,Re,"twoCellAnchor",t),r=o.sp,l.J(r)||Rl(e,Re,"sp",r),n=o.pic,l.J(n)||Ul(e,Re,"pic",n)})}t.DrawingWriter.WriteCT_Choice=$l;function es(e,t,r,o){e.writeElement(t+":"+r,function(){},function(){var t=o.GraphicalObjectFrame;l.J(t)||Vl(e,Re,"graphicFrame",t)})}t.DrawingWriter.WriteCT_FallBack=es;function ts(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.startPoint;l.J(t)||ql(e,Re,"from",t),at(e,o,!0)})}t.DrawingWriter.WriteCT_OneCellAnchor=ts;function rs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.pos;l.J(t)||er(e,Re,"pos",t,!0),at(e,o)})}t.DrawingWriter.WriteCT_AbsoluteAnchor=rs;function os(e,r,o,i){e.writeElement("xdr:"+o,function(){e.writeAttributeString("xmlns:a",t.DrawingWriter.a),e.writeAttributeString("xmlns:xdr",t.DrawingWriter.xdr)},function(){i.AnchorBaseList.forEach(function(t){1===t.anchorType?ts(e,Re,"oneCellAnchor",t):0===t.anchorType?Yl(e,Re,"twoCellAnchor",t):2===t.anchorType&&rs(e,Re,"absoluteAnchor",t)})})}t.DrawingWriter.WriteCT_Drawing=os;function is(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.spPr,r=o.bodyPr,i=o.lstStyle,n=o.style,a=o.extLst;l.J(t)||Sl(e,ve,O,t),l.J(r)||Ss(e,ve,"bodyPr",r),l.J(i)||hs(e,ve,"lstStyle",i),l.J(n)||Al(e,ve,ye,n),l.J(a)||hr(e,ve,m,a)})}t.DrawingWriter.WriteCT_DefaultShapeDefinition=is;function ns(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.spDef,r=o.lnDef,i=o.txDef,n=o.extLst;l.J(t)||is(e,ve,"spDef",t),l.J(r)||is(e,ve,"lnDef",r),l.J(i)||is(e,ve,"txDef",i),l.J(n)||hr(e,ve,m,n)})}t.DrawingWriter.WriteCT_ObjectStyleDefaults=ns;function as(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_EmptyElement=as;function ls(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.masterClrMapping,r=o.overrideClrMapping;l.J(t)||as(e,ve,"masterClrMapping"),l.J(r)||cn(e,ve,"overrideClrMapping",r)})}t.DrawingWriter.WriteCT_ColorMappingOverride=ls;function ss(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.clrScheme,r=o.clrMap;l.J(t)||Rt(e,ve,j,t),l.J(r)||cn(e,ve,"clrMap",r)})}t.DrawingWriter.WriteCT_ColorSchemeAndMapping=ss;function cs(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.extraClrScheme,function(t){ss(e,ve,"extraClrScheme",t)})})}t.DrawingWriter.WriteCT_ColorSchemeList=cs;function ds(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.name;Oe(t)||e.writeAttributeString(b,t)},function(){var t=o.themeElements,r=o.objectDefaults,i=o.extraClrSchemeLst,n=o.custClrLst,a=o.extLst;l.J(t)||Ht(e,ve,"themeElements",t),l.J(r)||ns(e,ve,"objectDefaults",r),l.J(i)||cs(e,ve,"extraClrSchemeLst",i),l.J(n)||Lt(e,ve,"custClrLst",n),l.J(a)||hr(e,ve,m,a)})}t.DrawingWriter.WriteCT_OfficeStyleSheet=ds;function us(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.clrScheme,r=o.fontScheme,i=o.fmtScheme;l.J(t)||Rt(e,ve,j,t),l.J(r)||Pt(e,ve,X,r),l.J(i)||Ot(e,ve,K,i)})}t.DrawingWriter.WriteCT_BaseStylesOverride=us;function fs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.themeElements,r=o.clrMap;l.J(t)||Ht(e,ve,"themeElements",t),l.J(r)||cn(e,ve,"clrMap",r)})}t.DrawingWriter.WriteCT_ClipboardStyleSheet=fs;function bs(e,t,r,o){e.writeElement(t+":"+r,function(){var r=o.pPr,i=o.endParaRPr,n=o.elements;l.J(r)||Hs(e,t,"pPr",r),l.J(n)||n.forEach(function(r){0===r.elementType?Us(e,t,Fe,r):1===r.elementType?Ms(e,t,"br",r):2===r.elementType&&Gs(e,t,"fld",r)}),l.J(i)||Bs(e,t,"endParaRPr",i)})}t.DrawingWriter.WriteCT_TextParagraph=bs;function hs(e,t,r,o){e.writeElement(t+":"+r,function(){var t=o.defPPr,r=o.lvl1pPr,i=o.lvl2pPr,n=o.lvl3pPr,a=o.lvl4pPr,s=o.lvl5pPr,c=o.lvl6pPr,d=o.lvl7pPr,u=o.lvl8pPr,f=o.lvl9pPr,b=o.extLst;l.J(t)||Hs(e,ve,"defPPr",t),l.J(r)||Hs(e,ve,"lvl1pPr",r),l.J(i)||Hs(e,ve,"lvl2pPr",i),l.J(n)||Hs(e,ve,"lvl3pPr",n),l.J(a)||Hs(e,ve,"lvl4pPr",a),l.J(s)||Hs(e,ve,"lvl5pPr",s),l.J(c)||Hs(e,ve,"lvl6pPr",c),l.J(d)||Hs(e,ve,"lvl7pPr",d),l.J(u)||Hs(e,ve,"lvl8pPr",u),l.J(f)||Hs(e,ve,"lvl9pPr",f),l.J(b)||hr(e,ve,m,b)})}t.DrawingWriter.WriteCT_TextListStyle=hs;function ps(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.fontScale,r=o.lnSpcReduction;l.J(t)||1e5===t||e.writeAttributeString("fontScale",t),l.J(r)||0===r||e.writeAttributeString("lnSpcReduction",r)})}t.DrawingWriter.WriteCT_TextNormalAutofit=ps;function ms(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextShapeAutofit=ms;function gs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoAutofit=gs;function ys(e){return 6e4*e}t.DrawingWriter.getRotationData=ys;function Ss(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.rot,r=i.vertOverflow,n=i.horzOverflow,a=i.wrap,s=i.lIns,c=i.tIns,d=i.rIns,u=i.bIns,f=i.numCol,b=i.spcCol,h=i.anchor;l.J(t)||e.writeAttributeString("rot",ys(t)),i.spcFirstLastPara===!0&&e.writeAttributeString("spcFirstLastPara","1"),l.J(r)||0===r||e.writeAttributeString("vertOverflow",o.Charts.ST_TextVertOverflowType[r]),l.J(n)||0===n||e.writeAttributeString("horzOverflow",o.Charts.ST_TextHorzOverflowType[n]),l.J(i.vert)||e.writeAttributeString("vert",o.Charts.ST_TextVerticalType[i.vert]),l.J(a)||0===a||e.writeAttributeString("wrap",o.Charts.ST_TextWrappingType[a]),l.J(s)||91440===s||e.writeAttributeString("lIns",s),l.J(c)||45720===c||e.writeAttributeString("tIns",c),l.J(d)||91440===d||e.writeAttributeString("rIns",d),l.J(u)||45720===u||e.writeAttributeString("bIns",u),l.J(f)||0===f||e.writeAttributeString("numCol",f),l.J(b)||0===b||e.writeAttributeString("spcCol",b),i.rtlCol===!0&&e.writeAttributeString("rtlCol","1"),i.fromWordArt===!0&&e.writeAttributeString("fromWordArt","1"),l.J(h)||0===h||e.writeAttributeString("anchor",o.Charts.ST_TextAnchoringType[h]),i.anchorCtr===!0&&e.writeAttributeString("anchorCtr","1"),i.forceAA===!0&&e.writeAttributeString("forceAA","1"),i.upright===!0&&e.writeAttributeString("upright","1"),i.compatLnSpc===!0&&e.writeAttributeString("compatLnSpc","1")},function(){var t=i.prstTxWarp,r=i.noAutofit,o=i.normAutofit,n=i.spAutoFit,a=i.scene3d,s=i.sp3d,c=i.flatTx,d=i.extLst;l.J(t)||sl(e,ve,"prstTxWarp",t),l.J(r)||gs(e,ve,"noAutofit"),l.J(o)||ps(e,ve,"normAutofit",o),l.J(n)||ms(e,ve,"spAutoFit"),l.J(a)||qn(e,ve,M,a),l.J(s)||Zn(e,ve,"sp3d",s),l.J(c)||$n(e,ve,"flatTx",c),l.J(d)||hr(e,ve,m,d)})}t.DrawingWriter.WriteCT_TextBodyProperties=Ss;function Cs(e,t,r,o){e.writeElement(t+":"+r,function(){var t,r,i=o.bodyPr,n=o.lstStyle;Ss(e,ve,"bodyPr",i||{}),l.J(n)||hs(e,ve,"lstStyle",n),t=o.p,l.J(t)?(r={pPr:{defRPr:{}},endParaRPr:{},elements:[]},bs(e,ve,"p",r)):Ze(o.p,function(t){bs(e,ve,"p",t)})})}t.DrawingWriter.WriteCT_TextBody=Cs;function ws(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletColorFollowText=ws;function xs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletSizeFollowText=xs;function As(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextBulletSizePercent=As;function Ts(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextBulletSizePoint=Ts;function vs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletTypefaceFollowText=vs;function ks(e,t,r,i){e.writeLeafElement(t+":"+r,function(){var t=i.startAt;l.J(i.type)||e.writeAttributeString(h,o.Charts.ST_TextAutonumberScheme[i.type]),l.J(t)||1===t||e.writeAttributeString("startAt",t)})}t.DrawingWriter.WriteCT_TextAutonumberBullet=ks;function Fs(e,t,r,o){e.writeLeafElement(t+":"+r,function(){l.J(o.char)||e.writeAttributeString("char",o.char)})}t.DrawingWriter.WriteCT_TextCharBullet=Fs;function Rs(e,t,r,o){Ue(e,t,r,o,Ia,ve,"blip")}t.DrawingWriter.WriteCT_TextBlipBullet=Rs;function Es(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoBullet=Es;function Is(e,t,r,o){e.writeLeafElement(t+":"+r,function(){var t=o.typeface,r=o.panose,n=o.pitchFamily,a=o.charset;l.J(t)||e.writeAttributeString("typeface",i.ConverterHelper.getFontName(t)),l.J(r)||e.writeAttributeString("panose",r),l.J(n)||0===n||e.writeAttributeString("pitchFamily",n),l.J(a)||1===a||e.writeAttributeString("charset",a)})}t.DrawingWriter.WriteCT_TextFont=Is;function Ls(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineLineFollowText=Ls;function Ds(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineFillFollowText=Ds,t.DrawingWriter.WriteCT_TextUnderlineFillGroupWrapper=Wa;function Bs(e,t,r,n){e.writeElement(t+":"+r,function(){var t=n.altLang,r=n.sz,a=n.kern,s=n.cap,c=n.spc,d=n.baseline,u=n.smtId,f=n.bmk;n.kumimoji===!0&&e.writeAttributeString("kumimoji","1"),l.J(t)||e.writeAttributeString("altLang",t),l.J(r)||0===r||e.writeAttributeString("sz",Math.round(100*i.UnitHelper.pixelToPoint(r))),l.J(n.b)||e.writeAttributeString("b",n.b?"1":"0"),l.J(n.i)||e.writeAttributeString("i",n.i?"1":"0"),l.J(n.u)||e.writeAttributeString("u",o.Charts.ST_TextUnderlineType[n.u]),l.J(n.strike)||e.writeAttributeString("strike",o.Charts.ST_TextStrikeType[n.strike]),l.J(a)||0===a||e.writeAttributeString("kern",a),l.J(s)||0===s||e.writeAttributeString("cap",o.Charts.ST_TextCapsType[s]),l.J(c)||e.writeAttributeString("spc",c),n.normalizeH===!0&&e.writeAttributeString("normalizeH","1"),l.J(d)||e.writeAttributeString("baseline",d),n.noProof===!0&&e.writeAttributeString("noProof","1"),n.dirty===!1&&e.writeAttributeString("dirty","0"),n.err===!0&&e.writeAttributeString("err","1"),n.smtClean===!1&&e.writeAttributeString("smtClean","0"),l.J(u)||0===u||e.writeAttributeString("smtId",u),l.J(f)||e.writeAttributeString("bmk",f)},function(){var t=n.ln,r=n.highlight,o=n.uLnTx,i=n.uLn,a=n.uFillTx,s=n.uFill,c=n.latin,d=n.ea,u=n.cs,f=n.sym,b=n.hlinkClick,h=n.hlinkMouseOver,p=n.extLst,g=n.effectLst,y=n.effectDag;l.J(t)||gl(e,ve,"ln",t),je(e,n),l.J(g)||Ga(e,ve,S,g),l.J(y)||Ma(e,ve,C,y),l.J(r)||xr(e,ve,"highlight",r),l.J(o)||Ls(e,ve,"uLnTx"),l.J(i)||gl(e,ve,"uLn",i),l.J(a)||Ds(e,ve,"uFillTx"),l.J(s)||Wa(e,ve,"uFill",s),l.J(c)||Is(e,ve,"latin",c),l.J(d)||Is(e,ve,"ea",d),l.J(u)||Is(e,ve,"cs",u),l.J(f)||Is(e,ve,"sym",f),l.J(b)||vr(e,ve,"hlinkClick",b),l.J(h)||vr(e,ve,"hlinkMouseOver",h),l.J(p)||hr(e,ve,m,p)})}t.DrawingWriter.WriteCT_TextCharacterProperties=Bs;function Ps(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextSpacingPercent=Ps;function Ws(e,t,r,o){Ge(e,t,r,o,f)}t.DrawingWriter.WriteCT_TextSpacingPoint=Ws;function _s(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.pos)||e.writeAttributeString("pos",i.pos),l.J(i.algn)||e.writeAttributeString("algn",o.Charts.ST_TextTabAlignType[i.algn])})}t.DrawingWriter.WriteCT_TextTabStop=_s;function Ns(e,t,r,o){e.writeElement(t+":"+r,function(){Ze(o.tab,function(t){_s(e,ve,"tab",t)})})}t.DrawingWriter.WriteCT_TextTabStopList=Ns;function Ms(e,t,r,o){Ue(e,t,r,o,Bs,ve,"rPr")}t.DrawingWriter.WriteCT_TextLineBreak=Ms;function Os(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.spcPct)||Ps(e,ve,"spcPct",o.spcPct),l.J(o.spcPts)||Ws(e,ve,"spcPts",o.spcPts)})}t.DrawingWriter.WriteCT_TextSpacing=Os;function Hs(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.marL,r=i.marR,n=i.lvl,a=i.indent,s=i.algn,c=i.defTabSz,d=i.fontAlgn;l.J(t)||0===t||e.writeAttributeString("marL",t),l.J(r)||0===r||e.writeAttributeString("marR",r),l.J(n)||0===n||e.writeAttributeString("lvl",n),l.J(a)||0===a||e.writeAttributeString("indent",a),l.J(s)||0===s||e.writeAttributeString("algn",o.Charts.ST_TextAlignType[s]),l.J(c)||0===c||e.writeAttributeString("defTabSz",c),i.rtl===!0&&e.writeAttributeString("rtl","1"),i.eaLnBrk===!0&&e.writeAttributeString("eaLnBrk","1"),l.J(d)||0===d||e.writeAttributeString("fontAlgn",o.Charts.ST_TextFontAlignType[d]),i.latinLnBrk===!0&&e.writeAttributeString("latinLnBrk","1"),i.hangingPunct===!0&&e.writeAttributeString("hangingPunct","1")},function(){var t=i.lnSpc,r=i.spcBef,o=i.spcAft,n=i.buClrTx,a=i.buClr,s=i.buSzTx,c=i.buSzPct,d=i.buSzPts,u=i.buFontTx,f=i.buFont,b=i.buNone,h=i.buAutoNum,p=i.buChar,g=i.buBlip,y=i.tabLst,S=i.defRPr,C=i.extLst;l.J(t)||Os(e,ve,"lnSpc",t),l.J(r)||Os(e,ve,"spcBef",r),l.J(o)||Os(e,ve,"spcAft",o),l.J(n)||ws(e,ve,"buClrTx"),l.J(a)||xr(e,ve,"buClr",a),l.J(s)||xs(e,ve,"buSzTx"),l.J(c)||As(e,ve,"buSzPct",c),l.J(d)||Ts(e,ve,"buSzPts",d),l.J(u)||vs(e,ve,"buFontTx"),l.J(f)||Is(e,ve,"buFont",f),l.J(b)||Es(e,ve,"buNone"),l.J(h)||ks(e,ve,"buAutoNum",h),l.J(p)||Fs(e,ve,"buChar",p),l.J(g)||Rs(e,ve,"buBlip",g),l.J(y)||Ns(e,ve,"tabLst",y),l.J(S)||Bs(e,ve,"defRPr",S),l.J(C)||hr(e,ve,m,C)})}t.DrawingWriter.WriteCT_TextParagraphProperties=Hs;function Gs(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.id)||e.writeAttributeString("id",o.id),l.J(o.type)||e.writeAttributeString(h,o.type)},function(){l.J(o.rPr)||Bs(e,ve,"rPr",o.rPr),l.J(o.pPr)||Hs(e,ve,"pPr",o.pPr),l.J(o.t)||e.writeElementString("a:t",d(o.t))})}t.DrawingWriter.WriteCT_TextField=Gs;function Us(e,t,r,o){e.writeElement(t+":"+r,function(){l.J(o.rPr)||Bs(e,ve,"rPr",o.rPr),l.J(o.t)||e.writeElementString("a:t",d(o.t))})}t.DrawingWriter.WriteCT_RegularTextRun=Us},"./src/xlsx-io/writer/comment-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/datamodel/excel-style.ts"),s=o.Util.oa;function c(e,t){var r=new i.XmlWriter;return r.writeDocument(),r.writeElement("comments",function(){r.writeAttributeString("xmlns",n.XFileConstants.Hd)},function(){u(r),r.writeElement("commentList",function(){t.forEach(function(e){d(r,e)})})}),r.getXmlString()}t.writeComments=c;function d(e,t){function r(e){var t=e;if(t){if("number"==typeof t)return t>400;if("string"==typeof t)return t.toLowerCase().indexOf("bold")!==-1||parseInt(t,10)>400}return!1}function i(e){var t=e;return!!t&&["italic","oblique"].indexOf(t.toLowerCase().trim())!==-1}e.writeElement("comment",function(){e.writeAttributeString("ref",o.IndexHelper.T(t.col)+(t.row+1)),e.writeAttributeString("authorId","0")},function(){e.writeElement("text",function(){e.writeElement("r",function(){var n,c,d;e.writeElement("rPr",function(){var o,n=t.fontWeight;r(n)&&e.writeLeafElement("b"),n=t.fontStyle,i(n)&&e.writeLeafElement("i"),o=t.textDecoration,o&&(1&o&&e.writeLeafElement("u"),8&o&&e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[2])}),2&o&&e.writeLeafElement("strike")),n=t.fontSize,n&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",n)}),n=t.foreColor,n?a.writeColor(e,"color",n):e.writeLeafElement("color",function(){e.writeAttributeString("indexed","81")}),n=t.fontFamily,n&&e.writeLeafElement("rFont",function(){e.writeAttributeString("val",n)}),e.writeLeafElement("family",function(){e.writeAttributeString("val","2")})}),n=t.text,c=o.J(n)?"":n,d=c.length!==c.trim().length,e.writeElement("t",function(){d&&e.writeAttributeString("xml:space","preserve")},function(){e.writeValue(s(c))})})})})}function u(e){e.writeElement("authors",void 0,function(){e.writeElement("author",void 0,function(){e.writeValue("Author")})})}function f(e,t,r){var i="_x0000_t",n="202",a="_x0000_s";e.writeElement("v:shapetype",function(){e.writeAttributeString("id",i+n),e.writeAttributeString("coordsize","21600,21600"),e.writeAttributeString("o:spt",n),e.writeAttributeString("path","m,l,21600r21600,l21600,xe")},function(){e.writeLeafElement("v:stroke",function(){e.writeAttributeString("joinstyle","miter")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("gradientshapeok","t"),e.writeAttributeString("o:connecttype","rect")})}),t.forEach(c);function s(e){if(e&&e.indexOf("rgb")>=0){var t=l.ColorHelper.fromHtmlColor(e),r=t.toString(16).substr(-6);return"#"+r}return e}function c(t){var l=t.inset;e.writeElement("v:shape",function(){e.writeAttributeString("id",a+r),r++,e.writeAttributeString("type","#"+i+n),e.writeAttributeString("style",c(t)),e.writeAttributeString("fillcolor",s(t.backColor)),e.writeAttributeString("strokecolor",s(t.borderColor)),e.writeAttributeString("strokeweight",""+t.borderWidth),l||e.writeAttributeString("o:insetmode","auto")},function(){var r=t.dashStyle,i=t.lineStyle;r?e.writeLeafElement("v:stroke",function(){e.writeAttributeString("dashstyle",r)}):i&&e.writeLeafElement("v:stroke",function(){e.writeAttributeString("linestyle",i)}),e.writeLeafElement("v:fill",function(){var r=t.opacity;o.J(r)||1===r||e.writeAttributeString("opacity",Math.floor(65535*r)+"f"),e.writeAttributeString("color2","#ffffe1")}),e.writeLeafElement("v:shadow",function(){e.writeAttributeString("color","black"),e.writeAttributeString("obscured","t")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("o:connecttype","none")}),e.writeElement("v:textbox",function(){e.writeAttributeString("style","mso-direction-alt:auto"+(t.autoSize?";mso-fit-shape-to-text:t":"")),l&&e.writeAttributeString("inset",l)},function(){e.writeElement("div",function(){e.writeAttributeString("style","text-align:"+t.hAlign.toLowerCase())},null)}),e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Note")},function(){t.dynamicMove===!1&&e.writeLeafElement("x:MoveWithCells"),t.dynamicSize===!1&&e.writeLeafElement("x:SizeWithCells"),t.locked===!1&&e.writeElementString("x:Locked","False"),t.lockText===!1&&e.writeElementString("x:LockText","False"),e.writeElementString("x:AutoFill","False");var r=t.hAlign;"Left"!==r&&e.writeElementString("x:TextHAlign",r),e.writeElementString("x:Row",t.row),e.writeElementString("x:Column",t.col),1===t.displayMode&&e.writeLeafElement("x:Visible")})});function c(e){var t=["position:absolute"],r=e.marginLeft;return r>=0&&t.push("margin-left:"+r+"pt"),r=e.marginTop,r>=0&&t.push("margin-top:"+r+"pt"),r=e.width,r&&t.push("width:"+r),r=e.height,r&&t.push("height:"+r),t.push("z-index:"+e.zIndex),r=e.visibility,r&&t.push("visibility:"+r),t.join(";")}}}t.writeCommentShapes=f},"./src/xlsx-io/writer/conditionalformat-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/range-parser.ts"),i=r("./src/common/common.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/common/excel-types.ts"),s=r("./src/xlsx-io/writer/style-writer.ts"),c=r("./src/xlsx-io/writer/datavalidation-writer.ts"),function(e){e[e.conditionRuleBase=0]="conditionRuleBase",e[e.cellValueRule=1]="cellValueRule",e[e.specificTextRule=2]="specificTextRule",e[e.formulaRule=3]="formulaRule",e[e.dateOccurringRule=4]="dateOccurringRule",e[e.top10Rule=5]="top10Rule",e[e.uniqueRule=6]="uniqueRule",e[e.duplicateRule=7]="duplicateRule",e[e.averageRule=8]="averageRule",e[e.twoScaleRule=10]="twoScaleRule",e[e.threeScaleRule=11]="threeScaleRule",e[e.dataBarRule=12]="dataBarRule",e[e.iconSetRule=13]="iconSetRule",e[e.rowStateRule=14]="rowStateRule",e[e.columnStateRule=15]="columnStateRule"}(d||(d={})),u={0:"num",1:"min",2:"max",3:"percent",4:"percentile",6:"formula",5:"autoMin",7:"autoMax"},f={0:"3Arrows",1:"3ArrowsGray",4:"3Flags",5:"3TrafficLights1",6:"3TrafficLights2",7:"3Signs",8:"3Symbols",9:"3Symbols2",10:"4Arrows",11:"4ArrowsGray",12:"4RedToBlack",13:"4Rating",14:"4TrafficLights",15:"5Arrows",16:"5ArrowsGray",17:"5Rating",18:"5Quarters",3:"3Stars",2:"3Triangles",19:"5Boxes",20:"NoIcons"},b={1:"num",4:"percent",7:"formula",5:"percentile"},h={0:"equal",1:"notEqual",2:"greaterThan",3:"greaterThanOrEqual",4:"lessThan",5:"lessThanOrEqual",6:"between",7:"notBetween"};function S(e){var t=""+e;return"="===t.charAt(0)?t.substr(1):t}function C(e){return"string"==typeof e?(e="="===e[0]?e.substr(1):e,i.addXLFNPrefix(e)):e}function w(e){return"string"==typeof e}function x(e){return e===u[1]||e===u[2]}function A(e){var t,r,o,i;if(w(e.value1)&&c.isTablesheetColumnFormula(e.value1))return!0;if(w(e.value2)&&c.isTablesheetColumnFormula(e.value2))return!0;if(w(e.minValue)&&c.isTablesheetColumnFormula(e.minValue))return!0;if(w(e.midValue)&&c.isTablesheetColumnFormula(e.midValue))return!0;if(w(e.maxValue)&&c.isTablesheetColumnFormula(e.maxValue))return!0;if(w(e.text)&&c.isTablesheetColumnFormula(e.text))return!0;if(w(e.formula)&&c.isTablesheetColumnFormula(e.formula)&&c.isTablesheetColumnFormula(e.formula))return!0;if(e.iconCriteria&&e.iconCriteria.length>0)for(t=0,r=e.iconCriteria;t<r.length;t++)if(o=r[t],i=o.iconValue,w(i)&&c.isTablesheetColumnFormula(i))return!0;return!1}function T(e,t,r){var n,l,s=r.xg(t),c=s&&s.rules;if(c&&c.length>0)for(n=function(n){var l=c[n];return i.J(l.priority)&&(l.priority=1),N(l)||H(l,t,r.jj())||M(l)||A(l)?"continue":void e.writeElement("conditionalFormatting",function(){e.writeAttributeString("sqref",o.getRangeString(l.ranges)),l.pivot&&e.writeAttributeString("pivot","1")},function(){if(l.ruleType===d.dataBarRule)e.writeElement("cfRule",function(){e.writeAttributeString("type",d[l.ruleType].replace("Rule","")),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("dataBar",function(){l.showBarOnly&&e.writeAttributeString("showValue","0")},function(){var t,r=u[l.minType];(i.J(r)||"autoMin"===r)&&(r="min"),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",r),x(r)||i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))}),t=u[l.maxType],(i.J(t)||"autoMax"===t)&&(t="max"),e.writeLeafElement("cfvo",function(){
51
51
  e.writeAttributeString("type",t),x(t)||i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.color))}),e.writeElement("extLst",function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{B025F937-C7B1-47D3-B67F-A62EFF666E3E}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){l.id=i.Util.va(),e.writeElement("x14:id",function(){e.writeValue(l.id)})})})});else if(l.ruleType===d.twoScaleRule||l.ruleType===d.threeScaleRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","colorScale"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("colorScale",function(){e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.minType]),i.J(l.minValue)||e.writeAttributeString("val",i.Util.oa(S(l.minValue)))});var t=l.ruleType===d.threeScaleRule;t&&e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.midType]),i.J(l.midValue)?e.writeAttributeString("val","50"):e.writeAttributeString("val",i.Util.oa(S(l.midValue)))}),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",u[l.maxType]),i.J(l.maxValue)||e.writeAttributeString("val",i.Util.oa(S(l.maxValue)))}),a.writeColor(e,"color",_(l.minColor)),t&&a.writeColor(e,"color",_(l.midColor)),a.writeColor(e,"color",_(l.maxColor))})});else if(l.ruleType===d.iconSetRule){if(N(l))return;e.writeElement("cfRule",function(){e.writeAttributeString("type","iconSet"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("iconSet",function(){var t=l.iconSetType;i.J(t)&&(t=0),e.writeAttributeString("iconSet",f[t]),l.reverseIconOrder&&e.writeAttributeString("reverse","1"),l.showIconOnly&&e.writeAttributeString("showValue","0")},function(){var t,r;for(e.writeLeafElement("cfvo",function(){e.writeAttributeString("type","percent"),e.writeAttributeString("val","0")}),t=function(t){var r=l.iconCriteria[t];e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",b[r.iconValueType]),e.writeAttributeString("val",i.Util.oa(S(r.iconValue))),r.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")})},r=0;r<l.iconCriteria.length;r++)t(r)})})}else if(l.ruleType===d.cellValueRule)e.writeElement("cfRule",function(){e.writeAttributeString("type","cellIs"),l.priority&&e.writeAttributeString("priority",l.priority),l.dxfId>=0&&e.writeAttributeString("dxfId",l.dxfId),l.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(l.operator)||e.writeAttributeString("operator",h[l.operator])},function(){i.J(l.value1)||e.writeElement("formula",function(){e.writeValue(L(C(l.value1)))}),i.J(l.value2)||e.writeElement("formula",function(){e.writeValue(L(C(l.value2)))})});else{var t=v(l);e.writeElement("cfRule",function(){4===l.ruleType?e.writeAttributeString("type","timePeriod"):8===l.ruleType?(e.writeAttributeString("type","aboveAverage"),"aboveOrEqualToAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.equalAverage=!0),"belowAverage"!==t.type&&"belowOrEqualToAverage"!==t.type||(t.aboveAverage=!1)):2===l.ruleType&&i.J(t.type)?e.writeAttributeString("type","containsText"):e.writeAttributeString("type",t.type),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId),t.priority>=0&&e.writeAttributeString("priority",t.priority),t.stopIfTrue&&e.writeAttributeString("stopIfTrue","1"),i.J(t.aboveAverage)||(t.aboveAverage?e.writeAttributeString("aboveAverage","1"):e.writeAttributeString("aboveAverage","0")),i.J(t.equalAverage)||(t.equalAverage?e.writeAttributeString("equalAverage","1"):e.writeAttributeString("equalAverage","0")),i.J(t.bottom)||(t.bottom?e.writeAttributeString("bottom","1"):e.writeAttributeString("bottom","0")),t.percent&&e.writeAttributeString("percent","1"),i.J(t.operator)||e.writeAttributeString("operator",t.operator),i.J(t.rank)||e.writeAttributeString("rank",t.rank),i.J(t.stdDev)||e.writeAttributeString("stdDev",t.stdDev),i.J(t.text)||e.writeAttributeString("text",i.Util.oa(t.text)),4===l.ruleType&&e.writeAttributeString("timePeriod",t.type)},function(){var r,o;if(!i.J(t.formulas))for(r=function(r){e.writeElement("formula",function(){e.writeValue(L(C(t.formulas[r])))})},o=0;o<t.formulas.length;o++)r(o)})}})},l=0;l<c.length;l++)n(l)}t.writeConditionalFormating=T;function v(e){switch(e.ruleType){case 2:return B(e);case 3:return I(e);case 4:return E(e);case 5:return R(e);case 6:case 7:return F(e);case 8:return k(e)}}function k(e){var t,r,o=0,i="aboveAverage";switch(e.type){case 1:i="belowAverage";break;case 2:i="aboveOrEqualToAverage";break;case 3:i="belowOrEqualToAverage";break;case 4:o=1;break;case 5:i="belowAverage",o=1;break;case 6:o=2;break;case 7:i="belowAverage",o=2;break;case 8:o=3;break;case 9:i="belowAverage",o=3}return t={type:i,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,stdDev:o,dxfId:e.dxfId},r=P(t),r&&(t.formulas=[r]),t}function F(e){var t,r,o="uniqueValues";return 7===e.ruleType&&(o="duplicateValues"),t={type:o,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},r=P(t),r&&(t.formulas=[r]),t}function R(e){var t,r,o=void 0;return 1===e.type&&(o=!0),t={type:"top10",ranges:e.ranges,stopIfTrue:e.stopIfTrue,percent:!1,priority:e.priority,rank:e.rank,dxfId:e.dxfId,bottom:o},r=P(t),r&&(t.formulas=[r]),t}p={0:"today",1:"yesterday",2:"tomorrow",3:"last7Days",4:"thisMonth",5:"lastMonth",6:"nextMonth",7:"thisWeek",8:"lastWeek",9:"nextWeek"};function E(e){var t=p[e.type],r={type:t,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},o=P(r);return o&&(r.formulas=[o]),r}function I(e){return{type:"expression",ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,formulas:[e.formula]}}function L(e){var t=/&/g,r=/</g,o=/>/g;return"string"==typeof e?e.replace(t,"&amp;").replace(r,"&lt;").replace(o,"&gt;"):i.J(e)?e:""+e}function D(e){return"string"==typeof e?'="'===e.slice(0,2)&&'"'===e.slice(-1)?e.slice(2,-1):e.replace(/"/g,'""'):i.J(e)?e:""+e}function B(e){var t,r,o=e.operator,i="containsText",n="contains";return 2===o?(i="beginsWith",n="beginsWith"):3===o?(i="endsWith",n="endsWith"):1===o?(i="notContainsText",n="notContains"):0===o&&(n="containsText"),t={type:i,priority:e.priority,operator:n,text:e.text,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,ranges:e.ranges},r=P(t),r&&(t.formulas=[r]),t}function P(e){var t,r,o,n;if(!e||!e.ranges)return null;if(t=e.ranges[0],t.row<0||t.col<0)return null;if(r=i.IndexHelper.T(t.col)+(t.row+1),o="",o=t.rowCount===l.ExcelConstants.wb?W("${0}:${1}",i.IndexHelper.T(t.col),i.IndexHelper.T(t.col+t.colCount-1)):t.colCount===l.ExcelConstants.vb?W("${0}:${1}",t.row+1,t.row+t.rowCount):W("${0}${1}:${2}${3}",i.IndexHelper.T(t.col),t.row+1,i.IndexHelper.T(t.col+t.colCount-1),t.row+t.rowCount),n=D(e.text),"top10"===e.type)return e.bottom?e.percent?W("IF(INT(COUNT({0})*{1}%)>0,SMALL({0},INT(COUNT({0})*{1}%)),MIN({0}))>={2}",o,e.rank,r):W("SMALL(({0}),MIN({1},COUNT({0})))>={2}",o,e.rank,r):e.percent?W("IF(INT(COUNT({0})*{1}%)>0,LARGE({0},INT(COUNT({0})*{1}%)),MIN({0}))<={2}",o,e.rank,r):W("LARGE(({0}),MIN({1},COUNT({0})))<={2}",o,e.rank,r);if("containsText"===e.type)return W('NOT(ISERROR(SEARCH("{0}",{1})))',n,r);if("notContainsText"===e.type)return W('ISERROR(SEARCH("{0}",{1}))',n,r);if("beginsWith"===e.type)return W('LEFT({0},{1}) = "{2}"',r,e.text.length,n);if("endsWith"===e.type)return W('RIGHT({0},{1}) = "{2}"',r,e.text.length,n);if("duplicateValues"===e.type)return W("AND(COUNTIF({0},{1})>1,NOT(ISBLANK({1})))",o,r);if("uniqueValues"===e.type)return W("AND(COUNTIF({0},{1})=1,NOT(ISBLANK({1})))",o,r);if("aboveAverage"===e.type||"belowAverage"===e.type||"aboveOrEqualToAverage"===e.type||"belowOrEqualToAverage"===e.type){if("aboveAverage"===e.type&&i.J(e.stdDev))return W("{0}>AVERAGE({1})",r,o);if(!i.J(e.aboveAverage)){if(!(i.J(e.equalAverage)||e.aboveAverage||i.J(e.equalAverage))&&e.equalAverage&&i.J(e.stdDev))return W("{0}<=AVERAGE({1})",r,o);if(!e.aboveAverage&&i.J(e.stdDev))return W("{0}<AVERAGE({1})",r,o)}if(!i.J(e.equalAverage)&&e.equalAverage&&i.J(e.stdDev))return W("{0}>=AVERAGE({1})",r,o);if(!i.J(e.stdDev))return i.J(e.aboveAverage)||e.aboveAverage?W("({0}-AVERAGE({1}))>=STDEVP({1})*({2})",r,o,e.stdDev):W("({0}-AVERAGE({1}))<=STDEVP({1})*(-{2})",r,o,e.stdDev)}return null}function W(e){var t,r,o=[];for(t=1;t<arguments.length;t++)o[t-1]=arguments[t];return r=Array.prototype.slice.call(arguments,1),e.replace(/{(\d+)}/g,function(e,t){return void 0!==r[t]?r[t]:e})}function _(e){return n.ColorHelper.toExcelColor(e)}function N(e){return e.ruleType===d.iconSetRule&&(3===e.iconSetType||2===e.iconSetType||19===e.iconSetType||j(e.iconSetType,e))}function M(e){return e.ruleType===d.rowStateRule||e.ruleType===d.columnStateRule}function O(e){return e.ruleType===d.dataBarRule}function H(e,t,r){return e.ruleType===d.formulaRule&&i.Util.ta(e.formula,t,r)}function G(e,t,r){var o,i,n=0;for(o=0;o<e.length;o++)i=e[o],(O(i)||N(i)||H(i,t,r))&&n++;return 0!==n}t.needWriteConditionalFormatExtension=G;function U(e,t,r){var o=r.xg(t),n=o&&o.rules;n&&0!==n.length&&G(n,t,r.jj())&&e.writeElement("ext",function(){e.writeAttributeString("uri","{78C0D931-6437-407d-A8EE-F0AAD7539E65}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeElement("x14:conditionalFormattings",function(){var o,a;for(o=0;o<n.length;o++)a=n[o],A(a)||(i.J(a.id)&&(a.id=i.Util.va()),O(a)&&z(e,t,a),N(a)&&V(e,t,a),H(a,t,r.jj())&&J(e,t,a))})})}t.writeExtensionConditionalFormats=U,m="x14:conditionalFormatting",g="http://schemas.microsoft.com/office/excel/2006/main",y="x14:cfRule";function J(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type","expression"),e.writeAttributeString("priority",r.priority),e.writeAttributeString("id",r.id)},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.formula)))}),s.writeDxf(e,void 0,r.style,"x14:dxf")}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function z(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type",d[r.ruleType].replace("Rule","")),e.writeAttributeString("id",r.id)},function(){e.writeElement("x14:dataBar",function(){e.writeAttributeString("minLength","0"),e.writeAttributeString("maxLength","100"),r.showBarOnly&&e.writeAttributeString("showValue","0"),r.showBorder&&e.writeAttributeString("border","1"),r.gradient===!1&&e.writeAttributeString("gradient","0"),r.useNegativeFillColor===!1&&e.writeAttributeString("negativeBarColorSameAsPositive","1"),r.useNegativeBorderColor&&e.writeAttributeString("negativeBarBorderColorSameAsPositive","0"),e.writeAttributeString("direction",1===r.dataBarDirection?"rightToLeft":"leftToRight"),0!==r.axisPosition&&(1===r.axisPosition&&e.writeAttributeString("axisPosition","middle"),2===r.axisPosition&&e.writeAttributeString("axisPosition","none"))},function(){i.J(r.minType)||5===r.minType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMin")}):i.J(r.minValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.minType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.minType])},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.minValue)))})}),i.J(r.maxType)||7===r.maxType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMax")}):i.J(r.maxValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.maxType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",u[r.maxType])},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(r.maxValue)))})}),r.showBorder&&r.borderColor&&a.writeColor(e,"x14:borderColor",_(r.borderColor)),i.J(r.negativeFillColor)?a.writeColor(e,"x14:negativeFillColor",_("red")):a.writeColor(e,"x14:negativeFillColor",_(r.negativeFillColor)),i.J(r.negativeBorderColor)?a.writeColor(e,"x14:negativeBorderColor",_("black")):a.writeColor(e,"x14:negativeBorderColor",_(r.negativeBorderColor)),2!==r.axisPosition&&a.writeColor(e,"x14:axisColor",_(r.axisColor))})}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function V(e,t,r){e.writeElement(m,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",g)},function(){e.writeElement(y,function(){e.writeAttributeString("type","iconSet"),r.priority&&e.writeAttributeString("priority",r.priority),e.writeAttributeString("id",r.id)},function(){e.writeElement("x14:iconSet",function(){var t,o=r.iconSetType;i.J(o)&&(o=0),e.writeAttributeString("iconSet",f[o]),t=j(o,r),t&&e.writeAttributeString("custom","1"),r.showIconOnly&&e.writeAttributeString("showValue","0"),r.reverseIconOrder&&(t?r.icons.reverse():e.writeAttributeString("reverse","1"))},function(){var t,o,n,a,l;for(e.writeElement("x14:cfvo",function(){e.writeAttributeString("type","percent")},function(){e.writeElement("xm:f",function(){e.writeValue("0")})}),t=function(t){var o=r.iconCriteria[t];e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",b[o.iconValueType]),o.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")},function(){e.writeElement("xm:f",function(){e.writeValue(i.Util.oa(C(o.iconValue)))})})},o=0;o<r.iconCriteria.length;o++)t(o);for(n=r.icons,a=function(t){e.writeLeafElement("x14:cfIcon",function(){var r=n[t].iconSetType,o=n[t].iconIndex,i=X(r,o);e.writeAttributeString("iconSet",f[i.iconSetType]),e.writeAttributeString("iconId",i.iconIndex)})},l=0;l<n.length;l++)a(l)})}),e.writeElement("xm:sqref",function(){e.writeValue(o.getRangeString(r.ranges))})})}function j(e,t){var r,o=!0,i=!0,n=!0,a=t.icons;for(r=0;r<a.length;r++)if(a[r].iconSetType!==e){o=!1;break}for(r=0;r<a.length;r++)if(a[r].iconIndex!==r){i=!1;break}for(r=0;r<a.length;r++)if(a[r].iconIndex!==a.length-1-r){n=!1;break}return!o||!i&&!n||!i&&!t.reverseIconOrder}function X(e,t){if(10===e){if(3===t)return{iconSetType:0,iconIndex:2};if(0===t)return{iconSetType:0,iconIndex:0}}else if(15===e){if(4===t)return{iconSetType:0,iconIndex:2};if(0===t)return{iconSetType:0,iconIndex:0};if(2===t)return{iconSetType:0,iconIndex:1};if(3===t)return{iconSetType:10,iconIndex:2};if(1===t)return{iconSetType:10,iconIndex:1}}else if(11===e){if(3===t)return{iconSetType:1,iconIndex:2};if(0===t)return{iconSetType:1,iconIndex:0}}else if(16===e){if(4===t)return{iconSetType:1,iconIndex:2};if(0===t)return{iconSetType:1,iconIndex:0};if(2===t)return{iconSetType:1,iconIndex:1};if(3===t)return{iconSetType:11,iconIndex:2};if(1===t)return{iconSetType:11,iconIndex:1}}else if(14===e){if(3===t)return{iconSetType:5,iconIndex:2};if(2===t)return{iconSetType:5,iconIndex:1};if(1===t)return{iconSetType:5,iconIndex:0}}else if(13===e){if(0===t)return{iconSetType:17,iconIndex:1};if(1===t)return{iconSetType:17,iconIndex:2};if(2===t)return{iconSetType:17,iconIndex:3};if(3===t)return{iconSetType:17,iconIndex:4}}return{iconSetType:e,iconIndex:t}}},"./src/xlsx-io/writer/control-writer.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/datamodel/excel-style.ts"),i=o.UnitHelper.pixelToEMU,n=Math.round;function a(e){e.writeElement("o:shapelayout",function(){e.writeAttributeString("v:ext","edit")},function(){e.writeLeafElement("o:idmap",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("data","1")})})}function l(e){e.writeElement("v:shapetype",function(){e.writeAttributeString("id","_x0000_t201"),e.writeAttributeString("coordsize","21600,21600"),e.writeAttributeString("o:spt","201"),e.writeAttributeString("path","m,l,21600r21600,l21600,xe")},function(){e.writeLeafElement("v:stroke",function(){e.writeAttributeString("joinstyle","miter")}),e.writeLeafElement("v:path",function(){e.writeAttributeString("shadowok","f"),e.writeAttributeString("o:extrusionok","f"),e.writeAttributeString("strokeok","f"),e.writeAttributeString("fillok","f"),e.writeAttributeString("o:connecttype","rect")}),e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("shapetype","t")})})}function s(e,t){t&&e.writeLeafElement("v:fill",function(){t.stops?0===t.type?d(e,t):1===t.type&&f(e,t):t.src?b(e,t):e.writeAttributeString("opacity",p(t.transparency))})}function c(e){return e=90-e,e%=360,e<0&&(e+=360),e}function d(e,t){var r,o=t.stops,i="100%",n=p(o[0].transparency),a=p(o[o.length-1].transparency);S(o)&&(o=o.slice(0,Math.floor(o.length/2)+1),o.forEach(function(e){return e.position*=2}),i="50%",a=p(o[o.length-1].transparency),r=n,n=a,a=r),e.writeAttributeString("opacity",n),e.writeAttributeString("color2",o[o.length-1].color),e.writeAttributeString("o:opacity2",a),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("angle",c(t.angle)),e.writeAttributeString("colors",o.map(h).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focus",i),e.writeAttributeString("type","gradient")}function u(e){var t="0%,0%";switch(e){case 0:t="50%,50%";break;case 2:t="100%,0%";break;case 3:t="0%,100%";break;case 4:t="100%,100%"}return t}function f(e,t){var r=t.stops,o=r[r.length-1],i=p(o.transparency),n=p(r[0].transparency);e.writeAttributeString("opacity",i),e.writeAttributeString("color2",o.color),e.writeAttributeString("o:opacity2",n),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("colors",r.map(h).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focusposition",u(t.direction)),e.writeAttributeString("focus","100%"),e.writeAttributeString("type","gradientradial")}function b(e,t){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title","picture"),e.writeAttributeString("rotate","t"),e.writeAttributeString("type",t.tilePictureAsTexture?"tile":"frame")}function h(e){var t=e.position,r=e.color;return Math.round(100*t)+"% "+r}function p(e){return 1-e}function m(e){return e&&(e.src||e.stops||e.color)}function g(e){return e.stops?e.stops[0].color:e.color}function y(e){return e&&e.color}function S(e){var t,r=function(e,t){return Math.abs(e-t)<1e-4},o=function(e,t){return e.color===t.color&&r(e.transparency,t.transparency)&&r(e.position,1-t.position)},i=e.length,n=Math.floor(i/2);if(i<3||i%2!==1||!r(e[n].position,.5))return!1;for(t=0;t<n;t++)if(!o(e[t],e[i-1-t]))return!1;return!0}function C(e,t){t&&e.writeLeafElement("v:stroke",function(){t.dashStyle&&e.writeAttributeString("dashstyle",t.dashStyle),t.transparency&&e.writeAttributeString("opacity",1-t.transparency),t.lineStyle&&e.writeAttributeString("linestyle",t.lineStyle),t.joinStyle&&e.writeAttributeString("joinstyle",t.joinStyle)})}function w(e,t){var r=t.sp.control,o=JSON.parse(JSON.stringify(r.props)),i=r.disabled,n=function(e){return"CheckBox"===e&&(e="Checkbox"),e};e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType",n(o.objectType))},function(){var r,n;e.writeElementString("x:Anchor",v(t)),i&&e.writeLeafElement("x:Disabled");for(r in o)n=o[r],"checked"===r&&(n=T(n)),"objectType"!==r&&("noThreeD"===r&&n?e.writeLeafElement("x:NoThreeD2"):e.writeElementString("x:"+F(r),n))})}function x(e,t){var r=t.sp.control,o=r.spid,n=r.style,a=n.fill,l=n.line;e.writeElement("v:shape",function(){e.writeAttributeString("id",o),e.writeAttributeString("o:spid",o),e.writeAttributeString("type","#_x0000_t201"),e.writeAttributeString("style",k(t)),m(a)?e.writeAttributeString("fillcolor",g(a)):e.writeAttributeString("filled","f"),y(l)?(e.writeAttributeString("strokecolor",l.color),e.writeAttributeString("strokeweight",i(l.width))):e.writeAttributeString("stroked","f"),e.writeAttributeString("o:insetmode","auto")},function(){s(e,a),C(e,l),e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t"),e.writeAttributeString("text","t")}),w(e,t)})}function A(e,t,r){0!==t.length&&(a(e),l(e),t.forEach(function(t){t.sp.control.spid="_x0000_s"+r,r++,x(e,t)}))}t.writeControlShapes=A;function T(e){var t={Checked:1,Mixed:2};return t[e]}function v(e){var t=e.sp.control.anchorInfo,r=t.startPoint,o=t.endPoint,i=function(e){return[e.col,n(e.colOffset),e.row,n(e.rowOffset)]};return i(r).concat(i(o)).join(",")}function k(e){var t="position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt",r=e.sp.control.visible;return r||(t+=";visibility:hidden"),t}function F(e){return e.substr(0,1).toUpperCase()+e.substr(1)}},"./src/xlsx-io/writer/ctrlprops-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/xml-io/xml-writer.ts");function i(e){var t=new o.XmlWriter,r=e.sp.control.props;return t.writeDocument(),t.writeLeafElement("formControlPr",function(){t.writeAttributeString("xmlns","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main");for(var e in r)r.hasOwnProperty(e)&&t.writeAttributeString(e,r[e])}),t.getXmlString()}t.writeCtrlProps=i},"./src/xlsx-io/writer/datavalidation-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.StringEx.O,n=o.Util.oa,a=null,l={0:"none",1:"whole",2:"decimal",3:"list",4:"date",5:"time",6:"textLength",7:"custom"},s={0:"stop",1:"warning",2:"information"},c={6:"between",7:"notBetween",0:"equal",1:"notEqual",2:"greaterThan",4:"lessThan",3:"greaterThanOrEqual",5:"lessThanOrEqual"};function d(e){return o.isNullOrUndefined(e)||""===e}function u(e){var t,r,o=/\[[^\]]+\]|@/,i=e.split(/\'|\"/g);if(i&&i.length>0)for(t=0;t<i.length;t++)if(r=i[t],t%2===0&&r.match(o))return!0;return!1}t.isTablesheetColumnFormula=u;function f(e){var t=o.isNullOrUndefined(e.ranges)||""===e.ranges||0===e.ranges.length;return e.firstFormula&&(t=t||u(e.firstFormula)),e.secondFormula&&(t=t||u(e.secondFormula)),t}function b(e,t){o.isNullOrUndefined(t.type)||0===t.type||e.writeAttributeString("type",l[t.type]),o.isNullOrUndefined(t.errorStyle)||0===t.errorStyle||e.writeAttributeString("errorStyle",s[t.errorStyle]),o.isNullOrUndefined(t.compareOperator)||6===t.compareOperator||e.writeAttributeString("operator",c[t.compareOperator]),t.allowBlank!==!1&&e.writeAttributeString("allowBlank","1"),t.showPromptBox===!1&&e.writeAttributeString("showDropDown","1"),t.showInputMessage!==!1&&e.writeAttributeString("showInputMessage","1"),t.showErrorBox!==!1&&e.writeAttributeString("showErrorMessage","1"),d(t.errorTitle)||e.writeAttributeString("errorTitle",n(t.errorTitle)),d(t.error)||e.writeAttributeString("error",n(o.Util.xa(t.error))),d(t.promptTitle)||e.writeAttributeString("promptTitle",n(t.promptTitle)),d(t.prompt)||e.writeAttributeString("prompt",n(o.Util.xa(t.prompt)))}function h(e,t,r){var a=r.Jj(t),l=[];r.On||(r.On=[]),a.length>0&&a.forEach(function(e){e.external?r.On.push(e):l.push(e)}),l.length>0&&e.writeElement("dataValidations",function(){e.writeAttributeString("count",l.length)},function(){l.forEach(function(t){o.isNullOrUndefined(t)||f(t)||e.writeElement("dataValidation",function(){b(e,t),e.writeAttributeString("sqref",t.ranges)},function(){i(t.firstFormula)||e.writeElementString("formula1",n(o.addXLFNPrefix(t.firstFormula))),i(t.secondFormula)||e.writeElementString("formula2",n(o.addXLFNPrefix(t.secondFormula)))})})})}t.writeDataValidations=h;function p(e,t){var r=t.On;r&&0===r.length||(e.writeElement("ext",function(){e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"),e.writeAttributeString("uri","{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}")},function(){e.writeElement("x14:dataValidations",function(){e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main"),e.writeAttributeString("count",r.length)},function(){r.forEach(function(t){e.writeElement("x14:dataValidation",function(){b(e,t)},function(){i(t.firstFormula)||e.writeElement("x14:formula1",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.firstFormula)))}),i(t.secondFormula)||e.writeElement("x14:formula2",function(){e.writeElementString("xm:f",n(o.addXLFNPrefix(t.secondFormula)))}),e.writeElementString("xm:sqref",t.ranges)})})})}),t.On=a)}t.writeExtensionDataValidations=p},"./src/xlsx-io/writer/docPropsAppWriter.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts");function a(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.te),t.writeAttributeString("xmlns:vt",i.XFileConstants.ue)},function(){var r,o=e.Ne.docProps.docPropsApp;for(r in o)if(o.hasOwnProperty(r))switch(r){case"HeadingPairs":l(t,o);break;case"TitlesOfParts":s(t,o);break;default:c(r,t,o)}}),t.getXmlString()}t.writeDocPropsApp=a;function l(e,t){e.writeElement("HeadingPairs",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.HeadingPairs.size),e.writeAttributeString("baseType",t.HeadingPairs.baseType)},function(){var r,o=t.HeadingPairs.workbookInfoArray,i=function(t){e.writeElement("vt:variant",function(){},function(){e.writeElement(o[t].elementType,function(){},function(){e.writeValue(o[t].value)})})};for(r=0;r<o.length;r++)i(r)})})}function s(e,t){e.writeElement("TitlesOfParts",function(){},function(){e.writeElement("vt:vector",function(){e.writeAttributeString("size",t.TitlesOfParts.size),e.writeAttributeString("baseType",t.TitlesOfParts.baseType)},function(){var r,o=t.TitlesOfParts.sheetsNameArray,i=function(t){e.writeElement("vt:lpstr",function(){},function(){e.writeValue(n.Util.oa(o[t]))})};for(r=0;r<o.length;r++)i(r)})})}function c(e,t,r){var o=e.slice(0,1).toUpperCase()+e.slice(1);t.writeElement(o,function(){},function(){t.writeValue(r[e])})}},"./src/xlsx-io/writer/docPropsCoreWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("cp:coreProperties",function(){t.writeAttributeString("xmlns:cp",i.XFileConstants.ne),t.writeAttributeString("xmlns:dc",i.XFileConstants.oe),t.writeAttributeString("xmlns:dcterms",i.XFileConstants.pe),t.writeAttributeString("xmlns:dcmitype",i.XFileConstants.qe),t.writeAttributeString("xmlns:xsi",i.XFileConstants.re)},function(){var r,o=e.Ne.docProps.docPropsCore,i=function(e){if(o.hasOwnProperty(e))switch(e){case"title":t.writeElement("dc:title",function(){},function(){t.writeValue(o[e])});break;case"subject":t.writeElement("dc:subject",function(){},function(){t.writeValue(o[e])});break;case"creator":t.writeElement("dc:creator",function(){},function(){t.writeValue(o[e])});break;case"keywords":t.writeElement("cp:keywords",function(){},function(){t.writeValue(o[e])});break;case"description":t.writeElement("dc:description",function(){},function(){t.writeValue(o[e])});break;case"lastModifiedBy":t.writeElement("cp:lastModifiedBy",function(){},function(){t.writeValue(o[e])});break;case"created":t.writeElement("dcterms:created",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(o[e])});break;case"modified":t.writeElement("dcterms:modified",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(o[e])});break;case"lastPrinted":t.writeElement("cp:lastPrinted",function(){},function(){t.writeValue(o[e])});break;case"category":t.writeElement("cp:category",function(){},function(){t.writeValue(o[e])});break;case"contentStatus":t.writeElement("cp:contentStatus",function(){},function(){t.writeValue(o[e])});break;case"language":t.writeElement("dc:language",function(){},function(){t.writeValue(o[e])});break;case"version":t.writeElement("cp:version",function(){},function(){t.writeValue(o[e])});break;case"revision":t.writeElement("cp:revision",function(){},function(){t.writeValue(o[e])})}};for(r in o)i(r)}),t.getXmlString()}t.writeDocPropsCore=n},"./src/xlsx-io/writer/docPropsCustomWriter.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts");function n(e){var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",i.XFileConstants.we),t.writeAttributeString("xmlns:vt",i.XFileConstants.xe)},function(){var r,o=e.Ne.docProps.docPropsCustom,i=function(e){var r=o[e];t.writeElement("property",function(){for(var e in r)"propertyItemChildElement"!==e&&t.writeAttributeString(e,r[e])},function(){var e,o=r.propertyItemChildElement,i=function(e){o.hasOwnProperty(e)&&t.writeElement(e,function(){},function(){t.writeValue(o[e])})};for(e in o)i(e)})};for(r=0;r<o.length;r++)i(r)}),t.getXmlString()}t.writeDocPropsCustom=n},"./src/xlsx-io/writer/drawing-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=r("./src/xlsx-io/writer/chart-writer.ts"),c=r("./src/datamodel/chart-model.ts");function d(){return i.XFileConstants}function u(e,t,r){l.writeColorScheme(e,t,r)}function f(e){return n.UnitHelper.pixelToEMU(e)}function b(e,t){e.forEach(function(e){t.push((e.nvSpPr||e.nvCxnSpPr||e.nvGrpSpPr||e.nvPicPr||e.nvGraphicFramePr).cNvPr.id),e.nvGrpSpPr&&b(e.sp,t)})}function h(e){var t=[];return e.forEach(function(e){if(e.sp)t.push(e.sp.nvSpPr.cNvPr.id);else if(e.cxnSp)t.push(e.cxnSp.nvCxnSpPr.cNvPr.id);else if(e.pic)t.push(e.pic.nvPicPr.cNvPr.id);else if(e.graphicFrame)t.push(e.graphicFrame.nvGraphicFramePr.cNvPr.id);else if(e.grpSp){var r=e.grpSp;t.push(r.nvGrpSpPr.cNvPr.id),b(r.sp,t)}}),Math.max.apply(null,t)}function p(e,t,r){var i=new o.XmlWriter;return i.k=1,i.writeDocument(!0),i.currentFile=r,i.writeElement("xdr:wsDr",function(){i.writeAttributeString("xmlns:xdr",d().Kd),i.writeAttributeString("xmlns:a",d().Ld)},function(){var e,r,o,n,l,s=t.shapes;s&&s.length&&(e=!0,r=h(s),i.k=r+1),o=t.pictures,o&&o.length&&S(i,o),n=t.slicers,n&&n.length&&a.writeSlicerDrawings(i,n,w),l=t.charts,l&&l.length&&g(i,l),e&&y(i,s)}),i.getXmlString()}t.writeDrawing=p;function m(e){var t={AnchorBaseList:[]};return e.forEach(function(e){e.graphicFrame||(e.graphicFrame={}),e.graphicFrame.graphic={graphicData:{chart:{id:e.chartId,typeName:"chartSpace"}}},t.AnchorBaseList.push(e)}),t}function g(e,t){var r=m(t);r.AnchorBaseList.forEach(function(t){1===t.anchorType?s.DrawingWriter.WriteCT_OneCellAnchor(e,"xdr","oneCellAnchor",t):0===t.anchorType?s.DrawingWriter.WriteCT_TwoCellAnchor(e,"xdr","twoCellAnchor",t):2===t.anchorType&&s.DrawingWriter.WriteCT_AbsoluteAnchor(e,"xdr","absoluteAnchor",t)})}function y(e,t){var r=function(e){return e.sp&&e.sp.control},o=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.slicer},i=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.timeslicer};t.forEach(function(t){o(t)||i(t)||(r(t)?v(e,t):t.pic&&t.pic.cameraTool===!0?(t.AlternateContent=s.DrawingWriter.mc,s.DrawingWriter.WriteCT_AlternateContent(e,"mc","AlternateContent",t)):1===t.anchorType?s.DrawingWriter.WriteCT_OneCellAnchor(e,"xdr","oneCellAnchor",t):0===t.anchorType?s.DrawingWriter.WriteCT_TwoCellAnchor(e,"xdr","twoCellAnchor",t):2===t.anchorType&&s.DrawingWriter.WriteCT_AbsoluteAnchor(e,"xdr","absoluteAnchor",t))})}function S(e,t){t.forEach(function(t){C(e,t)})}function C(e,t){var r=t&&t.twoCellAnchor;r&&e.writeElement("xdr:twoCellAnchor",function(){var t=r.editAs;t&&e.writeAttributeString("editAs",c.Charts.ST_EditAs[t])},function(){w(e,"xdr:from",r.startPoint),w(e,"xdr:to",r.endPoint),x(e,t),T(e,t)})}function w(e,t,r){
52
52
  e.writeElement(t,function(){e.writeElementString("xdr:col",r.col),e.writeElementString("xdr:colOff",f(r.colOffset)),e.writeElementString("xdr:row",r.row),e.writeElementString("xdr:rowOff",f(r.rowOffset))})}function x(e,t){e.writeElement("xdr:pic",function(){e.writeElement("xdr:nvPicPr",function(){e.writeLeafElement("xdr:cNvPr",function(){e.writeAttributeString("id",e.k),e.k++,e.writeAttributeString("name",t.name),t.descr&&e.writeAttributeString("descr",t.descr),t.hidden&&e.writeAttributeString("hidden","1")}),e.writeElement("xdr:cNvPicPr",function(){e.writeLeafElement("a:picLocks",function(){e.writeAttributeString("noChangeAspect","1")})})}),e.writeElement("xdr:blipFill",function(){"svg+xml"===t.imageType?e.writeElement("a:blip",function(){e.writeAttributeString("xmlns:r",d().Ud)},function(){e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{96DAC541-7B7A-43D3-8B79-37D633B846F1}")},function(){e.writeLeafElement("asvg:svgBlip",function(){e.writeAttributeString("xmlns:asvg",d().Zd),e.writeAttributeString("r:embed",t.rid)})})})}):e.writeElement("a:blip",function(){e.writeAttributeString("xmlns:r",d().Ud),e.writeAttributeString("r:embed",t.rid),e.writeAttributeString("cstate","print")},function(){e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{28A0092B-C50C-407E-A947-70E740481C1C}")},function(){e.writeLeafElement("a14:useLocalDpi",function(){e.writeAttributeString("xmlns:a14",d().Yd),e.writeAttributeString("val","0")})})})});var r=t.srcRect;r&&s.DrawingWriter.WriteCT_RelativeRect(e,"a","srcRect",r),e.writeElement("a:stretch",function(){r||e.writeLeafElement("a:fillRect")})}),A(e,t)})}function A(e,t){e.writeElement("xdr:spPr",function(){var r,o,i,n,a,l;e.writeElement("a:xfrm",function(){t.rot&&e.writeAttributeString("rot",s.DrawingWriter.getRotationData(t.rot))},function(){e.writeLeafElement("a:off",function(){e.writeAttributeString("x","0"),e.writeAttributeString("y","0")}),e.writeLeafElement("a:ext",function(){e.writeAttributeString("cx","0"),e.writeAttributeString("cy","0")})}),e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){e.writeLeafElement("a:avLst")}),r=t.fillColor,r&&u(e,"a:solidFill",r),o=t.lineBorder,i=o.width,n=o.color,a=o.style,l=o.noFill,e.writeElement("a:ln",function(){null!==i&&void 0!==i&&e.writeAttributeString("w",f(i)),"dbl"===a&&e.writeAttributeString("cmpd","dbl")},function(){l?e.writeLeafElement("a:noFill"):u(e,"a:solidFill",n),"dbl"!==a&&e.writeLeafElement("a:prstDash",function(){e.writeAttributeString("val",a)})})})}function T(e,t){e.writeLeafElement("xdr:clientData",function(){t.locked===!1&&e.writeAttributeString("fLocksWithSheet","0")})}function v(e,t){var r,o,i=t.sp.nvSpPr.cNvPr.extLst||{};i.ext=i.ext||[],i.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:t.sp.control.spid}}),t.sp.nvSpPr.cNvPr.extLst=i,r={a14:s.DrawingWriter.a14,Requires:"a14",twoCellAnchor:t},o={AlternateContent:s.DrawingWriter.mc,Choice:r,FallBack:!0},s.DrawingWriter.WriteCT_AlternateContent(e,"mc","AlternateContent",o)}},"./src/xlsx-io/writer/externalLink-writer.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts");function a(e,t){var r=new o.XmlWriter;return r.writeDocument(),r.writeElement("externalLink",function(){r.writeAttributeString("xmlns",i.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),r.writeAttributeString("xmlns:x14",i.XFileConstants.$d),r.writeAttributeString("mc:Ignorable","x14")},function(){r.writeElement("externalBook",function(){r.writeAttributeString("xmlns:r",i.XFileConstants.Ud),r.writeAttributeString("r:id","rId1")},function(){r.writeElement("sheetNames",void 0,function(){l(r,t.sheetNames)}),t.data&&r.writeElement("sheetDataSet",void 0,function(){var e,o=function(e){var o=t.data[t.sheetNames[e]];o&&r.writeElement("sheetData",function(){r.writeAttributeString("sheetId",e),o.isNew&&r.writeAttributeString("refreshError",1)},function(){s(r,t.data[t.sheetNames[e]])})};for(e=0;e<t.sheetNames.length;e++)o(e)})})}),r.getXmlString()}t.writeExternalLink=a;function l(e,t){t&&t.forEach(function(t){e.writeElement("sheetName",function(){e.writeAttributeString("val",t.replace(/\&/g,"&amp;").replace(/\"/g,"&quot;").replace(/\>/g,"&gt;").replace(/\</g,"&lt;"))},function(){})})}function s(e,t){var r,o=function(r){var o,i;if(Object.prototype.hasOwnProperty.call(t,r)){if(o=parseInt(r,10)+1,isNaN(o))return"continue";i=t[r],e.writeElement("row",function(){e.writeAttributeString("r",""+o)},function(){var t,r=function(t){var r,a;Object.prototype.hasOwnProperty.call(i,t)&&(r=i[t],"string"==typeof r?a="str":"boolean"==typeof r?(a="b",r=r?"1":"0"):r&&r._code&&(a="e",r=r._calcError||r._error,"#SPILL!"!==r&&"#CALC!"!==r||(r="#VALUE!")),e.writeElement("cell",function(){e.writeAttributeString("r",n.IndexHelper.T(parseInt(t,10))+o),a&&e.writeAttributeString("t",a)},function(){e.writeElement("v",function(){},function(){e.writeValue(r)})}))};for(t in i)r(t)})}};for(r in t)o(r)}},"./src/xlsx-io/writer/metadata-writer.ts":function(e,t,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts");function n(e,t,r){r&&e.push('\txmlns:xlrd="'+o.XFileConstants.he+'"'),t&&e.push('\txmlns:xda="'+o.XFileConstants.ge+'">')}i='minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1"';function a(e,t,r){var o=(t?1:0)+(r?1:0);e.push('\t<metadataTypes count="'+o+'">'),t&&e.push('\t\t<metadataType name="XLDAPR" '+i+' cellMeta="1"/>'),r&&e.push('\t\t<metadataType name="XLRICHVALUE" '+i+"/>"),e.push("\t</metadataTypes>")}function l(e,t,r,o){if(t&&e.push('\t<futureMetadata name="XLDAPR" count="1"> <bk> <extLst> <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> </ext> </extLst> </bk> </futureMetadata>'),r){var i='<futureMetadata name="XLRICHVALUE" count="'+(o?2:1)+'"> <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="0"/> </ext> </extLst> </bk>';o&&(i+=' <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="1"/> </ext> </extLst> </bk>'),e.push("\t"+i+" </futureMetadata>")}}function s(e){var t=[],r=e>0,o=e>1,i=e>2;return t.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'),t.push("<metadata"),t.push('\txmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"'),n(t,r,o),a(t,r,o),l(t,r,o,i),r&&t.push('\t<cellMetadata count="1"> <bk> <rc t="1" v="0"/> </bk> </cellMetadata>'),o&&t.push('\t<valueMetadata count="'+(i?2:1)+'"> <bk> <rc t="2" v="0"/> </bk>'+(i?'<bk> <rc t="2" v="1"/> </bk>':"")+" </valueMetadata>"),t.push("</metadata>"),t.join("\r\n")}t.getMetadataContent=s},"./src/xlsx-io/writer/pivot-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/datetime-helper.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts"),t.captionCompareTypeExcel=[["captionEqual","captionNotEqual","captionBeginsWith","captionNotBeginsWith","captionEndsWith","captionNotEndsWith","captionContains","captionNotContains","captionGreaterThan","captionGreaterThanOrEqual","captionLessThan","captionLessThanOrEqual","captionBetween","captionNotBetween"],["dateEqual","dateNotEqual","dateOlderThan","dateOlderThanOrEqual","dateNewerThan","dateNewerThanOrEqual","dateBetween","dateNotBetween","today","yesterday","tomorrow",void 0,"thisMonth","lastMonth","nextMonth","thisWeek","lastWeek","nextWeek","nextQuarter","thisQuarter","lastQuarter","nextYear","thisYear","lastYear","Q1","Q2","Q3","Q4","M1","M2","M3","M4","M5","M6","M7","M8","M9","M10","M11","M12","yearToDate"],["valueEqual","valueNotEqual","valueGreaterThan","valueGreaterThanOrEqual","valueLessThan","valueLessThanOrEqual","valueBetween","valueNotBetween"],["count","percent","sum"]],s=o.Util.oa,c=o.Util.Ba,d=o.Util.xa,u="mc:Ignorable";function f(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("r:id","rId1"),e.saveData===!1&&t.writeAttributeString("saveData","0"),o.isNullOrUndefined(e.refreshedBy)||t.writeAttributeString("refreshedBy",e.refreshedBy),o.isNullOrUndefined(e.refreshedDate)||t.writeAttributeString("refreshedDate",a.DateTimeHelper.ig(e.refreshedDate)),e.backgroundQuery&&t.writeAttributeString("backgroundQuery","1"),o.isNullOrUndefined(e.createdVersion)?t.writeAttributeString("createdVersion","7"):t.writeAttributeString("createdVersion",e.createdVersion),o.isNullOrUndefined(e.refreshedVersion)?t.writeAttributeString("refreshedVersion","7"):t.writeAttributeString("refreshedVersion",e.refreshedVersion),e.enableRefresh===!1&&t.writeAttributeString("enableRefresh","0"),e.invalid&&t.writeAttributeString("invalid","1"),e.minRefreshableVersion>0&&e.minRefreshableVersion<=e.createdVersion&&t.writeAttributeString("minRefreshableVersion",e.minRefreshableVersion),e.missingItemsLimit>0&&t.writeAttributeString("missingItemsLimit",e.missingItemsLimit),e.optimizeMemory&&t.writeAttributeString("optimizeMemory","1"),o.isNullOrUndefined(e.recordCount)||t.writeAttributeString("recordCount",e.recordCount),o.isNullOrUndefined(e.refreshOnLoad)||t.writeAttributeString("refreshOnLoad","1"),e.supportSubquery&&t.writeAttributeString("supportSubquery","1"),e.supportAdvancedDrill&&t.writeAttributeString("supportAdvancedDrill","1"),e.tupleCache&&t.writeAttributeString("tupleCache","1"),e.upgradeOnRefresh&&t.writeAttributeString("upgradeOnRefresh","1")},function(){h(t,e),p(t,e.fields),e.cacheHierarchies&&e.cacheHierarchies.length>0&&A(t,e),e.KPIs&&e.KPIs.length>0&&E(t,e),o.isNullOrUndefined(e.pivotTupleCache)||L(t,e.pivotTupleCache),e.calculatedItems&&e.calculatedItems.length>0&&_(t,e),e.calculatedMembers&&e.calculatedMembers.length>0&&M(t,e),e.dimensions&&e.dimensions.length>0&&H(t,e),e.measureGroups&&e.measureGroups.length>0&&U(t,e),e.measureDimensionMaps&&e.measureDimensionMaps.length>0&&z(t,e),b(t,e.pivotCacheId)}),t.getXmlString()}t.writePivotCacheDefinition=f;function b(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{725AE2AE-9491-48be-B2B4-4EB974FC3084}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:pivotCacheDefinition",function(){e.writeAttributeString("pivotCacheId",t+"")},function(){})})})}function h(e,t){e.writeElement("cacheSource",function(){e.writeAttributeString("type",t.sourceType)},function(){"worksheet"===t.sourceType&&e.writeLeafElement("worksheetSource",function(){t.sourceName&&e.writeAttributeString("name",t.sourceName),t.ref&&e.writeAttributeString("ref",t.ref),t.sheet&&e.writeAttributeString("sheet",t.sheet)})})}function p(e,t){e.writeElement("cacheFields",function(){e.writeAttributeString("count",t.length)},function(){var r,o;for(r=0;r<t.length;r++)o=t[r],m(e,o)})}function m(e,t){e.writeElement("cacheField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.formula)||e.writeAttributeString("formula",s(t.formula)),o.isNullOrUndefined(t.numFmtId)||e.writeAttributeString("numFmtId",t.numFmtId),t.databaseField===!1&&e.writeAttributeString("databaseField","0"),t.hierarchy>0&&e.writeAttributeString("hierarchy",t.hierarchy),t.level>0&&e.writeAttributeString("level",t.level),t.mappingCount>0&&e.writeAttributeString("mappingCount",t.mappingCount),o.isNullOrUndefined(t.memberPropertyField)||e.writeAttributeString("memberPropertyField","1"),o.isNullOrUndefined(t.propertyName)||e.writeAttributeString("propertyName",t.propertyName),o.isNullOrUndefined(t.serverField)||e.writeAttributeString("serverField","1"),t.sqlType>0&&e.writeAttributeString("sqlType",t.sqlType),t.uniqueList===!1&&e.writeAttributeString("uniqueList","0")},function(){t.databaseField!==!1&&(t.entities&&t.entities.length>0?e.writeElement("sharedItems",function(){g(e,t)},function(){y(e,t)}):e.writeLeafElement("sharedItems",function(){g(e,t)})),x(e,t.fieldGroup)})}function g(e,t){t.containsSemiMixedTypes===!1&&e.writeAttributeString("containsSemiMixedTypes","0"),t.containsNonDate===!1&&e.writeAttributeString("containsNonDate","0"),t.containsDate&&e.writeAttributeString("containsDate","1"),t.containsString===!1&&e.writeAttributeString("containsString","0"),t.containsBlank&&e.writeAttributeString("containsBlank","1"),t.containsMixedTypes&&e.writeAttributeString("containsMixedTypes","1"),t.containsNumber&&!t.containsDate&&e.writeAttributeString("containsNumber","1"),t.containsInteger&&!t.containsDate&&e.writeAttributeString("containsInteger","1"),t.longText&&e.writeAttributeString("longText","1"),t.containsDate?(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))):(t.containsNumber||t.containsInteger)&&(e.writeAttributeString("minValue",""+t.minValue),e.writeAttributeString("maxValue",""+t.maxValue)),t.isShared&&(e.writeAttributeString("minDate",c(new Date(t.minDate))),e.writeAttributeString("maxDate",c(new Date(t.maxDate)))),t.entities&&t.entities.length>0&&e.writeAttributeString("count",t.entities.length)}function y(e,t){var r,o;for(r=0;r<t.entities.length;r++)o=t.entities[r],C(e,o)}function S(e,t){var r=null;o.isNullOrUndefined(t.value)||(r=t.value,w(e,t,r))}function C(e,t){var r=null;switch(t.type){case n.PivotSharedItemType.B:e.writeLeafElement("b",function(){o.isNullOrUndefined(t.value)||(r=t.value?"1":"0",w(e,t,r))});break;case n.PivotSharedItemType.D:e.writeLeafElement("d",function(){o.isNullOrUndefined(t.value)||(r=c(new Date(t.value)),w(e,t,r))});break;case n.PivotSharedItemType.E:e.writeLeafElement("e",function(){S(e,t)});break;case n.PivotSharedItemType.M:e.writeLeafElement("m");break;case n.PivotSharedItemType.N:e.writeLeafElement("n",function(){S(e,t)});break;case n.PivotSharedItemType.S:e.writeLeafElement("s",function(){S(e,t)});break;case n.PivotSharedItemType.X:e.writeLeafElement("x",function(){S(e,t)})}}function w(e,t,r){o.isNullOrUndefined(r)||e.writeAttributeString("v",s(r)),o.isNullOrUndefined(t.caption)||e.writeAttributeString("c",t.caption),t.propertyCount>0&&e.writeAttributeString("cp",t.propertyCount),t.isCalculatedItem&&e.writeAttributeString("f","1"),o.isNullOrUndefined(t.isUnusedItem)||e.writeAttributeString("u","1"),o.isNullOrUndefined(t.isBold)||e.writeAttributeString("b","1"),o.isNullOrUndefined(t.backgroundColor)||e.writeAttributeString("bc",t.backgroundColor),o.isNullOrUndefined(t.foregroundColor)||e.writeAttributeString("fc",t.foregroundColor),o.isNullOrUndefined(t.isItalic)||e.writeAttributeString("i","1"),t.formatIndex>0&&e.writeAttributeString("in",t.formatIndex),o.isNullOrUndefined(t.isStrikethrough)||e.writeAttributeString("st","1"),o.isNullOrUndefined(t.isUnderline)||e.writeAttributeString("un","1")}function x(e,t){o.isNullOrUndefined(t)||e.writeElement("fieldGroup",function(){t.par>=0&&e.writeAttributeString("par",t.par),t.base>=0&&e.writeAttributeString("base",t.base)},function(){var r,i;t.hasRangeGroup&&e.writeLeafElement("rangePr",function(){t.autoStart===!1&&e.writeAttributeString("autoStart","0"),t.autoEnd===!1&&e.writeAttributeString("autoEnd","0"),o.isNullOrUndefined(t.groupInterval)||e.writeAttributeString("groupInterval",t.groupInterval),o.isNullOrUndefined(t.groupBy)||e.writeAttributeString("groupBy",t.groupBy),o.isNullOrUndefined(t.startNum)||e.writeAttributeString("startNum",t.startNum),o.isNullOrUndefined(t.endNum)||e.writeAttributeString("endNum",t.endNum),o.isNullOrUndefined(t.startDate)||e.writeAttributeString("startDate",c(new Date(t.startDate))),o.isNullOrUndefined(t.endDate)||e.writeAttributeString("endDate",c(new Date(t.endDate)))}),r=t.discreteGroup,r&&r.length>0&&e.writeElement("discretePr",function(){e.writeAttributeString("count",r.length)},function(){var t,o=function(t){e.writeLeafElement("x",function(){e.writeAttributeString("v",r[t])})};for(t=0;t<r.length;t++)o(t)}),i=t.groupItems,i&&i.length>0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",i.length)},function(){for(var t=0;t<i.length;t++)C(e,i[t])})})}function A(e,t){t.cacheHierarchies&&t.cacheHierarchies.length>0&&e.writeElement("cacheHierarchies",function(){e.writeAttributeString("count",t.cacheHierarchies.length)},function(){for(var r=0;r<t.cacheHierarchies.length;r++)T(e,t.cacheHierarchies[r])})}function T(e,t){e.writeElement("cacheHierarchy",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.measure&&e.writeAttributeString("measure","1"),t.set&&e.writeAttributeString("set","1"),t.parentSet>=0&&e.writeAttributeString("parentSet",t.parentSet),t.iconSet>0&&e.writeAttributeString("iconSet",t.iconSet),t.attribute&&e.writeAttributeString("attribute","1"),t.time&&e.writeAttributeString("time","1"),t.keyAttribute&&e.writeAttributeString("keyAttribute","1"),o.isNullOrUndefined(t.defaultMemberUniqueName)||e.writeAttributeString("defaultMemberUniqueName",t.defaultMemberUniqueName),o.isNullOrUndefined(t.allUniqueName)||e.writeAttributeString("allUniqueName",t.allUniqueName),o.isNullOrUndefined(t.allCaption)||e.writeAttributeString("allCaption",t.allCaption),o.isNullOrUndefined(t.dimensionUniqueName)||e.writeAttributeString("dimensionUniqueName",t.dimensionUniqueName),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),t.measures&&e.writeAttributeString("measures","1"),t.count>=0&&e.writeAttributeString("count",t.count),t.oneField&&e.writeAttributeString("oneField","1"),t.memberValueDatatype>0&&e.writeAttributeString("memberValueDatatype",t.memberValueDatatype),t.unbalanced||e.writeAttributeString("unbalanced","0"),t.unbalancedGroup||e.writeAttributeString("unbalancedGroup","0"),t.hidden&&e.writeAttributeString("hidden","1")},function(){t.fieldsUsage.length>0&&e.writeElement("fieldsUsage",function(){e.writeAttributeString("count",t.fieldsUsage.length)},function(){for(var r=0;r<t.fieldsUsage.length;r++)v(e,t.fieldsUsage[r])}),t.groupLevels.length>0&&e.writeElement("groupLevels",function(){e.writeAttributeString("count",t.groupLevels.length)},function(){for(var r=0;r<t.groupLevels.length;r++)k(e,t.groupLevels[r])})})}function v(e,t){e.writeElement("fieldUsage",function(){e.writeAttributeString("x",t)})}function k(e,t){e.writeElement("groupLevel",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.user&&e.writeAttributeString("user","1"),t.customRollUp&&e.writeAttributeString("customRollUp","1")},function(){t.groups.length>0&&e.writeElement("groups",function(){e.writeAttributeString("count",t.groups.length)},function(){var r,o;for(r=0;r<t.groups.length;r++)o=t.groups[r],F(e,o)})})}function F(e,t){e.writeElement("group",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.Name))),o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.uniqueParent)||e.writeAttributeString("uniqueParent",t.uniqueParent),t.id>0&&e.writeAttributeString("id",t.id)},function(){t.groupMembers.length>0&&e.writeElement("groupMembers",function(){e.writeAttributeString("count",t.groupMembers.length)},function(){for(var r=0;r<t.groupMembers.length;r++)R(e,t.groupMembers[r])})})}function R(e,t){e.writeLeafElement("groupMember",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),t.group&&e.writeAttributeString("group",1)})}function E(e,t){t.KPIs&&t.KPIs.length>0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,o;for(r=0;r<t.KPIs.length;r++)o=t.KPIs[r],I(e,o)})}function I(e,t){e.writeLeafElement("kpi",function(){o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),o.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),o.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),o.isNullOrUndefined(t.parent)||e.writeAttributeString("parent",t.parent),o.isNullOrUndefined(t.value)||e.writeAttributeString("value",t.value),o.isNullOrUndefined(t.goal)||e.writeAttributeString("goal",t.goal),o.isNullOrUndefined(t.status)||e.writeAttributeString("status",t.status),o.isNullOrUndefined(t.trend)||e.writeAttributeString("trend",t.trend),o.isNullOrUndefined(t.weight)||e.writeAttributeString("weight",t.weight),o.isNullOrUndefined(t.time)||e.writeAttributeString("time",t.time)})}function L(e,t){e.writeElement("tupleCache",function(){},function(){var r;t.entries&&t.entries.length>0&&e.writeElement("entries",function(){e.writeAttributeString("count",t.entries.length)},function(){for(r=0;r<t.entries.length;r++)e.writePivotCacheDefinitionSharedItem(e,t.entries[r])}),t.sets&&t.sets.length>0&&e.writeElement("sets",function(){e.writeAttributeString("count",t.sets.length)},function(){for(r=0;r<t.sets.length;r++)D(e,t.sets[r])}),t.queryCache&&t.queryCache.length>0&&e.writeElement("queryCache",function(){e.writeAttributeString("count",t.queryCache.length)},function(){for(r=0;r<t.queryCache.length;r++)B(e,t.queryCache[r])}),t.serverFormats&&t.serverFormats.length>0&&e.writeElement("serverFormats",function(){e.writeAttributeString("count",t.serverFormats.length)},function(){for(r=0;r<t.serverFormats.length;r++)W(e,t.serverFormats[r])})})}function D(e,t){}function B(e,t){e.writeElement("query",function(){t.mdx&&e.writeAttributeString("mdx",t.mdx)},function(){t.tpls&&t.tpls.length>0&&e.writeElement("tpls",function(){e.writeAttributeString("c",t.tpls.length)},function(){for(var r=0;r<t.tpls.length;r++)P(e,t.tpls[r])})})}function P(e,t){e.writeElement("tpl",function(){t.fld>=0&&e.writeAttributeString("fld",t.fld),t.hier>=0&&e.writeAttributeString("hier",t.hier),t.item>=0&&e.writeAttributeString("item",t.item)})}function W(e,t){e.writeLeafElement("serverFormat",function(){o.isNullOrUndefined(t.culture)||e.writeAttributeString("culture",t.culture),o.isNullOrUndefined(t.format)||e.writeAttributeString("format",t.format)})}function _(e,t){var r=t.calculatedItems;r&&e.writeElement("calculatedItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)N(e,r[t])})}function N(e,t){t&&e.writeElement("calculatedItem",function(){t.field>=0&&e.writeAttributeString("field",t.field),t.formula&&e.writeAttributeString("formula",s(t.formula))},function(){t.pivotArea&&te(e,t.pivotArea)})}function M(e,t){var r=t.calculatedMembers;r&&e.writeElement("calculatedMembers",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)O(e,r[t])})}function O(e,t){e.writeLeafElement("calculatedMember",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(t.name)),o.isNullOrUndefined(t.mdx)||e.writeAttributeString("mdx",t.mdx),o.isNullOrUndefined(t.memberName)||e.writeAttributeString("memberName",t.memberName),o.isNullOrUndefined(t.hierarchy)||e.writeAttributeString("hierarchy",t.hierarchy),o.isNullOrUndefined(t.parent)||e.writeAttributeString("parent",t.parent),t.solveOrder>0&&e.writeAttributeString("solveOrder",t.solveOrder),t.set&&e.writeAttributeString("set","1")})}function H(e,t){!t.dimensions||t.dimensions.length<=0||e.writeElement("dimensions",function(){e.writeAttributeString("count",t.dimensions.length)},function(){for(var r=0;r<t.dimensions.length;r++)G(e,t.dimensions[r])})}function G(e,t){e.writeLeafElement("dimension",function(){t.measure&&e.writeAttributeString("measure","1"),o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption)})}function U(e,t){!t.measureGroups||t.measureGroups.length<=0||e.writeElement("measureGroups",function(){e.writeAttributeString("count",t.measureGroups.length)},function(){for(var r=0;r<t.measureGroups.length;r++)J(e,t.measureGroups[r])})}function J(e,t){e.writeLeafElement("measureGroup",function(){t.name&&e.writeAttributeString("name",s(d(t.name))),t.caption&&e.writeAttributeString("caption",t.caption)})}function z(e,t){!t.measureDimensionMaps||t.measureDimensionMaps.length<=0||e.writeElement("maps",function(){e.writeAttributeString("count")},function(){for(var r=0;r<t.measureDimensionMaps.length;r++)V(e,t.measureDimensionMaps[r])})}function V(e,t){e.writeLeafElement("measureDimensionMap",function(){t.measureGroup>=0&&e.writeAttributeString("measureGroup",t.measureGroup),t.dimension>=0&&e.writeAttributeString("dimension",t.dimension)})}function j(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheRecords",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("xmlns:r",n.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),t.writeAttributeString(u,n.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",n.XFileConstants.me),t.writeAttributeString("count",e.length)},function(){for(var r=0;r<e.length;r++)X(t,e[r])}),t.getXmlString()}t.writePivotCacheRecords=j;function X(e,t){e.writeElement("r",function(){},function(){for(var r=0;r<t.length;r++)C(e,t[r])})}function K(e,t){var r=new i.XmlWriter;return r.writeDocument(),r.writeElement("pivotTableDefinition",function(){r.writeAttributeString("xmlns",n.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),r.writeAttributeString(u,n.XFileConstants.Qd),r.writeAttributeString("xmlns:xr",n.XFileConstants.me),o.isNullOrUndefined(t.name)||r.writeAttributeString("name",s(d(t.name))),r.writeAttributeString("cacheId",t.cacheId),t.applyNumberFormats===!1&&r.writeAttributeString("applyNumberFormats","0"),t.applyBorderFormats===!1&&r.writeAttributeString("applyBorderFormats","0"),t.applyFontFormats===!1&&r.writeAttributeString("applyFontFormats","0"),t.applyPatternFormats===!1&&r.writeAttributeString("applyPatternFormats","0"),t.applyAlignmentFormats===!1&&r.writeAttributeString("applyAlignmentFormats","0"),t.applyWidthHeightFormats&&r.writeAttributeString("applyWidthHeightFormats","1"),o.isNullOrUndefined(t.dataCaption)||r.writeAttributeString("dataCaption",t.dataCaption),o.isNullOrUndefined(t.grandTotalCaption)||r.writeAttributeString("grandTotalCaption",t.grandTotalCaption),o.isNullOrUndefined(t.errorCaption)||r.writeAttributeString("errorCaption",t.errorCaption),t.showError&&r.writeAttributeString("showError","1"),o.isNullOrUndefined(t.missingCaption)||r.writeAttributeString("missingCaption",t.missingCaption),t.showMissing===!1&&r.writeAttributeString("showMissing","0"),t.updatedVersion>0?r.writeAttributeString("updatedVersion",t.updatedVersion):r.writeAttributeString("updatedVersion","7"),t.minRefreshableVersion>0&&t.minRefreshableVersion<=t.createdVersion&&r.writeAttributeString("minRefreshableVersion",t.minRefreshableVersion),t.printDrill&&r.writeAttributeString("printDrill","1"),t.showDrill===!1&&r.writeAttributeString("showDrill","0"),t.showDataTips===!1&&r.writeAttributeString("showDataTips","0"),t.enableDrill===!1&&r.writeAttributeString("enableDrill","0"),t.preserveFormatting===!1&&r.writeAttributeString("preserveFormatting","0"),t.useAutoFormatting&&r.writeAttributeString("useAutoFormatting","1"),t.pageWrap>0&&r.writeAttributeString("pageWrap",t.pageWrap),t.pageOverThenDown&&r.writeAttributeString("pageOverThenDown","1"),t.rowGrandTotals===!1&&r.writeAttributeString("rowGrandTotals","0"),t.colGrandTotals===!1&&r.writeAttributeString("colGrandTotals","0"),t.itemPrintTitles&&r.writeAttributeString("itemPrintTitles","1"),t.fieldPrintTitles&&r.writeAttributeString("fieldPrintTitles","1"),t.mergeItem&&r.writeAttributeString("mergeItem","1"),t.createdVersion>0?r.writeAttributeString("createdVersion",t.createdVersion):r.writeAttributeString("createdVersion","7"),t.indent>=0&&r.writeAttributeString("indent",t.indent),t.asteriskTotals&&r.writeAttributeString("asteriskTotals","1"),t.autoFormatId>0&&r.writeAttributeString("autoFormatId",t.autoFormatId),o.isNullOrUndefined(t.colHeaderCaption)||r.writeAttributeString("colHeaderCaption",t.colHeaderCaption),t.compact===!1&&r.writeAttributeString("compact","0"),t.compactData===!1&&r.writeAttributeString("compactData","0"),t.dataOnRows&&r.writeAttributeString("dataOnRows","1"),t.dataPosition>0&&r.writeAttributeString("dataPosition",t.dataPosition),t.disableFieldList&&r.writeAttributeString("disableFieldList","1"),t.editData&&r.writeAttributeString("editData","1"),t.enableFieldProperties===!1&&r.writeAttributeString("enableFieldProperties","0"),t.enableWizard===!1&&r.writeAttributeString("enableWizard","0"),t.gridDropZones&&r.writeAttributeString("gridDropZones","1"),t.immersive&&r.writeAttributeString("immersive","1"),t.mdxSubqueries&&r.writeAttributeString("mdxSubqueries","1"),t.showHeaders===!1&&r.writeAttributeString("showHeaders","0"),t.outline&&r.writeAttributeString("outline","1"),t.outlineData&&r.writeAttributeString("outlineData","1"),t.multipleFieldFilters===!1&&r.writeAttributeString("multipleFieldFilters","0"),t.chartFormat>0&&r.writeAttributeString("chartFormat",t.chartFormat),t.fieldListSortAscending&&r.writeAttributeString("fieldListSortAscending","1"),t.customListSort===!1&&r.writeAttributeString("customListSort","0"),o.isNullOrUndefined(t.pageStyle)||r.writeAttributeString("pageStyle",t.PageStyle),o.isNullOrUndefined(t.pivotTableStyle)||r.writeAttributeString("pivotTableStyle",t.pivotTableStyle),t.published&&r.writeAttributeString("published","1"),o.isNullOrUndefined(t.rowHeaderCaption)||r.writeAttributeString("rowHeaderCaption",t.rowHeaderCaption),t.showCalcMbrs===!1&&r.writeAttributeString("showCalcMbrs","0"),t.showDataDropDown&&r.writeAttributeString("showDataDropDown","0"),t.showDropZones===!1&&r.writeAttributeString("showDropZones","0"),t.showEmptyCol===!1&&r.writeAttributeString("showEmptyCol","0"),t.showEmptyRow===!1&&r.writeAttributeString("showEmptyRow","0"),t.showItems===!1&&r.writeAttributeString("showItems","0"),t.showMemberPropertyTips===!1&&r.writeAttributeString("showMemberPropertyTips","0"),t.showMultipleLabel===!1&&r.writeAttributeString("showMultipleLabel","0"),t.subtotalHiddenItems&&r.writeAttributeString("subtotalHiddenItems","1"),o.isNullOrUndefined(t.tag)||r.writeAttributeString("tag",t.tag),o.isNullOrUndefined(t.vacatedStyle)||r.writeAttributeString("vacatedStyle",t.vacatedStyle),t.visualTotals===!1&&r.writeAttributeString("visualTotals","0")},function(){q(r,t),Y(r,t),ie(r,t,!0),ae(r,t),ie(r,t,!1),le(r,t),de(r,t),fe(r,t),pe(r,t),ge(r,t),Se(r,t),we(r,t),ve(r,t),ke(e,r,t),Ee(r,t),Ie(r,t),De(r,t)}),r.getXmlString()}t.writePivotTable=K;function q(e,t){e.writeLeafElement("location",function(){e.writeAttributeString("ref",t.ref),t.firstHeaderRow>=0&&e.writeAttributeString("firstHeaderRow",t.firstHeaderRow),t.firstDataRow>=0&&e.writeAttributeString("firstDataRow",t.firstDataRow),t.firstDataCol>=0&&e.writeAttributeString("firstDataCol",t.firstDataCol),t.rowPageCount>0&&e.writeAttributeString("rowPageCount",t.rowPageCount),
53
- t.colPageCount>0&&e.writeAttributeString("colPageCount",t.colPageCount)})}function Y(e,t){e.writeElement("pivotFields",function(){e.writeAttributeString("count",t.fields.length)},function(){for(var r=0;r<t.fields.length;r++)Q(e,t.fields[r],t)})}function Q(e,t,r){t.items&&t.items.length>0?e.writeElement("pivotField",function(){Z(e,t)},function(){$(e,t,r)}):r.fillDownLabels?e.writeElement("pivotField",function(){Z(e,t)},function(){e.writeElement("extLst",function(){Be(e,r)})}):e.writeLeafElement("pivotField",function(){Z(e,t)})}function Z(e,t){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.axis)||e.writeAttributeString("axis",t.axis),t.allDrilled&&e.writeAttributeString("allDrilled","1"),t.autoShow&&e.writeAttributeString("autoShow","1"),t.dataField&&e.writeAttributeString("dataField","1"),t.compact===!1&&e.writeAttributeString("compact","0"),t.numberFormatId>=0&&e.writeAttributeString("numFmtId",t.numberFormatId),t.outline===!1&&e.writeAttributeString("outline","0"),t.subtotalTop===!1&&e.writeAttributeString("subtotalTop","0"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.showAll===!1&&e.writeAttributeString("showAll","0"),t.insertBlankRow&&e.writeAttributeString("insertBlankRow","1"),t.insertPageBreak&&e.writeAttributeString("insertPageBreak","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.dataSourceSort&&e.writeAttributeString("dataSourceSort","1"),t.defaultAttributeDrillState&&e.writeAttributeString("defaultAttributeDrillState","1"),t.dragOff===!1&&e.writeAttributeString("dragOff","0"),t.dragToCol===!1&&e.writeAttributeString("dragToCol","0"),t.dragToData===!1&&e.writeAttributeString("dragToData","0"),t.dragToPage===!1&&e.writeAttributeString("dragToPage","0"),t.dragToRow===!1&&e.writeAttributeString("dragToRow","0"),t.hiddenLevel&&e.writeAttributeString("hiddenLevel","1"),t.hideNewItems&&e.writeAttributeString("hideNewItems","1"),t.itemPageCount&&10!==t.itemPageCount&&e.writeAttributeString("itemPageCount",t.itemPageCount),t.measureFilter&&e.writeAttributeString("measureFilter","1"),t.nonAutoSortDefault&&e.writeAttributeString("nonAutoSortDefault","1"),t.serverField&&e.writeAttributeString("serverField","1"),t.showDropDowns===!1&&e.writeAttributeString("showDropDowns","0"),t.showPropAsCaption&&e.writeAttributeString("showPropAsCaption","1"),t.showPropCell&&e.writeAttributeString("showPropCell","1"),t.showPropTip&&e.writeAttributeString("showPropTip","1"),o.isNullOrUndefined(t.sortType)||e.writeAttributeString("sortType",t.sortType),t.rankBy>=0&&e.writeAttributeString("rankBy",t.rankBy),t.defaultSubtotal===!1&&e.writeAttributeString("defaultSubtotal","0"),o.isNullOrUndefined(t.subtotalCaption)||e.writeAttributeString("subtotalCaption",t.subtotalCaption),t.topAutoShow===!1&&e.writeAttributeString("topAutoShow","0"),o.isNullOrUndefined(t.uniqueMemberProperty)||e.writeAttributeString("uniqueMemberProperty",t.uniqueMemberProperty),t.varSubtotal&&e.writeAttributeString("varSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1")}function $(e,t,r){t.items&&t.items.length>0&&e.writeElement("items",function(){e.writeAttributeString("count",t.items.length)},function(){for(var r=0;r<t.items.length;r++)ee(e,t.items[r])}),o.isNullOrUndefined(t.autoSortScope)||e.writeElement("autoSortScope",function(){te(e,t.autoSortScope)}),r.fillDownLabels&&e.writeElement("extLst",function(){Be(e,r)})}function ee(e,t){e.writeLeafElement("item",function(){t.childItems&&e.writeAttributeString("c","1"),t.expanded===!1&&e.writeAttributeString("d","0"),t.drillAcross===!1&&e.writeAttributeString("e","0"),t.calculatedMember&&e.writeAttributeString("f","1"),t.hidden&&e.writeAttributeString("h","1"),t.missing&&e.writeAttributeString("m","1"),o.isNullOrUndefined(t.caption)||e.writeAttributeString("n",t.caption),t.character&&e.writeAttributeString("s","1"),t.collapse===!0&&e.writeAttributeString("sd","0"),t.type&&e.writeAttributeString("t",t.type),o.isNullOrUndefined(t.indexValue)||e.writeAttributeString("x",t.indexValue)})}function te(e,t,r){t&&t.missed===!0||e.writeElement("pivotArea",function(){t.field&&t.field!==-1&&e.writeAttributeString("field",t.field),o.isNullOrUndefined(t.type)||"normal"===t.type||e.writeAttributeString("type",t.type),t.dataOnly===!1&&e.writeAttributeString("dataOnly","0"),t.dataOnly===!0&&e.writeAttributeString("dataOnly","1"),t.labelOnly&&e.writeAttributeString("labelOnly","1"),t.grandRow&&e.writeAttributeString("grandRow","1"),t.grandCol&&e.writeAttributeString("grandCol","1"),t.cacheIndex&&e.writeAttributeString("cacheIndex","1"),o.isNullOrUndefined(t.outline)||e.writeAttributeString("outline","0"),t.collapsedLevelsAreSubtotals&&e.writeAttributeString("collapsedLevelsAreSubtotals","1"),t.axis&&(r||"axisValue"!==t.axis)&&e.writeAttributeString("axis",t.axis),t.fieldPosition>=0&&e.writeAttributeString("fieldPosition",t.fieldPosition),o.isNullOrUndefined(t.offset)||e.writeAttributeString("offset",t.offset)},function(){t.references&&t.references.length>0&&e.writeElement("references",function(){e.writeAttributeString("count",t.references.length)},function(){for(var r=0;r<t.references.length;r++)re(e,t.references[r])})})}function re(e,t){e.writeElement("reference",function(){!o.isNullOrUndefined(t.field)&&t.field>=0&&e.writeAttributeString("field",t.field),e.writeAttributeString("count",t.indexes?t.indexes.length:0),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.byPosition&&e.writeAttributeString("byPosition","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.defaultSubtotal&&e.writeAttributeString("defaultSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.relative&&e.writeAttributeString("relative","1"),t.selected===!1&&e.writeAttributeString("selected","0"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1"),t.varSubtotal&&e.writeAttributeString("varSubtotal","1")},function(){if(t.indexes&&t.indexes.length>0)for(var r=0;r<t.indexes.length;r++)oe(e,t.indexes[r])})}function oe(e,t){e.writeLeafElement("x",function(){e.writeAttributeString("v",t)})}function ie(e,t,r){(r&&t.rowFields&&t.rowFields.length>0||!r&&t.columnFields&&t.columnFields.length>0)&&e.writeElement(r?"rowFields":"colFields",function(){e.writeAttributeString("count",r?t.rowFields.length:t.columnFields.length)},function(){var o,i=r?t.rowFields:t.columnFields;for(o=0;o<i.length;o++)ne(e,i[o])})}function ne(e,t){e.writeLeafElement("field",function(){e.writeAttributeString("x",t)})}function ae(e,t){var r=[];r=t.rowItems,r.length<=0||e.writeElement("rowItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function le(e,t){var r=t.columnItems;!o.isNullOrUndefined(r)&&r.length>0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function se(e,t){e.writeElement("i",function(){o.isNullOrUndefined(t.type)||e.writeAttributeString("t",t.type),t.repeatCount>0&&e.writeAttributeString("r",t.repeatCount),t.dataFieldIndex>0&&e.writeAttributeString("i",t.dataFieldIndex)},function(){if(t.pivotItemIndexes&&t.pivotItemIndexes.length>0)for(var r=0;r<t.pivotItemIndexes.length;r++)ce(e,t.pivotItemIndexes[r])})}function ce(e,t){e.writeLeafElement("x",function(){t&&t>0&&e.writeAttributeString("v",t)})}function de(e,t){t.pageFields&&t.pageFields.length>0&&e.writeElement("pageFields",function(){e.writeAttributeString("count",t.pageFields.length)},function(){for(var r=0;r<t.pageFields.length;r++)ue(e,t.pageFields[r])})}function ue(e,t){e.writeLeafElement("pageField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.cap)||e.writeAttributeString("cap",t.cap),o.isNullOrUndefined(t.item)||e.writeAttributeString("item",t.item),o.isNullOrUndefined(t.hier)||e.writeAttributeString("hier",t.hier)})}function fe(e,t){t.dataFields&&t.dataFields.length>0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r<t.dataFields.length;r++)be(e,t.dataFields[r])})}function be(e,t){var r=["difference","index","normal","percent","percentDiff","percentOfCol","percentOfRow","percentOfTotal","runTotal"].indexOf(t.showDataAs)===-1;e.writeElement("dataField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.subtotal)||e.writeAttributeString("subtotal",t.subtotal),o.isNullOrUndefined(t.showDataAs)||r||e.writeAttributeString("showDataAs",t.showDataAs),o.isNullOrUndefined(t.baseField)||e.writeAttributeString("baseField",t.baseField),o.isNullOrUndefined(t.baseItem)||e.writeAttributeString("baseItem",t.baseItem),o.isNullOrUndefined(t.numberFormatId)||e.writeAttributeString("numFmtId",t.numberFormatId)},function(){!o.isNullOrUndefined(t.showDataAs)&&r&&he(e,t.showDataAs)})}function he(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{E15A36E0-9728-4e99-A89B-3F7291B0FE68}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:dataField",function(){e.writeAttributeString("pivotShowAs",t)})})})}function pe(e,t){var r=t.formats;r&&r.length>0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)me(e,r[t])})}function me(e,t){t&&t.style&&t.pivotArea&&!t.pivotArea.missed&&e.writeElement("format",function(){"Formatting"===t.action||o.isNullOrUndefined(t.action)||e.writeAttributeString("action",t.action),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function ge(e,t){var r=t.pivotTableConditionFormats;r&&r.length>0&&e.writeElement("conditionalFormats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)ye(e,r[t])})}function ye(e,t){e.writeElement("conditionalFormat",function(){t.scope&&"Selection"!==t.scope&&e.writeAttributeString("scope",t.scope),t.type&&"None"!==t.type&&e.writeAttributeString("type",t.type),e.writeAttributeString("priority",t.rule.priority||0)},function(){t.pivotAreas&&t.pivotAreas.length>0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r<t.pivotAreas.length;r++)te(e,t.pivotAreas[r])})})}function Se(e,t){t.chartFormats&&t.chartFormats.length>0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r<t.chartFormats.length;r++)Ce(e,t.chartFormats[r])})}function Ce(e,t){e.writeElement("chartFormat",function(){t.chart>=0&&e.writeAttributeString("chart",t.chart),t.format>=0&&e.writeAttributeString("format",t.format),t.series&&e.writeAttributeString("series","1")},function(){o.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function we(e,t){t.pivotHierarchies&&t.pivotHierarchies.length>0&&e.writeElement("pivotHierarchies",function(){e.writeAttributeString("count",t.pivotHierarchies.length)},function(){for(var r=0;r<t.pivotHierarchies.length;r++)xe(e,t.pivotHierarchies[r])})}function xe(e,t){e.writeElement("pivotHierarchy",function(){o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.dragOff||e.writeAttributeString("dragOff","0"),t.dragToRow||e.writeAttributeString("dragToRow","0"),t.dragToCol||e.writeAttributeString("dragToCol","0"),t.dragToPage||e.writeAttributeString("dragToPage","0"),t.dragToData&&e.writeAttributeString("dragToData","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.outline&&e.writeAttributeString("outline","1"),t.showInFieldList&&e.writeAttributeString("showInFieldList","1"),t.subtotalTop&&e.writeAttributeString("subtotalTop","1")},function(){var r;t.memberProperties&&t.memberProperties.length>0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r<t.memberProperties.length;r++)Ae(e,t.memberProperties[r])}),t.members&&t.members.length>0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r<t.members.length;r++)Te(e,t.members[r])})})}function Ae(e,t){e.writeLeafElement("mp",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),t.showCell&&e.writeAttributeString("showCell","1"),t.showTip&&e.writeAttributeString("showTip","1"),t.showAsCaption&&e.writeAttributeString("showAsCaption","1"),t.nameLen>0&&e.writeAttributeString("nameLen",s(t.nameLen)),t.pPos>=0&&e.writeAttributeString("pPos",t.pPos),t.pLen>0&&e.writeAttributeString("pLen",t.pLen),t.level>0&&e.writeAttributeString("level",t.level),t.field>=0&&e.writeAttributeString("field",t.field)})}function Te(e,t){e.writeLeafElement("member",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name)))})}function ve(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){var r=t.styleName||t.style&&t.style.name;o.isNullOrUndefined(r)||e.writeAttributeString("name",s(d(r))),t.showRowHeaders&&e.writeAttributeString("showRowHeaders","1"),t.showColHeaders&&e.writeAttributeString("showColHeaders","1"),t.showRowStripes===!1?e.writeAttributeString("showRowStripes","0"):e.writeAttributeString("showRowStripes","1"),t.showColStripes===!1?e.writeAttributeString("showColStripes","0"):e.writeAttributeString("showColStripes","1"),t.showLastColumn&&e.writeAttributeString("showLastColumn","1")})}function ke(e,t,r){r.pivotFilters&&r.pivotFilters.length>0&&t.writeElement("filters",function(){t.writeAttributeString("count",r.pivotFilters.length)},function(){var o,i;for(o=0;o<r.pivotFilters.length;o++)i=r.pivotFilters[o],41!==i.operator&&42!==i.operator&&Fe(e,t,i)})}function Fe(e,r,i){var n=i.operator,a=i.conType,c=t.captionCompareTypeExcel[a][n];r.writeElement("filter",function(){i.fld>=0&&r.writeAttributeString("fld",i.fld),i.mpFld>=0&&r.writeAttributeString("mpFld",i.mpFld),void 0!==c&&r.writeAttributeString("type",c),o.isNullOrUndefined(i.evalOrder)||r.writeAttributeString("evalOrder",i.evalOrder),i.id>=0&&r.writeAttributeString("id",i.id),i.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",i.iMeasureHier),i.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",i.iMeasureFld),o.isNullOrUndefined(i.name)||r.writeAttributeString("name",s(d(i.name))),o.isNullOrUndefined(i.description)||r.writeAttributeString("description",i.description),o.isNullOrUndefined(i.stringValue1)||r.writeAttributeString("stringValue1",i.stringValue1),o.isNullOrUndefined(i.stringValue2)||r.writeAttributeString("stringValue2",i.stringValue2)},function(){var t,n;o.isNullOrUndefined(i.autoFilter)||(t=e.Aj(i,c),l.writePivotAutoFilter(r,t),n=i.autoFilter&&i.autoFilter.filterItemMap&&i.autoFilter.filterItemMap[0]&&i.autoFilter.filterItemMap[0].conditions&&i.autoFilter.filterItemMap[0].conditions[0],n&&n.isWholeDay&&r.writeElement("extLst",function(){Re(r,n)}))})}function Re(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{0605FD5F-26C8-4aeb-8148-2DB25E43C511}"),e.writeAttributeString("xmlns:x15","http://schemas.microsoft.com/office/spreadsheetml/2010/11/main")},function(){e.writeLeafElement("x15:pivotFilter",function(){t.isWholeDay&&e.writeAttributeString("useWholeDay","1")})})}function Ee(e,t){t.rowHierarchies&&t.rowHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.rowHierarchies.length)},function(){for(var r=0;r<t.rowHierarchies.length;r++)Le(e,t.rowHierarchies[r],!0)})}function Ie(e,t){t.colHierarchies&&t.colHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r<t.colHierarchies.length;r++)Le(e,t.colHierarchies[r],!1)})}function Le(e,t,r){var o=r?"rowHierarchyUsage":"colHierarchyUsage";e.writeLeafElement(o,function(){e.writeAttributeString("hierarchyUsage",t)})}function De(e,t){e.writeElement("extLst",function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{962EF5D1-5CA2-4c93-8EF4-DBF5C05439D2}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotTableDefinition",function(){t.altText&&e.writeAttributeString("altText",t.altText),t.fillDownLabels&&e.writeAttributeString("fillDownLabelsDefault","1"),t.altTextSummary&&e.writeAttributeString("altTextSummary",t.altTextSummary),t.hideValuesRow&&e.writeAttributeString("hideValuesRow","1"),e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main")})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{747A6164-185A-40DC-8AA5-F01512510D54}"),e.writeAttributeString("xmlns:xpdl","http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout")},function(){e.writeLeafElement("xpdl:pivotTableDefinition16",function(){t.subtotalsOnTopDefault===!1&&e.writeAttributeString("SubtotalsOnTopDefault","0"),t.enabledSubtotalsDefault===!1&&e.writeAttributeString("EnabledSubtotalsDefault","0"),t.insertBlankRowDefault===!0&&e.writeAttributeString("InsertBlankRowDefault","1")})})})}function Be(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{2946ED86-A175-432a-8AC1-64E0C546D7DE}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotField",function(){t.fillDownLabels&&e.writeAttributeString("fillDownLabels","1")})})}},"./src/xlsx-io/writer/print-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.StringEx.O,n=o.Util.oa,a=r("./src/xml-io/xml-writer.ts"),l=r("./src/common/excel-types.ts"),s=r("./src/datamodel/excel-helper.ts"),c={0:"auto",1:"downThenOver",2:"overThenDown"},d={0:"auto",1:"portrait",2:"landscape"};function u(e,t,r){var o=r.Kj(t);o&&e.writeLeafElement("pageMargins",function(){e.writeAttributeString("left",o.left),e.writeAttributeString("right",o.right),e.writeAttributeString("top",o.top),e.writeAttributeString("bottom",o.bottom),e.writeAttributeString("header",o.header),e.writeAttributeString("footer",o.footer)})}t.writePageMargins=u;function f(e,t,r){var o=r.Lj(t);o&&(o.printGridLine||o.printRowColumnsHeaders||o.horizontalCentered||o.verticalCentered)&&e.writeLeafElement("printOptions",function(){o.printRowColumnsHeaders&&e.writeAttributeString("headings","1"),o.printGridLine&&e.writeAttributeString("gridLines","1"),o.horizontalCentered&&e.writeAttributeString("horizontalCentered","1"),o.verticalCentered&&e.writeAttributeString("verticalCentered","1")})}t.writePrintOptions=f;function b(e,t,r){var i=r.Mj(t);i&&e.writeLeafElement("pageSetup",function(){var t=i.useSmartPrint,r=i.paperSizeIndex,n=i.zoomFactor,a=i.firstPageNumber,l=i.smartPrintPagesWidth,u=i.smartPrintPagesHeight,f=c[i.pageOrder],b=d[i.orientation],h=i.copies;t&&(void 0===l&&(l=0),void 0===u&&(u=0)),!o.isNullOrUndefined(r)&&r>1&&e.writeAttributeString("paperSize",r),!o.isNullOrUndefined(n)&&Math.abs(n-1)>.01&&e.writeAttributeString("scale",Math.round(100*n)),o.isNullOrUndefined(a)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(a)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(u>0&&1!==u||0===u)&&e.writeAttributeString("fitToHeight",u),o.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),o.isNullOrUndefined(b)||0===b||e.writeAttributeString("orientation",b),i.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),i.draft===!0&&e.writeAttributeString("draft","1"),i.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=b;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!i(e.header)||!i(e.footer)||!i(t.headerOddPage)||!i(t.footerOddPage)||!i(t.headerEvenPage)||!i(t.footerEvenPage)||!i(t.headerFirstPage)||!i(t.footerFirstPage))}function p(e,t,r){var o,a=r.Mj(t);a&&h(a)&&(o=a.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){o.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),o.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),o.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),o.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){i(o.headerOddPage)?i(a.header)||e.writeElementString("oddHeader",n(a.header)):e.writeElementString("oddHeader",n(o.headerOddPage)),i(o.footerOddPage)?i(a.footer)||e.writeElementString("oddFooter",n(a.footer)):e.writeElementString("oddFooter",n(o.footerOddPage)),i(o.headerEvenPage)||e.writeElementString("evenHeader",n(o.headerEvenPage)),i(o.footerEvenPage)||e.writeElementString("evenFooter",n(o.footerEvenPage)),i(o.headerFirstPage)||e.writeElementString("firstHeader",n(o.headerFirstPage)),i(o.footerFirstPage)||e.writeElementString("firstFooter",n(o.footerFirstPage))}))}t.writeHeadFooter=p;function m(e,t,r){t&&t.length>0&&e.writeElement(r,function(){var r=t.length;e.writeAttributeString("count",r),e.writeAttributeString("manualBreakCount",r)},function(){t.forEach(function(t){t>0&&e.writeLeafElement("brk",function(){e.writeAttributeString("id",t),e.writeAttributeString("man","1"),"rowBreaks"===r?e.writeAttributeString("max",l.ExcelConstants.wb):"colBreaks"===r&&e.writeAttributeString("max",l.ExcelConstants.vb)})})})}function g(e,t,r){var o=r.Mj(t);o&&(m(e,o.rowBreakLines,"rowBreaks"),m(e,o.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=g;function y(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=y;function S(e,t,r,o){e.writeElement("v:shape",function(){e.writeAttributeString("id",t.name),t.spid?e.writeAttributeString("o:spid",t.spid):e.writeAttributeString("o:spid","_x0000_s10"+r),e.writeAttributeString("type","#_x0000_t75"),t.style?e.writeAttributeString("style",t.style):e.writeAttributeString("style","position:absolute;margin-left:0;margin-top:0;width:100%pt;height:100%pt;z-index:"+o)},function(){e.writeLeafElement("v:imagedata",function(){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title",t.name)}),t.cellRange||e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t")}),t.cellRange&&e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Pict")},function(){e.writeLeafElement("x:SizeWithCells"),e.writeElementString("x:Anchor",t.anchor),e.writeElementString("x:FmlaPict",t.cellRange),e.writeElementString("x:CF","Pict"),e.writeElementString("x:Camera","")})})}function C(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}t.writeVmlDrawingFile=function(e){var t=new a.XmlWriter;return t.writeElement("xml",function(){C(t,"xmlns:v","urn:schemas-microsoft-com:vml","xmlns:o","urn:schemas-microsoft-com:office:office","xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){t.writeElement("o:shapelayout",function(){t.writeAttributeString("v:ext","edit")},function(){t.writeLeafElement("o:idmap",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("data","1")})}),t.writeElement("v:shapetype",function(){t.writeAttributeString("id","_x0000_t75"),t.writeAttributeString("coordsize","21600,21600"),t.writeAttributeString("o:spt","75"),t.writeAttributeString("o:preferrelative","t"),t.writeAttributeString("path","m@4@5l@4@11@9@11@9@5xe"),t.writeAttributeString("filled","f"),t.writeAttributeString("stroked","f")},function(){t.writeLeafElement("v:stroke",function(){t.writeAttributeString("joinstyle","miter")}),t.writeElement("v:formulas",function(){t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","if lineDrawn pixelLineWidth 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 1 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum 0 0 @1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @2 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 0 1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @6 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @8 21600 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @10 21600 0")})}),t.writeLeafElement("v:path",function(){C(t,"o:extrusionok","f","gradientshapeok","t","o:connecttype","rect")}),t.writeLeafElement("o:lock",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("aspectratio","t")})});var r=25,o=1;e.forEach(function(e){(["LH","CH","RH","LF","CF","RF","LHEVEN","CHEVEN","RHEVEN","LFEVEN","CFEVEN","RFEVEN","LHFIRST","CHFIRST","RHFIRST","LFFIRST","CFFIRST","RFFIRST"].indexOf(e.name)>=0||e.name.indexOf("Picture_x0020")!==-1)&&(S(t,e,r,o),r++,o++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),function(e){e[e.disc=0]="disc",e[e.circle=1]="circle",e[e.square=2]="square",e[e.decimal=3]="decimal",e[e.lowerAlpha=4]="lowerAlpha",e[e.upperAlpha=5]="upperAlpha",e[e.lowerRoman=6]="lowerRoman",e[e.upperRoman=7]="upperRoman",e[e.lowerGreek=8]="lowerGreek"}(s||(s={})),c=void 0;function d(e,t){var r,o,i;if(e+=1,e<1||e>3999)return"i";for(r=[{value:1e3,numeral:t?"m":"M"},{value:900,numeral:t?"cm":"CM"},{value:500,numeral:t?"d":"D"},{value:400,numeral:t?"cd":"CD"},{value:100,numeral:t?"c":"C"},{value:90,numeral:t?"xc":"XC"},{value:50,numeral:t?"l":"L"},{value:40,numeral:t?"xl":"XL"},{value:10,numeral:t?"x":"X"},{value:9,numeral:t?"ix":"IX"},{value:5,numeral:t?"v":"V"},{value:4,numeral:t?"iv":"IV"},{value:1,numeral:t?"i":"I"}],o="",i=0;i<r.length;i++)for(;e>=r[i].value;)o+=r[i].numeral,e-=r[i].value;return o}function u(e,t){var r="",o=t?97:65;if(0===e)return String.fromCharCode(o);for(;e>0;)r+=String.fromCharCode(e%26+o),e=Math.floor(e/26);return r}function f(e){var t,r;if(0===e)return"\u03b1";for(t=["\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7","\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be","\u03bf","\u03c0","\u03c1","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7","\u03c8","\u03c9"],r="";e>0;)r+=t[e%24],e=Math.floor(e/24);return r}function b(e,t){switch(e){case s.lowerRoman:return d(t,!0)+". ";case s.lowerAlpha:return u(t,!0)+". ";case s.upperRoman:return d(t)+". ";case s.upperAlpha:return u(t)+". ";case s.decimal:return t+1+". ";case s.lowerGreek:return f(t)+". "}}function h(e){switch(e){case s.disc:return"\u25cf ";case s.circle:return"\u25cb ";case s.square:return"\u25a0 "}}function p(e){var t,r,o,i=[],n=[];for(t=0,r=e.length;t<r;t++)o=e[t],o.richText?(n.length>0&&(i.push(n),n=[]),i.push(o)):n.push(o);return n.length>0&&i.push(n),i}function m(e){return e!==s.circle&&e!==s.square&&e!==s.disc}function g(e){var t,r,o,i,n,a,l,s=p(e),d={},u={},f=[];for(r=0,o=s.length;r<o;r++)i=s[r],i.richText?(n=i.level||0,a=void 0,m(i.type)?(i.type===u[n]&&n<=t?d[n]++:d[n]=0,a=b(i.type,d[n])):a=h(i.type),t=n,u[n]=i.type,l=Array(4*(n+1)),l.fill(" "),f=f.concat([{text:l.join("")+a}],i.richText)):(f=f.concat(i),u={},t=c,d={}),r!==o-1&&f.push({text:"\r\n"});return f}function y(e){var t,r,o;for(t=0,r=e.richText.length;t<r;t++)if(e.richText[t].richText)return o=g(e.richText),{richText:o};return e}function S(e){var t=new n.XmlWriter;return t.writeDocument(),t.writeElement("sst",function(){t.writeAttributeString("xmlns",i.XFileConstants.Hd),t.writeAttributeString("count",""+e.Pn),t.writeAttributeString("uniqueCount",""+e.Qn.length)},function(){var r,i,n=function(r,i){var n=e.Qn[r],s=n.value,d=s.length!==s.trim().length;t.writeElement("si",c,function(){var e,r,i,u,f=function(){d&&t.writeAttributeString("xml:space","preserve")};if(n.richText)for(e=n.richText,e&&e.length>0&&(r=y(n),e=r.richText),i=function(r){e[r].text!==c&&t.writeElement("r",c,function(){l.writerRichTextStyle(t,a.ConverterHelper.fromRichTextStyle(e[r].style));var i=e[r].text;i&&i.length>32767&&(i=i.slice(0,32767)),i&&(d=i.length!==i.trim().length),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(i,!0)))})})},u=0;u<e.length;u++)i(u);else s&&s.length>32767&&(s=s.slice(0,32767)),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(s,!0)))})})};for(r=0,i=e.Qn.length;r<i;r++)n(r,i)}),t.getXmlString()}t.writeSharedString=S},"./src/xlsx-io/writer/slicer-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/datamodel/excel-style.ts"),l=a.UnitHelper.pixelToEMU,s=n.Util.oa,c=n.Util.ua,d="http://schemas.microsoft.com/office/drawing/2012/timeslicer",u="mc:Ignorable";function f(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("slicers",function(){t.writeAttributeString("xmlns",i.XFileConstants.ce),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString(u,"x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("slicer",function(){t.writeAttributeString("name",s(c(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",s(e.nameInFormula)),t.writeAttributeString("caption",s(e.captionName)),n.isNullOrUndefined(e.columnCount)||t.writeAttributeString("columnCount",e.columnCount),n.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showCaption","0"),n.isNullOrUndefined(e.style)||n.isNullOrUndefined(e.style.name)||t.writeAttributeString("style",s(e.style.name));var r=241300;e.itemHeight&&(r=l(e.itemHeight+4)),t.writeAttributeString("rowHeight",r),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeSlicer=f;function b(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function h(e,t,r){var o=null;return r.forEach(function(r){
53
+ t.colPageCount>0&&e.writeAttributeString("colPageCount",t.colPageCount)})}function Y(e,t){e.writeElement("pivotFields",function(){e.writeAttributeString("count",t.fields.length)},function(){for(var r=0;r<t.fields.length;r++)Q(e,t.fields[r],t)})}function Q(e,t,r){t.items&&t.items.length>0?e.writeElement("pivotField",function(){Z(e,t)},function(){$(e,t,r)}):r.fillDownLabels?e.writeElement("pivotField",function(){Z(e,t)},function(){e.writeElement("extLst",function(){Be(e,r)})}):e.writeLeafElement("pivotField",function(){Z(e,t)})}function Z(e,t){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.axis)||e.writeAttributeString("axis",t.axis),t.allDrilled&&e.writeAttributeString("allDrilled","1"),t.autoShow&&e.writeAttributeString("autoShow","1"),t.dataField&&e.writeAttributeString("dataField","1"),t.compact===!1&&e.writeAttributeString("compact","0"),t.numberFormatId>=0&&e.writeAttributeString("numFmtId",t.numberFormatId),t.outline===!1&&e.writeAttributeString("outline","0"),t.subtotalTop===!1&&e.writeAttributeString("subtotalTop","0"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.showAll===!1&&e.writeAttributeString("showAll","0"),t.insertBlankRow&&e.writeAttributeString("insertBlankRow","1"),t.insertPageBreak&&e.writeAttributeString("insertPageBreak","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.dataSourceSort&&e.writeAttributeString("dataSourceSort","1"),t.defaultAttributeDrillState&&e.writeAttributeString("defaultAttributeDrillState","1"),t.dragOff===!1&&e.writeAttributeString("dragOff","0"),t.dragToCol===!1&&e.writeAttributeString("dragToCol","0"),t.dragToData===!1&&e.writeAttributeString("dragToData","0"),t.dragToPage===!1&&e.writeAttributeString("dragToPage","0"),t.dragToRow===!1&&e.writeAttributeString("dragToRow","0"),t.hiddenLevel&&e.writeAttributeString("hiddenLevel","1"),t.hideNewItems&&e.writeAttributeString("hideNewItems","1"),t.itemPageCount&&10!==t.itemPageCount&&e.writeAttributeString("itemPageCount",t.itemPageCount),t.measureFilter&&e.writeAttributeString("measureFilter","1"),t.nonAutoSortDefault&&e.writeAttributeString("nonAutoSortDefault","1"),t.serverField&&e.writeAttributeString("serverField","1"),t.showDropDowns===!1&&e.writeAttributeString("showDropDowns","0"),t.showPropAsCaption&&e.writeAttributeString("showPropAsCaption","1"),t.showPropCell&&e.writeAttributeString("showPropCell","1"),t.showPropTip&&e.writeAttributeString("showPropTip","1"),o.isNullOrUndefined(t.sortType)||e.writeAttributeString("sortType",t.sortType),t.rankBy>=0&&e.writeAttributeString("rankBy",t.rankBy),t.defaultSubtotal===!1&&e.writeAttributeString("defaultSubtotal","0"),o.isNullOrUndefined(t.subtotalCaption)||e.writeAttributeString("subtotalCaption",t.subtotalCaption),t.topAutoShow===!1&&e.writeAttributeString("topAutoShow","0"),o.isNullOrUndefined(t.uniqueMemberProperty)||e.writeAttributeString("uniqueMemberProperty",t.uniqueMemberProperty),t.varSubtotal&&e.writeAttributeString("varSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1")}function $(e,t,r){t.items&&t.items.length>0&&e.writeElement("items",function(){e.writeAttributeString("count",t.items.length)},function(){for(var r=0;r<t.items.length;r++)ee(e,t.items[r])}),o.isNullOrUndefined(t.autoSortScope)||e.writeElement("autoSortScope",function(){te(e,t.autoSortScope)}),r.fillDownLabels&&e.writeElement("extLst",function(){Be(e,r)})}function ee(e,t){e.writeLeafElement("item",function(){t.childItems&&e.writeAttributeString("c","1"),t.expanded===!1&&e.writeAttributeString("d","0"),t.drillAcross===!1&&e.writeAttributeString("e","0"),t.calculatedMember&&e.writeAttributeString("f","1"),t.hidden&&e.writeAttributeString("h","1"),t.missing&&e.writeAttributeString("m","1"),o.isNullOrUndefined(t.caption)||e.writeAttributeString("n",t.caption),t.character&&e.writeAttributeString("s","1"),t.collapse===!0&&e.writeAttributeString("sd","0"),t.type&&e.writeAttributeString("t",t.type),o.isNullOrUndefined(t.indexValue)||e.writeAttributeString("x",t.indexValue)})}function te(e,t,r){t&&t.missed===!0||e.writeElement("pivotArea",function(){t.field&&t.field!==-1&&e.writeAttributeString("field",t.field),o.isNullOrUndefined(t.type)||"normal"===t.type||e.writeAttributeString("type",t.type),t.dataOnly===!1&&e.writeAttributeString("dataOnly","0"),t.dataOnly===!0&&e.writeAttributeString("dataOnly","1"),t.labelOnly&&e.writeAttributeString("labelOnly","1"),t.grandRow&&e.writeAttributeString("grandRow","1"),t.grandCol&&e.writeAttributeString("grandCol","1"),t.cacheIndex&&e.writeAttributeString("cacheIndex","1"),o.isNullOrUndefined(t.outline)||e.writeAttributeString("outline","0"),t.collapsedLevelsAreSubtotals&&e.writeAttributeString("collapsedLevelsAreSubtotals","1"),t.axis&&(r||"axisValue"!==t.axis)&&e.writeAttributeString("axis",t.axis),t.fieldPosition>=0&&e.writeAttributeString("fieldPosition",t.fieldPosition),o.isNullOrUndefined(t.offset)||e.writeAttributeString("offset",t.offset)},function(){t.references&&t.references.length>0&&e.writeElement("references",function(){e.writeAttributeString("count",t.references.length)},function(){for(var r=0;r<t.references.length;r++)re(e,t.references[r])})})}function re(e,t){e.writeElement("reference",function(){!o.isNullOrUndefined(t.field)&&t.field>=0&&e.writeAttributeString("field",t.field),e.writeAttributeString("count",t.indexes?t.indexes.length:0),t.avgSubtotal&&e.writeAttributeString("avgSubtotal","1"),t.byPosition&&e.writeAttributeString("byPosition","1"),t.countASubtotal&&e.writeAttributeString("countASubtotal","1"),t.countSubtotal&&e.writeAttributeString("countSubtotal","1"),t.defaultSubtotal&&e.writeAttributeString("defaultSubtotal","1"),t.maxSubtotal&&e.writeAttributeString("maxSubtotal","1"),t.minSubtotal&&e.writeAttributeString("minSubtotal","1"),t.productSubtotal&&e.writeAttributeString("productSubtotal","1"),t.relative&&e.writeAttributeString("relative","1"),t.selected===!1&&e.writeAttributeString("selected","0"),t.stdDevPSubtotal&&e.writeAttributeString("stdDevPSubtotal","1"),t.stdDevSubtotal&&e.writeAttributeString("stdDevSubtotal","1"),t.sumSubtotal&&e.writeAttributeString("sumSubtotal","1"),t.varPSubtotal&&e.writeAttributeString("varPSubtotal","1"),t.varSubtotal&&e.writeAttributeString("varSubtotal","1")},function(){if(t.indexes&&t.indexes.length>0)for(var r=0;r<t.indexes.length;r++)oe(e,t.indexes[r])})}function oe(e,t){e.writeLeafElement("x",function(){e.writeAttributeString("v",t)})}function ie(e,t,r){(r&&t.rowFields&&t.rowFields.length>0||!r&&t.columnFields&&t.columnFields.length>0)&&e.writeElement(r?"rowFields":"colFields",function(){e.writeAttributeString("count",r?t.rowFields.length:t.columnFields.length)},function(){var o,i=r?t.rowFields:t.columnFields;for(o=0;o<i.length;o++)ne(e,i[o])})}function ne(e,t){e.writeLeafElement("field",function(){e.writeAttributeString("x",t)})}function ae(e,t){var r=[];r=t.rowItems,r.length<=0||e.writeElement("rowItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function le(e,t){var r=t.columnItems;!o.isNullOrUndefined(r)&&r.length>0&&e.writeElement("colItems",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)se(e,r[t])})}function se(e,t){e.writeElement("i",function(){o.isNullOrUndefined(t.type)||e.writeAttributeString("t",t.type),t.repeatCount>0&&e.writeAttributeString("r",t.repeatCount),t.dataFieldIndex>0&&e.writeAttributeString("i",t.dataFieldIndex)},function(){if(t.pivotItemIndexes&&t.pivotItemIndexes.length>0)for(var r=0;r<t.pivotItemIndexes.length;r++)ce(e,t.pivotItemIndexes[r])})}function ce(e,t){e.writeLeafElement("x",function(){t&&t>0&&e.writeAttributeString("v",t)})}function de(e,t){t.pageFields&&t.pageFields.length>0&&e.writeElement("pageFields",function(){e.writeAttributeString("count",t.pageFields.length)},function(){for(var r=0;r<t.pageFields.length;r++)ue(e,t.pageFields[r])})}function ue(e,t){e.writeLeafElement("pageField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.cap)||e.writeAttributeString("cap",t.cap),o.isNullOrUndefined(t.item)||e.writeAttributeString("item",t.item),o.isNullOrUndefined(t.hier)||e.writeAttributeString("hier",t.hier)})}function fe(e,t){t.dataFields&&t.dataFields.length>0&&e.writeElement("dataFields",function(){e.writeAttributeString("count",t.dataFields.length)},function(){for(var r=0;r<t.dataFields.length;r++)be(e,t.dataFields[r])})}function be(e,t){var r=["difference","index","normal","percent","percentDiff","percentOfCol","percentOfRow","percentOfTotal","runTotal"].indexOf(t.showDataAs)===-1;e.writeElement("dataField",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),o.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),o.isNullOrUndefined(t.subtotal)||e.writeAttributeString("subtotal",t.subtotal),o.isNullOrUndefined(t.showDataAs)||r||e.writeAttributeString("showDataAs",t.showDataAs),o.isNullOrUndefined(t.baseField)||e.writeAttributeString("baseField",t.baseField),o.isNullOrUndefined(t.baseItem)||e.writeAttributeString("baseItem",t.baseItem),o.isNullOrUndefined(t.numberFormatId)||e.writeAttributeString("numFmtId",t.numberFormatId)},function(){!o.isNullOrUndefined(t.showDataAs)&&r&&he(e,t.showDataAs)})}function he(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{E15A36E0-9728-4e99-A89B-3F7291B0FE68}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.$d)},function(){e.writeLeafElement("x14:dataField",function(){e.writeAttributeString("pivotShowAs",t)})})})}function pe(e,t){var r=t.formats;r&&r.length>0&&e.writeElement("formats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)me(e,r[t])})}function me(e,t){t&&t.style&&t.pivotArea&&!t.pivotArea.missed&&e.writeElement("format",function(){"Formatting"===t.action||o.isNullOrUndefined(t.action)||e.writeAttributeString("action",t.action),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function ge(e,t){var r=t.pivotTableConditionFormats;r&&r.length>0&&e.writeElement("conditionalFormats",function(){e.writeAttributeString("count",r.length)},function(){for(var t=0;t<r.length;t++)ye(e,r[t])})}function ye(e,t){e.writeElement("conditionalFormat",function(){t.scope&&"Selection"!==t.scope&&e.writeAttributeString("scope",t.scope),t.type&&"None"!==t.type&&e.writeAttributeString("type",t.type),e.writeAttributeString("priority",t.rule.priority||0)},function(){t.pivotAreas&&t.pivotAreas.length>0&&e.writeElement("pivotAreas",function(){e.writeAttributeString("count",t.pivotAreas.length)},function(){for(var r=0;r<t.pivotAreas.length;r++)te(e,t.pivotAreas[r])})})}function Se(e,t){t.chartFormats&&t.chartFormats.length>0&&e.writeElement("chartFormats",function(){e.writeAttributeString("count",t.chartFormats.length)},function(){for(var r=0;r<t.chartFormats.length;r++)Ce(e,t.chartFormats[r])})}function Ce(e,t){e.writeElement("chartFormat",function(){t.chart>=0&&e.writeAttributeString("chart",t.chart),t.format>=0&&e.writeAttributeString("format",t.format),t.series&&e.writeAttributeString("series","1")},function(){o.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function we(e,t){t.pivotHierarchies&&t.pivotHierarchies.length>0&&e.writeElement("pivotHierarchies",function(){e.writeAttributeString("count",t.pivotHierarchies.length)},function(){for(var r=0;r<t.pivotHierarchies.length;r++)xe(e,t.pivotHierarchies[r])})}function xe(e,t){e.writeElement("pivotHierarchy",function(){o.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),t.dragOff||e.writeAttributeString("dragOff","0"),t.dragToRow||e.writeAttributeString("dragToRow","0"),t.dragToCol||e.writeAttributeString("dragToCol","0"),t.dragToPage||e.writeAttributeString("dragToPage","0"),t.dragToData&&e.writeAttributeString("dragToData","1"),t.includeNewItemsInFilter&&e.writeAttributeString("includeNewItemsInFilter","1"),t.multipleItemSelectionAllowed&&e.writeAttributeString("multipleItemSelectionAllowed","1"),t.outline&&e.writeAttributeString("outline","1"),t.showInFieldList&&e.writeAttributeString("showInFieldList","1"),t.subtotalTop&&e.writeAttributeString("subtotalTop","1")},function(){var r;t.memberProperties&&t.memberProperties.length>0&&e.writeElement("mps",function(){e.writeAttributeString("count",t.memberProperties.length)},function(){for(r=0;r<t.memberProperties.length;r++)Ae(e,t.memberProperties[r])}),t.members&&t.members.length>0&&e.writeElement("members",function(){e.writeAttributeString("count",t.members.length)},function(){for(r=0;r<t.members.length;r++)Te(e,t.members[r])})})}function Ae(e,t){e.writeLeafElement("mp",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name))),t.showCell&&e.writeAttributeString("showCell","1"),t.showTip&&e.writeAttributeString("showTip","1"),t.showAsCaption&&e.writeAttributeString("showAsCaption","1"),t.nameLen>0&&e.writeAttributeString("nameLen",s(t.nameLen)),t.pPos>=0&&e.writeAttributeString("pPos",t.pPos),t.pLen>0&&e.writeAttributeString("pLen",t.pLen),t.level>0&&e.writeAttributeString("level",t.level),t.field>=0&&e.writeAttributeString("field",t.field)})}function Te(e,t){e.writeLeafElement("member",function(){o.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(d(t.name)))})}function ve(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){var r=t.styleName||t.style&&t.style.name;o.isNullOrUndefined(r)||e.writeAttributeString("name",s(d(r))),t.showRowHeaders&&e.writeAttributeString("showRowHeaders","1"),t.showColHeaders&&e.writeAttributeString("showColHeaders","1"),t.showRowStripes===!1?e.writeAttributeString("showRowStripes","0"):e.writeAttributeString("showRowStripes","1"),t.showColStripes===!1?e.writeAttributeString("showColStripes","0"):e.writeAttributeString("showColStripes","1"),t.showLastColumn&&e.writeAttributeString("showLastColumn","1")})}function ke(e,t,r){r.pivotFilters&&r.pivotFilters.length>0&&t.writeElement("filters",function(){t.writeAttributeString("count",r.pivotFilters.length)},function(){var o,i;for(o=0;o<r.pivotFilters.length;o++)i=r.pivotFilters[o],41!==i.operator&&42!==i.operator&&Fe(e,t,i)})}function Fe(e,r,i){var n=i.operator,a=i.conType,c=t.captionCompareTypeExcel[a][n];r.writeElement("filter",function(){i.fld>=0&&r.writeAttributeString("fld",i.fld),i.mpFld>=0&&r.writeAttributeString("mpFld",i.mpFld),void 0!==c&&r.writeAttributeString("type",c),o.isNullOrUndefined(i.evalOrder)||r.writeAttributeString("evalOrder",i.evalOrder),i.id>=0&&r.writeAttributeString("id",i.id),i.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",i.iMeasureHier),i.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",i.iMeasureFld),o.isNullOrUndefined(i.name)||r.writeAttributeString("name",s(d(i.name))),o.isNullOrUndefined(i.description)||r.writeAttributeString("description",i.description),o.isNullOrUndefined(i.stringValue1)||r.writeAttributeString("stringValue1",i.stringValue1),o.isNullOrUndefined(i.stringValue2)||r.writeAttributeString("stringValue2",i.stringValue2)},function(){var t,n;o.isNullOrUndefined(i.autoFilter)||(t=e.Aj(i,c),l.writePivotAutoFilter(r,t),n=i.autoFilter&&i.autoFilter.filterItemMap&&i.autoFilter.filterItemMap[0]&&i.autoFilter.filterItemMap[0].conditions&&i.autoFilter.filterItemMap[0].conditions[0],n&&n.isWholeDay&&r.writeElement("extLst",function(){Re(r,n)}))})}function Re(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{0605FD5F-26C8-4aeb-8148-2DB25E43C511}"),e.writeAttributeString("xmlns:x15","http://schemas.microsoft.com/office/spreadsheetml/2010/11/main")},function(){e.writeLeafElement("x15:pivotFilter",function(){t.isWholeDay&&e.writeAttributeString("useWholeDay","1")})})}function Ee(e,t){t.rowHierarchies&&t.rowHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.rowHierarchies.length)},function(){for(var r=0;r<t.rowHierarchies.length;r++)Le(e,t.rowHierarchies[r],!0)})}function Ie(e,t){t.colHierarchies&&t.colHierarchies.length>0&&e.writeElement("rowHierarchiesUsage",function(){e.writeAttributeString("count",t.colHierarchies.length)},function(){for(var r=0;r<t.colHierarchies.length;r++)Le(e,t.colHierarchies[r],!1)})}function Le(e,t,r){var o=r?"rowHierarchyUsage":"colHierarchyUsage";e.writeLeafElement(o,function(){e.writeAttributeString("hierarchyUsage",t)})}function De(e,t){e.writeElement("extLst",function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{962EF5D1-5CA2-4c93-8EF4-DBF5C05439D2}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotTableDefinition",function(){t.altText&&e.writeAttributeString("altText",t.altText),t.fillDownLabels&&e.writeAttributeString("fillDownLabelsDefault","1"),t.altTextSummary&&e.writeAttributeString("altTextSummary",t.altTextSummary),t.hideValuesRow&&e.writeAttributeString("hideValuesRow","1"),e.writeAttributeString("xmlns:xm","http://schemas.microsoft.com/office/excel/2006/main")})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{747A6164-185A-40DC-8AA5-F01512510D54}"),e.writeAttributeString("xmlns:xpdl","http://schemas.microsoft.com/office/spreadsheetml/2016/pivotdefaultlayout")},function(){e.writeLeafElement("xpdl:pivotTableDefinition16",function(){t.subtotalsOnTopDefault===!1&&e.writeAttributeString("SubtotalsOnTopDefault","0"),t.enabledSubtotalsDefault===!1&&e.writeAttributeString("EnabledSubtotalsDefault","0"),t.insertBlankRowDefault===!0&&e.writeAttributeString("InsertBlankRowDefault","1")})})})}function Be(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{2946ED86-A175-432a-8AC1-64E0C546D7DE}"),e.writeAttributeString("xmlns:x14","http://schemas.microsoft.com/office/spreadsheetml/2009/9/main")},function(){e.writeLeafElement("x14:pivotField",function(){t.fillDownLabels&&e.writeAttributeString("fillDownLabels","1")})})}},"./src/xlsx-io/writer/print-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=o.StringEx.O,n=o.Util.oa,a=r("./src/xml-io/xml-writer.ts"),l=r("./src/common/excel-types.ts"),s=r("./src/datamodel/excel-helper.ts"),c={0:"auto",1:"downThenOver",2:"overThenDown"},d={0:"auto",1:"portrait",2:"landscape"};function u(e,t,r){var o=r.Kj(t);o&&e.writeLeafElement("pageMargins",function(){e.writeAttributeString("left",o.left),e.writeAttributeString("right",o.right),e.writeAttributeString("top",o.top),e.writeAttributeString("bottom",o.bottom),e.writeAttributeString("header",o.header),e.writeAttributeString("footer",o.footer)})}t.writePageMargins=u;function f(e,t,r){var o=r.Lj(t);o&&(o.printGridLine||o.printRowColumnsHeaders||o.horizontalCentered||o.verticalCentered)&&e.writeLeafElement("printOptions",function(){o.printRowColumnsHeaders&&e.writeAttributeString("headings","1"),o.printGridLine&&e.writeAttributeString("gridLines","1"),o.horizontalCentered&&e.writeAttributeString("horizontalCentered","1"),o.verticalCentered&&e.writeAttributeString("verticalCentered","1")})}t.writePrintOptions=f;function b(e,t,r){var i=r.Mj(t);i&&e.writeLeafElement("pageSetup",function(){var t=i.useSmartPrint,r=i.paperSizeIndex,n=i.zoomFactor,a=i.firstPageNumber,l=i.smartPrintPagesWidth,u=i.smartPrintPagesHeight,f=c[i.pageOrder],b=d[i.orientation],h=i.copies;t&&(void 0===l&&(l=0),void 0===u&&(u=0)),!o.isNullOrUndefined(r)&&r>1&&e.writeAttributeString("paperSize",r),!o.isNullOrUndefined(n)&&Math.abs(n-1)>.01&&e.writeAttributeString("scale",Math.round(100*n)),o.isNullOrUndefined(a)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(a)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(u>0&&1!==u||0===u)&&e.writeAttributeString("fitToHeight",u),o.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),o.isNullOrUndefined(b)||0===b||e.writeAttributeString("orientation",b),i.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),i.draft===!0&&e.writeAttributeString("draft","1"),i.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=b;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!i(e.header)||!i(e.footer)||!i(t.headerOddPage)||!i(t.footerOddPage)||!i(t.headerEvenPage)||!i(t.footerEvenPage)||!i(t.headerFirstPage)||!i(t.footerFirstPage))}function p(e,t,r){var o,a=r.Mj(t);a&&h(a)&&(o=a.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){o.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),o.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),o.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),o.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){i(o.headerOddPage)?i(a.header)||e.writeElementString("oddHeader",n(a.header)):e.writeElementString("oddHeader",n(o.headerOddPage)),i(o.footerOddPage)?i(a.footer)||e.writeElementString("oddFooter",n(a.footer)):e.writeElementString("oddFooter",n(o.footerOddPage)),i(o.headerEvenPage)||e.writeElementString("evenHeader",n(o.headerEvenPage)),i(o.footerEvenPage)||e.writeElementString("evenFooter",n(o.footerEvenPage)),i(o.headerFirstPage)||e.writeElementString("firstHeader",n(o.headerFirstPage)),i(o.footerFirstPage)||e.writeElementString("firstFooter",n(o.footerFirstPage))}))}t.writeHeadFooter=p;function m(e,t,r){t&&t.length>0&&e.writeElement(r,function(){var r=t.length;e.writeAttributeString("count",r),e.writeAttributeString("manualBreakCount",r)},function(){t.forEach(function(t){t>0&&e.writeLeafElement("brk",function(){e.writeAttributeString("id",t),e.writeAttributeString("man","1"),"rowBreaks"===r?e.writeAttributeString("max",l.ExcelConstants.wb):"colBreaks"===r&&e.writeAttributeString("max",l.ExcelConstants.vb)})})})}function g(e,t,r){var o=r.Mj(t);o&&(m(e,o.rowBreakLines,"rowBreaks"),m(e,o.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=g;function y(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=y;function S(e,t,r,o){e.writeElement("v:shape",function(){e.writeAttributeString("id",t.name),t.spid?e.writeAttributeString("o:spid",t.spid):e.writeAttributeString("o:spid","_x0000_s10"+r),e.writeAttributeString("type","#_x0000_t75"),t.style?e.writeAttributeString("style",t.style):e.writeAttributeString("style","position:absolute;margin-left:0;margin-top:0;width:75pt;height:75pt;z-index:"+o)},function(){e.writeLeafElement("v:imagedata",function(){e.writeAttributeString("o:relid",t.rid),e.writeAttributeString("o:title",t.name)}),t.cellRange||e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t")}),t.cellRange&&e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType","Pict")},function(){e.writeLeafElement("x:SizeWithCells"),e.writeElementString("x:Anchor",t.anchor),e.writeElementString("x:FmlaPict",t.cellRange),e.writeElementString("x:CF","Pict"),e.writeElementString("x:Camera","")})})}function C(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}t.writeVmlDrawingFile=function(e){var t=new a.XmlWriter;return t.writeElement("xml",function(){C(t,"xmlns:v","urn:schemas-microsoft-com:vml","xmlns:o","urn:schemas-microsoft-com:office:office","xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){t.writeElement("o:shapelayout",function(){t.writeAttributeString("v:ext","edit")},function(){t.writeLeafElement("o:idmap",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("data","1")})}),t.writeElement("v:shapetype",function(){t.writeAttributeString("id","_x0000_t75"),t.writeAttributeString("coordsize","21600,21600"),t.writeAttributeString("o:spt","75"),t.writeAttributeString("o:preferrelative","t"),t.writeAttributeString("path","m@4@5l@4@11@9@11@9@5xe"),t.writeAttributeString("filled","f"),t.writeAttributeString("stroked","f")},function(){t.writeLeafElement("v:stroke",function(){t.writeAttributeString("joinstyle","miter")}),t.writeElement("v:formulas",function(){t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","if lineDrawn pixelLineWidth 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 1 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum 0 0 @1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @2 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @3 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @0 0 1")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @6 1 2")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelWidth")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @8 21600 0")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","prod @7 21600 pixelHeight")}),t.writeLeafElement("v:f",function(){t.writeAttributeString("eqn","sum @10 21600 0")})}),t.writeLeafElement("v:path",function(){C(t,"o:extrusionok","f","gradientshapeok","t","o:connecttype","rect")}),t.writeLeafElement("o:lock",function(){t.writeAttributeString("v:ext","edit"),t.writeAttributeString("aspectratio","t")})});var r=25,o=1;e.forEach(function(e){(["LH","CH","RH","LF","CF","RF","LHEVEN","CHEVEN","RHEVEN","LFEVEN","CFEVEN","RFEVEN","LHFIRST","CHFIRST","RHFIRST","LFFIRST","CFFIRST","RFFIRST"].indexOf(e.name)>=0||e.name.indexOf("Picture_x0020")!==-1)&&(S(t,e,r,o),r++,o++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),function(e){e[e.disc=0]="disc",e[e.circle=1]="circle",e[e.square=2]="square",e[e.decimal=3]="decimal",e[e.lowerAlpha=4]="lowerAlpha",e[e.upperAlpha=5]="upperAlpha",e[e.lowerRoman=6]="lowerRoman",e[e.upperRoman=7]="upperRoman",e[e.lowerGreek=8]="lowerGreek"}(s||(s={})),c=void 0;function d(e,t){var r,o,i;if(e+=1,e<1||e>3999)return"i";for(r=[{value:1e3,numeral:t?"m":"M"},{value:900,numeral:t?"cm":"CM"},{value:500,numeral:t?"d":"D"},{value:400,numeral:t?"cd":"CD"},{value:100,numeral:t?"c":"C"},{value:90,numeral:t?"xc":"XC"},{value:50,numeral:t?"l":"L"},{value:40,numeral:t?"xl":"XL"},{value:10,numeral:t?"x":"X"},{value:9,numeral:t?"ix":"IX"},{value:5,numeral:t?"v":"V"},{value:4,numeral:t?"iv":"IV"},{value:1,numeral:t?"i":"I"}],o="",i=0;i<r.length;i++)for(;e>=r[i].value;)o+=r[i].numeral,e-=r[i].value;return o}function u(e,t){var r="",o=t?97:65;if(0===e)return String.fromCharCode(o);for(;e>0;)r+=String.fromCharCode(e%26+o),e=Math.floor(e/26);return r}function f(e){var t,r;if(0===e)return"\u03b1";for(t=["\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7","\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be","\u03bf","\u03c0","\u03c1","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7","\u03c8","\u03c9"],r="";e>0;)r+=t[e%24],e=Math.floor(e/24);return r}function b(e,t){switch(e){case s.lowerRoman:return d(t,!0)+". ";case s.lowerAlpha:return u(t,!0)+". ";case s.upperRoman:return d(t)+". ";case s.upperAlpha:return u(t)+". ";case s.decimal:return t+1+". ";case s.lowerGreek:return f(t)+". "}}function h(e){switch(e){case s.disc:return"\u25cf ";case s.circle:return"\u25cb ";case s.square:return"\u25a0 "}}function p(e){var t,r,o,i=[],n=[];for(t=0,r=e.length;t<r;t++)o=e[t],o.richText?(n.length>0&&(i.push(n),n=[]),i.push(o)):n.push(o);return n.length>0&&i.push(n),i}function m(e){return e!==s.circle&&e!==s.square&&e!==s.disc}function g(e){var t,r,o,i,n,a,l,s=p(e),d={},u={},f=[];for(r=0,o=s.length;r<o;r++)i=s[r],i.richText?(n=i.level||0,a=void 0,m(i.type)?(i.type===u[n]&&n<=t?d[n]++:d[n]=0,a=b(i.type,d[n])):a=h(i.type),t=n,u[n]=i.type,l=Array(4*(n+1)),l.fill(" "),f=f.concat([{text:l.join("")+a}],i.richText)):(f=f.concat(i),u={},t=c,d={}),r!==o-1&&f.push({text:"\r\n"});return f}function y(e){var t,r,o;for(t=0,r=e.richText.length;t<r;t++)if(e.richText[t].richText)return o=g(e.richText),{richText:o};return e}function S(e){var t=new n.XmlWriter;return t.writeDocument(),t.writeElement("sst",function(){t.writeAttributeString("xmlns",i.XFileConstants.Hd),t.writeAttributeString("count",""+e.Pn),t.writeAttributeString("uniqueCount",""+e.Qn.length)},function(){var r,i,n=function(r,i){var n=e.Qn[r],s=n.value,d=s.length!==s.trim().length;t.writeElement("si",c,function(){var e,r,i,u,f=function(){d&&t.writeAttributeString("xml:space","preserve")};if(n.richText)for(e=n.richText,e&&e.length>0&&(r=y(n),e=r.richText),i=function(r){e[r].text!==c&&t.writeElement("r",c,function(){l.writerRichTextStyle(t,a.ConverterHelper.fromRichTextStyle(e[r].style));var i=e[r].text;i&&i.length>32767&&(i=i.slice(0,32767)),i&&(d=i.length!==i.trim().length),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(i,!0)))})})},u=0;u<e.length;u++)i(u);else s&&s.length>32767&&(s=s.slice(0,32767)),t.writeElement("t",function(){f()},function(){t.writeValue(o.Util.oa(o.Util.xa(s,!0)))})})};for(r=0,i=e.Qn.length;r<i;r++)n(r,i)}),t.getXmlString()}t.writeSharedString=S},"./src/xlsx-io/writer/slicer-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/datamodel/excel-style.ts"),l=a.UnitHelper.pixelToEMU,s=n.Util.oa,c=n.Util.ua,d="http://schemas.microsoft.com/office/drawing/2012/timeslicer",u="mc:Ignorable";function f(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("slicers",function(){t.writeAttributeString("xmlns",i.XFileConstants.ce),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString(u,"x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("slicer",function(){t.writeAttributeString("name",s(c(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",s(e.nameInFormula)),t.writeAttributeString("caption",s(e.captionName)),n.isNullOrUndefined(e.columnCount)||t.writeAttributeString("columnCount",e.columnCount),n.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showCaption","0"),n.isNullOrUndefined(e.style)||n.isNullOrUndefined(e.style.name)||t.writeAttributeString("style",s(e.style.name));var r=241300;e.itemHeight&&(r=l(e.itemHeight+4)),t.writeAttributeString("rowHeight",r),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeSlicer=f;function b(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function h(e,t,r){var o=null;return r.forEach(function(r){
54
54
  r.name===t&&r.columns.forEach(function(t){t.name===e&&(o=t.id)})}),o}function p(e,t){var r,a,l;return n.isNullOrUndefined(e)?null:(r=b(e.tableName,t),a=h(e.columnName,e.tableName,t),l=new o.XmlWriter,l.writeDocument(),l.writeElement("slicerCacheDefinition",function(){l.writeAttributeString("xmlns",i.XFileConstants.ce),l.writeAttributeString("xmlns:mc",i.XFileConstants.ae),l.writeAttributeString(u,"x"),l.writeAttributeString("xmlns:x",i.XFileConstants.be),l.writeAttributeString("name",c(s(e.name),"\n","_x000a_")),l.writeAttributeString("sourceName",c(s(e.sourceName),"\n","_x000a_"))},function(){l.writeElement("extLst",function(){},function(){l.writeElement("x:ext",function(){l.writeAttributeString("uri","{2F2917AC-EB37-4324-AD4E-5DD8C200BD13}"),l.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){l.writeLeafElement("x15:tableSlicerCache",function(){l.writeAttributeString("tableId",r),l.writeAttributeString("column",a),2===e.sortOrder&&l.writeAttributeString("sortOrder","descending"),e.visuallyNoDataItems===!1?l.writeAttributeString("crossFilter","none"):e.showNoDataItemsInLast===!1&&l.writeAttributeString("crossFilter","showItemsWithNoData")})}),e.showNoDataItems===!1&&l.writeElement("x:ext",function(){l.writeAttributeString("uri","{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"),l.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){l.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),l.getXmlString())}t.writeTableSlicerCache=p;function m(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("slicerCacheDefinition",function(){t.writeAttributeString("xmlns",i.XFileConstants.ce),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString(u,"x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be),t.writeAttributeString("name",c(s(e.name),"\n","_x000a_")),t.writeAttributeString("sourceName",c(s(e.sourceName),"\n","_x000a_"))},function(){t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",s(e.name))})})}),t.writeElement("data",function(){},function(){t.writeElement("tabular",function(){t.writeAttributeString("pivotCacheId",e.pivotCacheId),2===e.sortOrder&&t.writeAttributeString("sortOrder","descending"),e.visuallyNoDataItems===!1?t.writeAttributeString("crossFilter","none"):e.showNoDataItemsInLast===!1&&t.writeAttributeString("crossFilter","showItemsWithNoData")},function(){t.writeElement("items",function(){t.writeAttributeString("count",e.items.length)},function(){e.items.forEach(function(e){t.writeElement("i",function(){t.writeAttributeString("x",e.x),e.nd&&t.writeAttributeString("nd","1"),e.s&&t.writeAttributeString("s","1")},function(){})})})})}),e.showNoDataItems===!1&&t.writeElement("extLst",function(){},function(){t.writeElement("x:ext",function(){t.writeAttributeString("uri","{470722E0-AACD-4C17-9CDC-17EF765DBC7E}"),t.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){t.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),t.getXmlString()}t.writePivotSlicerCache=m;function g(e,t,r){var o=r.Ej(t,"pivot"),n=r.Ej(t,"timeline"),a=r.Dj(t);o&&o.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{A8765BA9-456A-4dab-B4F3-ACF838C121DE}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerList",function(){o[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",o[0].rid)})})}),n&&n.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{7E03D99C-DC04-49d9-9315-930204A7B6E9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineRefs",function(){n[0].rid&&e.writeLeafElement("x15:timelineRef",function(){e.writeAttributeString("r:id",n[0].rid)})})}),a&&a.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x14:slicerList",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){a[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",a[0].rid)})})})}t.writeSlicersInWorkSheet=g;function y(e,t,r){var o,n=t&&t.length>0,a=!1,l=!1,s=[],c=[];if(r)for(o=0;o<r.length;o++)r[o].boundsStartDate?(l=!0,c.push(r[o])):(a=!0,s.push(r[o]));e.writeElement("extLst",function(){},function(){a&&e.writeElement("ext",function(){e.writeAttributeString("uri","{BBE1A952-AA13-448e-AADC-164F8A28A991}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerCaches",function(){},function(){s.forEach(function(t){t.cacheRid&&e.writeLeafElement("x14:slicerCache",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),n&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{46BE6895-7355-4a93-B00E-2C351335B9C9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:slicerCaches",function(){e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){t.forEach(function(t){t.cacheRid&&e.writeLeafElement("x14:slicerCache",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}"),e.writeAttributeString("xmlns:xcalcf",i.XFileConstants.ee)},function(){e.writeElement("xcalcf:calcFeatures",function(){},function(){var t="xcalcf:feature";e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:RD")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:Single")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:FV")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:CNMTM")},function(){}),e.writeElement(t,function(){e.writeAttributeString("name","microsoft.com:LET_WF")},function(){})})})),l&&e.writeElement("ext",function(){e.writeAttributeString("uri","{D0CA8CA8-9F24-4464-BF8E-62219DCF47F9}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineCacheRefs",function(){},function(){c.forEach(function(t){t.cacheRid&&e.writeLeafElement("x15:timelineCacheRef",function(){e.writeAttributeString("r:id",t.cacheRid)})})})}),(a||l)&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{79F54976-1DA5-4618-B147-4CDE4B953A38}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.de)},function(){e.writeElement("x14:workbookPr",function(){})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{140A7094-0E35-4892-8432-C4D2E57EDEB5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:workbookPr",function(){e.writeAttributeString("chartTrackingRefBase","1")},function(){})}))})}t.writeSlicerCacheInWorkbook=y;function S(e,t,r){t.forEach(function(t){C(e,t,r)})}t.writeSlicerDrawings=S;function C(e,t,r){var o=t&&t.twoCellAnchor;o&&e.writeElement("xdr:twoCellAnchor",function(){t.dynamicMove?t.dynamicSize||e.writeAttributeString("editAs","oneCell"):e.writeAttributeString("editAs","absolute")},function(){r(e,"xdr:from",o.startPoint),r(e,"xdr:to",o.endPoint),x(e,t),w(e,t)})}function w(e,t){e.writeLeafElement("xdr:clientData",function(){t.isLocked||e.writeAttributeString("fLocksWithSheet","0")})}function x(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc",i.XFileConstants.ae)},function(){A(e,t),D(e,t)})}function A(e,t){e.writeElement("mc:Choice",function(){"timeline"===(t&&t.type)?(e.writeAttributeString("xmlns:tsle",d),e.writeAttributeString("Requires","tsle")):(e.writeAttributeString("xmlns:sle15","http://schemas.microsoft.com/office/drawing/2012/slicer"),e.writeAttributeString("Requires","sle15"))},function(){T(e,t)})}function T(e,t){e.writeElement("xdr:graphicFrame",function(){e.writeAttributeString("macro","")},function(){v(e,t),k(e),F(e,t)})}function v(e,t){e.writeElement("xdr:nvGraphicFramePr",function(){},function(){R(e,t),L(e,t)})}function k(e){e.writeElement("xdr:xfrm",function(){},function(){E(e,"a:off","x","0","y","0"),E(e,"a:ext","cx","0","cy","0")})}function F(e,t){e.writeElement("a:graphic",function(){},function(){I(e,t)})}function R(e,t){e.writeElement("xdr:cNvPr",function(){e.writeAttributeString("id","timeline"===(t&&t.type)?"8":"2"),e.writeAttributeString("name",s(c(t.name,"\n","&#xA;")))},function(){"timeline"===(t&&t.type)&&e.writeElement("a:extLst",function(){e.writeElement("a:ext",function(){e.writeAttributeString("uri","{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}")},function(){E(e,"a16:creationId","xmlns:a16","http://schemas.microsoft.com/office/drawing/2014/main","id","{729A7851-DBA1-4F10-BB7B-BEC1E3EEDA64}")})})})}function E(e,t,r,o,i,n){e.writeLeafElement(t,function(){e.writeAttributeString(r,o),e.writeAttributeString(i,n)})}function I(e,t){e.writeElement("a:graphicData",function(){"timeline"===(t&&t.type)?e.writeAttributeString("uri",d):e.writeAttributeString("uri","http://schemas.microsoft.com/office/drawing/2010/slicer")},function(){"timeline"===(t&&t.type)?E(e,"tsle:timeslicer","xmlns:tsle",d,"name",c(s(t.name),"\n","&#xA;")):E(e,"sle:slicer","xmlns:sle","http://schemas.microsoft.com/office/drawing/2010/slicer","name",c(s(t.name),"\n","&#xA;"))})}function L(e,t){e.writeElement("xdr:cNvGraphicFramePr",function(){e.writeLeafElement("a:graphicFrameLocks",function(){t.disableResizingAndMoving&&(e.writeAttributeString("noMove","1"),e.writeAttributeString("noResize","1"))})})}function D(e,t){e.writeElement("mc:Fallback",function(){e.writeAttributeString("xmlns","")},function(){B(e,t)})}function B(e,t){e.writeElement("xdr:sp",function(){e.writeAttributeString("macro",""),e.writeAttributeString("textlink","")},function(){P(e),M(e),V(e,t)})}function P(e){e.writeElement("xdr:nvSpPr",function(){},function(){E(e,"xdr:cNvPr","id","0","name",""),_(e)})}function W(e,t,r){e.writeElement(t,function(){},function(){N(e,r[0],r[1],r[2])})}function _(e){W(e,"xdr:cNvSpPr",["a:spLocks","noTextEdit","1"])}function N(e,t,r,o){e.writeLeafElement(t,function(){e.writeAttributeString(r,o)})}function M(e){e.writeElement("xdr:spPr",function(){},function(){O(e),H(e),U(e),J(e)})}function O(e){e.writeElement("a:xfrm",function(){},function(){E(e,"a:off","x","5486400","y","942975"),E(e,"a:ext","cx","1828800","cy","2524125")})}function H(e){e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){G(e)})}function G(e){e.writeLeafElement("a:avLst")}function U(e){W(e,"a:solidFill",["a:prstClr","val","white"])}function J(e){e.writeElement("a:ln",function(){e.writeAttributeString("w","1")},function(){z(e)})}function z(e){W(e,"a:solidFill",["a:prstClr","val","green"])}function V(e,t){e.writeElement("xdr:txBody",function(){},function(){E(e,"a:bodyPr","vertOverflow","clip","horzOverflow","clip"),j(e),X(e,t)})}function j(e){e.writeLeafElement("a:lstStyle")}function X(e,t){e.writeElement("a:p",function(){},function(){K(e,t)})}function K(e,t){e.writeElement("a:r",function(){},function(){E(e,"a:rPr","lang","en-US","sz","1100"),q(e,t)})}function q(e,t){var r;r=t&&"timeline"===t.type?"Timeline: Works in Excel 2013 or higher. Do not move or resize.":"This shape represents a table slicer. Table slicers are supported in Excel or later. If the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.",e.writeElement("a:t",function(){e.writeValue(r)})}},"./src/xlsx-io/writer/sparkline-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/common/common.ts"),n=r("./src/common/range-parser.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=i.IndexHelper.V,c=i.Util.oa;function b(e,t,r){!r.zj(t)||r.zj(t).length<1||e.writeElement("ext",function(){e.writeAttributeString("uri","{05C60535-1F16-4fd2-B633-F4F36F0B64E0}"),e.writeAttributeString("xmlns:x14",o.XFileConstants.$d)},function(){h(e,t,r)})}t.writeSparkline=b;function h(e,t,r){e.writeElement("x14:sparklineGroups",function(){e.writeAttributeString("xmlns:xm",o.XFileConstants._d)},function(){var o=r.zj(t);o.length>0&&o.forEach(function(r){p(e,t,r)})})}t.writeSparklineGroups=h,d={0:"line",1:"column",2:"stacked"},u={2:"span",0:"gap",1:"zero"},f={0:"individual",1:"group",2:"custom"};function p(e,t,r){e.writeElement("x14:sparklineGroup",function(){var t=r&&r.setting;r.sparklineType&&e.writeAttributeString("type",d[r.sparklineType]),r.displayDateAxis&&e.writeAttributeString("dateAxis","1"),i.isNullOrUndefined(t)||(!i.isNullOrUndefined(t.lineWeight)&&3*(""+t.lineWeight)/4-.75>.001&&e.writeAttributeString("lineWeight",3*(""+t.lineWeight)/4),t.displayEmptyCellsAs?e.writeAttributeString("displayEmptyCellsAs",u[t.displayEmptyCellsAs]):e.writeAttributeString("displayEmptyCellsAs",u[0]),t.showMarkers&&e.writeAttributeString("markers","1"),t.showHigh&&e.writeAttributeString("high","1"),t.showLow&&e.writeAttributeString("low","1"),t.showFirst&&e.writeAttributeString("first","1"),t.showLast&&e.writeAttributeString("last","1"),t.showNegative&&e.writeAttributeString("negative","1"),t.displayXAxis&&e.writeAttributeString("displayXAxis","1"),t.displayHidden&&e.writeAttributeString("displayHidden","1"),t.rightToLeft&&e.writeAttributeString("rightToLeft","1"),t.minAxisType&&e.writeAttributeString("minAxisType",f[t.minAxisType]),t.maxAxisType&&e.writeAttributeString("maxAxisType",f[t.maxAxisType]),t.manualMin&&e.writeAttributeString("manualMin",t.manualMin),t.manualMax&&e.writeAttributeString("manualMax",t.manualMax))},function(){var o=r&&r.setting,i=a.ColorHelper.toExcelColor(o.seriesColor||"rgba(36,64,98,1.0)");l.writeColor(e,"x14:colorSeries",i),i=a.ColorHelper.toExcelColor(o.negativeColor||"brown"),l.writeColor(e,"x14:colorNegative",i),i=a.ColorHelper.toExcelColor(o.axisColor||"black"),l.writeColor(e,"x14:colorAxis",i),i=a.ColorHelper.toExcelColor(o.markersColor||"rgba(36,64,98,1.0)"),l.writeColor(e,"x14:colorMarkers",i),i=a.ColorHelper.toExcelColor(o.firstMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorFirst",i),i=a.ColorHelper.toExcelColor(o.lastMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorLast",i),i=a.ColorHelper.toExcelColor(o.highMarkerColor||"blue"),l.writeColor(e,"x14:colorHigh",i),i=a.ColorHelper.toExcelColor(o.lowMarkerColor||"blue"),l.writeColor(e,"x14:colorLow",i),r.displayDateAxis&&r.axisReference&&e.writeElement("xm:f",function(){"string"==typeof r.axisReference?e.writeValue(r.axisReference):e.writeValue(g(r.axisReference.sheetName||t,r.axisReference))}),r.sparklines&&r.sparklines.length>0&&e.writeElement("x14:sparklines",function(){r.sparklines.forEach(function(r){m(e,t,r)})})})}t.writeSparklineGroup=p;function m(e,t,r){e.writeElement("x14:sparkline",function(){i.isNullOrUndefined(r.data)||(e.writeElement("xm:f",function(){},function(){"string"==typeof r.data?e.writeValue(r.data):e.writeValue(g(r.data.sheetName||t,r.data))}),e.writeElement("xm:sqref",function(){},function(){e.writeValue(n.getRangeString([{row:r.row,col:r.col,rowCount:1,colCount:1}]))}))})}function g(e,t){return c(s(e)+"!"+n.getRangeString([t]))}},"./src/xlsx-io/writer/style-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/tuple.ts"),a=r("./src/datamodel/excel-style.ts"),l=r("./src/datamodel/excel-style.ts"),s=r("./src/common/common.ts"),c=r("./src/xlsx-io/common/color-writer.ts"),d=void 0,u={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},f={selectedItemWithDataStyle:"selectedItemWithData",selectedItemWithNoDataStyle:"selectedItemWithNoData",unSelectedItemWithDataStyle:"unselectedItemWithData",unSelectedItemWithNoDataStyle:"unselectedItemWithNoData",hoveredSelectedItemWithDataStyle:"hoveredSelectedItemWithData",hoveredSelectedItemWithNoDataStyle:"hoveredSelectedItemWithNoData",hoveredUnSelectedItemWithDataStyle:"hoveredUnselectedItemWithData",hoveredUnSelectedItemWithNoDataStyle:"hoveredUnselectedItemWithNoData"},b={selectionLabelStyle:"selectionLabel",timeLevelStyle:"timeLevel",periodLabel1Style:"periodLabel1",periodLabel2Style:"periodLabel2",selectedTimeBlockStyle:"selectedTimeBlock",unselectedTimeBlockStyle:"unselectedTimeBlock",selectedTimeBlockSpaceStyle:"selectedTimeBlockSpace"};function h(e,t,r,o,i,n,a){e.writeAttributeString(t,r),e.writeAttributeString(o,i),e.writeAttributeString(n,a)}function p(e,t){var r=x(e,t),a=new o.XmlWriter;return a.writeDocument(),a.writeElement("styleSheet",function(){a.writeAttributeString("xmlns",i.XFileConstants.Hd),a.writeAttributeString("xmlns:mc",i.XFileConstants.Jd),a.writeAttributeString("xmlns:x14ac",i.XFileConstants.Nd),a.writeAttributeString("mc:Ignorable",i.XFileConstants.Od)},function(){var t,o,i,l,c,f,b;if(r.gn.count>0&&a.writeElement("numFmts",function(){a.writeAttributeString("count",""+r.gn.count)},function(){for(var e in r.gn)r.gn.hasOwnProperty(e)&&"count"!==e&&A(a,{key:e,value:r.gn[e]})}),a.writeElement("fonts",function(){a.writeAttributeString("count",""+r.Rn.length)},function(){for(var e=0,t=r.Rn.length;e<t;e++)T(a,r.Rn[e])}),a.writeElement("fills",function(){a.writeAttributeString("count",""+r.Sn.length)},function(){var e,t=function(e){a.writeElement("fill",d,function(){a.writeLeafElement("patternFill",function(){a.writeAttributeString("patternType",e)})})};for(t("none"),t("gray125"),e=2;e<r.Sn.length;e++)k(a,r.Sn[e])}),a.writeElement("borders",function(){a.writeAttributeString("count",""+r.Tn.length)},function(){for(var e=0,t=r.Tn.length;e<t;e++)F(a,r.Tn[e])}),E(a,r.Un,"cellStyleXfs",!0),E(a,r.Vn,"cellXfs",!1),0===r.af.length)L(a);else{for(t=[],o=Object.keys(r.Wn),i=o.length,l=0,c=i;l<c;l++)f=o[l],b=r.Wn[f],t.push(new n.Tuple(b,r.af[b],f));0===t.length?L(a):a.writeElement("cellStyles",function(){a.writeAttributeString("count",""+t.length)},function(){var e,r,o=function(e,r){var o=t[e],i=o.item2;i?a.writeLeafElement("cellStyle",function(){a.writeAttributeString("name",s.Util.oa(o.item3)),a.writeAttributeString("xfId",""+o.item1),i.isBuiltInStyle()&&(a.writeAttributeString("builtinId",""+i.builtInStyle),i.isCustomBuiltin&&a.writeAttributeString("customBuiltin","1"),1!==i.builtInStyle&&2!==i.builtInStyle||a.writeAttributeString("iLevel",""+i.outLineLevel))}):a.writeLeafElement("cellStyle",function(){a.writeAttributeString("name",o.item3),a.writeAttributeString("xfId",""+o.item1)})};for(e=0,r=t.length;e<r;e++)o(e,r)})}B(a,e),e.mh.length>0?a.writeElement("tableStyles",function(){a.writeAttributeString("count",e.mh.length),a.writeAttributeString("defaultTableStyle","TableStyleMedium2"),a.writeAttributeString("defaultPivotStyle","PivotStyleMedium9")},function(){var t=e.mh;t&&t.forEach(function(e){a.writeElement("tableStyle",function(){a.writeAttributeString("name",e.name),e.isPivot?a.writeAttributeString("table","0"):(a.writeAttributeString("pivot","0"),s.isNullOrUndefined(e.tableId)||a.writeAttributeString("table",e.tableId)),a.writeAttributeString("count",e.styleElements.length)},function(){e.styleElements&&e.styleElements.length>0&&e.styleElements.forEach(function(e){a.writeLeafElement("tableStyleElement",function(){a.writeAttributeString("type",u[e.type]),a.writeAttributeString("dxfId",e.dxfId),s.isNullOrUndefined(e.size)||a.writeAttributeString("size",e.size)})})})})}):a.writeLeafElement("tableStyles",function(){h(a,"count","0","defaultTableStyle","TableStyleMedium2","defaultPivotStyle","PivotStyleLight16")}),(e.oh.length>0||e.qh.length>0)&&a.writeElement("extLst",function(){e.oh.length>0&&(m(a,e),y(a,e.oh)),e.qh.length>0&&(g(a,e),S(a,e.qh))})}),{xml:a.getXmlString(),styleOffset:r.Xn}}t.writeStyle=p;function m(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{46F421CA-312F-682f-3DD2-61675219B42D}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){P(e,t)})}function g(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){W(e,t)})}function y(e,t){var r,o="SlicerStyle",n="Light",a="Dark",l=["SlicerStyleOther1","SlicerStyleOther2"];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"),e.writeAttributeString("xmlns:x14",i.XFileConstants.ce)},function(){e.writeElement("x14:slicerStyles",function(){e.writeAttributeString("defaultSlicerStyle","SlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x14:slicerStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x14:slicerStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x14:slicerStyleElement",function(){e.writeAttributeString("type",f[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function S(e,t){var r,o="TimeSlicerStyle",n="Light",a="Dark",l=[];for(r=1;r<7;r++)l.push(o+n+r),l.push(o+a+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{9260A510-F301-46a8-8635-F512D64BE5F5}"),e.writeAttributeString("xmlns:x15",i.XFileConstants.de)},function(){e.writeElement("x15:timelineStyles",function(){e.writeAttributeString("defaultTimelineStyle","TimeSlicerStyleLight1")},function(){t&&t.length&&t.forEach(function(t){l.indexOf(t.name)===-1&&e.writeElement("x15:timelineStyle",function(){e.writeAttributeString("name",t.name)},function(){t.styleElements&&t.styleElements.length&&e.writeElement("x15:timelineStyleElements",function(){t.styleElements.forEach(function(t){e.writeLeafElement("x15:timelineStyleElement",function(){e.writeAttributeString("type",b[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function C(e){var t=e&&e.fontName;return t&&('"'===t.charAt(0)&&(t=t.substr(1)),'"'===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),e.fontName=t),e}function w(e,t){var r,o=e.length;if(0===o)return-1;for(r=0;r<o;r++)if(e[r].equals(t,!0))return r;return-1}function x(e,t){var r,o,i,c,u,f,b,h,p,m,g,y,S,x,A,T,v,k,F,R,E,I,L,D,B,P={Xn:0,Rn:[],Sn:[],Tn:[],gn:{count:0},Yn:{},Un:d,af:d,Wn:e.Sj()},W=e.gj(),_=e.hj(),N=e.ij();if(N&&0!==N.length||(_?(r=new a.ExcelStyle,r.builtInStyle=0,r.name="Normal",r.format(_),N=[],N.push(r)):(N=[],N.push(a.BuiltInExcelStyles.getNormalStyle()))),o="Normal",N)for(i=0,c=N.length;i<c;i++)u=N[i],u.isBuiltInStyle()&&0===u.builtInStyle&&(o=u.name);for(P.af=N,f=s.Util.ka(N,function(e){return e.name===o},null),b=s.Util.ka(W,function(e){return!e.isStyleFormat},null),h=s.Util.ka(W,function(e){return e.isStyleFormat},null),null!==b&&b.equals(_,!0)||(W.splice(0,0,_),P.Xn+=1),null!==h&&h.equals(f.format())||(W.splice(0,0,f.format()),P.Xn+=1),p=0,m=0,g=0,y=0,S=f.format(),x=C(S.fontForColumnWidth?S.fontForColumnWidth:S.font),P.Rn.push(x),A=new l.ExcelFill,A.patternType=0,A.bgColor=a.ExcelColor.EmptyColor,A.fgColor=a.ExcelColor.EmptyColor,P.Sn.push(A),A=new l.ExcelFill,A.patternType=17,A.bgColor=a.ExcelColor.EmptyColor,A.fgColor=a.ExcelColor.EmptyColor,P.Sn.push(A),P.Tn.push(new a.ExcelBorder),P.Vn=[],P.Un=[],T=0,i=0,c=W.length;i<c;i++)v=W[i],v.font&&(p=s.Util.la(P.Rn,v.font),p===-1&&(P.Rn.push(C(v.font)),p=P.Rn.length-1)),v.numberFormat?(m=v.numberFormat.numberFormatId,void 0===P.gn[m]&&P.gn.count++,P.gn[m]=s.Util.ua(v.numberFormat.numberFormatCode,"\n","_x000a_"),P.Yn[v.numberFormat.numberFormatCode]=m):v.numberFormatIndex>=0&&(m=v.numberFormatIndex),v.border&&(y=s.Util.la(P.Tn,v.border),y===-1&&(P.Tn.push(v.border),y=P.Tn.length-1)),s.isNullOrUndefined(v.fill)||0===v.fill.patternType?g=0:(k=v.fill,g=s.Util.la(P.Sn,k),g===-1&&(P.Sn.push(k),g=P.Sn.length-1)),v.isStyleFormat?(t[T]=""+P.Un.length,T++,P.Un.push(new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)))):(F=new n.Tuple(m,p,g,y,0,v,new n.Tuple(v.isHidden,v.isLocked)),R=w(P.Vn,F),R===-1?(t[T]=""+P.Vn.length,P.Vn.push(F)):t[T]=""+R,T++);if(e.Ih&&e.Ih.length>0)for(E=e.Ih,I=E.length,i=0;i<I;i++)L=E[i],D=void 0,B=void 0,L.numberFormat?(D=L.numberFormat.numberFormatId,B=L.numberFormat.numberFormatCode):(D=L.numberFormatIndex,B=a.ExtendedNumberFormatHelper.getFormatCode(L)),void 0===P.gn[D]&&P.gn.count++,P.gn[D]=B,P.Yn[B]=m;return e.Yn=P.Yn,P}function A(e,t){t.key<0||e.writeLeafElement("numFmt",function(){e.writeAttributeString("numFmtId",""+t.key),e.writeAttributeString("formatCode",s.Util.oa(""+t.value))})}function T(e,t,r){t&&e.writeElement("font",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.isItalic&&e.writeLeafElement("i"),t.isStrikeOut&&e.writeLeafElement("strike"),0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),!r&&(0!==t.fontSize||t.fontSize!==-1)){var o=t.fontSize;o>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+o)})}void 0!==t.fontColor&&t.fontColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.fontColor),r||(0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])}),s.StringEx.O(t.fontName)||e.writeLeafElement("name",function(){e.writeAttributeString("val",t.fontName)}),s.isNullOrUndefined(t.fontFamily)||0===t.fontFamily||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamily)}),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}))})}function v(e,t){t&&e.writeElement("rPr",d,function(){if(t.isBold&&e.writeLeafElement("b"),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.foreColor&&t.foreColor!==a.ExcelColor.EmptyColor&&c.writeColor(e,"color",t.foreColor),t.isCondense&&e.writeLeafElement("condense"),t.isExtend&&e.writeLeafElement("extend"),s.isNullOrUndefined(t.fontFamilySet)||0===t.fontFamilySet||e.writeLeafElement("family",function(){e.writeAttributeString("val",""+t.fontFamilySet)}),t.isItalic&&e.writeLeafElement("i"),t.isOutlineStyle&&e.writeLeafElement("outline",function(){e.writeAttributeString("val","1")}),s.StringEx.O(t.fontFamily)||e.writeLeafElement("rFont",function(){e.writeAttributeString("val",t.fontFamily)}),t.fontScheme&&0!==t.fontScheme&&e.writeLeafElement("scheme",function(){e.writeAttributeString("val",a.FontSchemeCategory[t.fontScheme])}),t.isShadowStyle&&e.writeLeafElement("shadow",function(){e.writeAttributeString("val","1")}),t.isStrikeOut&&e.writeLeafElement("strike"),t.fontSize&&0!==t.fontSize||t.fontSize!==-1){var r=t.fontSize;r>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+r)})}t.underLineStyle&&0!==t.underLineStyle&&(1===t.underLineStyle?e.writeLeafElement("u"):e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[t.underLineStyle])})),t.vertAlign&&0!==t.vertAlign&&e.writeLeafElement("vertAlign",function(){e.writeAttributeString("val",l.VertAlign[t.vertAlign])})})}t.writerRichTextStyle=v;function k(e,t,r){e.writeElement("fill",d,function(){t.stops?e.writeElement("gradientFill",function(){var r,o,i,n=["degree","left","right","top","bottom"];for(r=0,o=n;r<o.length;r++)i=o[r],s.isNullOrUndefined(t[i])||e.writeAttributeString(i,t[i]);"path"===t.type&&e.writeAttributeString("type","path")},function(){var r,o=function(r){e.writeElement("stop",function(){e.writeAttributeString("position",t.stops[r].position)},function(){c.writeColor(e,"color",t.stops[r].color)})};for(r=0;r<t.stops.length;r++)o(r)}):e.writeElement("patternFill",function(){e.writeAttributeString("patternType",l.FillPatternType[t.patternType])},function(){t.fgColor&&c.writeColor(e,"fgColor",t.fgColor),t.bgColor&&c.writeColor(e,"bgColor",t.bgColor)})})}function F(e,t,r,o){var i=!1;e.writeElement("border",function(){t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&(i=!0,e.writeAttributeString("diagonalDown",1)),t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(i=!0,e.writeAttributeString("diagonalUp",1))},function(){(!r||r&&t.left)&&R(e,"left",t.left),(!r||r&&t.right)&&R(e,"right",t.right),(!r||r&&t.top)&&R(e,"top",t.top),(!r||r&&t.bottom)&&R(e,"bottom",t.bottom),!t.vertical||!o&&i||R(e,"vertical",t.vertical),!t.horizontal||!o&&i||R(e,"horizontal",t.horizontal);var n=!1;t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(R(e,"diagonal",t.diagonalUp),n=!0),t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&!n&&R(e,"diagonal",t.diagonalDown)})}function R(e,t,r){r&&(0!==r.lineStyle||r.color?e.writeElement(t,function(){0!==r.lineStyle&&e.writeAttributeString("style",l.ExcelBorderStyle[r.lineStyle])},function(){r.color&&c.writeColor(e,"color",r.color)}):e.writeLeafElement(t))}function E(e,t,r,o){0===t.length?e.writeElement(r,function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("xf",function(){e.writeAttributeString("numFmtId","0"),e.writeAttributeString("fontId","0"),e.writeAttributeString("fillId","0"),e.writeAttributeString("borderId","0"),o||e.writeAttributeString("xfId","0")})}):e.writeElement(r,function(){e.writeAttributeString("count",""+t.length)},function(){var r,i,n=function(r,i){var n=t[r],c=n.item6,d=n.item7,u=0!==c.horizontalAlign||2!==c.verticalAlign||0!==c.rotation||0!==c.readingOrder||c.isWordWrap||c.isShrinkToFit||c.isJustfyLastLine||c.indent>0,f=d&&(d.item1||!d.item2),b="writeElement";u||f||(b="writeLeafElement"),e[b]("xf",function(){if(e.writeAttributeString("numFmtId",""+n.item1),e.writeAttributeString("fontId",""+n.item2),e.writeAttributeString("fillId",""+n.item3),e.writeAttributeString("borderId",""+n.item4),c){if(o)I(e,c,"applyFont",!0),I(e,c,"applyFill",!0),I(e,c,"applyBorder",!0),I(e,c,"applyNumberFormat",!0),I(e,c,"applyAlignment",!0),I(e,c,"applyProtection",!0);else{if(c.isStyleFormat||s.isNullOrUndefined(c.parentFormatID))e.writeAttributeString("xfId","0");else{var t=c.parentFormatID;s.isNullOrUndefined(t)?e.writeAttributeString("xfId","0"):e.writeAttributeString("xfId",""+t)}s.isNullOrUndefined(c.applyFont)&&0===n.item2||I(e,c,"applyFont",!1),
55
55
  s.isNullOrUndefined(c.applyFill)||I(e,c,"applyFill",!1),s.isNullOrUndefined(c.applyBorder)||I(e,c,"applyBorder",!1),s.isNullOrUndefined(c.applyNumberFormat)||I(e,c,"applyNumberFormat",!1),s.isNullOrUndefined(c.applyAlignment)||I(e,c,"applyAlignment",!1),s.isNullOrUndefined(c.applyProtection)||I(e,c,"applyProtection",!1)}s.isNullOrUndefined(c.quotePrefix)||e.writeAttributeString("quotePrefix",c.quotePrefix===!0?"1":"0")}},function(){u&&e.writeLeafElement("alignment",function(){0!==c.horizontalAlign?e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[c.horizontalAlign]):0===c.horizontalAlign&&c.indent>0&&e.writeAttributeString("horizontal",l.ExcelHorizontalAlignment[1]),2!==c.verticalAlign&&e.writeAttributeString("vertical",a.ExcelVerticalAlignment[c.verticalAlign]),c.isVerticalText===!0?e.writeAttributeString("textRotation",255):0!==c.rotation&&e.writeAttributeString("textRotation",""+c.rotation),0!==c.readingOrder&&e.writeAttributeString("readingOrder",l.TextDirection[c.readingOrder]),c.isWordWrap&&e.writeAttributeString("wrapText","1"),c.isShrinkToFit&&e.writeAttributeString("shrinkToFit","1"),c.isJustfyLastLine&&e.writeAttributeString("justifyLastLine","1"),c.indent>0&&e.writeAttributeString("indent",""+c.indent)}),f&&e.writeLeafElement("protection",function(){d.item2||e.writeAttributeString("locked","0"),d.item1&&e.writeAttributeString("hidden","1")})})};for(r=0,i=t.length;r<i;r++)n(r,i)})}function I(e,t,r,o){var i=t[r],n;o&&i===!1?n="0":o||i!==!0||(n="1"),s.isNullOrUndefined(n)||e.writeAttributeString(r,n)}function L(e){e.writeElement("cellStyles",function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("cellStyle",function(){h(e,"name","Normal","builtinId","0","xfId","0")})})}function D(e,t,r){for(var o=0;o<r.length;o++)_(e,t,r[o],"dxf")}function B(e,t,r){var o=r?r:t.hf;0===o.length?e.writeLeafElement("dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("dxfs",function(){e.writeAttributeString("count",o.length)},function(){D(e,t,o)})}function P(e,t){var r=t.Ch;0===r.length?e.writeLeafElement("x14:dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("x14:dxfs",function(){e.writeAttributeString("count",r.length)},function(){D(e,t,r)})}function W(e,t){var r=t.Dh;0===r.length?e.writeLeafElement("x15:dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("x15:dxfs",function(){e.writeAttributeString("count",r.length)},function(){for(var o=0;o<r.length;o++)_(e,t,r[o],"dxf")})}function _(e,t,r,o){e.writeElement(o,function(){var o,i,n=r.isColorFilter?r:a.ConverterHelper.toDifferentialFormatting(r,t);n.font&&T(e,n.font,n.isPartFontStyle),(n.numberFormat||n.numberFormatIndex>=0)&&(o=void 0,i=void 0,n.numberFormat?(o=n.numberFormat.numberFormatId,i=n.numberFormat.numberFormatCode):(o=n.numberFormatIndex,i=n.numberFormatCode),A(e,{key:o,value:i})),n.fill&&(1===n.fill.patternType&&(n.fill.bgColor=n.fill.fgColor),k(e,n.fill,!0)),n.border&&F(e,n.border,n.isSlicerHeader,!0)})}t.writeDxf=_},"./src/xlsx-io/writer/table-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/common/range-parser.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts");function c(e){return e.indexOf("LET(")>-1}function d(e,t){var r=e;return"number"==typeof t[e]?(t[e]++,r+="_"+t[e]):t[e]=0,r}function u(e,t,r,s){if(n.isNullOrUndefined(e))return null;var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("table",function(){var t,r;u.writeAttributeString("xmlns",i.XFileConstants.Md),u.writeAttributeString("id",e.id),t=e.name.split(" ").join("_"),u.writeAttributeString("name",t),r=d(t.split("-").join("_"),s),u.writeAttributeString("displayName",r),u.writeAttributeString("ref",a.getRangeString([{row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount}])),e.showHeader===!1&&u.writeAttributeString("headerRowCount","0"),e.showFooter&&u.writeAttributeString("totalsRowCount","1")},function(){var o,i;e.rowFilter&&!n.isNullOrUndefined(e.rowFilter)&&(o=void 0,i=t.Bj(r,e.rowFilter,e.tableSortInfo),i&&i.sortInfo&&(o=i.sortInfo,i.sortInfo=null),e.showHeader!==!1&&(f(e.rowFilter)||h(i),l.writeAutoFilter(u,i)),o&&l.writeSortInfo(u,o)),e.columns&&e.columns.length>0&&u.writeElement("tableColumns",function(){u.writeAttributeString("count",e.columns.length)},function(){e.columns.forEach(function(t,r){if(!(r>=e.colCount)){var o=b(t.footerFormula);"custom"!==o?u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),n.isNullOrUndefined(t.footerValue)||u.writeAttributeString("totalsRowLabel",n.Util.oa(n.Util.xa(""+t.footerValue,!0))),n.isNullOrUndefined(t.footerFormula)||u.writeAttributeString("totalsRowFunction",o)},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))})}):u.writeElement("tableColumn",function(){u.writeAttributeString("id",""+t.id);var e=t.name;e=n.Util.ua(e,"\r",""),u.writeAttributeString("name",n.Util.oa(n.Util.ua(e,"\n","_x000a_"))),u.writeAttributeString("totalsRowFunction","custom")},function(){var e=t.dataAreaFormula;n.isNullOrUndefined(e)||c(e)||u.writeElement("calculatedColumnFormula",function(){u.writeValue(n.Util.oa(n.addXLFNPrefix(e)))}),u.writeElement("totalsRowFormula",function(){u.writeValue(n.Util.oa(t.footerFormula))})})}})}),u.writeLeafElement("tableStyleInfo",function(){if(e.style){var t="";t=n.isNullOrUndefined(e.style.buildInName)?e.style.name:"TableStyle"+e.style.buildInName,u.writeAttributeString("name",t)}e.highlightFirstColumn?u.writeAttributeString("showFirstColumn","1"):u.writeAttributeString("showFirstColumn","0"),e.highlightLastColumn?u.writeAttributeString("showLastColumn","1"):u.writeAttributeString("showLastColumn","0"),n.isNullOrUndefined(e.bandRows)?u.writeAttributeString("showRowStripes","1"):u.writeAttributeString("showRowStripes","0"),e.bandColumns?u.writeAttributeString("showColumnStripes","1"):u.writeAttributeString("showColumnStripes","0")}),e.reservedElement&&u.writeElement("extLst",function(){},function(){u.writeElement("ext",function(){n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr.uri)||u.writeAttributeString("uri",e.reservedElement.ext._attr.uri),n.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr["xmlns:x14"])||u.writeAttributeString("xmlns:x14",e.reservedElement.ext._attr["xmlns:x14"])},function(){var t,r="vp:columns",o=e.reservedElement.ext[r];n.isNullOrUndefined(o)||u.writeElement(r,function(){n.isNullOrUndefined(o._attr&&o._attr["xmlns:vp"])||u.writeAttributeString("xmlns:vp",o._attr["xmlns:vp"])},function(){n.isNullOrUndefined(o[r])||u.writeValue(o[r])}),t=e.reservedElement.ext["x14:table"],n.isNullOrUndefined(t&&t._attr)||u.writeLeafElement("x14:table",function(){n.isNullOrUndefined(t._attr.altText)||u.writeAttributeString("altText",t._attr.altText),n.isNullOrUndefined(t._attr.altTextSummary)||u.writeAttributeString("altTextSummary",t._attr.altTextSummary)})})})}),u.getXmlString()}t.writeTable=u;function f(e){var t,r;if(!e.showFilterButton)return!1;t=e.filterButtonVisibleInfo;for(r in t)if(t.hasOwnProperty(r)&&!t[r])return!1;return!0}s={101:"average",102:"countNums",103:"count",104:"max",105:"min",107:"stdDev",109:"sum",110:"let"};function b(e){var t,r;if(!n.isNullOrUndefined(e))return t=/\[\S[\S\s]*\S\]/,e=e.trim(),"SUBTOTAL("!==e.substr(0,9)||!t.test(e)||e.indexOf("[[")?"custom":(r=e.substr(9,3),s[r]||"custom")}function h(e){if(0===e.filterColumns.length)for(var t=0;t<e.range.colCount;t++)e.filterColumns.push({autoFilterColumnId:t});e.filterColumns.forEach(function(e){e.hiddenButton="1"})}},"./src/xlsx-io/writer/theme-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/builtIn-resource.ts"),a=r("./src/xlsx-io/common/color-writer.ts");function s(e){var t,r=e.Hi();return r||(r="Office"),t=new o.XmlWriter,t.writeDocument(),t.writeElement("a:theme",function(){t.writeAttributeString("xmlns:a",i.XFileConstants.Xd),r&&r.name?t.writeAttributeString("name",r.name):"Office"===r?t.writeAttributeString("name","Office Theme"):t.writeAttributeString("name",r)},function(){t.writeElement("a:themeElements",void 0,function(){var e,o;r&&r.colorScheme?(e=r.colorScheme,t.writeElement("a:clrScheme",function(){t.writeAttributeString("name",e.name)},function(){a.writeColorScheme(t,"a:dk1",e.schemeColors[1]),a.writeColorScheme(t,"a:lt1",e.schemeColors[0]),a.writeColorScheme(t,"a:dk2",e.schemeColors[3]),a.writeColorScheme(t,"a:lt2",e.schemeColors[2]),a.writeColorScheme(t,"a:accent1",e.schemeColors[4]),a.writeColorScheme(t,"a:accent2",e.schemeColors[5]),a.writeColorScheme(t,"a:accent3",e.schemeColors[6]),a.writeColorScheme(t,"a:accent4",e.schemeColors[7]),a.writeColorScheme(t,"a:accent5",e.schemeColors[8]),a.writeColorScheme(t,"a:accent6",e.schemeColors[9]),a.writeColorScheme(t,"a:hlink",e.schemeColors[10]),a.writeColorScheme(t,"a:folHlink",e.schemeColors[11])})):n.ThemeClrSchemes[r]?t.xml.addString(n.ThemeClrSchemes[r]):t.xml.addString(n.ThemeClrSchemes.Office),r&&r.fontScheme?(o=r.fontScheme,t.writeElement("a:fontScheme",function(){t.writeAttributeString("name",o.name)},function(){t.writeElement("a:majorFont",void 0,function(){c(t,o.majorFont,!0)}),t.writeElement("a:minorFont",void 0,function(){c(t,o.minorFont,!1)})})):n.ThemeFontSchemes[r]?t.xml.addString(n.ThemeFontSchemes[r]):t.xml.addString(n.ThemeFontSchemes.Office),n.ThemeFmtSchemes[r]?t.xml.addString(n.ThemeFmtSchemes[r]):t.xml.addString(n.ThemeFmtSchemes.Office)}),t.writeLeafElement("a:objectDefaults"),t.writeLeafElement("a:extraClrSchemeLst")}),t.getXmlString()}t.writeTheme=s;function c(e,t,r){var o,n,a;if(t)if(t.runFormattings&&(e.writeLeafElement("a:"+i.FontLanguage[0],function(){e.writeAttributeString("typeface",f(t.runFormattings,0))}),e.writeLeafElement("a:"+i.FontLanguage[2],function(){e.writeAttributeString("typeface",f(t.runFormattings,2))}),e.writeLeafElement("a:"+i.FontLanguage[1],function(){e.writeAttributeString("typeface",f(t.runFormattings,1))})),t.themesFonts&&t.themesFonts.length>0)for(o=function(r,o){var i=t.themesFonts[r];e.writeLeafElement("a:font",function(){e.writeAttributeString("script",i.script),e.writeAttributeString("script",i.typeface)})},n=0,a=t.themesFonts.length;n<a;n++)o(n,a);else r?d(e):u(e)}t.writeThemeFonts=c,l="Times New Roman";function d(e){e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Jpan"),e.writeAttributeString("typeface","\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hang"),e.writeAttributeString("typeface","\ub9d1\uc740 \uace0\ub515")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hans"),e.writeAttributeString("typeface","\u5b8b\u4f53")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hant"),e.writeAttributeString("typeface","\u65b0\u7d30\u660e\u9ad4")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Arab"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hebr"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thai"),e.writeAttributeString("typeface","Tahoma")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Ethi"),e.writeAttributeString("typeface","Nyala")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Beng"),e.writeAttributeString("typeface","Vrinda")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Gujr"),e.writeAttributeString("typeface","Shruti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Khmr"),e.writeAttributeString("typeface","MoolBoran")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Knda"),e.writeAttributeString("typeface","Tunga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Guru"),e.writeAttributeString("typeface","Raavi")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cans"),e.writeAttributeString("typeface","Euphemia")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cher"),e.writeAttributeString("typeface","Plantagenet Cherokee")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Yiii"),e.writeAttributeString("typeface","Microsoft Yi Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Tibt"),e.writeAttributeString("typeface","Microsoft Himalaya")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thaa"),e.writeAttributeString("typeface","MV Boli")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Deva"),e.writeAttributeString("typeface","Mangal")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Telu"),e.writeAttributeString("typeface","Gautami")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Taml"),e.writeAttributeString("typeface","Latha")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Syrc"),e.writeAttributeString("typeface","Estrangelo Edessa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Orya"),e.writeAttributeString("typeface","Kalinga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mlym"),e.writeAttributeString("typeface","Kartika")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Laoo"),e.writeAttributeString("typeface","DokChampa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Sinh"),e.writeAttributeString("typeface","Iskoola Pota")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mong"),e.writeAttributeString("typeface","Mongolian Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Viet"),e.writeAttributeString("typeface",l)}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Uigh"),e.writeAttributeString("typeface","Microsoft Uighur")})}function u(e){e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Jpan"),e.writeAttributeString("typeface","\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hang"),e.writeAttributeString("typeface","\ub9d1\uc740 \uace0\ub515")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hans"),e.writeAttributeString("typeface","\u5b8b\u4f53")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hant"),e.writeAttributeString("typeface","\u65b0\u7d30\u660e\u9ad4")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Arab"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Hebr"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thai"),e.writeAttributeString("typeface","Tahoma")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Ethi"),e.writeAttributeString("typeface","Nyala")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Beng"),e.writeAttributeString("typeface","Vrinda")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Gujr"),e.writeAttributeString("typeface","Shruti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Khmr"),e.writeAttributeString("typeface","DaunPenh")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Knda"),e.writeAttributeString("typeface","Tunga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Guru"),e.writeAttributeString("typeface","Raavi")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cans"),e.writeAttributeString("typeface","Euphemia")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Cher"),e.writeAttributeString("typeface","Plantagenet Cherokee")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Yiii"),e.writeAttributeString("typeface","Microsoft Yi Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Tibt"),e.writeAttributeString("typeface","Microsoft Himalaya")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Thaa"),e.writeAttributeString("typeface","MV Boli")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Deva"),e.writeAttributeString("typeface","Mangal")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Telu"),e.writeAttributeString("typeface","Gautami")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Taml"),e.writeAttributeString("typeface","Latha")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Syrc"),e.writeAttributeString("typeface","Estrangelo Edessa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Orya"),e.writeAttributeString("typeface","Kalinga")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mlym"),e.writeAttributeString("typeface","Kartika")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Laoo"),e.writeAttributeString("typeface","DokChampa")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Sinh"),e.writeAttributeString("typeface","Iskoola Pota")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Mong"),e.writeAttributeString("typeface","Mongolian Baiti")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Viet"),e.writeAttributeString("typeface","Arial")}),e.writeLeafElement("a:font",function(){e.writeAttributeString("script","Uigh"),e.writeAttributeString("typeface","Microsoft Uighur")})}function f(e,t){var r,o,i;if(!e)return"";for(r=0,o=e.length;r<o;r++)if(i=e[r],i.fontLanguage===t)return i.typeface;return""}},"./src/xlsx-io/writer/timeline-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/pivot-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=r("./src/xlsx-io/writer/autofilter-writer.ts"),c=n.Util.Ba,d=n.Util.oa,u=n.Util.ua,f=[0,6,10,8,9,17,15,16,14,12,13,18,19,20,21,22,23,40];function b(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("timelines",function(){t.writeAttributeString("xmlns",i.XFileConstants.de),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString("mc:Ignorable","x"),t.writeAttributeString("xmlns:x",i.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("timeline",function(){t.writeAttributeString("name",d(u(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",d(e.nameInFormula)),t.writeAttributeString("caption",d(e.captionName)),t.writeAttributeString("level",parseInt(e.level,10)-1),n.isNullOrUndefined(e.style)||n.isNullOrUndefined(e.style.name)||t.writeAttributeString("style",d(e.style.name)),n.isNullOrUndefined(e.selectionLevel)||t.writeAttributeString("selectionLevel",parseInt(e.selectionLevel,10)-1),n.isNullOrUndefined(e.scrollPosition)||t.writeAttributeString("scrollPosition",c(new Date(e.scrollPosition))),n.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showHeader","0"),n.isNullOrUndefined(e.showSelectionLabel)||e.showSelectionLabel||t.writeAttributeString("showSelectionLabel","0"),n.isNullOrUndefined(e.showTimeLevel)||e.showTimeLevel||t.writeAttributeString("showTimeLevel","0"),n.isNullOrUndefined(e.showHorizontalScrollbar)||e.showHorizontalScrollbar||t.writeAttributeString("showHorizontalScrollbar","0"),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeTimelines=b;function h(e){if(n.isNullOrUndefined(e))return null;var t=new o.XmlWriter;return t.writeDocument(),t.writeElement("timelineCacheDefinition",function(){t.writeAttributeString("xmlns",i.XFileConstants.de),t.writeAttributeString("xmlns:x15",i.XFileConstants.de),t.writeAttributeString("xmlns:mc",i.XFileConstants.ae),t.writeAttributeString("name",u(d(e.name),"\n","_x000a_")),t.writeAttributeString("sourceName",u(d(e.sourceName),"\n","_x000a_"))},function(){if(t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",d(e.name))})})}),t.writeElement("state",function(){t.writeAttributeString("minimalRefreshVersion","6"),t.writeAttributeString("lastRefreshVersion","6"),t.writeAttributeString("pivotCacheId",e.pivotCacheId),n.isNullOrUndefined(e.filterType)||f.indexOf(e.filterType)!==-1||t.writeAttributeString("singleRangeFilterState","0"),n.isNullOrUndefined(e.filterType)||!a.captionCompareTypeExcel[1][e.filterType]?t.writeAttributeString("filterType","unknown"):t.writeAttributeString("filterType",a.captionCompareTypeExcel[1][e.filterType])},function(){!n.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)!==-1&&e.selectionStartDate&&e.selectionEndDate&&t.writeLeafElement("selection",function(){t.writeAttributeString("startDate",c(new Date(e.selectionStartDate))),t.writeAttributeString("endDate",c(new Date(e.selectionEndDate)))}),t.writeLeafElement("bounds",function(){t.writeAttributeString("startDate",c(new Date(e.boundsStartDate))),t.writeAttributeString("endDate",c(new Date(e.boundsEndDate)))})}),!n.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)===-1){var r=l.getPivotDateFilter(e.filterCondition,a.captionCompareTypeExcel[1][e.filterType]);if(!r)return;t.writeElement("timelinePivotFilter",function(){t.writeAttributeString("useWholeDay",e.filterCondition.isWholeDay?"1":"0"),t.writeAttributeString("fld","1"),t.writeAttributeString("id","1")},function(){t.writeElement("autoFilter",function(){t.writeAttributeString("ref","A1")},function(){t.writeElement("x:filterColumn",function(){t.writeAttributeString("xmlns:x",i.XFileConstants.be),t.writeAttributeString("colId","0")},function(){2===r.filterType?s.writePivotDynamicFilter(t,r):s.writeCustomFilters(t,r,s.PivotComparisonOperators)})})})}}),t.getXmlString()}t.writePivotTimelineCache=h},"./src/xlsx-io/writer/vmlDrawing-writer.ts":function(e,t,r){"use strict";var o,i,n;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/xlsx-io/writer/comment-writer.ts"),n=r("./src/xlsx-io/writer/control-writer.ts");function a(e,t,r){var a=new o.XmlWriter;return a.writeElement("xml",function(){a.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),a.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),a.writeAttributeString("xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){a.writeElement("o:shapelayout",function(){a.writeAttributeString("v:ext","edit")},function(){a.writeLeafElement("o:idmap",function(){a.writeAttributeString("v:ext","edit"),a.writeAttributeString("data","1")})});var o=1024*(e+1)+1;t&&t.length>0&&(i.writeCommentShapes(a,t,o),o+=t.length),r&&r.length>0&&n.writeControlShapes(a,r,o)}),a.getXmlString()}t.writeVmlDrawingForLegacyDrawing=a},"./src/xlsx-io/writer/workbook-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/xml-io/xml-writer.ts"),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=void 0;function c(e,t,r,a,l,s,c){var u=new o.XmlWriter;return u.writeDocument(),u.writeElement("workbook",function(){u.writeAttributeString("xmlns",i.XFileConstants.Hd),u.writeAttributeString("xmlns:r",i.XFileConstants.Ud)},function(){d(u,e),u.writeElement("sheets",void 0,function(){var r,o,i=function(r,o){var i=t[r];i&&u.writeLeafElement("sheet",function(){u.writeAttributeString("name",n.Util.oa(i.name)),u.writeAttributeString("sheetId",""+i.sheetId),e.tj(i.name)?u.writeAttributeString("state","hidden"):e.uj(i.name)&&u.writeAttributeString("state","veryHidden"),u.writeAttributeString("r:id",""+i.rID)})};for(r=0,o=t.length;r<o;r++)i(r,o)});var o=e.Ne.externalReference;o&&u.writeElement("externalReferences",void 0,function(){var e,t=function(e){if(Object.prototype.hasOwnProperty.call(o,e)){var t=o[e];u.writeLeafElement("externalReference",function(){u.writeAttributeString("r:id",t.option.id)})}};for(e in o)t(e)}),f(u,e,a),S(u,r,s,c),C(u,l),x(u,e,t)}),u.getXmlString()}t.writeWorkbook=c;function d(e,t){var r=t.sj();e.writeElement("bookViews",void 0,function(){e.writeLeafElement("workbookView",function(){r.showHorizontalScrollbar===!1&&e.writeAttributeString("showHorizontalScroll","0"),r.showVerticalScrollbar===!1&&e.writeAttributeString("showVerticalScroll","0"),r.tabStripVisible===!1&&e.writeAttributeString("showSheetTabs","0"),"number"==typeof r.tabStripRatio&&.6!==r.tabStripRatio&&e.writeAttributeString("tabRatio",""+1e3*r.tabStripRatio),"number"==typeof r.startSheetIndex&&r.startSheetIndex>0&&e.writeAttributeString("firstSheet",""+r.startSheetIndex),"number"==typeof r.activeSheetIndex&&r.activeSheetIndex>0&&e.writeAttributeString("activeTab",""+r.activeSheetIndex)})})}function u(e){return e.toUpperCase()===n.PRINT_AREA_UPPERCASE?n.BUILT_IN_PRINT_AREA:e}function f(e,t,r){var o,i,a=t.vj(),l=g(t);m(a,l),o=y(t),m(a,o),i=b(t),m(a,i),m(a,r),a.length>0&&e.writeElement("definedNames",s,function(){var t,r=function(t){var r=a[t];e.writeElement("definedName",function(){e.writeAttributeString("name",n.Util.oa(u(r.name))),r.comment&&e.writeAttributeString("comment",n.Util.oa(r.comment)),r.localSheetId>-1&&e.writeAttributeString("localSheetId",r.localSheetId),r.hidden===!0&&e.writeAttributeString("hidden","1")},function(){e.writeValue(n.addXLFNPrefix(r.formula).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))})};for(t=0;t<a.length;t++)r(t)})}function b(e){var t,r,o,i,n,a,l=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(o=e.Nj(r),o&&(i=h(o.repeatRowStart,o.repeatRowEnd,s,s,r),n=h(s,s,o.repeatColumnStart,o.repeatColumnEnd,r),a=void 0,i&&n?a=n+","+i:i?a=i:n&&(a=n),a&&l.push({name:"_xlnm.Print_Titles",localSheetId:t,formula:a})));return l}function h(e,t,r,o,i){if(r===s&&o===s&&e===s&&t===s)return s;var a="";return r!==s&&(a+="$"+n.IndexHelper.T(r)),e!==s&&(a+="$"+(e+1)),a+=":",o!==s&&(a+="$"+n.IndexHelper.T(o)),t!==s&&(a+="$"+(t+1)),i?n.IndexHelper.V(i)+"!"+a:a}function p(e,t){for(var r=0;r<e.length;r++)if(e[r].name===t.name&&e[r].localSheetId===t.localSheetId)return!0;return!1}function m(e,t){for(var r=0;r<t.length;r++)p(e,t[r])||e.push(t[r])}function g(e){var t,r,o,i,n,a,l=[],s=e.jj();for(t=0;t<s.length;t++)if(r=s[t]){if(o=e.Dj(r),i=e.Ej(r,"pivot"),n=e.Ej(r,"timeline"),o)for(a=0;a<o.length;a++)l.push({name:o[a].nameInFormula,formula:"#N/A",localSheetId:-1});if(i)for(a=0;a<i.length;a++)l.push({name:i[a].slicerCacheName,formula:"#N/A",localSheetId:-1});if(n)for(a=0;a<n.length;a++)l.push({name:n[a].slicerCacheName,formula:"#N/A",localSheetId:-1})}return l}function y(e){var t,r,o,i,n,a,s=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(o=e.Oj(r),o&&(i=e.kj(r),o.range&&(n=l.getFilterRange(i,o.range),a=h(n.row,n.row+n.rowCount,n.col,n.col+n.colCount,r),a&&s.push({name:"_xlnm._FilterDatabase",localSheetId:t,formula:a}))));return s}function S(e,t,r,o){e.writeLeafElement("calcPr",function(){var i,a,l;e.writeAttributeString("calcId","0"),t&&e.writeAttributeString("refMode","R1C1"),i=n.isNullOrUndefined(r.iterate)||r.iterate?"1":"0",a=n.isNullOrUndefined(r.count)?"1000":r.count,l=n.isNullOrUndefined(r.delta)?"0.01":r.delta,e.writeAttributeString("iterate",i),e.writeAttributeString("iterateCount",a),e.writeAttributeString("iterateDelta",l),1===o&&e.writeAttributeString("calcMode","manual")})}function C(e,t){n.isEmptyObject(t)||e.writeElement("pivotCaches",function(){for(var r in t)t.hasOwnProperty(r)&&w(e,t[r])})}function w(e,t){n.isEmptyObject(t)||e.writeLeafElement("pivotCache",function(){e.writeAttributeString("cacheId",t.cacheId),e.writeAttributeString("r:id",t.rid)})}function x(e,t,r){var o,i=0,n=t.Ne.tableSlicerCaches;n&&n.length&&i++,o=t.Ne.slicerCaches,o&&o.length&&i++,i&&a.writeSlicerCacheInWorkbook(e,n,o)}},"./src/xlsx-io/writer/worksheet-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/common.ts"),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/common/tuple.ts"),s=r("./src/xlsx-io/writer/sparkline-writer.ts"),c=r("./src/xlsx-io/writer/conditionalformat-writer.ts"),d=r("./src/xlsx-io/writer/slicer-writer.ts"),u=r("./src/xlsx-io/writer/autofilter-writer.ts"),f=r("./src/xlsx-io/writer/datavalidation-writer.ts"),b=r("./src/datamodel/excel-helper.ts"),h=r("./src/xlsx-io/writer/print-writer.ts"),p=r("./src/xlsx-io/writer/chart-writer.ts"),m=void 0,g=o.Util.sa,y=66316;function C(e,t,r,a,l,s,d,b,p){var m=new i.XmlWriter;return m.writeDocument(),m.writeElement("worksheet",function(){m.writeAttributeString("xmlns",n.XFileConstants.Hd),m.writeAttributeString("xmlns:r",n.XFileConstants.Ud),m.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),d&&d.attributes&&d.attributes.forEach(function(e){m.writeAttributeString(e.key,e.value)}),m.writeAttributeString("xmlns:x14ac",n.XFileConstants.Nd),m.writeAttributeString("xmlns:xr",n.XFileConstants.Rd),m.writeAttributeString("xmlns:xr2",n.XFileConstants.Sd),m.writeAttributeString("xmlns:xr3",n.XFileConstants.Td),m.writeAttributeString("xr:uid",o.Ha()),m.writeAttributeString("mc:Ignorable",n.XFileConstants.Pd)},function(){var o,i,n;if(x(m,t,e),A(m,t,e),T(m,t,e),v(m,t,e),k(m,t,e,r,a),F(m,t,e,l,r,a,s),I(m,t,e),u.writeAutoFilterForSheet(m,t,e),L(m,t,e),c.writeConditionalFormating(m,t,e),f.writeDataValidations(m,t,e),P(m,t,e,b),h.writePrintOptions(m,t,e),h.writePageMargins(m,t,e),h.writePageSetup(m,t,e),h.writeHeadFooter(m,t,e),h.writeRowColumnBreaks(m,t,e),d)for(o=[{name:"drawing",value:d.drawingId},{name:"legacyDrawing",value:d.legacyDrawingId}],i=function(e){var t=o[e],r=t.value;r&&m.writeLeafElement(t.name,function(){m.writeAttributeString("r:id",r)})},n=0;n<2;n++)i(n);h.writeLegacyDrawingHF(m,e),W(m,p),e.fi(t)&&e.fi(t).length>0&&B(m,e.fi(t)),w(e,t)&&D(m,t,e)}),m.getXmlString()}t.writeWorksheet=C;function w(e,t){var r,o,i,n,a=e.Dj(t),l=e.Ej(t,"pivot"),s=e.Ej(t,"timeline");return!!(a&&a.length>0||l&&l.length>0||s&&s.length>0)||(r=e.zj(t),!!(r&&r.length>0)||(o=e.xg(t),i=o&&o.rules,!(!i||!c.needWriteConditionalFormatExtension(i,t,e.jj()))||(n=e.On,!!(n&&n.length>0))))}function x(e,t,r){var o=r.lj(t),i=o.colsSumRight,n=o.rowsSumBelow,l=r.mj(t),s=r.Mj(t,!0),c=s&&s.useSmartPrint;!l&&i&&n&&c!==!0||e.writeElement("sheetPr",function(){null!==l&&a.writeColor(e,"tabColor",l),i&&n||e.writeLeafElement("outlinePr",function(){i||e.writeAttributeString("summaryRight","0"),n||e.writeAttributeString("summaryBelow","0")}),c===!0&&e.writeLeafElement("pageSetUpPr",function(){e.writeAttributeString("fitToPage","1")})})}function A(e,t,r){var o=r.nj(t),i=o.columnCount,n=o.rowCount;i>0&&n>0?e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1:"+r.Ki(i-1)+n)}):e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1")})}function T(e,t,r){e.writeElement("sheetViews",m,function(){e.writeElement("sheetView",function(){var i,n,a,l,s,c,d,u,f,b,h,p,m=r.oj(t),g=m.gridlineColor;null!==g&&1===g.colorType()&&64!==g.value()&&(e.writeAttributeString("defaultGridColor","0"),
56
56
  e.writeAttributeString("colorId",""+g.value())),i=r.pj(t),n=i.frozenTopRow||0,a=i.frozenLeftCol||0,l=m.topLeftCell,s=i.frozenColCount,c=i.frozenRowCount,l&&void 0!==l.row&&void 0!==l.col&&(n||a?(d=""+r.Ki(a)+(n+1),e.writeAttributeString("topLeftCell",""+d)):s||c?s&&!c?(d="A"+(l.row+1),e.writeAttributeString("topLeftCell",""+d)):!s&&c&&(d=""+r.Ki(l.col)+"1",e.writeAttributeString("topLeftCell",""+d)):(d=""+r.Ki(l.col)+(l.row+1),e.writeAttributeString("topLeftCell",""+d))),m.showGridLine||e.writeAttributeString("showGridLines","0"),m.showRowColHeaders||e.writeAttributeString("showRowColHeaders","0"),o.isNullOrUndefined(m.zoom)||(u=Math.round(100*m.zoom),100!==u&&e.writeAttributeString("zoomScale",""+u)),f=r.kj(t),f.showFormulas&&e.writeAttributeString("showFormulas","1"),f.showZeros===!1&&e.writeAttributeString("showZeros","0"),e.writeAttributeString("workbookViewId","0"),h=r.sj(),h&&(b=h.activeSheetIndex),p=f.index===b,(f.isSelected||p)&&e.writeAttributeString("tabSelected",1)},function(){var i,a,l,s,c,d,u,f=r.pj(t),b=f.frozenColCount,h=f.frozenRowCount,p=0,m=0,g=3,y="1",S="A",C=r.oj(t).topLeftCell;for((b>0||h>0)&&(b>0?(p=b,S=r.Ki(C.col)):p=0,h>0?(m=h,y=C.row+1+""):m=0,b>0&&0===h?g=1:0===b&&h>0?g=2:b>0&&h>0&&(g=0),e.writeLeafElement("pane",function(){var t,o=b-f.frozenLeftCol;o>0&&e.writeAttributeString("xSplit",""+o),t=h-f.frozenTopRow,t>0&&e.writeAttributeString("ySplit",""+t),S+y==="A1"?e.writeAttributeString("topLeftCell",""+r.Ki(p)+(m+1)):e.writeAttributeString("topLeftCell",""+S+y),e.writeAttributeString("activePane",n.PaneType[g]),e.writeAttributeString("state","frozen")})),i=[],a=new o.Range,l=0,s=1,c=-1,d=function(d){var u,f,p,m,g,y,S,C,w,x;if(i.length=0,u=d,r.$i(t,i,a,u)){for(s=i.length,l=0;l<s;l++)f=i[l],f.col!==-1&&f.colCount!==-1||(f=new o.Range(f.row,0,f.rowCount,n.ExcelConstants.vb)),f.row!==-1&&f.rowCount!==-1||(f=new o.Range(0,f.col,n.ExcelConstants.wb,f.colCount)),a.col>=f.col&&a.col<=f.col+f.colCount-1&&a.row>=f.row&&a.row<=f.row+f.rowCount-1&&(c=l);if(c<0&&s>0&&(a.row=i[0].row,a.col=i[0].col),p=""+r.Ki(a.col)+(a.row+1),m="",b>0&&h>0&&(1===u||2===u))m=p;else{for(l=0;l<s;l++)g=i[l],y=Math.min(n.ExcelConstants.wb,g.row+1),S=Math.min(g.col,n.ExcelConstants.vb),m+=""+r.Ki(S)+y,(g.colCount>1||g.rowCount>1)&&(C=Math.min(S+g.colCount-1,n.ExcelConstants.vb),w=Math.min(y+g.rowCount-1,n.ExcelConstants.wb),x=""+r.Ki(C)+w,m+=":"+x),m+=" ";m=m.trim()}o.StringEx.O(m)||3===u&&(b>0||h>0||3!==u)||e.writeLeafElement("selection",function(){3!==u&&e.writeAttributeString("pane",n.PaneType[u]),e.writeAttributeString("activeCell",p),0!==c&&0===u&&e.writeAttributeString("activeCellId",""+c),e.writeAttributeString("sqref",m)})}},u=3;u>=0;u--)d(u)})})}function v(e,t,r){var o=r.Xi(t),i=o.height,n=o.customHeight,a=r.Yi(t);e.writeLeafElement("sheetFormatPr",function(){var o,l,s;isNaN(a)||e.writeAttributeString("defaultColWidth",""+a),n&&e.writeAttributeString("customHeight","1"),e.writeAttributeString("defaultRowHeight",""+i),o=r.Wi(t),l=o.outlineLevelRow-1,s=o.outlineLevelColumn-1,l>0&&e.writeAttributeString("outlineLevelRow",""+l),s>0&&e.writeAttributeString("outlineLevelCol",""+s)})}function k(e,t,r,o,i){var a=r.Ti(t),l=r.Vi(t);0!==a.length&&e.writeElement("cols",m,function(){var t,r,s,c,d=function(r,s){var c,d,u,f=a[r],b=f.index;if(b>=n.ExcelConstants.vb)return t=r,"break";for(c=r+1,d=b;c<a.length&&(u=a[c],u.index===d+1&&u.index<n.ExcelConstants.vb&&u.formatId===f.formatId&&u.visible===f.visible&&u.outLineLevel===f.outLineLevel&&u.collapsed===f.collapsed&&Math.abs(u.width-f.width)<=1e-4);)d=u.index,r=c,c++;e.writeLeafElement("col",function(){if(e.writeAttributeString("min",""+(b+1)),e.writeAttributeString("max",""+(d+1)),f.formatId>=0){var t=o[f.formatId+i];t!==m?e.writeAttributeString("style",t):e.writeAttributeString("style","0")}isNaN(f.width)||f.width===m?e.writeAttributeString("width",""+l):e.writeAttributeString("width",""+f.width),f.visible===!1&&e.writeAttributeString("hidden","1"),f.collapsed&&e.writeAttributeString("collapsed","1"),!isNaN(f.width)&&Math.abs(f.width-l)>1e-4&&e.writeAttributeString("customWidth","1"),"number"==typeof f.outLineLevel&&0!==f.outLineLevel&&e.writeAttributeString("outlineLevel",""+f.outLineLevel)}),t=r};for(r=0,s=a.length;r<s&&(c=d(r,s),r=t,"break"!==c);r++);})}function F(e,t,r,o,i,a,s){var c,d,u,f,b,h,p,g,y,S={},C=r.Ni(t);if(C)for(c=0,d=C.length;c<d;c++)u=C[c],u&&u.index<n.ExcelConstants.wb&&(S[u.index]=new l.Tuple(u,[]));if(f=r.Mi(t))for(b in f)if(f.hasOwnProperty(b))for(h=f[b],c=0,p=h.length;c<p;c++)g=h[c],g&&(S[g.row]?S[g.row].item2.push(g):(S[g.row]=new l.Tuple(null,[]),S[g.row].item2.push(g)));y=r.Ne.sheets[t].sharedFormulas,e.writeElement("sheetData",m,function(){var r,n,l,c=-1;for(r in S)S.hasOwnProperty(r)&&(n=S[r],l=parseInt(r,10),R(e,t,l,c,n.item2,n.item1,o,i,a,s,y),c=l)})}function R(e,t,r,o,i,a,l,s,c,d,u){var f=""+(r+1),b=function(){if(!l.keepRowColIndex&&r===o+1||!a&&!i||e.writeAttributeString("r",f),a){if(a.formatId>=0){var t=s[a.formatId+c];t!==m&&(e.writeAttributeString("s",t),e.writeAttributeString("customFormat","1"))}a.customHeight&&(e.writeAttributeString("customHeight","1"),a.height!==m&&e.writeAttributeString("ht",""+a.height)),a.visible===!1&&e.writeAttributeString("hidden","1"),a.collapsed&&e.writeAttributeString("collapsed","1"),"number"==typeof a.outLineLevel&&0!==a.outLineLevel&&e.writeAttributeString("outlineLevel",""+a.outLineLevel)}};i&&i.length>0?e.writeElement("row",b,function(){var t,r,o,a=-1;for(t=0,r=i.length;t<r;t++)o=i[t],o.col>=n.ExcelConstants.vb||(E(e,o,f,a,l,s,c,d,u),a=o.col)}):e.writeLeafElement("row",b)}S=["#REF!","#NULL!","#DIV/0!","#VALUE!","#NAME?","#NUM!","#N/A","#SPILL!","#CALC!"];function E(e,t,r,i,n,a,l,s,c){var d=t.value,u=t.formula,f=t.cellType,b=t.richText,h=function(){var s,c,u,b;switch((n.xlsxStrictMode||t.col!==i+1)&&e.writeAttributeString("r",o.IndexHelper.T(t.col)+r),t.formatId===-1?e.writeAttributeString("s","0"):(s=t.formatId+l,c=a[s],c!==m&&e.writeAttributeString("s",c)),f){case 0:break;case 9:case 2:u="s";break;case 5:u="b";break;case 7:u="e"}t.formula&&(t.arrayFormulaRange?(b=t.arrayFormulaRange.isDynamicArray,b&&e.writeAttributeString("cm","1"),t.isSpillError&&(u="e",e.writeAttributeString("vm","1"))):o.isNullOrUndefined(d)||"#"!==(""+d).substring(0,1)||S.indexOf((""+d).toUpperCase())===-1?t.isSpillError&&(u="e",e.writeAttributeString("vm","2")):u="e"),(t.formula||t.qi)&&"s"===u&&(u="str"),o.isNullOrUndefined(u)||e.writeAttributeString("t",u)};function p(e){var t,r=s.Zn[e.value],o=s.$n[e.value];return o===m&&(o=s.$n[e.value]=[]),t=C(o,e),r===m||t===m?(r=s.Qn.length,s.Qn.push(e),s.Zn[e.value]=r,o.push({index:r,value:e})):r=t,s.Pn++,r}function C(e,t){for(var r=0,o=e.length;r<o;r++)if(g(e[r].value,t))return e[r].index}d!==m&&null!==d||!o.StringEx.L(u)?e.writeElement("c",h,function(){var r,i;o.StringEx.L(u)||(r=t.arrayFormulaRange,o.isNullOrUndefined(u.si)?r?t.row===r.row&&t.col===r.col&&e.writeElement("f",function(){e.writeAttributeString("t","array");var t=o.IndexHelper.T(r.col)+(r.row+1)+":"+o.IndexHelper.T(r.col+r.colCount-1)+(r.row+r.rowCount);!r.isInvalid&&r.rowCount||(t=t.substr(0,t.indexOf(":"))),e.writeAttributeString("ref",t)},function(){e.writeValue(o.Util.oa(o.Util.xa(o.addXLFNPrefix(u),!0)))}):e.writeElement("f",m,function(){e.writeValue(o.Util.oa(o.Util.xa(o.addXLFNPrefix(u),!0)))}):(i=c[u.si],i.baseRow===t.row&&i.baseColumn===t.col?e.writeElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",u.si);var t=o.IndexHelper.T(i.baseColumn)+(i.baseRow+1)+":"+o.IndexHelper.T(i.lastColumn)+(i.lastRow+1);e.writeAttributeString("ref",t)},function(){e.writeValue(o.Util.oa(o.Util.xa(o.addXLFNPrefix(i.formula),!0)))}):e.writeLeafElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",u.si)}))),d!==m&&null!==d&&e.writeElement("v",m,function(){var r,i;switch("string"==typeof d&&"/OADate"===d.substring(0,7)&&(f=6),r=d,f){case 9:case 2:r=""+p({value:d,richText:b});break;case 7:r=d;break;case 5:i="1",("boolean"==typeof d&&!d||"FALSE"===(""+d).toUpperCase())&&(i="0"),r=i;break;case 6:default:r=o.Util.oa(""+d)}o.isNullOrUndefined(t.formula)&&!t.qi||("boolean"==typeof d&&(d=d?1:0),r=""+d,r&&r.length>y&&(r=""),r=o.Util.oa(o.Util.xa(r,!0))),"#SPILL!"!==r&&"#CALC!"!==r||7!==f||(r="#VALUE!"),e.writeValue(r)})}):e.writeLeafElement("c",h)}function I(e,t,r){var o,i=r.qj(t),n=r.rj(t,i);(i||Object.keys(n).length>0)&&e.writeLeafElement("sheetProtection",function(){i&&e.writeAttributeString("sheet","1");for(var t in n)n.hasOwnProperty(t)&&(o=n[t],"algorithmName"===t||"hashValue"===t||"saltValue"===t||"spinCount"===t||"password"===t?e.writeAttributeString(t,o):b.excelSupportProtectionOptions[t]&&(o=n[t]?"0":"1",e.writeAttributeString(t,o)))})}function L(e,t,r){var i=r.aj(t);i&&i.length>0&&e.writeElement("mergeCells",function(){e.writeAttributeString("count",""+i.length)},function(){var t,r,n=function(t,r){var n=i[t];e.writeLeafElement("mergeCell",function(){e.writeAttributeString("ref",o.IndexHelper.T(n.col)+(n.row+1)+":"+o.IndexHelper.T(n.col+n.colCount-1)+(n.row+n.rowCount))})};for(t=0,r=i.length;t<r;t++)n(t,r)})}function D(e,t,r){e.writeElement("extLst",m,function(){c.writeExtensionConditionalFormats(e,t,r),s.writeSparkline(e,t,r),d.writeSlicersInWorkSheet(e,t,r),f.writeExtensionDataValidations(e,r)})}function B(e,t){e.writeElement("tableParts",function(){e.writeAttributeString("count",""+t.length)},function(){t.forEach(function(t){e.writeLeafElement("tablePart",function(){e.writeAttributeString("r:id",t.rid)})})})}function P(e,t,r,o){var i=r.Hh[t];i&&i.length>0&&e.writeElement("hyperlinks",function(){var t,r,a=function(t,r){var a=i[t];e.writeLeafElement("hyperlink",function(){var t,r;e.writeAttributeString("ref",a.ref),a.location?e.writeAttributeString("location",a.location):(t="",r=new n.XFile(t,n.RelationshipConstants.gb),r.target=a.url,r.targetMode="External",a.rid=o.ze(r),e.writeAttributeString("r:id",a.rid)),a.display&&e.writeAttributeString("display",a.display),a.tooltip&&e.writeAttributeString("tooltip",a.tooltip),a["xr:uid"]&&e.writeAttributeString("xr:uid",a["xr:uid"])})};for(t=0,r=i.length;t<r;t++)a(t,r)})}function W(e,t){!t||t.length<=0||N(e,function(){_(e,t)})}function _(e,t){e.writeElement("controls",m,function(){t.forEach(function(t){M(e,t)})})}function N(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006")},function(){e.writeElement("mc:Choice",function(){e.writeAttributeString("Requires","x14")},t)})}function M(e,t){N(e,function(){O(e,t)})}function O(e,t){var r=t.sp.nvSpPr.cNvPr,o=t.sp.control.rid,i=r.id,n=r.name;e.writeElement("control",function(){e.writeAttributeString("shapeId",i),e.writeAttributeString("r:id",o),e.writeAttributeString("name",n)},function(){H(e,t)})}function H(e,t){var r=t.sp.control.disabled;e.writeElement("controlPr",function(){e.writeAttributeString("defaultSize",0),e.writeAttributeString("autoPict",0),r&&e.writeAttributeString("disabled",1)},function(){G(e,t)})}function G(e,t){var r=t.sp.control.anchorInfo,o=r.startPoint,i=r.endPoint;e.writeElement("anchor",function(){e.writeAttributeString("moveWithCells",1),e.writeAttributeString("sizeWithCells",1)},function(){p.DrawingWriter.WriteCT_Position(e,m,"from",o),p.DrawingWriter.WriteCT_Position(e,m,"to",i)})}},"./src/xlsx-io/writer/xlsx-writer.ts":function(e,t,r){"use strict";var o,i,n,a,l,s,c,d,u,f,b,h,p,m,g,y,S,C,w,x,A,T,v,k,F,R,E,I,L,D,B;Object.defineProperty(t,"__esModule",{value:!0}),o=r("./src/common/excel-types.ts"),i=r("./src/common/common.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/datamodel/datamodel-writer.ts"),l=r("./src/xlsx-io/writer/style-writer.ts"),s=r("./src/xlsx-io/writer/docPropsCoreWriter.ts"),c=r("./src/xlsx-io/writer/docPropsAppWriter.ts"),d=r("./src/xlsx-io/writer/docPropsCustomWriter.ts"),u=r("./src/xlsx-io/writer/worksheet-writer.ts"),f=r("./src/xlsx-io/writer/sharedString-writer.ts"),b=r("./src/xlsx-io/writer/theme-writer.ts"),h=r("./src/xlsx-io/writer/workbook-writer.ts"),p=r("./src/xlsx-io/writer/comment-writer.ts"),m=r("./src/xlsx-io/writer/drawing-writer.ts"),g=r("./src/xlsx-io/writer/table-writer.ts"),y=r("./src/xlsx-io/writer/slicer-writer.ts"),S=r("./src/xlsx-io/writer/print-writer.ts"),C=r("./src/xlsx-io/writer/metadata-writer.ts"),w=r("./src/xlsx-io/writer/chart-writer.ts"),x=r("./src/datamodel/excel-helper.ts"),A=r("./src/datamodel/excel-style.ts"),T=r("./src/xlsx-io/writer/pivot-writer.ts"),v=r("./src/xlsx-io/writer/ctrlprops-writer.ts"),k=r("./src/xlsx-io/writer/vmlDrawing-writer.ts"),F=r("./src/xlsx-io/writer/externalLink-writer.ts"),R=r("./src/xlsx-io/writer/timeline-writer.ts"),E="../charts/",I="../drawings/",L=void 0,D=r("./src/lib/jszip.min.js");function P(e,t,r){var i,n,a,l=e.imageType||"jpg";return"svg+xml"===l&&(l="svg"),i=o.XFileConstants.ld+t+"."+l,n=new o.XFile(o.XFileConstants.Oc+"/"+i,o.RelationshipConstants.hb),n.target="../media/"+i,a=r.ze(n),e.rid=a,n}function W(e,t,r){return{AlternateContent:"http://schemas.openxmlformats.org/markup-compatibility/2006",Choice:{cx:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",Requires:"cx1",GraphicalObjectFrame:{nvGraphicFramePr:{cNvPr:{id:1,name:e,descr:r||""}},graphic:{graphicData:{chart:{id:t}}}}}}}B=function(){function e(e,t){this._n={},this.ao={};var r=this;r.Xn=0,r.bo={},r.un=[],r.co=1===e.referenceStyle,r.do=e.calculationMode,r.eo={iterate:e.iterativeCalculation,count:e.iterativeCalculationMaximumIterations,delta:e.iterativeCalculationMaximumChange},r.Bg={},r.fo=D(),r.ho=0,r.io=0,r.jo=0,r.ko=0,r.lo=0,r.mo=0,r.no=0,r.oo=0,r.po=0,r.qo=0,r.ro=new a.WriterDataModel(e),r.ro.onCompleted=function(){t.call(r)},r.ro.Ph(),r.ro&&r.ro.Xh()}return e.prototype.Gk=function(){var e,t,r,i=this,n=new o.XFile("",""),a=new o.XFile(o.XFileConstants.zd,o.RelationshipConstants.Na);n.ze(a),i.so(n),e={Qn:[],Zn:{},Pn:0,$n:{}},t=i.uo(a),r=[],i.vo(i.ro.Ne.pivotCaches,a),i.wo(i.ro.Ne.slicerCaches,a),i.xo(a,t,e,r),i.yo(i.ro,i.ro.Ne.tableSlicerCaches,a),i.zo(a,e),i.Ao(a),i.Bo(a),i.Co(a),i.Do(r),i.Eo(n),i.Fo(n,i.ho>0),i.wn(),i.fo.generateAsync({type:i.Bg.useArrayBuffer?"arraybuffer":"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"DEFLATE"}).then(function(e){i.onZip(e)}).catch(function(){i.onError()})},e.prototype.so=function(e){var t,r,n,a=this,l=a.ro.Ne;i.isNullOrUndefined(l.docProps)||(l.docProps.docPropsCore&&(t=new o.XFile(o.XFileConstants.Ad,o.RelationshipConstants.Ka),e.ze(t),a.Go()),l.docProps.docPropsApp&&(r=new o.XFile(o.XFileConstants.Bd,o.RelationshipConstants.La),e.ze(r),a.Ho()),l.docProps.docPropsCustom&&(n=new o.XFile(o.XFileConstants.Cd,o.RelationshipConstants.Ma),e.ze(n),a.Io()))},e.prototype.Eo=function(e){var t,r,a,l,s,c,d,u,f,b;if(!i.isNullOrUndefined(e)&&!i.isNullOrUndefined(e.relationFiles)&&0!==e.relationFiles.count){t=i.Util.ra(e.fileName),r=t.dir,a=t.fileName,l=this,s={};for(c in e.relationFiles)e.relationFiles.hasOwnProperty(c)&&(d=e.relationFiles[c],d&&"count"!==c&&(u=[d.target||d.fileName.replace(r+"/",""),d.fileType],d.targetMode&&u.push(d.targetMode),s[c]=u,this.Eo(d)));f=new n.XmlWriter,f.writeDocument(),f.writeElement("Relationships",function(){f.writeAttributeString("xmlns",o.XFileConstants.Wd)},function(){var e,t=function(e){if(s.hasOwnProperty(e)){var t=s[e];t&&t.length>=2&&f.writeLeafElement("Relationship",function(){f.writeAttributeString("Id",e),f.writeAttributeString("Type",t[1]),f.writeAttributeString("Target",t[0]),t[2]&&f.writeAttributeString("TargetMode",t[2])})}};for(e in s)t(e)}),b=r+"/"+o.XFileConstants.Bb+"/"+a+"."+o.XFileConstants.Gb,l.fo.file(b.substring(1),f.getXmlString())}},e.prototype.Fo=function(e,t){var r=this.ro.Li(e,t),i=new n.XmlWriter;i.writeDocument(),i.writeElement("Types",function(){i.writeAttributeString("xmlns",o.XFileConstants.Vd)},function(){var e,t,n=function(e,t){var n=r[e];n instanceof o.DefaultContentType?i.writeLeafElement("Default",function(){i.writeAttributeString("Extension",n.extension),i.writeAttributeString("ContentType",n.contentType)}):n instanceof o.OverrideContentType&&i.writeLeafElement("Override",function(){i.writeAttributeString("PartName",n.partName),i.writeAttributeString("ContentType",n.contentType)})};for(e=0,t=r.length;e<t;e++)n(e,t)}),this.fo.file(o.XFileConstants.Db,i.getXmlString())},e.prototype.Go=function(){var e=this,t=s.writeDocPropsCore(e.ro);this.fo.file(o.XFileConstants.Ad.substring(1),t)},e.prototype.Ho=function(){var e=this,t=c.writeDocPropsApp(e.ro);this.fo.file(o.XFileConstants.Bd.substring(1),t)},e.prototype.Io=function(){var e=this,t=d.writeDocPropsCustom(e.ro);this.fo.file(o.XFileConstants.Cd.substring(1),t)},e.prototype.uo=function(e){var t,r=this,i=new o.XFile(o.XFileConstants.Dd,o.RelationshipConstants.Pa);return e.ze(i),t=l.writeStyle(r.ro,r.bo),r.fo.file(o.XFileConstants.Dd.substring(1),t.xml),t.styleOffset},e.prototype.xo=function(e,t,r,i){var n,a,l,s,c,d,u,f,b,h,p=this.ro,m=p.jj(),g=m.length,y=0,S=p.fi();for(S&&S.length>0&&S.forEach(function(e){y++,e.id=y}),n={},a={},l=0;l<g;l++)s=m[l],s&&(c=new o.SheetInfo,c.name=s,c.sheetId=l+1,c.index=l,d=new o.XFile(o.XFileConstants.Rc+"/"+o.XFileConstants.$c+c.sheetId+"."+o.XFileConstants.nc,o.RelationshipConstants.Ra),c.rID=e.ze(d),this.un.push(c),u={attributes:[]},f=p.wj(s),b=p.Ij(s),this.Jo(d,l,u,f,b),this.Ko(p,d,f),this.Lo(p,d,b),h=this.Mo(d,u,b.withDrawingObjects),this.No(h,b,i),this.Oo(p,h,b),this.Po(p,d,s,a),this.Qo(p,d,s,e,n),this.Ro(p,d,s,e),this.So(p,d,s),this.To(c,t,r,u,d,b.controlShapes))},e.prototype.zo=function(e,t){var r,i,n=this;t.Qn.length<=0||(r=new o.XFile(o.XFileConstants.wd,o.RelationshipConstants.Sa),e.ze(r),i=f.writeSharedString(t),n.fo.file(o.XFileConstants.wd.substring(1),i))},e.prototype.Ao=function(e){var t,r=new o.XFile(o.XFileConstants.xd,o.RelationshipConstants.Ua);e.ze(r),t=b.writeTheme(this.ro),this.fo.file(o.XFileConstants.Ed.substring(1),t)},e.prototype.Bo=function(e){var t,r,i,n,a,l,s,c,d=this.ro.Ne.externalReference;if(d)for(t in d)Object.prototype.hasOwnProperty.call(d,t)&&(r=d[t],i=o.XFileConstants.Vc+"/"+o.XFileConstants._c+t+"."+o.XFileConstants.nc,n=new o.XFile(i,o.RelationshipConstants.Za),r.option.id=e.ze(n),a=new o.XFile("",o.RelationshipConstants.rb),a.target=r.option.name,l=r.option.path,l&&l.length>0&&(s=l.substr(-1),"/"===s||"\\"===s?a.target=l+a.target:a.target=l+"/"+a.target),a.target=a.target.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&amp;").replace(/\"/g,"&quot;"),a.targetMode="External",n.ze(a),c=F.writeExternalLink(this.ro,r),this.fo.file(i.substring(1),c))},e.prototype.Do=function(e){var t=this,r=h.writeWorkbook(t.ro,t.un,t.co,e,t.Uo,t.eo,t.do);t.fo.file(o.XFileConstants.zd.substring(1),r)},e.prototype.vo=function(e,t){var r,i,n,a,l,s,c,d;if(e){r=1,i=1,this.Uo={};for(n in e)e.hasOwnProperty(n)&&(a=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc,o.RelationshipConstants.Wa),l=new o.XFile(o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc,o.RelationshipConstants.Xa),s=t.ze(a),this.Uo[n]={file:a,cacheId:n,rid:s},c=T.writePivotCacheDefinition(e[n]),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.td+r+"."+o.XFileConstants.nc).substring(1),c),a.ze(l),d=T.writePivotCacheRecords(e[n].pivotCacheRecords),this.fo.file((o.XFileConstants.Yc+"/"+o.XFileConstants.ud+i+"."+o.XFileConstants.nc).substring(1),d),r++,i++)}},e.prototype.To=function(e,t,r,i,n,a){var l=this,s=u.writeWorksheet(l.ro,e.name,l.bo,t,l.Bg,r,i,n,a);this.fo.file(o.XFileConstants.yd.substring(1)+"/sheet"+e.sheetId+"."+o.XFileConstants.nc,s)},e.prototype.Ko=function(e,t,r){var i,n,a;r&&r.length>0&&(this.io++,i=o.XFileConstants.ad+this.io+"."+o.XFileConstants.nc,n=new o.XFile(o.XFileConstants.Cb+"/"+i,o.RelationshipConstants._a),n.target="../"+i,t.ze(n),a=p.writeComments(e,r),this.fo.file(n.fileName.substring(1),a))},e.prototype.Jo=function(e,t,r,i,n){var a,l,s,c,d=n.controlShapes,u=i&&i.length>0,f=d&&d.length>0;(u||f)&&(this.ho++,a=o.XFileConstants.Kc+this.ho+"."+o.XFileConstants.oc,l=new o.XFile(o.XFileConstants.Mc+"/"+a,o.RelationshipConstants.ab),l.target=I+a,s=e.ze(l),r.legacyDrawingId=s,r.attributes.push({key:"xmlns:xdr",value:o.XFileConstants.Kd}),f&&r.attributes.push({key:"xmlns:x14",value:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.Vo(l,d),c=k.writeVmlDrawingForLegacyDrawing(t,i,d),this.fo.file(l.fileName.substring(1),c))},e.prototype.Vo=function(e,t){var r=this;t.forEach(function(t){var o,i,n=t.sp.control.style,a=n&&n.fill,l=a&&a.src;l&&(o={},x.getPictureInfo(l,o),r.ko++,i=P(o,r.ko,e),r.fo.file(i.fileName.substring(1),o.base64Image,{base64:!0}),e.relationFiles[o.rid]=i,a.rid=o.rid)})},e.prototype.So=function(e,t,r){var i,n,a,l,s,c=e.xj(r);if(c&&c.length>0){this.Wo||(this.Wo=1);for(i in c)c.hasOwnProperty(i)&&(n=o.XFileConstants.vd+this.Wo+"."+o.XFileConstants.nc,a=new o.XFile(o.XFileConstants.Zc+"/"+n,o.RelationshipConstants.Ya),a.target="../pivotTables/"+n,t.ze(a),l=this.Uo&&this.Uo[c[i].cacheId]&&this.Uo[c[i].cacheId].file,l&&a.ze(l),s=T.writePivotTable(e,c[i]),this.fo.file((o.XFileConstants.Zc+"/"+n).substring(1),s),this.Wo++)}},e.prototype.No=function(e,t,r){var o,i=this,n=t.charts;n&&n.forEach(function(t){i.Xo(t,e,r)}),o=t.shapes,o&&o.forEach(function(t){t.graphicFrame&&t.graphicFrame.graphic.graphicData.chart&&(t.chartSpace=t.graphicFrame.graphic.graphicData.chart.chartSpace,delete t.chartSpace.userShapes,i.Xo(t,e,r),t.graphicFrame.graphic.graphicData.chart.id=t.chartId)})},e.prototype.Xo=function(e,t,r){var a,l,s,c,d,u,f,b,h,p,m,g,y=this,S=i.Util.za(e),C=S&&S.layoutId,x=i.Util.Aa(C),A=x?o.RelationshipConstants.mb:o.RelationshipConstants.lb,T=x?o.XFileConstants.dd:o.XFileConstants.bd;y.qo++,a=T+y.qo+"."+o.XFileConstants.nc,l=o.XFileConstants.ed+y.qo+"."+o.XFileConstants.nc,s=o.XFileConstants.hd+y.qo+"."+o.XFileConstants.nc,c=new o.XFile(o.XFileConstants.Lc+"/"+a,A),d=new o.XFile(o.XFileConstants.Lc+"/"+l,o.RelationshipConstants.qb),u=new o.XFile(o.XFileConstants.Lc+"/"+s,o.RelationshipConstants.pb),c.target=E+a,e.chartId=t.ze(c),f=e.graphicFrame.nvGraphicFramePr.cNvPr,e.AlternateContent=W(f.name,e.chartId,f.descr),b=e.chartSpace,b&&(y.Yo(b,e,c),y.Zo(b,c),h=new n.XmlWriter,h.writeDocument(),x?(p=void 0,p=y.ro&&y.ro.Ne&&y.ro.Ne.names?y.ro.Ne.names:[],w.DrawingWriter.chart2016Write.WriteCT_ChartSpace(h,"cx","chartSpace",b,p,r)):w.DrawingWriter.WriteCT_ChartSpace(h,"c","chartSpace",b),y.fo.file(c.fileName.substring(1),h.getXmlString()),x&&(d.target=E+l,i.isNullOrUndefined(e.chartSpace.style)&&(e.chartSpace.style=JSON.parse('{"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","id":"381"},"axisTitle":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"categoryAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"chartArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":0}},"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":13.33}},"dataLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":14}}},"idx":1},"defRPr":{"sz":12}},"dataLabelCallout":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"solidFill":{"schemeClr":{"val":13,"lumMod":[25000],"lumOff":[75000]}}}},"defRPr":{"sz":12},"bodyPr":{"rot":0,"spcFirstLastPara":true,"vertOverflow":2,"horzOverflow":1,"vert":0,"wrap":1,"lIns":36576,"tIns":18288,"rIns":36576,"bIns":18288,"anchor":1,"anchorCtr":true,"spAutoFit":true}},"dataPoint":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":2,"solidFill":{"schemeClr":{"val":14}}}}},"dataPoint3D":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}}}},"dataPointLine":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataPointMarker":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":12}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":14}}}}},"dataPointMarkerLayout":{"attribute":{"symbol":"circle","size":"5"}},"dataPointWireframe":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":3,"cap":0,"solidFill":{"schemeClr":{"val":12}},"round":true}}},"dataTable":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}},"defRPr":{"sz":12}},"downBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":13,"lumMod":[65000],"lumOff":[35000]}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}}}},"dropLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"errorBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}},"round":true}}},"floor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"gridlineMajor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"gridlineMinor":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}}},"hiLoLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[75000],"lumOff":[25000]}},"round":true}}},"leaderLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[35000],"lumOff":[65000]}},"round":true}}},"legend":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"plotArea":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"plotArea3D":{"attribute":{"mods":"allowNoFillOverride allowNoLineOverride"},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}},"seriesAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"cmpd":0,"algn":0,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}},"round":true}},"defRPr":{"sz":12}},"seriesLine":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":1,"cap":2,"solidFill":{"srgbClr":{"val":[217,217,217]}},"round":true}}},"title":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":18.67}},"trendline":{"attribute":{},"lnRef":{"ColorProp":{"styleClr":{"val":0}},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1},"spPr":{"ln":{"w":2,"cap":0,"solidFill":{"schemeClr":{"val":12}},"prstDash":7}}},"trendlineLabel":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"upBar":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":13}}},"idx":1},"spPr":{"solidFill":{"schemeClr":{"val":14}},"ln":{"w":1,"solidFill":{"schemeClr":{"val":1,"lumMod":[15000],"lumOff":[85000]}}}}},"valueAxis":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1,"lumMod":[65000],"lumOff":[35000]}}},"idx":1},"defRPr":{"sz":12}},"wall":{"attribute":{},"lnRef":{"ColorProp":{},"idx":0},"fillRef":{"ColorProp":{},"idx":0},"effectRef":{"ColorProp":{},"idx":0},"fontRef":{"TextCharacterProperties":{"solidFill":{"schemeClr":{"val":1}}},"idx":1}}}')),