@mescius/spread-excelio 17.0.1 → 17.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * SpreadJS ExcelIO Library 17.0.1
3
+ * SpreadJS ExcelIO Library 17.0.2
4
4
  *
5
5
  * Copyright(c) MESCIUS inc. All rights reserved.
6
6
  *
@@ -14,7 +14,7 @@ t.ThemeFontSchemes={Default:c("Default","Cambria","Calibri"),Office:c("Office","
14
14
  "Verdana Pro Light":6,"Verdana Pro SemiBold":6,Vijaya:6,"Viner Hand ITC":7,Vivaldi:5,"Vladimir Script":5,Vrinda:6,Webdings:11,"Wide Latin":14,Wingdings:15,"Wingdings 2":12,"Wingdings 3":10,"Yet R":6,"Yu Gothic":6,"Yu Gothic Light":6,"Yu Gothic Medium":6,"Yu Gothic UI":6,"Yu Gothic UI Light":6,"Yu Gothic UI Semibold":6,"Yu Gothic UI Semilight":6,"Yu Mincho":6,"Yu Mincho Demibold":6,"Yu Mincho Light":6,"\u4eff\u5b8b":6,"\u534e\u6587\u4e2d\u5b8b":7,"\u534e\u6587\u4eff\u5b8b":5,"\u534e\u6587\u5b8b\u4f53":5,"\u534e\u6587\u5f69\u4e91":6,"\u534e\u6587\u65b0\u9b4f":6,"\u534e\u6587\u6977\u4f53":5,"\u534e\u6587\u7425\u73c0":6,"\u534e\u6587\u7ec6\u9ed1":6,"\u534e\u6587\u884c\u6977":6,"\u534e\u6587\u96b6\u4e66":5,"\u5b8b\u4f53":6,"\u5e7c\u5706":6,"\u5fae\u8f6f\u96c5\u9ed1":6,"\u5fae\u8f6f\u96c5\u9ed1 Light":6,"\u65b0\u5b8b\u4f53":6,"\u65b9\u6b63\u59da\u4f53":6,"\u65b9\u6b63\u8212\u4f53":6,"\u6977\u4f53":6,"\u7b49\u7ebf":6,"\u7b49\u7ebf Light":6,"\u96b6\u4e66":6,"\u9ed1\u4f53":6,"\u6e38\u30b4\u30b7\u30c3\u30af":6,"\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},9:{"Gill Sans MT":6,Abadi:7,"Abadi Extra Light":7,"Agency FB":5,Aharoni:5,Aldhabi:4,Algerian:7,"Ami R":5,"Angsana New":4,AngsanaUPC:4,Aparajita:5,"Arabic Typesetting":4,Arial:7,"Arial Black":8,"Arial Narrow":5,"Arial Nova":7,"Arial Nova Cond":6,"Arial Nova Cond Light":5,"Arial Nova Light":7,"Arial Rounded MT Bold":7,"Baskerville Old Face":6,Batang:6,BatangChe:6,"Bauhaus 93":7,"Bell MT":6,Bembo:6,"Berlin Sans FB":7,"Berlin Sans FB Demi":8,"Bernard MT Condensed":6,"Blackadder ITC":5,"Bodoni MT":6,"Bodoni MT Black":8,"Bodoni MT Condensed":4,"Bodoni MT Poster Compressed":4,"Book Antiqua":6,"Bookman Old Style":7,"Bookshelf Symbol 7":9,"Bradley Hand ITC":8,"Britannic Bold":7,Broadway:8,"Browallia New":4,BrowalliaUPC:4,"Brush Script MT":6,Calibri:6,"Calibri Light":6,"Californian FB":7,"Calisto MT":6,Cambria:7,"Cambria Math":7,Candara:7,Castellar:9,Centaur:6,Century:7,"Century Gothic":7,"Century Schoolbook":7,Chiller:6,"Colonna MT":6,"Comic Sans MS":7,Consolas:7,Constantia:7,"Cooper Black":7,"Copperplate Gothic Bold":9,"Copperplate Gothic Light":9,Corbel:6,"Cordia New":4,CordiaUPC:4,"Courier New":7,"Curlz MT":6,Dante:5,DaunPenh:4,David:5,DilleniaUPC:4,DokChampa:7,Dotum:6,DotumChe:6,Dubai:6,"Dubai Light":6,"Dubai Medium":6,Ebrima:6,"Edwardian Script ITC":6,Elephant:9,"Engravers MT":8,"Eras Bold ITC":8,"Eras Demi ITC":7,"Eras Light ITC":6,"Eras Medium ITC":7,EucrosiaUPC:5,Euphemia:7,"Expo M":10,FangSong:6,"Felix Titling":7,"Footlight MT Light":7,Forte:6,"Franklin Gothic Book":7,"Franklin Gothic Demi":7,"Franklin Gothic Demi Cond":6,"Franklin Gothic Heavy":7,"Franklin Gothic Medium":7,"Franklin Gothic Medium Cond":6,FrankRuehl:5,FreesiaUPC:5,"Freestyle Script":5,"French Script MT":4,Gabriola:5,Gadugi:6,Garamond:6,Gautami:7,Georgia:8,"Georgia Pro":7,"Georgia Pro Black":9,"Georgia Pro Cond":6,"Georgia Pro Cond Black":8,"Georgia Pro Cond Light":6,"Georgia Pro Cond Semibold":7,"Georgia Pro Light":7,"Georgia Pro Semibold":7,Gigi:7,"Gill Sans MT Condensed":4,"Gill Sans MT Ext Condensed Bold":4,"Gill Sans Nova":6,"Gill Sans Nova Cond":4,"Gill Sans Nova Cond Lt":4,"Gill Sans Nova Cond Ultra Bold":7,"Gill Sans Nova Cond XBd":6,"Gill Sans Nova Light":6,"Gill Sans Nova Ultra Bold":10,"Gill Sans Ultra Bold":10,"Gill Sans Ultra Bold Condensed":7,Gisha:6,"Gloucester MT Extra Condensed":5,"Goudy Old Style":6,"Goudy Stout":10,Grotesque:6,"Grotesque Light":6,Gulim:6,GulimChe:6,Gungsuh:6,GungsuhChe:6,"Hadassah Friedlaender":7,Haettenschweiler:5,"Harlow Solid Italic":6,Harrington:7,"Headline R":9,HGGothicE:6,HGGothicM:6,HGGyoshotai:6,HGKyokashotai:6,HGMaruGothicMPRO:9,HGMinchoB:7,HGMinchoE:7,HGPGothicE:8,HGPGothicM:8,HGPGyoshotai:7,HGPKyokashotai:7,HGPMinchoB:7,HGPMinchoE:7,HGPSoeiKakugothicUB:9,HGPSoeiKakupoptai:9,HGPSoeiPresenceEB:8,HGSeikaishotaiPRO:7,HGSGothicE:7,HGSGothicM:7,HGSGyoshotai:6,HGSKyokashotai:6,HGSMinchoB:7,HGSMinchoE:7,HGSoeiKakugothicUB:7,HGSoeiKakupoptai:7,HGSoeiPresenceEB:7,HGSSoeiKakugothicUB:8,HGSSoeiKakupoptai:8,HGSSoeiPresenceEB:7,"High Tower Text":6,"HYGothic-Extra":8,"HYGothic-Medium":7,"HYGraphic-Medium":7,"HYGungSo-Bold":7,"HYHeadLine-Medium":7,"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,
15
15
  "\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,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,
16
16
  "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,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={},o="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:o,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:o,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:o,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:o,ke:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",le:o,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,u=function(){function e(e){this.index=e}return e}(),t.ExcelRow=u,d=function(){function e(e,t,r){this.name=e,this.colorScheme=t,this.fontScheme=r}return e}(),t.ExcelTheme=d,f=function(){function e(e,t){this.name=e,this.schemeColors=t}return e}(),t.ColorScheme=f,p=function(){function e(e,t,r){this.name=e,this.majorFont=t,this.minorFont=r}return e}(),t.FontScheme=p,h=function(){function e(e,t){this.script=e,this.typeface=t}return e}(),t.ThemeFont=h,m=function(){function e(e,t){this.runFormattings=e,this.themesFonts=t}return e}(),t.ThemeFonts=m,g=function(){function e(e,t){this.fontLanguage=e,this.typeface=t}return e}(),t.RunFormatting=g,b=function(){function e(){}return e}(),t.SheetInfo=b,w=function(){function e(){}return e}(),t.DefaultContentType=w,C=function(){function e(){}return e}(),t.OverrideContentType=C,S=function(){function e(){}return e}(),y=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 n,a,o,l,s,c,u,d,f;if(r&&(n=this.Be(this.fileName,r)))for(a=0,o=n.length;a<o;a++)l=n[a],s=l.target,c="hyperlink",u=l.type.substring(l.type.length-c.length,l.type.length)===c,d=l.type===t.RelationshipConstants.rb,u||d||i.isNullOrUndefined(s)||""===s||(s="/"!==s[0]?i.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(i.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,n;if(!this.relationFiles||0===this.relationFiles.count)return null;if(i.StringEx.L(e))return null;t=[];for(r in this.relationFiles)"count"!==r&&(n=this.relationFiles[r],n.fileType===e&&t.push({id:r,file:n}));return t},e.prototype.Ge=function(e){return!this.relationFiles||0===this.relationFiles.count||i.StringEx.O(e)?null:this.relationFiles[e]},e.prototype.De=function(e){var t,r,i,a,o,l,s,c;if(e){if(t=[],r=n.parseXmlToObject(e),i=r.Relationships)for(a=i.Relationship,Array.isArray(a)||(a=[a]),o=0,l=a.length;o<l;o++)s=a[o],s&&(c=new S,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=y,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 i,n;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/common/excel-types.ts");function a(e,t){var r,i=[];return null===e?i:(r=e.replace(/('.+')/g,"").split(" "),r.forEach(function(e){var r=o(e,t);!r||r.row>n.ExcelConstants.wb||r.col>n.ExcelConstants.vb||r.rowCount>n.ExcelConstants.wb||r.col>n.ExcelConstants.vb||i.push(r)}),i)}t.getRangesFromString=a;function o(e,t){var r,a,o,l,s,c,u,d={},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],a=i.IndexHelper.P(c),o=i.IndexHelper.R(c),a===-1&&o===-1)return null;d.row=a,d.col=o,d.rowCount=1,d.colCount=1}else 2===r.length&&(c=r[0],u=r[1],a=i.IndexHelper.P(c),o=i.IndexHelper.R(c),l=i.IndexHelper.P(u),s=i.IndexHelper.R(u),d.row=a,d.col=o,d.rowCount=l-a+1,d.colCount=s-o+1,t||0!==a||d.rowCount!==n.ExcelConstants.wb||(d.row=-1,d.rowCount=-1),t||0!==o||d.colCount!==n.ExcelConstants.vb||(d.col=-1,d.colCount=-1));return d}function l(e){var t,r,a,o,l,s,c,u=[];for(t=0;t<e.length;t++)r=e[t],i.isRangeWholeRow(r)&&(r.col=0,r.colCount=n.ExcelConstants.vb),i.isRangeWholeColumn(r)&&(r.row=0,r.rowCount=n.ExcelConstants.wb),a=r.row,o=r.row+r.rowCount-1,l=r.col,s=r.col+r.colCount-1,c=i.IndexHelper.T(l)+(a+1),(r.rowCount>1||r.colCount>1)&&(c+=":"+i.IndexHelper.T(s)+(o+1)),u.push(c);return u.join(" ")}t.getRangeString=l},"./src/common/tuple.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){var e,t,r,i=[];for(e=0;e<arguments.length;e++)i[e]=arguments[e];for(this.equals=function(e,t){var r,i,n,a;for(r=1,i=this.count;r<=i;r++)if(n=this["item"+r],a=e["item"+r],!(n&&a&&n.equals&&n.equals(a,t)||n===a))return!1;return!0},t=i.length,r=1;r<=t;r++)this["item"+r]=i[r-1];this.count=t}return e}();t.Tuple=i},"./src/datamodel/chart-model.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C,S,y,v,x,T,A,k,E,F,I,P,D,R,L,_,N,B,M,O,G,H,U,J,W,V,z,j,X,K,q,Y,Q,Z,$,ee,te,re,ie,ne,ae,oe,le,se,ce,ue,de,fe,pe,he,me,ge,be,we,Ce,Se,ye,ve,xe,Te,Ae,ke,Ee,Fe,Ie,Pe,De,Re,Le,_e,Ne,Be,Me,Oe,Ge,He,Ue;Object.defineProperty(t,"__esModule",{value:!0}),i=void 0;function Je(e){for(var t in e)e[t]!==i&&(e[e[t]]=t)}t.Charts={},n={major:0,minor:1,none:2},Je(n),t.Charts.ST_FontCollectionIndex=n,a={dk1:0,lt1:1,dk2:2,lt2:3,accent1:4,accent2:5,accent3:6,accent4:7,accent5:8,accent6:9,hlink:10,folHlink:11},Je(a),t.Charts.ST_ColorSchemeIndex=a,o={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},Je(o),t.Charts.ST_SystemColorVal=o,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},Je(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,
17
- 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},Je(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},Je(c),t.Charts.ST_RectAlignment=c,u={clr:0,auto:1,gray:2,ltGray:3,invGray:4,grayWhite:5,blackGray:6,blackWhite:7,black:8,white:9,hidden:10},Je(u),t.Charts.ST_BlackWhiteMode=u,d={inner:0,outer:1},Je(d),t.Charts.ST_LayoutTarget=d,f={edge:0,factor:1},Je(f),t.Charts.ST_LayoutMode=f,p={area:0,w:1},Je(p),t.Charts.ST_SizeRepresents=p,h={auto:0,cust:1,percent:2,pos:3,val:4},Je(h),t.Charts.ST_SplitType=h,m={ctr:0,l:1,r:2},Je(m),t.Charts.ST_LblAlgn=m,g={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Je(g),t.Charts.ST_DLblPos=g,b={circle:0,dash:1,diamond:2,dot:3,none:4,picture:5,plus:6,square:7,star:8,triangle:9,x:10},Je(b),t.Charts.ST_MarkerStyle=b,w={exp:0,linear:1,log:2,movingAvg:3,poly:4,power:5},Je(w),t.Charts.ST_TrendlineType=w,C={x:0,y:1},Je(C),t.Charts.ST_ErrDir=C,S={both:0,minus:1,plus:2},Je(S),t.Charts.ST_ErrBarType=S,y={cust:0,fixedVal:1,percentage:2,stdDev:3,stdErr:4},Je(y),t.Charts.ST_ErrValType=y,v={percentStacked:0,standard:1,stacked:2},Je(v),t.Charts.ST_Grouping=v,x={none:0,line:1,lineMarker:2,marker:3,smooth:4,smoothMarker:5},Je(x),t.Charts.ST_ScatterStyle=x,T={standard:0,marker:1,filled:2},Je(T),t.Charts.ST_RadarStyle=T,A={percentStacked:0,clustered:1,standard:2,stacked:3},Je(A),t.Charts.ST_BarGrouping=A,k={bar:0,col:1},Je(k),t.Charts.ST_BarDir=k,E={cone:0,coneToMax:1,box:2,cylinder:3,pyramid:4,pyramidToMax:5},Je(E),t.Charts.ST_Shape=E,F={pie:0,bar:1},Je(F),t.Charts.ST_OfPieType=F,I={b:0,l:1,r:2,t:3},Je(I),t.Charts.ST_AxPos=I,P={autoZero:0,max:1,min:2},Je(P),t.Charts.ST_Crosses=P,D={between:0,midCat:1},Je(D),t.Charts.ST_CrossBetween=D,R={cross:0,in:1,none:2,out:3},Je(R),t.Charts.ST_TickMark=R,L={high:0,low:1,nextTo:2,none:3},Je(L),t.Charts.ST_TickLblPos=L,_={days:0,months:1,years:2},Je(_),t.Charts.ST_TimeUnit=_,N={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8},Je(N),t.Charts.ST_BuiltInUnit=N,B={stretch:0,stack:1,stackScale:2},Je(B),t.Charts.ST_PictureFormat=B,M={maxMin:0,minMax:1},Je(M),t.Charts.ST_Orientation=M,O={b:0,tr:1,l:2,r:3,t:4},Je(O),t.Charts.ST_LegendPos=O,G={span:0,gap:1,zero:2},Je(G),t.Charts.ST_DispBlanksAs=G,H={default:0,portrait:1,landscape:2},Je(H),t.Charts.ST_PageSetupOrientation=H,U={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,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},Je(U),t.Charts.ST_PresetCameraType=U,J={tl:0,t:1,tr:2,l:3,r:4,bl:5,b:6,br:7},Je(J),t.Charts.ST_LightRigDirection=J,W={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},Je(W),t.Charts.ST_LightRigType=W,V={relaxedInset:0,circle:1,slope:2,cross:3,angle:4,softRound:5,convex:6,coolSlant:7,divot:8,riblet:9,hardEdge:10,artDeco:11},Je(V),t.Charts.ST_BevelPresetType=V,z={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},Je(z),t.Charts.ST_PresetMaterialType=z,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},Je(j),t.Charts.ST_PresetShadowVal=j,X={shape:0,circle:1,rect:2},Je(X),t.Charts.ST_PathShadeType=X,K={none:0,x:1,y:2,xy:3},Je(K),t.Charts.ST_TileFlipMode=K,q={email:0,screen:1,print:2,hqprint:3,none:4},Je(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},Je(Y),t.Charts.ST_PresetPatternVal=Y,Q={png:0,jpg:1,jpeg:2,emf:3},Je(Q),t.Charts.ST_BobType=Q,Z={over:0,mult:1,screen:2,darken:3,lighten:4},Je(Z),t.Charts.ST_BlendMode=Z,$={sib:0,tree:1},Je($),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},Je(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},Je(te),t.Charts.ST_TextShapeType=te,re={none:0,norm:1,lighten:2,lightenLess:3,darken:4,darkenLess:5},Je(re),t.Charts.ST_PathFillMode=re,ie={none:0,triangle:1,stealth:2,diamond:3,oval:4,arrow:5},Je(ie),t.Charts.ST_LineEndType=ie,ne={sm:0,med:1,lg:2},Je(ne),t.Charts.ST_LineEndWidth=ne,ae={sm:0,med:1,lg:2},Je(ae),t.Charts.ST_LineEndLength=ae,oe={solid:0,dot:1,dash:2,lgDash:3,dashDot:4,lgDashDot:5,lgDashDotDot:6,sysDash:7,sysDot:8,sysDashDot:9,sysDashDotDot:10},Je(oe),t.Charts.ST_PresetLineDashVal=oe,le={rnd:0,sq:1,flat:2},Je(le),t.Charts.ST_LineCap=le,se={ctr:0,in:1},Je(se),t.Charts.ST_PenAlignment=se,ce={sng:0,dbl:1,thickThin:2,thinThick:3,tri:4},Je(ce),t.Charts.ST_CompoundLine=ce,ue={twoCell:0,oneCell:1,absolute:2},Je(ue),t.Charts.ST_EditAs=ue,de={t:0,ctr:1,b:2,just:3,dist:4},Je(de),t.Charts.ST_TextAnchoringType=de,fe={overflow:0,ellipsis:1,clip:2},Je(fe),t.Charts.ST_TextVertOverflowType=fe,pe={overflow:0,clip:1},Je(pe),t.Charts.ST_TextHorzOverflowType=pe,he={horz:0,vert:1,vert270:2,wordArtVert:3,eaVert:4,mongolianVert:5,wordArtVertRtl:6},Je(he),t.Charts.ST_TextVerticalType=he,me={none:0,square:1},Je(me),t.Charts.ST_TextWrappingType=me;ge={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};Je(ge),t.Charts.ST_TextAutonumberScheme=ge,be={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},Je(be),t.Charts.ST_TextUnderlineType=be,we={noStrike:0,sngStrike:1,dblStrike:2},Je(we),t.Charts.ST_TextStrikeType=we,Ce={none:0,small:1,all:2},Je(Ce),t.Charts.ST_TextCapsType=Ce,Se={l:0,ctr:1,r:2,dec:3},Je(Se),t.Charts.ST_TextTabAlignType=Se,ye={l:0,ctr:1,r:2,just:3,justLow:4,dist:5,thaiDist:6},Je(ye),t.Charts.ST_TextAlignType=ye,ve={auto:0,t:1,ctr:2,base:3,b:4},Je(ve),t.Charts.ST_TextFontAlignType=ve,xe={auto:0},Je(xe),t.Charts.ST_StyleColorVal=xe,t.Charts.CT_PathType={CT_PathToList:0,CT_Path2DArcTo:1,CT_Path2DClose:2},Te={col:0,row:1},Je(Te),t.Charts.ST_FormulaDirection=Te,Ae={cat:0,colorStr:1},Je(Ae),t.Charts.ST_StringDimensionType=Ae,ke={val:0,x:1,y:2,size:3,colorVal:4},Je(ke),t.Charts.ST_NumericDimensionType=ke,Ee={l:0,t:1,r:2,b:3},Je(Ee),t.Charts.ST_SidePos=Ee,Fe={t:1,r:2,l:3,b:4},Je(Fe),t.Charts.ST_2016ChartPosLegend=Fe,Ie={min:0,ctr:1,max:2},Je(Ie),t.Charts.ST_PosAlign=Ie,Pe={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8,percentage:9},Je(Pe),t.Charts.ST_AxisUnit=Pe,De={in:1,out:3,cross:0,none:2},Je(De),t.Charts.ST_TickMarksType=De,Re={boxWhisker:0,funnel:1,paretoLine:2,regionMap:3,sunburst:4,treemap:5,waterfall:6,clusteredColumn:7},Je(Re),t.Charts.ST_SeriesLayout=Re,Le={none:0,banner:1,overlapping:2},Je(Le),t.Charts.ST_ParentLabelLayout=Le,_e={none:0,bestFitOnly:1,showAll:2},Je(_e),t.Charts.ST_RegionLabelLayout=_e,Ne={l:0,r:1},Je(Ne),t.Charts.ST_IntervalClosedSide=Ne,Be={Address:0,AdminDistrict:1,AdminDistrict2:2,AdminDistrict3:3,Continent:4,CountryRegion:5,Locality:6,Ocean:7,Planet:8,PostalCode:9,Region:10,Unsupported:11},Je(Be),t.Charts.ST_EntityType=Be,Me={mercator:0,miller:1,robinson:2,albers:3},Je(Me),t.Charts.ST_GeoProjectionType=Me,Oe={dataOnly:0,postalCode:1,county:2,state:3,countryRegion:4,countryRegionList:5,world:6},Je(Oe),t.Charts.ST_GeoMappingLevel=Oe,Ge={inclusive:0,exclusive:1},Je(Ge),t.Charts.ST_QuartileMethod=Ge,He={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Je(He),t.Charts.ST_DataLabelPos=He,Ue={default:0,portrait:1,landscape:2},Je(Ue),t.Charts.ST_PageOrientation=Ue},"./src/datamodel/datamodel-reader.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/excel-style.ts"),o=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"),u=i.StringEx.O,d=a.ConverterHelper.convertDxfToStyle,f=c.XmlNodeHelper.He,p=null,h=void 0,m="Normal";function C(e,t,r,i,n,a){var o,l,s,c,u=e.itemsData;u&&(o=u[u.length-1],l=u[u.length-2],s=o&&o.info,c=l&&l.info,s&&(i&&n&&1===o.count?c&&l.index===o.index-1&&c.level===s.level-1?c.collapsed=!0:t>0?u.splice(u.length-2,0,{index:o.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!i&&a&&(c&&o.index===l.index+1&&s.level===c.level-1?o.collapsed=!0:t>=o.index+o.count&&u.push({index:o.index+o.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function S(e,t,r,n,a,o,l,s,c,u){var d={};return d.conType=e,i.J(t)||(d.compareType=t),i.J(r)||(d.expected=r),i.J(n)||(d.ignoreBlank=n),i.J(a)||(d.type=a),i.J(o)||(d.isPercent=o),i.J(l)||(d.item1=l),i.J(s)||(d.item2=s),i.J(c)||(d.ranges=c),i.J(u)||(d.expectTypeId=u),2===e&&(d.ignoreCase=!0),d}function y(e,t){var r,i,n=e.cellColor?0:1,o=t.fill;return o&&(0===o.patternType?r="":(i={},a.ConverterHelper.Ie(o,i),r=i.backColor)),S(3,n,r)}function v(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 x(e,t,r){var i,n,a={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":i=2;break;case"number":i=1,r=parseFloat(r);break;case"date":i=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(n=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(n)):r=l.DateTimeHelper.Je(parseInt(r,10)),a={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:i=11}return S(i,a[t],r)}function T(e,t){var r,i;function n(e){var r,i,n,a,o="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(i=o?3:2,r=S(2,i,l.substring(0,l.length-1))):0===s&&s===c?(i=o?5:4,r=S(2,i,l.substring(1))):(n=o?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=S(2,n,l)):(a=v(t),r=x(a,e.operator,l)),r}return e.filter1&&(r=n(e.filter1)),e.filter2&&(i=e.and?1:0,r=S(0,i,p,p,p,p,r,n(e.filter2))),r}function A(e,t){function r(e){var r,n=e.value,a=n.indexOf("*"),o=n.lastIndexOf("*");return a!==-1?a===n.length-1&&0!==a?r=S(t.conType,t.compareType,n.substring(0,n.length-1)):0===a&&a===o?r=S(t.conType,t.compareType,n.substring(1)):(a!==-1&&o!==-1&&(n=n.substr(1,n.length-2)),r=S(t.conType,t.compareType,n)):i.J(t)||(r=S(t.conType,t.compareType,n)),r}var n;return e.filter1&&(n=r(e.filter1)),n=e.filter2?S(t.conType,t.compareType,p,p,p,p,n,r(e.filter2)):S(t.conType,t.compareType,p,p,p,p,n,p)}function k(e,t,r){var n,a=new i.Range(t.row,r,t.rowCount,1),o=e.type;return 100===o||101===o?n=S(10,p,p,p,o-100,p,p,p,a):16===o?n=S(6,p,0,p,p,p,p,p,p,6):o>=17&&o<=20?n=S(6,p,o-17,p,p,p,p,p,p,2):o>=21&&o<=32?n=S(6,p,o-21,p,p,p,p,p,p,3):o>=0&&o<=15&&(n=S(6,p,o)),n}function E(e,t){var r,i=t.conType;return 1===i&&(r=S(1,t.compareType,p)),r}function F(e){var t=e.top?0:1;return S(8,p,e.value,p,t,e.percent)}function I(e,t){var r=e.top?1:-1;return S(3,t.compareType,e.value,p,r,e.percent)}function P(e){return u(e)?e:"="+e}function D(e){return u(e)||e.length<=2?e:e.substr(1,e.length-2)}function R(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=R;function L(e,t,r){var i=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(i=e.name)})}),i}t.getTableColumnName=L;function _(e,t,r){var i,n,a=null;for(i=0;i<t.length;i++)if(n=t[i],""+r[n.cacheId].pivotCacheId===e){a=n.name;break}return a}function N(e,t){return t=t||" ",e.map(B).join(t)}function B(e){var t,r=e.row,a=e.col,o=e.rowCount,l=e.colCount,s=a+l-1,c=r+o-1;return i.isRangeWholeRow(e)&&i.isRangeWholeColumn(e)?t="$1:$"+n.ExcelConstants.wb:i.isRangeWholeRow(e)?t=r+1+":"+(c+1):i.isRangeWholeColumn(e)?t=i.IndexHelper.T(a)+":"+i.IndexHelper.T(s):(t=i.IndexHelper.T(a)+(r+1),(o>1||l>1)&&(t+=":"+i.IndexHelper.T(s)+(c+1))),t}g=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],b=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function M(e,t){b.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function O(e,t){e&&M(e,t)}function G(e,t){return!!e[t]}function H(e,t,r,n,a,l){var s,c,u,d=e.Ke;if(r[n]&&r[n][a]){if(s=r[n][a].style,!s)return;c=i.ga._(t.namedStyles,s),c&&(u=o.processTableCellStyle(c,d),u.name="__builtInTableStyle"+e.Le+c.name,i.ga.aa(t.namedStyles,e.Me,u),e.Le++,r[n][a].style=u.name,l[s]=u.name)}}function U(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function J(e,t){var r=f(e.bk);return r[t]}function W(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function V(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}w=function(){function e(){var e=this;e.Ne={version:"17.0.1"},e.Ke=p,e.Oe=p,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=p,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,i,n,a,o,l,s,c,u=this;return u.pf||(u.pf={}),r=this.pf,i=e+","+t,(n=r[i])?n:(a=this.mf,l=a&&a.themeElements&&a.themeElements.fmtScheme,l&&(s=g[e],c=s&&l[s],o=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),o=c[t])),r[i]=o,o)},e.prototype.rf=function(e){var t,r,i,n,a,o,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(i=e.fontScheme,n=i.majorFont.runFormattings,a=i.minorFont.runFormattings,o=0,l=n.length;o<l;o++)s=n[o],s&&0===s.fontLanguage&&(c=V(s.typeface),t.headingFont=c,this.ff=c);for(o=0,l=a.length;o<l;o++)s=a[o],s&&0===s.fontLanguage&&(c=V(s.typeface),t.bodyFont=c,this.gf=c)}this.sf=t}},e.prototype.tf=function(e){var t,r;e&&(t=this,t.Ke=a.ConverterHelper.toCellStyle(e,t.ff,t.gf),r={},a.ConverterHelper.setStyleInfoFont(e.font,r,h,h),t.Ke.fontForColumnWidth=r.font,t.Oe=e)},e.prototype.uf=function(e,t){var r,n,o,s,c,u,d,f,p,g,b,w;if(e){if(r=this,n=r.Ne,o=a.ConverterHelper.toCellStyle(e,r.ff,r.gf),!i.J(o.formatter)){for(s=RegExp("\\[DBNum\\d+\\]","ig"),c=s.exec(o.formatter),u=o.formatter;null!==c;)d=c[0],f=parseInt(d.substring(d.indexOf("m")+1,d.indexOf("]")),10),(f>4||4===f&&u.indexOf("[$-412]")<0&&"ko-kr"!==i.Fa())&&(u=u.replace(d,"[DBNum3]")),c=s.exec(o.formatter);o.formatter=u}r.Pe.push(o),p=a.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(p)),"@"===p?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(g=r.wf(t),g===-1&&(g=r.Ve),r.We.length>g?r.Se[r.Se.length]=r.We[g]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(b="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(b=r.Se[e.parentFormatID]),(b===m||"__builtInStyle"===b.substring(0,14)||i.StringEx.L(b))&&(b="__builtInStyle"+r.Te,r.Te++),o.name=b,w=r.Ze[b],"__builtInStyle"===b.substring(0,14)||w===h||e.equals(w)||(o.parentName=b,b="__builtInStyle"+r.Te,r.Te++,o.name=b),n.namedStyles||(n.namedStyles=[]),i.ga.aa(n.namedStyles,r.Me,o),r.Se[r.Se.length]=b)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,n,o,l,s,c,u,d,f;if(e){if(r=this,n=r.Ne,r.$e&&(r.yf(),r.$e=!1),o=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s<c;s++)if(u=l[s],u.builtInStyle===e.builtInStyle){o=u.name;break}if(i.ga.Z(r.Me,o)){for(s=0,c=r.af.length;s<c;s++)if(f=r.af[s],f.name===o){r.af[s]=e,r.Xe[s]=e.format(),r.Ye[t]=s;break}r.Ze[o]=e.format(),d=a.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),d.name=o,i.ga.aa(n.namedStyles,r.Me,d)}else r.Ze[o]=e.format(),r.af.push(e),r.Xe.push(e.format()),r.Ye[t]=r.Xe.length-1,r.We.push(o),n.namedStyles||(n.namedStyles=[]),d=a.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),d.name=o,i.ga.aa(n.namedStyles,r.Me,d)}},e.prototype.yf=function(){var e,t,r,i,n=this,o=n.Ne;if(n.$e)for(o.namedStyles||(o.namedStyles=[]),n._e=a.BuiltInExcelStyles.getBuiltInStyles(),e=0,t=n._e.length;e<t;e++)r=n._e[e],r&&r.name===m&&(n.Ve=n.Xe.length),n.af.push(r),n.Xe.push(r.format()),n.We.push(r.name),n.Ze[r.name]=r.format(),i=a.ConverterHelper.toCellStyle(r.format(),n.ff,n.gf),i.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,i){var n=this.Ne;e||(n.tabStripVisible=e),n.startSheetIndex=r,n.activeSheetIndex=t,n.tabStripRatio=i/1e3},e.prototype.Cf=function(e,t,r){var n={},a=this.Ne;n.name=e,n.index=t,1===r?n.visible=0:2===r&&(n.visible=2),n.allowCellOverflow=!0,n.theme=this.sf,n.defaults=i.Ea(),i.J(a.sheetCount)&&(a.sheetCount=0),a.sheetCount++,a.sheets||(a.sheets={}),a.sheets[e]=n},e.prototype.Df=function(e,t,r){var n,a,o=this.Ne;if(e&&(o.referenceStyle=1,o.sheets))for(n in o.sheets)o.sheets.hasOwnProperty(n)&&(a=o.sheets[n],a.referenceStyle=1,a.colHeaderAutoText=1);o.calculationMode=r,o.iterativeCalculation="1"===t.iterate,o.iterativeCalculationMaximumIterations=i.J(t.count)?100:parseInt(t.count,10),o.iterativeCalculationMaximumChange=i.J(t.delta)?.001:parseFloat(t.delta)},e.prototype.Ef=function(e,t,r){var i=this.Ne,n=i.sheets&&i.sheets[e];r===!1&&(n.rowOutlines||(n.rowOutlines={}),n.rowOutlines.direction=0),t===!1&&(n.columnOutlines||(n.columnOutlines={}),n.columnOutlines.direction=0)},e.prototype.Ff=function(e,t){var r=this.Ne,i=r.sheets&&r.sheets[e];t!==a.ExcelColor.EmptyColor&&(t.isThemeColor()?i.sheetTabColor=a.ColorHelper.getThemeColorName(t):i.sheetTabColor=a.ColorHelper.toRGBColor(t))},e.prototype.Gf=function(e,t,r){var i=this.Ne,n=i.sheets&&i.sheets[e];n.rowCount=t,n.columnCount=r},e.prototype.Hf=function(e,t,r,i,n,o,l,s){var c,u=this.Ne,d=u.sheets&&u.sheets[e];i||(d.rowHeaderVisible=i,d.colHeaderVisible=i),o&&(d.showFormulas=!0),l?d.showZeros=!0:d.showZeros=!1,100!==n&&(d.zoomFactor=n/100),t&&t.isIndexedColor()&&64===t.value()&&(t=null),null===t&&r||(c={},null!==t&&(c.color=""+a.ColorHelper.toRGBColor(t)),r||(c.showVerticalGridline=r,c.showHorizontalGridline=r),d.gridline=c),d.isSelected=s},e.prototype.If=function(e,t,r,i,n,a,o,l,s){var c,u,d,f,p,h,m,g,b=this.Ne,w=b.sheets&&b.sheets[e];if(this.cf===t){for(w.rowCount<=r&&(w.rowCount=r+1),w.columnCount<=i&&(w.columnCount=i+1),c=0,u=a.length;c<u;c++)d=a[c],f=o[c],p=l[c],h=s[c],f===-1&&(f=w.rowCount-1),h===-1&&(h=w.columnCount-1),d=d>=0?d:0,f=f>=0?f:0,p=p>=0?p:0,h=h>=0?h:0,d<w.rowCount&&p<w.columnCount&&(m=Math.min(w.rowCount-d,f-d+1),g=Math.min(w.columnCount-p,h-p+1),m>=1&&g>=1&&(w.selections=w.selections||{},w.selections[c]={row:d,rowCount:m,col:p,colCount:g}));w.selections&&(w.selections.length=a.length),w.activeRow=r>=0&&r<w.rowCount?r:0,w.activeCol=i>=0&&i<w.columnCount?i:0}},e.prototype.Jf=function(e,t,r,n,a){var o,l,s,c,u,d,f,p,h;a&&(o=this.Ne,l=o.sheets&&o.sheets[e],s=this.Kf,c=i.IndexHelper.P(s),u=i.IndexHelper.R(s),d=i.IndexHelper.P(n),f=i.IndexHelper.R(n),r&&t?this.Lf(d,f,e):r&&!t?this.Lf(d,u,e):!r&&t&&this.Lf(c,f,e),r&&(p=r+c,l.rowCount<=p&&(l.rowCount=p),l.frozenRowCount=p,l.frozenTopRow=c),t&&(h=t+u,l.columnCount<=h&&(l.columnCount=h),l.frozenColCount=h,l.frozenLeftCol=u))},e.prototype.Mf=function(e,t,r){var i=this.Ne,n=i.sheets&&i.sheets[e];n.defaults={colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:t,colWidth:r}},e.prototype.Nf=function(e,t){var r=this.Ne,i=r.sheets&&r.sheets[e];i.defaults.rowHeight=a.UnitHelper.pointToPixel(t)},e.prototype.Of=function(e,t,r){var i,n=this.Ne,a=n.sheets&&n.sheets[e];isNaN(r)?(i=this.Pf(t),a.defaults._isExcelDefaultColumnWidth=!0):i=this.Qf(r),a.defaults.colWidth=i},e.prototype.Pf=function(e){var t=this.Ke,r=this.getMaxiumDigitWidth(t.fontForColumnWidth?t.fontForColumnWidth:t.font),i=2*Math.ceil(r/4)+1,n=this.Qf(e,r)+i;return 8*Math.ceil(n/8)},e.prototype.Qf=function(e,t){if(0===e)return 0;var r=this.Ke,n=r.fontForColumnWidth?r.fontForColumnWidth:r.font;return Math.floor(Math.floor(256*e)/256*(i.J(t)?this.getMaxiumDigitWidth(n):t)+.5)},e.prototype.getMaxiumDigitWidth=function(e){return this.Rf===h&&(this.Rf=a.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.Sf=function(e){var t=this,r=t.Ne,i=r.sheets&&r.sheets[e],n=i.columnCount||0,a=i.rowCount||0,o=t.Tf,l=t.Uf;i.columnCount=Math.max(n,o+1),i.rowCount=Math.max(a,l+1)},e.prototype.Vf=function(e,t,r,i,a,o,l,s){var c,u,d,f,m,g,b,w,S,y,v,x,T,A,k=this.Ne,E=k.sheets&&k.sheets[e],F=E.columnOutlines&&0===E.columnOutlines.direction,I=this.jf,P=this.Qf(a),D=n.ExcelConstants.vb;for(r>=D-1&&(r=D-1),c=!1,u=t;u<=r;u++){if(d=!1,(l>0||s)&&(u+2>E.columnCount&&(f=E.columnOutlines&&E.columnOutlines.items,l<=0&&(!f||!f[u-1]||f[u-1].level<0)&&(c=!0),c||(E.columnCount=u+2)),c||(E.columnOutlines||(E.columnOutlines={}),E.columnOutlines.items||(E.columnOutlines.items=[]),E.columnOutlines.itemsData||(E.columnOutlines.itemsData=[]),m=E.columnOutlines.items,m[u]={level:l-1,collapsed:s},o&&(d=!0),g=E.columnOutlines.itemsData,b=g[g.length-1],b&&u===b.index+b.count&&b.info.level===l-1&&b.info.collapsed===s?b.count++:g.push({index:u,count:1,info:{level:l-1,collapsed:s}}))),E.columnOutlines&&E.columnOutlines.itemsData&&(w=E.columnOutlines.itemsData,C(w,u,l,F,o,I[u-1]&&I[u-1].hidden)),P!==-1||o){for(E.columns||(E.columns=[]),S=E.columns.length,y=S;y<u;y++)E.columns[y]=p,I[y]=p;v={},x={},v.hidden=o,o&&0===l&&(x.visible=v.visible=!1),P!==-1&&(x.size=v.size=P),v.visible!==!1&&d!==!0||0!==v.size||(x.size=v.size=h),I[u]=v,E.columns[u]=x}1!==i&&(T=this.Se[i],T!==h?this.df[u]={style:T}:i<this.Pe.length&&(this.df[u]={style:this.Pe[i]}),A=this.Pe[i],A&&A.isVerticalText===!0&&this.kf.push(u))}E.columnCount>D&&(E.columnCount=D)},e.prototype.Wf=function(e){var t,r,i,n,a,o,l,s,c,u,d=this,f=d.Ne,p=f.sheets&&f.sheets[e],h=p.defaults,m=p.data,g=p.columns,b=p.columnCount,w=h.colWidth;if(g&&(t=g.length,b<t))for(r=b;r<t;r++)if(i=g[r],i&&i.size===w){n=g.slice(0,r),d.jf=n,p.columns=n,m&&m.columnDataArray&&(m.columnDataArray=m.columnDataArray.slice(0,r));break}if(a=p.rows,o=p.rowCount,l=h.rowHeight,a&&(s=a.length,o<s))for(r=o;r<s;r++)if(c=a[r],c&&c.size===l){u=a.slice(0,r),d.if=u,p.rows=u,m&&m.rowDataArray&&(m.rowDataArray=m.rowDataArray.slice(0,r));break}},e.prototype.Xf=function(e,t,r,n,a){var o=this.Ne,l=o.sheets&&o.sheets[e];l.spans||(l.spans=[]),r>=l.rowCount&&(r=l.rowCount-1),a>=l.columnCount&&(a=l.columnCount-1),l.spans.push(new i.Range(t,n,r-t+1,a-n+1))},e.prototype.Yf=function(e,t){var r=this.Ne,i=r.sheets&&r.sheets[e];i.isProtected=t},e.prototype.Zf=function(e,t,r){var i,n,a,l,s=this.Ne,c=s.sheets&&s.sheets[e];for(c.protectionOptions=c.protectionOptions||{},i=0;i<t.length;i++)n=t[i].name,a=t[i].value,l=o.toProtectionOptions[n],l?c.protectionOptions[l]=a:c.protectionOptions[n]=a;r&&c.protectionOptions.allowEditObjects===h&&(c.protectionOptions.allowEditObjects=!0)},e.prototype.$f=function(e){var t,r=this.Ne,i=r.sheets&&r.sheets[e];i.data||(i.data={}),t=i.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&&(i.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C,S,y,v=this.Ne,x=v.sheets&&v.sheets[e];if(x&&(r=t?x.rowOutlines:x.columnOutlines))for(i=0===r.direction,n=r.items,a=t?x.rows:x.columns,o=t?this.if:this.jf,l=function(){return i?0:a.length-1},s=function(e){return i?e<a.length:e>=0},c=function(e){return i?e+1:e-1},u=function(e){return i?e-1:e+1},d=function(e,t){var r=n[e];if(r)return r.level<=t?r:d(r.parentIndex,t)},f=l(),p=void 0;s(f);f=c(f))h=n[f],h&&h.level!==-1?(m=u(f),g=n[m],b=!g&&"number"==typeof h.level||g&&g.level<h.level,w=g&&g.level>h.level,C=void 0,S=void 0,b?(C=m,S=!!g&&(g.collapsed||g.viewCollapsed)):w?h.level===-1?S=!1:(y=void 0,y=g.parentIndex===p?g:d(g.parentIndex,h.level),y&&(C=y.parentIndex,S=y.viewCollapsed)):(C=g.parentIndex,S=g.viewCollapsed),h.parentIndex=C,
17
+ 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},Je(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},Je(c),t.Charts.ST_RectAlignment=c,u={clr:0,auto:1,gray:2,ltGray:3,invGray:4,grayWhite:5,blackGray:6,blackWhite:7,black:8,white:9,hidden:10},Je(u),t.Charts.ST_BlackWhiteMode=u,d={inner:0,outer:1},Je(d),t.Charts.ST_LayoutTarget=d,f={edge:0,factor:1},Je(f),t.Charts.ST_LayoutMode=f,p={area:0,w:1},Je(p),t.Charts.ST_SizeRepresents=p,h={auto:0,cust:1,percent:2,pos:3,val:4},Je(h),t.Charts.ST_SplitType=h,m={ctr:0,l:1,r:2},Je(m),t.Charts.ST_LblAlgn=m,g={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Je(g),t.Charts.ST_DLblPos=g,b={circle:0,dash:1,diamond:2,dot:3,none:4,picture:5,plus:6,square:7,star:8,triangle:9,x:10},Je(b),t.Charts.ST_MarkerStyle=b,w={exp:0,linear:1,log:2,movingAvg:3,poly:4,power:5},Je(w),t.Charts.ST_TrendlineType=w,C={x:0,y:1},Je(C),t.Charts.ST_ErrDir=C,S={both:0,minus:1,plus:2},Je(S),t.Charts.ST_ErrBarType=S,y={cust:0,fixedVal:1,percentage:2,stdDev:3,stdErr:4},Je(y),t.Charts.ST_ErrValType=y,v={percentStacked:0,standard:1,stacked:2},Je(v),t.Charts.ST_Grouping=v,x={none:0,line:1,lineMarker:2,marker:3,smooth:4,smoothMarker:5},Je(x),t.Charts.ST_ScatterStyle=x,T={standard:0,marker:1,filled:2},Je(T),t.Charts.ST_RadarStyle=T,A={percentStacked:0,clustered:1,standard:2,stacked:3},Je(A),t.Charts.ST_BarGrouping=A,k={bar:0,col:1},Je(k),t.Charts.ST_BarDir=k,E={cone:0,coneToMax:1,box:2,cylinder:3,pyramid:4,pyramidToMax:5},Je(E),t.Charts.ST_Shape=E,F={pie:0,bar:1},Je(F),t.Charts.ST_OfPieType=F,I={b:0,l:1,r:2,t:3},Je(I),t.Charts.ST_AxPos=I,P={autoZero:0,max:1,min:2},Je(P),t.Charts.ST_Crosses=P,D={between:0,midCat:1},Je(D),t.Charts.ST_CrossBetween=D,R={cross:0,in:1,none:2,out:3},Je(R),t.Charts.ST_TickMark=R,L={high:0,low:1,nextTo:2,none:3},Je(L),t.Charts.ST_TickLblPos=L,_={days:0,months:1,years:2},Je(_),t.Charts.ST_TimeUnit=_,N={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8},Je(N),t.Charts.ST_BuiltInUnit=N,B={stretch:0,stack:1,stackScale:2},Je(B),t.Charts.ST_PictureFormat=B,M={maxMin:0,minMax:1},Je(M),t.Charts.ST_Orientation=M,O={b:0,tr:1,l:2,r:3,t:4},Je(O),t.Charts.ST_LegendPos=O,G={span:0,gap:1,zero:2},Je(G),t.Charts.ST_DispBlanksAs=G,H={default:0,portrait:1,landscape:2},Je(H),t.Charts.ST_PageSetupOrientation=H,U={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,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},Je(U),t.Charts.ST_PresetCameraType=U,J={tl:0,t:1,tr:2,l:3,r:4,bl:5,b:6,br:7},Je(J),t.Charts.ST_LightRigDirection=J,W={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},Je(W),t.Charts.ST_LightRigType=W,V={relaxedInset:0,circle:1,slope:2,cross:3,angle:4,softRound:5,convex:6,coolSlant:7,divot:8,riblet:9,hardEdge:10,artDeco:11},Je(V),t.Charts.ST_BevelPresetType=V,z={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},Je(z),t.Charts.ST_PresetMaterialType=z,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},Je(j),t.Charts.ST_PresetShadowVal=j,X={shape:0,circle:1,rect:2},Je(X),t.Charts.ST_PathShadeType=X,K={none:0,x:1,y:2,xy:3},Je(K),t.Charts.ST_TileFlipMode=K,q={email:0,screen:1,print:2,hqprint:3,none:4},Je(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},Je(Y),t.Charts.ST_PresetPatternVal=Y,Q={png:0,jpg:1,jpeg:2,emf:3},Je(Q),t.Charts.ST_BobType=Q,Z={over:0,mult:1,screen:2,darken:3,lighten:4},Je(Z),t.Charts.ST_BlendMode=Z,$={sib:0,tree:1},Je($),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},Je(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},Je(te),t.Charts.ST_TextShapeType=te,re={none:0,norm:1,lighten:2,lightenLess:3,darken:4,darkenLess:5},Je(re),t.Charts.ST_PathFillMode=re,ie={none:0,triangle:1,stealth:2,diamond:3,oval:4,arrow:5},Je(ie),t.Charts.ST_LineEndType=ie,ne={sm:0,med:1,lg:2},Je(ne),t.Charts.ST_LineEndWidth=ne,ae={sm:0,med:1,lg:2},Je(ae),t.Charts.ST_LineEndLength=ae,oe={solid:0,dot:1,dash:2,lgDash:3,dashDot:4,lgDashDot:5,lgDashDotDot:6,sysDash:7,sysDot:8,sysDashDot:9,sysDashDotDot:10},Je(oe),t.Charts.ST_PresetLineDashVal=oe,le={rnd:0,sq:1,flat:2},Je(le),t.Charts.ST_LineCap=le,se={ctr:0,in:1},Je(se),t.Charts.ST_PenAlignment=se,ce={sng:0,dbl:1,thickThin:2,thinThick:3,tri:4},Je(ce),t.Charts.ST_CompoundLine=ce,ue={twoCell:0,oneCell:1,absolute:2},Je(ue),t.Charts.ST_EditAs=ue,de={t:0,ctr:1,b:2,just:3,dist:4},Je(de),t.Charts.ST_TextAnchoringType=de,fe={overflow:0,ellipsis:1,clip:2},Je(fe),t.Charts.ST_TextVertOverflowType=fe,pe={overflow:0,clip:1},Je(pe),t.Charts.ST_TextHorzOverflowType=pe,he={horz:0,vert:1,vert270:2,wordArtVert:3,eaVert:4,mongolianVert:5,wordArtVertRtl:6},Je(he),t.Charts.ST_TextVerticalType=he,me={none:0,square:1},Je(me),t.Charts.ST_TextWrappingType=me;ge={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};Je(ge),t.Charts.ST_TextAutonumberScheme=ge,be={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},Je(be),t.Charts.ST_TextUnderlineType=be,we={noStrike:0,sngStrike:1,dblStrike:2},Je(we),t.Charts.ST_TextStrikeType=we,Ce={none:0,small:1,all:2},Je(Ce),t.Charts.ST_TextCapsType=Ce,Se={l:0,ctr:1,r:2,dec:3},Je(Se),t.Charts.ST_TextTabAlignType=Se,ye={l:0,ctr:1,r:2,just:3,justLow:4,dist:5,thaiDist:6},Je(ye),t.Charts.ST_TextAlignType=ye,ve={auto:0,t:1,ctr:2,base:3,b:4},Je(ve),t.Charts.ST_TextFontAlignType=ve,xe={auto:0},Je(xe),t.Charts.ST_StyleColorVal=xe,t.Charts.CT_PathType={CT_PathToList:0,CT_Path2DArcTo:1,CT_Path2DClose:2},Te={col:0,row:1},Je(Te),t.Charts.ST_FormulaDirection=Te,Ae={cat:0,colorStr:1},Je(Ae),t.Charts.ST_StringDimensionType=Ae,ke={val:0,x:1,y:2,size:3,colorVal:4},Je(ke),t.Charts.ST_NumericDimensionType=ke,Ee={l:0,t:1,r:2,b:3},Je(Ee),t.Charts.ST_SidePos=Ee,Fe={t:1,r:2,l:3,b:4},Je(Fe),t.Charts.ST_2016ChartPosLegend=Fe,Ie={min:0,ctr:1,max:2},Je(Ie),t.Charts.ST_PosAlign=Ie,Pe={hundreds:0,thousands:1,tenThousands:2,hundredThousands:3,millions:4,tenMillions:5,hundredMillions:6,billions:7,trillions:8,percentage:9},Je(Pe),t.Charts.ST_AxisUnit=Pe,De={in:1,out:3,cross:0,none:2},Je(De),t.Charts.ST_TickMarksType=De,Re={boxWhisker:0,funnel:1,paretoLine:2,regionMap:3,sunburst:4,treemap:5,waterfall:6,clusteredColumn:7},Je(Re),t.Charts.ST_SeriesLayout=Re,Le={none:0,banner:1,overlapping:2},Je(Le),t.Charts.ST_ParentLabelLayout=Le,_e={none:0,bestFitOnly:1,showAll:2},Je(_e),t.Charts.ST_RegionLabelLayout=_e,Ne={l:0,r:1},Je(Ne),t.Charts.ST_IntervalClosedSide=Ne,Be={Address:0,AdminDistrict:1,AdminDistrict2:2,AdminDistrict3:3,Continent:4,CountryRegion:5,Locality:6,Ocean:7,Planet:8,PostalCode:9,Region:10,Unsupported:11},Je(Be),t.Charts.ST_EntityType=Be,Me={mercator:0,miller:1,robinson:2,albers:3},Je(Me),t.Charts.ST_GeoProjectionType=Me,Oe={dataOnly:0,postalCode:1,county:2,state:3,countryRegion:4,countryRegionList:5,world:6},Je(Oe),t.Charts.ST_GeoMappingLevel=Oe,Ge={inclusive:0,exclusive:1},Je(Ge),t.Charts.ST_QuartileMethod=Ge,He={bestFit:0,b:1,ctr:2,inBase:3,inEnd:4,l:5,outEnd:6,r:7,t:8},Je(He),t.Charts.ST_DataLabelPos=He,Ue={default:0,portrait:1,landscape:2},Je(Ue),t.Charts.ST_PageOrientation=Ue},"./src/datamodel/datamodel-reader.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/excel-style.ts"),o=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"),u=i.StringEx.O,d=a.ConverterHelper.convertDxfToStyle,f=c.XmlNodeHelper.He,p=null,h=void 0,m="Normal";function C(e,t,r,i,n,a){var o,l,s,c,u=e.itemsData;u&&(o=u[u.length-1],l=u[u.length-2],s=o&&o.info,c=l&&l.info,s&&(i&&n&&1===o.count?c&&l.index===o.index-1&&c.level===s.level-1?c.collapsed=!0:t>0?u.splice(u.length-2,0,{index:o.index-1,count:1,info:{level:s.level-1,collapsed:!0}}):e.head={collapsed:!0,level:r-1}:!i&&a&&(c&&o.index===l.index+1&&s.level===c.level-1?o.collapsed=!0:t>=o.index+o.count&&u.push({index:o.index+o.count,count:1,info:{level:s.level-1,collapsed:!0}}))))}function S(e,t,r,n,a,o,l,s,c,u){var d={};return d.conType=e,i.J(t)||(d.compareType=t),i.J(r)||(d.expected=r),i.J(n)||(d.ignoreBlank=n),i.J(a)||(d.type=a),i.J(o)||(d.isPercent=o),i.J(l)||(d.item1=l),i.J(s)||(d.item2=s),i.J(c)||(d.ranges=c),i.J(u)||(d.expectTypeId=u),2===e&&(d.ignoreCase=!0),d}function y(e,t){var r,i,n=e.cellColor?0:1,o=t.fill;return o&&(0===o.patternType?r="":(i={},a.ConverterHelper.Ie(o,i),r=i.backColor)),S(3,n,r)}function v(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 x(e,t,r){var i,n,a={none:0,equal:0,lessThan:4,lessThanOrEqual:5,notEqual:1,greaterThan:2,greaterThanOrEqual:3};switch(e){case"string":i=2;break;case"number":i=1,r=parseFloat(r);break;case"date":i=5,"string"==typeof r&&0===r.indexOf("/OADate(")?(n=parseInt(r.replace("/OADate(",""),10),r=l.DateTimeHelper.Je(n)):r=l.DateTimeHelper.Je(parseInt(r,10)),a={none:0,equal:0,lessThan:2,lessThanOrEqual:3,notEqual:1,greaterThan:4,greaterThanOrEqual:5};break;case"boolean":default:i=11}return S(i,a[t],r)}function T(e,t){var r,i;function n(e){var r,i,n,a,o="notEqual"===e.operator,l=e.value,s=l.indexOf("*"),c=l.lastIndexOf("*");return s!==-1?s===l.length-1&&0!==s?(i=o?3:2,r=S(2,i,l.substring(0,l.length-1))):0===s&&s===c?(i=o?5:4,r=S(2,i,l.substring(1))):(n=o?7:6,s!==-1&&c!==-1&&(l=l.substr(1,l.length-2)),r=S(2,n,l)):(a=v(t),r=x(a,e.operator,l)),r}return e.filter1&&(r=n(e.filter1)),e.filter2&&(i=e.and?1:0,r=S(0,i,p,p,p,p,r,n(e.filter2))),r}function A(e,t){function r(e){var r,n=e.value,a=n.indexOf("*"),o=n.lastIndexOf("*");return a!==-1?a===n.length-1&&0!==a?r=S(t.conType,t.compareType,n.substring(0,n.length-1)):0===a&&a===o?r=S(t.conType,t.compareType,n.substring(1)):(a!==-1&&o!==-1&&(n=n.substr(1,n.length-2)),r=S(t.conType,t.compareType,n)):i.J(t)||(r=S(t.conType,t.compareType,n)),r}var n;return e.filter1&&(n=r(e.filter1)),n=e.filter2?S(t.conType,t.compareType,p,p,p,p,n,r(e.filter2)):S(t.conType,t.compareType,p,p,p,p,n,p)}function k(e,t,r){var n,a=new i.Range(t.row,r,t.rowCount,1),o=e.type;return 100===o||101===o?n=S(10,p,p,p,o-100,p,p,p,a):16===o?n=S(6,p,0,p,p,p,p,p,p,6):o>=17&&o<=20?n=S(6,p,o-17,p,p,p,p,p,p,2):o>=21&&o<=32?n=S(6,p,o-21,p,p,p,p,p,p,3):o>=0&&o<=15&&(n=S(6,p,o)),n}function E(e,t){var r,i=t.conType;return 1===i&&(r=S(1,t.compareType,p)),r}function F(e){var t=e.top?0:1;return S(8,p,e.value,p,t,e.percent)}function I(e,t){var r=e.top?1:-1;return S(3,t.compareType,e.value,p,r,e.percent)}function P(e){return u(e)?e:"="+e}function D(e){return u(e)||e.length<=2?e:e.substr(1,e.length-2)}function R(e,t){var r=null;return t.forEach(function(t){t.id===e&&(r=t.name)}),r}t.getTableName=R;function L(e,t,r){var i=null;return r.forEach(function(r){r.id===e&&r.columns.forEach(function(e){e.id===t&&(i=e.name)})}),i}t.getTableColumnName=L;function _(e,t,r){var i,n,a=null;for(i=0;i<t.length;i++)if(n=t[i],""+r[n.cacheId].pivotCacheId===e){a=n.name;break}return a}function N(e,t){return t=t||" ",e.map(B).join(t)}function B(e){var t,r=e.row,a=e.col,o=e.rowCount,l=e.colCount,s=a+l-1,c=r+o-1;return i.isRangeWholeRow(e)&&i.isRangeWholeColumn(e)?t="$1:$"+n.ExcelConstants.wb:i.isRangeWholeRow(e)?t=r+1+":"+(c+1):i.isRangeWholeColumn(e)?t=i.IndexHelper.T(a)+":"+i.IndexHelper.T(s):(t=i.IndexHelper.T(a)+(r+1),(o>1||l>1)&&(t+=":"+i.IndexHelper.T(s)+(c+1))),t}g=["fillStyleLst","lnStyleLst","effectStyleLst","bgFillStyleLst"],b=["w","cap","cmpd","algn","prstDash","custDash","round","bevel","miter","headEnd","tailEnd"];function M(e,t){b.forEach(function(r){void 0===t[r]&&void 0!==e[r]&&(t[r]=e[r])})}function O(e,t){e&&M(e,t)}function G(e,t){return!!e[t]}function H(e,t,r,n,a,l){var s,c,u,d=e.Ke;if(r[n]&&r[n][a]){if(s=r[n][a].style,!s)return;c=i.ga._(t.namedStyles,s),c&&(u=o.processTableCellStyle(c,d),u.name="__builtInTableStyle"+e.Le+c.name,i.ga.aa(t.namedStyles,e.Me,u),e.Le++,r[n][a].style=u.name,l[s]=u.name)}}function U(e,t){var r=e.filter(function(e){return e._attr.name===t});return r&&r[0]}function J(e,t){var r=f(e.bk);return r[t]}function W(e){return e.filter(function(e){return!(e.pic&&!e.pic.cameraTool)})}function V(e){return e&&e.indexOf(" ")>=0&&("'"!==e[0]||'"'!==e[0])&&(e="'"+e+"'"),e}w=function(){function e(){var e=this;e.Ne={version:"17.0.2"},e.Ke=p,e.Oe=p,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=p,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,i,n,a,o,l,s,c,u=this;return u.pf||(u.pf={}),r=this.pf,i=e+","+t,(n=r[i])?n:(a=this.mf,l=a&&a.themeElements&&a.themeElements.fmtScheme,l&&(s=g[e],c=s&&l[s],o=c,c&&(1===e?c=c.ln:0===e&&(c=c.items),o=c[t])),r[i]=o,o)},e.prototype.rf=function(e){var t,r,i,n,a,o,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(i=e.fontScheme,n=i.majorFont.runFormattings,a=i.minorFont.runFormattings,o=0,l=n.length;o<l;o++)s=n[o],s&&0===s.fontLanguage&&(c=V(s.typeface),t.headingFont=c,this.ff=c);for(o=0,l=a.length;o<l;o++)s=a[o],s&&0===s.fontLanguage&&(c=V(s.typeface),t.bodyFont=c,this.gf=c)}this.sf=t}},e.prototype.tf=function(e){var t,r;e&&(t=this,t.Ke=a.ConverterHelper.toCellStyle(e,t.ff,t.gf),r={},a.ConverterHelper.setStyleInfoFont(e.font,r,h,h),t.Ke.fontForColumnWidth=r.font,t.Oe=e)},e.prototype.uf=function(e,t){var r,n,o,s,c,u,d,f,p,g,b,w;if(e){if(r=this,n=r.Ne,o=a.ConverterHelper.toCellStyle(e,r.ff,r.gf),!i.J(o.formatter)){for(s=RegExp("\\[DBNum\\d+\\]","ig"),c=s.exec(o.formatter),u=o.formatter;null!==c;)d=c[0],f=parseInt(d.substring(d.indexOf("m")+1,d.indexOf("]")),10),(f>4||4===f&&u.indexOf("[$-412]")<0&&"ko-kr"!==i.Fa())&&(u=u.replace(d,"[DBNum3]")),c=s.exec(o.formatter);o.formatter=u}r.Pe.push(o),p=a.ExtendedNumberFormatHelper.getFormatCode(e),r.Qe.push(l.DateTimeHelper.vf(p)),"@"===p?r.Re.push(!0):r.Re.push(!1),e.isStyleFormat?(g=r.wf(t),g===-1&&(g=r.Ve),r.We.length>g?r.Se[r.Se.length]=r.We[g]:(r.Se[r.Se.length]="__builtInStyle"+r.Te,r.Te++)):(b="",e.parentFormatID!==h&&r.Se.length>e.parentFormatID&&(b=r.Se[e.parentFormatID]),(b===m||"__builtInStyle"===b.substring(0,14)||i.StringEx.L(b))&&(b="__builtInStyle"+r.Te,r.Te++),o.name=b,w=r.Ze[b],"__builtInStyle"===b.substring(0,14)||w===h||e.equals(w)||(o.parentName=b,b="__builtInStyle"+r.Te,r.Te++,o.name=b),n.namedStyles||(n.namedStyles=[]),i.ga.aa(n.namedStyles,r.Me,o),r.Se[r.Se.length]=b)}},e.prototype.wf=function(e){return this.Ye[e]?this.Ye[e]:-1},e.prototype.xf=function(e,t){var r,n,o,l,s,c,u,d,f;if(e){if(r=this,n=r.Ne,r.$e&&(r.yf(),r.$e=!1),o=e.name,l=r._e,l&&e.isBuiltInStyle())for(s=0,c=l.length;s<c;s++)if(u=l[s],u.builtInStyle===e.builtInStyle){o=u.name;break}if(i.ga.Z(r.Me,o)){for(s=0,c=r.af.length;s<c;s++)if(f=r.af[s],f.name===o){r.af[s]=e,r.Xe[s]=e.format(),r.Ye[t]=s;break}r.Ze[o]=e.format(),d=a.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),d.name=o,i.ga.aa(n.namedStyles,r.Me,d)}else r.Ze[o]=e.format(),r.af.push(e),r.Xe.push(e.format()),r.Ye[t]=r.Xe.length-1,r.We.push(o),n.namedStyles||(n.namedStyles=[]),d=a.ConverterHelper.toCellStyle(e.format(),r.ff,r.gf),d.name=o,i.ga.aa(n.namedStyles,r.Me,d)}},e.prototype.yf=function(){var e,t,r,i,n=this,o=n.Ne;if(n.$e)for(o.namedStyles||(o.namedStyles=[]),n._e=a.BuiltInExcelStyles.getBuiltInStyles(),e=0,t=n._e.length;e<t;e++)r=n._e[e],r&&r.name===m&&(n.Ve=n.Xe.length),n.af.push(r),n.Xe.push(r.format()),n.We.push(r.name),n.Ze[r.name]=r.format(),i=a.ConverterHelper.toCellStyle(r.format(),n.ff,n.gf),i.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,i){var n=this.Ne;e||(n.tabStripVisible=e),n.startSheetIndex=r,n.activeSheetIndex=t,n.tabStripRatio=i/1e3},e.prototype.Cf=function(e,t,r){var n={},a=this.Ne;n.name=e,n.index=t,1===r?n.visible=0:2===r&&(n.visible=2),n.allowCellOverflow=!0,n.theme=this.sf,n.defaults=i.Ea(),i.J(a.sheetCount)&&(a.sheetCount=0),a.sheetCount++,a.sheets||(a.sheets={}),a.sheets[e]=n},e.prototype.Df=function(e,t,r){var n,a,o=this.Ne;if(e&&(o.referenceStyle=1,o.sheets))for(n in o.sheets)o.sheets.hasOwnProperty(n)&&(a=o.sheets[n],a.referenceStyle=1,a.colHeaderAutoText=1);o.calculationMode=r,o.iterativeCalculation="1"===t.iterate,o.iterativeCalculationMaximumIterations=i.J(t.count)?100:parseInt(t.count,10),o.iterativeCalculationMaximumChange=i.J(t.delta)?.001:parseFloat(t.delta)},e.prototype.Ef=function(e,t,r){var i=this.Ne,n=i.sheets&&i.sheets[e];r===!1&&(n.rowOutlines||(n.rowOutlines={}),n.rowOutlines.direction=0),t===!1&&(n.columnOutlines||(n.columnOutlines={}),n.columnOutlines.direction=0)},e.prototype.Ff=function(e,t){var r=this.Ne,i=r.sheets&&r.sheets[e];t!==a.ExcelColor.EmptyColor&&(t.isThemeColor()?i.sheetTabColor=a.ColorHelper.getThemeColorName(t):i.sheetTabColor=a.ColorHelper.toRGBColor(t))},e.prototype.Gf=function(e,t,r){var i=this.Ne,n=i.sheets&&i.sheets[e];n.rowCount=t,n.columnCount=r},e.prototype.Hf=function(e,t,r,i,n,o,l,s){var c,u=this.Ne,d=u.sheets&&u.sheets[e];i||(d.rowHeaderVisible=i,d.colHeaderVisible=i),o&&(d.showFormulas=!0),l?d.showZeros=!0:d.showZeros=!1,100!==n&&(d.zoomFactor=n/100),t&&t.isIndexedColor()&&64===t.value()&&(t=null),null===t&&r||(c={},null!==t&&(c.color=""+a.ColorHelper.toRGBColor(t)),r||(c.showVerticalGridline=r,c.showHorizontalGridline=r),d.gridline=c),d.isSelected=s},e.prototype.If=function(e,t,r,i,n,a,o,l,s){var c,u,d,f,p,h,m,g,b=this.Ne,w=b.sheets&&b.sheets[e];if(this.cf===t){for(w.rowCount<=r&&(w.rowCount=r+1),w.columnCount<=i&&(w.columnCount=i+1),c=0,u=a.length;c<u;c++)d=a[c],f=o[c],p=l[c],h=s[c],f===-1&&(f=w.rowCount-1),h===-1&&(h=w.columnCount-1),d=d>=0?d:0,f=f>=0?f:0,p=p>=0?p:0,h=h>=0?h:0,d<w.rowCount&&p<w.columnCount&&(m=Math.min(w.rowCount-d,f-d+1),g=Math.min(w.columnCount-p,h-p+1),m>=1&&g>=1&&(w.selections=w.selections||{},w.selections[c]={row:d,rowCount:m,col:p,colCount:g}));w.selections&&(w.selections.length=a.length),w.activeRow=r>=0&&r<w.rowCount?r:0,w.activeCol=i>=0&&i<w.columnCount?i:0}},e.prototype.Jf=function(e,t,r,n,a){var o,l,s,c,u,d,f,p,h;a&&(o=this.Ne,l=o.sheets&&o.sheets[e],s=this.Kf,c=i.IndexHelper.P(s),u=i.IndexHelper.R(s),d=i.IndexHelper.P(n),f=i.IndexHelper.R(n),r&&t?this.Lf(d,f,e):r&&!t?this.Lf(d,u,e):!r&&t&&this.Lf(c,f,e),r&&(p=r+c,l.rowCount<=p&&(l.rowCount=p),l.frozenRowCount=p,l.frozenTopRow=c),t&&(h=t+u,l.columnCount<=h&&(l.columnCount=h),l.frozenColCount=h,l.frozenLeftCol=u))},e.prototype.Mf=function(e,t,r){var i=this.Ne,n=i.sheets&&i.sheets[e];n.defaults={colHeaderRowHeight:20,rowHeaderColWidth:40,rowHeight:t,colWidth:r}},e.prototype.Nf=function(e,t){var r=this.Ne,i=r.sheets&&r.sheets[e];i.defaults.rowHeight=a.UnitHelper.pointToPixel(t)},e.prototype.Of=function(e,t,r){var i,n=this.Ne,a=n.sheets&&n.sheets[e];isNaN(r)?(i=this.Pf(t),a.defaults._isExcelDefaultColumnWidth=!0):i=this.Qf(r),a.defaults.colWidth=i},e.prototype.Pf=function(e){var t=this.Ke,r=this.getMaxiumDigitWidth(t.fontForColumnWidth?t.fontForColumnWidth:t.font),i=2*Math.ceil(r/4)+1,n=this.Qf(e,r)+i;return 8*Math.ceil(n/8)},e.prototype.Qf=function(e,t){if(0===e)return 0;var r=this.Ke,n=r.fontForColumnWidth?r.fontForColumnWidth:r.font;return Math.floor(Math.floor(256*e)/256*(i.J(t)?this.getMaxiumDigitWidth(n):t)+.5)},e.prototype.getMaxiumDigitWidth=function(e){return this.Rf===h&&(this.Rf=a.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.Sf=function(e){var t=this,r=t.Ne,i=r.sheets&&r.sheets[e],n=i.columnCount||0,a=i.rowCount||0,o=t.Tf,l=t.Uf;i.columnCount=Math.max(n,o+1),i.rowCount=Math.max(a,l+1)},e.prototype.Vf=function(e,t,r,i,a,o,l,s){var c,u,d,f,m,g,b,w,S,y,v,x,T,A,k=this.Ne,E=k.sheets&&k.sheets[e],F=E.columnOutlines&&0===E.columnOutlines.direction,I=this.jf,P=this.Qf(a),D=n.ExcelConstants.vb;for(r>=D-1&&(r=D-1),c=!1,u=t;u<=r;u++){if(d=!1,(l>0||s)&&(u+2>E.columnCount&&(f=E.columnOutlines&&E.columnOutlines.items,l<=0&&(!f||!f[u-1]||f[u-1].level<0)&&(c=!0),c||(E.columnCount=u+2)),c||(E.columnOutlines||(E.columnOutlines={}),E.columnOutlines.items||(E.columnOutlines.items=[]),E.columnOutlines.itemsData||(E.columnOutlines.itemsData=[]),m=E.columnOutlines.items,m[u]={level:l-1,collapsed:s},o&&(d=!0),g=E.columnOutlines.itemsData,b=g[g.length-1],b&&u===b.index+b.count&&b.info.level===l-1&&b.info.collapsed===s?b.count++:g.push({index:u,count:1,info:{level:l-1,collapsed:s}}))),E.columnOutlines&&E.columnOutlines.itemsData&&(w=E.columnOutlines.itemsData,C(w,u,l,F,o,I[u-1]&&I[u-1].hidden)),P!==-1||o){for(E.columns||(E.columns=[]),S=E.columns.length,y=S;y<u;y++)E.columns[y]=p,I[y]=p;v={},x={},v.hidden=o,o&&0===l&&(x.visible=v.visible=!1),P!==-1&&(x.size=v.size=P),v.visible!==!1&&d!==!0||0!==v.size||(x.size=v.size=h),I[u]=v,E.columns[u]=x}1!==i&&(T=this.Se[i],T!==h?this.df[u]={style:T}:i<this.Pe.length&&(this.df[u]={style:this.Pe[i]}),A=this.Pe[i],A&&A.isVerticalText===!0&&this.kf.push(u))}E.columnCount>D&&(E.columnCount=D)},e.prototype.Wf=function(e){var t,r,i,n,a,o,l,s,c,u,d=this,f=d.Ne,p=f.sheets&&f.sheets[e],h=p.defaults,m=p.data,g=p.columns,b=p.columnCount,w=h.colWidth;if(g&&(t=g.length,b<t))for(r=b;r<t;r++)if(i=g[r],i&&i.size===w){n=g.slice(0,r),d.jf=n,p.columns=n,m&&m.columnDataArray&&(m.columnDataArray=m.columnDataArray.slice(0,r));break}if(a=p.rows,o=p.rowCount,l=h.rowHeight,a&&(s=a.length,o<s))for(r=o;r<s;r++)if(c=a[r],c&&c.size===l){u=a.slice(0,r),d.if=u,p.rows=u,m&&m.rowDataArray&&(m.rowDataArray=m.rowDataArray.slice(0,r));break}},e.prototype.Xf=function(e,t,r,n,a){var o=this.Ne,l=o.sheets&&o.sheets[e];l.spans||(l.spans=[]),r>=l.rowCount&&(r=l.rowCount-1),a>=l.columnCount&&(a=l.columnCount-1),l.spans.push(new i.Range(t,n,r-t+1,a-n+1))},e.prototype.Yf=function(e,t){var r=this.Ne,i=r.sheets&&r.sheets[e];i.isProtected=t},e.prototype.Zf=function(e,t,r){var i,n,a,l,s=this.Ne,c=s.sheets&&s.sheets[e];for(c.protectionOptions=c.protectionOptions||{},i=0;i<t.length;i++)n=t[i].name,a=t[i].value,l=o.toProtectionOptions[n],l?c.protectionOptions[l]=a:c.protectionOptions[n]=a;r&&c.protectionOptions.allowEditObjects===h&&(c.protectionOptions.allowEditObjects=!0)},e.prototype.$f=function(e){var t,r=this.Ne,i=r.sheets&&r.sheets[e];i.data||(i.data={}),t=i.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&&(i.theme=this.sf),this.Sf(e)},e.prototype._f=function(e,t){var r,i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C,S,y,v=this.Ne,x=v.sheets&&v.sheets[e];if(x&&(r=t?x.rowOutlines:x.columnOutlines))for(i=0===r.direction,n=r.items,a=t?x.rows:x.columns,o=t?this.if:this.jf,l=function(){return i?0:a.length-1},s=function(e){return i?e<a.length:e>=0},c=function(e){return i?e+1:e-1},u=function(e){return i?e-1:e+1},d=function(e,t){var r=n[e];if(r)return r.level<=t?r:d(r.parentIndex,t)},f=l(),p=void 0;s(f);f=c(f))h=n[f],h&&h.level!==-1?(m=u(f),g=n[m],b=!g&&"number"==typeof h.level||g&&g.level<h.level,w=g&&g.level>h.level,C=void 0,S=void 0,b?(C=m,S=!!g&&(g.collapsed||g.viewCollapsed)):w?h.level===-1?S=!1:(y=void 0,y=g.parentIndex===p?g:d(g.parentIndex,h.level),y&&(C=y.parentIndex,S=y.viewCollapsed)):(C=g.parentIndex,S=g.viewCollapsed),h.parentIndex=C,
18
18
  h.viewCollapsed=S,!S&&o[f].hidden&&(a[f].visible=!1)):p=f},e.prototype.ag=function(e,t,r,i,n,o,l){var s,c,u,d,f,m,g,b,w=this.Ne,S=w.sheets&&w.sheets[e],y=S.rowOutlines&&0===S.rowOutlines.direction,v=this.if;if((n>0||o)&&(!y&&t+2>S.rowCount&&(S.rowCount=t+2),S.rowOutlines||(S.rowOutlines={}),S.rowOutlines.items||(S.rowOutlines.items=[]),S.rowOutlines.itemsData||(S.rowOutlines.itemsData=[]),s=S.rowOutlines.items,s[t]={level:n-1,collapsed:o},c=S.rowOutlines.itemsData,u=c[c.length-1],u&&t===u.index+u.count&&u.info.level===n-1&&u.info.collapsed===o?u.count++:c.push({index:t,count:1,info:{level:n-1,collapsed:o}})),d=v[t-1]&&v[t-1].hidden,S.rowOutlines&&S.rowOutlines.itemsData&&C(S.rowOutlines,t,n,y,l,d),n<=0&&t+1>S.rowCount&&(S.rowCount=t+1),r!==-1&&t<S.rowCount&&(f=this.Se[r],f!==h?this.ef[t]={style:f}:r<this.Pe.length&&(this.ef[t]={style:this.Pe[r]})),i!==-1||l){for(S.rows||(S.rows=[]),m=S.rows.length;m<t;m++)S.rows.push(p),v.push(p);g={},b={},g.hidden=l,l&&0===n&&(b.visible=g.visible=!1),i!==-1&&(b.size=g.size=Math.round(a.UnitHelper.pointToPixel(i))),g.visible===!1&&0===g.size&&(b.size=g.size=h),v.push(g),S.rows.push(b)}},e.prototype.bg=function(e){var t,r=this.Ne,i=r.sheets&&r.sheets[e];i.data||(i.data={}),t=i.data,t.dataTable||(t.dataTable={})},e.prototype.cg=function(e,t){var r=this.Ne,i=r.sheets&&r.sheets[e],n=i.data.dataTable;n[t]||(n[t]={})},e.prototype.dg=function(e,t,r,n){var a,o,l,s=this,c=s.Ne,u=c.sheets&&c.sheets[e],d=u.data.dataTable[t];d[r]||(d[r]={}),a=d[r],o=s.Se[n],o!==h?a.style=o:n<s.Pe.length&&(a.style=s.Pe[n]),s.kf.indexOf(r)>-1&&(l=s.Pe[n],l&&i.J(l.isVerticalText)&&(s.Pe[n].isVerticalText=!1))},e.prototype.eg=function(e,t,r,i){var n,a,o=this,l=o.Ne,s=l.sheets&&l.sheets[e],c=s.data.dataTable[t];c||(s.data.dataTable[t]=c={}),c[r]||(c[r]={}),n=c[r],a=n.style,"string"==typeof a&&(a=o.Pe[o.Se.indexOf(n.style)]),a&&a.foreColor&&(i.linkColor=a.foreColor),n.hyperlink=i},e.prototype.fg=function(e,t){if(t[0]){var r=this,i=r.Ne,n=i.sheets&&i.sheets[e];n&&(n.sharedFormulas=t)}},e.prototype.gg=function(e,t,r,i,n,o,l,s){var c,u,d,f=this,p=f.Ne,h=p.sheets&&p.sheets[e],m=h.data.dataTable[t];if(m[r]||(m[r]={}),c=m[r],i<f.Qe.length&&f.Qe[i]&&"number"==typeof n&&(n=f.hg(n)),void 0!==n&&(c.value=n),void 0!==o&&(c.formula=o),l&&(c.arrayInfo=l),s){for(u=[],d=0;d<s.length;d++)s[d].style?u.push({style:a.ConverterHelper.toRichTextStyle(s[d].style,f.ff,f.gf),text:s[d].text}):u.push(s[d]);c.value={richText:u}}},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,i;if(e&&e.length>0){for(a.ColorHelper.useCustomPalette=!0,t={},r=0,i=e.length;r<i;r++)t[r]=a.ColorHelper.fromArgb(e[r]);a.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 i=this.Ne,n=i.sheets&&i.sheets[r];n.topCellIndex=e,n.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,i){var n,a;if(r===-1)this.Ne.names.push({name:e,formula:t,row:0,col:0,comment:i});else for(n in this.Ne.sheets)this.Ne.sheets.hasOwnProperty(n)&&(a=this.Ne.sheets[n],a.index===r&&a.names.push({name:e,formula:t,row:0,col:0,comment:i}))},e.prototype.qg=function(e){var t=this.rg[e];return d(t,this.ff,this.gf)},e.prototype.sg=function(e){var t=this.tg[e];return d(t,this.ff,this.gf)},e.prototype.ug=function(e){var t=this.hf[e];return d(t,this.ff,this.gf)},e.prototype.vg=function(e,t){return d(e,this.ff,this.gf,t)},e.prototype.wg=function(e,t){var r,n,a,o=this.Ne.sheets[e];for(o.conditionalFormats||(o.conditionalFormats={rules:[]}),r=0;r<t.rules.length;r++)n=t.rules[r],!i.J(n.dxfId)&&n.dxfId>-1&&(a=this.ug(n.dxfId),a.font&&0===a.font.indexOf("normal normal")&&delete a.font,n.style=a,delete n.dxfId),o.conditionalFormats.rules.push(n)},e.prototype.xg=function(e){return this.Ne.sheets[e].conditionalFormats},e.prototype.yg=function(e,t){var r=this,i=r.Ne,n=i.sheets&&i.sheets[t];n.comments=e.map(function(e){return o.convertFromExcelComment(n,e)})},e.prototype.zg=function(e,t){var r=this,i=r.Ne,n=i.sheets&&i.sheets[t];n.pivotTables=e},e.prototype.Ag=function(e,t){var r=this,i=r.Ne,n=i.sheets&&i.sheets[t],a=e.pictures,o=e.charts,l=e.shapes,s=r.Bg&&r.Bg.importPictureAsFloatingObject;a&&s&&this.Cg(a,n),o&&this.Dg(o,n),l&&(s&&(l=W(l)),this.Eg(l,n))},e.prototype.Cg=function(e,t){t.floatingObjects=t.floatingObjects||[];var r=t.floatingObjects;e.forEach(function(e){var i=o.convertFromExcelPicture(t,e,r);i.typeName="1",r.push(i)})},e.prototype.Dg=function(e,t){t.charts=t.charts||[],e.map(function(e){var r=o.convertFromExcelChart(t,e);t.charts.push(r)})},e.prototype.Fg=function(e,t){var r,i=this,n=i.Ne.pivotCaches;if(n)for(r in n)if(n.hasOwnProperty(r)&&n[r]&&n[r][e]===t)return n[r]},e.prototype.Gg=function(e){var t,r,i,n,a,o,l=this,s=e.sp||e.cxnSp,c=s&&s.style,u=s&&s.spPr;c&&(t=c.lnRef,r=void 0,i=void 0,n=u.ln,n||(n={}),t&&(r=t.idx,r&&(i=l.qf(1,r-1),O(i,n),u.ln=n))),a=e.grpSp,a&&(o=a.sp,o&&o.length&&o.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 i=o.convertFromExcelShape(t,e);t.shapes.push(i)})},e.prototype.Hg=function(e,t){var r=this,i=r.Ne,n=i.sheets&&i.sheets[t];n.controls=e},e.prototype.Ig=function(e,t){var r=function(e){var t,r,i=e&&e.nvSpPr&&e.nvSpPr.cNvPr,n=i&&i.extLst&&i.extLst.ext||[];for(t=0;t<n.length;t++)if(r=n[t],r.compatExt)return r.compatExt.spid},i=function(e){return r(e)===t},n=function(e){var t,r,a,o=e&&e.sp||[];for(t=0;t<o.length;t++){if(r=o[t],i(r))return r;if(3===r.shapeType&&(a=n(r)))return a}},a=function(e){var t,r,a;for(t=0;t<e.length;t++)if(r=e[t],7===r.shapeType){if(i(r.shapeData&&r.shapeData.sp))return r.shapeData.sp}else if(3===r.shapeType&&(a=n(r.shapeData.grpSp)))return a},o=this,l=o.Ne,s=l.sheets&&l.sheets[e];return s&&s.shapes&&a(s.shapes)},e.prototype.Jg=function(e,t){var r,i,n,a=this,o=a.Ne,l=o.sheets&&o.sheets[t];for(l.sparklineGroups=e,r=0;r<e.length;r++)for(i=e[r].sparklines,n=0;n<i.length;n++)i[n].row>=l.rowCount&&(l.rowCount=i[n].row+1),i[n].col>=l.columnCount&&(l.columnCount=i[n].col+1)},e.prototype.Kg=function(e,t){var r,i,n,o,l,s,c,u,d,f,p,h=this,m=h.Ne,g=m.sheets&&m.sheets[t];for(g.tables=e,r=0;r<e.length;r++){e[r].row+e[r].rowCount>g.rowCount&&(g.rowCount=e[r].row+e[r].rowCount),e[r].col+e[r].colCount>g.columnCount&&(g.columnCount=e[r].col+e[r].colCount),i=g.data&&g.data.dataTable,n=e[r],o=g.data&&g.data.defaultDataNode&&g.data.defaultDataNode.style&&g.data.defaultDataNode.style.font;for(l in n.style)n.style.hasOwnProperty(l)&&n.style[l]&&n.style[l].font&&(n.style[l].font=a.ConverterHelper.composeFontWeightAndFontStyleToDestFont(n.style[l].font,o));for(s={},c=n.row+n.rowCount,u=n.col+n.colCount,d=n.row;d<c;d++)for(f=n.col;f<u;f++)i[d]&&i[d][f]&&(p=i[d][f].style,G(s,p)?i[d][f].style=s[p]:H(h,m,i,d,f,s))}},e.prototype.Lg=function(e,t,r,n){var a=this.Ne.sheets[e],o,l=[],s=0,c;if(a&&a.data&&a.data.dataTable&&(o=a.data.dataTable))for(;n>0&&s<t.rowCount;)o[t.row+s]&&(c=o[t.row+s][r],i.J(c.value)||(l.push(c.value),n--)),s++;return l},e.prototype.Mg=function(e,t){var r,n,o,l,s,c,u,d=this;if(!i.J(e)&&!i.J(e.range))return r={},r.filterItemMap=[],r.filteredColumns=[],n=e.range,n=new i.Range(n.row+1,n.col,n.rowCount-1,n.colCount),r.range=n,e.filterColumns.forEach(function(e){var a,o=e.autoFilterColumnId+n.col,l=[],s=!1,c=e.colorFilter;c&&(l.push(y(c,d.hf[c.dxfId])),s=!0),a=e.filters,a&&(a.blank&&a.filter.push(""),a.filter.forEach(function(e){l.push(S(2,0,e,a.blank))}),a.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(S(5,0,t,!a.blank))}),s=!0),e.customFilters&&(l.push(T(e.customFilters,i.J(t)?n:d.Lg(t,n,o,1))),s=!0),e.dynamicFilter&&(l.push(k(e.dynamicFilter,n,o)),s=!0),e.top10Filter&&(l.push(F(e.top10Filter)),s=!0),s&&(r.filteredColumns.push(o),r.filterItemMap.push({index:o,conditions:l}))}),o=e.sortInfo,o&&o.dxfId===h?r.sortInfo=o:o&&o.dxfId!==h&&(l=void 0,s=e.sortInfo.isBackColor,c=d.hf[o.dxfId]&&d.hf[o.dxfId].fill,c&&(0===c.patternType?l="":(u={},a.ConverterHelper.Ie(c,u),l="object"==typeof u.backColor?JSON.stringify(u.backColor):u.backColor)),r.sortInfo={ascending:o.ascending,index:o.index,isBackColor:s,color:l}),r},e.prototype.Ng=function(e,t){if(!i.J(e)){var r={};return r.filterItemMap=[],e.filterColumns.forEach(function(e){var i=[],n=e.filters;n&&(n.filter.forEach(function(e){i.push(S(t.conType,0,e,n.blank))}),n.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);i.push(S(t.conType,0,r,!n.blank))})),e.customFilters&&i.push(A(e.customFilters,t)),e.dynamicFilter&&i.push(E(e.dynamicFilter,t)),e.top10Filter&&i.push(I(e.top10Filter,t)),r.filterItemMap.push({conditions:i})}),r}},e.prototype.Og=function(e,t){if(!i.J(e)){var r=this,n=r.Ne,a=n.sheets&&n.sheets[e];a.rowFilter=r.Mg(t,e),n.allowAutoExtendFilterRange=!0}},e.prototype.Pg=function(e,t){var r,i,n,a,l,s=this,c=s.Ne,u=c.sheets&&c.sheets[t];u.slicers=u.slicers||[],r=u.slicers,i=[];for(n in c.sheets)c.sheets[n].tables&&(i=i.concat(c.sheets[n].tables));a=[];for(l in c.sheets)c.sheets[l].pivotTables&&(a=a.concat(c.sheets[l].pivotTables));e.forEach(function(e){"pivot"===e.type||"timeline"===e.type?e.pivotName=_(e.pivotCacheId,a,c.pivotCaches):(e.tableName=R(e.tableId,i),e.columnName=L(e.tableId,e.columnId,i),delete e.tableId,delete e.columnId),o.inflateWorksheetByAnchor(u,e),r.push(e)})},e.prototype.Qg=function(e,t){var r,n,a,o,l;i.J(e)||(r=this,n=r.Ne,a=n.sheets&&n.sheets[e],o=r.Rg(t),l=a.validations,l||(l=a.validations=[]),o.ranges=N(t.ranges,", "),l.push(o))},e.prototype.Rg=function(e){var t,r,n,a,o,l,s,c;if(i.J(e))return p;switch(t=e.type,r=e.compareOperator,n=e.firstFormula,a=e.secondFormula,o={type:t},t){case 0:break;case 1:case 2:case 6:l={operator:r,value1:P(n),value2:P(a)};break;case 3:s=n,i.J(s)&&(s=a),s&&(l='"'===s[0]&&'"'===s[s.length-1]?{value:D(s)}:{formula:P(s)});break;case 4:case 5:c=void 0,i.J(n)||(c=parseFloat(n),isNaN(c)||(n=this.hg(c))),i.J(a)||(c=parseFloat(a),isNaN(c)||(a=this.hg(c))),l={operator:r,value1:n&&n.indexOf("/OADate(")!==-1?n:P(n),value2:a&&a.indexOf("/OADate(")!==-1?a:P(a)};break;case 7:l={formula:P(n)}}return l&&(o.validatorInfo=l),o!==p&&(o.errorStyle=e.errorType,o.errorMessage=e.error,o.errorTitle=e.errorTitle,o.ignoreBlank=e.allowBlank,o.inCellDropdown=e.showPromptBox,o.inputMessage=e.prompt,o.inputTitle=e.promptTitle,o.showErrorMessage=e.showErrorMessage,o.showInputMessage=e.showInputMessage),o},e.prototype.Sg=function(e,t){var r,n,a,o;function l(e){return e=e||0,parseInt(Math.round(100*e),10)}i.J(e)||(r=this,n=r.Ne,a=n.sheets&&n.sheets[e],a.printInfo||(a.printInfo={}),o=a.printInfo,o.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,n,a,o,l,s,c,u;i.J(e)||(r=this,n=r.Ne,a=n.sheets&&n.sheets[e],a.printInfo||(a.printInfo={}),o=a.printInfo,o.showGridLine=t.printGridLine,l=t.horizontalCentered,s=t.verticalCentered,c=0,l&&s?c=3:l?c=1:s&&(c=2),o.centering=c,u=t.printRowColumnsHeaders?2:1,o.showColumnHeader=u,o.showRowHeader=u)},e.prototype.Ug=function(e,t,r){e.rows||(e.rows=[]);var i=e.rows[t];i?i.pageBreak=r:e.rows[t]={pageBreak:r}},e.prototype.Vg=function(e,t,r){e.columns||(e.columns=[]);var i=e.columns[t];i?i.pageBreak=r:e.columns[t]={pageBreak:r}},e.prototype.Wg=function(e,t){var r,n,a,o,l,s,c,u,d,f,m,g,b,w,C;function S(e){var t,r,i,n,a;if(e===h)return p;if(t=["","",""],e===p||""===e)return t;for(r=0,i=1,n=e.length;r<n;){if(r<n-1){if(a=e.substr(r,2),"&L"===a){i=0,r+=2;continue}if("&C"===a){i=1,r+=2;continue}if("&R"===a){i=2,r+=2;continue}}t[i]=t[i].concat(e[r]),r++}return t}i.J(e)||(r=this,n=r.Ne,a=n.sheets&&n.sheets[e],a.printInfo||(a.printInfo={}),o=a.printInfo,l=t.paperSizeIndex,0!==l&&(o.paperSize={kind:l}),t.useCustomStartingPage&&(o.firstPageNumber=t.firstPageNumber),i.J(t.showColor)||(o.blackAndWhite=!t.showColor),o.orientation=2===t.orientation?2:1,o.pageOrder=2===t.pageOrder?2:1,t.zoomFactor>0&&(o.zoomFactor=t.zoomFactor),t.useSmartPrint&&(t.smartPrintPagesWidth>=1&&(o.fitPagesWide=t.smartPrintPagesWidth),t.smartPrintPagesHeight>=1&&(o.fitPagesTall=t.smartPrintPagesHeight)),s=t.advancedHeadFooterSetting,s&&(c=o.pageHeaderFooter={},o.differentOddAndEvenPages=s.headerFooterDifferentOddEvenPages,o.differentFirstPage=s.headerFooterDifferentFirstPage,u=S(s.headerOddPage),u&&(s.headerFooterDifferentOddEvenPages?c.odd={header:{left:u[0],center:u[1],right:u[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}}:c.normal={header:{left:u[0],center:u[1],right:u[2],leftImage:s.headerLeftImage,centerImage:s.headerCenterImage,rightImage:s.headerRightImage}},o.headerLeft=u[0],o.headerCenter=u[1],o.headerRight=u[2]),d=S(s.footerOddPage),d&&(s.headerFooterDifferentOddEvenPages?(c.odd=c.odd||{},c.odd.footer={left:d[0],center:d[1],right:d[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}):(c.normal=c.normal||{},c.normal.footer={left:d[0],center:d[1],right:d[2],leftImage:s.footerLeftImage,centerImage:s.footerCenterImage,rightImage:s.footerRightImage}),o.footerLeft=d[0],o.footerCenter=d[1],o.footerRight=d[2]),f=S(s.headerEvenPage),f&&(c.even={header:{left:f[0],center:f[1],right:f[2],leftImage:s.evenHeaderLeftImage,centerImage:s.evenHeaderCenterImage,rightImage:s.evenHeaderRightImage}}),m=S(s.footerEvenPage),m&&(c.even=c.even||{},c.even.footer={left:m[0],center:m[1],right:m[2],leftImage:s.evenFooterLeftImage,centerImage:s.evenFooterCenterImage,rightImage:s.evenFooterRightImage}),g=S(s.headerFirstPage),g&&(c.first={header:{left:g[0],center:g[1],right:g[2],leftImage:s.firstHeaderLeftImage,centerImage:s.firstHeaderCenterImage,rightImage:s.firstHeaderRightImage}}),b=S(s.footerFirstPage),b&&(c.first=c.first||{},c.first.footer={left:b[0],center:b[1],right:b[2],leftImage:s.firstFooterLeftImage,centerImage:s.firstFooterCenterImage,rightImage:s.firstFooterRightImage}),s.headerLeftImage&&(o.headerLeftImage=s.headerLeftImage),s.headerCenterImage&&(o.headerCenterImage=s.headerCenterImage),s.headerRightImage&&(o.headerRightImage=s.headerRightImage),s.footerLeftImage&&(o.footerLeftImage=s.footerLeftImage),s.footerCenterImage&&(o.footerCenterImage=s.footerCenterImage),s.footerRightImage&&(o.footerRightImage=s.footerRightImage)),w=t.rowBreakLines,w&&w.length>0&&w.forEach(function(e){r.Ug(a,e,!0)}),C=t.columnBreakLines,C&&C.length>0&&C.forEach(function(e){r.Vg(a,e,!0)}))},e.prototype.Xg=function(e,t){var r,i,n,a;e<0||(r=this,i=r.Yg(e),i.printInfo||(i.printInfo={}),n=s.getRangesFromString(t),1===n.length&&(a=n[0],a.row>-1&&(i.printInfo.rowStart=a.row),a.rowCount>0&&(i.printInfo.rowEnd=a.row+a.rowCount-1),a.col>-1&&(i.printInfo.columnStart=a.col),a.colCount>0&&(i.printInfo.columnEnd=a.col+a.colCount-1)))},e.prototype.Zg=function(e,t){var r,n,a,o,l;if(!(e<0))for(r=this,n=r.Yg(e),n.printInfo||(n.printInfo={}),a=s.getRangesFromString(t.replace(","," ")),o=0;o<a.length;o++)l=a[o],i.isRangeWholeRow(l)?(n.printInfo.repeatRowStart=l.row,n.printInfo.repeatRowEnd=l.row+l.rowCount-1):i.isRangeWholeColumn(l)&&(n.printInfo.repeatColumnStart=l.col,n.printInfo.repeatColumnEnd=l.col+l.colCount-1)},e.prototype.Yg=function(e){var t,r,i=this.Ne.sheets;for(t in i)if(i.hasOwnProperty(t)&&(r=i[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,i,n,a,o,l,s,c,u,d,p,h,m,g,b=this._g,w=+t-1;if(b&&("cm"===e?(r=b.cellMetadata,i=this.ah):"vm"===e&&(r=b.valueMetadata,i=this.bh)),r){if(n=[e,w].join(","),a=i[n])return a;if(o=J(r,w)){l=o.rc,s=l._attr,c=+s.t-1,u=+s.v;try{if(d=f(b.metadataTypes.metadataType),p=f(b.futureMetadata),h=d[c],m=h&&h._attr.name,g=U(p,m))return a={name:m,detail:J(g,u)},i[n]=a,a}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;i.J(r.Ne.docProps)&&(r.Ne.docProps={}),i.J(r.Ne.docProps.docPropsCore)&&(r.Ne.docProps.docPropsCore={}),r.Ne.docProps.docPropsCore[e]=t},e.prototype.gh=function(e,t){var r=this;i.J(r.Ne.docProps)&&(r.Ne.docProps={}),i.J(r.Ne.docProps.docPropsApp)&&(r.Ne.docProps.docPropsApp={}),r.Ne.docProps.docPropsApp[e]=t},e.prototype.hh=function(e){var t=this;i.J(t.Ne.docProps)&&(t.Ne.docProps={}),i.J(t.Ne.docProps.docPropsCustom)&&(t.Ne.docProps.docPropsCustom=[]),t.Ne.docProps.docPropsCustom=e},e}(),t.ReaderDataModel=w},"./src/datamodel/datamodel-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C,S,y,v;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/excel-style.ts"),o=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"),u=a.ColorHelper.fromColorToExcelColor,d=a.ColorHelper.toExcelColor,f=i.Util.sa,p=i.Util.ta,h=void 0,m=null,g="__builtInStyle",b="__builtInValidatorStyle",w="__builtInTableStyle",C=/^(__builtInTableStyle\d+)?__builtInStyle\d+$/,S=/^__builtInTableStyle\d+__builtInStyle\d+$/;function x(e){return"string"==typeof e}function T(e){return"string"==typeof e||!e}function A(e){return"object"==typeof e}function k(e){return e.substring(0,19)===w}function E(e){return e.substring(0,23)===b}function F(e){var t=e.formula;return i.J(t)&&(t=e.expected,x(t)&&(t='"'+t+'"')),t}function I(e){var t,r,i;return x(e)&&(t=e.indexOf("/OADate(")+1,r=e.indexOf(")"),0!==t&&r>t&&(i=parseFloat(e.substring(t+7,r)),isNaN(i)||(e=""+i))),e}function P(e,t,r){var i,n=e.tables||[];return n.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(i=e,!1)}),i}function D(e,t,r){var i,n=e.spans||[];return n.every(function(e){return!(e.row<=t&&t<=e.row+e.rowCount-1&&e.col<=r&&r<=e.col+e.colCount-1)||(i=e,!1)}),i}function R(e,t){var r,i=e.spans||[];for(r=0;r<i.length;r++)if(t.row===i[r].row&&t.col===i[r].col){i.splice(r,1);break}}function L(e){var t,r,i,n,a,o,l,s,c,u,d;if("/OADate("===e.substr(0,8)){if(t=parseFloat(e.substr(8,e.length-10)),r=t-25569,i=new Date(864e5*r),n=r>=0?1:-1,a=_(i),o=(864e5*t*1440+n-3181192704e6+864e5*a)/1440,l=new Date(o),s=a>=0?1:-1,c=new Date(o+36e5*s),u=_(c),a!==u)if(d=new Date(o+60*(u-a)*1e3),a>u){if(s===-1||u===_(l))return d=999===d.getMilliseconds()?new Date(d.valueOf()+1):d}else if(a<u&&(1===s||u===_(l)))return d=999===d.getMilliseconds()?new Date(d.valueOf()+1):d;return l=999===l.getMilliseconds()?new Date(l.valueOf()+1):l}}function _(e){var t=e.getTimezoneOffset();return t===-485&&(t=-485-43/60),t===-321&&(t=-321-10/60),t}function N(e,t,r){e.ih||(e.ih={}),e.ih[t]=r}function B(e){return e.defaults?e.defaults.rowHeight:n.DefaultSize.Ab}function M(e){return e.defaults?e.defaults.colWidth:n.DefaultSize.zb}function O(e,t,r){var i=e.data.dataTable[t];if(i&&i[r])return i[r].value}function G(e,t,r){void 0===r&&(r=0);var n=t.row,a=t.col,o=t.rowCount,l=t.colCount;return n===-1&&(n=r,o=e.rowCount),a===-1&&(a=0,l=e.columnCount),n<=0?n=0:(n--,o+=1),new i.Range(n,a,o,l)}t.getFilterRange=G;function H(e){return i.J(e)?e:e.length>=2&&"="===e[0]?e.substring(1):"="===e?"":e}function U(e,t,r,n){var a,o,l;if(1===r.colCount){for(a=[],l=r.row;l<r.row+r.rowCount;l++)o=O(e,l,r.col),i.J(o)||a.push(o);return a.sort(function(e,t){return n?t-e:e-t}),a[t-1]}}function J(e,t,r){var n,a={filterType:1};if(a.isBottom=1===t.type,t.percent&&(a.percent=!0),n=t.expected,!i.J(n))return a.value=n,a.percent&&(n=Math.ceil(r.rowCount%n/100)),i.J(r)?a.filterValue=NaN:a.filterValue=U(e,n,r,!a.isBottom),a}function W(e){var t,r={filterType:1};return r.isBottom=e.type===-1,r.percent=1===e.compareType,t=e.expected,i.J(t)||(r.value=t,r.filterValue=t),r}function V(e,t,r){var i,n,a,o,l={filterType:2};if(0===t.type?l.type=100:1===t.type&&(l.type=101),r===m)return m;for(i=0,n=0,a=0;a<r.rowCount;a++)o=parseFloat(O(e,r.row+a,r.col)),isNaN(o)||(i+=o,n++);return n>0&&(l.value=i/n),l}function z(e){var t=new Date,r=t.getDay(),i=t.getDate(),n=new Date(t),a=new Date(t);switch(e){case 3:n.setDate(i-6);break;case 1:n.setDate(i-1);break;case 0:break;case 2:n.setDate(i+1);break;case 8:n.setDate(i-r-7),a.setDate(i-r-1);break;case 7:n.setDate(i-r),a.setDate(i-r+6);break;case 9:n.setDate(i-r+7),a.setDate(i-r+13);break;case 5:n.setDate(1),n.setMonth(n.getMonth()-1),a.setDate(0);break;case 4:n.setDate(1),a.setMonth(a.getMonth()+1),a.setDate(0);break;case 6:n.setDate(1),n.setMonth(n.getMonth()+1),a.setMonth(a.getMonth()+2),a.setDate(0)}return n.setHours(0),n.setMinutes(0),n.setSeconds(0),a.setHours(23),a.setMinutes(59),a.setSeconds(59),{from:n,to:a}}function j(e){var t,r,i,n,a,o,l=new Date,s=l.getDay(),u=l.getDate(),d=new Date(l),f=new Date(l);switch(e){case 11:d.setDate(u-6);break;case 9:d.setDate(u-1);break;case 8:break;case 10:d.setDate(u+1);break;case 16:d.setDate(u-s-7),f.setDate(u-s-1);break;case 15:d.setDate(u-s),f.setDate(u-s+6);break;case 17:d.setDate(u-s+7),f.setDate(u-s+13);break;case 13:d.setDate(1),d.setMonth(d.getMonth()-1),f.setDate(0);break;case 12:d.setDate(1),f.setMonth(f.getMonth()+1),f.setDate(0);break;case 14:d.setDate(1),d.setMonth(d.getMonth()+1),f.setMonth(f.getMonth()+2),f.setDate(0);break;case 18:t=d.getMonth()-d.getMonth()%3+1+3,r=t+3+3,d.setDate(1),d.setMonth(t),f.setMonth(r),f.setDate(0);break;case 19:i=d.getMonth()-d.getMonth()%3+1,n=i+3,d.setDate(1),d.setMonth(i),f.setMonth(n),f.setDate(0);break;case 20:a=d.getMonth()-d.getMonth()%3+1-3,o=i+3-3,d.setDate(1),d.setMonth(a),f.setMonth(o),f.setDate(0);break;case 21:d.setDate(1),d.setMonth(1),d.setFullYear(d.getFullYear()+1),f.setFullYear(f.getFullYear()+2),f.setMonth(0),f.setDate(0);break;case 22:d.setDate(1),d.setMonth(1),f.setFullYear(f.getFullYear()+1),f.setMonth(0),f.setDate(0);break;case 23:d.setDate(1),d.setMonth(1),d.setMonth(d.getFullYear()-1),f.setMonth(0),f.setDate(0);break;case 40:d.setMonth(0,1),d.setHours(0,0,0,0),f.setHours(23,59,59,999)}return d.setHours(0),d.setMinutes(0),d.setSeconds(0),f.setHours(23),f.setMinutes(59),f.setSeconds(59),{from:c.DateTimeHelper.ig(d),to:c.DateTimeHelper.ig(f)}}function X(e){var t,r=e.expected,i={filterType:2,type:r,conType:e.conType,expectTypeId:e.expectTypeId};return r>=0&&r<=15||r>=21&&r<=32?(t=z(r),t.from&&t.to&&(i.value=t.from,i.maxValue=t.to)):i.type=-1,i}function K(e){if(!i.J(e.compareType)){var t={filterType:4};return t.filter1={},t.filter1.operator=e.compareType,i.J(e.expected)?t.filter1.value=H(e.formula):t.filter1.value=e.expected,t}}function q(e){var t,r,n,a;if(!i.J(e.compareType))return t={filterType:4},t.filter1={},r=e.compareType,n=void 0,a=void 0,6===r?(n=5,a=3,t.and=!0):(n=r,a=r),t.filter1.operator=n,e.item1&&!i.J(e.item1.expected)&&(t.filter1.value=e.item1.expected),e.item2&&!i.J(e.item2.expected)&&(t.filter2={},t.filter2.operator=a,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,n;if(i.J(e.value1)?i.J(e.item1)||(t=e.item1.expected):t=e.value1,i.J(e.value2)?i.J(e.item2)||(r=e.item2.expected):r=e.value2,!r){switch(n=-1,e.compareType){case 0:return{filterType:3,filter:[t]};case 1:n=1;break;case 2:t+="*";break;case 3:n=1,t+="*";break;case 4:t="*"+t;break;case 5:n=1,t="*"+t;break;case 6:t="*"+t+"*";break;case 7:n=1,t="*"+t+"*";break;case 8:n=2;break;case 9:n=5;break;case 10:n=4;break;case 11:n=3}return{filterType:4,filter1:{operator:n,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)?L(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,n,a=i.J(e.compareType)?e.operator:e.compareType;if(a>=8&&a<=23||40===a)r={filterType:2,type:t},n=j(a),n.from&&n.to&&(r.value=n.from,r.maxValue=n.to);else if(a>=24&&a<=39)r={filterType:2,type:t};else if(a>=0&&a<=7)return q(e);return r}t.getPivotDateFilter=$;function ee(e){var t,r,i;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?(i=F(e),i=I(i),{filterType:4,filter1:{operator:r,value:i}}):void 0}function te(e){var t,r,n=[],a=[];for(a.push(e);a.length>0;)t=a.shift(),0===t.conType?(r=t,i.J(r.item1)||a.push(r.item1),i.J(r.item2)||a.push(r.item2)):n.push(t);return n}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 ie(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 ne(e){var t={filterType:3,filter:[]};return e.forEach(function(e){i.J(e.expected)||t.filter.push(e.expected)}),t}function ae(e,t){return e.every(function(e){return e.conType===t})}function oe(e,t,r){var n,a,o,l,s,c,u,d,f,p,h,g,b;if(0===e.compareType){if(n=te(e),ae(n,5))return a={filterType:3},n.forEach(function(e){Z(e,a)}),a;if(ae(n,2)){if(s=!1,n.length<=2)for(c=0;c<n.length;c++)if(0!==n[c].compareType){s=!0;break}return s?(l={filterType:4},u=n[0],o=re(u.compareType),l.filter1={},l.filter1.operator=o,i.J(u.expected)?l.filter1.value=H(u.formula):l.filter1.value=ie(u.expected,u.compareType),2===n.length&&(u=n[1],o=re(u.compareType),l.filter2={},l.filter2.operator=o,i.J(u.expected)?l.filter2.value=H(u.formula):l.filter2.value=ie(u.expected,u.compareType)),l.and=!1,l):ne(n)}if(ae(n,11)){if(d=!0,n.length<=2&&(d=!1),d)return ne(n);if(n.length>0)return f=n[0],l={filterType:4,filter1:{operator:f.compareType}},i.J(f.expected)?l.filter1.value=H(f.formula):l.filter1.value=f.expected,2===n.length&&(f=n[1],l.filter2={operator:f.compareType},i.J(f.expected)?l.filter2.value=H(f.formula):l.filter2.value=f.expected),l.and=!1,l}return l={filterType:4,and:!1},p=le(t,n[0],r),l.filter1=p.filter1,n.length>1&&(h=le(t,n[1],r),l.filter2=h.filter1),l}if(n=te(e),2===n.length)return l={filterType:4},l.and=!0,g=le(t,n[0],r),i.J(g)||!g.filter1?m:(l.filter1=g.filter1,b=le(t,n[1],r),i.J(b)||!b.filter1?m:(l.filter2=b.filter1,l))}function le(e,t,r){if(e===m)return m;var i=t.conType;if(3===i);else{if(8===i)return J(e,t,r);if(10===i)return V(e,t,r);if(6===i)return X(t);if(11===i||1===i)return K(t);if(2===i)return Y(t);if(5===i)return ee(t);if(0===i)return oe(t,e,r)}}function se(e,t){var r=e.conType;return 3===r?W(e):2===r?q(e):0===r?Q(e):1===r?$(e,t):void 0}function ce(e){var t,r,n;return i.J(e)?m:(t=m,r=m,n=0,n=1===e.compareType?6:7,e.item1&&(t=0===e.item1.conType?ce(e.item1):ue(e.item1)),e.item2&&(r=0===e.item2.conType?ce(e.item2):ue(e.item2)),new s.Tuple(t,r,n))}function ue(e){if(!i.J(e)){var t=e.conType,r,n;return 0===t?ce(e):1===t||7===t?(r=e.compareType,n=e.formula,i.J(n)&&(n=e.expected),new s.Tuple(n,m,r)):4===t?new s.Tuple(i.J(e.formula)?e.expected:e.formula,m,1):12===t||5===t||13===t?(n=F(e),new s.Tuple(n,m,1)):m}}function de(e){if(e instanceof s.Tuple){var t=e;if(!i.J(t.item1))return de(t.item1)}else if(!i.J(e))return H(""+e);return""}function fe(e,t,r){var n,a,o,l,s;return i.J(e)?m:(n=ue(e.condition),a=m,o=m,i.J(n)||(i.J(n.item1)||(a=de(n.item1)),i.J(n.item2)||(o=de(n.item2))),l={},(p(a,t,r)||p(o,t,r))&&(l.external=!0),s=e.type,l.type=s,l.firstFormula=a,l.secondFormula=o,4!==s&&5!==s||(i.J(l.firstFormula)||(l.firstFormula=I(l.firstFormula)),i.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 pe(e,t,r){if(r.ih&&r.ih[e])return r.ih[e];var n=i.ga._(r.namedStyles,e);return n?(N(r,e,n),n):t.ih&&t.ih[e]?t.ih[e]:(n=i.ga._(t.namedStyles,e),n&&N(t,e,n),n)}function he(e,t,r,i){e.forEach(function(e){var n=fe(e,r,i);n.ranges=e.ranges.split(", ").join(" "),t.push(n)})}y={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 me(e){if(e){var t={};return e.borderColor&&(t.color=e.borderColor),e.borderStyle&&(t.style=y[e.borderStyle]),t}}function ge(e,t){var r,i;if(e){for(r in e)e.hasOwnProperty(r)&&r.indexOf("border")>=0&&(i=e[r],i&&(e[r]=me(i)));return t&&(e.isSlicerHeader=!0),e}}function be(e){var t,r,n=e.sheets;if(n)for(t in n)n.hasOwnProperty(t)&&(r=n[t],r.defaults=r.defaults||i.Ea())}function we(e){var t,r;if(i.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 Ce(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function Se(e,t,r){for(var i=0;i<e.styleElements.length;i++)e.styleElements[i].type===t&&(e.styleElements[i].size=r)}function ye(e,t){return f(e,t,l.isBorderEqual)}function ve(e,t){return e[t.name]&&f(e[t.name],t,ye)}function xe(e,t){for(var r=t,i=1;e[r];)r=t+"_"+i,i++;return r}function Te(e,t){var r=t;return null!==e&&void 0!==e&&(r=e),(r/100).toFixed(2)}function Ae(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,i,n,a,o=e.jh;if(o&&o.dataSourceOption&&o.dataSourceOption.schema&&o.dataSourceOption.schema.hierarchy)for(t=o.dataSourceOption.schema.hierarchy,r=o.views.filter(function(t){return t.name===e.addition.dataView.name})[0],i=r.columns,n=0;n<i.length;n++)if(a=i[n],a.outlineColumn||a.value===t.outlineColumn||t.outlineColumn&&a.value===t.outlineColumn.value)return!0}function Ee(e){var t,r,n,a,o,l,s,c,u,d,f,p,m=e.colHeaderRowCount||1;if(e.rowCount+=m,t=e.data,ke(e)){for(r=0;r<m;r++)e.rowOutlines.items.unshift(h);for(n=e.rowOutlines.itemsData,r=0;r<n.length;r++)a=n[r],a.index+=m}for(o=t.dataTable,o||(o=t.dataTable={}),l=e.rowCount-m;l>=0;l--)o[l+m]=o[l];for(s=e.colHeaderData.dataTable,l=0;l<m;l++)o[l]=s&&s[l]||{};if(c=e.colHeaderRowInfos,u=e.defaults&&e.defaults.colHeaderRowHeight,!i.J(u))for(c||(c=[]),l=0;l<m;l++)c[l]?i.J(c[l].size)&&(c[l].size=u):c[l]={size:u};if(c&&c.length>0)for(d=e.rows,d||(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-m;l>=0;l--)f[l+m]=f[l];for(p=e.colHeaderData.rowDataArray,l=0;l<m;l++)f[l]=p&&p[l]||{};e.frozenRowCount>0&&(e.frozenRowCount+=m,e.topCellIndex+=m)}function Fe(e){var t,r,i,n,a,o=e.colHeaderRowCount||1,l=[],s=e.data,c=s.dataTable,u=c[o-1];if(e.columnCount=e.columnCount||e.columns&&e.columns.length||0,0!==e.rowCount&&0!==e.columnCount){if(u)for(t=0;t<e.columnCount;t++)r={id:t+1},i=u[t],r.name=i&&i.value||"Column"+(t+1),l.push(r);for(n={},t=l.length-1;t>=0;t--)a=l[t],n[a.name]?a.name=a.name+" "+t:n[a.name]=!0;e.tables=[{name:e.name,row:o-1,col:0,rowCount:e.rowCount,colCount:e.columnCount,rowFilter:{range:{row:o,col:0,rowCount:e.rowCount-1,colCount:e.columnCount},showFilterButton:!0},columns:l}]}}function Ie(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 Pe(e){Ee(e),delete e.rowFilter,Fe(e)}function De(e,t){var r,n,o,l,s;i.J(e.numberFormat)||(r=e.numberFormat,n={},o=a.ExtendedNumberFormatHelper.getFormatId(r),l=o.id,s=o.isBuiltIn,s?(n.numberFormatIndex=l,e.numberFormatId=l):(n.numberFormat=new a.ExcelNumerFormat(l,r),
19
19
  e.numberFormatId=n.numberFormat.numberFormatId),t.push(n))}function Re(e,t){var r={name:e};return l.getPictureInfo(t,r),r}function Le(e,t,r){var n=m,a=h,o=!1;return i.J(e)||(A(e)?Array.isArray(e)?n=e.join(","):(a=e.richText,a?n=we(a):i.J(e._code)||(n=e),o=e._code>=99,o&&r<3&&(r=t?2:3)):(n=e,t&&r<1&&(r=1))),{value:n,richText:a,isSpillError:o,dynamicArrayLevel:r}}function _e(e){return e&&"'"===e[0]&&"'"===e[e.length-1]&&(e=e.substring(1,e.length-1)),e}v=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,i,n,a,o,l,s,c,u=e.sheetCount||0;if(e.sheetCount=u+(e.sheetTabCount||0),t=e.activeSheetIndex,r=e.activeSheetTabIndex,(void 0===t||t<0)&&void 0!==r&&r>=0&&(e.activeSheetIndex=u+r),i=e.sheetTabs){n=function(t){if(i.hasOwnProperty(t)){var r=i[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]),Pe(r),Ae(r)}};for(a in i)n(a);if(o=e.sheets){for(l in i)i.hasOwnProperty(l)&&(o[l]=i[l]);for(s in o)o.hasOwnProperty(s)&&(c=o[s],"number"==typeof c.order&&(c.index=c.order))}else e.sheets=i}void 0===e.startSheetIndex&&(e.startSheetIndex=0)},e.prototype.$e=function(){var e=a.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,n,a,l,s,c,u,d;if(!e||!t)return!1;if(r=!0,!i.StringEx.L(t.fileName)&&(n=this.Mh(t.fileType),!i.StringEx.L(n))){for(a=new o.OverrideContentType,a.partName=t.fileName,a.contentType=n,l=!1,s=0,c=e.length;s<c;s++)if(u=e[s],u instanceof o.OverrideContentType&&u.contentType===a.contentType&&u.partName===a.partName){l=!0;break}l||e.push(a)}if(t.relationFiles&&t.relationFiles.count>0)for(d in t.relationFiles)t.relationFiles.hasOwnProperty(d)&&"count"!==d&&(r=r&&this.Lh(e,t.relationFiles[d]));return r},e.prototype.Mh=function(e){if(i.StringEx.L(e))return"";switch(e){case n.RelationshipConstants.Sa:return n.XFileConstants.Ib;case n.RelationshipConstants.Pa:return n.XFileConstants.Jb;case n.RelationshipConstants.Ua:return n.XFileConstants.Kb;case n.RelationshipConstants.Na:return n.XFileConstants.Lb;case n.RelationshipConstants.Ra:return n.XFileConstants.Mb;case n.RelationshipConstants.Za:return n.XFileConstants.Ob;case n.RelationshipConstants.$a:return n.XFileConstants.Pb;case n.RelationshipConstants._a:return n.XFileConstants._b;case n.RelationshipConstants.eb:return n.XFileConstants.Qb;case n.RelationshipConstants.jb:return n.XFileConstants.fc;case n.RelationshipConstants.kb:return n.XFileConstants.gc;case n.RelationshipConstants.lb:return n.XFileConstants.Rb;case n.RelationshipConstants.mb:return n.XFileConstants.Sb;case n.RelationshipConstants.pb:return n.XFileConstants.Ub;case n.RelationshipConstants.qb:return n.XFileConstants.Tb;case n.RelationshipConstants.ob:return n.XFileConstants.Vb;case n.RelationshipConstants.sb:return n.XFileConstants.fe;case n.RelationshipConstants.Ka:return n.XFileConstants.se;case n.RelationshipConstants.La:return n.XFileConstants.ve;case n.RelationshipConstants.Ma:return n.XFileConstants.ye;case n.RelationshipConstants.Wa:return n.XFileConstants.cc;case n.RelationshipConstants.Xa:return n.XFileConstants.dc;case n.RelationshipConstants.Ya:return n.XFileConstants.ec;case n.RelationshipConstants.bb:return n.XFileConstants.lc;case n.RelationshipConstants.ub:return n.XFileConstants.ic;case n.RelationshipConstants.tb:return n.XFileConstants.hc;default:return""}},e.prototype.Nh=function(e,t,r,i,n){var a,o,s,c,u,d,f,p,h,m,b,C,S,y=this,v=y.Ne,x=v.namedStyles;for(a=0;a<e.length;a++)if(o=e[a])for(s=o.row,c=o.col,u=o.rowCount,d=o.colCount,f=0;f<u;f++)if(p=t[s+f])for(h=0;h<d;h++)if(m=p[c+h],m&&m.style){if("string"==typeof m.style){if(n[m.style]){m.style=n[m.style];continue}m.style=r[m.style]}m.style&&(m.style=l.resetTableCellStyle(m.style,i),m.style.name&&(b=m.style.name,C=b.indexOf(g),y.Oh++,S=w+y.Oh+b.substring(C),m.style.name=S,x.push(m.style),m.style=S,n[b]=S))}},e.prototype.Ph=function(){var e,t,r=this,i=r.Ne;r.$e(),r.Qh();for(e in i.sheets)if(i.sheets.hasOwnProperty(e)){if(t=i.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)}be(r.Ne)},e.prototype.Xh=function(){var e=this;e.onCompleted&&e.onCompleted()},e.prototype.Wh=function(e){var t,r,i=e.conditionalFormats&&e.conditionalFormats.rules;if(i)for(t=0;t<i.length;t++)r=i[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,n=t.fi();r&&r.length>0&&r.forEach(function(e){var r,a,o,l,s,c,u=e&&e.style;if(!i.J(u.name)){if(r={},!ve(t.nh,u)){r={styleElements:[],name:xe(t.nh,u.name)},u.name=r.name;for(a in u)if(u.hasOwnProperty(a)&&"name"!==a&&!i.J(u[a]))switch(a){case"headerStyle":case"wholeSlicerStyle":o={},o.type=a,o.dxfId=t.Yh(ge(u[a],"headerStyle"===a)),o.tableId=Ce(e.tableName,n),r.styleElements.push(o)}t.mh.push(r)}if("timeline"===e.type){if(!ve(t.rh,u)){l={styleElements:[],name:xe(t.rh,u.name)},u.name=r.name;for(s in u)if(u.hasOwnProperty(s)&&"name"!==s&&!i.J(u[s]))switch(s){case"selectionLabelStyle":case"timeLevelStyle":case"periodLabel1Style":case"periodLabel2Style":case"selectedTimeBlockStyle":case"unselectedTimeBlockStyle":case"selectedTimeBlockSpaceStyle":l.styleElements.push({type:s,dxfId:t.ei(ge(u[s]))})}t.qh.push(l),t.rh[l.name]=u}}else if(!ve(t.ph,u)){c={styleElements:[],name:xe(t.nh,u.name)},u.name=r.name;for(s in u)if(u.hasOwnProperty(s)&&"name"!==s&&!i.J(u[s]))switch(s){case"selectedItemWithDataStyle":case"selectedItemWithNoDataStyle":case"unSelectedItemWithDataStyle":case"unSelectedItemWithNoDataStyle":case"hoveredSelectedItemWithDataStyle":case"hoveredSelectedItemWithNoDataStyle":case"hoveredUnSelectedItemWithDataStyle":case"hoveredUnSelectedItemWithNoDataStyle":c.styleElements.push({type:s,dxfId:t.di(ge(u[s]))})}t.oh.push(c),t.ph[c.name]=u}}})},e.prototype._h=function(e){var t,r,n=this;function a(e,t){var r,a,o,l,s,c,u,d=e&&e.style;if(!i.J(d&&d.name)){if(ve(n.nh,d))return;r={styleElements:[]},r.name=xe(n.nh,d.name),d.name=r.name,a=void 0,o=void 0,l=void 0,s=void 0;for(c in d)if(d.hasOwnProperty(c)&&"name"!==c&&void 0!==d[c])switch(c){case"firstRowStripSize":a=d[c];break;case"secondRowStripSize":o=d[c];break;case"firstColumnStripSize":l=d[c];break;case"secondColumnStripSize":s=d[c];break;default:u={},u.type=c,d[c].isPartFontStyle=!0,u.dxfId=n.Yh(d[c]),r.styleElements.push(u)}Se(r,"firstRowStripStyle",a||1),Se(r,"secondRowStripStyle",o||1),Se(r,"firstColumnStripStyle",l||1),Se(r,"secondColumnStripStyle",s||1),Se(r,"firstRowStripeStyle",a||1),Se(r,"secondRowStripeStyle",o||1),Se(r,"firstColumnStripeStyle",l||1),Se(r,"secondColumnStripeStyle",s||1),r.isPivot=t,n.mh.push(r),n.nh[r.name]=d}}t=e.pivotTables,t&&t.length>0&&t.forEach(function(e){return a(e,!0)}),r=e.tables,r&&r.length>0&&r.forEach(function(e){return a(e,!1)})},e.prototype.ai=function(e){var t=this,r=e.pivotTables;r&&r.length>0&&r.forEach(function(e){!i.J(e.formats)&&e.formats.length>0&&e.formats.forEach(function(e){var r,n,o,l,s;i.J(e.style)||(e.dxfId=t.Yh(e.style),e.style&&!i.J(e.style.formatter)&&(r=e.style.formatter,n={},o=a.ExtendedNumberFormatHelper.getFormatId(r),l=o.id,s=o.isBuiltIn,s?(n.numberFormatIndex=l,e.style.numberFormatId=l):(n.numberFormat=new a.ExcelNumerFormat(l,r),e.style.numberFormatId=n.numberFormat.numberFormatId),t.Ih.push(n)))}),!i.J(e.fields)&&e.fields.length>0&&e.fields.forEach(function(e){De(e,t.Ih)}),!i.J(e.dataFields)&&e.dataFields.length>0&&e.dataFields.forEach(function(e){De(e,t.Ih)})})},e.prototype.bi=function(e){var t,r=e.tables,i=r?r.length:0,n={};for(t=0;t<i;t++)r[t].tableSortInfo=this.gi(r[t].rowFilter);e.hi=n,e.rowFilter&&(e.rowFilter.autoFilterSortInfo=this.gi(e.rowFilter))},e.prototype.Th=function(e){var t,r=this,i=e.rows,n=B(e);for(e.rowsVisibleInfo={},t=0;t<e.rowCount;t++)e.rowsVisibleInfo[t]={},e.rowsVisibleInfo[t].size=i&&i[t]&&i[t].size||n,e.rowsVisibleInfo[t].visible=r.ii(e,t)},e.prototype.Uh=function(e){var t,r,i=e.columns,n=M(e),a=e.columnOutlines;for(e.columnVisibleInfo={},t=0;t<e.columnCount;t++)e.columnVisibleInfo[t]={},r=i&&i[t],e.columnVisibleInfo[t].size=r&&r.size||n,r&&r.visible===!1&&(e.columnVisibleInfo[t].visible=!1),l.isCollapsed(t,a)&&(e.columnVisibleInfo[t].visible=!1)},e.prototype.Rh=function(e){e.rowCount===h&&(e.rowCount=200),e.columnCount===h&&(e.columnCount=20),e.activeRow===h&&(e.activeRow=0),e.activeCol===h&&(e.activeCol=0),e.visible===h&&(e.visible=!0)},e.prototype.Vh=function(e){var t,r,i=e.index,n=this.yh[i],a=e.columnCount,o=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style;for(t=0;t<a;t++)r=this.ji(e,-1,t),this.ki(e,n,t,r,o)},e.prototype.Sh=function(e){var t,r,n,a,l,s,c,u,d,f,p,g,b,w,C,S,y,v,x,T,A,k,E,F,L,_,N,B,M,O,G,H,U,J,W,V,z,j,X,K,q,Y,Q,Z,$,ee,te,re=this,ie=e.index,ne=e.data&&e.data.dataTable,ae=e.data&&e.data.rowDataArray,oe=e.defaultData,le=re.Eh,se=re.Hh;if(0!==e.rowCount){if(t=re.li(ne,e,oe)+1,r=re.wh[ie],n=re.xh[ie],a=re.mi(e,t),l=re.Ah[ie],s=57,c=re.ni(e),u=[],d=e.tables,!i.J(d)&&Array.isArray(d))for(f=0;f<d.length;f++)for(p=d[f],g=p.row,b=g+p.rowCount-1,w=g;w<=b;w++)u[w]||(u[w]=!0);for(C={},S=e.data&&e.data.defaultDataNode&&e.data.defaultDataNode.style,y=0;y<=c&&y>=0;y++)if(ne&&ne.hasOwnProperty(y+"")||ae&&ae[y]||u[y]||oe&&oe.hasOwnProperty(y+"")){for(v=re.ki(e,n,y,re.ji(e,y,-1),S),x=s,T=ne&&ne[y],A=oe&&oe[y],k=0;k<t&&k>=0;k++)if(E=P(e,y,k),T&&T.hasOwnProperty(k+"")||E||A&&A.hasOwnProperty(k+"")){if(F=y*t+k,L=void 0,_=void 0,N=m,B=m,M=m,O=T&&T[k],G=A&&A[k],H=h,U=!1,O&&(B=O.formula,M=O.arrayInfo,J=M&&M.isDynamicArray,W=O.value,V=Le(W,J,le),N=V.value,H=V.richText,U=V.isSpillError,le=V.dynamicArrayLevel),!B&&i.J(N)&&G&&(N=Le(G.v,h,le).value),z=!1,E&&(z=!0,j=D(e,y,k),j&&R(e,j)),X=re.oi(e,y,k,r,a[k],v,S,F,N),_=X.styleName,L=X.styleInfo,z){if(E.showHeader!==!1&&y===E.row&&(N=E.columns[k-E.col]&&E.columns[k-E.col].name,N&&N.indexOf("\n")!==-1&&H))for(K=0;K<H.length;K++)H[K].text=i.Util.ua(H[K].text,"\r","");E.showFooter&&y===E.row+E.rowCount-1&&(q=E.columns[k-E.col],i.J(q&&q.footerValue)||(N=""+q.footerValue))}if(Y=re.pi(N,!i.J(H)),Q=Y.value,Q=I(Q),Z=Y.cellType,L||B||Q!==m||!i.StringEx.L(_)){if($=new o.ExcelCell(y,k),$.cellType=Z,$.value=Q,$.richText=H,$.isSpillError=U,$.qi=C[y+","+k],re.dg(r,F,L,_,$),re.ri(B,M,$),M&&M.isDynamicArray&&!$.isSpillError)for(ee=M.row;ee<M.row+M.rowCount;ee++)for(te=M.col;te<M.col+M.colCount;te++)C[ee+","+te]=1;re.ti(ie,y,$),re.ui($,e,y,k,se)}}l[y]=x}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,n,a){var o,l,s=this;return n&&(o=s.wi(e,n)),o?(o.parentName&&(o.parentName=s.xi(e,o.parentName),l=s.af[s.lh[o.parentName]],i.ga.ca(o,l)),s.yi(e,o,a),i.ga.ba(o)||(t[r]=s.zi(o),o.parentName&&s.isSameStyleInfo(s.af[s.lh[o.parentName]],o,!0)||(o.parentName=m)),n):m},e.prototype.Ai=function(){var t,r,n,a,o,l,s,c,u,d=this,f=d.Ne,p=f.sheets;for(r in p)if(p.hasOwnProperty(r)&&(n=p[r],a=n.namedStyles,a&&a.length>0)){if(!t)if(t={},f.namedStyles)for(o=f.namedStyles,l=0;l<o.length;l++)t[o[l].name]=1;else f.namedStyles=[];for(l=0;l<a.length;l++)if(s=a[l],c=s.name,!E(c)&&!k(c)&&i.J(e.Bi[c])){for(u=s.name;t[u]||u.length>255;)u=Ie(u,n.name);s.name=u,f.namedStyles.push(s),t[u]=1,c!==u&&(n.renamedStyles=n.renamedStyles||{},n.renamedStyles[c]=u)}}},e.prototype.Ci=function(){var t,r,i,n,a,o=this,l=o.Ne,s=l.namedStyles,c={},u={};o.Oh=0,t=e.Jh(l),s?s.forEach(function(e){var t,r,i,n;e&&(t=e.name,c[t]=e,t&&S.test(t)&&(r=19,i=t.indexOf(g),n=parseInt(t.substring(r,i),10),o.Oh=Math.max(n,o.Oh)))}):l.namedStyles=[];for(r in l.sheets)if(l.sheets.hasOwnProperty(r)){if(i=l.sheets[r],!i||!i.data||!i.data.dataTable)continue;if(n=i.tables,a=i.data.dataTable,!n||n.length<=0)continue;o.Nh(n,a,c,t,u)}},e.prototype.Qh=function(){var e,t,r,n,o,l,s,c,u,d,f,p,m,g,b=this,w=b.Ne,C={},S=[];for(C.Normal={},b.Ai(),b.Ci(),b.Di(w.namedStyles,C,S),t=0,r=b.th.length;t<r;t++)e=b.th[t],e&&e.parentName&&i.ga.da(b.th,e);for(n={},o=[],l={},t=0,r=S.length;t<r;t++)s=S[t],c=a.ConverterHelper.toStringStyle(s),n[c]===h?o.push(s):l[s.name]=S[n[c]].name,n[c]=t,s.Ei=c;for(u={},t=0,r=b.af.length;t<r;t++)e=b.af[t],d=a.ConverterHelper.cloneSpreadJSStyle(e),d.parentName=e.name,d.name=h,u[t]=b.lh[e.name]=b.af.length,b.af.push(d),f=a.ConverterHelper.toStringStyle(e),n[f]!==h&&(p=S[n[f]],p&&(b.lh[p.name]=b.lh[e.name],p.added=!0));for(Object.keys(b.vh).forEach(function(e){b.lh[e]===h&&(b.lh[e]=u[b.vh[e]])}),m=i.ga._(w.namedStyles,"Normal"),g=a.ConverterHelper.toStringStyle(m),t=0,r=o.length;t<r;t++)s=o[t],s.added||(s.Ei===g?b.lh[s.name]=0:(b.lh[s.name]=b.af.length,b.af.push(s)));Object.keys(l).forEach(function(e){b.lh[e]=b.lh[l[e]]})},e.prototype.isSameStyleInfo=function(e,t,r,i){if(!e&&!t)return!0;if(!e||!t)return!1;var n,o;return e.Fi||(e.Fi={Gi:a.ConverterHelper.toExtendedFormat(e,this)}),n=e.Fi.Gi,t.Fi||(t.Fi={Gi:a.ConverterHelper.toExtendedFormat(t,this)}),o=t.Fi.Gi,n.equals(o,r,i)},e.prototype.getEqualStyle=function(e,t){var r,i;for(r=0;r<t.length;r++)if(i=t[r],this.isSameStyleInfo(e,i,!0,!0))return i;return m},e.prototype.Di=function(t,r,i){var n,a,o,l,s,c;function u(e){var t,r,i="",n=Object.getOwnPropertyNames(e);for(t=0;t<n.length;t++)r=n[t],A(e[r])?i+=r+":"+JSON.stringify(e[r])+"_":"name"!==r&&(i+=r+":"+e[r]+"_");return i}if(t)for(n={},a=0,o=t.length;a<o;a++)l=t[a],s=l.name,r[s]||(r[s]={},E(s)||k(s)||(s.indexOf(g)>=0?i.push(l):(c=u(l),n.hasOwnProperty(c)?this.vh[l.name]=n[c]:(this.af.push(l),this.th.push(l),this.vh[l.name]=this.af.length-1,e.Bi[l.name]||(n[c]=this.af.length-1)))))},e.prototype.ji=function(e,t,r){var i=e.data,n=m;return i?(t<0&&r>=0?n=i.columnDataArray&&i.columnDataArray[r]?i.columnDataArray[r].style:m:t>=0&&r<0?n=i.rowDataArray&&i.rowDataArray[t]?i.rowDataArray[t].style:m:t>=0&&r>=0&&(n=i.dataTable&&i.dataTable[t]&&i.dataTable[t][r]?e.data.dataTable[t][r].style:m),n):m},e.prototype.Hi=function(){var e,t,r,n=this.Ne,a=m;for(e in n.sheets)if(n.sheets.hasOwnProperty(e)&&(t=n.sheets[e],t&&t.theme)){a=t.theme;break}return a?x(a)?a:(r=a.name,i.StringEx.O(r)?m:("OFFICE"===r.toUpperCase()&&(r="Office Theme"),new o.ExcelTheme(r,this.Ii(a),this.Ji(a)))):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 o.ColorScheme(e.themeColor.name,t)},e.prototype.Ji=function(e){var t=_e(e.headingFont),r=_e(e.bodyFont),i=new o.ThemeFonts([new o.RunFormatting(0,t)],[]),n=new o.ThemeFonts([new o.RunFormatting(0,r)],[]);return new o.FontScheme(e.name,i,n)},e.prototype.Ki=function(e){return e=Math.min(e,n.ExcelConstants.vb-1),i.IndexHelper.T(e)},e.prototype.Li=function(e,t){var r,i=[],a=new n.DefaultContentType;return a.extension=n.XFileConstants.Eb,a.contentType=n.XFileConstants.Fb,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.Gb,a.contentType=n.XFileConstants.Hb,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.nc,a.contentType=n.XFileConstants.pc,i.push(a),t&&(a=new n.DefaultContentType,a.extension=n.XFileConstants.oc,a.contentType=n.XFileConstants.kc,i.push(a)),a=new n.DefaultContentType,a.extension=n.XFileConstants.qc,a.contentType=n.XFileConstants.sc,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.tc,a.contentType=n.XFileConstants.uc,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.vc,a.contentType=n.XFileConstants.wc,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.zc,a.contentType=n.XFileConstants.Ac,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.Bc,a.contentType=n.XFileConstants.Cc,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.Dc,a.contentType=n.XFileConstants.Ec,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.xc,a.contentType=n.XFileConstants.yc,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.Fc,a.contentType=n.XFileConstants.Gc,i.push(a),a=new n.DefaultContentType,a.extension=n.XFileConstants.Hc,a.contentType=n.XFileConstants.Ic,i.push(a),r=this.Lh(i,e),r?i: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,n=this,a=[],l=n.Ne,s=l.sheets&&l.sheets[e],c=n.vi(s),u=Math.min(s.rowCount-1,c.length),d=n.Oi(s.rowOutlines);for(t=0;t<=u;t++)c[t]?(r=n.Pi(s,t,d),(r||r.collapsed||!i.J(r.outLineLevel)&&0!==r.outLineLevel||r.visible===!1||r.formatId>=0)&&(r.customHeight=!isNaN(r.height),a.push(r))):s.rowFilter&&n.Qi(s.rowFilter,t)&&(r=new o.ExcelRow(t),r.visible=!1,a.push(r));return a},e.prototype.Qi=function(e,t){var r,i,n,a=!1;if(e&&(r=e.filteredOutRows))for(i=0;i<r.length;i++)if(n=r[i],t===n){a=!0;break}return a},e.prototype.ii=function(e,t){var r=e.rows,i=e.rowOutlines;return(!r||!r[t]||r[t].visible!==!1)&&!l.isCollapsed(t,i)},e.prototype.Pi=function(e,t,r){var n,l,s=this,c=new o.ExcelRow(t),u=e.rowOutlines,d=e.rows&&e.rows[t];return c.height=a.UnitHelper.pixelToPoint(d&&void 0!==d.size?d.size:B(e)),r>=0&&(c.collapsed=this.Ri(t,u),n=this.Si(t,u),c.outLineLevel=n===-1?0:n),t<e.rowCount&&(c.visible=s.ii(e,t)),i.J(this.xh[e.index])||(l=this.xh[e.index][t],c.formatId=i.J(l)?-1:l),c},e.prototype.vi=function(e){var t,r,i,n,a,o,l,s,c,u,d,f,p,h,m=this.Bh[e.index];if(void 0!==m)return m;if(m=[],t=e.rows,r=e.data&&e.data.rowDataArray,i=e.data&&e.data.dataTable,n=e.defaultData,t)for(a=0,o=t.length;a<o;a++)t[a]&&(m[a]=!0);if(r)for(a=0,o=r.length;a<o;a++)r[a]&&(m[a]=!0);if(i)for(l in i)i[l]&&i.hasOwnProperty(l)&&(m[l]=!0);if(n)for(l in n)n[l]&&n.hasOwnProperty(l)&&(m[l]=!0);if(s=e.tables,s&&s.forEach(function(e){var t,r=e.row,i=e.row+e.rowCount;for(t=r;t<i;t++)m[t]=!0}),c=e.spans)for(o=c.length,u=0;u<o;u++)for(d=c[u],f=d.row;f<d.row+d.rowCount;f++)m[f]=!0;if(p=e.rowOutlines&&e.rowOutlines.itemsData)for(a=0,o=p.length;a<o;a++)for(h=p[a],l=h.index;l<h.index+h.count;l++)m[l]=!0;return this.Bh[e.index]=m,m},e.prototype.Ti=function(e){var t,r,i=[],n=this.Ne,a=n.sheets&&n.sheets[e],o=this.Oi(a.columnOutlines),l=a.columnCount;for(t=0;t<l;t++)r=this.Ui(a,t,o),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)&&i.push(r);return i},e.prototype.Si=function(e,t){var r,i,n,a;if(!t||!t.itemsData)return 0;for(r=t.itemsData,i=0,n=r.length;i<n;i++)if(a=r[i],e>=a.index&&e<a.index+a.count)return a.info?a.info.level+1:1;return 0},e.prototype.Ri=function(e,t){var r,i,n,a;if(!t||!t.itemsData)return!1;for(r=t.itemsData,i=0,n=r.length;i<n;i++)if(a=r[i],e>=a.index&&e<a.index+a.count)return!!a.info&&!!a.info.collapsed;return!1},e.prototype.Ui=function(e,t,r){var n,a,s=new o.ExcelColumn(t),c=e.columnOutlines,u=e.columns&&e.columns[t];return s.width=this.calcColumnWidth(u&&void 0!==u.size?u.size:M(e)),r>=0&&t<e.columnCount&&(s.collapsed=this.Ri(t,c),n=this.Si(t,c),s.outLineLevel=n===-1?0:n),t<e.columnCount&&(u&&u.visible===!1&&(s.visible=!1),l.isCollapsed(t,c)&&(s.visible=!1)),i.J(this.yh[e.index])||(a=this.yh[e.index][t],s.formatId=i.J(a)?-1:a),s},e.prototype.Oi=function(e){var t,r,i,n;if(!e||!e.itemsData)return-1;for(t=-1,r=0,i=e.itemsData.length;r<i;r++)n=e.itemsData[r],n.info&&n.info.level>t&&(t=n.info.level);return t},e.prototype.Wi=function(e){var t,r,i=this.Ne,n=i.sheets&&i.sheets[e],a=0,o=0,l=-1,s=n.rowOutlines;return s&&(l=this.Oi(s)),l!==-1&&(a=l+2),t=-1,r=n.columnOutlines,r&&(t=this.Oi(r)),t!==-1&&(o=t+2),{outlineLevelRow:a,outlineLevelColumn:o}},e.prototype.Xi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],i=a.UnitHelper.pixelToPoint(r.defaults?r.defaults.rowHeight:B(r)),n=!1,o=57;return n=Math.abs(o-i)>=2,{height:i,customHeight:n}},e.prototype.Vi=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e];return this.calcColumnWidth(r.defaults?r.defaults.colWidth:M(r))},e.prototype.Yi=function(e){var t,r=this.Ne,i=r.sheets&&r.sheets[e];if(i.defaults&&i.defaults.colWidth&&i.defaults._isExcelDefaultColumnWidth!==!0)return t=i.defaults?i.defaults.colWidth:M(i),this.calcColumnWidth(t)},e.prototype.calcColumnWidth=function(t){var r,i,n;return 0===t?0:(r=e.Jh(this.Ne),i=Math.round(this.Zi(r.fontForColumnWidth?r.fontForColumnWidth:r.font)),n=Math.floor((t-5)/i*100+.5)/100,Math.floor((n*i+5)/i*256)/256)},e.prototype.Zi=function(e){return this.Rf===h&&(this.Rf=a.UnitHelper.getMaxiumDigitWidth(e)),this.Rf},e.prototype.$i=function(e,t,r,a){var o,l,s,c,u,d,f,p=this.Ne,h=p.sheets&&p.sheets[e];if(!h)return!1;if(o=h.frozenRowCount,l=h.frozenColCount,r.col=h.activeCol>=0?h.activeCol:0,r.row=h.activeRow>=0?h.activeRow:0,s=o>0,c=l>0,0===a){if(!s||!c)return!1}else if(1===a){if(!c)return!1;s&&(r.col=l,r.row=0)}else if(2===a){if(!s)return!1;c&&(r.col=0,r.row=o)}if(r.col=Math.min(n.ExcelConstants.vb,r.col),r.row=Math.min(n.ExcelConstants.wb,r.row),t)if(u=void 0,h.selections)for(d=0;d<h.selections.length;d++)f=h.selections[d],A(f)&&(u=new i.Range(f.row>0?f.row:0,f.col>0?f.col:0,f.rowCount>0?f.rowCount:n.ExcelConstants.wb,f.colCount>0?f.colCount:n.ExcelConstants.vb),t.push(u));else t.push(new i.Range(r.row,r.col,1,1));return!0},e.prototype.ti=function(e,t,r){i.J(this.uh[e][t])&&(this.uh[e][t]=[]),this.uh[e][t].push(r)},e.prototype._i=function(e,t){var r,i,n;if(x(e)&&"/OADate"===e.substring(0,7)&&t&&!t.formatter){if(t.autoFormatter)return void(t.formatter=t.autoFormatter.formatCached);r=e.indexOf("("),i=e.indexOf(")"),r!==-1&&i!==-1&&(n=parseInt(e.substring(r+1,i),10),n<1?t.formatter="h:mm:ss":n>1&&(t.formatter="M/d/yyyy"))}},e.prototype.dg=function(e,t,r,n,a){var o;i.StringEx.L(n)?r&&(o=e[t]):o=this.lh[n],void 0!==o?a.formatId=o:a.formatId=-1},e.prototype.ri=function(e,t,r){i.StringEx.O(e)||(r.formula=e,r.arrayFormulaRange=t)},e.prototype.ui=function(e,t,r,n,a){var o,l,s,c,u,d,f,p;if(t.data&&t.data.dataTable&&t.data.dataTable[r]&&(o=t.data.dataTable[r][n]&&t.data.dataTable[r][n].hyperlink)){if(l={},s=this.aj(t.name),c=!1,s)for(u=0;u<s.length;u++)if(d=s[u],d.row===r&&d.col===n){l.ref=i.IndexHelper.T(d.col)+(d.row+1)+":"+i.IndexHelper.T(d.col+d.colCount-1)+(d.row+d.rowCount),c=!0;break}c||(l.ref=i.IndexHelper.T(n)+(r+1)),f="sjs://",o.url&&(o.url.substring(0,f.length)===f?(l.location=i.Util.oa(o.url.replace(f,"")),p=t.data.dataTable[r][n].value,"string"==typeof p&&(l.display=i.Util.oa(p))):l.url=i.Util.oa(o.url)),o.tooltip&&(l.tooltip=i.Util.oa(o.tooltip)),l["xr:uid"]=i.Ha(),a[t.name]||(a[t.name]=[]),a[t.name].push(l)}},e.prototype.pi=function(e,t){var r=0;if(i.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:x(e)&&"/OADate"===e.substring(0,7)?r=6:t?r=9:x(e)?r=2:(r=2,e=""+e)}return{value:e,cellType:r}},e.prototype.wi=function(e,t){var r,i,n=this;return A(t)?a.ConverterHelper.cloneSpreadJSStyle(t):x(t)?C.test(t)?(r=t.indexOf(g),i=n.xi(e,t.substring(r)),a.ConverterHelper.cloneSpreadJSStyle(n.af[n.lh[i]])):{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 n,a=this;r&&(r=a.wi(e,r),i.ga.ca(t,r,!0),r&&r.parentName&&(r.parentName=a.xi(e,r.parentName),n=a.af[a.lh[r.parentName]],i.ga.ca(t,n)))},e.prototype.cj=function(e,t){i.J(t.linkColor)?t.linkColor===h&&e.foreColor||(e.foreColor="hyperlink"):e.foreColor=t.linkColor,i.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,n,a,o,l,s,c){var u,d,f=this,p=e.data,g=f.ji(e,t,r),b=m,w=m,C=p&&p.dataTable&&p.dataTable[t]&&p.dataTable[t][r]&&p.dataTable[t][r].hyperlink,S=C||x(c)&&"/OADate"===c.substring(0,7)||c!==m&&void 0!==c&&(a||o),y=h;return T(g)&&T(o)&&T(a)&&!S&&(y=""+g+"|"+a+"|"+o),y&&f.sh[y]?(n[s]=f.sh[y].styleIndex,f.sh[y]):(g?b=f.wi(e,g):S&&(b={}),b&&(b.parentName&&(b.parentName=f.xi(e,b.parentName),u=f.af[f.lh[b.parentName]]||f.af[f.vh[b.parentName]],i.ga.ca(b,u)),f.yi(e,b,o),f.yi(e,b,a),f.yi(e,b,l),C&&f.cj(b,C),f._i(c,b),i.ga.ba(b)?b=m:(d=n[s]=f.zi(b),b.parentName&&f.isSameStyleInfo(f.af[f.lh[b.parentName]],b,!0)&&(w=b.parentName),b.name&&f.isSameStyleInfo(f.af[f.lh[b.name]],b,!0)&&(w=b.name),y&&(f.sh[y]={styleIndex:d,styleName:w,styleInfo:b}))),{styleName:w,styleInfo:b})},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)&&i.ga.fa(r[t],e))return t;return e.name=h,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 i,n,a,o=0;if(e)for(i in e)if(e.hasOwnProperty(i))for(n in e[i])parseInt(n,10)>o&&(o=parseInt(n,10));if(r)for(i in r)if(r.hasOwnProperty(i))for(n in r[i])parseInt(n,10)>o&&(o=parseInt(n,10));return a=t.tables,a&&a.forEach(function(e){e.col+e.colCount>o&&(o=e.col+e.colCount)}),o},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,i,n){var a=m;if(i>=0&&i<t&&(a=e[i]),!a)return-1;for(n++;n>=0&&n<r&&!a[n];)n++;return n<r?n:-1},e.prototype.mi=function(e,t){var r,i,n=[],a=e.columnCount;if(!e.data||!e.data.columnDataArray)return n;for(r=0;r<t;r++)r<a?(i=this.ji(e,-1,r),n.push(i)):n.push(m);return n},e.prototype.gj=function(){var e,t,r,i,n,o,l=this,s=[],c={count:0};for(e=0,t=l.af.length;e<t;e++)r=l.af[e],i=a.ConverterHelper.toExtendedFormat(r,l),r.name&&r.name.indexOf(g)<0?(c[r.name]||(c[r.name]=c.count,c.count++),i.isStyleFormat=!0):(n=0,void 0!==c[r.parentName]&&c[r.parentName]!==m&&(n=c[r.parentName],o=s[n],!i.applyNumberFormat&&o&&(o.numberFormat?i.numberFormat=o.numberFormat:void 0!==o.numberFormatIndex&&(i.numberFormatIndex=o.numberFormatIndex))),i.parentFormatID=n),s.push(i);return s},e.prototype.hj=function(){var t=a.ConverterHelper.cloneSpreadJSStyle(e.Jh(this.Ne)),r=a.ConverterHelper.toExtendedFormat(t,this);return r.parentFormatID=0,r},e.prototype.ij=function(){var t,r,i,n,o,l,s,c=this,u=[],d=m;for(t=0,r=c.th.length;t<r;t++)if(i=c.th[t],"Normal"===i.name){n=new a.ExcelStyle,n.name="Normal",n.format(a.ConverterHelper.toExtendedFormat(i,c)),n.format().isStyleFormat=!0,n.builtInStyle=0,d=n,c.Ke=i;break}for(d||(o=new a.ExcelStyle,o.name="Normal",o.format(a.ConverterHelper.toExtendedFormat(e.Jh(this.Ne),c)),o.format().font.fontSize=14.67,o.format().isStyleFormat=!0,o.builtInStyle=0,u.push(o)),t=0,r=c.th.length;t<r;t++)l=c.th[t],l.name&&(void 0!==e.Bi[l.name]?(n=new a.ExcelStyle,n.name=l.name,n.format(a.ConverterHelper.toExtendedFormat(l,c)),n.format().isStyleFormat=!0,n.builtInStyle=e.Bi[l.name],("RowLevel_"===l.name.substring(0,9)||"ColLevel_"===l.name.substring(0,9))&&l.name.length>9&&(n.outLineLevel=parseInt(l.name.substring(9),10)-1),u.push(n)):(s=new a.CustomExcelStyle,s.name=l.name,s.format(a.ConverterHelper.toExtendedFormat(l,c)),s.format().isStyleFormat=!0,u.push(s)));return u},e.prototype.jj=function(){var e,t,r=[],i=this.Ne.sheets;for(e in i)i.hasOwnProperty(e)&&(t=i[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?d(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,i=r.sheets&&r.sheets[e],n={showGridLine:!0,showRowColHeaders:!0,gridlineColor:m,zoom:1};return i?(!i.gridline||i.gridline.showVerticalGridline!==!1&&i.gridline.showHorizontalGridline!==!1||(n.showGridLine=!1),i.rowHeaderVisible===!1&&i.colHeaderVisible===!1&&(n.showRowColHeaders=!1),i.gridline&&i.gridline.color&&(n.gridlineColor=a.ColorHelper.toExcelIndexedColor(d(i.gridline.color,4291876837))),void 0!==i.topCellIndex&&void 0!==i.leftCellIndex&&(t={row:i.topCellIndex,col:i.leftCellIndex},n.topLeftCell=t),n.zoom=i.zoomFactor,n):n},e.prototype.pj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],i={frozenRowCount:0,frozenColCount:0,frozenTopRow:0,frozenLeftCol:0};return r?(i.frozenRowCount=r.frozenRowCount||0,i.frozenColCount=r.frozenColCount||0,i.frozenTopRow=r.frozenTopRow||0,i.frozenLeftCol=r.frozenLeftCol||0,i):i},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,i,n=this.Ne,a=n.sheets&&n.sheets[e],o=a.protectionOptions,s={};for(i in o)o.hasOwnProperty(i)&&(r=o[i],r&&"allowSelectLockedCells"===i||r&&"allowSelectUnlockedCells"===i||r&&"allowEditObjects"===i||(s[l.fromProtectionOptions[i]?l.fromProtectionOptions[i]:i]=o[i]));return t&&!o&&(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,i,n,a=[];if(this.Ne.names)for(t=0;t<this.Ne.names.length;t++)e=this.Ne.names[t],a.push({name:e.name,localSheetId:-1,formula:e.formula,comment:e.comment});r=this.Ne.sheets;for(i in r)if(r.hasOwnProperty(i)&&(n=r[i],n.names))for(t=0;t<n.names.length;t++)e=n.names[t],a.push({name:e.name,localSheetId:n.index,formula:e.formula,comment:e.comment});return a},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,n,a,o,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(n=r.data.defaultDataNode.style,a=this.prototype.wi(r,n),o=a.parentName;o&&(l=pe(o,e,r));)i.ga.ca(a,l),o=l.parentName;return i.ga.ca(a,s),a}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=[],i=this.Ne;if(e)return i.sheets[e].pivotTables;for(t in i.sheets)i.sheets[t].pivotTables&&(r=r.concat(i.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,i,n=e.rowFilter,o=this;
20
20
  if(n)return t=[],r=n.filteredColumns,i=n.filterItemMap,i&&r&&r.length>0&&i.forEach(function(i){var l,s;r.indexOf(i.index)<0||(l=i.conditions[0],3===l.conType&&(s=0===l.compareType,t.push({autoFilterColumnId:i.index-G(e,n.range).col,colorFilter:{cellColor:s,dxfId:o.Yh({isColorFilter:!0,fill:a.ColorHelper.toExcelBackColor(l.expected,s)})}})))}),t},e.prototype.gi=function(e){var t,r,n=m;return e&&(t=e.sortInfo,!t||i.J(t.ascending)||i.J(t.index)||(n={range:new i.Range(e.range.row,t.index,e.range.rowCount,1),descending:!t.ascending},t.color!==h&&(r=t.isBackColor,n.isBackColor=r,"{"===t.color[0]&&(t.color=JSON.parse(t.color)),n.dxfid=this.Yh({isColorFilter:!0,fill:a.ColorHelper.toExcelBackColor(t.color,r)})))),n},e.prototype.Aj=function(e,t){var r=e.autoFilter,n={range:"A1",filterColumns:[]},a=r.filterItemMap;return a&&a.forEach(function(e){var r,a,o,l,s;e&&(r=e.conditions,a=r[0],o={autoFilterColumnId:0},l=se(a,t),i.J(l)||(s=l.filterType,1===s?o.top10=l:2===s?o.dynamicFilter=l:4===s?o.customFilters=l:3===s&&(o.filters=l),n.filterColumns.push(o)))}),n},e.prototype.Bj=function(e,t,r){var n,a,o,l,s,c,u,d,f,p,h,g,b,w,C,S,y,v,x,T,A,k,E=this,F=E.Ne,I=F.sheets&&F.sheets[e];if(i.J(t)||i.J(t.range))return m;if(n=t.range,a=t.adjustRangeForFrozen?I.frozenRowCount:0,o={range:G(I,n,a),filterColumns:[]},I.Zh&&I.Zh.length>0&&(o.filterColumns=I.Zh),l=t.filteredColumns,s=t.filterItemMap,s&&l&&l.length>0&&s.forEach(function(e){var t,r,a,s,c,u;if(!(e.index<n.col||e.index>=n.col+n.colCount||l.indexOf(e.index)<0)){for(t=e.conditions,r=t[0],a=1;a<t.length;a++)r={conType:0,compareType:0,item1:r,item2:t[a]};r&&(s={autoFilterColumnId:e.index-o.range.col},c=le(I,r,new i.Range(o.range.row+1,o.range.col,o.range.rowCount-1,1)),i.J(c)||(u=c.filterType,1===u?s.top10=c:2===u?s.dynamicFilter=c:3===u?s.filters=c:4===u&&(s.customFilters=c),o.filterColumns.push(s)))}}),c=E.aj(e),c&&c.length>0){for(u=n.row-1,d=n.col,f=n.colCount,p=o.filterColumns.length>0,h=[],g=0,b=c;g<b.length;g++)if(w=b[g],C=w.row,S=w.rowCount,y=w.col,v=w.colCount,y>=d&&y+v<=f&&(u===C||u===C+S-1))for(x=y;x<y+v-1;x++)T=x-d,p?(A=o.filterColumns[x],A&&A.autoFilterColumnId===T?A.showButton=0:(k={autoFilterColumnId:T,showButton:0},h.push(k))):(k={autoFilterColumnId:T,showButton:0},h.push(k));h.length>0&&(o.filterColumns=o.filterColumns.concat(h))}return o.sortInfo=r,o},e.prototype.Cj=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],i=m;return r.rowFilter&&(i=r.rowFilter.autoFilterSortInfo),this.Bj(e,r.rowFilter,i)},e.prototype.fi=function(e){var t,r=[],i=this.Ne;if(e)return i.sheets[e].tables;for(t in i.sheets)i.sheets[t].tables&&(r=r.concat(i.sheets[t].tables));return r},e.prototype.Dj=function(e){var t,r,i,n=this.Ne.sheets[e];if(!n.slicers)return[];for(t=[],r=0;r<n.slicers.length;r++)i=n.slicers[r],i.type&&"table"!==i.type||t.push(l.convertToExcelSlicer(n,i));return t},e.prototype.Ej=function(e,t){var r,i,n,a=this.Ne.sheets[e];if(!a.slicers)return[];for(r=[],i=0;i<a.slicers.length;i++)n=a.slicers[i],n.type===t&&r.push(l.convertToExcelSlicer(a,n));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=[],i=e&&e.sp||[];return i.forEach(function(e){e.control?t.push({sp:e}):3===e.shapeType&&t.push.apply(t,r(e))}),t},i=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},n=i(this.Gj(e)||[]);return n.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},n.sort(function(e,r){return t(e)-t(r)}),n},e.prototype.Ij=function(e){var t=this.Ne,r=t.sheets&&t.sheets[e],i=this.Dj(e),n=this.Ej(e,"pivot"),a=this.Ej(e,"timeline"),o=i.concat(n).concat(a),l=this.yj(r),s=this.Fj(r),c=this.Gj(r),u=this.Hj(r),d=0;return[o,l,s,c].forEach(function(e){e&&(d+=e.length)}),{slicers:o,pictures:l,charts:s,shapes:c,controlShapes:u,withDrawingObjects:d>0}},e.prototype.Jj=function(e){var t,r=this.Ne,i=r.sheets&&r.sheets[e],n=[],a=i.validations;return a&&(t=this.jj(),he(a,n,e,t)),n},e.prototype.Kj=function(e){var t={top:75,bottom:75,left:70,right:70,header:30,footer:30},r=this.Ne,i=r.sheets&&r.sheets[e],n=i.printInfo,a=n&&n.margin;return a?{bottom:Te(a.bottom,t.bottom),top:Te(a.top,t.bottom),left:Te(a.left,t.bottom),right:Te(a.right,t.bottom),header:Te(a.header,t.bottom),footer:Te(a.footer,t.bottom)}:m},e.prototype.Lj=function(e){var t,r=this.Ne,i=r.sheets&&r.sheets[e],n=i.printInfo;if(n)return t=n.centering,{horizontalCentered:1===t||3===t,verticalCentered:2===t||3===t,printGridLine:n.showGridLine,printRowColumnsHeaders:2===n.showRowHeader&&2===n.showColumnHeader}},e.prototype.Mj=function(e,t){var r,n,a,o,l,s,c,u,d,f,p,h,g,b,w,C,S;function y(e,t,r){return e=e||"",t=t||"",r=r||"","&L"+e+"&C"+t+"&R"+r}function v(e,t,r){if(e[t]&&e[t][r]){var i=e[t][r];return y(i.left,i.center,i.right)}}return r=this.Ne,n=r.sheets&&r.sheets[e],(a=n.printInfo)?(o={},l=a.fitPagesTall,s=a.fitPagesWide,i.J(l)||l===-1||(o.useSmartPrint=!0,o.smartPrintPagesHeight=Math.max(0,l)),i.J(s)||s===-1||(o.useSmartPrint=!0,o.smartPrintPagesWidth=Math.max(0,s)),t||(a.paperSize&&(c=a.paperSize.kind,0!==c&&(o.paperSizeIndex=c)),o.copies=1,i.J(a.firstPageNumber)||(o.useCustomStartingPage=!0,o.firstPageNumber=a.firstPageNumber),o.orientation=2===a.orientation?2:1,o.pageOrder=1===a.pageOrder?1:2,o.zoomFactor=parseFloat(a.zoomFactor),o.showColor=!a.blackAndWhite,o.advancedHeadFooterSetting={},u=o.advancedHeadFooterSetting,d=a.pageHeaderFooter,f=void 0,d?(u.headerFooterDifferentFirstPage=a.differentFirstPage,f=v(d,"first","header"),f&&(u.headerFirstPage=f),f=v(d,"first","footer"),f&&(u.footerFirstPage=f),p=a.differentOddAndEvenPages,u.headerFooterDifferentOddEvenPages=a.differentOddAndEvenPages,f=p?v(d,"odd","header"):v(d,"normal","header"),f&&(u.headerOddPage=f),f=p?v(d,"odd","footer"):v(d,"normal","footer"),f&&(u.footerOddPage=f),f=v(d,"even","header"),f&&(u.headerEvenPage=f),f=v(d,"even","footer"),f&&(u.footerEvenPage=f)):(h=y(a.headerLeft,a.headerCenter,a.headerRight),g=y(a.footerLeft,a.footerCenter,a.footerRight),o.advancedHeadFooterSetting={headerEvenPage:h,headerOddPage:h,footerOddPage:g,footerEvenPage:g}),b=n.rows,w=[],b&&b.length>0&&b.forEach(function(e,t){e&&e.pageBreak&&w.push(t)}),C=n.columns,S=[],C&&C.length>0&&C.forEach(function(e,t){e&&e.pageBreak&&S.push(t)}),w.length>0&&(o.rowBreakLines=w),S.length>0&&(o.columnBreakLines=S)),o):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],i=r.shapes,n=[];return i&&i.length>0&&this.Qj(i,n),n},e.prototype.Qj=function(e,t){var r=this;e.forEach(function(e,i){var n,a,o,l;1===e.shapeType?(n=void 0,e.shapeData&&e.shapeData.pic&&e.shapeData.pic.cameraTool?n=e.shapeData.pic:e.cameraTool===!0&&(n=e),n&&(a=i+1,o=Re("Picture_x0020_"+a,n.src),o.style=n.vmlStyle,o.anchor=n.anchor,o.cellRange=n.cellRange,o.spid="_x0000_s10"+n.spid,t.push(o))):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,i,n,a,o,l,s=this.Ne,c=s.sheets&&s.sheets[e],u=c.printInfo,d=[];return u&&(t=u.pageHeaderFooter,t?(r=t.normal,i=t.odd,i?(n=i.header||{},n.leftImage&&d.push(Re("LH",n.leftImage)),n.centerImage&&d.push(Re("CH",n.centerImage)),n.rightImage&&d.push(Re("RH",n.rightImage)),a=i.footer||{},a.leftImage&&d.push(Re("LF",a.leftImage)),a.centerImage&&d.push(Re("CF",a.centerImage)),a.rightImage&&d.push(Re("RF",a.rightImage))):r&&(n=r.header||{},n.leftImage&&d.push(Re("LH",n.leftImage)),n.centerImage&&d.push(Re("CH",n.centerImage)),n.rightImage&&d.push(Re("RH",n.rightImage)),a=r.footer||{},a.leftImage&&d.push(Re("LF",a.leftImage)),a.centerImage&&d.push(Re("CF",a.centerImage)),a.rightImage&&d.push(Re("RF",a.rightImage))),o=t.even,o&&(n=o.header||{},n.leftImage&&d.push(Re("LHEVEN",n.leftImage)),n.centerImage&&d.push(Re("CHEVEN",n.centerImage)),n.rightImage&&d.push(Re("RHEVEN",n.rightImage)),a=o.footer||{},a.leftImage&&d.push(Re("LFEVEN",a.leftImage)),a.centerImage&&d.push(Re("CFEVEN",a.centerImage)),a.rightImage&&d.push(Re("RFEVEN",a.rightImage))),l=t.first,l&&(n=l.header||{},n.leftImage&&d.push(Re("LHFIRST",n.leftImage)),n.centerImage&&d.push(Re("CHFIRST",n.centerImage)),n.rightImage&&d.push(Re("RHFIRST",n.rightImage)),a=l.footer||{},a.leftImage&&d.push(Re("LFFIRST",a.leftImage)),a.centerImage&&d.push(Re("CFFIRST",a.centerImage)),a.rightImage&&d.push(Re("RFFIRST",a.rightImage)))):(u.headerLeftImage&&d.push(Re("LH",u.headerLeftImage)),u.headerCenterImage&&d.push(Re("CH",u.headerCenterImage)),u.headerRightImage&&d.push(Re("RH",u.headerRightImage)),u.footerLeftImage&&d.push(Re("LF",u.footerLeftImage)),u.footerCenterImage&&d.push(Re("CF",u.footerCenterImage)),u.footerRightImage&&d.push(Re("RF",u.footerRightImage)))),d},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=v},"./src/datamodel/datetime-helper.ts":function(e,t,r){"use strict";var i,n,a,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=null,a=void 0;function l(e){var t=e.getTimezoneOffset();return t===-485&&(t=-485-43/60),t}o=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===a||e===n?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,i=new Date(864e5*r),n=r>=0?1:-1,a=l(i),o=(864e5*e*1440+n-3181192704e6+864e5*a)/1440,s=new Date(o),c=a>=0?1:-1,u=new Date(o+36e5*c),d=l(u);if(a!==d)if(t=new Date(o+60*(d-a)*1e3),a>d){if(c===-1||d===l(s))return t=999===t.getMilliseconds()?new Date(t.valueOf()+1):t}else if(a<d&&(1===c||d===l(s)))return t=999===t.getMilliseconds()?new Date(t.valueOf()+1):t;return s=999===s.getMilliseconds()?new Date(s.valueOf()+1):s},e.vf=function(t){var r,i,a,o,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,i=0,a=!1,o=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)a?i++:(0===l||t.length>0&&"\\"!==t[l-1])&&(a=!0,r=l,i=1);else{if(a=!1," "===s&&o)return!0;0!==i&&(c=t.substring(r,r+i),r=l,i=0,o=o===n?e.Uj(c):o&&e.Uj(c))}}return 0!==i&&l===t.length&&(c=t.substring(r,r+i),o=o===n?e.Uj(c):o&&e.Uj(c)),!!o},e.Uj=function(e){var t,r,n,o,l,s,c,u,d;if(i.StringEx.O(e))return!1;for(t=[],r="",n=0,o=e.length;n<o;n++)l=e[n],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},n=0,c=t.length;n<c;n++){if(u=t[n],d=s[u.key],d===a)return!1;if(u.count>d)return!1}return!0},e}(),t.DateTimeHelper=o},"./src/datamodel/excel-helper.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/datamodel/excel-style.ts"),a=r("./src/datamodel/chart-model.ts"),o=r("./src/common/excel-types.ts"),l=null;function h(e,t,r){var i,n=e.defaults.colWidth,a=e.columns,o=0,s=a?l:n;for(i=t;i<r;i++)o+=s||m(a,i,n,e.columnOutlines);return o}function m(e,t,r,i){var n=e[t];return n?i&&y(t,i)?0:n.visible===!1?0:n.size:r}function g(e,t,r){var i,n=e.defaults.rowHeight,a=e.rows,o=0,s=a?l:n;for(i=t;i<r;i++)o+=s||b(a,i,n,e.rowOutlines);return o}function b(e,t,r,i){var n=e[t];return n?i&&y(t,i)?0:n.visible===!1?0:n.size:r}function w(e,t){for(var r,i,n=e.defaults.colWidth,a=e.columns,s=0,c=0,u=a&&a.length||o.ExcelConstants.vb,d=a?l:n;s<t&&c<u;)r=d||m(a,c,n),s+=r,c++;return i=s-t,i>0?(c--,i=r-i):i=t-s,{col:c,colOffset:i}}function C(e,t){for(var r,i,n=e.defaults.rowHeight,a=e.rowsVisibleInfo||e.rows,s=0,c=0,u=a&&a.length||o.ExcelConstants.wb,d=a?l:n;s<t&&c<u;)r=d||b(a,c,n),s+=r,c++;return i=s-t,i>0?(c--,i=r-i):i=t-s,{row:c,rowOffset:i}}function S(e,t){var r=t.x,i=t.y,n={},a={},o=C(e,i);return x(o,n,["row","rowOffset"]),o=w(e,r),x(o,n,["col","colOffset"]),o=C(e,i+t.height),x(o,a,["row","rowOffset"]),o=w(e,r+t.width),x(o,a,["col","colOffset"]),{startPoint:n,endPoint:a}}function y(e,t){if(!t)return!1;if(t.items)return t.items[e]&&t.items[e].viewCollapsed;if(!t.itemsData)return!1;t.collapseIndexMap||v(t);var r=t.collapseIndexMap;return!!r[e]}t.isCollapsed=y;function v(e){var t,r,i,n,a,o,l,s=e.itemsData,c=e.collapseIndexMap={},u=!1;if(0===e.direction){for(t=s.length-1;t>=0;t--)if(i=s[t],i&&1===i.count&&i.info&&i.info.collapsed){for(n=i.index+i.count,a=t+1;a<s.length;a++)o=s[a],o&&o.info&&o.info.level>i.info.level&&o.index===n&&(n=o.index+o.count);for(l=i.index+1;l<n;l++)c[l]=!0}}else for(r=s.length,t=0;t<r;t++)if(i=s[t],i&&1===i.count&&i.info&&i.info.collapsed){if(n=i.index-1,n<0&&i.info.level===-1)break;for(a=t-1;a>=0;a--)o=s[a],o&&o.info&&o.info.level>i.info.level&&o.index+o.count-1===n&&(n=o.index-1);for(l=n+1;l<i.index;l++)c[l]=!0}}s=7;function x(e,t,r){r.forEach(function(r){void 0!==e[r]&&(t[r]=e[r])})}function T(e,t){var r,a,o,c,u,d,f,p,m,b,w,C,S,y,v,T,A={};return x(t,A,["fontSize","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode"]),r=e.forzenRowCount||0,a=e.forzenColumnCount||0,o=t.row,c=t.col,u=t.anchor,d=h(e,a,c+1),f=g(e,r,o),A.rowIndex=o-r,A.colIndex=c-a,u?(p=h(e,a,u[0])+u[1]-s,m=g(e,r,u[2])+u[3]-s,b=h(e,a,u[4])+u[5]+s,w=g(e,r,u[6])+u[7]+s,A.location={x:p-d,y:m-f},A.width=b-p,A.height=w-m,z(e,u)):(A.location={x:n.UnitHelper.pointToPixel(t.marginLeft)-d-s,y:n.UnitHelper.pointToPixel(t.marginTop)-f-s},A.width=k(t.width)+2*s,A.height=k(t.height)+2*s,z(e,l,{x:A.location.x+d,y:A.location.y+f,width:A.width,height:A.height})),C=t.foreColor,C&&C!==n.ExcelColor.EmptyColor&&(A.foreColor=n.ColorHelper.toRGBColor(C)),C=t.backColor,C&&(A.backColor=C.split(" ")[0]),C=t.borderColor,C&&(A.borderColor=C.split(" ")[0]),S=t.borderWidth,S&&(A.borderWidth=k(S)),A.borderStyle=F(t.dashStyle,t.lineStyle),y=t.zIndex,i.J(y)||(A.zIndex=y),y=t.opacity,i.J(y)||(A.opacity=y),t.autoSize&&(A.autoSize=!0),A.locked=t.locked!==!1,A.lockText=t.lockText!==!1,A.dynamicSize=t.dynamicSize!==!1,A.dynamicMove=t.dynamicMove!==!1,y=t.inset,y&&(v=[0,0,0,0],y.trim().split(",").forEach(function(e,t){var r=e||["0.1in","0.05in"][t%2];v[t]=E(r)}),A.padding={left:v[0],top:v[1],right:v[2],bottom:v[3]}),T=["left","center","right"].indexOf(t.hAlign),T!==-1&&(A.horizontalAlign=T),A}t.convertFromExcelComment=T;function A(e,t){var r,a,o,l,c,u,d=t.rowIndex,f=t.colIndex,p=t.location||{x:9,y:-18},m={row:d,col:f};return i.J(t.width)&&(t.width=160),i.J(t.height)&&(t.height=100),t.fontFamily=t.fontFamily||"Arial",t.borderColor=t.borderColor||"black",t.backColor=t.backColor||"#FFFFE1",x(t,m,["zIndex","opacity","fontStyle","fontFamily","fontWeight","textDecoration","text","autoSize","dynamicMove","dynamicSize","locked","lockText","displayMode","backColor","borderColor"]),r=h(e,0,f+1),a=g(e,0,d),m.marginLeft=n.UnitHelper.pixelToPoint(r+p.x+s),m.marginTop=n.UnitHelper.pixelToPoint(a+p.y+s),m.width=n.UnitHelper.pixelToPoint(t.width-2*s)+"pt",m.height=n.UnitHelper.pixelToPoint(t.height-2*s)+"pt",o=t.fontSize||"9pt",o.indexOf("px")!==-1?m.fontSize=n.UnitHelper.pixelToPoint(parseFloat(o)):m.fontSize=o.replace("pt",""),l=t.foreColor,m.foreColor=l&&n.ColorHelper.toExcelColor(l),m.borderWidth=n.UnitHelper.pixelToPoint(t.borderWidth||1)+"pt",c=I(t.borderStyle),m.dashStyle=c.dashStyle,m.lineStyle=c.lineStyle,u=t.padding,u&&(m.inset=[n.UnitHelper.pixelToPoint(u.left)+"pt",n.UnitHelper.pixelToPoint(u.top)+"pt",n.UnitHelper.pixelToPoint(u.right)+"pt",n.UnitHelper.pixelToPoint(u.bottom)+"pt"].join(",")),m.hAlign=["Left","Center","Right"][t.horizontalAlign||0]||"Left",m.visibility=1===t.displayMode?"visible":"hidden",m}t.convertToExcelComment=A;function k(e){return e?n.UnitHelper.pointToPixel(parseFloat(e.replace("pt",""))):0}function E(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())),n.UnitHelper.pointToPixel(t)}function F(e,t){if(!i.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 I(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 P(e,t){if(e){var r=e.startPoint,i=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=i.row,t.endRowOffset=i.rowOffset,t.endRowOffsetEmu=i.rowOffsetEmu,t.endColumn=i.col,t.endColumnOffset=i.colOffset,t.endColumnOffsetEmu=i.colOffsetEmu}}c=1e5;function D(e){return{l:e.l/c,t:e.t/c,r:e.r/c,b:e.b/c}}function R(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 L(e,t,r){var i,n=U(r,t.name,"picture"),a={name:n,alt:t.descr};return x(t,a,["src","isVisible","locked","rot"]),ue(t.anchor,e,a,t.xfrm),J(t.pictureFormat,a),i=t.srcRect,i&&(a.srcRect=D(i)),a}t.convertFromExcelPicture=L;function _(e,t){return t.twoCellAnchor=Z(e,t),t}t.convertToExcelSlicer=_;function N(e,t){switch(e){case"solid":return"dbl"===t?"double":"solid";case"dot":case"sysDot":return"dotted"}return"dashed"}function B(e){return!e||"hidden"===e}function M(e){switch(e){case"dotted":return"dot";case"dashed":return"dash";case"double":return"dbl"}return"solid"}function O(e,t){var r,i={},a=t.src;return G(a,i),x(t,i,["name","locked","rot"]),i.descr=t.alt,i.twoCellAnchor=Z(e,t,!0),i.hidden=t.isVisible===!1,i.fillColor=n.ColorHelper.toExcelColor(t.backColor),i.lineBorder={width:B(t.borderStyle)?0:t.borderWidth,color:n.ColorHelper.toExcelColor(t.borderColor),style:M(t.borderStyle),noFill:t.noFill},r=t.srcRect,r&&(i.srcRect=R(r)),i}t.convertToExcelPicture=O,u=";base64,";function G(e,t){var r,i=e.indexOf(u);i>0&&(t.base64Image=e.substr(i+u.length),r=e.substr(0,i).split("/").pop(),"x-icon"===r&&(r="png"),t.imageType=r)}t.getPictureInfo=G;function H(e){if(!e)return!1;var t={};return G(e,t),"svg+xml"===t.imageType}t.isSVGPicture=H;function U(e,t,r){function i(e){return e.name===this.name}function n(t){var r=i.bind({name:t});return void 0!==e.filter(r)[0]}t=t||r;for(var a=t,o=1;n(a);)a=t+"_"+o,o++;return a}function J(e,t){var r,i,a,o,l;return e?(r=e.fillFormat,r&&1===r.fillFormatType&&(t.backColor=n.ColorHelper.toRGBColor(r.color)),i=e.lineFormat,void(i&&(t.borderWidth=i.width,a=i.fillFormat,a&&1===a.fillFormatType?t.borderColor=n.ColorHelper.toRGBColor(a.color):a&&0===a.fillFormatType&&(t.noFill=!0),o=i.lineDashType,o&&(l=i.compoundLineType,t.borderStyle=N(o,l))))):null}d=2;function W(e,t,r){e.rowCount<t&&(e.rowCount=t),e.columnCount<r&&(e.columnCount=r)}function V(e,t){var r=0,i=0,n=t.endPoint;n&&(r=n.row,i=n.col),r+=d,i+=d,W(e,r,i)}t.inflateWorksheetByAnchor=V;function z(e,t,r){var i,n,a;t?(i=t[6]+1,n=t[4]+1):(a=S(e,r),i=a.endPoint.row+d,n=a.endPoint.col+d),W(e,i,n)}function j(e,t,r){var i,n,a,o;return i=h(e,0,t.col)+t.colOffset,n=g(e,0,t.row)+t.rowOffset,a=h(e,0,r.col)+r.colOffset,o=g(e,0,r.row)+r.rowOffset,{x:i,y:n,width:a-i,height:o-n}}t.getBounds=j;function X(e,t){return j(e,t.startPoint,t.endPoint)}function K(e,t){var r=t.startPoint,i=h(e,0,r.col)+r.colOffset,n=g(e,0,r.row)+r.rowOffset;return{x:i,y:n,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 i=e.startPoint,n=e.endPoint,a=i.x*t,o=i.y*r,l=n.x*t,s=n.y*r;return{x:a,y:o,width:l-a,height:s-o}}function Q(e,t,r){var i=e.startPoint;return{x:i.x*t,y:i.y*r,width:e.width,height:e.height}}function Z(e,t,r){var n,a,o;return i.J(t.startRow)?S(e,{x:t.x||0,y:t.y||0,width:t.width||0,height:t.height||0}):(r&&(t=$(e,t)),n={row:t.startRow,rowOffset:t.startRowOffset||0,col:t.startColumn,colOffset:t.startColumnOffset||0},a={row:t.endRow,rowOffset:t.endRowOffset||0,col:t.endColumn,colOffset:t.endColumnOffset||0},o=ae(t.dynamicMove,t.dynamicSize),{startPoint:n,endPoint:a,editAs:o})}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,i,n,a,o,l,s,c,u,d,f=e.rowCount,p=e.columnCount,m=t.width,b=t.height,w=t.startRow,C=t.startRowOffset||0,S=t.startColumn,y=t.startColumnOffset||0,v=t.endRow,x=t.endRowOffset||0,T=t.endColumn,A=t.endColumnOffset||0,k=t.originalWidth,E=t.originalHeight,F=Math.min(m,k),I=Math.min(b,E),P=E>b?C:C+(b-E)/2,D=k>m?y:y+(m-k)/2;for(m=F,b=I,r=0,i=w,n=P,a=!1;i<f;)if(o=g(e,i,i+1),i++,r+=o,!a&&(n-=o),n<0&&!a&&(w=i-1<0?0:i-1,C=o+n,a=!0),r>b+P){v=i-1<0?0:i-1,x=o-(r-b-P);break}for(l=0,s=S,c=D,u=!1;s<p;)if(d=h(e,s,s+1),s++,l+=d,!u&&(c-=d),c<0&&!u&&(S=s-1<0?0:s-1,y=d+c,u=!0),l>m+D){T=s-1<0?0:s-1,A=d-(l-m-D);break}return t.width=m,t.height=b,t.startRow=w,t.startRowOffset=C,t.endRow=v,t.endRowOffset=x,t.startColumn=S,t.startColumnOffset=y,t.endColumn=T,t.endColumnOffset=A,t}function te(e,t){var r,i,n,a,o,l,s,c,u=e.rowCount,d=e.columnCount,f=t.width,p=t.height,m=t.startRow,b=t.startRowOffset||0,w=t.startColumn,C=t.startColumnOffset||0,S=t.endRow,y=t.endRowOffset||0,v=t.endColumn,x=t.endColumnOffset||0,T=t.originalWidth,A=t.originalHeight,k=f/p,E=T/A,F=0,I=0,P=f,D=p;if(p>0&&A>0&&k>E)P=E*p,F=C+f/2-P/2,f=P,p=1/E*f;else{if(!(f>0&&T>0&&1/k>1/E))return t;D=1/E*f,I=b+p/2-D/2,p=D,f=E*p}if(F>0){for(;w<d;)if(r=h(e,w,w+1),w++,F-=r,F<0){w--,C=F+r;break}for(i=0,n=w;n<d;)if(a=h(e,n,n+1),n++,i+=a,i>P+C){x=a-(i-P-C),v=n-1<0?0:n-1;break}}else if(I>0){for(;m<u;)if(o=g(e,m,m+1),m++,I-=o,I<0){m--,b=I+o;break}for(l=0,s=m;s<u;)if(c=g(e,s,s+1),s++,l+=c,l>D+b){y=c-(l-D-b),S=s-1<0?0:s-1;break}}return t.width=f,t.height=p,t.startRow=m,t.startRowOffset=b,t.endRow=S,t.endRowOffset=y,t.startColumn=w,t.startColumnOffset=C,t.endColumn=v,t.endColumnOffset=x,t}function re(e,t){var r,i,n,a,o,l,s=e.rowCount,c=e.columnCount,u=t.width,d=t.height,f=t.startRow,p=t.startRowOffset||0,m=t.startColumn,b=t.startColumnOffset||0,w=t.endRow,C=t.endRowOffset||0,S=t.endColumn,y=t.endColumnOffset||0,v=t.originalWidth,x=t.originalHeight;for(u=Math.min(u,v),d=Math.min(d,x),r=0,i=f;i<s;)if(n=g(e,i,i+1),i++,r+=n,r>d+p){w=i-1<0?0:i-1,C=n-(r-d-p);break}for(a=0,o=m;o<c;)if(l=h(e,o,o+1),o++,a+=l,a>u+b){S=o-1<0?0:o-1,y=l-(a-u-b);break}return t.width=u,t.height=d,t.startRow=f,t.startRowOffset=p,t.endRow=w,t.endRowOffset=C,t.startColumn=m,t.startColumnOffset=b,t.endColumn=S,t.endColumnOffset=y,t}function ie(e,t,r,i){var n=t.anchorType;return 0===n?X(e,t):1===n?K(e,t):2===n?q(t):3===n?Y(t,r,i):4===n?Q(t,r,i):null}function ne(e){var t=e.anchorType||e.editAs||0,r=!0,i=!0;return 2===t?(r=!1,i=!1):1===t&&(i=!1),{dynamicMove:r,dynamicSize:i}}function ae(e,t){var r;return e===!1&&t===!1?r=2:t===!1&&(r=1),r}function oe(e,t,r){var i={x:e.x||0,y:e.y||0,width:e.width||0,height:e.height||0};return{startPoint:{x:(i.x/t).toFixed(5),y:(i.y/r).toFixed(5)},endPoint:{x:((i.x+i.width)/t).toFixed(5),y:((i.y+i.height)/r).toFixed(5)}}}function le(e){var t,r,i;return e?(t=n.ColorHelper.toExcelColor(e),r=t.colorType(),2===r?(i=n.ColorHelper.getRGBAColorData(t),{srgbClr:{val:i.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,n,a,o,l,s,c,u,d,p,h,m,g,b,w,C,S,y,v;if(e&&!i.J(e.rot))return t=e.rot,r=e.off,n=e.ext,a=r.x,o=r.y,l=n.cx,s=n.cy,c=l/2,u=s/2,d=t*f,p=Math.sin(d),h=Math.cos(d),m=a+c,g=o+u,b=[],w=[],[{x:-c,y:-u},{x:c,y:-u},{x:-c,y:u},{x:c,y:u}].forEach(function(e){var t=se(e,p,h);b.push(t.x+m),w.push(t.y+g)}),C=Math.min.apply(null,b),S=Math.max.apply(null,b),y=Math.min.apply(null,w),v=Math.max.apply(null,w),{x:C,y:y,width:S-C,height:v-y}}function ue(e,t,r,i){var n,a,o=ce(i)||ie(t,e),l=ne(e);r.dynamicMove=l.dynamicMove,r.dynamicSize=l.dynamicSize,x(o,r,["x","y","width","height"]),0===e.anchorType?(n=i?S(t,o):e,P(n,r)):n=S(t,o),V(t,n),a=e.clientData,a&&(r.isLocked=a.fLocksWithSheet,r.canPrint=a.fPrintsWithSheet)}function de(e,t){var r,n,a,o,l,s,c,u,d,f,p;return V(e,t),a=i.Util.za(t),o=a&&a.layoutId,l=i.Util.Aa(o),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,n=r&&r.cNvPr,s=U(e.charts,n.name,"chart"),c=t.chartSpace,u={name:s,chartSpace:c,isVisible:!n.hidden,alt:n.descr,AlternateContent:t.AlternateContent},ue(t,e,u,t.xfrm),d=u.width,f=u.height,p=c.userShapes,p&&(c.userShapes=p.map(function(t){return t.pic?ge(e,t,d,f):t.graphicFrame?he(e,t,d,f):void 0})),u}t.convertFromExcelChart=de;function fe(e,t){var r,i=t.shapeData;return i.editAs=ae(t.dynamicMove,t.dynamicSize),i.clientData={fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},r=t.alt,r&&(i.sp?i.sp.nvSpPr.cNvPr.descr=r:i.cxnSp?i.cxnSp.nvCxnSpPr.cNvPr.descr=r:i.grpSp?i.grpSp.nvGrpSpPr.cNvPr.descr=r:i.pic&&(i.pic.nvPicPr.cNvPr.descr=r)),i}t.convertToExcelShape=fe;function pe(e,t){var r,n=Z(e,t),a=t.isVisible,o=t.chartSpace,l={anchorType:0,startPoint:n.startPoint,endPoint:n.endPoint,editAs:n.editAs,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:t.name,descr:t.alt||"",hidden:!i.J(a)&&!a}}},clientData:{fLocksWithSheet:t.isLocked,fPrintsWithSheet:t.canPrint},chartSpace:o,AlternateContent:t.AlternateContent},s=1,c=o.userShapes;return c&&c.length>0&&(r=c.map(function(e){var r;return"1"===e.typeName?(r=be(e,s,t.width,t.height),s++):"2"===e.typeName&&(r=me(e,s,t.width,t.height),s++),r}).filter(function(e){return!!e}),r.length>0?o.userShapes={relSizeAnchor:r}:delete o.userShapes),l}t.convertToExcelChart=pe;function he(e,t,r,i){var n=t.graphicFrame&&t.graphicFrame.nvGraphicFramePr&&t.graphicFrame.nvGraphicFramePr.cNvPr&&t.graphicFrame.nvGraphicFramePr.cNvPr,a=U(e.charts,n.name,"chart"),o=ie(e,t,r,i),l={name:a,chartSpace:t.chartSpace,isVisible:!n.hidden,alt:n.descr};return x(o,l,["x","y","width","height"]),l}function me(e,t,r,n){var a=oe(e,r,n),o=e.isVisible;return{typeName:e.typeName,anchorType:3,startPoint:a.startPoint,endPoint:a.endPoint,graphicFrame:{nvGraphicFramePr:{cNvPr:{name:e.name,descr:e.alt||"",hidden:!i.J(o)&&!o}}},chartSpace:e.chartSpace}}function ge(e,t,r,i){var n,a,o,l,s,c=t.pic&&t.pic.nvPicPr&&t.pic.nvPicPr.cNvPr,u=c.name,d=e.floatingObjects;return d&&(u=U(d,u,"picture")),n=t.pic&&t.pic.blipFill,a=n&&n.blip&&n.blip.blipBlob,o=a&&a.blob,l={name:u,alt:c.descr,src:o,isVisible:!c.hidden},s=ie(e,t,r,i),x(s,l,["x","y","width","height"]),J(t.pictureFormat,l),l}function be(e,t,r,i){var n,o,l=oe(e,r,i),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:B(e.borderStyle)?0:e.borderWidth},prstGeom:{prst:1,avLst:{}}}},src:e.src},c=s.pic.spPr,u=c.ln,d=le(e.backColor);return d&&(c.solidFill=d),n=le(e.borderColor),n&&(u.solidFill=n),o=M(e.borderStyle),"dbl"===o?u.cmpd=a.Charts.ST_CompoundLine[o]:u.prstDash=a.Charts.ST_PresetLineDashVal[o],s}function we(e,t){return!(!e||!t||e.color!==t.color||e.type!==t.type)||!e&&!t}t.isBorderEqual=we,p={backColor:2,foreColor:0,borderBottom:1,borderLeft:1,borderRight:1,borderTop:1,font:0,textDecoration:0};function Ce(e,t){var r,n={};for(r in e)e.hasOwnProperty(r)&&(0===p[r]?e[r]!==t[r]&&(n[r]=e[r]):1===p[r]?we(e[r],t[r])||(n[r]=e[r]):2===p[r]?i.Util.Da(e[r],t[r])||(n[r]=e[r]):n[r]=e[r]);return n}t.processTableCellStyle=Ce;function Se(e,t){var r,i={};for(r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);for(r in p)void 0===e[r]&&void 0!==t[r]&&(i[r]=t[r]);return i}t.resetTableCellStyle=Se;function ye(e,t){var r,i="png",n=e.lastIndexOf(".");return n!==-1&&(i=e.substr(n+1)),"svg"===i&&(i="svg+xml"),r=t(e,!0),r?"data:image/"+i+";base64,"+r:l}t.getImageContent=ye;function ve(e){return JSON.parse(JSON.stringify(e))}function xe(e){var t=e.sp||e.cxnSp||e.grpSp;return t&&(t.spPr&&t.spPr.xfrm||t.grpSpPr&&t.grpSpPr.xfrm)}t.getXFrm=xe;function Te(e,t){if(e&&5===e.shapeType){var r=t[e.nvSpPr.cNvPr.id];r&&(e.shapeType=7,e.control=r)}}function Ae(e,t){var r=e&&e.sp||[];r.forEach(function(e){5===e.shapeType?Te(e,t):3===e.shapeType&&Ae(e,t)})}function ke(e,t){var r,i,n={},a=e.controls||{};return ue(t,e,n),t.sp?(Te(t.sp,a),n.shapeType=t.sp.shapeType,n.name=t.sp.nvSpPr.cNvPr.name,n.alt=t.sp.nvSpPr.cNvPr.descr,n.shapeData=ve(t)):t.cxnSp?(n.shapeType=t.cxnSp.shapeType,n.name=t.cxnSp.nvCxnSpPr.cNvPr.name,n.alt=t.cxnSp.nvCxnSpPr.cNvPr.descr,n.shapeData=ve(t)):t.grpSp?(Ae(t.grpSp,a),n.shapeType=t.grpSp.shapeType,n.name=t.grpSp.nvGrpSpPr.cNvPr.name,n.alt=t.grpSp.nvGrpSpPr.cNvPr.descr,n.shapeData=ve(t)):t.pic&&(r=t.pic,n.shapeType=r.shapeType,n.name=r.nvPicPr.cNvPr.name,n.alt=r.nvPicPr.cNvPr.descr,n.shapeData=ve(t)),i=n.shapeData,i&&i.hidden&&(i.isVisible=!1,n.isVisible=!1,delete i.hidden),n}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 Ee(e){return Ie(e)?(e>4294934530&&e<4294967296&&(e-=4294967296),e):e}t.convertFirstPageNumber=Ee;function Fe(e){return Ie(e)?(e<0&&(e+=4294967296),e):e}t.convertFirstPageNumberToExcel=Fe;function Ie(e){return"string"==typeof e&&(e=+e),!(isNaN(e)||!isFinite(e))}},"./src/datamodel/excel-style.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C,S,y,v,x,T,A,k,E,F,I,P,D,R,L,_,N,B,M,O,G,H,U;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/common/builtIn-resource.ts"),a=r("./src/common/excel-types.ts"),o=r("./src/xml-io/xml-reader.ts"),l=r("./src/xlsx-io/reader/style-reader.ts"),s=null,c=void 0,u="Headings",d="Body",f="Calibri",p="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";
@@ -42,8 +42,8 @@ Ye(e,t,r,i,Ae)}t.DrawingWriter.WriteCT_GraphicFrameNonVisual=Ea;function Fa(e,t,
42
42
  pic:i},a={},i={AlternateContent:t.DrawingWriter.mc,Choice:n,Fallback:a},Ql(e,"mc","AlternateContent",i)):0===i.shapeType||7===i.shapeType&&(o=i.nvSpPr.cNvPr.extLst||{},o.ext=o.ext||[],o.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:i.control.spid}}),i.nvSpPr.cNvPr.extLst=o,n={a14:t.DrawingWriter.a14,Requires:"a14",sp:i},s={AlternateContent:t.DrawingWriter.mc,Choice:n,FallBack:!0},Ql(e,"mc","AlternateContent",s))})})}t.DrawingWriter.WriteCT_GroupShape=Kl;function ql(e,t,r,i){var n=void 0===t?r:t+":"+r;e.writeElement(n,function(){var t,r;l.J(i.col)||e.writeElementString("xdr:col",i.col),t=i.colOffset,l.J(t)||e.writeElementString("xdr:colOff",a(t)),l.J(i.row)||e.writeElementString("xdr:row",i.row),r=i.rowOffset,l.J(r)||e.writeElementString("xdr:rowOff",a(r))})}t.DrawingWriter.WriteCT_Position=ql;function Yl(e,t,r,n){e.writeElement(t+":"+r,function(){var t=n.editAs;l.J(t)||0===t||e.writeAttributeString("editAs",i.Charts.ST_EditAs[t])},function(){var t=n.startPoint,r=n.endPoint,i=n.AlternateContent,a=n.sp,o=n.grpSp,s=n.graphicFrame,c=n.cxnSp,u=n.pic,d=n.clientData,f=l.Util.za(n),p=f&&f.layoutId,h=l.Util.Aa(p);l.J(t)||ql(e,Fe,"from",t),l.J(r)||ql(e,Fe,"to",r),!l.J(i)&&h&&Ql(e,Le,xe,i,h),l.J(a)||Pl(e,Fe,"sp",a),l.J(o)||Kl(e,Fe,V,o),l.J(s)||h||zl(e,Fe,v,s,h),l.J(c)||Ll(e,Fe,z,c),l.J(u)||Jl(e,Fe,"pic",u),l.J(d)||Tl(e,Fe,Te,d)})}t.DrawingWriter.WriteCT_TwoCellAnchor=Yl;function Ql(e,r,i,n,a){e.writeElement(r+":"+i,function(){e.writeAttributeString("xmlns:mc",n.AlternateContent)},function(){var r=n.Choice,i=n.Fallback;l.J(r)&&Zl(n)&&(r={a14:t.DrawingWriter.a14,Requires:"a14",twoCellAnchor:n},i={}),l.J(r)||$l(e,Le,"Choice",r,a),l.J(i)||es(e,Le,"Fallback",i)})}t.DrawingWriter.WriteCT_AlternateContent=Ql;function Zl(e){return!(!e||!e.pic||e.pic.cameraTool!==!0)}function $l(e,t,r,i,n){e.writeElement(t+":"+r,function(){!n||l.J(i.Requires)||l.J(i.cx)||e.writeAttributeString("xmlns:"+i.Requires,i.cx);var t=i.a14;l.J(t)||e.writeAttributeString("xmlns:a14",i.a14),e.writeAttributeString("Requires",i.Requires)},function(){var t,r,a,o=i.GraphicalObjectFrame;l.J(o)||zl(e,Fe,"graphicFrame",o,n),t=i.twoCellAnchor,l.J(t)||Yl(e,Fe,"twoCellAnchor",t),r=i.sp,l.J(r)||Fl(e,Fe,"sp",r),a=i.pic,l.J(a)||Jl(e,Fe,"pic",a)})}t.DrawingWriter.WriteCT_Choice=$l;function es(e,t,r,i){e.writeElement(t+":"+r,function(){},function(){var t=i.GraphicalObjectFrame;l.J(t)||zl(e,Fe,"graphicFrame",t)})}t.DrawingWriter.WriteCT_FallBack=es;function ts(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.startPoint;l.J(t)||ql(e,Fe,"from",t),ot(e,i,!0)})}t.DrawingWriter.WriteCT_OneCellAnchor=ts;function rs(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.pos;l.J(t)||er(e,Fe,"pos",t,!0),ot(e,i)})}t.DrawingWriter.WriteCT_AbsoluteAnchor=rs;function is(e,r,i,n){e.writeElement("xdr:"+i,function(){e.writeAttributeString("xmlns:a",t.DrawingWriter.a),e.writeAttributeString("xmlns:xdr",t.DrawingWriter.xdr)},function(){n.AnchorBaseList.forEach(function(t){1===t.anchorType?ts(e,Fe,"oneCellAnchor",t):0===t.anchorType?Yl(e,Fe,"twoCellAnchor",t):2===t.anchorType&&rs(e,Fe,"absoluteAnchor",t)})})}t.DrawingWriter.WriteCT_Drawing=is;function ns(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.spPr,r=i.bodyPr,n=i.lstStyle,a=i.style,o=i.extLst;l.J(t)||Cl(e,Ae,G,t),l.J(r)||Cs(e,Ae,"bodyPr",r),l.J(n)||hs(e,Ae,"lstStyle",n),l.J(a)||xl(e,Ae,we,a),l.J(o)||hr(e,Ae,g,o)})}t.DrawingWriter.WriteCT_DefaultShapeDefinition=ns;function as(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.spDef,r=i.lnDef,n=i.txDef,a=i.extLst;l.J(t)||ns(e,Ae,"spDef",t),l.J(r)||ns(e,Ae,"lnDef",r),l.J(n)||ns(e,Ae,"txDef",n),l.J(a)||hr(e,Ae,g,a)})}t.DrawingWriter.WriteCT_ObjectStyleDefaults=as;function os(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_EmptyElement=os;function ls(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.masterClrMapping,r=i.overrideClrMapping;l.J(t)||os(e,Ae,"masterClrMapping"),l.J(r)||sa(e,Ae,"overrideClrMapping",r)})}t.DrawingWriter.WriteCT_ColorMappingOverride=ls;function ss(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.clrScheme,r=i.clrMap;l.J(t)||Ft(e,Ae,j,t),l.J(r)||sa(e,Ae,"clrMap",r)})}t.DrawingWriter.WriteCT_ColorSchemeAndMapping=ss;function cs(e,t,r,i){e.writeElement(t+":"+r,function(){Ze(i.extraClrScheme,function(t){ss(e,Ae,"extraClrScheme",t)})})}t.DrawingWriter.WriteCT_ColorSchemeList=cs;function us(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.name;Ge(t)||e.writeAttributeString(p,t)},function(){var t=i.themeElements,r=i.objectDefaults,n=i.extraClrSchemeLst,a=i.custClrLst,o=i.extLst;l.J(t)||Ht(e,Ae,"themeElements",t),l.J(r)||as(e,Ae,"objectDefaults",r),l.J(n)||cs(e,Ae,"extraClrSchemeLst",n),l.J(a)||Dt(e,Ae,"custClrLst",a),l.J(o)||hr(e,Ae,g,o)})}t.DrawingWriter.WriteCT_OfficeStyleSheet=us;function ds(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.clrScheme,r=i.fontScheme,n=i.fmtScheme;l.J(t)||Ft(e,Ae,j,t),l.J(r)||_t(e,Ae,X,r),l.J(n)||Gt(e,Ae,K,n)})}t.DrawingWriter.WriteCT_BaseStylesOverride=ds;function fs(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.themeElements,r=i.clrMap;l.J(t)||Ht(e,Ae,"themeElements",t),l.J(r)||sa(e,Ae,"clrMap",r)})}t.DrawingWriter.WriteCT_ClipboardStyleSheet=fs;function ps(e,t,r,i){e.writeElement(t+":"+r,function(){var r=i.pPr,n=i.endParaRPr,a=i.elements;l.J(r)||Hs(e,t,"pPr",r),l.J(a)||a.forEach(function(r){0===r.elementType?Js(e,t,Ee,r):1===r.elementType?Os(e,t,"br",r):2===r.elementType&&Us(e,t,"fld",r)}),l.J(n)||Ls(e,t,"endParaRPr",n)})}t.DrawingWriter.WriteCT_TextParagraph=ps;function hs(e,t,r,i){e.writeElement(t+":"+r,function(){var t=i.defPPr,r=i.lvl1pPr,n=i.lvl2pPr,a=i.lvl3pPr,o=i.lvl4pPr,s=i.lvl5pPr,c=i.lvl6pPr,u=i.lvl7pPr,d=i.lvl8pPr,f=i.lvl9pPr,p=i.extLst;l.J(t)||Hs(e,Ae,"defPPr",t),l.J(r)||Hs(e,Ae,"lvl1pPr",r),l.J(n)||Hs(e,Ae,"lvl2pPr",n),l.J(a)||Hs(e,Ae,"lvl3pPr",a),l.J(o)||Hs(e,Ae,"lvl4pPr",o),l.J(s)||Hs(e,Ae,"lvl5pPr",s),l.J(c)||Hs(e,Ae,"lvl6pPr",c),l.J(u)||Hs(e,Ae,"lvl7pPr",u),l.J(d)||Hs(e,Ae,"lvl8pPr",d),l.J(f)||Hs(e,Ae,"lvl9pPr",f),l.J(p)||hr(e,Ae,g,p)})}t.DrawingWriter.WriteCT_TextListStyle=hs;function ms(e,t,r,i){e.writeLeafElement(t+":"+r,function(){var t=i.fontScale,r=i.lnSpcReduction;l.J(t)||1e5===t||e.writeAttributeString("fontScale",t),l.J(r)||0===r||e.writeAttributeString("lnSpcReduction",r)})}t.DrawingWriter.WriteCT_TextNormalAutofit=ms;function gs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextShapeAutofit=gs;function bs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoAutofit=bs;function ws(e){return 6e4*e}t.DrawingWriter.getRotationData=ws;function Cs(e,t,r,n){e.writeElement(t+":"+r,function(){var t=n.rot,r=n.vertOverflow,a=n.horzOverflow,o=n.wrap,s=n.lIns,c=n.tIns,u=n.rIns,d=n.bIns,f=n.numCol,p=n.spcCol,h=n.anchor;l.J(t)||e.writeAttributeString("rot",ws(t)),n.spcFirstLastPara===!0&&e.writeAttributeString("spcFirstLastPara","1"),l.J(r)||0===r||e.writeAttributeString("vertOverflow",i.Charts.ST_TextVertOverflowType[r]),l.J(a)||0===a||e.writeAttributeString("horzOverflow",i.Charts.ST_TextHorzOverflowType[a]),l.J(n.vert)||e.writeAttributeString("vert",i.Charts.ST_TextVerticalType[n.vert]),l.J(o)||0===o||e.writeAttributeString("wrap",i.Charts.ST_TextWrappingType[o]),l.J(s)||91440===s||e.writeAttributeString("lIns",s),l.J(c)||45720===c||e.writeAttributeString("tIns",c),l.J(u)||91440===u||e.writeAttributeString("rIns",u),l.J(d)||45720===d||e.writeAttributeString("bIns",d),l.J(f)||0===f||e.writeAttributeString("numCol",f),l.J(p)||0===p||e.writeAttributeString("spcCol",p),n.rtlCol===!0&&e.writeAttributeString("rtlCol","1"),n.fromWordArt===!0&&e.writeAttributeString("fromWordArt","1"),l.J(h)||0===h||e.writeAttributeString("anchor",i.Charts.ST_TextAnchoringType[h]),n.anchorCtr===!0&&e.writeAttributeString("anchorCtr","1"),n.forceAA===!0&&e.writeAttributeString("forceAA","1"),n.upright===!0&&e.writeAttributeString("upright","1"),n.compatLnSpc===!0&&e.writeAttributeString("compatLnSpc","1")},function(){var t=n.prstTxWarp,r=n.noAutofit,i=n.normAutofit,a=n.spAutoFit,o=n.scene3d,s=n.sp3d,c=n.flatTx,u=n.extLst;l.J(t)||sl(e,Ae,"prstTxWarp",t),l.J(r)||bs(e,Ae,"noAutofit"),l.J(i)||ms(e,Ae,"normAutofit",i),l.J(a)||gs(e,Ae,"spAutoFit"),l.J(o)||Ka(e,Ae,O,o),l.J(s)||Qa(e,Ae,"sp3d",s),l.J(c)||Za(e,Ae,"flatTx",c),l.J(u)||hr(e,Ae,g,u)})}t.DrawingWriter.WriteCT_TextBodyProperties=Cs;function Ss(e,t,r,i){e.writeElement(t+":"+r,function(){var t,r,n=i.bodyPr,a=i.lstStyle;Cs(e,Ae,"bodyPr",n||{}),l.J(a)||hs(e,Ae,"lstStyle",a),t=i.p,l.J(t)?(r={pPr:{defRPr:{}},endParaRPr:{},elements:[]},ps(e,Ae,"p",r)):Ze(i.p,function(t){ps(e,Ae,"p",t)})})}t.DrawingWriter.WriteCT_TextBody=Ss;function ys(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletColorFollowText=ys;function vs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletSizeFollowText=vs;function xs(e,t,r,i){Ue(e,t,r,i,f)}t.DrawingWriter.WriteCT_TextBulletSizePercent=xs;function Ts(e,t,r,i){Ue(e,t,r,i,f)}t.DrawingWriter.WriteCT_TextBulletSizePoint=Ts;function As(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextBulletTypefaceFollowText=As;function ks(e,t,r,n){e.writeLeafElement(t+":"+r,function(){var t=n.startAt;l.J(n.type)||e.writeAttributeString(h,i.Charts.ST_TextAutonumberScheme[n.type]),l.J(t)||1===t||e.writeAttributeString("startAt",t)})}t.DrawingWriter.WriteCT_TextAutonumberBullet=ks;function Es(e,t,r,i){e.writeLeafElement(t+":"+r,function(){l.J(i.char)||e.writeAttributeString("char",i.char)})}t.DrawingWriter.WriteCT_TextCharBullet=Es;function Fs(e,t,r,i){Je(e,t,r,i,Po,Ae,"blip")}t.DrawingWriter.WriteCT_TextBlipBullet=Fs;function Is(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextNoBullet=Is;function Ps(e,t,r,i){e.writeLeafElement(t+":"+r,function(){var t=i.typeface,r=i.panose,a=i.pitchFamily,o=i.charset;l.J(t)||e.writeAttributeString("typeface",n.ConverterHelper.getFontName(t)),l.J(r)||e.writeAttributeString("panose",r),l.J(a)||0===a||e.writeAttributeString("pitchFamily",a),l.J(o)||1===o||e.writeAttributeString("charset",o)})}t.DrawingWriter.WriteCT_TextFont=Ps;function Ds(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineLineFollowText=Ds;function Rs(e,t,r){He(e,t,r)}t.DrawingWriter.WriteCT_TextUnderlineFillFollowText=Rs,t.DrawingWriter.WriteCT_TextUnderlineFillGroupWrapper=No;function Ls(e,t,r,a){e.writeElement(t+":"+r,function(){var t=a.altLang,r=a.sz,o=a.kern,s=a.cap,c=a.spc,u=a.baseline,d=a.smtId,f=a.bmk;a.kumimoji===!0&&e.writeAttributeString("kumimoji","1"),l.J(t)||e.writeAttributeString("altLang",t),l.J(r)||0===r||e.writeAttributeString("sz",Math.round(100*n.UnitHelper.pixelToPoint(r))),l.J(a.b)||e.writeAttributeString("b",a.b?"1":"0"),l.J(a.i)||e.writeAttributeString("i",a.i?"1":"0"),l.J(a.u)||e.writeAttributeString("u",i.Charts.ST_TextUnderlineType[a.u]),l.J(a.strike)||e.writeAttributeString("strike",i.Charts.ST_TextStrikeType[a.strike]),l.J(o)||0===o||e.writeAttributeString("kern",o),l.J(s)||0===s||e.writeAttributeString("cap",i.Charts.ST_TextCapsType[s]),l.J(c)||e.writeAttributeString("spc",c),a.normalizeH===!0&&e.writeAttributeString("normalizeH","1"),l.J(u)||e.writeAttributeString("baseline",u),a.noProof===!0&&e.writeAttributeString("noProof","1"),a.dirty===!1&&e.writeAttributeString("dirty","0"),a.err===!0&&e.writeAttributeString("err","1"),a.smtClean===!1&&e.writeAttributeString("smtClean","0"),l.J(d)||0===d||e.writeAttributeString("smtId",d),l.J(f)||e.writeAttributeString("bmk",f)},function(){var t=a.ln,r=a.highlight,i=a.uLnTx,n=a.uLn,o=a.uFillTx,s=a.uFill,c=a.latin,u=a.ea,d=a.cs,f=a.sym,p=a.hlinkClick,h=a.hlinkMouseOver,m=a.extLst,b=a.effectLst,w=a.effectDag;l.J(t)||bl(e,Ae,"ln",t),je(e,a),l.J(b)||Uo(e,Ae,C,b),l.J(w)||Oo(e,Ae,S,w),l.J(r)||vr(e,Ae,"highlight",r),l.J(i)||Ds(e,Ae,"uLnTx"),l.J(n)||bl(e,Ae,"uLn",n),l.J(o)||Rs(e,Ae,"uFillTx"),l.J(s)||No(e,Ae,"uFill",s),l.J(c)||Ps(e,Ae,"latin",c),l.J(u)||Ps(e,Ae,"ea",u),l.J(d)||Ps(e,Ae,"cs",d),l.J(f)||Ps(e,Ae,"sym",f),l.J(p)||Ar(e,Ae,"hlinkClick",p),l.J(h)||Ar(e,Ae,"hlinkMouseOver",h),l.J(m)||hr(e,Ae,g,m)})}t.DrawingWriter.WriteCT_TextCharacterProperties=Ls;function _s(e,t,r,i){Ue(e,t,r,i,f)}t.DrawingWriter.WriteCT_TextSpacingPercent=_s;function Ns(e,t,r,i){Ue(e,t,r,i,f)}t.DrawingWriter.WriteCT_TextSpacingPoint=Ns;function Bs(e,t,r,n){e.writeLeafElement(t+":"+r,function(){l.J(n.pos)||e.writeAttributeString("pos",n.pos),l.J(n.algn)||e.writeAttributeString("algn",i.Charts.ST_TextTabAlignType[n.algn])})}t.DrawingWriter.WriteCT_TextTabStop=Bs;function Ms(e,t,r,i){e.writeElement(t+":"+r,function(){Ze(i.tab,function(t){Bs(e,Ae,"tab",t)})})}t.DrawingWriter.WriteCT_TextTabStopList=Ms;function Os(e,t,r,i){Je(e,t,r,i,Ls,Ae,"rPr")}t.DrawingWriter.WriteCT_TextLineBreak=Os;function Gs(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.spcPct)||_s(e,Ae,"spcPct",i.spcPct),l.J(i.spcPts)||Ns(e,Ae,"spcPts",i.spcPts)})}t.DrawingWriter.WriteCT_TextSpacing=Gs;function Hs(e,t,r,n){e.writeElement(t+":"+r,function(){var t=n.marL,r=n.marR,a=n.lvl,o=n.indent,s=n.algn,c=n.defTabSz,u=n.fontAlgn;l.J(t)||0===t||e.writeAttributeString("marL",t),l.J(r)||0===r||e.writeAttributeString("marR",r),l.J(a)||0===a||e.writeAttributeString("lvl",a),l.J(o)||0===o||e.writeAttributeString("indent",o),l.J(s)||0===s||e.writeAttributeString("algn",i.Charts.ST_TextAlignType[s]),l.J(c)||0===c||e.writeAttributeString("defTabSz",c),n.rtl===!0&&e.writeAttributeString("rtl","1"),n.eaLnBrk===!0&&e.writeAttributeString("eaLnBrk","1"),l.J(u)||0===u||e.writeAttributeString("fontAlgn",i.Charts.ST_TextFontAlignType[u]),n.latinLnBrk===!0&&e.writeAttributeString("latinLnBrk","1"),n.hangingPunct===!0&&e.writeAttributeString("hangingPunct","1")},function(){var t=n.lnSpc,r=n.spcBef,i=n.spcAft,a=n.buClrTx,o=n.buClr,s=n.buSzTx,c=n.buSzPct,u=n.buSzPts,d=n.buFontTx,f=n.buFont,p=n.buNone,h=n.buAutoNum,m=n.buChar,b=n.buBlip,w=n.tabLst,C=n.defRPr,S=n.extLst;l.J(t)||Gs(e,Ae,"lnSpc",t),l.J(r)||Gs(e,Ae,"spcBef",r),l.J(i)||Gs(e,Ae,"spcAft",i),l.J(a)||ys(e,Ae,"buClrTx"),l.J(o)||vr(e,Ae,"buClr",o),l.J(s)||vs(e,Ae,"buSzTx"),l.J(c)||xs(e,Ae,"buSzPct",c),l.J(u)||Ts(e,Ae,"buSzPts",u),l.J(d)||As(e,Ae,"buFontTx"),l.J(f)||Ps(e,Ae,"buFont",f),l.J(p)||Is(e,Ae,"buNone"),l.J(h)||ks(e,Ae,"buAutoNum",h),l.J(m)||Es(e,Ae,"buChar",m),l.J(b)||Fs(e,Ae,"buBlip",b),l.J(w)||Ms(e,Ae,"tabLst",w),l.J(C)||Ls(e,Ae,"defRPr",C),l.J(S)||hr(e,Ae,g,S)})}t.DrawingWriter.WriteCT_TextParagraphProperties=Hs;function Us(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.id)||e.writeAttributeString("id",i.id),l.J(i.type)||e.writeAttributeString(h,i.type)},function(){l.J(i.rPr)||Ls(e,Ae,"rPr",i.rPr),l.J(i.pPr)||Hs(e,Ae,"pPr",i.pPr),l.J(i.t)||e.writeElementString("a:t",u(i.t))})}t.DrawingWriter.WriteCT_TextField=Us;function Js(e,t,r,i){e.writeElement(t+":"+r,function(){l.J(i.rPr)||Ls(e,Ae,"rPr",i.rPr),l.J(i.t)||e.writeElementString("a:t",u(i.t))})}t.DrawingWriter.WriteCT_RegularTextRun=Js},"./src/xlsx-io/writer/comment-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/common/excel-types.ts"),o=r("./src/xlsx-io/common/color-writer.ts"),l=r("./src/datamodel/excel-style.ts"),s=i.Util.oa;function c(e,t){var r=new n.XmlWriter;return r.writeDocument(),r.writeElement("comments",function(){r.writeAttributeString("xmlns",a.XFileConstants.Hd)},function(){d(r),r.writeElement("commentList",function(){t.forEach(function(e){u(r,e)})})}),r.getXmlString()}t.writeComments=c;function u(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 n(e){var t=e;return!!t&&["italic","oblique"].indexOf(t.toLowerCase().trim())!==-1}e.writeElement("comment",function(){e.writeAttributeString("ref",i.IndexHelper.T(t.col)+(t.row+1)),e.writeAttributeString("authorId","0")},function(){e.writeElement("text",function(){e.writeElement("r",function(){var a,c,u;e.writeElement("rPr",function(){var i,a=t.fontWeight;r(a)&&e.writeLeafElement("b"),a=t.fontStyle,n(a)&&e.writeLeafElement("i"),i=t.textDecoration,i&&(1&i&&e.writeLeafElement("u"),8&i&&e.writeLeafElement("u",function(){e.writeAttributeString("val",l.UnderLineStyle[2])}),2&i&&e.writeLeafElement("strike")),a=t.fontSize,a&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",a)}),a=t.foreColor,a?o.writeColor(e,"color",a):e.writeLeafElement("color",function(){e.writeAttributeString("indexed","81")}),a=t.fontFamily,a&&e.writeLeafElement("rFont",function(){e.writeAttributeString("val",a)}),e.writeLeafElement("family",function(){e.writeAttributeString("val","2")})}),a=t.text,c=i.J(a)?"":a,u=c.length!==c.trim().length,e.writeElement("t",function(){u&&e.writeAttributeString("xml:space","preserve")},function(){e.writeValue(s(c))})})})})}function d(e){e.writeElement("authors",void 0,function(){e.writeElement("author",void 0,function(){e.writeValue("Author")})})}function f(e,t,r){var n="_x0000_t",a="202",o="_x0000_s";e.writeElement("v:shapetype",function(){e.writeAttributeString("id",n+a),e.writeAttributeString("coordsize","21600,21600"),e.writeAttributeString("o:spt",a),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",o+r),r++,e.writeAttributeString("type","#"+n+a),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,n=t.lineStyle;r?e.writeLeafElement("v:stroke",function(){e.writeAttributeString("dashstyle",r)}):n&&e.writeLeafElement("v:stroke",function(){e.writeAttributeString("linestyle",n)}),e.writeLeafElement("v:fill",function(){var r=t.opacity;i.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 i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/range-parser.ts"),n=r("./src/common/common.ts"),a=r("./src/datamodel/excel-style.ts"),o=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"}(u||(u={})),d={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"},p={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 C(e){var t=""+e;return"="===t.charAt(0)?t.substr(1):t}function S(e){return"string"==typeof e?(e="="===e[0]?e.substr(1):e,n.addXLFNPrefix(e)):e}function y(e){return"string"==typeof e}function v(e){return e===d[1]||e===d[2]}function x(e){var t,r,i,n;if(y(e.value1)&&c.isTablesheetColumnFormula(e.value1))return!0;if(y(e.value2)&&c.isTablesheetColumnFormula(e.value2))return!0;if(y(e.minValue)&&c.isTablesheetColumnFormula(e.minValue))return!0;if(y(e.midValue)&&c.isTablesheetColumnFormula(e.midValue))return!0;if(y(e.maxValue)&&c.isTablesheetColumnFormula(e.maxValue))return!0;if(y(e.text)&&c.isTablesheetColumnFormula(e.text))return!0;if(y(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(i=r[t],n=i.iconValue,y(n)&&c.isTablesheetColumnFormula(n))return!0;return!1}function T(e,t,r){var a,l,s=r.xg(t),c=s&&s.rules;if(c&&c.length>0)for(a=function(a){var l=c[a];return n.J(l.priority)&&(l.priority=1),M(l)||H(l,t,r.jj())||O(l)||x(l)?"continue":void e.writeElement("conditionalFormatting",function(){e.writeAttributeString("sqref",i.getRangeString(l.ranges)),l.pivot&&e.writeAttributeString("pivot","1")},function(){if(l.ruleType===u.dataBarRule)e.writeElement("cfRule",function(){e.writeAttributeString("type",u[l.ruleType].replace("Rule","")),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("dataBar",function(){l.showBarOnly&&e.writeAttributeString("showValue","0")},function(){var t,r=d[l.minType];(n.J(r)||"autoMin"===r)&&(r="min"),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",r),v(r)||n.J(l.minValue)||e.writeAttributeString("val",n.Util.oa(C(l.minValue)))}),t=d[l.maxType],(n.J(t)||"autoMax"===t)&&(t="max"),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",t),v(t)||n.J(l.maxValue)||e.writeAttributeString("val",n.Util.oa(C(l.maxValue)))}),o.writeColor(e,"color",B(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=n.Util.va(),e.writeElement("x14:id",function(){e.writeValue(l.id)})})})});else if(l.ruleType===u.twoScaleRule||l.ruleType===u.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",d[l.minType]),n.J(l.minValue)||e.writeAttributeString("val",n.Util.oa(C(l.minValue)))});var t=l.ruleType===u.threeScaleRule;t&&e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",d[l.midType]),n.J(l.midValue)?e.writeAttributeString("val","50"):e.writeAttributeString("val",n.Util.oa(C(l.midValue)))}),e.writeLeafElement("cfvo",function(){e.writeAttributeString("type",d[l.maxType]),n.J(l.maxValue)||e.writeAttributeString("val",n.Util.oa(C(l.maxValue)))}),o.writeColor(e,"color",B(l.minColor)),t&&o.writeColor(e,"color",B(l.midColor)),o.writeColor(e,"color",B(l.maxColor))})});else if(l.ruleType===u.iconSetRule){if(M(l))return;e.writeElement("cfRule",function(){e.writeAttributeString("type","iconSet"),e.writeAttributeString("priority",l.priority)},function(){e.writeElement("iconSet",function(){var t=l.iconSetType;n.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",p[r.iconValueType]),e.writeAttributeString("val",n.Util.oa(C(r.iconValue))),r.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")})},r=0;r<l.iconCriteria.length;r++)t(r)})})}else if(l.ruleType===u.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"),n.J(l.operator)||e.writeAttributeString("operator",h[l.operator])},function(){n.J(l.value1)||e.writeElement("formula",function(){e.writeValue(D(S(l.value1)))}),n.J(l.value2)||e.writeElement("formula",function(){e.writeValue(D(S(l.value2)))})});else{var t=A(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&&n.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"),n.J(t.aboveAverage)||(t.aboveAverage?e.writeAttributeString("aboveAverage","1"):e.writeAttributeString("aboveAverage","0")),n.J(t.equalAverage)||(t.equalAverage?e.writeAttributeString("equalAverage","1"):e.writeAttributeString("equalAverage","0")),n.J(t.bottom)||(t.bottom?e.writeAttributeString("bottom","1"):e.writeAttributeString("bottom","0")),t.percent&&e.writeAttributeString("percent","1"),n.J(t.operator)||e.writeAttributeString("operator",t.operator),n.J(t.rank)||e.writeAttributeString("rank",t.rank),n.J(t.stdDev)||e.writeAttributeString("stdDev",t.stdDev),n.J(t.text)||e.writeAttributeString("text",n.Util.oa(t.text)),4===l.ruleType&&e.writeAttributeString("timePeriod",t.type)},function(){var r,i;if(!n.J(t.formulas))for(r=function(r){e.writeElement("formula",function(){e.writeValue(D(S(t.formulas[r])))})},i=0;i<t.formulas.length;i++)r(i)})}})},l=0;l<c.length;l++)a(l)}t.writeConditionalFormating=T;function A(e){switch(e.ruleType){case 2:return L(e);case 3:return P(e);case 4:return I(e);case 5:return F(e);case 6:case 7:return E(e);case 8:return k(e)}}function k(e){var t,r,i=0,n="aboveAverage";switch(e.type){case 1:n="belowAverage";break;case 2:n="aboveOrEqualToAverage";break;case 3:n="belowOrEqualToAverage";break;case 4:i=1;break;case 5:n="belowAverage",i=1;break;case 6:i=2;break;case 7:n="belowAverage",i=2;break;case 8:i=3;break;case 9:n="belowAverage",i=3}return t={type:n,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,stdDev:i,dxfId:e.dxfId},r=_(t),r&&(t.formulas=[r]),t}function E(e){var t,r,i="uniqueValues";return 7===e.ruleType&&(i="duplicateValues"),t={type:i,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},r=_(t),r&&(t.formulas=[r]),t}function F(e){var t,r,i=void 0;return 1===e.type&&(i=!0),t={type:"top10",ranges:e.ranges,stopIfTrue:e.stopIfTrue,percent:!1,priority:e.priority,rank:e.rank,dxfId:e.dxfId,bottom:i},r=_(t),r&&(t.formulas=[r]),t}m={0:"today",1:"yesterday",2:"tomorrow",3:"last7Days",4:"thisMonth",5:"lastMonth",6:"nextMonth",7:"thisWeek",8:"lastWeek",9:"nextWeek"};function I(e){var t=m[e.type],r={type:t,ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId},i=_(r);return i&&(r.formulas=[i]),r}function P(e){return{type:"expression",ranges:e.ranges,priority:e.priority,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,formulas:[e.formula]}}function D(e){var t=/&/g,r=/</g,i=/>/g;return"string"==typeof e?e.replace(t,"&amp;").replace(r,"&lt;").replace(i,"&gt;"):n.J(e)?e:""+e}function R(e){return"string"==typeof e?e.replace(/"/g,'""'):n.J(e)?e:""+e}function L(e){var t,r,i=e.operator,n="containsText",a="contains";return 2===i?(n="beginsWith",a="beginsWith"):3===i?(n="endsWith",a="endsWith"):1===i?(n="notContainsText",a="notContains"):0===i&&(a="containsText"),t={type:n,priority:e.priority,operator:a,text:e.text,stopIfTrue:e.stopIfTrue,dxfId:e.dxfId,ranges:e.ranges},r=_(t),r&&(t.formulas=[r]),t}function _(e){var t,r,i,a;if(!e||!e.ranges)return null;if(t=e.ranges[0],t.row<0||t.col<0)return null;if(r=n.IndexHelper.T(t.col)+(t.row+1),i="",i=t.rowCount===l.ExcelConstants.wb?N("${0}:${1}",n.IndexHelper.T(t.col),n.IndexHelper.T(t.col+t.colCount-1)):t.colCount===l.ExcelConstants.vb?N("${0}:${1}",t.row+1,t.row+t.rowCount):N("${0}${1}:${2}${3}",n.IndexHelper.T(t.col),t.row+1,n.IndexHelper.T(t.col+t.colCount-1),t.row+t.rowCount),a=R(e.text),"top10"===e.type)return e.bottom?e.percent?N("IF(INT(COUNT({0})*{1}%)>0,SMALL({0},INT(COUNT({0})*{1}%)),MIN({0}))>={2}",i,e.rank,r):N("SMALL(({0}),MIN({1},COUNT({0})))>={2}",i,e.rank,r):e.percent?N("IF(INT(COUNT({0})*{1}%)>0,LARGE({0},INT(COUNT({0})*{1}%)),MIN({0}))<={2}",i,e.rank,r):N("LARGE(({0}),MIN({1},COUNT({0})))<={2}",i,e.rank,r);if("containsText"===e.type)return N('NOT(ISERROR(SEARCH("{0}",{1})))',a,r);if("notContainsText"===e.type)return N('ISERROR(SEARCH("{0}",{1}))',a,r);if("beginsWith"===e.type)return N('LEFT({0},{1}) = "{2}"',r,e.text.length,a);if("endsWith"===e.type)return N('RIGHT({0},{1}) = "{2}"',r,e.text.length,a);if("duplicateValues"===e.type)return N("AND(COUNTIF({0},{1})>1,NOT(ISBLANK({1})))",i,r);if("uniqueValues"===e.type)return N("AND(COUNTIF({0},{1})=1,NOT(ISBLANK({1})))",i,r);if("aboveAverage"===e.type||"belowAverage"===e.type||"aboveOrEqualToAverage"===e.type||"belowOrEqualToAverage"===e.type){if("aboveAverage"===e.type&&n.J(e.stdDev))return N("{0}>AVERAGE({1})",r,i);if(!n.J(e.aboveAverage)){if(!(n.J(e.equalAverage)||e.aboveAverage||n.J(e.equalAverage))&&e.equalAverage&&n.J(e.stdDev))return N("{0}<=AVERAGE({1})",r,i);if(!e.aboveAverage&&n.J(e.stdDev))return N("{0}<AVERAGE({1})",r,i)}if(!n.J(e.equalAverage)&&e.equalAverage&&n.J(e.stdDev))return N("{0}>=AVERAGE({1})",r,i);if(!n.J(e.stdDev))return n.J(e.aboveAverage)||e.aboveAverage?N("({0}-AVERAGE({1}))>=STDEVP({1})*({2})",r,i,e.stdDev):N("({0}-AVERAGE({1}))<=STDEVP({1})*(-{2})",r,i,e.stdDev)}return null}function N(e){var t,r,i=[];for(t=1;t<arguments.length;t++)i[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 B(e){return a.ColorHelper.toExcelColor(e)}function M(e){return e.ruleType===u.iconSetRule&&(3===e.iconSetType||2===e.iconSetType||19===e.iconSetType||j(e.iconSetType,e))}function O(e){return e.ruleType===u.rowStateRule||e.ruleType===u.columnStateRule}function G(e){return e.ruleType===u.dataBarRule}function H(e,t,r){return e.ruleType===u.formulaRule&&n.Util.ta(e.formula,t,r)}function U(e,t,r){var i,n,a=0;for(i=0;i<e.length;i++)n=e[i],(G(n)||M(n)||H(n,t,r))&&a++;return 0!==a}t.needWriteConditionalFormatExtension=U;function J(e,t,r){var i=r.xg(t),a=i&&i.rules;a&&0!==a.length&&U(a,t,r.jj())&&e.writeElement("ext",function(){
43
43
  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 i,o;for(i=0;i<a.length;i++)o=a[i],x(o)||(n.J(o.id)&&(o.id=n.Util.va()),G(o)&&V(e,t,o),M(o)&&z(e,t,o),H(o,t,r.jj())&&W(e,t,o))})})}t.writeExtensionConditionalFormats=J,g="x14:conditionalFormatting",b="http://schemas.microsoft.com/office/excel/2006/main",w="x14:cfRule";function W(e,t,r){e.writeElement(g,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",b)},function(){e.writeElement(w,function(){e.writeAttributeString("type","expression"),e.writeAttributeString("priority",r.priority),e.writeAttributeString("id",r.id)},function(){e.writeElement("xm:f",function(){e.writeValue(n.Util.oa(S(r.formula)))}),s.writeDxf(e,void 0,r.style,"x14:dxf")}),e.writeElement("xm:sqref",function(){e.writeValue(i.getRangeString(r.ranges))})})}function V(e,t,r){e.writeElement(g,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",b)},function(){e.writeElement(w,function(){e.writeAttributeString("type",u[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(){n.J(r.minType)||5===r.minType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMin")}):n.J(r.minValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",d[r.minType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",d[r.minType])},function(){e.writeElement("xm:f",function(){e.writeValue(n.Util.oa(S(r.minValue)))})}),n.J(r.maxType)||7===r.maxType?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type","autoMax")}):n.J(r.maxValue)?e.writeLeafElement("x14:cfvo",function(){e.writeAttributeString("type",d[r.maxType])}):e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",d[r.maxType])},function(){e.writeElement("xm:f",function(){e.writeValue(n.Util.oa(S(r.maxValue)))})}),r.showBorder&&r.borderColor&&o.writeColor(e,"x14:borderColor",B(r.borderColor)),n.J(r.negativeFillColor)?o.writeColor(e,"x14:negativeFillColor",B("red")):o.writeColor(e,"x14:negativeFillColor",B(r.negativeFillColor)),n.J(r.negativeBorderColor)?o.writeColor(e,"x14:negativeBorderColor",B("black")):o.writeColor(e,"x14:negativeBorderColor",B(r.negativeBorderColor)),2!==r.axisPosition&&o.writeColor(e,"x14:axisColor",B(r.axisColor))})}),e.writeElement("xm:sqref",function(){e.writeValue(i.getRangeString(r.ranges))})})}function z(e,t,r){e.writeElement(g,function(){r.pivot&&e.writeAttributeString("pivot","1"),e.writeAttributeString("xmlns:xm",b)},function(){e.writeElement(w,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,i=r.iconSetType;n.J(i)&&(i=0),e.writeAttributeString("iconSet",f[i]),t=j(i,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,i,a,o,l;for(e.writeElement("x14:cfvo",function(){e.writeAttributeString("type","percent")},function(){e.writeElement("xm:f",function(){e.writeValue("0")})}),t=function(t){var i=r.iconCriteria[t];e.writeElement("x14:cfvo",function(){e.writeAttributeString("type",p[i.iconValueType]),i.isGreaterThanOrEqualTo===!1&&e.writeAttributeString("gte","0")},function(){e.writeElement("xm:f",function(){e.writeValue(n.Util.oa(S(i.iconValue)))})})},i=0;i<r.iconCriteria.length;i++)t(i);for(a=r.icons,o=function(t){e.writeLeafElement("x14:cfIcon",function(){var r=a[t].iconSetType,i=a[t].iconIndex,n=X(r,i);e.writeAttributeString("iconSet",f[n.iconSetType]),e.writeAttributeString("iconId",n.iconIndex)})},l=0;l<a.length;l++)o(l)})}),e.writeElement("xm:sqref",function(){e.writeValue(i.getRangeString(r.ranges))})})}function j(e,t){var r,i=!0,n=!0,a=!0,o=t.icons;for(r=0;r<o.length;r++)if(o[r].iconSetType!==e){i=!1;break}for(r=0;r<o.length;r++)if(o[r].iconIndex!==r){n=!1;break}for(r=0;r<o.length;r++)if(o[r].iconIndex!==o.length-1-r){a=!1;break}return!i||!n&&!a||!n&&!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 i,n;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/datamodel/excel-style.ts"),n=i.UnitHelper.pixelToEMU;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 o(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 l(e,t){t&&e.writeLeafElement("v:fill",function(){t.stops?0===t.type?c(e,t):1===t.type&&d(e,t):t.src?f(e,t):e.writeAttributeString("opacity",h(t.transparency))})}function s(e){return e=90-e,e%=360,e<0&&(e+=360),e}function c(e,t){var r,i=t.stops,n="100%",a=h(i[0].transparency),o=h(i[i.length-1].transparency);w(i)&&(i=i.slice(0,Math.floor(i.length/2)+1),i.forEach(function(e){return e.position*=2}),n="50%",o=h(i[i.length-1].transparency),r=a,a=o,o=r),e.writeAttributeString("opacity",a),e.writeAttributeString("color2",i[i.length-1].color),e.writeAttributeString("o:opacity2",o),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("angle",s(t.angle)),e.writeAttributeString("colors",i.map(p).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focus",n),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 d(e,t){var r=t.stops,i=r[r.length-1],n=h(i.transparency),a=h(r[0].transparency);e.writeAttributeString("opacity",n),e.writeAttributeString("color2",i.color),e.writeAttributeString("o:opacity2",a),e.writeAttributeString("recolor","t"),e.writeAttributeString("rotate","t"),e.writeAttributeString("colors",r.map(p).join(";")),e.writeAttributeString("method","none"),e.writeAttributeString("focusposition",u(t.direction)),e.writeAttributeString("focus","100%"),e.writeAttributeString("type","gradientradial")}function f(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 p(e){var t=e.position,r=e.color;return Math.round(100*t)+"% "+r}function h(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 b(e){return e&&e.color}function w(e){var t,r=function(e,t){return Math.abs(e-t)<1e-4},i=function(e,t){return e.color===t.color&&r(e.transparency,t.transparency)&&r(e.position,1-t.position)},n=e.length,a=Math.floor(n/2);if(n<3||n%2!==1||!r(e[a].position,.5))return!1;for(t=0;t<a;t++)if(!i(e[t],e[n-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 S(e,t){var r=t.sp.control,i=JSON.parse(JSON.stringify(r.props)),n=r.disabled,a=function(e){return"CheckBox"===e&&(e="Checkbox"),e};e.writeElement("x:ClientData",function(){e.writeAttributeString("ObjectType",a(i.objectType))},function(){var r,a;e.writeElementString("x:Anchor",T(t)),n&&e.writeLeafElement("x:Disabled");for(r in i)a=i[r],"checked"===r&&(a=x(a)),"objectType"!==r&&("noThreeD"===r&&a?e.writeLeafElement("x:NoThreeD2"):e.writeElementString("x:"+k(r),a))})}function y(e,t){var r=t.sp.control,i=r.spid,a=r.style,o=a.fill,s=a.line;e.writeElement("v:shape",function(){e.writeAttributeString("id",i),e.writeAttributeString("o:spid",i),e.writeAttributeString("type","#_x0000_t201"),e.writeAttributeString("style",A(t)),m(o)?e.writeAttributeString("fillcolor",g(o)):e.writeAttributeString("filled","f"),b(s)?(e.writeAttributeString("strokecolor",s.color),e.writeAttributeString("strokeweight",n(s.width))):e.writeAttributeString("stroked","f"),e.writeAttributeString("o:insetmode","auto")},function(){l(e,o),C(e,s),e.writeLeafElement("o:lock",function(){e.writeAttributeString("v:ext","edit"),e.writeAttributeString("rotation","t"),e.writeAttributeString("text","t")}),S(e,t)})}function v(e,t,r){0!==t.length&&(a(e),o(e),t.forEach(function(t){t.sp.control.spid="_x0000_s"+r,r++,y(e,t)}))}t.writeControlShapes=v;function x(e){var t={Checked:1,Mixed:2};return t[e]}function T(e){var t=e.sp.control.anchorInfo,r=t.startPoint,i=t.endPoint,n=function(e){return[e.col,e.colOffset,e.row,e.rowOffset]};return n(r).concat(n(i)).join(",")}function A(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 k(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 i=r("./src/xml-io/xml-writer.ts");function n(e){var t=new i.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=n},"./src/xlsx-io/writer/datavalidation-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=i.StringEx.O,a=i.Util.oa,o=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 u(e){return i.isNullOrUndefined(e)||""===e}function d(e){var t,r,i=/\[[^\]]+\]|@/,n=e.split(/\'|\"/g);if(n&&n.length>0)for(t=0;t<n.length;t++)if(r=n[t],t%2===0&&r.match(i))return!0;return!1}t.isTablesheetColumnFormula=d;function f(e){var t=i.isNullOrUndefined(e.ranges)||""===e.ranges||0===e.ranges.length;return e.firstFormula&&(t=t||d(e.firstFormula)),e.secondFormula&&(t=t||d(e.secondFormula)),t}function p(e,t){i.isNullOrUndefined(t.type)||0===t.type||e.writeAttributeString("type",l[t.type]),i.isNullOrUndefined(t.errorStyle)||0===t.errorStyle||e.writeAttributeString("errorStyle",s[t.errorStyle]),i.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"),u(t.errorTitle)||e.writeAttributeString("errorTitle",a(t.errorTitle)),u(t.error)||e.writeAttributeString("error",a(i.Util.xa(t.error))),u(t.promptTitle)||e.writeAttributeString("promptTitle",a(t.promptTitle)),u(t.prompt)||e.writeAttributeString("prompt",a(i.Util.xa(t.prompt)))}function h(e,t,r){var o=r.Jj(t),l=[];r.On||(r.On=[]),o.length>0&&o.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){i.isNullOrUndefined(t)||f(t)||e.writeElement("dataValidation",function(){p(e,t),e.writeAttributeString("sqref",t.ranges)},function(){n(t.firstFormula)||e.writeElementString("formula1",a(i.addXLFNPrefix(t.firstFormula))),n(t.secondFormula)||e.writeElementString("formula2",a(i.addXLFNPrefix(t.secondFormula)))})})})}t.writeDataValidations=h;function m(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(){p(e,t)},function(){n(t.firstFormula)||e.writeElement("x14:formula1",function(){e.writeElementString("xm:f",a(i.addXLFNPrefix(t.firstFormula)))}),n(t.secondFormula)||e.writeElement("x14:formula2",function(){e.writeElementString("xm:f",a(i.addXLFNPrefix(t.secondFormula)))}),e.writeElementString("xm:sqref",t.ranges)})})})}),t.On=o)}t.writeExtensionDataValidations=m},"./src/xlsx-io/writer/docPropsAppWriter.ts":function(e,t,r){"use strict";var i,n;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts");function a(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",n.XFileConstants.te),t.writeAttributeString("xmlns:vt",n.XFileConstants.ue)},function(){var r,i=e.Ne.docProps.docPropsApp;for(r in i)if(i.hasOwnProperty(r))switch(r){case"HeadingPairs":o(t,i);break;case"TitlesOfParts":l(t,i);break;default:s(r,t,i)}}),t.getXmlString()}t.writeDocPropsApp=a;function o(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,i=t.HeadingPairs.workbookInfoArray,n=function(t){e.writeElement("vt:variant",function(){},function(){e.writeElement(i[t].elementType,function(){},function(){e.writeValue(i[t].value)})})};for(r=0;r<i.length;r++)n(r)})})}function l(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,i=t.TitlesOfParts.sheetsNameArray,n=function(t){e.writeElement("vt:lpstr",function(){},function(){e.writeValue(i[t])})};for(r=0;r<i.length;r++)n(r)})})}function s(e,t,r){var i=e.slice(0,1).toUpperCase()+e.slice(1);t.writeElement(i,function(){},function(){t.writeValue(r[e])})}},"./src/xlsx-io/writer/docPropsCoreWriter.ts":function(e,t,r){"use strict";var i,n;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts");function a(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("cp:coreProperties",function(){t.writeAttributeString("xmlns:cp",n.XFileConstants.ne),t.writeAttributeString("xmlns:dc",n.XFileConstants.oe),t.writeAttributeString("xmlns:dcterms",n.XFileConstants.pe),t.writeAttributeString("xmlns:dcmitype",n.XFileConstants.qe),t.writeAttributeString("xmlns:xsi",n.XFileConstants.re)},function(){var r,i=e.Ne.docProps.docPropsCore,n=function(e){if(i.hasOwnProperty(e))switch(e){case"title":t.writeElement("dc:title",function(){},function(){t.writeValue(i[e])});break;case"subject":t.writeElement("dc:subject",function(){},function(){t.writeValue(i[e])});break;case"creator":t.writeElement("dc:creator",function(){},function(){t.writeValue(i[e])});break;case"keywords":t.writeElement("cp:keywords",function(){},function(){t.writeValue(i[e])});break;case"description":t.writeElement("dc:description",function(){},function(){t.writeValue(i[e])});break;case"lastModifiedBy":t.writeElement("cp:lastModifiedBy",function(){},function(){t.writeValue(i[e])});break;case"created":t.writeElement("dcterms:created",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(i[e])});break;case"modified":t.writeElement("dcterms:modified",function(){t.writeAttributeString("xsi:type","dcterms:W3CDTF")},function(){t.writeValue(i[e])});break;case"lastPrinted":t.writeElement("cp:lastPrinted",function(){},function(){t.writeValue(i[e])});break;case"category":t.writeElement("cp:category",function(){},function(){t.writeValue(i[e])});break;case"contentStatus":t.writeElement("cp:contentStatus",function(){},function(){t.writeValue(i[e])});break;case"language":t.writeElement("dc:language",function(){},function(){t.writeValue(i[e])});break;case"version":t.writeElement("cp:version",function(){},function(){t.writeValue(i[e])});break;case"revision":t.writeElement("cp:revision",function(){},function(){t.writeValue(i[e])})}};for(r in i)n(r)}),t.getXmlString()}t.writeDocPropsCore=a},"./src/xlsx-io/writer/docPropsCustomWriter.ts":function(e,t,r){"use strict";var i,n;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts");function a(e){var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("Properties",function(){t.writeAttributeString("xmlns",n.XFileConstants.we),t.writeAttributeString("xmlns:vt",n.XFileConstants.xe)},function(){var r,i=e.Ne.docProps.docPropsCustom,n=function(e){var r=i[e];t.writeElement("property",function(){for(var e in r)"propertyItemChildElement"!==e&&t.writeAttributeString(e,r[e])},function(){var e,i=r.propertyItemChildElement,n=function(e){i.hasOwnProperty(e)&&t.writeElement(e,function(){},function(){t.writeValue(i[e])})};for(e in i)n(e)})};for(r=0;r<i.length;r++)n(r)}),t.getXmlString()}t.writeDocPropsCustom=a},"./src/xlsx-io/writer/drawing-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/datamodel/excel-style.ts"),o=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 u(){return n.XFileConstants}function d(e,t,r){l.writeColorScheme(e,t,r)}function f(e){return a.UnitHelper.pixelToEMU(e)}function p(e,t){e.forEach(function(e){t.push((e.nvSpPr||e.nvCxnSpPr||e.nvGrpSpPr||e.nvPicPr||e.nvGraphicFramePr).cNvPr.id),e.nvGrpSpPr&&p(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),p(r.sp,t)}}),Math.max.apply(null,t)}function m(e,t,r){var n=new i.XmlWriter;return n.k=1,n.writeDocument(!0),n.currentFile=r,n.writeElement("xdr:wsDr",function(){n.writeAttributeString("xmlns:xdr",u().Kd),n.writeAttributeString("xmlns:a",u().Ld)},function(){var e,r,i,a,l,s=t.shapes;s&&s.length&&(e=!0,r=h(s),n.k=r+1),i=t.pictures,i&&i.length&&C(n,i),a=t.slicers,a&&a.length&&o.writeSlicerDrawings(n,a,y),l=t.charts,l&&l.length&&b(n,l),e&&w(n,s)}),n.getXmlString()}t.writeDrawing=m;function g(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 b(e,t){var r=g(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 w(e,t){var r=function(e){return e.sp&&e.sp.control},i=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.slicer},n=function(e){return e.graphicFrame&&e.graphicFrame.graphic.graphicData.timeslicer};t.forEach(function(t){i(t)||n(t)||(r(t)?A(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 C(e,t){t.forEach(function(t){S(e,t)})}function S(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(){y(e,"xdr:from",r.startPoint),y(e,"xdr:to",r.endPoint),v(e,t),T(e,t)})}function y(e,t,r){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 v(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",u().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",u().Zd),e.writeAttributeString("r:embed",t.rid)})})})}):e.writeElement("a:blip",function(){e.writeAttributeString("xmlns:r",u().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",u().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")})}),x(e,t)})}function x(e,t){e.writeElement("xdr:spPr",function(){var r,i,n,a,o,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&&d(e,"a:solidFill",r),i=t.lineBorder,n=i.width,a=i.color,o=i.style,l=i.noFill,e.writeElement("a:ln",function(){null!==n&&void 0!==n&&e.writeAttributeString("w",f(n)),"dbl"===o&&e.writeAttributeString("cmpd","dbl")},function(){l?e.writeLeafElement("a:noFill"):d(e,"a:solidFill",a),"dbl"!==o&&e.writeLeafElement("a:prstDash",function(){e.writeAttributeString("val",o)})})})}function T(e,t){e.writeLeafElement("xdr:clientData",function(){t.locked===!1&&e.writeAttributeString("fLocksWithSheet","0")})}function A(e,t){var r,i,n=t.sp.nvSpPr.cNvPr.extLst||{};n.ext=n.ext||[],n.ext.push({uri:"{63B3BB69-23CF-44E3-9099-C40C66FF867C}",compatExt:{spid:t.sp.control.spid}}),t.sp.nvSpPr.cNvPr.extLst=n,r={a14:s.DrawingWriter.a14,Requires:"a14",twoCellAnchor:t},i={AlternateContent:s.DrawingWriter.mc,Choice:r,FallBack:!0},s.DrawingWriter.WriteCT_AlternateContent(e,"mc","AlternateContent",i)}},"./src/xlsx-io/writer/externalLink-writer.ts":function(e,t,r){"use strict";var i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts");function o(e,t){var r=new i.XmlWriter;return r.writeDocument(),r.writeElement("externalLink",function(){r.writeAttributeString("xmlns",n.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),r.writeAttributeString("xmlns:x14",n.XFileConstants.$d),r.writeAttributeString("mc:Ignorable","x14")},function(){r.writeElement("externalBook",function(){r.writeAttributeString("xmlns:r",n.XFileConstants.Ud),r.writeAttributeString("r:id","rId1")},function(){r.writeElement("sheetNames",void 0,function(){l(r,t.sheetNames)}),r.writeElement("sheetDataSet",void 0,function(){var e,i=function(e){var i=t.data[t.sheetNames[e]];i&&r.writeElement("sheetData",function(){r.writeAttributeString("sheetId",e),i.isNew&&r.writeAttributeString("refreshError",1)},function(){s(r,t.data[t.sheetNames[e]])})};for(e=0;e<t.sheetNames.length;e++)i(e)})})}),r.getXmlString()}t.writeExternalLink=o;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,i=function(r){var i,n;if(Object.prototype.hasOwnProperty.call(t,r)){if(i=parseInt(r,10)+1,isNaN(i))return"continue";n=t[r],e.writeElement("row",function(){e.writeAttributeString("r",""+i)},function(){var t,r=function(t){var r,o;Object.prototype.hasOwnProperty.call(n,t)&&(r=n[t],"string"==typeof r?o="str":"boolean"==typeof r?(o="b",r=r?"1":"0"):r&&r._code&&(o="e",r=r._calcError||r._error,"#SPILL!"!==r&&"#CALC!"!==r||(r="#VALUE!")),e.writeElement("cell",function(){e.writeAttributeString("r",a.IndexHelper.T(parseInt(t,10))+i),o&&e.writeAttributeString("t",o)},function(){e.writeElement("v",function(){},function(){e.writeValue(r)})}))};for(t in n)r(t)})}};for(r in t)i(r)}},"./src/xlsx-io/writer/metadata-writer.ts":function(e,t,r){"use strict";var i,n;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/excel-types.ts");function a(e,t,r){r&&e.push('\txmlns:xlrd="'+i.XFileConstants.he+'"'),t&&e.push('\txmlns:xda="'+i.XFileConstants.ge+'">')}n='minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1"';function o(e,t,r){var i=(t?1:0)+(r?1:0);e.push('\t<metadataTypes count="'+i+'">'),t&&e.push('\t\t<metadataType name="XLDAPR" '+n+' cellMeta="1"/>'),r&&e.push('\t\t<metadataType name="XLRICHVALUE" '+n+"/>"),e.push("\t</metadataTypes>")}function l(e,t,r,i){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 n='<futureMetadata name="XLRICHVALUE" count="'+(i?2:1)+'"> <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="0"/> </ext> </extLst> </bk>';i&&(n+=' <bk> <extLst> <ext uri="{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}"> <xlrd:rvb i="1"/> </ext> </extLst> </bk>'),e.push("\t"+n+" </futureMetadata>")}}function s(e){var t=[],r=e>0,i=e>1,n=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"'),a(t,r,i),o(t,r,i),l(t,r,i,n),r&&t.push('\t<cellMetadata count="1"> <bk> <rc t="1" v="0"/> </bk> </cellMetadata>'),i&&t.push('\t<valueMetadata count="'+(n?2:1)+'"> <bk> <rc t="2" v="0"/> </bk>'+(n?'<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 i,n,a,o,l,s,c,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/common/excel-types.ts"),o=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","valueNotBetwee"],["count","percent","sum"]],s=i.Util.oa,c=i.Util.Ba,u=i.Util.xa,d="mc:Ignorable";function f(e){var t=new n.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheDefinition",function(){t.writeAttributeString("xmlns",a.XFileConstants.Hd),t.writeAttributeString("xmlns:r",a.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",a.XFileConstants.Jd),t.writeAttributeString(d,a.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",a.XFileConstants.me),t.writeAttributeString("r:id","rId1"),e.saveData===!1&&t.writeAttributeString("saveData","0"),i.isNullOrUndefined(e.refreshedBy)||t.writeAttributeString("refreshedBy",e.refreshedBy),i.isNullOrUndefined(e.refreshedDate)||t.writeAttributeString("refreshedDate",o.DateTimeHelper.ig(e.refreshedDate)),e.backgroundQuery&&t.writeAttributeString("backgroundQuery","1"),i.isNullOrUndefined(e.createdVersion)?t.writeAttributeString("createdVersion","7"):t.writeAttributeString("createdVersion",e.createdVersion),i.isNullOrUndefined(e.refreshedVersion)?t.writeAttributeString("refreshedVersion","7"):t.writeAttributeString("refreshedVersion",e.refreshedVersion),
44
44
  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"),i.isNullOrUndefined(e.recordCount)||t.writeAttributeString("recordCount",e.recordCount),i.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),m(t,e.fields),e.cacheHierarchies&&e.cacheHierarchies.length>0&&x(t,e),e.KPIs&&e.KPIs.length>0&&I(t,e),i.isNullOrUndefined(e.pivotTupleCache)||D(t,e.pivotTupleCache),e.calculatedItems&&e.calculatedItems.length>0&&B(t,e),e.calculatedMembers&&e.calculatedMembers.length>0&&O(t,e),e.dimensions&&e.dimensions.length>0&&H(t,e),e.measureGroups&&e.measureGroups.length>0&&J(t,e),e.measureDimensionMaps&&e.measureDimensionMaps.length>0&&V(t,e),p(t,e.pivotCacheId)}),t.getXmlString()}t.writePivotCacheDefinition=f;function p(e,t){e.writeElement("extLst",function(){},function(){e.writeElement("ext",function(){e.writeAttributeString("uri","{725AE2AE-9491-48be-B2B4-4EB974FC3084}"),e.writeAttributeString("xmlns:x14",a.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 m(e,t){e.writeElement("cacheFields",function(){e.writeAttributeString("count",t.length)},function(){var r,i;for(r=0;r<t.length;r++)i=t[r],g(e,i)})}function g(e,t){e.writeElement("cacheField",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name))),i.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),i.isNullOrUndefined(t.formula)||e.writeAttributeString("formula",s(t.formula)),i.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),i.isNullOrUndefined(t.memberPropertyField)||e.writeAttributeString("memberPropertyField","1"),i.isNullOrUndefined(t.propertyName)||e.writeAttributeString("propertyName",t.propertyName),i.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(){b(e,t)},function(){w(e,t)}):e.writeLeafElement("sharedItems",function(){b(e,t)})),v(e,t.fieldGroup)})}function b(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 w(e,t){var r,i;for(r=0;r<t.entities.length;r++)i=t.entities[r],S(e,i)}function C(e,t){var r=null;i.isNullOrUndefined(t.value)||(r=t.value,y(e,t,r))}function S(e,t){var r=null;switch(t.type){case a.PivotSharedItemType.B:e.writeLeafElement("b",function(){i.isNullOrUndefined(t.value)||(r=t.value?"1":"0",y(e,t,r))});break;case a.PivotSharedItemType.D:e.writeLeafElement("d",function(){i.isNullOrUndefined(t.value)||(r=c(new Date(t.value)),y(e,t,r))});break;case a.PivotSharedItemType.E:e.writeLeafElement("e",function(){C(e,t)});break;case a.PivotSharedItemType.M:e.writeLeafElement("m");break;case a.PivotSharedItemType.N:e.writeLeafElement("n",function(){C(e,t)});break;case a.PivotSharedItemType.S:e.writeLeafElement("s",function(){C(e,t)});break;case a.PivotSharedItemType.X:e.writeLeafElement("x",function(){C(e,t)})}}function y(e,t,r){i.isNullOrUndefined(r)||e.writeAttributeString("v",s(r)),i.isNullOrUndefined(t.caption)||e.writeAttributeString("c",t.caption),t.propertyCount>0&&e.writeAttributeString("cp",t.propertyCount),t.isCalculatedItem&&e.writeAttributeString("f","1"),i.isNullOrUndefined(t.isUnusedItem)||e.writeAttributeString("u","1"),i.isNullOrUndefined(t.isBold)||e.writeAttributeString("b","1"),i.isNullOrUndefined(t.backgroundColor)||e.writeAttributeString("bc",t.backgroundColor),i.isNullOrUndefined(t.foregroundColor)||e.writeAttributeString("fc",t.foregroundColor),i.isNullOrUndefined(t.isItalic)||e.writeAttributeString("i","1"),t.formatIndex>0&&e.writeAttributeString("in",t.formatIndex),i.isNullOrUndefined(t.isStrikethrough)||e.writeAttributeString("st","1"),i.isNullOrUndefined(t.isUnderline)||e.writeAttributeString("un","1")}function v(e,t){i.isNullOrUndefined(t)||e.writeElement("fieldGroup",function(){t.parent>0&&e.writeAttributeString("par",t.parent),t.base>=0&&e.writeAttributeString("base",t.base)},function(){var r,n;t.hasRangeGroup&&e.writeLeafElement("rangePr",function(){t.autoStart===!1&&e.writeAttributeString("autoStart","0"),t.autoEnd===!1&&e.writeAttributeString("autoEnd","0"),i.isNullOrUndefined(t.groupInterval)||e.writeAttributeString("groupInterval",t.groupInterval),i.isNullOrUndefined(t.groupBy)||e.writeAttributeString("groupBy",t.groupBy),i.isNullOrUndefined(t.startNum)||e.writeAttributeString("startNum",t.startNum),i.isNullOrUndefined(t.endNum)||e.writeAttributeString("endNum",t.endNum),i.isNullOrUndefined(t.startDate)||e.writeAttributeString("startDate",c(new Date(t.startDate))),i.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,i=function(t){e.writeLeafElement("x",function(){e.writeAttributeString("v",r[t])})};for(t=0;t<r.length;t++)i(t)}),n=t.groupItems,n&&n.length>0&&e.writeElement("groupItems",function(){e.writeAttributeString("count",n.length)},function(){for(var t=0;t<n.length;t++)S(e,n[t])})})}function x(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(){i.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),i.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"),i.isNullOrUndefined(t.defaultMemberUniqueName)||e.writeAttributeString("defaultMemberUniqueName",t.defaultMemberUniqueName),i.isNullOrUndefined(t.allUniqueName)||e.writeAttributeString("allUniqueName",t.allUniqueName),i.isNullOrUndefined(t.allCaption)||e.writeAttributeString("allCaption",t.allCaption),i.isNullOrUndefined(t.dimensionUniqueName)||e.writeAttributeString("dimensionUniqueName",t.dimensionUniqueName),i.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),i.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++)A(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 A(e,t){e.writeElement("fieldUsage",function(){e.writeAttributeString("x",t)})}function k(e,t){e.writeElement("groupLevel",function(){i.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),i.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,i;for(r=0;r<t.groups.length;r++)i=t.groups[r],E(e,i)})})}function E(e,t){e.writeElement("group",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.Name))),i.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),i.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),i.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++)F(e,t.groupMembers[r])})})}function F(e,t){e.writeLeafElement("groupMember",function(){i.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),t.group&&e.writeAttributeString("group",1)})}function I(e,t){t.KPIs&&t.KPIs.length>0&&e.writeElement("kpis",function(){e.writeAttributeString("count",t.KPIs.length)},function(){var r,i;for(r=0;r<t.KPIs.length;r++)i=t.KPIs[r],P(e,i)})}function P(e,t){e.writeLeafElement("kpi",function(){i.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),i.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption),i.isNullOrUndefined(t.displayFolder)||e.writeAttributeString("displayFolder",t.displayFolder),i.isNullOrUndefined(t.measureGroup)||e.writeAttributeString("measureGroup",t.measureGroup),i.isNullOrUndefined(t.parent)||e.writeAttributeString("parent",t.parent),i.isNullOrUndefined(t.value)||e.writeAttributeString("value",t.value),i.isNullOrUndefined(t.goal)||e.writeAttributeString("goal",t.goal),i.isNullOrUndefined(t.status)||e.writeAttributeString("status",t.status),i.isNullOrUndefined(t.trend)||e.writeAttributeString("trend",t.trend),i.isNullOrUndefined(t.weight)||e.writeAttributeString("weight",t.weight),i.isNullOrUndefined(t.time)||e.writeAttributeString("time",t.time)})}function D(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++)R(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++)L(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++)N(e,t.serverFormats[r])})})}function R(e,t){}function L(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++)_(e,t.tpls[r])})})}function _(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 N(e,t){e.writeLeafElement("serverFormat",function(){i.isNullOrUndefined(t.culture)||e.writeAttributeString("culture",t.culture),i.isNullOrUndefined(t.format)||e.writeAttributeString("format",t.format)})}function B(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++)M(e,r[t])})}function M(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 O(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++)G(e,r[t])})}function G(e,t){e.writeLeafElement("calculatedMember",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(t.name)),i.isNullOrUndefined(t.mdx)||e.writeAttributeString("mdx",t.mdx),i.isNullOrUndefined(t.memberName)||e.writeAttributeString("memberName",t.memberName),i.isNullOrUndefined(t.hierarchy)||e.writeAttributeString("hierarchy",t.hierarchy),i.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++)U(e,t.dimensions[r])})}function U(e,t){e.writeLeafElement("dimension",function(){t.measure&&e.writeAttributeString("measure","1"),i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name))),i.isNullOrUndefined(t.uniqueName)||e.writeAttributeString("uniqueName",t.uniqueName),i.isNullOrUndefined(t.caption)||e.writeAttributeString("caption",t.caption)})}function J(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++)W(e,t.measureGroups[r])})}function W(e,t){e.writeLeafElement("measureGroup",function(){t.name&&e.writeAttributeString("name",s(u(t.name))),t.caption&&e.writeAttributeString("caption",t.caption)})}function V(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++)z(e,t.measureDimensionMaps[r])})}function z(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 n.XmlWriter;return t.writeDocument(),t.writeElement("pivotCacheRecords",function(){t.writeAttributeString("xmlns",a.XFileConstants.Hd),t.writeAttributeString("xmlns:r",a.XFileConstants.Ud),t.writeAttributeString("xmlns:mc",a.XFileConstants.Jd),t.writeAttributeString(d,a.XFileConstants.Qd),t.writeAttributeString("xmlns:xr",a.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++)S(e,t[r])})}function K(e,t){var r=new n.XmlWriter;return r.writeDocument(),r.writeElement("pivotTableDefinition",function(){r.writeAttributeString("xmlns",a.XFileConstants.Hd),r.writeAttributeString("xmlns:mc",a.XFileConstants.Jd),r.writeAttributeString(d,a.XFileConstants.Qd),r.writeAttributeString("xmlns:xr",a.XFileConstants.me),i.isNullOrUndefined(t.name)||r.writeAttributeString("name",s(u(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"),i.isNullOrUndefined(t.dataCaption)||r.writeAttributeString("dataCaption",t.dataCaption),i.isNullOrUndefined(t.grandTotalCaption)||r.writeAttributeString("grandTotalCaption",t.grandTotalCaption),i.isNullOrUndefined(t.errorCaption)||r.writeAttributeString("errorCaption",t.errorCaption),t.showError&&r.writeAttributeString("showError","1"),i.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),i.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"),i.isNullOrUndefined(t.pageStyle)||r.writeAttributeString("pageStyle",t.PageStyle),i.isNullOrUndefined(t.pivotTableStyle)||r.writeAttributeString("pivotTableStyle",t.pivotTableStyle),t.published&&r.writeAttributeString("published","1"),i.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"),i.isNullOrUndefined(t.tag)||r.writeAttributeString("tag",t.tag),i.isNullOrUndefined(t.vacatedStyle)||r.writeAttributeString("vacatedStyle",t.vacatedStyle),t.visualTotals===!1&&r.writeAttributeString("visualTotals","0")},function(){q(r,t),Y(r,t),ne(r,t,!0),oe(r,t),ne(r,t,!1),le(r,t),ue(r,t),fe(r,t),me(r,t),be(r,t),Ce(r,t),ye(r,t),Ae(r,t),ke(e,r,t),Fe(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),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(){Re(e,r)})}):e.writeLeafElement("pivotField",function(){Z(e,t)})}function Z(e,t){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name))),i.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"),i.isNullOrUndefined(t.sortType)||e.writeAttributeString("sortType",t.sortType),t.rankBy>=0&&e.writeAttributeString("rankBy",t.rankBy),t.defaultSubtotal===!1&&e.writeAttributeString("defaultSubtotal","0"),i.isNullOrUndefined(t.subtotalCaption)||e.writeAttributeString("subtotalCaption",t.subtotalCaption),t.topAutoShow===!1&&e.writeAttributeString("topAutoShow","0"),i.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])}),i.isNullOrUndefined(t.autoSortScope)||e.writeElement("autoSortScope",function(){te(e,t.autoSortScope)}),r.fillDownLabels&&e.writeElement("extLst",function(){Re(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"),i.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),i.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),i.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"),i.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),i.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(){!i.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++)ie(e,t.indexes[r])})}function ie(e,t){e.writeLeafElement("x",function(){e.writeAttributeString("v",t)})}function ne(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 i,n=r?t.rowFields:t.columnFields;for(i=0;i<n.length;i++)ae(e,n[i])})}function ae(e,t){e.writeLeafElement("field",function(){e.writeAttributeString("x",t)})}function oe(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;!i.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(){i.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 ue(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++)de(e,t.pageFields[r])})}function de(e,t){e.writeLeafElement("pageField",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name))),i.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),i.isNullOrUndefined(t.cap)||e.writeAttributeString("cap",t.cap),i.isNullOrUndefined(t.item)||e.writeAttributeString("item",t.item),i.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++)pe(e,t.dataFields[r])})}function pe(e,t){var r=["difference","index","normal","percent","percentDiff","percentOfCol","percentOfRow","percentOfTotal","runTotal"].indexOf(t.showDataAs)===-1;
45
- e.writeElement("dataField",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name))),i.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),i.isNullOrUndefined(t.subtotal)||e.writeAttributeString("subtotal",t.subtotal),i.isNullOrUndefined(t.showDataAs)||r||e.writeAttributeString("showDataAs",t.showDataAs),i.isNullOrUndefined(t.baseField)||e.writeAttributeString("baseField",t.baseField),i.isNullOrUndefined(t.baseItem)||e.writeAttributeString("baseItem",t.baseItem),i.isNullOrUndefined(t.numberFormatId)||e.writeAttributeString("numFmtId",t.numberFormatId)},function(){!i.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",a.XFileConstants.$d)},function(){e.writeLeafElement("x14:dataField",function(){e.writeAttributeString("pivotShowAs",t)})})})}function me(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++)ge(e,r[t])})}function ge(e,t){t&&t.style&&t.pivotArea&&!t.pivotArea.missed&&e.writeElement("format",function(){"Formatting"===t.action||i.isNullOrUndefined(t.action)||e.writeAttributeString("action",t.action),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function be(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++)we(e,r[t])})}function we(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 Ce(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++)Se(e,t.chartFormats[r])})}function Se(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(){i.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function ye(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++)ve(e,t.pivotHierarchies[r])})}function ve(e,t){e.writeElement("pivotHierarchy",function(){i.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++)xe(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 xe(e,t){e.writeLeafElement("mp",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(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(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name)))})}function Ae(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){i.isNullOrUndefined(t.styleName)||e.writeAttributeString("name",s(u(t.styleName))),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 i,n;for(i=0;i<r.pivotFilters.length;i++)n=r.pivotFilters[i],41!==n.operator&&42!==n.operator&&Ee(e,t,n)})}function Ee(e,r,n){var a=n.operator,o=n.conType,c=t.captionCompareTypeExcel[o][a];r.writeElement("filter",function(){n.fld>=0&&r.writeAttributeString("fld",n.fld),n.mpFld>=0&&r.writeAttributeString("mpFld",n.mpFld),void 0!==c&&r.writeAttributeString("type",c),i.isNullOrUndefined(n.evalOrder)||r.writeAttributeString("evalOrder",n.evalOrder),n.id>=0&&r.writeAttributeString("id",n.id),n.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",n.iMeasureHier),n.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",n.iMeasureFld),i.isNullOrUndefined(n.name)||r.writeAttributeString("name",s(u(n.name))),i.isNullOrUndefined(n.description)||r.writeAttributeString("description",n.description),i.isNullOrUndefined(n.stringValue1)||r.writeAttributeString("stringValue1",n.stringValue1),i.isNullOrUndefined(n.stringValue2)||r.writeAttributeString("stringValue2",n.stringValue2)},function(){if(!i.isNullOrUndefined(n.autoFilter)){var t=e.Aj(n,c);l.writePivotAutoFilter(r,t)}})}function Fe(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++)Pe(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++)Pe(e,t.colHierarchies[r],!1)})}function Pe(e,t,r){var i=r?"rowHierarchyUsage":"colHierarchyUsage";e.writeLeafElement(i,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 Re(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 i,n,a,o,l,s,c,u;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=i.StringEx.O,a=i.Util.oa,o=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"},u={0:"auto",1:"portrait",2:"landscape"};function d(e,t,r){var i=r.Kj(t);i&&e.writeLeafElement("pageMargins",function(){e.writeAttributeString("left",i.left),e.writeAttributeString("right",i.right),e.writeAttributeString("top",i.top),e.writeAttributeString("bottom",i.bottom),e.writeAttributeString("header",i.header),e.writeAttributeString("footer",i.footer)})}t.writePageMargins=d;function f(e,t,r){var i=r.Lj(t);i&&(i.printGridLine||i.printRowColumnsHeaders||i.horizontalCentered||i.verticalCentered)&&e.writeLeafElement("printOptions",function(){i.printRowColumnsHeaders&&e.writeAttributeString("headings","1"),i.printGridLine&&e.writeAttributeString("gridLines","1"),i.horizontalCentered&&e.writeAttributeString("horizontalCentered","1"),i.verticalCentered&&e.writeAttributeString("verticalCentered","1")})}t.writePrintOptions=f;function p(e,t,r){var n=r.Mj(t);n&&e.writeLeafElement("pageSetup",function(){var t=n.useSmartPrint,r=n.paperSizeIndex,a=n.zoomFactor,o=n.firstPageNumber,l=n.smartPrintPagesWidth,d=n.smartPrintPagesHeight,f=c[n.pageOrder],p=u[n.orientation],h=n.copies;t&&(void 0===l&&(l=0),void 0===d&&(d=0)),!i.isNullOrUndefined(r)&&r>1&&e.writeAttributeString("paperSize",r),!i.isNullOrUndefined(a)&&Math.abs(a-1)>.01&&e.writeAttributeString("scale",Math.round(100*a)),i.isNullOrUndefined(o)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(o)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(d>0&&1!==d||0===d)&&e.writeAttributeString("fitToHeight",d),i.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),i.isNullOrUndefined(p)||0===p||e.writeAttributeString("orientation",p),n.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),n.draft===!0&&e.writeAttributeString("draft","1"),n.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=p;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!n(e.header)||!n(e.footer)||!n(t.headerOddPage)||!n(t.footerOddPage)||!n(t.headerEvenPage)||!n(t.footerEvenPage)||!n(t.headerFirstPage)||!n(t.footerFirstPage))}function m(e,t,r){var i,o=r.Mj(t);o&&h(o)&&(i=o.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){i.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),i.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),i.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),i.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){n(i.headerOddPage)?n(o.header)||e.writeElementString("oddHeader",a(o.header)):e.writeElementString("oddHeader",a(i.headerOddPage)),n(i.footerOddPage)?n(o.footer)||e.writeElementString("oddFooter",a(o.footer)):e.writeElementString("oddFooter",a(i.footerOddPage)),n(i.headerEvenPage)||e.writeElementString("evenHeader",a(i.headerEvenPage)),n(i.footerEvenPage)||e.writeElementString("evenFooter",a(i.footerEvenPage)),n(i.headerFirstPage)||e.writeElementString("firstHeader",a(i.headerFirstPage)),n(i.footerFirstPage)||e.writeElementString("firstFooter",a(i.footerFirstPage))}))}t.writeHeadFooter=m;function g(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 b(e,t,r){var i=r.Mj(t);i&&(g(e,i.rowBreakLines,"rowBreaks"),g(e,i.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=b;function w(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=w;function C(e,t,r,i){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:"+i)},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 S(e,t,r,i,n,a,o){e.writeAttributeString(t,r),e.writeAttributeString(i,n),e.writeAttributeString(a,o)}t.writeVmlDrawingFile=function(e){var t=new o.XmlWriter;return t.writeElement("xml",function(){S(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(){S(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,i=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)&&(C(t,e,r,i),r++,i++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xml-io/xml-writer.ts"),o=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts");function s(e){var t=new a.XmlWriter;return t.writeDocument(),t.writeElement("sst",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("count",""+e.Pn),t.writeAttributeString("uniqueCount",""+e.Qn.length)},function(){var r,n,a=function(r,n){var a=e.Qn[r],s=a.value,c=s.length!==s.trim().length;t.writeElement("si",void 0,function(){var e,r,n,u=function(){c&&t.writeAttributeString("xml:space","preserve")};if(a.richText)for(e=a.richText,r=function(r){void 0!==e[r].text&&t.writeElement("r",void 0,function(){l.writerRichTextStyle(t,o.ConverterHelper.fromRichTextStyle(e[r].style)),e[r].text&&(c=e[r].text.length!==e[r].text.trim().length),t.writeElement("t",function(){u()},function(){t.writeValue(i.Util.oa(i.Util.xa(e[r].text,!0)))})})},n=0;n<e.length;n++)r(n);else t.writeElement("t",function(){u()},function(){t.writeValue(i.Util.oa(i.Util.xa(s,!0)))})})};for(r=0,n=e.Qn.length;r<n;r++)a(r,n)}),t.getXmlString()}t.writeSharedString=s},"./src/xlsx-io/writer/slicer-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=r("./src/datamodel/excel-style.ts"),l=o.UnitHelper.pixelToEMU,s=a.Util.oa,c=a.Util.ua,u="http://schemas.microsoft.com/office/drawing/2012/timeslicer",d="mc:Ignorable";function f(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("slicers",function(){t.writeAttributeString("xmlns",n.XFileConstants.ce),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString(d,"x"),t.writeAttributeString("xmlns:x",n.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)),a.isNullOrUndefined(e.columnCount)||t.writeAttributeString("columnCount",e.columnCount),a.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showCaption","0"),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 p(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function h(e,t,r){var i=null;return r.forEach(function(r){r.name===t&&r.columns.forEach(function(t){t.name===e&&(i=t.id)})}),i}function m(e,t){var r,o,l;return a.isNullOrUndefined(e)?null:(r=p(e.tableName,t),o=h(e.columnName,e.tableName,t),l=new i.XmlWriter,l.writeDocument(),l.writeElement("slicerCacheDefinition",function(){l.writeAttributeString("xmlns",n.XFileConstants.ce),l.writeAttributeString("xmlns:mc",n.XFileConstants.ae),l.writeAttributeString(d,"x"),l.writeAttributeString("xmlns:x",n.XFileConstants.be),l.writeAttributeString("name",s(e.name)),l.writeAttributeString("sourceName",s(e.sourceName))},function(){l.writeElement("extLst",function(){},function(){l.writeElement("x:ext",function(){l.writeAttributeString("uri","{2F2917AC-EB37-4324-AD4E-5DD8C200BD13}"),l.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){l.writeLeafElement("x15:tableSlicerCache",function(){l.writeAttributeString("tableId",r),l.writeAttributeString("column",o),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",n.XFileConstants.de)},function(){l.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),l.getXmlString())}t.writeTableSlicerCache=m;function g(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("slicerCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.ce),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString(d,"x"),t.writeAttributeString("xmlns:x",n.XFileConstants.be),t.writeAttributeString("name",s(e.name)),t.writeAttributeString("sourceName",s(e.sourceName))},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",n.XFileConstants.de)},function(){t.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),t.getXmlString()}t.writePivotSlicerCache=g;function b(e,t,r){var i=r.Ej(t,"pivot"),a=r.Ej(t,"timeline"),o=r.Dj(t);i&&i.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{A8765BA9-456A-4dab-B4F3-ACF838C121DE}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.ce)},function(){e.writeElement("x14:slicerList",function(){i[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",i[0].rid)})})}),a&&a.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{7E03D99C-DC04-49d9-9315-930204A7B6E9}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x15:timelineRefs",function(){a[0].rid&&e.writeLeafElement("x15:timelineRef",function(){e.writeAttributeString("r:id",a[0].rid)})})}),o&&o.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x14:slicerList",function(){e.writeAttributeString("xmlns:x14",n.XFileConstants.ce)},function(){o[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",o[0].rid)})})})}t.writeSlicersInWorkSheet=b;function w(e,t,r){var i,a=t&&t.length>0,o=!1,l=!1,s=[],c=[];if(r)for(i=0;i<r.length;i++)r[i].boundsStartDate?(l=!0,c.push(r[i])):(o=!0,s.push(r[i]));e.writeElement("extLst",function(){},function(){o&&e.writeElement("ext",function(){e.writeAttributeString("uri","{BBE1A952-AA13-448e-AADC-164F8A28A991}"),e.writeAttributeString("xmlns:x14",n.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)})})})}),a&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{46BE6895-7355-4a93-B00E-2C351335B9C9}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x15:slicerCaches",function(){e.writeAttributeString("xmlns:x14",n.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",n.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",n.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)})})})}),(o||l)&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{79F54976-1DA5-4618-B147-4CDE4B953A38}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.de)},function(){e.writeElement("x14:workbookPr",function(){})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{140A7094-0E35-4892-8432-C4D2E57EDEB5}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x15:workbookPr",function(){e.writeAttributeString("chartTrackingRefBase","1")},function(){})}))})}t.writeSlicerCacheInWorkbook=w;function C(e,t,r){t.forEach(function(t){S(e,t,r)})}t.writeSlicerDrawings=C;function S(e,t,r){var i=t&&t.twoCellAnchor;i&&e.writeElement("xdr:twoCellAnchor",function(){t.dynamicMove?t.dynamicSize||e.writeAttributeString("editAs","oneCell"):e.writeAttributeString("editAs","absolute")},function(){r(e,"xdr:from",i.startPoint),r(e,"xdr:to",i.endPoint),v(e,t),y(e,t)})}function y(e,t){e.writeLeafElement("xdr:clientData",function(){t.isLocked||e.writeAttributeString("fLocksWithSheet","0")})}function v(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc",n.XFileConstants.ae)},function(){x(e,t),R(e,t)})}function x(e,t){e.writeElement("mc:Choice",function(){"timeline"===(t&&t.type)?(e.writeAttributeString("xmlns:tsle",u),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(){A(e,t),k(e),E(e,t)})}function A(e,t){e.writeElement("xdr:nvGraphicFramePr",function(){},function(){F(e,t),D(e,t)})}function k(e){e.writeElement("xdr:xfrm",function(){},function(){I(e,"a:off","x","0","y","0"),I(e,"a:ext","cx","0","cy","0")})}function E(e,t){e.writeElement("a:graphic",function(){},function(){P(e,t)})}function F(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(){I(e,"a16:creationId","xmlns:a16","http://schemas.microsoft.com/office/drawing/2014/main","id","{729A7851-DBA1-4F10-BB7B-BEC1E3EEDA64}")})})})}function I(e,t,r,i,n,a){e.writeLeafElement(t,function(){e.writeAttributeString(r,i),e.writeAttributeString(n,a)})}function P(e,t){e.writeElement("a:graphicData",function(){"timeline"===(t&&t.type)?e.writeAttributeString("uri",u):e.writeAttributeString("uri","http://schemas.microsoft.com/office/drawing/2010/slicer")},function(){"timeline"===(t&&t.type)?I(e,"tsle:timeslicer","xmlns:tsle",u,"name",s(c(t.name,"\n","&#xA;"))):I(e,"sle:slicer","xmlns:sle","http://schemas.microsoft.com/office/drawing/2010/slicer","name",s(c(t.name,"\n","&#xA;")))})}function D(e,t){e.writeElement("xdr:cNvGraphicFramePr",function(){e.writeLeafElement("a:graphicFrameLocks",function(){t.disableResizingAndMoving&&(e.writeAttributeString("noMove","1"),e.writeAttributeString("noResize","1"))})})}function R(e,t){e.writeElement("mc:Fallback",function(){e.writeAttributeString("xmlns","")},function(){L(e,t)})}function L(e,t){e.writeElement("xdr:sp",function(){e.writeAttributeString("macro",""),e.writeAttributeString("textlink","")},function(){_(e),O(e),z(e,t)})}function _(e){e.writeElement("xdr:nvSpPr",function(){},function(){I(e,"xdr:cNvPr","id","0","name",""),B(e)})}function N(e,t,r){e.writeElement(t,function(){},function(){M(e,r[0],r[1],r[2])})}function B(e){N(e,"xdr:cNvSpPr",["a:spLocks","noTextEdit","1"])}function M(e,t,r,i){e.writeLeafElement(t,function(){e.writeAttributeString(r,i)})}function O(e){e.writeElement("xdr:spPr",function(){},function(){G(e),H(e),J(e),W(e)})}function G(e){e.writeElement("a:xfrm",function(){},function(){I(e,"a:off","x","5486400","y","942975"),I(e,"a:ext","cx","1828800","cy","2524125")})}function H(e){e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){U(e)})}function U(e){e.writeLeafElement("a:avLst")}function J(e){N(e,"a:solidFill",["a:prstClr","val","white"])}function W(e){e.writeElement("a:ln",function(){e.writeAttributeString("w","1")},function(){V(e)})}function V(e){N(e,"a:solidFill",["a:prstClr","val","green"])}function z(e,t){e.writeElement("xdr:txBody",function(){},function(){I(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(){I(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 i,n,a,o,l,s,c,u,d,f;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/common/range-parser.ts"),o=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=n.IndexHelper.V,c=n.Util.oa;function p(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",i.XFileConstants.$d)},function(){h(e,t,r)})}t.writeSparkline=p;function h(e,t,r){e.writeElement("x14:sparklineGroups",function(){e.writeAttributeString("xmlns:xm",i.XFileConstants._d)},function(){var i=r.zj(t);i.length>0&&i.forEach(function(r){m(e,t,r)})})}t.writeSparklineGroups=h,
46
- u={0:"line",1:"column",2:"stacked"},d={2:"span",0:"gap",1:"zero"},f={0:"individual",1:"group",2:"custom"};function m(e,t,r){e.writeElement("x14:sparklineGroup",function(){var t=r&&r.setting;r.sparklineType&&e.writeAttributeString("type",u[r.sparklineType]),r.displayDateAxis&&e.writeAttributeString("dateAxis","1"),n.isNullOrUndefined(t)||(!n.isNullOrUndefined(t.lineWeight)&&3*(""+t.lineWeight)/4-.75>.001&&e.writeAttributeString("lineWeight",3*(""+t.lineWeight)/4),t.displayEmptyCellsAs?e.writeAttributeString("displayEmptyCellsAs",d[t.displayEmptyCellsAs]):e.writeAttributeString("displayEmptyCellsAs",d[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 i=r&&r.setting,n=o.ColorHelper.toExcelColor(i.seriesColor||"rgba(36,64,98,1.0)");l.writeColor(e,"x14:colorSeries",n),n=o.ColorHelper.toExcelColor(i.negativeColor||"brown"),l.writeColor(e,"x14:colorNegative",n),n=o.ColorHelper.toExcelColor(i.axisColor||"black"),l.writeColor(e,"x14:colorAxis",n),n=o.ColorHelper.toExcelColor(i.markersColor||"rgba(36,64,98,1.0)"),l.writeColor(e,"x14:colorMarkers",n),n=o.ColorHelper.toExcelColor(i.firstMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorFirst",n),n=o.ColorHelper.toExcelColor(i.lastMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorLast",n),n=o.ColorHelper.toExcelColor(i.highMarkerColor||"blue"),l.writeColor(e,"x14:colorHigh",n),n=o.ColorHelper.toExcelColor(i.lowMarkerColor||"blue"),l.writeColor(e,"x14:colorLow",n),r.displayDateAxis&&r.axisReference&&e.writeElement("xm:f",function(){"string"==typeof r.axisReference?e.writeValue(r.axisReference):e.writeValue(b(r.axisReference.sheetName||t,r.axisReference))}),r.sparklines&&r.sparklines.length>0&&e.writeElement("x14:sparklines",function(){r.sparklines.forEach(function(r){g(e,t,r)})})})}t.writeSparklineGroup=m;function g(e,t,r){e.writeElement("x14:sparkline",function(){n.isNullOrUndefined(r.data)||(e.writeElement("xm:f",function(){},function(){"string"==typeof r.data?e.writeValue(r.data):e.writeValue(b(r.data.sheetName||t,r.data))}),e.writeElement("xm:sqref",function(){},function(){e.writeValue(a.getRangeString([{row:r.row,col:r.col,rowCount:1,colCount:1}]))}))})}function b(e,t){return c(s(e)+"!"+a.getRangeString([t]))}},"./src/xlsx-io/writer/style-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/tuple.ts"),o=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"),u=void 0,d={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"},p={selectionLabelStyle:"selectionLabel",timeLevelStyle:"timeLevel",periodLabel1Style:"periodLabel1",periodLabel2Style:"periodLabel2",selectedTimeBlockStyle:"selectedTimeBlock",unselectedTimeBlockStyle:"unselectedTimeBlock",selectedTimeBlockSpaceStyle:"selectedTimeBlockSpace"};function h(e,t,r,i,n,a,o){e.writeAttributeString(t,r),e.writeAttributeString(i,n),e.writeAttributeString(a,o)}function m(e,t){var r=v(e,t),o=new i.XmlWriter;return o.writeDocument(),o.writeElement("styleSheet",function(){o.writeAttributeString("xmlns",n.XFileConstants.Hd),o.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),o.writeAttributeString("xmlns:x14ac",n.XFileConstants.Nd),o.writeAttributeString("mc:Ignorable",n.XFileConstants.Od)},function(){var t,i,n,l,c,f,p;if(r.gn.count>0&&o.writeElement("numFmts",function(){o.writeAttributeString("count",""+r.gn.count)},function(){for(var e in r.gn)r.gn.hasOwnProperty(e)&&"count"!==e&&x(o,{key:e,value:r.gn[e]})}),o.writeElement("fonts",function(){o.writeAttributeString("count",""+r.Rn.length)},function(){for(var e=0,t=r.Rn.length;e<t;e++)T(o,r.Rn[e])}),o.writeElement("fills",function(){o.writeAttributeString("count",""+r.Sn.length)},function(){var e,t=function(e){o.writeElement("fill",u,function(){o.writeLeafElement("patternFill",function(){o.writeAttributeString("patternType",e)})})};for(t("none"),t("gray125"),e=2;e<r.Sn.length;e++)k(o,r.Sn[e])}),o.writeElement("borders",function(){o.writeAttributeString("count",""+r.Tn.length)},function(){for(var e=0,t=r.Tn.length;e<t;e++)E(o,r.Tn[e])}),I(o,r.Un,"cellStyleXfs",!0),I(o,r.Vn,"cellXfs",!1),0===r.af.length)D(o);else{for(t=[],i=Object.keys(r.Wn),n=i.length,l=0,c=n;l<c;l++)f=i[l],p=r.Wn[f],t.push(new a.Tuple(p,r.af[p],f));0===t.length?D(o):o.writeElement("cellStyles",function(){o.writeAttributeString("count",""+t.length)},function(){var e,r,i=function(e,r){var i=t[e],n=i.item2;n?o.writeLeafElement("cellStyle",function(){o.writeAttributeString("name",s.Util.oa(i.item3)),o.writeAttributeString("xfId",""+i.item1),n.isBuiltInStyle()&&(o.writeAttributeString("builtinId",""+n.builtInStyle),n.isCustomBuiltin&&o.writeAttributeString("customBuiltin","1"),1!==n.builtInStyle&&2!==n.builtInStyle||o.writeAttributeString("iLevel",""+n.outLineLevel))}):o.writeLeafElement("cellStyle",function(){o.writeAttributeString("name",i.item3),o.writeAttributeString("xfId",""+i.item1)})};for(e=0,r=t.length;e<r;e++)i(e,r)})}L(o,e),e.mh.length>0?o.writeElement("tableStyles",function(){o.writeAttributeString("count",e.mh.length),o.writeAttributeString("defaultTableStyle","TableStyleMedium2"),o.writeAttributeString("defaultPivotStyle","PivotStyleMedium9")},function(){var t=e.mh;t&&t.forEach(function(e){o.writeElement("tableStyle",function(){o.writeAttributeString("name",e.name),e.isPivot?o.writeAttributeString("table","0"):(o.writeAttributeString("pivot","0"),s.isNullOrUndefined(e.tableId)||o.writeAttributeString("table",e.tableId)),o.writeAttributeString("count",e.styleElements.length)},function(){e.styleElements&&e.styleElements.length>0&&e.styleElements.forEach(function(e){o.writeLeafElement("tableStyleElement",function(){o.writeAttributeString("type",d[e.type]),o.writeAttributeString("dxfId",e.dxfId),s.isNullOrUndefined(e.size)||o.writeAttributeString("size",e.size)})})})})}):o.writeLeafElement("tableStyles",function(){h(o,"count","0","defaultTableStyle","TableStyleMedium2","defaultPivotStyle","PivotStyleLight16")}),(e.oh.length>0||e.qh.length>0)&&o.writeElement("extLst",function(){e.oh.length>0&&(g(o,e),w(o,e.oh)),e.qh.length>0&&(b(o,e),C(o,e.qh))})}),{xml:o.getXmlString(),styleOffset:r.Xn}}t.writeStyle=m;function g(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{46F421CA-312F-682f-3DD2-61675219B42D}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.ce)},function(){_(e,t)})}function b(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){N(e,t)})}function w(e,t){var r,i="SlicerStyle",a="Light",o="Dark",l=["SlicerStyleOther1","SlicerStyleOther2"];for(r=1;r<7;r++)l.push(i+a+r),l.push(i+o+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"),e.writeAttributeString("xmlns:x14",n.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 C(e,t){var r,i="TimeSlicerStyle",a="Light",o="Dark",l=[];for(r=1;r<7;r++)l.push(i+a+r),l.push(i+o+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{9260A510-F301-46a8-8635-F512D64BE5F5}"),e.writeAttributeString("xmlns:x15",n.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",p[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function S(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 y(e,t){var r,i=e.length;if(0===i)return-1;for(r=0;r<i;r++)if(e[r].equals(t,!0))return r;return-1}function v(e,t){var r,i,n,c,d,f,p,h,m,g,b,w,C,v,x,T,A,k,E,F,I,P,D,R,L,_={Xn:0,Rn:[],Sn:[],Tn:[],gn:{count:0},Yn:{},Un:u,af:u,Wn:e.Sj()},N=e.gj(),B=e.hj(),M=e.ij();if(M&&0!==M.length||(B?(r=new o.ExcelStyle,r.builtInStyle=0,r.name="Normal",r.format(B),M=[],M.push(r)):(M=[],M.push(o.BuiltInExcelStyles.getNormalStyle()))),i="Normal",M)for(n=0,c=M.length;n<c;n++)d=M[n],d.isBuiltInStyle()&&0===d.builtInStyle&&(i=d.name);for(_.af=M,f=s.Util.ka(M,function(e){return e.name===i},null),p=s.Util.ka(N,function(e){return!e.isStyleFormat},null),h=s.Util.ka(N,function(e){return e.isStyleFormat},null),null!==p&&p.equals(B,!0)||(N.splice(0,0,B),_.Xn+=1),null!==h&&h.equals(f.format())||(N.splice(0,0,f.format()),_.Xn+=1),m=0,g=0,b=0,w=0,C=f.format(),v=S(C.fontForColumnWidth?C.fontForColumnWidth:C.font),_.Rn.push(v),x=new l.ExcelFill,x.patternType=0,x.bgColor=o.ExcelColor.EmptyColor,x.fgColor=o.ExcelColor.EmptyColor,_.Sn.push(x),x=new l.ExcelFill,x.patternType=17,x.bgColor=o.ExcelColor.EmptyColor,x.fgColor=o.ExcelColor.EmptyColor,_.Sn.push(x),_.Tn.push(new o.ExcelBorder),_.Vn=[],_.Un=[],T=0,n=0,c=N.length;n<c;n++)A=N[n],A.font&&(m=s.Util.la(_.Rn,A.font),m===-1&&(_.Rn.push(S(A.font)),m=_.Rn.length-1)),A.numberFormat?(g=A.numberFormat.numberFormatId,void 0===_.gn[g]&&_.gn.count++,_.gn[g]=s.Util.ua(A.numberFormat.numberFormatCode,"\n","_x000a_"),_.Yn[A.numberFormat.numberFormatCode]=g):A.numberFormatIndex>=0&&(g=A.numberFormatIndex),A.border&&(w=s.Util.la(_.Tn,A.border),w===-1&&(_.Tn.push(A.border),w=_.Tn.length-1)),s.isNullOrUndefined(A.fill)||0===A.fill.patternType?b=0:(k=A.fill,b=s.Util.la(_.Sn,k),b===-1&&(_.Sn.push(k),b=_.Sn.length-1)),A.isStyleFormat?(t[T]=""+_.Un.length,T++,_.Un.push(new a.Tuple(g,m,b,w,0,A,new a.Tuple(A.isHidden,A.isLocked)))):(E=new a.Tuple(g,m,b,w,0,A,new a.Tuple(A.isHidden,A.isLocked)),F=y(_.Vn,E),F===-1?(t[T]=""+_.Vn.length,_.Vn.push(E)):t[T]=""+F,T++);if(e.Ih&&e.Ih.length>0)for(I=e.Ih,P=I.length,n=0;n<P;n++)D=I[n],R=void 0,L=void 0,D.numberFormat?(R=D.numberFormat.numberFormatId,L=D.numberFormat.numberFormatCode):(R=D.numberFormatIndex,L=o.ExtendedNumberFormatHelper.getFormatCode(D)),void 0===_.gn[R]&&_.gn.count++,_.gn[R]=L,_.Yn[L]=g;return e.Yn=_.Yn,_}function x(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",u,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 i=t.fontSize;i>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+i)})}void 0!==t.fontColor&&t.fontColor!==o.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",o.FontSchemeCategory[t.fontScheme])}))})}function A(e,t){t&&e.writeElement("rPr",u,function(){if(t.isBold&&e.writeLeafElement("b"),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.foreColor&&t.foreColor!==o.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",o.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=A;function k(e,t,r){e.writeElement("fill",u,function(){t.stops?e.writeElement("gradientFill",function(){var r,i,n,a=["degree","left","right","top","bottom"];for(r=0,i=a;r<i.length;r++)n=i[r],s.isNullOrUndefined(t[n])||e.writeAttributeString(n,t[n]);"path"===t.type&&e.writeAttributeString("type","path")},function(){var r,i=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++)i(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 E(e,t,r){e.writeElement("border",function(){t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&e.writeAttributeString("diagonalDown",1),t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&e.writeAttributeString("diagonalUp",1)},function(){(!r||r&&t.left)&&F(e,"left",t.left),(!r||r&&t.right)&&F(e,"right",t.right),(!r||r&&t.top)&&F(e,"top",t.top),(!r||r&&t.bottom)&&F(e,"bottom",t.bottom),t.vertical&&F(e,"vertical",t.vertical),t.horizontal&&F(e,"horizontal",t.horizontal);var i=!1;t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(F(e,"diagonal",t.diagonalUp),i=!0),t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&!i&&F(e,"diagonal",t.diagonalDown)})}function F(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 I(e,t,r,i){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"),i||e.writeAttributeString("xfId","0")})}):e.writeElement(r,function(){e.writeAttributeString("count",""+t.length)},function(){var r,n,a=function(r,n){var a=t[r],c=a.item6,u=a.item7,d=0!==c.horizontalAlign||2!==c.verticalAlign||0!==c.rotation||0!==c.readingOrder||c.isWordWrap||c.isShrinkToFit||c.isJustfyLastLine||c.indent>0,f=u&&(u.item1||!u.item2),p="writeElement";d||f||(p="writeLeafElement"),e[p]("xf",function(){if(e.writeAttributeString("numFmtId",""+a.item1),e.writeAttributeString("fontId",""+a.item2),e.writeAttributeString("fillId",""+a.item3),e.writeAttributeString("borderId",""+a.item4),c){if(i)P(e,c,"applyFont",!0),P(e,c,"applyFill",!0),P(e,c,"applyBorder",!0),P(e,c,"applyNumberFormat",!0),P(e,c,"applyAlignment",!0),P(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===a.item2||P(e,c,"applyFont",!1),s.isNullOrUndefined(c.applyFill)||P(e,c,"applyFill",!1),s.isNullOrUndefined(c.applyBorder)||P(e,c,"applyBorder",!1),s.isNullOrUndefined(c.applyNumberFormat)||P(e,c,"applyNumberFormat",!1),s.isNullOrUndefined(c.applyAlignment)||P(e,c,"applyAlignment",!1),s.isNullOrUndefined(c.applyProtection)||P(e,c,"applyProtection",!1)}s.isNullOrUndefined(c.quotePrefix)||e.writeAttributeString("quotePrefix",c.quotePrefix===!0?"1":"0")}},function(){d&&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",o.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(){u.item2||e.writeAttributeString("locked","0"),u.item1&&e.writeAttributeString("hidden","1")})})};for(r=0,n=t.length;r<n;r++)a(r,n)})}function P(e,t,r,i){var n=t[r],a;i&&n===!1?a="0":i||n!==!0||(a="1"),s.isNullOrUndefined(a)||e.writeAttributeString(r,a)}function D(e){e.writeElement("cellStyles",function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("cellStyle",function(){h(e,"name","Normal","builtinId","0","xfId","0")})})}function R(e,t,r){for(var i=0;i<r.length;i++)B(e,t,r[i],"dxf")}function L(e,t,r){var i=r?r:t.hf;0===i.length?e.writeLeafElement("dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("dxfs",function(){e.writeAttributeString("count",i.length)},function(){R(e,t,i)})}function _(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(){R(e,t,r)})}function N(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 i=0;i<r.length;i++)B(e,t,r[i],"dxf")})}function B(e,t,r,i){e.writeElement(i,function(){var i,n,a=r.isColorFilter?r:o.ConverterHelper.toDifferentialFormatting(r,t);a.font&&T(e,a.font,a.isPartFontStyle),(a.numberFormat||a.numberFormatIndex>=0)&&(i=void 0,n=void 0,a.numberFormat?(i=a.numberFormat.numberFormatId,n=a.numberFormat.numberFormatCode):(i=a.numberFormatIndex,n=a.numberFormatCode),x(e,{key:i,value:n})),a.fill&&(1===a.fill.patternType&&(a.fill.bgColor=a.fill.fgColor),k(e,a.fill,!0)),a.border&&E(e,a.border,a.isSlicerHeader)})}t.writeDxf=B},"./src/xlsx-io/writer/table-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=r("./src/common/range-parser.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts");function c(e){return e.indexOf("LET(")>-1}function u(e,t){var r=e;return"number"==typeof t[e]?(t[e]++,r+="_"+t[e]):t[e]=0,r}function d(e,t,r,s){if(a.isNullOrUndefined(e))return null;var d=new i.XmlWriter;return d.writeDocument(),d.writeElement("table",function(){var t,r;d.writeAttributeString("xmlns",n.XFileConstants.Md),d.writeAttributeString("id",e.id),t=e.name.split(" ").join("_"),d.writeAttributeString("name",t),r=u(t.split("-").join("_"),s),d.writeAttributeString("displayName",r),d.writeAttributeString("ref",o.getRangeString([{row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount}])),e.showHeader===!1&&d.writeAttributeString("headerRowCount","0"),e.showFooter&&d.writeAttributeString("totalsRowCount","1")},function(){var i,n;e.rowFilter&&!a.isNullOrUndefined(e.rowFilter)&&(i=void 0,n=t.Bj(r,e.rowFilter,e.tableSortInfo),n&&n.sortInfo&&(i=n.sortInfo,n.sortInfo=null),e.showHeader!==!1&&(f(e.rowFilter)||h(n),l.writeAutoFilter(d,n)),i&&l.writeSortInfo(d,i)),e.columns&&e.columns.length>0&&d.writeElement("tableColumns",function(){d.writeAttributeString("count",e.columns.length)},function(){e.columns.forEach(function(t,r){if(!(r>=e.colCount)){var i=p(t.footerFormula);"custom"!==i?d.writeElement("tableColumn",function(){d.writeAttributeString("id",""+t.id);var e=t.name;e=a.Util.ua(e,"\r",""),d.writeAttributeString("name",a.Util.oa(a.Util.ua(e,"\n","_x000a_"))),a.isNullOrUndefined(t.footerValue)||d.writeAttributeString("totalsRowLabel",a.Util.oa(a.Util.xa(""+t.footerValue,!0))),a.isNullOrUndefined(t.footerFormula)||d.writeAttributeString("totalsRowFunction",i)},function(){var e=t.dataAreaFormula;a.isNullOrUndefined(e)||c(e)||d.writeElement("calculatedColumnFormula",function(){d.writeValue(a.Util.oa(a.addXLFNPrefix(e)))})}):d.writeElement("tableColumn",function(){d.writeAttributeString("id",""+t.id);var e=t.name;e=a.Util.ua(e,"\r",""),d.writeAttributeString("name",a.Util.oa(a.Util.ua(e,"\n","_x000a_"))),d.writeAttributeString("totalsRowFunction","custom")},function(){var e=t.dataAreaFormula;a.isNullOrUndefined(e)||c(e)||d.writeElement("calculatedColumnFormula",function(){d.writeValue(a.Util.oa(a.addXLFNPrefix(e)))}),d.writeElement("totalsRowFormula",function(){d.writeValue(a.Util.oa(t.footerFormula))})})}})}),d.writeLeafElement("tableStyleInfo",function(){if(e.style){var t="";t=a.isNullOrUndefined(e.style.buildInName)?e.style.name:"TableStyle"+e.style.buildInName,d.writeAttributeString("name",t)}e.highlightFirstColumn?d.writeAttributeString("showFirstColumn","1"):d.writeAttributeString("showFirstColumn","0"),e.highlightLastColumn?d.writeAttributeString("showLastColumn","1"):d.writeAttributeString("showLastColumn","0"),a.isNullOrUndefined(e.bandRows)?d.writeAttributeString("showRowStripes","1"):d.writeAttributeString("showRowStripes","0"),e.bandColumns?d.writeAttributeString("showColumnStripes","1"):d.writeAttributeString("showColumnStripes","0")}),e.reservedElement&&d.writeElement("extLst",function(){},function(){d.writeElement("ext",function(){a.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr.uri)||d.writeAttributeString("uri",e.reservedElement.ext._attr.uri),a.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr["xmlns:x14"])||d.writeAttributeString("xmlns:x14",e.reservedElement.ext._attr["xmlns:x14"])},function(){var t,r="vp:columns",i=e.reservedElement.ext[r];a.isNullOrUndefined(i)||d.writeElement(r,function(){a.isNullOrUndefined(i._attr&&i._attr["xmlns:vp"])||d.writeAttributeString("xmlns:vp",i._attr["xmlns:vp"])},function(){a.isNullOrUndefined(i[r])||d.writeValue(i[r])}),t=e.reservedElement.ext["x14:table"],a.isNullOrUndefined(t&&t._attr)||d.writeLeafElement("x14:table",function(){a.isNullOrUndefined(t._attr.altText)||d.writeAttributeString("altText",t._attr.altText),a.isNullOrUndefined(t._attr.altTextSummary)||d.writeAttributeString("altTextSummary",t._attr.altTextSummary)})})})}),d.getXmlString()}t.writeTable=d;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 p(e){var t,r;if(!a.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 i,n,a,o,l;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/builtIn-resource.ts"),o=r("./src/xlsx-io/common/color-writer.ts");function s(e){var t,r=e.Hi();return r||(r="Office"),t=new i.XmlWriter,t.writeDocument(),t.writeElement("a:theme",function(){t.writeAttributeString("xmlns:a",n.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,i;r&&r.colorScheme?(e=r.colorScheme,t.writeElement("a:clrScheme",function(){t.writeAttributeString("name",e.name)},function(){o.writeColorScheme(t,"a:dk1",e.schemeColors[1]),o.writeColorScheme(t,"a:lt1",e.schemeColors[0]),o.writeColorScheme(t,"a:dk2",e.schemeColors[3]),o.writeColorScheme(t,"a:lt2",e.schemeColors[2]),o.writeColorScheme(t,"a:accent1",e.schemeColors[4]),o.writeColorScheme(t,"a:accent2",e.schemeColors[5]),o.writeColorScheme(t,"a:accent3",e.schemeColors[6]),o.writeColorScheme(t,"a:accent4",e.schemeColors[7]),o.writeColorScheme(t,"a:accent5",e.schemeColors[8]),o.writeColorScheme(t,"a:accent6",e.schemeColors[9]),o.writeColorScheme(t,"a:hlink",e.schemeColors[10]),o.writeColorScheme(t,"a:folHlink",e.schemeColors[11])})):a.ThemeClrSchemes[r]?t.xml.addString(a.ThemeClrSchemes[r]):t.xml.addString(a.ThemeClrSchemes.Office),r&&r.fontScheme?(i=r.fontScheme,t.writeElement("a:fontScheme",function(){t.writeAttributeString("name",i.name)},function(){t.writeElement("a:majorFont",void 0,function(){c(t,i.majorFont,!0)}),t.writeElement("a:minorFont",void 0,function(){c(t,i.minorFont,!1)})})):a.ThemeFontSchemes[r]?t.xml.addString(a.ThemeFontSchemes[r]):t.xml.addString(a.ThemeFontSchemes.Office),a.ThemeFmtSchemes[r]?t.xml.addString(a.ThemeFmtSchemes[r]):t.xml.addString(a.ThemeFmtSchemes.Office)}),t.writeLeafElement("a:objectDefaults"),t.writeLeafElement("a:extraClrSchemeLst")}),t.getXmlString()}t.writeTheme=s;function c(e,t,r){var i,a,o;if(t)if(t.runFormattings&&(e.writeLeafElement("a:"+n.FontLanguage[0],function(){e.writeAttributeString("typeface",f(t.runFormattings,0))}),e.writeLeafElement("a:"+n.FontLanguage[2],function(){e.writeAttributeString("typeface",f(t.runFormattings,2))}),e.writeLeafElement("a:"+n.FontLanguage[1],function(){e.writeAttributeString("typeface",f(t.runFormattings,1))})),t.themesFonts&&t.themesFonts.length>0)for(i=function(r,i){var n=t.themesFonts[r];e.writeLeafElement("a:font",function(){e.writeAttributeString("script",n.script),e.writeAttributeString("script",n.typeface)})},a=0,o=t.themesFonts.length;a<o;a++)i(a,o);else r?u(e):d(e)}t.writeThemeFonts=c,l="Times New Roman";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",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")}),
47
- 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 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","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,i,n;if(!e)return"";for(r=0,i=e.length;r<i;r++)if(n=e[r],n.fontLanguage===t)return n.typeface;return""}},"./src/xlsx-io/writer/timeline-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=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=a.Util.Ba,u=a.Util.oa,d=a.Util.ua,f=[0,6,10,8,9,17,15,16,14,12,13,18,19,20,21,22,23,40];function p(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("timelines",function(){t.writeAttributeString("xmlns",n.XFileConstants.de),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString("mc:Ignorable","x"),t.writeAttributeString("xmlns:x",n.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("timeline",function(){t.writeAttributeString("name",u(d(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",u(e.nameInFormula)),t.writeAttributeString("caption",u(e.captionName)),t.writeAttributeString("level",parseInt(e.level,10)-1),t.writeAttributeString("style",u(e.style.name)),a.isNullOrUndefined(e.selectionLevel)||t.writeAttributeString("selectionLevel",parseInt(e.selectionLevel,10)-1),a.isNullOrUndefined(e.scrollPosition)||t.writeAttributeString("scrollPosition",c(new Date(e.scrollPosition))),a.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showHeader","0"),a.isNullOrUndefined(e.showSelectionLabel)||e.showSelectionLabel||t.writeAttributeString("showSelectionLabel","0"),a.isNullOrUndefined(e.showTimeLevel)||e.showTimeLevel||t.writeAttributeString("showTimeLevel","0"),a.isNullOrUndefined(e.showHorizontalScrollbar)||e.showHorizontalScrollbar||t.writeAttributeString("showHorizontalScrollbar","0"),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeTimelines=p;function h(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("timelineCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.de),t.writeAttributeString("xmlns:x15",n.XFileConstants.de),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString("name",u(e.name)),t.writeAttributeString("sourceName",u(e.sourceName))},function(){if(t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",u(e.name))})})}),t.writeElement("state",function(){t.writeAttributeString("minimalRefreshVersion","6"),t.writeAttributeString("lastRefreshVersion","6"),t.writeAttributeString("pivotCacheId",e.pivotCacheId),a.isNullOrUndefined(e.filterType)||f.indexOf(e.filterType)!==-1||t.writeAttributeString("singleRangeFilterState","0"),a.isNullOrUndefined(e.filterType)||!o.captionCompareTypeExcel[1][e.filterType]?t.writeAttributeString("filterType","unknown"):t.writeAttributeString("filterType",o.captionCompareTypeExcel[1][e.filterType])},function(){!a.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)))})}),!a.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)===-1){var r=l.getPivotDateFilter(e.filterCondition,o.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",n.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 i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/xlsx-io/writer/comment-writer.ts"),a=r("./src/xlsx-io/writer/control-writer.ts");function o(e,t,r){var o=new i.XmlWriter;return o.writeElement("xml",function(){o.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),o.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),o.writeAttributeString("xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){o.writeElement("o:shapelayout",function(){o.writeAttributeString("v:ext","edit")},function(){o.writeLeafElement("o:idmap",function(){o.writeAttributeString("v:ext","edit"),o.writeAttributeString("data","1")})});var i=1024*(e+1)+1;t&&t.length>0&&(n.writeCommentShapes(o,t,i),i+=t.length),r&&r.length>0&&a.writeControlShapes(o,r,i)}),o.getXmlString()}t.writeVmlDrawingForLegacyDrawing=o},"./src/xlsx-io/writer/workbook-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=void 0;function c(e,t,r,o,l,s,c){var d=new i.XmlWriter;return d.writeDocument(),d.writeElement("workbook",function(){d.writeAttributeString("xmlns",n.XFileConstants.Hd),d.writeAttributeString("xmlns:r",n.XFileConstants.Ud)},function(){u(d,e),d.writeElement("sheets",void 0,function(){var r,i,n=function(r,i){var n=t[r];n&&d.writeLeafElement("sheet",function(){d.writeAttributeString("name",a.Util.oa(n.name)),d.writeAttributeString("sheetId",""+n.sheetId),e.tj(n.name)?d.writeAttributeString("state","hidden"):e.uj(n.name)&&d.writeAttributeString("state","veryHidden"),d.writeAttributeString("r:id",""+n.rID)})};for(r=0,i=t.length;r<i;r++)n(r,i)});var i=e.Ne.externalReference;i&&d.writeElement("externalReferences",void 0,function(){var e,t=function(e){if(Object.prototype.hasOwnProperty.call(i,e)){var t=i[e];d.writeLeafElement("externalReference",function(){d.writeAttributeString("r:id",t.option.id)})}};for(e in i)t(e)}),f(d,e,o),C(d,r,s,c),S(d,l),v(d,e,t)}),d.getXmlString()}t.writeWorkbook=c;function u(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 d(e){return e.toUpperCase()===a.PRINT_AREA_UPPERCASE?a.BUILT_IN_PRINT_AREA:e}function f(e,t,r){var i,n,o=t.vj(),l=b(t);g(o,l),i=w(t),g(o,i),n=p(t),g(o,n),g(o,r),o.length>0&&e.writeElement("definedNames",s,function(){var t,r=function(t){var r=o[t];e.writeElement("definedName",function(){e.writeAttributeString("name",a.Util.oa(d(r.name))),r.comment&&e.writeAttributeString("comment",a.Util.oa(r.comment)),r.localSheetId>-1&&e.writeAttributeString("localSheetId",r.localSheetId),r.hidden===!0&&e.writeAttributeString("hidden","1")},function(){e.writeValue(a.addXLFNPrefix(r.formula).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))})};for(t=0;t<o.length;t++)r(t)})}function p(e){var t,r,i,n,a,o,l=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(i=e.Nj(r),i&&(n=h(i.repeatRowStart,i.repeatRowEnd,s,s,r),a=h(s,s,i.repeatColumnStart,i.repeatColumnEnd,r),o=void 0,n&&a?o=a+","+n:n?o=n:a&&(o=a),o&&l.push({name:"_xlnm.Print_Titles",localSheetId:t,formula:o})));return l}function h(e,t,r,i,n){if(r===s&&i===s&&e===s&&t===s)return s;var o="";return r!==s&&(o+="$"+a.IndexHelper.T(r)),e!==s&&(o+="$"+(e+1)),o+=":",i!==s&&(o+="$"+a.IndexHelper.T(i)),t!==s&&(o+="$"+(t+1)),n?a.IndexHelper.V(n)+"!"+o:o}function m(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 g(e,t){for(var r=0;r<t.length;r++)m(e,t[r])||e.push(t[r])}function b(e){var t,r,i,n,a,o,l=[],s=e.jj();for(t=0;t<s.length;t++)if(r=s[t]){if(i=e.Dj(r),n=e.Ej(r,"pivot"),a=e.Ej(r,"timeline"),i)for(o=0;o<i.length;o++)l.push({name:i[o].nameInFormula,formula:"#N/A",localSheetId:-1});if(n)for(o=0;o<n.length;o++)l.push({name:n[o].slicerCacheName,formula:"#N/A",localSheetId:-1});if(a)for(o=0;o<a.length;o++)l.push({name:a[o].slicerCacheName,formula:"#N/A",localSheetId:-1})}return l}function w(e){var t,r,i,n,a,o,s=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(i=e.Oj(r),i&&(n=e.kj(r),i.range&&(a=l.getFilterRange(n,i.range),o=h(a.row,a.row+a.rowCount,a.col,a.col+a.colCount,r),o&&s.push({name:"_xlnm._FilterDatabase",localSheetId:t,formula:o}))));return s}function C(e,t,r,i){e.writeLeafElement("calcPr",function(){var n,o,l;e.writeAttributeString("calcId","0"),t&&e.writeAttributeString("refMode","R1C1"),n=a.isNullOrUndefined(r.iterate)||r.iterate?"1":"0",o=a.isNullOrUndefined(r.count)?"1000":r.count,l=a.isNullOrUndefined(r.delta)?"0.01":r.delta,e.writeAttributeString("iterate",n),e.writeAttributeString("iterateCount",o),e.writeAttributeString("iterateDelta",l),1===i&&e.writeAttributeString("calcMode","manual")})}function S(e,t){a.isEmptyObject(t)||e.writeElement("pivotCaches",function(){for(var r in t)t.hasOwnProperty(r)&&y(e,t[r])})}function y(e,t){a.isEmptyObject(t)||e.writeLeafElement("pivotCache",function(){e.writeAttributeString("cacheId",t.cacheId),e.writeAttributeString("r:id",t.rid)})}function v(e,t,r){var i,n=0,a=t.Ne.tableSlicerCaches;a&&a.length&&n++,i=t.Ne.slicerCaches,i&&i.length&&n++,n&&o.writeSlicerCacheInWorkbook(e,a,i)}},"./src/xlsx-io/writer/worksheet-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/common/excel-types.ts"),o=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"),u=r("./src/xlsx-io/writer/slicer-writer.ts"),d=r("./src/xlsx-io/writer/autofilter-writer.ts"),f=r("./src/xlsx-io/writer/datavalidation-writer.ts"),p=r("./src/datamodel/excel-helper.ts"),h=r("./src/xlsx-io/writer/print-writer.ts"),m=r("./src/xlsx-io/writer/chart-writer.ts"),g=void 0,b=i.Util.sa,w=66316;function S(e,t,r,o,l,s,u,p,m){var g=new n.XmlWriter;return g.writeDocument(),g.writeElement("worksheet",function(){g.writeAttributeString("xmlns",a.XFileConstants.Hd),g.writeAttributeString("xmlns:r",a.XFileConstants.Ud),g.writeAttributeString("xmlns:mc",a.XFileConstants.Jd),u&&u.attributes&&u.attributes.forEach(function(e){g.writeAttributeString(e.key,e.value)}),g.writeAttributeString("xmlns:x14ac",a.XFileConstants.Nd),g.writeAttributeString("xmlns:xr",a.XFileConstants.Rd),g.writeAttributeString("xmlns:xr2",a.XFileConstants.Sd),g.writeAttributeString("xmlns:xr3",a.XFileConstants.Td),g.writeAttributeString("xr:uid",i.Ha()),g.writeAttributeString("mc:Ignorable",a.XFileConstants.Pd)},function(){var i,n,a;if(v(g,t,e),x(g,t,e),T(g,t,e),A(g,t,e),k(g,t,e,r,o),E(g,t,e,l,r,o,s),P(g,t,e),d.writeAutoFilterForSheet(g,t,e),D(g,t,e),c.writeConditionalFormating(g,t,e),f.writeDataValidations(g,t,e),_(g,t,e,p),h.writePrintOptions(g,t,e),h.writePageMargins(g,t,e),h.writePageSetup(g,t,e),h.writeHeadFooter(g,t,e),h.writeRowColumnBreaks(g,t,e),u)for(i=[{name:"drawing",value:u.drawingId},{name:"legacyDrawing",value:u.legacyDrawingId}],n=function(e){var t=i[e],r=t.value;r&&g.writeLeafElement(t.name,function(){g.writeAttributeString("r:id",r)})},a=0;a<2;a++)n(a);h.writeLegacyDrawingHF(g,e),N(g,m),e.fi(t)&&e.fi(t).length>0&&L(g,e.fi(t)),y(e,t)&&R(g,t,e)}),g.getXmlString()}t.writeWorksheet=S;function y(e,t){var r,i,n,a,o=e.Dj(t),l=e.Ej(t,"pivot"),s=e.Ej(t,"timeline");return!!(o&&o.length>0||l&&l.length>0||s&&s.length>0)||(r=e.zj(t),!!(r&&r.length>0)||(i=e.xg(t),n=i&&i.rules,!(!n||!c.needWriteConditionalFormatExtension(n,t,e.jj()))||(a=e.On,!!(a&&a.length>0))))}function v(e,t,r){var i=r.lj(t),n=i.colsSumRight,a=i.rowsSumBelow,l=r.mj(t),s=r.Mj(t,!0),c=s&&s.useSmartPrint;!l&&n&&a&&c!==!0||e.writeElement("sheetPr",function(){null!==l&&o.writeColor(e,"tabColor",l),n&&a||e.writeLeafElement("outlinePr",function(){n||e.writeAttributeString("summaryRight","0"),a||e.writeAttributeString("summaryBelow","0")}),c===!0&&e.writeLeafElement("pageSetUpPr",function(){e.writeAttributeString("fitToPage","1")})})}function x(e,t,r){var i=r.nj(t),n=i.columnCount,a=i.rowCount;n>0&&a>0?e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1:"+r.Ki(n-1)+a)}):e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1")})}function T(e,t,r){e.writeElement("sheetViews",g,function(){e.writeElement("sheetView",function(){var n,a,o,l,s,c,u,d,f,p,h,m,g=r.oj(t),b=g.gridlineColor;null!==b&&1===b.colorType()&&64!==b.value()&&(e.writeAttributeString("defaultGridColor","0"),e.writeAttributeString("colorId",""+b.value())),n=r.pj(t),a=n.frozenTopRow||0,o=n.frozenLeftCol||0,l=g.topLeftCell,s=n.frozenColCount,c=n.frozenRowCount,l&&void 0!==l.row&&void 0!==l.col&&(a||o?(u=""+r.Ki(o)+(a+1),e.writeAttributeString("topLeftCell",""+u)):s||c?s&&!c?(u="A"+(l.row+1),e.writeAttributeString("topLeftCell",""+u)):!s&&c&&(u=""+r.Ki(l.col)+"1",e.writeAttributeString("topLeftCell",""+u)):(u=""+r.Ki(l.col)+(l.row+1),e.writeAttributeString("topLeftCell",""+u))),g.showGridLine||e.writeAttributeString("showGridLines","0"),g.showRowColHeaders||e.writeAttributeString("showRowColHeaders","0"),i.isNullOrUndefined(g.zoom)||(d=Math.round(100*g.zoom),100!==d&&e.writeAttributeString("zoomScale",""+d)),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&&(p=h.activeSheetIndex),m=f.index===p,(f.isSelected||m)&&e.writeAttributeString("tabSelected",1)},function(){var n,o,l,s,c,u,d,f=r.pj(t),p=f.frozenColCount,h=f.frozenRowCount,m=0,g=0,b=3,w="1",C="A",S=r.oj(t).topLeftCell;for((p>0||h>0)&&(p>0?(m=p,C=r.Ki(S.col)):m=0,h>0?(g=h,w=S.row+1+""):g=0,p>0&&0===h?b=1:0===p&&h>0?b=2:p>0&&h>0&&(b=0),e.writeLeafElement("pane",function(){var t,i=p-f.frozenLeftCol;i>0&&e.writeAttributeString("xSplit",""+i),t=h-f.frozenTopRow,t>0&&e.writeAttributeString("ySplit",""+t),C+w==="A1"?e.writeAttributeString("topLeftCell",""+r.Ki(m)+(g+1)):e.writeAttributeString("topLeftCell",""+C+w),e.writeAttributeString("activePane",a.PaneType[b]),e.writeAttributeString("state","frozen")})),n=[],o=new i.Range,l=0,s=1,c=-1,u=function(u){var d,f,m,g,b,w,C,S,y,v;if(n.length=0,d=u,r.$i(t,n,o,d)){for(s=n.length,l=0;l<s;l++)f=n[l],f.col!==-1&&f.colCount!==-1||(f=new i.Range(f.row,0,f.rowCount,a.ExcelConstants.vb)),f.row!==-1&&f.rowCount!==-1||(f=new i.Range(0,f.col,a.ExcelConstants.wb,f.colCount)),o.col>=f.col&&o.col<=f.col+f.colCount-1&&o.row>=f.row&&o.row<=f.row+f.rowCount-1&&(c=l);if(c<0&&s>0&&(o.row=n[0].row,o.col=n[0].col),m=""+r.Ki(o.col)+(o.row+1),g="",p>0&&h>0&&(1===d||2===d))g=m;else{for(l=0;l<s;l++)b=n[l],w=Math.min(a.ExcelConstants.wb,b.row+1),C=Math.min(b.col,a.ExcelConstants.vb),g+=""+r.Ki(C)+w,(b.colCount>1||b.rowCount>1)&&(S=Math.min(C+b.colCount-1,a.ExcelConstants.vb),y=Math.min(w+b.rowCount-1,a.ExcelConstants.wb),v=""+r.Ki(S)+y,g+=":"+v),g+=" ";g=g.trim()}i.StringEx.O(g)||3===d&&(p>0||h>0||3!==d)||e.writeLeafElement("selection",function(){3!==d&&e.writeAttributeString("pane",a.PaneType[d]),e.writeAttributeString("activeCell",m),0!==c&&0===d&&e.writeAttributeString("activeCellId",""+c),e.writeAttributeString("sqref",g)})}},d=3;d>=0;d--)u(d)})})}function A(e,t,r){var i=r.Xi(t),n=i.height,a=i.customHeight,o=r.Yi(t);e.writeLeafElement("sheetFormatPr",function(){var i,l,s;isNaN(o)||e.writeAttributeString("defaultColWidth",""+o),a&&e.writeAttributeString("customHeight","1"),e.writeAttributeString("defaultRowHeight",""+n),i=r.Wi(t),l=i.outlineLevelRow-1,s=i.outlineLevelColumn-1,l>0&&e.writeAttributeString("outlineLevelRow",""+l),s>0&&e.writeAttributeString("outlineLevelCol",""+s)})}function k(e,t,r,i,n){var o=r.Ti(t),l=r.Vi(t);0!==o.length&&e.writeElement("cols",g,function(){var t,r,s,c,u=function(r,s){var c,u,d,f=o[r],p=f.index;if(p>=a.ExcelConstants.vb)return t=r,"break";for(c=r+1,u=p;c<o.length&&(d=o[c],d.index===u+1&&d.index<a.ExcelConstants.vb&&d.formatId===f.formatId&&d.visible===f.visible&&d.outLineLevel===f.outLineLevel&&d.collapsed===f.collapsed&&Math.abs(d.width-f.width)<=1e-4);)u=d.index,r=c,c++;e.writeLeafElement("col",function(){if(e.writeAttributeString("min",""+(p+1)),e.writeAttributeString("max",""+(u+1)),f.formatId>=0){var t=i[f.formatId+n];t!==g?e.writeAttributeString("style",t):e.writeAttributeString("style","0")}isNaN(f.width)||f.width===g?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=o.length;r<s&&(c=u(r,s),r=t,"break"!==c);r++);})}function E(e,t,r,i,n,o,s){var c,u,d,f,p,h,m,b,w,C={},S=r.Ni(t);if(S)for(c=0,u=S.length;c<u;c++)d=S[c],d&&d.index<a.ExcelConstants.wb&&(C[d.index]=new l.Tuple(d,[]));if(f=r.Mi(t))for(p in f)if(f.hasOwnProperty(p))for(h=f[p],c=0,m=h.length;c<m;c++)b=h[c],b&&(C[b.row]?C[b.row].item2.push(b):(C[b.row]=new l.Tuple(null,[]),C[b.row].item2.push(b)));w=r.Ne.sheets[t].sharedFormulas,e.writeElement("sheetData",g,function(){var r,a,l,c=-1;for(r in C)C.hasOwnProperty(r)&&(a=C[r],l=parseInt(r,10),F(e,t,l,c,a.item2,a.item1,i,n,o,s,w),c=l)})}function F(e,t,r,i,n,o,l,s,c,u,d){var f=""+(r+1),p=function(){if(!l.keepRowColIndex&&r===i+1||!o&&!n||e.writeAttributeString("r",f),o){if(o.formatId>=0){var t=s[o.formatId+c];t!==g&&(e.writeAttributeString("s",t),e.writeAttributeString("customFormat","1"))}o.customHeight&&(e.writeAttributeString("customHeight","1"),o.height!==g&&e.writeAttributeString("ht",""+o.height)),o.visible===!1&&e.writeAttributeString("hidden","1"),o.collapsed&&e.writeAttributeString("collapsed","1"),"number"==typeof o.outLineLevel&&0!==o.outLineLevel&&e.writeAttributeString("outlineLevel",""+o.outLineLevel)}};n&&n.length>0?e.writeElement("row",p,function(){var t,r,i,o=-1;for(t=0,r=n.length;t<r;t++)i=n[t],i.col>=a.ExcelConstants.vb||(I(e,i,f,o,l,s,c,u,d),o=i.col)}):e.writeLeafElement("row",p)}C=["#REF!","#NULL!","#DIV/0!","#VALUE!","#NAME?","#NUM!","#N/A","#SPILL!","#CALC!"];function I(e,t,r,n,a,o,l,s,c){var u=t.value,d=t.formula,f=t.cellType,p=t.richText,h=function(){var s,c,d,p;switch((a.xlsxStrictMode||t.col!==n+1)&&e.writeAttributeString("r",i.IndexHelper.T(t.col)+r),t.formatId===-1?e.writeAttributeString("s","0"):(s=t.formatId+l,c=o[s],c!==g&&e.writeAttributeString("s",c)),f){case 0:break;case 9:case 2:d="s";break;case 5:d="b";break;case 7:d="e"}t.formula&&(t.arrayFormulaRange?(p=t.arrayFormulaRange.isDynamicArray,p&&e.writeAttributeString("cm","1"),t.isSpillError&&(d="e",e.writeAttributeString("vm","1"))):i.isNullOrUndefined(u)||"#"!==(""+u).substring(0,1)||C.indexOf((""+u).toUpperCase())===-1?t.isSpillError&&(d="e",e.writeAttributeString("vm","2")):d="e"),(t.formula||t.qi)&&"s"===d&&(d="str"),i.isNullOrUndefined(d)||e.writeAttributeString("t",d)};function m(e){var t,r=s.Zn[e.value],i=s.$n[e.value];return i===g&&(i=s.$n[e.value]=[]),t=S(i,e),r===g||t===g?(r=s.Qn.length,s.Qn.push(e),s.Zn[e.value]=r,i.push({index:r,value:e})):r=t,s.Pn++,r}function S(e,t){for(var r=0,i=e.length;r<i;r++)if(b(e[r].value,t))return e[r].index}u!==g&&null!==u||!i.StringEx.L(d)?e.writeElement("c",h,function(){var r,n;i.StringEx.L(d)||(r=t.arrayFormulaRange,i.isNullOrUndefined(d.si)?r?t.row===r.row&&t.col===r.col&&e.writeElement("f",function(){e.writeAttributeString("t","array");var t=i.IndexHelper.T(r.col)+(r.row+1)+":"+i.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(i.Util.oa(i.addXLFNPrefix(d)))}):e.writeElement("f",g,function(){e.writeValue(i.Util.oa(i.addXLFNPrefix(d)))}):(n=c[d.si],n.baseRow===t.row&&n.baseColumn===t.col?e.writeElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",d.si);var t=i.IndexHelper.T(n.baseColumn)+(n.baseRow+1)+":"+i.IndexHelper.T(n.lastColumn)+(n.lastRow+1);e.writeAttributeString("ref",t)},function(){e.writeValue(i.Util.oa(i.addXLFNPrefix(n.formula)))}):e.writeLeafElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",d.si)}))),u!==g&&null!==u&&e.writeElement("v",g,function(){var r,n;switch("string"==typeof u&&"/OADate"===u.substring(0,7)&&(f=6),r=u,f){case 9:case 2:r=""+m({value:u,richText:p});break;case 7:r=u;break;case 5:n="1",("boolean"==typeof u&&!u||"FALSE"===(""+u).toUpperCase())&&(n="0"),r=n;break;case 6:default:r=i.Util.oa(""+u)}i.isNullOrUndefined(t.formula)&&!t.qi||("boolean"==typeof u&&(u=u?1:0),r=""+u,r&&r.length>w&&(r=""),r=i.Util.oa(r)),"#SPILL!"!==r&&"#CALC!"!==r||7!==f||(r="#VALUE!"),e.writeValue(r)})}):e.writeLeafElement("c",h)}function P(e,t,r){var i,n=r.qj(t),a=r.rj(t,n);(n||Object.keys(a).length>0)&&e.writeLeafElement("sheetProtection",function(){n&&e.writeAttributeString("sheet","1");for(var t in a)a.hasOwnProperty(t)&&(i=a[t],"algorithmName"===t||"hashValue"===t||"saltValue"===t||"spinCount"===t||"password"===t?e.writeAttributeString(t,i):p.excelSupportProtectionOptions[t]&&(i=a[t]?"0":"1",e.writeAttributeString(t,i)))})}function D(e,t,r){var n=r.aj(t);n&&n.length>0&&e.writeElement("mergeCells",function(){e.writeAttributeString("count",""+n.length)},function(){var t,r,a=function(t,r){var a=n[t];e.writeLeafElement("mergeCell",function(){e.writeAttributeString("ref",i.IndexHelper.T(a.col)+(a.row+1)+":"+i.IndexHelper.T(a.col+a.colCount-1)+(a.row+a.rowCount))})};for(t=0,r=n.length;t<r;t++)a(t,r)})}function R(e,t,r){e.writeElement("extLst",g,function(){c.writeExtensionConditionalFormats(e,t,r),s.writeSparkline(e,t,r),u.writeSlicersInWorkSheet(e,t,r),f.writeExtensionDataValidations(e,r)})}function L(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 _(e,t,r,i){var n=r.Hh[t];n&&n.length>0&&e.writeElement("hyperlinks",function(){var t,r,o=function(t,r){var o=n[t];e.writeLeafElement("hyperlink",function(){var t,r;e.writeAttributeString("ref",o.ref),o.location?e.writeAttributeString("location",o.location):(t="",r=new a.XFile(t,a.RelationshipConstants.gb),r.target=o.url,r.targetMode="External",o.rid=i.ze(r),e.writeAttributeString("r:id",o.rid)),o.display&&e.writeAttributeString("display",o.display),o.tooltip&&e.writeAttributeString("tooltip",o.tooltip),o["xr:uid"]&&e.writeAttributeString("xr:uid",o["xr:uid"])})};for(t=0,r=n.length;t<r;t++)o(t,r)})}function N(e,t){!t||t.length<=0||M(e,function(){B(e,t)})}function B(e,t){e.writeElement("controls",g,function(){t.forEach(function(t){O(e,t)})})}function M(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 O(e,t){M(e,function(){G(e,t)})}function G(e,t){var r=t.sp.nvSpPr.cNvPr,i=t.sp.control.rid,n=r.id,a=r.name;e.writeElement("control",function(){e.writeAttributeString("shapeId",n),e.writeAttributeString("r:id",i),e.writeAttributeString("name",a)},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(){U(e,t)})}function U(e,t){var r=t.sp.control.anchorInfo,i=r.startPoint,n=r.endPoint;e.writeElement("anchor",function(){e.writeAttributeString("moveWithCells",1),e.writeAttributeString("sizeWithCells",1)},function(){m.DrawingWriter.WriteCT_Position(e,g,"from",i),m.DrawingWriter.WriteCT_Position(e,g,"to",n)})}},"./src/xlsx-io/writer/xlsx-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C,S,y,v,x,T,A,k,E,F,I,P,D,R,L;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xml-io/xml-writer.ts"),o=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"),u=r("./src/xlsx-io/writer/docPropsCustomWriter.ts"),d=r("./src/xlsx-io/writer/worksheet-writer.ts"),f=r("./src/xlsx-io/writer/sharedString-writer.ts"),p=r("./src/xlsx-io/writer/theme-writer.ts"),h=r("./src/xlsx-io/writer/workbook-writer.ts"),m=r("./src/xlsx-io/writer/comment-writer.ts"),g=r("./src/xlsx-io/writer/drawing-writer.ts"),b=r("./src/xlsx-io/writer/table-writer.ts"),w=r("./src/xlsx-io/writer/slicer-writer.ts"),C=r("./src/xlsx-io/writer/print-writer.ts"),S=r("./src/xlsx-io/writer/metadata-writer.ts"),y=r("./src/xlsx-io/writer/chart-writer.ts"),v=r("./src/datamodel/excel-helper.ts"),x=r("./src/datamodel/excel-style.ts"),T=r("./src/xlsx-io/writer/pivot-writer.ts"),A=r("./src/xlsx-io/writer/ctrlprops-writer.ts"),k=r("./src/xlsx-io/writer/vmlDrawing-writer.ts"),
45
+ e.writeElement("dataField",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name))),i.isNullOrUndefined(t.fld)||e.writeAttributeString("fld",t.fld),i.isNullOrUndefined(t.subtotal)||e.writeAttributeString("subtotal",t.subtotal),i.isNullOrUndefined(t.showDataAs)||r||e.writeAttributeString("showDataAs",t.showDataAs),i.isNullOrUndefined(t.baseField)||e.writeAttributeString("baseField",t.baseField),i.isNullOrUndefined(t.baseItem)||e.writeAttributeString("baseItem",t.baseItem),i.isNullOrUndefined(t.numberFormatId)||e.writeAttributeString("numFmtId",t.numberFormatId)},function(){!i.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",a.XFileConstants.$d)},function(){e.writeLeafElement("x14:dataField",function(){e.writeAttributeString("pivotShowAs",t)})})})}function me(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++)ge(e,r[t])})}function ge(e,t){t&&t.style&&t.pivotArea&&!t.pivotArea.missed&&e.writeElement("format",function(){"Formatting"===t.action||i.isNullOrUndefined(t.action)||e.writeAttributeString("action",t.action),t.dxfId>=0&&e.writeAttributeString("dxfId",t.dxfId)},function(){te(e,t.pivotArea,!0)})}function be(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++)we(e,r[t])})}function we(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 Ce(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++)Se(e,t.chartFormats[r])})}function Se(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(){i.isNullOrUndefined(t.pivotArea)||te(e,t.pivotArea)})}function ye(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++)ve(e,t.pivotHierarchies[r])})}function ve(e,t){e.writeElement("pivotHierarchy",function(){i.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++)xe(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 xe(e,t){e.writeLeafElement("mp",function(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(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(){i.isNullOrUndefined(t.name)||e.writeAttributeString("name",s(u(t.name)))})}function Ae(e,t){e.writeLeafElement("pivotTableStyleInfo",function(){i.isNullOrUndefined(t.styleName)||e.writeAttributeString("name",s(u(t.styleName))),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 i,n;for(i=0;i<r.pivotFilters.length;i++)n=r.pivotFilters[i],41!==n.operator&&42!==n.operator&&Ee(e,t,n)})}function Ee(e,r,n){var a=n.operator,o=n.conType,c=t.captionCompareTypeExcel[o][a];r.writeElement("filter",function(){n.fld>=0&&r.writeAttributeString("fld",n.fld),n.mpFld>=0&&r.writeAttributeString("mpFld",n.mpFld),void 0!==c&&r.writeAttributeString("type",c),i.isNullOrUndefined(n.evalOrder)||r.writeAttributeString("evalOrder",n.evalOrder),n.id>=0&&r.writeAttributeString("id",n.id),n.iMeasureHier>=0&&r.writeAttributeString("iMeasureHier",n.iMeasureHier),n.iMeasureFld>=0&&r.writeAttributeString("iMeasureFld",n.iMeasureFld),i.isNullOrUndefined(n.name)||r.writeAttributeString("name",s(u(n.name))),i.isNullOrUndefined(n.description)||r.writeAttributeString("description",n.description),i.isNullOrUndefined(n.stringValue1)||r.writeAttributeString("stringValue1",n.stringValue1),i.isNullOrUndefined(n.stringValue2)||r.writeAttributeString("stringValue2",n.stringValue2)},function(){if(!i.isNullOrUndefined(n.autoFilter)){var t=e.Aj(n,c);l.writePivotAutoFilter(r,t)}})}function Fe(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++)Pe(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++)Pe(e,t.colHierarchies[r],!1)})}function Pe(e,t,r){var i=r?"rowHierarchyUsage":"colHierarchyUsage";e.writeLeafElement(i,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 Re(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 i,n,a,o,l,s,c,u;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=i.StringEx.O,a=i.Util.oa,o=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"},u={0:"auto",1:"portrait",2:"landscape"};function d(e,t,r){var i=r.Kj(t);i&&e.writeLeafElement("pageMargins",function(){e.writeAttributeString("left",i.left),e.writeAttributeString("right",i.right),e.writeAttributeString("top",i.top),e.writeAttributeString("bottom",i.bottom),e.writeAttributeString("header",i.header),e.writeAttributeString("footer",i.footer)})}t.writePageMargins=d;function f(e,t,r){var i=r.Lj(t);i&&(i.printGridLine||i.printRowColumnsHeaders||i.horizontalCentered||i.verticalCentered)&&e.writeLeafElement("printOptions",function(){i.printRowColumnsHeaders&&e.writeAttributeString("headings","1"),i.printGridLine&&e.writeAttributeString("gridLines","1"),i.horizontalCentered&&e.writeAttributeString("horizontalCentered","1"),i.verticalCentered&&e.writeAttributeString("verticalCentered","1")})}t.writePrintOptions=f;function p(e,t,r){var n=r.Mj(t);n&&e.writeLeafElement("pageSetup",function(){var t=n.useSmartPrint,r=n.paperSizeIndex,a=n.zoomFactor,o=n.firstPageNumber,l=n.smartPrintPagesWidth,d=n.smartPrintPagesHeight,f=c[n.pageOrder],p=u[n.orientation],h=n.copies;t&&(void 0===l&&(l=0),void 0===d&&(d=0)),!i.isNullOrUndefined(r)&&r>1&&e.writeAttributeString("paperSize",r),!i.isNullOrUndefined(a)&&Math.abs(a-1)>.01&&e.writeAttributeString("scale",Math.round(100*a)),i.isNullOrUndefined(o)||e.writeAttributeString("firstPageNumber",s.convertFirstPageNumberToExcel(o)),(l>0&&1!==l||0===l)&&e.writeAttributeString("fitToWidth",l),(d>0&&1!==d||0===d)&&e.writeAttributeString("fitToHeight",d),i.isNullOrUndefined(f)||0===f||e.writeAttributeString("pageOrder",f),i.isNullOrUndefined(p)||0===p||e.writeAttributeString("orientation",p),n.showColor===!1&&e.writeAttributeString("blackAndWhite","1"),n.draft===!0&&e.writeAttributeString("draft","1"),n.useCustomStartingPage===!0&&e.writeAttributeString("useFirstPageNumber","1"),h>1&&h<32767&&e.writeAttributeString("copies",h)})}t.writePageSetup=p;function h(e){var t=e.advancedHeadFooterSetting;return t&&(t.headerFooterDifferentOddEvenPages||t.headerFooterDifferentFirstPage||!t.headerFooterScalesWithDocument||!t.headerFooterAlignWithPageMargin||!n(e.header)||!n(e.footer)||!n(t.headerOddPage)||!n(t.footerOddPage)||!n(t.headerEvenPage)||!n(t.footerEvenPage)||!n(t.headerFirstPage)||!n(t.footerFirstPage))}function m(e,t,r){var i,o=r.Mj(t);o&&h(o)&&(i=o.advancedHeadFooterSetting,e.writeElement("headerFooter",function(){i.headerFooterDifferentOddEvenPages===!0&&e.writeAttributeString("differentOddEven","1"),i.headerFooterDifferentFirstPage===!0&&e.writeAttributeString("differentFirst","1"),i.headerFooterScalesWithDocument===!1&&e.writeAttributeString("scaleWithDoc","0"),i.headerFooterAlignWithPageMargin===!1&&e.writeAttributeString("alignWithMargins","0")},function(){n(i.headerOddPage)?n(o.header)||e.writeElementString("oddHeader",a(o.header)):e.writeElementString("oddHeader",a(i.headerOddPage)),n(i.footerOddPage)?n(o.footer)||e.writeElementString("oddFooter",a(o.footer)):e.writeElementString("oddFooter",a(i.footerOddPage)),n(i.headerEvenPage)||e.writeElementString("evenHeader",a(i.headerEvenPage)),n(i.footerEvenPage)||e.writeElementString("evenFooter",a(i.footerEvenPage)),n(i.headerFirstPage)||e.writeElementString("firstHeader",a(i.headerFirstPage)),n(i.footerFirstPage)||e.writeElementString("firstFooter",a(i.footerFirstPage))}))}t.writeHeadFooter=m;function g(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 b(e,t,r){var i=r.Mj(t);i&&(g(e,i.rowBreakLines,"rowBreaks"),g(e,i.columnBreakLines,"colBreaks"))}t.writeRowColumnBreaks=b;function w(e,t){t.jn&&(e.writeLeafElement("legacyDrawingHF",function(){e.writeAttributeString("r:id",t.jn)}),t.jn="")}t.writeLegacyDrawingHF=w;function C(e,t,r,i){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:"+i)},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 S(e,t,r,i,n,a,o){e.writeAttributeString(t,r),e.writeAttributeString(i,n),e.writeAttributeString(a,o)}t.writeVmlDrawingFile=function(e){var t=new o.XmlWriter;return t.writeElement("xml",function(){S(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(){S(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,i=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)&&(C(t,e,r,i),r++,i++)})}),t.getXmlString()}},"./src/xlsx-io/writer/sharedString-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/xml-io/xml-writer.ts"),o=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/writer/style-writer.ts");function s(e){var t=new a.XmlWriter;return t.writeDocument(),t.writeElement("sst",function(){t.writeAttributeString("xmlns",n.XFileConstants.Hd),t.writeAttributeString("count",""+e.Pn),t.writeAttributeString("uniqueCount",""+e.Qn.length)},function(){var r,n,a=function(r,n){var a=e.Qn[r],s=a.value,c=s.length!==s.trim().length;t.writeElement("si",void 0,function(){var e,r,n,u=function(){c&&t.writeAttributeString("xml:space","preserve")};if(a.richText)for(e=a.richText,r=function(r){void 0!==e[r].text&&t.writeElement("r",void 0,function(){l.writerRichTextStyle(t,o.ConverterHelper.fromRichTextStyle(e[r].style));var n=e[r].text;n&&n.length>32767&&(n=n.slice(0,32767)),n&&(c=n.length!==n.trim().length),t.writeElement("t",function(){u()},function(){t.writeValue(i.Util.oa(i.Util.xa(n,!0)))})})},n=0;n<e.length;n++)r(n);else s&&s.length>32767&&(s=s.slice(0,32767)),t.writeElement("t",function(){u()},function(){t.writeValue(i.Util.oa(i.Util.xa(s,!0)))})})};for(r=0,n=e.Qn.length;r<n;r++)a(r,n)}),t.getXmlString()}t.writeSharedString=s},"./src/xlsx-io/writer/slicer-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=r("./src/datamodel/excel-style.ts"),l=o.UnitHelper.pixelToEMU,s=a.Util.oa,c=a.Util.ua,u="http://schemas.microsoft.com/office/drawing/2012/timeslicer",d="mc:Ignorable";function f(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("slicers",function(){t.writeAttributeString("xmlns",n.XFileConstants.ce),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString(d,"x"),t.writeAttributeString("xmlns:x",n.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)),a.isNullOrUndefined(e.columnCount)||t.writeAttributeString("columnCount",e.columnCount),a.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showCaption","0"),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 p(e,t){var r=null;return t.forEach(function(t){t.name===e&&(r=t.id)}),r}function h(e,t,r){var i=null;return r.forEach(function(r){r.name===t&&r.columns.forEach(function(t){t.name===e&&(i=t.id)})}),i}function m(e,t){var r,o,l;return a.isNullOrUndefined(e)?null:(r=p(e.tableName,t),o=h(e.columnName,e.tableName,t),l=new i.XmlWriter,l.writeDocument(),l.writeElement("slicerCacheDefinition",function(){l.writeAttributeString("xmlns",n.XFileConstants.ce),l.writeAttributeString("xmlns:mc",n.XFileConstants.ae),l.writeAttributeString(d,"x"),l.writeAttributeString("xmlns:x",n.XFileConstants.be),l.writeAttributeString("name",s(e.name)),l.writeAttributeString("sourceName",s(e.sourceName))},function(){l.writeElement("extLst",function(){},function(){l.writeElement("x:ext",function(){l.writeAttributeString("uri","{2F2917AC-EB37-4324-AD4E-5DD8C200BD13}"),l.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){l.writeLeafElement("x15:tableSlicerCache",function(){l.writeAttributeString("tableId",r),l.writeAttributeString("column",o),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",n.XFileConstants.de)},function(){l.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),l.getXmlString())}t.writeTableSlicerCache=m;function g(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("slicerCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.ce),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString(d,"x"),t.writeAttributeString("xmlns:x",n.XFileConstants.be),t.writeAttributeString("name",s(e.name)),t.writeAttributeString("sourceName",s(e.sourceName))},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",n.XFileConstants.de)},function(){t.writeLeafElement("x15:slicerCacheHideItemsWithNoData",function(){})})})}),t.getXmlString()}t.writePivotSlicerCache=g;function b(e,t,r){var i=r.Ej(t,"pivot"),a=r.Ej(t,"timeline"),o=r.Dj(t);i&&i.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{A8765BA9-456A-4dab-B4F3-ACF838C121DE}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.ce)},function(){e.writeElement("x14:slicerList",function(){i[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",i[0].rid)})})}),a&&a.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{7E03D99C-DC04-49d9-9315-930204A7B6E9}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x15:timelineRefs",function(){a[0].rid&&e.writeLeafElement("x15:timelineRef",function(){e.writeAttributeString("r:id",a[0].rid)})})}),o&&o.length>0&&e.writeElement("ext",function(){e.writeAttributeString("uri","{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x14:slicerList",function(){e.writeAttributeString("xmlns:x14",n.XFileConstants.ce)},function(){o[0].rid&&e.writeLeafElement("x14:slicer",function(){e.writeAttributeString("r:id",o[0].rid)})})})}t.writeSlicersInWorkSheet=b;function w(e,t,r){var i,a=t&&t.length>0,o=!1,l=!1,s=[],c=[];if(r)for(i=0;i<r.length;i++)r[i].boundsStartDate?(l=!0,c.push(r[i])):(o=!0,s.push(r[i]));e.writeElement("extLst",function(){},function(){o&&e.writeElement("ext",function(){e.writeAttributeString("uri","{BBE1A952-AA13-448e-AADC-164F8A28A991}"),e.writeAttributeString("xmlns:x14",n.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)})})})}),a&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{46BE6895-7355-4a93-B00E-2C351335B9C9}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x15:slicerCaches",function(){e.writeAttributeString("xmlns:x14",n.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",n.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",n.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)})})})}),(o||l)&&(e.writeElement("ext",function(){e.writeAttributeString("uri","{79F54976-1DA5-4618-B147-4CDE4B953A38}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.de)},function(){e.writeElement("x14:workbookPr",function(){})}),e.writeElement("ext",function(){e.writeAttributeString("uri","{140A7094-0E35-4892-8432-C4D2E57EDEB5}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){e.writeElement("x15:workbookPr",function(){e.writeAttributeString("chartTrackingRefBase","1")},function(){})}))})}t.writeSlicerCacheInWorkbook=w;function C(e,t,r){t.forEach(function(t){S(e,t,r)})}t.writeSlicerDrawings=C;function S(e,t,r){var i=t&&t.twoCellAnchor;i&&e.writeElement("xdr:twoCellAnchor",function(){t.dynamicMove?t.dynamicSize||e.writeAttributeString("editAs","oneCell"):e.writeAttributeString("editAs","absolute")},function(){r(e,"xdr:from",i.startPoint),r(e,"xdr:to",i.endPoint),v(e,t),y(e,t)})}function y(e,t){e.writeLeafElement("xdr:clientData",function(){t.isLocked||e.writeAttributeString("fLocksWithSheet","0")})}function v(e,t){e.writeElement("mc:AlternateContent",function(){e.writeAttributeString("xmlns:mc",n.XFileConstants.ae)},function(){x(e,t),R(e,t)})}function x(e,t){e.writeElement("mc:Choice",function(){"timeline"===(t&&t.type)?(e.writeAttributeString("xmlns:tsle",u),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(){A(e,t),k(e),E(e,t)})}function A(e,t){e.writeElement("xdr:nvGraphicFramePr",function(){},function(){F(e,t),D(e,t)})}function k(e){e.writeElement("xdr:xfrm",function(){},function(){I(e,"a:off","x","0","y","0"),I(e,"a:ext","cx","0","cy","0")})}function E(e,t){e.writeElement("a:graphic",function(){},function(){P(e,t)})}function F(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(){I(e,"a16:creationId","xmlns:a16","http://schemas.microsoft.com/office/drawing/2014/main","id","{729A7851-DBA1-4F10-BB7B-BEC1E3EEDA64}")})})})}function I(e,t,r,i,n,a){e.writeLeafElement(t,function(){e.writeAttributeString(r,i),e.writeAttributeString(n,a)})}function P(e,t){e.writeElement("a:graphicData",function(){"timeline"===(t&&t.type)?e.writeAttributeString("uri",u):e.writeAttributeString("uri","http://schemas.microsoft.com/office/drawing/2010/slicer")},function(){"timeline"===(t&&t.type)?I(e,"tsle:timeslicer","xmlns:tsle",u,"name",s(c(t.name,"\n","&#xA;"))):I(e,"sle:slicer","xmlns:sle","http://schemas.microsoft.com/office/drawing/2010/slicer","name",s(c(t.name,"\n","&#xA;")))})}function D(e,t){e.writeElement("xdr:cNvGraphicFramePr",function(){e.writeLeafElement("a:graphicFrameLocks",function(){t.disableResizingAndMoving&&(e.writeAttributeString("noMove","1"),e.writeAttributeString("noResize","1"))})})}function R(e,t){e.writeElement("mc:Fallback",function(){e.writeAttributeString("xmlns","")},function(){L(e,t)})}function L(e,t){e.writeElement("xdr:sp",function(){e.writeAttributeString("macro",""),e.writeAttributeString("textlink","")},function(){_(e),O(e),z(e,t)})}function _(e){e.writeElement("xdr:nvSpPr",function(){},function(){I(e,"xdr:cNvPr","id","0","name",""),B(e)})}function N(e,t,r){e.writeElement(t,function(){},function(){M(e,r[0],r[1],r[2])})}function B(e){N(e,"xdr:cNvSpPr",["a:spLocks","noTextEdit","1"])}function M(e,t,r,i){e.writeLeafElement(t,function(){e.writeAttributeString(r,i)})}function O(e){e.writeElement("xdr:spPr",function(){},function(){G(e),H(e),J(e),W(e)})}function G(e){e.writeElement("a:xfrm",function(){},function(){I(e,"a:off","x","5486400","y","942975"),I(e,"a:ext","cx","1828800","cy","2524125")})}function H(e){e.writeElement("a:prstGeom",function(){e.writeAttributeString("prst","rect")},function(){U(e)})}function U(e){e.writeLeafElement("a:avLst")}function J(e){N(e,"a:solidFill",["a:prstClr","val","white"])}function W(e){e.writeElement("a:ln",function(){e.writeAttributeString("w","1")},function(){V(e)})}function V(e){N(e,"a:solidFill",["a:prstClr","val","green"])}function z(e,t){e.writeElement("xdr:txBody",function(){},function(){I(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(){I(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 i,n,a,o,l,s,c,u,d,f;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/common/range-parser.ts"),o=r("./src/datamodel/excel-style.ts"),l=r("./src/xlsx-io/common/color-writer.ts"),s=n.IndexHelper.V,c=n.Util.oa;function p(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",i.XFileConstants.$d)},function(){h(e,t,r)})}t.writeSparkline=p;function h(e,t,r){e.writeElement("x14:sparklineGroups",function(){e.writeAttributeString("xmlns:xm",i.XFileConstants._d)},function(){var i=r.zj(t);i.length>0&&i.forEach(function(r){
46
+ m(e,t,r)})})}t.writeSparklineGroups=h,u={0:"line",1:"column",2:"stacked"},d={2:"span",0:"gap",1:"zero"},f={0:"individual",1:"group",2:"custom"};function m(e,t,r){e.writeElement("x14:sparklineGroup",function(){var t=r&&r.setting;r.sparklineType&&e.writeAttributeString("type",u[r.sparklineType]),r.displayDateAxis&&e.writeAttributeString("dateAxis","1"),n.isNullOrUndefined(t)||(!n.isNullOrUndefined(t.lineWeight)&&3*(""+t.lineWeight)/4-.75>.001&&e.writeAttributeString("lineWeight",3*(""+t.lineWeight)/4),t.displayEmptyCellsAs?e.writeAttributeString("displayEmptyCellsAs",d[t.displayEmptyCellsAs]):e.writeAttributeString("displayEmptyCellsAs",d[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 i=r&&r.setting,n=o.ColorHelper.toExcelColor(i.seriesColor||"rgba(36,64,98,1.0)");l.writeColor(e,"x14:colorSeries",n),n=o.ColorHelper.toExcelColor(i.negativeColor||"brown"),l.writeColor(e,"x14:colorNegative",n),n=o.ColorHelper.toExcelColor(i.axisColor||"black"),l.writeColor(e,"x14:colorAxis",n),n=o.ColorHelper.toExcelColor(i.markersColor||"rgba(36,64,98,1.0)"),l.writeColor(e,"x14:colorMarkers",n),n=o.ColorHelper.toExcelColor(i.firstMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorFirst",n),n=o.ColorHelper.toExcelColor(i.lastMarkerColor||"rgba(149,179,215,1.0)"),l.writeColor(e,"x14:colorLast",n),n=o.ColorHelper.toExcelColor(i.highMarkerColor||"blue"),l.writeColor(e,"x14:colorHigh",n),n=o.ColorHelper.toExcelColor(i.lowMarkerColor||"blue"),l.writeColor(e,"x14:colorLow",n),r.displayDateAxis&&r.axisReference&&e.writeElement("xm:f",function(){"string"==typeof r.axisReference?e.writeValue(r.axisReference):e.writeValue(b(r.axisReference.sheetName||t,r.axisReference))}),r.sparklines&&r.sparklines.length>0&&e.writeElement("x14:sparklines",function(){r.sparklines.forEach(function(r){g(e,t,r)})})})}t.writeSparklineGroup=m;function g(e,t,r){e.writeElement("x14:sparkline",function(){n.isNullOrUndefined(r.data)||(e.writeElement("xm:f",function(){},function(){"string"==typeof r.data?e.writeValue(r.data):e.writeValue(b(r.data.sheetName||t,r.data))}),e.writeElement("xm:sqref",function(){},function(){e.writeValue(a.getRangeString([{row:r.row,col:r.col,rowCount:1,colCount:1}]))}))})}function b(e,t){return c(s(e)+"!"+a.getRangeString([t]))}},"./src/xlsx-io/writer/style-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/tuple.ts"),o=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"),u=void 0,d={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"},p={selectionLabelStyle:"selectionLabel",timeLevelStyle:"timeLevel",periodLabel1Style:"periodLabel1",periodLabel2Style:"periodLabel2",selectedTimeBlockStyle:"selectedTimeBlock",unselectedTimeBlockStyle:"unselectedTimeBlock",selectedTimeBlockSpaceStyle:"selectedTimeBlockSpace"};function h(e,t,r,i,n,a,o){e.writeAttributeString(t,r),e.writeAttributeString(i,n),e.writeAttributeString(a,o)}function m(e,t){var r=v(e,t),o=new i.XmlWriter;return o.writeDocument(),o.writeElement("styleSheet",function(){o.writeAttributeString("xmlns",n.XFileConstants.Hd),o.writeAttributeString("xmlns:mc",n.XFileConstants.Jd),o.writeAttributeString("xmlns:x14ac",n.XFileConstants.Nd),o.writeAttributeString("mc:Ignorable",n.XFileConstants.Od)},function(){var t,i,n,l,c,f,p;if(r.gn.count>0&&o.writeElement("numFmts",function(){o.writeAttributeString("count",""+r.gn.count)},function(){for(var e in r.gn)r.gn.hasOwnProperty(e)&&"count"!==e&&x(o,{key:e,value:r.gn[e]})}),o.writeElement("fonts",function(){o.writeAttributeString("count",""+r.Rn.length)},function(){for(var e=0,t=r.Rn.length;e<t;e++)T(o,r.Rn[e])}),o.writeElement("fills",function(){o.writeAttributeString("count",""+r.Sn.length)},function(){var e,t=function(e){o.writeElement("fill",u,function(){o.writeLeafElement("patternFill",function(){o.writeAttributeString("patternType",e)})})};for(t("none"),t("gray125"),e=2;e<r.Sn.length;e++)k(o,r.Sn[e])}),o.writeElement("borders",function(){o.writeAttributeString("count",""+r.Tn.length)},function(){for(var e=0,t=r.Tn.length;e<t;e++)E(o,r.Tn[e])}),I(o,r.Un,"cellStyleXfs",!0),I(o,r.Vn,"cellXfs",!1),0===r.af.length)D(o);else{for(t=[],i=Object.keys(r.Wn),n=i.length,l=0,c=n;l<c;l++)f=i[l],p=r.Wn[f],t.push(new a.Tuple(p,r.af[p],f));0===t.length?D(o):o.writeElement("cellStyles",function(){o.writeAttributeString("count",""+t.length)},function(){var e,r,i=function(e,r){var i=t[e],n=i.item2;n?o.writeLeafElement("cellStyle",function(){o.writeAttributeString("name",s.Util.oa(i.item3)),o.writeAttributeString("xfId",""+i.item1),n.isBuiltInStyle()&&(o.writeAttributeString("builtinId",""+n.builtInStyle),n.isCustomBuiltin&&o.writeAttributeString("customBuiltin","1"),1!==n.builtInStyle&&2!==n.builtInStyle||o.writeAttributeString("iLevel",""+n.outLineLevel))}):o.writeLeafElement("cellStyle",function(){o.writeAttributeString("name",i.item3),o.writeAttributeString("xfId",""+i.item1)})};for(e=0,r=t.length;e<r;e++)i(e,r)})}L(o,e),e.mh.length>0?o.writeElement("tableStyles",function(){o.writeAttributeString("count",e.mh.length),o.writeAttributeString("defaultTableStyle","TableStyleMedium2"),o.writeAttributeString("defaultPivotStyle","PivotStyleMedium9")},function(){var t=e.mh;t&&t.forEach(function(e){o.writeElement("tableStyle",function(){o.writeAttributeString("name",e.name),e.isPivot?o.writeAttributeString("table","0"):(o.writeAttributeString("pivot","0"),s.isNullOrUndefined(e.tableId)||o.writeAttributeString("table",e.tableId)),o.writeAttributeString("count",e.styleElements.length)},function(){e.styleElements&&e.styleElements.length>0&&e.styleElements.forEach(function(e){o.writeLeafElement("tableStyleElement",function(){o.writeAttributeString("type",d[e.type]),o.writeAttributeString("dxfId",e.dxfId),s.isNullOrUndefined(e.size)||o.writeAttributeString("size",e.size)})})})})}):o.writeLeafElement("tableStyles",function(){h(o,"count","0","defaultTableStyle","TableStyleMedium2","defaultPivotStyle","PivotStyleLight16")}),(e.oh.length>0||e.qh.length>0)&&o.writeElement("extLst",function(){e.oh.length>0&&(g(o,e),w(o,e.oh)),e.qh.length>0&&(b(o,e),C(o,e.qh))})}),{xml:o.getXmlString(),styleOffset:r.Xn}}t.writeStyle=m;function g(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{46F421CA-312F-682f-3DD2-61675219B42D}"),e.writeAttributeString("xmlns:x14",n.XFileConstants.ce)},function(){_(e,t)})}function b(e,t){e.writeElement("ext",function(){e.writeAttributeString("uri","{A0A4C193-F2C1-4fcb-8827-314CF55A85BB}"),e.writeAttributeString("xmlns:x15",n.XFileConstants.de)},function(){N(e,t)})}function w(e,t){var r,i="SlicerStyle",a="Light",o="Dark",l=["SlicerStyleOther1","SlicerStyleOther2"];for(r=1;r<7;r++)l.push(i+a+r),l.push(i+o+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"),e.writeAttributeString("xmlns:x14",n.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 C(e,t){var r,i="TimeSlicerStyle",a="Light",o="Dark",l=[];for(r=1;r<7;r++)l.push(i+a+r),l.push(i+o+r);e.writeElement("ext",function(){e.writeAttributeString("uri","{9260A510-F301-46a8-8635-F512D64BE5F5}"),e.writeAttributeString("xmlns:x15",n.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",p[t.type]),e.writeAttributeString("dxfId",t.dxfId)})})})})})})})}function S(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 y(e,t){var r,i=e.length;if(0===i)return-1;for(r=0;r<i;r++)if(e[r].equals(t,!0))return r;return-1}function v(e,t){var r,i,n,c,d,f,p,h,m,g,b,w,C,v,x,T,A,k,E,F,I,P,D,R,L,_={Xn:0,Rn:[],Sn:[],Tn:[],gn:{count:0},Yn:{},Un:u,af:u,Wn:e.Sj()},N=e.gj(),B=e.hj(),M=e.ij();if(M&&0!==M.length||(B?(r=new o.ExcelStyle,r.builtInStyle=0,r.name="Normal",r.format(B),M=[],M.push(r)):(M=[],M.push(o.BuiltInExcelStyles.getNormalStyle()))),i="Normal",M)for(n=0,c=M.length;n<c;n++)d=M[n],d.isBuiltInStyle()&&0===d.builtInStyle&&(i=d.name);for(_.af=M,f=s.Util.ka(M,function(e){return e.name===i},null),p=s.Util.ka(N,function(e){return!e.isStyleFormat},null),h=s.Util.ka(N,function(e){return e.isStyleFormat},null),null!==p&&p.equals(B,!0)||(N.splice(0,0,B),_.Xn+=1),null!==h&&h.equals(f.format())||(N.splice(0,0,f.format()),_.Xn+=1),m=0,g=0,b=0,w=0,C=f.format(),v=S(C.fontForColumnWidth?C.fontForColumnWidth:C.font),_.Rn.push(v),x=new l.ExcelFill,x.patternType=0,x.bgColor=o.ExcelColor.EmptyColor,x.fgColor=o.ExcelColor.EmptyColor,_.Sn.push(x),x=new l.ExcelFill,x.patternType=17,x.bgColor=o.ExcelColor.EmptyColor,x.fgColor=o.ExcelColor.EmptyColor,_.Sn.push(x),_.Tn.push(new o.ExcelBorder),_.Vn=[],_.Un=[],T=0,n=0,c=N.length;n<c;n++)A=N[n],A.font&&(m=s.Util.la(_.Rn,A.font),m===-1&&(_.Rn.push(S(A.font)),m=_.Rn.length-1)),A.numberFormat?(g=A.numberFormat.numberFormatId,void 0===_.gn[g]&&_.gn.count++,_.gn[g]=s.Util.ua(A.numberFormat.numberFormatCode,"\n","_x000a_"),_.Yn[A.numberFormat.numberFormatCode]=g):A.numberFormatIndex>=0&&(g=A.numberFormatIndex),A.border&&(w=s.Util.la(_.Tn,A.border),w===-1&&(_.Tn.push(A.border),w=_.Tn.length-1)),s.isNullOrUndefined(A.fill)||0===A.fill.patternType?b=0:(k=A.fill,b=s.Util.la(_.Sn,k),b===-1&&(_.Sn.push(k),b=_.Sn.length-1)),A.isStyleFormat?(t[T]=""+_.Un.length,T++,_.Un.push(new a.Tuple(g,m,b,w,0,A,new a.Tuple(A.isHidden,A.isLocked)))):(E=new a.Tuple(g,m,b,w,0,A,new a.Tuple(A.isHidden,A.isLocked)),F=y(_.Vn,E),F===-1?(t[T]=""+_.Vn.length,_.Vn.push(E)):t[T]=""+F,T++);if(e.Ih&&e.Ih.length>0)for(I=e.Ih,P=I.length,n=0;n<P;n++)D=I[n],R=void 0,L=void 0,D.numberFormat?(R=D.numberFormat.numberFormatId,L=D.numberFormat.numberFormatCode):(R=D.numberFormatIndex,L=o.ExtendedNumberFormatHelper.getFormatCode(D)),void 0===_.gn[R]&&_.gn.count++,_.gn[R]=L,_.Yn[L]=g;return e.Yn=_.Yn,_}function x(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",u,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 i=t.fontSize;i>0&&e.writeLeafElement("sz",function(){e.writeAttributeString("val",""+i)})}void 0!==t.fontColor&&t.fontColor!==o.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",o.FontSchemeCategory[t.fontScheme])}))})}function A(e,t){t&&e.writeElement("rPr",u,function(){if(t.isBold&&e.writeLeafElement("b"),t.charSetIndex>0&&e.writeLeafElement("charset",function(){e.writeAttributeString("val",""+t.charSetIndex)}),t.foreColor&&t.foreColor!==o.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",o.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=A;function k(e,t,r){e.writeElement("fill",u,function(){t.stops?e.writeElement("gradientFill",function(){var r,i,n,a=["degree","left","right","top","bottom"];for(r=0,i=a;r<i.length;r++)n=i[r],s.isNullOrUndefined(t[n])||e.writeAttributeString(n,t[n]);"path"===t.type&&e.writeAttributeString("type","path")},function(){var r,i=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++)i(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 E(e,t,r){e.writeElement("border",function(){t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&e.writeAttributeString("diagonalDown",1),t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&e.writeAttributeString("diagonalUp",1)},function(){(!r||r&&t.left)&&F(e,"left",t.left),(!r||r&&t.right)&&F(e,"right",t.right),(!r||r&&t.top)&&F(e,"top",t.top),(!r||r&&t.bottom)&&F(e,"bottom",t.bottom),t.vertical&&F(e,"vertical",t.vertical),t.horizontal&&F(e,"horizontal",t.horizontal);var i=!1;t.diagonalUp&&t.diagonalUp.color&&t.diagonalUp.lineStyle&&(F(e,"diagonal",t.diagonalUp),i=!0),t.diagonalDown&&t.diagonalDown.color&&t.diagonalDown.lineStyle&&!i&&F(e,"diagonal",t.diagonalDown)})}function F(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 I(e,t,r,i){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"),i||e.writeAttributeString("xfId","0")})}):e.writeElement(r,function(){e.writeAttributeString("count",""+t.length)},function(){var r,n,a=function(r,n){var a=t[r],c=a.item6,u=a.item7,d=0!==c.horizontalAlign||2!==c.verticalAlign||0!==c.rotation||0!==c.readingOrder||c.isWordWrap||c.isShrinkToFit||c.isJustfyLastLine||c.indent>0,f=u&&(u.item1||!u.item2),p="writeElement";d||f||(p="writeLeafElement"),e[p]("xf",function(){if(e.writeAttributeString("numFmtId",""+a.item1),e.writeAttributeString("fontId",""+a.item2),e.writeAttributeString("fillId",""+a.item3),e.writeAttributeString("borderId",""+a.item4),c){if(i)P(e,c,"applyFont",!0),P(e,c,"applyFill",!0),P(e,c,"applyBorder",!0),P(e,c,"applyNumberFormat",!0),P(e,c,"applyAlignment",!0),P(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===a.item2||P(e,c,"applyFont",!1),s.isNullOrUndefined(c.applyFill)||P(e,c,"applyFill",!1),s.isNullOrUndefined(c.applyBorder)||P(e,c,"applyBorder",!1),s.isNullOrUndefined(c.applyNumberFormat)||P(e,c,"applyNumberFormat",!1),s.isNullOrUndefined(c.applyAlignment)||P(e,c,"applyAlignment",!1),s.isNullOrUndefined(c.applyProtection)||P(e,c,"applyProtection",!1)}s.isNullOrUndefined(c.quotePrefix)||e.writeAttributeString("quotePrefix",c.quotePrefix===!0?"1":"0")}},function(){d&&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",o.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(){u.item2||e.writeAttributeString("locked","0"),u.item1&&e.writeAttributeString("hidden","1")})})};for(r=0,n=t.length;r<n;r++)a(r,n)})}function P(e,t,r,i){var n=t[r],a;i&&n===!1?a="0":i||n!==!0||(a="1"),s.isNullOrUndefined(a)||e.writeAttributeString(r,a)}function D(e){e.writeElement("cellStyles",function(){e.writeAttributeString("count","1")},function(){e.writeLeafElement("cellStyle",function(){h(e,"name","Normal","builtinId","0","xfId","0")})})}function R(e,t,r){for(var i=0;i<r.length;i++)B(e,t,r[i],"dxf")}function L(e,t,r){var i=r?r:t.hf;0===i.length?e.writeLeafElement("dxfs",function(){e.writeAttributeString("count","0")}):e.writeElement("dxfs",function(){e.writeAttributeString("count",i.length)},function(){R(e,t,i)})}function _(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(){R(e,t,r)})}function N(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 i=0;i<r.length;i++)B(e,t,r[i],"dxf")})}function B(e,t,r,i){e.writeElement(i,function(){var i,n,a=r.isColorFilter?r:o.ConverterHelper.toDifferentialFormatting(r,t);a.font&&T(e,a.font,a.isPartFontStyle),(a.numberFormat||a.numberFormatIndex>=0)&&(i=void 0,n=void 0,a.numberFormat?(i=a.numberFormat.numberFormatId,n=a.numberFormat.numberFormatCode):(i=a.numberFormatIndex,n=a.numberFormatCode),x(e,{key:i,value:n})),a.fill&&(1===a.fill.patternType&&(a.fill.bgColor=a.fill.fgColor),k(e,a.fill,!0)),a.border&&E(e,a.border,a.isSlicerHeader)})}t.writeDxf=B},"./src/xlsx-io/writer/table-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=r("./src/common/range-parser.ts"),l=r("./src/xlsx-io/writer/autofilter-writer.ts");function c(e){return e.indexOf("LET(")>-1}function u(e,t){var r=e;return"number"==typeof t[e]?(t[e]++,r+="_"+t[e]):t[e]=0,r}function d(e,t,r,s){if(a.isNullOrUndefined(e))return null;var d=new i.XmlWriter;return d.writeDocument(),d.writeElement("table",function(){var t,r;d.writeAttributeString("xmlns",n.XFileConstants.Md),d.writeAttributeString("id",e.id),t=e.name.split(" ").join("_"),d.writeAttributeString("name",t),r=u(t.split("-").join("_"),s),d.writeAttributeString("displayName",r),d.writeAttributeString("ref",o.getRangeString([{row:e.row,col:e.col,rowCount:e.rowCount,colCount:e.colCount}])),e.showHeader===!1&&d.writeAttributeString("headerRowCount","0"),e.showFooter&&d.writeAttributeString("totalsRowCount","1")},function(){var i,n;e.rowFilter&&!a.isNullOrUndefined(e.rowFilter)&&(i=void 0,n=t.Bj(r,e.rowFilter,e.tableSortInfo),n&&n.sortInfo&&(i=n.sortInfo,n.sortInfo=null),e.showHeader!==!1&&(f(e.rowFilter)||h(n),l.writeAutoFilter(d,n)),i&&l.writeSortInfo(d,i)),e.columns&&e.columns.length>0&&d.writeElement("tableColumns",function(){d.writeAttributeString("count",e.columns.length)},function(){e.columns.forEach(function(t,r){if(!(r>=e.colCount)){var i=p(t.footerFormula);"custom"!==i?d.writeElement("tableColumn",function(){d.writeAttributeString("id",""+t.id);var e=t.name;e=a.Util.ua(e,"\r",""),d.writeAttributeString("name",a.Util.oa(a.Util.ua(e,"\n","_x000a_"))),a.isNullOrUndefined(t.footerValue)||d.writeAttributeString("totalsRowLabel",a.Util.oa(a.Util.xa(""+t.footerValue,!0))),a.isNullOrUndefined(t.footerFormula)||d.writeAttributeString("totalsRowFunction",i)},function(){var e=t.dataAreaFormula;a.isNullOrUndefined(e)||c(e)||d.writeElement("calculatedColumnFormula",function(){d.writeValue(a.Util.oa(a.addXLFNPrefix(e)))})}):d.writeElement("tableColumn",function(){d.writeAttributeString("id",""+t.id);var e=t.name;e=a.Util.ua(e,"\r",""),d.writeAttributeString("name",a.Util.oa(a.Util.ua(e,"\n","_x000a_"))),d.writeAttributeString("totalsRowFunction","custom")},function(){var e=t.dataAreaFormula;a.isNullOrUndefined(e)||c(e)||d.writeElement("calculatedColumnFormula",function(){d.writeValue(a.Util.oa(a.addXLFNPrefix(e)))}),d.writeElement("totalsRowFormula",function(){d.writeValue(a.Util.oa(t.footerFormula))})})}})}),d.writeLeafElement("tableStyleInfo",function(){if(e.style){var t="";t=a.isNullOrUndefined(e.style.buildInName)?e.style.name:"TableStyle"+e.style.buildInName,d.writeAttributeString("name",t)}e.highlightFirstColumn?d.writeAttributeString("showFirstColumn","1"):d.writeAttributeString("showFirstColumn","0"),e.highlightLastColumn?d.writeAttributeString("showLastColumn","1"):d.writeAttributeString("showLastColumn","0"),a.isNullOrUndefined(e.bandRows)?d.writeAttributeString("showRowStripes","1"):d.writeAttributeString("showRowStripes","0"),e.bandColumns?d.writeAttributeString("showColumnStripes","1"):d.writeAttributeString("showColumnStripes","0")}),e.reservedElement&&d.writeElement("extLst",function(){},function(){d.writeElement("ext",function(){a.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr.uri)||d.writeAttributeString("uri",e.reservedElement.ext._attr.uri),a.isNullOrUndefined(e.reservedElement.ext._attr&&e.reservedElement.ext._attr["xmlns:x14"])||d.writeAttributeString("xmlns:x14",e.reservedElement.ext._attr["xmlns:x14"])},function(){var t,r="vp:columns",i=e.reservedElement.ext[r];a.isNullOrUndefined(i)||d.writeElement(r,function(){a.isNullOrUndefined(i._attr&&i._attr["xmlns:vp"])||d.writeAttributeString("xmlns:vp",i._attr["xmlns:vp"])},function(){a.isNullOrUndefined(i[r])||d.writeValue(i[r])}),t=e.reservedElement.ext["x14:table"],a.isNullOrUndefined(t&&t._attr)||d.writeLeafElement("x14:table",function(){a.isNullOrUndefined(t._attr.altText)||d.writeAttributeString("altText",t._attr.altText),a.isNullOrUndefined(t._attr.altTextSummary)||d.writeAttributeString("altTextSummary",t._attr.altTextSummary)})})})}),d.getXmlString()}t.writeTable=d;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 p(e){var t,r;if(!a.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 i,n,a,o,l;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/builtIn-resource.ts"),o=r("./src/xlsx-io/common/color-writer.ts");function s(e){var t,r=e.Hi();return r||(r="Office"),t=new i.XmlWriter,t.writeDocument(),t.writeElement("a:theme",function(){t.writeAttributeString("xmlns:a",n.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,i;r&&r.colorScheme?(e=r.colorScheme,t.writeElement("a:clrScheme",function(){t.writeAttributeString("name",e.name)},function(){o.writeColorScheme(t,"a:dk1",e.schemeColors[1]),o.writeColorScheme(t,"a:lt1",e.schemeColors[0]),o.writeColorScheme(t,"a:dk2",e.schemeColors[3]),o.writeColorScheme(t,"a:lt2",e.schemeColors[2]),o.writeColorScheme(t,"a:accent1",e.schemeColors[4]),o.writeColorScheme(t,"a:accent2",e.schemeColors[5]),o.writeColorScheme(t,"a:accent3",e.schemeColors[6]),o.writeColorScheme(t,"a:accent4",e.schemeColors[7]),o.writeColorScheme(t,"a:accent5",e.schemeColors[8]),o.writeColorScheme(t,"a:accent6",e.schemeColors[9]),o.writeColorScheme(t,"a:hlink",e.schemeColors[10]),o.writeColorScheme(t,"a:folHlink",e.schemeColors[11])})):a.ThemeClrSchemes[r]?t.xml.addString(a.ThemeClrSchemes[r]):t.xml.addString(a.ThemeClrSchemes.Office),r&&r.fontScheme?(i=r.fontScheme,t.writeElement("a:fontScheme",function(){t.writeAttributeString("name",i.name)},function(){t.writeElement("a:majorFont",void 0,function(){c(t,i.majorFont,!0)}),t.writeElement("a:minorFont",void 0,function(){c(t,i.minorFont,!1)})})):a.ThemeFontSchemes[r]?t.xml.addString(a.ThemeFontSchemes[r]):t.xml.addString(a.ThemeFontSchemes.Office),a.ThemeFmtSchemes[r]?t.xml.addString(a.ThemeFmtSchemes[r]):t.xml.addString(a.ThemeFmtSchemes.Office)}),t.writeLeafElement("a:objectDefaults"),t.writeLeafElement("a:extraClrSchemeLst")}),t.getXmlString()}t.writeTheme=s;function c(e,t,r){var i,a,o;if(t)if(t.runFormattings&&(e.writeLeafElement("a:"+n.FontLanguage[0],function(){e.writeAttributeString("typeface",f(t.runFormattings,0))}),e.writeLeafElement("a:"+n.FontLanguage[2],function(){e.writeAttributeString("typeface",f(t.runFormattings,2))}),e.writeLeafElement("a:"+n.FontLanguage[1],function(){e.writeAttributeString("typeface",f(t.runFormattings,1))})),t.themesFonts&&t.themesFonts.length>0)for(i=function(r,i){var n=t.themesFonts[r];e.writeLeafElement("a:font",function(){e.writeAttributeString("script",n.script),e.writeAttributeString("script",n.typeface)})},a=0,o=t.themesFonts.length;a<o;a++)i(a,o);else r?u(e):d(e)}t.writeThemeFonts=c,l="Times New Roman";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",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");
47
+ }),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 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","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,i,n;if(!e)return"";for(r=0,i=e.length;r<i;r++)if(n=e[r],n.fontLanguage===t)return n.typeface;return""}},"./src/xlsx-io/writer/timeline-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=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=a.Util.Ba,u=a.Util.oa,d=a.Util.ua,f=[0,6,10,8,9,17,15,16,14,12,13,18,19,20,21,22,23,40];function p(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("timelines",function(){t.writeAttributeString("xmlns",n.XFileConstants.de),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString("mc:Ignorable","x"),t.writeAttributeString("xmlns:x",n.XFileConstants.be)},function(){e.forEach(function(e){t.writeLeafElement("timeline",function(){t.writeAttributeString("name",u(d(e.name,"\n","_x000a_"))),t.writeAttributeString("cache",u(e.nameInFormula)),t.writeAttributeString("caption",u(e.captionName)),t.writeAttributeString("level",parseInt(e.level,10)-1),t.writeAttributeString("style",u(e.style.name)),a.isNullOrUndefined(e.selectionLevel)||t.writeAttributeString("selectionLevel",parseInt(e.selectionLevel,10)-1),a.isNullOrUndefined(e.scrollPosition)||t.writeAttributeString("scrollPosition",c(new Date(e.scrollPosition))),a.isNullOrUndefined(e.showHeader)||e.showHeader||t.writeAttributeString("showHeader","0"),a.isNullOrUndefined(e.showSelectionLabel)||e.showSelectionLabel||t.writeAttributeString("showSelectionLabel","0"),a.isNullOrUndefined(e.showTimeLevel)||e.showTimeLevel||t.writeAttributeString("showTimeLevel","0"),a.isNullOrUndefined(e.showHorizontalScrollbar)||e.showHorizontalScrollbar||t.writeAttributeString("showHorizontalScrollbar","0"),e.disableResizingAndMoving&&t.writeAttributeString("lockedPosition","1")})})}),t.getXmlString()}t.writeTimelines=p;function h(e){if(a.isNullOrUndefined(e))return null;var t=new i.XmlWriter;return t.writeDocument(),t.writeElement("timelineCacheDefinition",function(){t.writeAttributeString("xmlns",n.XFileConstants.de),t.writeAttributeString("xmlns:x15",n.XFileConstants.de),t.writeAttributeString("xmlns:mc",n.XFileConstants.ae),t.writeAttributeString("name",u(e.name)),t.writeAttributeString("sourceName",u(e.sourceName))},function(){if(t.writeElement("pivotTables",function(){},function(){e.pivotTables.forEach(function(e){t.writeLeafElement("pivotTable",function(){t.writeAttributeString("tabId",e.tabId),t.writeAttributeString("name",u(e.name))})})}),t.writeElement("state",function(){t.writeAttributeString("minimalRefreshVersion","6"),t.writeAttributeString("lastRefreshVersion","6"),t.writeAttributeString("pivotCacheId",e.pivotCacheId),a.isNullOrUndefined(e.filterType)||f.indexOf(e.filterType)!==-1||t.writeAttributeString("singleRangeFilterState","0"),a.isNullOrUndefined(e.filterType)||!o.captionCompareTypeExcel[1][e.filterType]?t.writeAttributeString("filterType","unknown"):t.writeAttributeString("filterType",o.captionCompareTypeExcel[1][e.filterType])},function(){!a.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)))})}),!a.isNullOrUndefined(e.filterType)&&f.indexOf(e.filterType)===-1){var r=l.getPivotDateFilter(e.filterCondition,o.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",n.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 i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/xlsx-io/writer/comment-writer.ts"),a=r("./src/xlsx-io/writer/control-writer.ts");function o(e,t,r){var o=new i.XmlWriter;return o.writeElement("xml",function(){o.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),o.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),o.writeAttributeString("xmlns:x","urn:schemas-microsoft-com:office:excel")},function(){o.writeElement("o:shapelayout",function(){o.writeAttributeString("v:ext","edit")},function(){o.writeLeafElement("o:idmap",function(){o.writeAttributeString("v:ext","edit"),o.writeAttributeString("data","1")})});var i=1024*(e+1)+1;t&&t.length>0&&(n.writeCommentShapes(o,t,i),i+=t.length),r&&r.length>0&&a.writeControlShapes(o,r,i)}),o.getXmlString()}t.writeVmlDrawingForLegacyDrawing=o},"./src/xlsx-io/writer/workbook-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/xml-io/xml-writer.ts"),n=r("./src/common/excel-types.ts"),a=r("./src/common/common.ts"),o=r("./src/xlsx-io/writer/slicer-writer.ts"),l=r("./src/datamodel/datamodel-writer.ts"),s=void 0;function c(e,t,r,o,l,s,c){var d=new i.XmlWriter;return d.writeDocument(),d.writeElement("workbook",function(){d.writeAttributeString("xmlns",n.XFileConstants.Hd),d.writeAttributeString("xmlns:r",n.XFileConstants.Ud)},function(){u(d,e),d.writeElement("sheets",void 0,function(){var r,i,n=function(r,i){var n=t[r];n&&d.writeLeafElement("sheet",function(){d.writeAttributeString("name",a.Util.oa(n.name)),d.writeAttributeString("sheetId",""+n.sheetId),e.tj(n.name)?d.writeAttributeString("state","hidden"):e.uj(n.name)&&d.writeAttributeString("state","veryHidden"),d.writeAttributeString("r:id",""+n.rID)})};for(r=0,i=t.length;r<i;r++)n(r,i)});var i=e.Ne.externalReference;i&&d.writeElement("externalReferences",void 0,function(){var e,t=function(e){if(Object.prototype.hasOwnProperty.call(i,e)){var t=i[e];d.writeLeafElement("externalReference",function(){d.writeAttributeString("r:id",t.option.id)})}};for(e in i)t(e)}),f(d,e,o),C(d,r,s,c),S(d,l),v(d,e,t)}),d.getXmlString()}t.writeWorkbook=c;function u(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 d(e){return e.toUpperCase()===a.PRINT_AREA_UPPERCASE?a.BUILT_IN_PRINT_AREA:e}function f(e,t,r){var i,n,o=t.vj(),l=b(t);g(o,l),i=w(t),g(o,i),n=p(t),g(o,n),g(o,r),o.length>0&&e.writeElement("definedNames",s,function(){var t,r=function(t){var r=o[t];e.writeElement("definedName",function(){e.writeAttributeString("name",a.Util.oa(d(r.name))),r.comment&&e.writeAttributeString("comment",a.Util.oa(r.comment)),r.localSheetId>-1&&e.writeAttributeString("localSheetId",r.localSheetId),r.hidden===!0&&e.writeAttributeString("hidden","1")},function(){e.writeValue(a.addXLFNPrefix(r.formula).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))})};for(t=0;t<o.length;t++)r(t)})}function p(e){var t,r,i,n,a,o,l=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(i=e.Nj(r),i&&(n=h(i.repeatRowStart,i.repeatRowEnd,s,s,r),a=h(s,s,i.repeatColumnStart,i.repeatColumnEnd,r),o=void 0,n&&a?o=a+","+n:n?o=n:a&&(o=a),o&&l.push({name:"_xlnm.Print_Titles",localSheetId:t,formula:o})));return l}function h(e,t,r,i,n){if(r===s&&i===s&&e===s&&t===s)return s;var o="";return r!==s&&(o+="$"+a.IndexHelper.T(r)),e!==s&&(o+="$"+(e+1)),o+=":",i!==s&&(o+="$"+a.IndexHelper.T(i)),t!==s&&(o+="$"+(t+1)),n?a.IndexHelper.V(n)+"!"+o:o}function m(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 g(e,t){for(var r=0;r<t.length;r++)m(e,t[r])||e.push(t[r])}function b(e){var t,r,i,n,a,o,l=[],s=e.jj();for(t=0;t<s.length;t++)if(r=s[t]){if(i=e.Dj(r),n=e.Ej(r,"pivot"),a=e.Ej(r,"timeline"),i)for(o=0;o<i.length;o++)l.push({name:i[o].nameInFormula,formula:"#N/A",localSheetId:-1});if(n)for(o=0;o<n.length;o++)l.push({name:n[o].slicerCacheName,formula:"#N/A",localSheetId:-1});if(a)for(o=0;o<a.length;o++)l.push({name:a[o].slicerCacheName,formula:"#N/A",localSheetId:-1})}return l}function w(e){var t,r,i,n,a,o,s=[],c=e.jj();for(t=0;t<c.length;t++)r=c[t],r&&(i=e.Oj(r),i&&(n=e.kj(r),i.range&&(a=l.getFilterRange(n,i.range),o=h(a.row,a.row+a.rowCount,a.col,a.col+a.colCount,r),o&&s.push({name:"_xlnm._FilterDatabase",localSheetId:t,formula:o}))));return s}function C(e,t,r,i){e.writeLeafElement("calcPr",function(){var n,o,l;e.writeAttributeString("calcId","0"),t&&e.writeAttributeString("refMode","R1C1"),n=a.isNullOrUndefined(r.iterate)||r.iterate?"1":"0",o=a.isNullOrUndefined(r.count)?"1000":r.count,l=a.isNullOrUndefined(r.delta)?"0.01":r.delta,e.writeAttributeString("iterate",n),e.writeAttributeString("iterateCount",o),e.writeAttributeString("iterateDelta",l),1===i&&e.writeAttributeString("calcMode","manual")})}function S(e,t){a.isEmptyObject(t)||e.writeElement("pivotCaches",function(){for(var r in t)t.hasOwnProperty(r)&&y(e,t[r])})}function y(e,t){a.isEmptyObject(t)||e.writeLeafElement("pivotCache",function(){e.writeAttributeString("cacheId",t.cacheId),e.writeAttributeString("r:id",t.rid)})}function v(e,t,r){var i,n=0,a=t.Ne.tableSlicerCaches;a&&a.length&&n++,i=t.Ne.slicerCaches,i&&i.length&&n++,n&&o.writeSlicerCacheInWorkbook(e,a,i)}},"./src/xlsx-io/writer/worksheet-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=r("./src/xml-io/xml-writer.ts"),a=r("./src/common/excel-types.ts"),o=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"),u=r("./src/xlsx-io/writer/slicer-writer.ts"),d=r("./src/xlsx-io/writer/autofilter-writer.ts"),f=r("./src/xlsx-io/writer/datavalidation-writer.ts"),p=r("./src/datamodel/excel-helper.ts"),h=r("./src/xlsx-io/writer/print-writer.ts"),m=r("./src/xlsx-io/writer/chart-writer.ts"),g=void 0,b=i.Util.sa,w=66316;function S(e,t,r,o,l,s,u,p,m){var g=new n.XmlWriter;return g.writeDocument(),g.writeElement("worksheet",function(){g.writeAttributeString("xmlns",a.XFileConstants.Hd),g.writeAttributeString("xmlns:r",a.XFileConstants.Ud),g.writeAttributeString("xmlns:mc",a.XFileConstants.Jd),u&&u.attributes&&u.attributes.forEach(function(e){g.writeAttributeString(e.key,e.value)}),g.writeAttributeString("xmlns:x14ac",a.XFileConstants.Nd),g.writeAttributeString("xmlns:xr",a.XFileConstants.Rd),g.writeAttributeString("xmlns:xr2",a.XFileConstants.Sd),g.writeAttributeString("xmlns:xr3",a.XFileConstants.Td),g.writeAttributeString("xr:uid",i.Ha()),g.writeAttributeString("mc:Ignorable",a.XFileConstants.Pd)},function(){var i,n,a;if(v(g,t,e),x(g,t,e),T(g,t,e),A(g,t,e),k(g,t,e,r,o),E(g,t,e,l,r,o,s),P(g,t,e),d.writeAutoFilterForSheet(g,t,e),D(g,t,e),c.writeConditionalFormating(g,t,e),f.writeDataValidations(g,t,e),_(g,t,e,p),h.writePrintOptions(g,t,e),h.writePageMargins(g,t,e),h.writePageSetup(g,t,e),h.writeHeadFooter(g,t,e),h.writeRowColumnBreaks(g,t,e),u)for(i=[{name:"drawing",value:u.drawingId},{name:"legacyDrawing",value:u.legacyDrawingId}],n=function(e){var t=i[e],r=t.value;r&&g.writeLeafElement(t.name,function(){g.writeAttributeString("r:id",r)})},a=0;a<2;a++)n(a);h.writeLegacyDrawingHF(g,e),N(g,m),e.fi(t)&&e.fi(t).length>0&&L(g,e.fi(t)),y(e,t)&&R(g,t,e)}),g.getXmlString()}t.writeWorksheet=S;function y(e,t){var r,i,n,a,o=e.Dj(t),l=e.Ej(t,"pivot"),s=e.Ej(t,"timeline");return!!(o&&o.length>0||l&&l.length>0||s&&s.length>0)||(r=e.zj(t),!!(r&&r.length>0)||(i=e.xg(t),n=i&&i.rules,!(!n||!c.needWriteConditionalFormatExtension(n,t,e.jj()))||(a=e.On,!!(a&&a.length>0))))}function v(e,t,r){var i=r.lj(t),n=i.colsSumRight,a=i.rowsSumBelow,l=r.mj(t),s=r.Mj(t,!0),c=s&&s.useSmartPrint;!l&&n&&a&&c!==!0||e.writeElement("sheetPr",function(){null!==l&&o.writeColor(e,"tabColor",l),n&&a||e.writeLeafElement("outlinePr",function(){n||e.writeAttributeString("summaryRight","0"),a||e.writeAttributeString("summaryBelow","0")}),c===!0&&e.writeLeafElement("pageSetUpPr",function(){e.writeAttributeString("fitToPage","1")})})}function x(e,t,r){var i=r.nj(t),n=i.columnCount,a=i.rowCount;n>0&&a>0?e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1:"+r.Ki(n-1)+a)}):e.writeLeafElement("dimension",function(){e.writeAttributeString("ref","A1")})}function T(e,t,r){e.writeElement("sheetViews",g,function(){e.writeElement("sheetView",function(){var n,a,o,l,s,c,u,d,f,p,h,m,g=r.oj(t),b=g.gridlineColor;null!==b&&1===b.colorType()&&64!==b.value()&&(e.writeAttributeString("defaultGridColor","0"),e.writeAttributeString("colorId",""+b.value())),n=r.pj(t),a=n.frozenTopRow||0,o=n.frozenLeftCol||0,l=g.topLeftCell,s=n.frozenColCount,c=n.frozenRowCount,l&&void 0!==l.row&&void 0!==l.col&&(a||o?(u=""+r.Ki(o)+(a+1),e.writeAttributeString("topLeftCell",""+u)):s||c?s&&!c?(u="A"+(l.row+1),e.writeAttributeString("topLeftCell",""+u)):!s&&c&&(u=""+r.Ki(l.col)+"1",e.writeAttributeString("topLeftCell",""+u)):(u=""+r.Ki(l.col)+(l.row+1),e.writeAttributeString("topLeftCell",""+u))),g.showGridLine||e.writeAttributeString("showGridLines","0"),g.showRowColHeaders||e.writeAttributeString("showRowColHeaders","0"),i.isNullOrUndefined(g.zoom)||(d=Math.round(100*g.zoom),100!==d&&e.writeAttributeString("zoomScale",""+d)),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&&(p=h.activeSheetIndex),m=f.index===p,(f.isSelected||m)&&e.writeAttributeString("tabSelected",1)},function(){var n,o,l,s,c,u,d,f=r.pj(t),p=f.frozenColCount,h=f.frozenRowCount,m=0,g=0,b=3,w="1",C="A",S=r.oj(t).topLeftCell;for((p>0||h>0)&&(p>0?(m=p,C=r.Ki(S.col)):m=0,h>0?(g=h,w=S.row+1+""):g=0,p>0&&0===h?b=1:0===p&&h>0?b=2:p>0&&h>0&&(b=0),e.writeLeafElement("pane",function(){var t,i=p-f.frozenLeftCol;i>0&&e.writeAttributeString("xSplit",""+i),t=h-f.frozenTopRow,t>0&&e.writeAttributeString("ySplit",""+t),C+w==="A1"?e.writeAttributeString("topLeftCell",""+r.Ki(m)+(g+1)):e.writeAttributeString("topLeftCell",""+C+w),e.writeAttributeString("activePane",a.PaneType[b]),e.writeAttributeString("state","frozen")})),n=[],o=new i.Range,l=0,s=1,c=-1,u=function(u){var d,f,m,g,b,w,C,S,y,v;if(n.length=0,d=u,r.$i(t,n,o,d)){for(s=n.length,l=0;l<s;l++)f=n[l],f.col!==-1&&f.colCount!==-1||(f=new i.Range(f.row,0,f.rowCount,a.ExcelConstants.vb)),f.row!==-1&&f.rowCount!==-1||(f=new i.Range(0,f.col,a.ExcelConstants.wb,f.colCount)),o.col>=f.col&&o.col<=f.col+f.colCount-1&&o.row>=f.row&&o.row<=f.row+f.rowCount-1&&(c=l);if(c<0&&s>0&&(o.row=n[0].row,o.col=n[0].col),m=""+r.Ki(o.col)+(o.row+1),g="",p>0&&h>0&&(1===d||2===d))g=m;else{for(l=0;l<s;l++)b=n[l],w=Math.min(a.ExcelConstants.wb,b.row+1),C=Math.min(b.col,a.ExcelConstants.vb),g+=""+r.Ki(C)+w,(b.colCount>1||b.rowCount>1)&&(S=Math.min(C+b.colCount-1,a.ExcelConstants.vb),y=Math.min(w+b.rowCount-1,a.ExcelConstants.wb),v=""+r.Ki(S)+y,g+=":"+v),g+=" ";g=g.trim()}i.StringEx.O(g)||3===d&&(p>0||h>0||3!==d)||e.writeLeafElement("selection",function(){3!==d&&e.writeAttributeString("pane",a.PaneType[d]),e.writeAttributeString("activeCell",m),0!==c&&0===d&&e.writeAttributeString("activeCellId",""+c),e.writeAttributeString("sqref",g)})}},d=3;d>=0;d--)u(d)})})}function A(e,t,r){var i=r.Xi(t),n=i.height,a=i.customHeight,o=r.Yi(t);e.writeLeafElement("sheetFormatPr",function(){var i,l,s;isNaN(o)||e.writeAttributeString("defaultColWidth",""+o),a&&e.writeAttributeString("customHeight","1"),e.writeAttributeString("defaultRowHeight",""+n),i=r.Wi(t),l=i.outlineLevelRow-1,s=i.outlineLevelColumn-1,l>0&&e.writeAttributeString("outlineLevelRow",""+l),s>0&&e.writeAttributeString("outlineLevelCol",""+s)})}function k(e,t,r,i,n){var o=r.Ti(t),l=r.Vi(t);0!==o.length&&e.writeElement("cols",g,function(){var t,r,s,c,u=function(r,s){var c,u,d,f=o[r],p=f.index;if(p>=a.ExcelConstants.vb)return t=r,"break";for(c=r+1,u=p;c<o.length&&(d=o[c],d.index===u+1&&d.index<a.ExcelConstants.vb&&d.formatId===f.formatId&&d.visible===f.visible&&d.outLineLevel===f.outLineLevel&&d.collapsed===f.collapsed&&Math.abs(d.width-f.width)<=1e-4);)u=d.index,r=c,c++;e.writeLeafElement("col",function(){if(e.writeAttributeString("min",""+(p+1)),e.writeAttributeString("max",""+(u+1)),f.formatId>=0){var t=i[f.formatId+n];t!==g?e.writeAttributeString("style",t):e.writeAttributeString("style","0")}isNaN(f.width)||f.width===g?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=o.length;r<s&&(c=u(r,s),r=t,"break"!==c);r++);})}function E(e,t,r,i,n,o,s){var c,u,d,f,p,h,m,b,w,C={},S=r.Ni(t);if(S)for(c=0,u=S.length;c<u;c++)d=S[c],d&&d.index<a.ExcelConstants.wb&&(C[d.index]=new l.Tuple(d,[]));if(f=r.Mi(t))for(p in f)if(f.hasOwnProperty(p))for(h=f[p],c=0,m=h.length;c<m;c++)b=h[c],b&&(C[b.row]?C[b.row].item2.push(b):(C[b.row]=new l.Tuple(null,[]),C[b.row].item2.push(b)));w=r.Ne.sheets[t].sharedFormulas,e.writeElement("sheetData",g,function(){var r,a,l,c=-1;for(r in C)C.hasOwnProperty(r)&&(a=C[r],l=parseInt(r,10),F(e,t,l,c,a.item2,a.item1,i,n,o,s,w),c=l)})}function F(e,t,r,i,n,o,l,s,c,u,d){var f=""+(r+1),p=function(){if(!l.keepRowColIndex&&r===i+1||!o&&!n||e.writeAttributeString("r",f),o){if(o.formatId>=0){var t=s[o.formatId+c];t!==g&&(e.writeAttributeString("s",t),e.writeAttributeString("customFormat","1"))}o.customHeight&&(e.writeAttributeString("customHeight","1"),o.height!==g&&e.writeAttributeString("ht",""+o.height)),o.visible===!1&&e.writeAttributeString("hidden","1"),o.collapsed&&e.writeAttributeString("collapsed","1"),"number"==typeof o.outLineLevel&&0!==o.outLineLevel&&e.writeAttributeString("outlineLevel",""+o.outLineLevel)}};n&&n.length>0?e.writeElement("row",p,function(){var t,r,i,o=-1;for(t=0,r=n.length;t<r;t++)i=n[t],i.col>=a.ExcelConstants.vb||(I(e,i,f,o,l,s,c,u,d),o=i.col)}):e.writeLeafElement("row",p)}C=["#REF!","#NULL!","#DIV/0!","#VALUE!","#NAME?","#NUM!","#N/A","#SPILL!","#CALC!"];function I(e,t,r,n,a,o,l,s,c){var u=t.value,d=t.formula,f=t.cellType,p=t.richText,h=function(){var s,c,d,p;switch((a.xlsxStrictMode||t.col!==n+1)&&e.writeAttributeString("r",i.IndexHelper.T(t.col)+r),t.formatId===-1?e.writeAttributeString("s","0"):(s=t.formatId+l,c=o[s],c!==g&&e.writeAttributeString("s",c)),f){case 0:break;case 9:case 2:d="s";break;case 5:d="b";break;case 7:d="e"}t.formula&&(t.arrayFormulaRange?(p=t.arrayFormulaRange.isDynamicArray,p&&e.writeAttributeString("cm","1"),t.isSpillError&&(d="e",e.writeAttributeString("vm","1"))):i.isNullOrUndefined(u)||"#"!==(""+u).substring(0,1)||C.indexOf((""+u).toUpperCase())===-1?t.isSpillError&&(d="e",e.writeAttributeString("vm","2")):d="e"),(t.formula||t.qi)&&"s"===d&&(d="str"),i.isNullOrUndefined(d)||e.writeAttributeString("t",d)};function m(e){var t,r=s.Zn[e.value],i=s.$n[e.value];return i===g&&(i=s.$n[e.value]=[]),t=S(i,e),r===g||t===g?(r=s.Qn.length,s.Qn.push(e),s.Zn[e.value]=r,i.push({index:r,value:e})):r=t,s.Pn++,r}function S(e,t){for(var r=0,i=e.length;r<i;r++)if(b(e[r].value,t))return e[r].index}u!==g&&null!==u||!i.StringEx.L(d)?e.writeElement("c",h,function(){var r,n;i.StringEx.L(d)||(r=t.arrayFormulaRange,i.isNullOrUndefined(d.si)?r?t.row===r.row&&t.col===r.col&&e.writeElement("f",function(){e.writeAttributeString("t","array");var t=i.IndexHelper.T(r.col)+(r.row+1)+":"+i.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(i.Util.oa(i.addXLFNPrefix(d)))}):e.writeElement("f",g,function(){e.writeValue(i.Util.oa(i.addXLFNPrefix(d)))}):(n=c[d.si],n.baseRow===t.row&&n.baseColumn===t.col?e.writeElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",d.si);var t=i.IndexHelper.T(n.baseColumn)+(n.baseRow+1)+":"+i.IndexHelper.T(n.lastColumn)+(n.lastRow+1);e.writeAttributeString("ref",t)},function(){e.writeValue(i.Util.oa(i.addXLFNPrefix(n.formula)))}):e.writeLeafElement("f",function(){e.writeAttributeString("t","shared"),e.writeAttributeString("si",d.si)}))),u!==g&&null!==u&&e.writeElement("v",g,function(){var r,n;switch("string"==typeof u&&"/OADate"===u.substring(0,7)&&(f=6),r=u,f){case 9:case 2:r=""+m({value:u,richText:p});break;case 7:r=u;break;case 5:n="1",("boolean"==typeof u&&!u||"FALSE"===(""+u).toUpperCase())&&(n="0"),r=n;break;case 6:default:r=i.Util.oa(""+u)}i.isNullOrUndefined(t.formula)&&!t.qi||("boolean"==typeof u&&(u=u?1:0),r=""+u,r&&r.length>w&&(r=""),r=i.Util.oa(r)),"#SPILL!"!==r&&"#CALC!"!==r||7!==f||(r="#VALUE!"),e.writeValue(r)})}):e.writeLeafElement("c",h)}function P(e,t,r){var i,n=r.qj(t),a=r.rj(t,n);(n||Object.keys(a).length>0)&&e.writeLeafElement("sheetProtection",function(){n&&e.writeAttributeString("sheet","1");for(var t in a)a.hasOwnProperty(t)&&(i=a[t],"algorithmName"===t||"hashValue"===t||"saltValue"===t||"spinCount"===t||"password"===t?e.writeAttributeString(t,i):p.excelSupportProtectionOptions[t]&&(i=a[t]?"0":"1",e.writeAttributeString(t,i)))})}function D(e,t,r){var n=r.aj(t);n&&n.length>0&&e.writeElement("mergeCells",function(){e.writeAttributeString("count",""+n.length)},function(){var t,r,a=function(t,r){var a=n[t];e.writeLeafElement("mergeCell",function(){e.writeAttributeString("ref",i.IndexHelper.T(a.col)+(a.row+1)+":"+i.IndexHelper.T(a.col+a.colCount-1)+(a.row+a.rowCount))})};for(t=0,r=n.length;t<r;t++)a(t,r)})}function R(e,t,r){e.writeElement("extLst",g,function(){c.writeExtensionConditionalFormats(e,t,r),s.writeSparkline(e,t,r),u.writeSlicersInWorkSheet(e,t,r),f.writeExtensionDataValidations(e,r)})}function L(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 _(e,t,r,i){var n=r.Hh[t];n&&n.length>0&&e.writeElement("hyperlinks",function(){var t,r,o=function(t,r){var o=n[t];e.writeLeafElement("hyperlink",function(){var t,r;e.writeAttributeString("ref",o.ref),o.location?e.writeAttributeString("location",o.location):(t="",r=new a.XFile(t,a.RelationshipConstants.gb),r.target=o.url,r.targetMode="External",o.rid=i.ze(r),e.writeAttributeString("r:id",o.rid)),o.display&&e.writeAttributeString("display",o.display),o.tooltip&&e.writeAttributeString("tooltip",o.tooltip),o["xr:uid"]&&e.writeAttributeString("xr:uid",o["xr:uid"])})};for(t=0,r=n.length;t<r;t++)o(t,r)})}function N(e,t){!t||t.length<=0||M(e,function(){B(e,t)})}function B(e,t){e.writeElement("controls",g,function(){t.forEach(function(t){O(e,t)})})}function M(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 O(e,t){M(e,function(){G(e,t)})}function G(e,t){var r=t.sp.nvSpPr.cNvPr,i=t.sp.control.rid,n=r.id,a=r.name;e.writeElement("control",function(){e.writeAttributeString("shapeId",n),e.writeAttributeString("r:id",i),e.writeAttributeString("name",a)},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(){U(e,t)})}function U(e,t){var r=t.sp.control.anchorInfo,i=r.startPoint,n=r.endPoint;e.writeElement("anchor",function(){e.writeAttributeString("moveWithCells",1),e.writeAttributeString("sizeWithCells",1)},function(){m.DrawingWriter.WriteCT_Position(e,g,"from",i),m.DrawingWriter.WriteCT_Position(e,g,"to",n)})}},"./src/xlsx-io/writer/xlsx-writer.ts":function(e,t,r){"use strict";var i,n,a,o,l,s,c,u,d,f,p,h,m,g,b,w,C,S,y,v,x,T,A,k,E,F,I,P,D,R,L;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/excel-types.ts"),n=r("./src/common/common.ts"),a=r("./src/xml-io/xml-writer.ts"),o=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"),u=r("./src/xlsx-io/writer/docPropsCustomWriter.ts"),d=r("./src/xlsx-io/writer/worksheet-writer.ts"),f=r("./src/xlsx-io/writer/sharedString-writer.ts"),p=r("./src/xlsx-io/writer/theme-writer.ts"),h=r("./src/xlsx-io/writer/workbook-writer.ts"),m=r("./src/xlsx-io/writer/comment-writer.ts"),g=r("./src/xlsx-io/writer/drawing-writer.ts"),b=r("./src/xlsx-io/writer/table-writer.ts"),w=r("./src/xlsx-io/writer/slicer-writer.ts"),C=r("./src/xlsx-io/writer/print-writer.ts"),S=r("./src/xlsx-io/writer/metadata-writer.ts"),y=r("./src/xlsx-io/writer/chart-writer.ts"),v=r("./src/datamodel/excel-helper.ts"),x=r("./src/datamodel/excel-style.ts"),T=r("./src/xlsx-io/writer/pivot-writer.ts"),A=r("./src/xlsx-io/writer/ctrlprops-writer.ts"),k=r("./src/xlsx-io/writer/vmlDrawing-writer.ts"),
48
48
  E=r("./src/xlsx-io/writer/externalLink-writer.ts"),F=r("./src/xlsx-io/writer/timeline-writer.ts"),I="../charts/",P="../drawings/",D=void 0,R=r("./src/lib/jszip.min.js");function _(e,t,r){var n,a,o,l=e.imageType||"jpg";return"svg+xml"===l&&(l="svg"),n=i.XFileConstants.ld+t+"."+l,a=new i.XFile(i.XFileConstants.Oc+"/"+n,i.RelationshipConstants.hb),a.target="../media/"+n,o=r.ze(a),e.rid=o,a}function N(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}}}}}}}L=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=R(),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 o.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,n=this,a=new i.XFile("",""),o=new i.XFile(i.XFileConstants.zd,i.RelationshipConstants.Na);a.ze(o),n.so(a),e={Qn:[],Zn:{},Pn:0,$n:{}},t=n.uo(o),r=[],n.vo(n.ro.Ne.pivotCaches,o),n.wo(n.ro.Ne.slicerCaches,o),n.xo(o,t,e,r),n.yo(n.ro,n.ro.Ne.tableSlicerCaches,o),n.zo(o,e),n.Ao(o),n.Bo(o),n.Co(o),n.Do(r),n.Eo(a),n.Fo(a,n.ho>0),n.wn(),n.fo.generateAsync({type:n.Bg.useArrayBuffer?"arraybuffer":"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"DEFLATE"}).then(function(e){n.onZip(e)}).catch(function(){n.onError()})},e.prototype.so=function(e){var t,r,a,o=this,l=o.ro.Ne;n.isNullOrUndefined(l.docProps)||(l.docProps.docPropsCore&&(t=new i.XFile(i.XFileConstants.Ad,i.RelationshipConstants.Ka),e.ze(t),o.Go()),l.docProps.docPropsApp&&(r=new i.XFile(i.XFileConstants.Bd,i.RelationshipConstants.La),e.ze(r),o.Ho()),l.docProps.docPropsCustom&&(a=new i.XFile(i.XFileConstants.Cd,i.RelationshipConstants.Ma),e.ze(a),o.Io()))},e.prototype.Eo=function(e){var t,r,o,l,s,c,u,d,f,p;if(!n.isNullOrUndefined(e)&&!n.isNullOrUndefined(e.relationFiles)&&0!==e.relationFiles.count){t=n.Util.ra(e.fileName),r=t.dir,o=t.fileName,l=this,s={};for(c in e.relationFiles)e.relationFiles.hasOwnProperty(c)&&(u=e.relationFiles[c],u&&"count"!==c&&(d=[u.target||u.fileName.replace(r+"/",""),u.fileType],u.targetMode&&d.push(u.targetMode),s[c]=d,this.Eo(u)));f=new a.XmlWriter,f.writeDocument(),f.writeElement("Relationships",function(){f.writeAttributeString("xmlns",i.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)}),p=r+"/"+i.XFileConstants.Bb+"/"+o+"."+i.XFileConstants.Gb,l.fo.file(p.substring(1),f.getXmlString())}},e.prototype.Fo=function(e,t){var r=this.ro.Li(e,t),n=new a.XmlWriter;n.writeDocument(),n.writeElement("Types",function(){n.writeAttributeString("xmlns",i.XFileConstants.Vd)},function(){var e,t,a=function(e,t){var a=r[e];a instanceof i.DefaultContentType?n.writeLeafElement("Default",function(){n.writeAttributeString("Extension",a.extension),n.writeAttributeString("ContentType",a.contentType)}):a instanceof i.OverrideContentType&&n.writeLeafElement("Override",function(){n.writeAttributeString("PartName",a.partName),n.writeAttributeString("ContentType",a.contentType)})};for(e=0,t=r.length;e<t;e++)a(e,t)}),this.fo.file(i.XFileConstants.Db,n.getXmlString())},e.prototype.Go=function(){var e=this,t=s.writeDocPropsCore(e.ro);this.fo.file(i.XFileConstants.Ad.substring(1),t)},e.prototype.Ho=function(){var e=this,t=c.writeDocPropsApp(e.ro);this.fo.file(i.XFileConstants.Bd.substring(1),t)},e.prototype.Io=function(){var e=this,t=u.writeDocPropsCustom(e.ro);this.fo.file(i.XFileConstants.Cd.substring(1),t)},e.prototype.uo=function(e){var t,r=this,n=new i.XFile(i.XFileConstants.Dd,i.RelationshipConstants.Pa);return e.ze(n),t=l.writeStyle(r.ro,r.bo),r.fo.file(i.XFileConstants.Dd.substring(1),t.xml),t.styleOffset},e.prototype.xo=function(e,t,r,n){var a,o,l,s,c,u,d,f,p,h,m=this.ro,g=m.jj(),b=g.length,w=0,C=m.fi();for(C&&C.length>0&&C.forEach(function(e){w++,e.id=w}),a={},o={},l=0;l<b;l++)s=g[l],s&&(c=new i.SheetInfo,c.name=s,c.sheetId=l+1,c.index=l,u=new i.XFile(i.XFileConstants.Rc+"/"+i.XFileConstants.$c+c.sheetId+"."+i.XFileConstants.nc,i.RelationshipConstants.Ra),c.rID=e.ze(u),this.un.push(c),d={attributes:[]},f=m.wj(s),p=m.Ij(s),this.Jo(u,l,d,f,p),this.Ko(m,u,f),this.Lo(m,u,p),h=this.Mo(u,d,p.withDrawingObjects),this.No(h,p,n),this.Oo(m,h,p),this.Po(m,u,s,o),this.Qo(m,u,s,e,a),this.Ro(m,u,s,e),this.So(m,u,s),this.To(c,t,r,d,u,p.controlShapes))},e.prototype.zo=function(e,t){var r,n,a=this;t.Qn.length<=0||(r=new i.XFile(i.XFileConstants.wd,i.RelationshipConstants.Sa),e.ze(r),n=f.writeSharedString(t),a.fo.file(i.XFileConstants.wd.substring(1),n))},e.prototype.Ao=function(e){var t,r=new i.XFile(i.XFileConstants.xd,i.RelationshipConstants.Ua);e.ze(r),t=p.writeTheme(this.ro),this.fo.file(i.XFileConstants.Ed.substring(1),t)},e.prototype.Bo=function(e){var t,r,n,a,o,l,s,c,u=this.ro.Ne.externalReference;if(u)for(t in u)Object.prototype.hasOwnProperty.call(u,t)&&(r=u[t],n=i.XFileConstants.Vc+"/"+i.XFileConstants._c+t+"."+i.XFileConstants.nc,a=new i.XFile(n,i.RelationshipConstants.Za),r.option.id=e.ze(a),o=new i.XFile("",i.RelationshipConstants.rb),o.target=r.option.name,l=r.option.path,l&&l.length>0&&(s=l.substr(-1),"/"===s||"\\"===s?o.target=l+o.target:o.target=l+"/"+o.target),o.target=o.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;"),o.targetMode="External",a.ze(o),c=E.writeExternalLink(this.ro,r),this.fo.file(n.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(i.XFileConstants.zd.substring(1),r)},e.prototype.vo=function(e,t){var r,n,a,o,l,s,c,u;if(e){r=1,n=1,this.Uo={};for(a in e)e.hasOwnProperty(a)&&(o=new i.XFile(i.XFileConstants.Yc+"/"+i.XFileConstants.td+r+"."+i.XFileConstants.nc,i.RelationshipConstants.Wa),l=new i.XFile(i.XFileConstants.Yc+"/"+i.XFileConstants.ud+n+"."+i.XFileConstants.nc,i.RelationshipConstants.Xa),s=t.ze(o),this.Uo[a]={file:o,cacheId:a,rid:s},c=T.writePivotCacheDefinition(e[a]),this.fo.file((i.XFileConstants.Yc+"/"+i.XFileConstants.td+r+"."+i.XFileConstants.nc).substring(1),c),o.ze(l),u=T.writePivotCacheRecords(e[a].pivotCacheRecords),this.fo.file((i.XFileConstants.Yc+"/"+i.XFileConstants.ud+n+"."+i.XFileConstants.nc).substring(1),u),r++,n++)}},e.prototype.To=function(e,t,r,n,a,o){var l=this,s=d.writeWorksheet(l.ro,e.name,l.bo,t,l.Bg,r,n,a,o);this.fo.file(i.XFileConstants.yd.substring(1)+"/sheet"+e.sheetId+"."+i.XFileConstants.nc,s)},e.prototype.Ko=function(e,t,r){var n,a,o;r&&r.length>0&&(this.io++,n=i.XFileConstants.ad+this.io+"."+i.XFileConstants.nc,a=new i.XFile(i.XFileConstants.Cb+"/"+n,i.RelationshipConstants._a),a.target="../"+n,t.ze(a),o=m.writeComments(e,r),this.fo.file(a.fileName.substring(1),o))},e.prototype.Jo=function(e,t,r,n,a){var o,l,s,c,u=a.controlShapes,d=n&&n.length>0,f=u&&u.length>0;(d||f)&&(this.ho++,o=i.XFileConstants.Kc+this.ho+"."+i.XFileConstants.oc,l=new i.XFile(i.XFileConstants.Mc+"/"+o,i.RelationshipConstants.ab),l.target=P+o,s=e.ze(l),r.legacyDrawingId=s,r.attributes.push({key:"xmlns:xdr",value:i.XFileConstants.Kd}),f&&r.attributes.push({key:"xmlns:x14",value:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.Vo(l,u),c=k.writeVmlDrawingForLegacyDrawing(t,n,u),this.fo.file(l.fileName.substring(1),c))},e.prototype.Vo=function(e,t){var r=this;t.forEach(function(t){var i,n,a=t.sp.control.style,o=a&&a.fill,l=o&&o.src;l&&(i={},v.getPictureInfo(l,i),r.ko++,n=_(i,r.ko,e),r.fo.file(n.fileName.substring(1),i.base64Image,{base64:!0}),e.relationFiles[i.rid]=n,o.rid=i.rid)})},e.prototype.So=function(e,t,r){var n,a,o,l,s,c=e.xj(r);if(c&&c.length>0){this.Wo||(this.Wo=1);for(n in c)c.hasOwnProperty(n)&&(a=i.XFileConstants.vd+this.Wo+"."+i.XFileConstants.nc,o=new i.XFile(i.XFileConstants.Zc+"/"+a,i.RelationshipConstants.Ya),o.target="../pivotTables/"+a,t.ze(o),l=this.Uo&&this.Uo[c[n].cacheId]&&this.Uo[c[n].cacheId].file,l&&o.ze(l),s=T.writePivotTable(e,c[n]),this.fo.file((i.XFileConstants.Zc+"/"+a).substring(1),s),this.Wo++)}},e.prototype.No=function(e,t,r){var i,n=this,a=t.charts;a&&a.forEach(function(t){n.Xo(t,e,r)}),i=t.shapes,i&&i.forEach(function(t){t.graphicFrame&&t.graphicFrame.graphic.graphicData.chart&&(t.chartSpace=t.graphicFrame.graphic.graphicData.chart.chartSpace,delete t.chartSpace.userShapes,n.Xo(t,e,r),t.graphicFrame.graphic.graphicData.chart.id=t.chartId)})},e.prototype.Xo=function(e,t,r){var o,l,s,c,u,d,f,p,h,m,g,b,w=this,C=n.Util.za(e),S=C&&C.layoutId,v=n.Util.Aa(S),x=v?i.RelationshipConstants.mb:i.RelationshipConstants.lb,T=v?i.XFileConstants.dd:i.XFileConstants.bd;w.qo++,o=T+w.qo+"."+i.XFileConstants.nc,l=i.XFileConstants.ed+w.qo+"."+i.XFileConstants.nc,s=i.XFileConstants.hd+w.qo+"."+i.XFileConstants.nc,c=new i.XFile(i.XFileConstants.Lc+"/"+o,x),u=new i.XFile(i.XFileConstants.Lc+"/"+l,i.RelationshipConstants.qb),d=new i.XFile(i.XFileConstants.Lc+"/"+s,i.RelationshipConstants.pb),c.target=I+o,e.chartId=t.ze(c),f=e.graphicFrame.nvGraphicFramePr.cNvPr,e.AlternateContent=N(f.name,e.chartId,f.descr),p=e.chartSpace,p&&(w.Yo(p,e,c),w.Zo(p,c),h=new a.XmlWriter,h.writeDocument(),v?(m=void 0,m=w.ro&&w.ro.Ne&&w.ro.Ne.names?w.ro.Ne.names:[],y.DrawingWriter.chart2016Write.WriteCT_ChartSpace(h,"cx","chartSpace",p,m,r)):y.DrawingWriter.WriteCT_ChartSpace(h,"c","chartSpace",p),w.fo.file(c.fileName.substring(1),h.getXmlString()),v&&(u.target=I+l,n.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}}}')),e.chartSpace.style.id=c.ze(u),d.target=I+s,n.isNullOrUndefined(e.chartSpace.colors)&&(e.chartSpace.colors=JSON.parse('{"schemeClr":[{"val":4},{"val":5},{"val":6},{"val":7},{"val":8},{"val":9}],"variation":[{},{"lumMod":60000},{"lumMod":80000,"lumOff":20000},{"lumMod":80000},{"lumMod":60000,"lumOff":40000},{"lumMod":50000},{"lumMod":70000,"lumOff":30000},{"lumMod":70000},{"lumMod":50000,"lumOff":50000}],"attribute":{"cs":"http://schemas.microsoft.com/office/drawing/2012/chartStyle","a":"http://schemas.openxmlformats.org/drawingml/2006/main","meth":"cycle","id":"10"}}')),e.chartSpace.colors.id=c.ze(d),g=new a.XmlWriter,y.DrawingWriter.chart2016Write.WriteCT_ChartStyle(g,"cs","chartStyle",null,p.style),w.fo.file(u.fileName.substring(1),g.getXmlString()),b=new a.XmlWriter,y.DrawingWriter.chart2016Write.WriteCT_ChartColors(b,"cs","colorStyle",null,p.colors),w.fo.file(d.fileName.substring(1),b.getXmlString())))},e.prototype.Yo=function(e,t,r){var n,a,o,l=this,s=e.userShapes,c=s&&s.relSizeAnchor;c&&c.length>0&&(l.jo++,n=i.XFileConstants.jd+l.jo+"."+i.XFileConstants.nc,a=new i.XFile(i.XFileConstants.Mc+"/"+n,i.RelationshipConstants.ob),a.target=P+n,t.drawingFile=a,o=r.ze(a),e.userShapes.id=o,c.forEach(function(e){"1"===e.typeName?l.$o(e,a):"2"===e.typeName&&l._o(e,a)}))},e.prototype.$o=function(e,t){var r,i,n,a=e.src;a&&(r=this,r.ko++,i={},v.getPictureInfo(a,i),n=_(i,r.ko,t),r.fo.file(n.fileName.substring(1),i.base64Image,{base64:!0}),e.pic.blipFill={blip:{embed:i.rid}})},e.prototype.ap=function(e,t){var r,i,n,a,o=this;!e.src&&e.size&&(r=o.bp(e.size.width,e.size.height),r=r.replace("png","emf"),e.src=r),i=e.src,i&&(o.ko++,n={},v.getPictureInfo(i,n),a=_(n,o.ko,t),o.fo.file(a.fileName.substring(1),n.base64Image,{base64:!0}),e.blipFill={blip:{embed:n.rid}})},e.prototype.bp=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r.toDataURL("image/png")},e.prototype._o=function(e,t){var r,o,l,s,c,u,d,f,p,h=this;h.qo++,r=i.XFileConstants.bd+h.qo+"."+i.XFileConstants.nc,o=new i.XFile(i.XFileConstants.Lc+"/"+r,i.RelationshipConstants.lb),o.target=I+r,l=t.ze(o),s=e.chartSpace,c=n.Util.za(s),u=c&&c.layoutId,d=n.Util.Aa(u),s&&(e.graphicFrame.graphic={graphicData:{chart:{id:l,typeName:"chartSpace"}}},f=new a.XmlWriter,f.writeDocument(),d?(p=void 0,p=h.ro&&h.ro.Ne&&h.ro.Ne.names?h.ro.Ne.names:[],y.DrawingWriter.chart2016Write.WriteCT_ChartSpace(f,"cx","chartSpace",s,p)):y.DrawingWriter.WriteCT_ChartSpace(f,"c","chartSpace",s),h.fo.file(o.fileName.substring(1),f.getXmlString()))},e.prototype.Zo=function(e,t){var r=this,i=e.chart.plotArea;i&&i.chartGroups&&i.chartGroups.forEach(function(e){e&&e.ser&&e.ser.forEach(function(e){e.spPr&&r.cp(t,e.spPr),e.dLbls&&e.dLbls.spPr&&r.cp(t,e.dLbls.spPr)})}),i.spPr&&r.cp(t,i.spPr),e.spPr&&r.cp(t,e.spPr)},e.prototype.dp=function(e,t,r){var i=this;e&&e.forEach(function(e){e.sp||e.cxnSp||e.grpSp?e.sp&&e.sp.spPr?i.cp(t,e.sp.spPr):e.grpSp&&(e.grpSp.sp&&i.ep(e.grpSp.sp,t,r),e.grpSp.grpSpPr&&i.cp(t,e.grpSp.grpSpPr)):e.pic&&(e.pic.cameraTool?(i.fp(e.pic,t,r),r++):(i.cp(t,e.pic),i.cp(t,e.pic.spPr)))})},e.prototype.ep=function(e,t,r){var i=this;e.forEach(function(e){e.spPr&&(n.isNullOrUndefined(e.cellRange)?i.cp(t,e.spPr):(i.fp(e,t,r),r++)),e.blipFill&&i.cp(t,e),3===e.shapeType&&i.ep(e.sp,t,r)})},e.prototype.Lo=function(e,t,r){var n=this,a=r.controlShapes;a.forEach(function(e){var r,a,o,l;n.lo++,r=i.XFileConstants.md+n.lo+".xml",a=new i.XFile(i.XFileConstants.Pc+"/"+r,i.RelationshipConstants.bb),o=t.ze(a),e.sp.control.rid=o,l=A.writeCtrlProps(e),n.fo.file(a.fileName.substring(1),l)})},e.prototype.fp=function(e,t,r){var i=this;e&&(i.ap(e,t),e.blipFill.srcRect={},e.blipFill.stretch={},e.blipFill.stretch.fillRect={},e.spid=r,e.nvPicPr&&e.nvPicPr.cNvPicPr&&e.nvPicPr.cNvPicPr.extLst&&e.nvPicPr.cNvPicPr.extLst.ext&&e.nvPicPr.cNvPicPr.extLst.ext[0]&&e.nvPicPr.cNvPicPr.extLst.ext[0].cameraTool&&(e.nvPicPr.cNvPicPr.extLst.ext[0].cameraTool.spid=e.spid))},e.prototype.cp=function(e,t){var r,i,n,a,o,l,s,c=t&&t.blipFill&&t.blipFill.blip&&t.blipFill.blip.blipBlob&&t.blipFill.blip.blipBlob.blob;if(c){for(r=this,i={},v.getPictureInfo(c,i),n=Object.keys(this.ao),a=0;a<n.length;a++)if(o=n[a],this.ao[o].base64Image===i.base64Image)return l=e.ze(this._n[o]),void(t.blipFill.blip.embed=l);r.ko++,s=_(i,r.ko,e),r.fo.file(s.fileName.substring(1),i.base64Image,{base64:!0}),this.ao[s.fileName]=i,this._n[s.fileName]=s,t.blipFill.blip.embed=i.rid}},e.prototype.Mo=function(e,t,r){var n,a,o;if(r)return this.jo++,n=i.XFileConstants.jd+this.jo+"."+i.XFileConstants.nc,a=new i.XFile(i.XFileConstants.Mc+"/"+n,i.RelationshipConstants.eb),a.target=P+n,o=e.ze(a),t.drawingId=o,a},e.prototype.Oo=function(e,t,r){var i,n,a=this,o=a.fo,l=r.pictures;l&&l.length>0&&l.forEach(function(e){a.ko++;var r=_(e,a.ko,t);o.file(r.fileName.substring(1),e.base64Image,{base64:!0})}),r.withDrawingObjects&&(i=25,a.dp(r.shapes,t,i),n=g.writeDrawing(e,r,t),o.file(t.fileName.substring(1),n),a.gp(r.charts))},e.prototype.gp=function(e){if(e&&e.length>0){var t=this.fo;e.forEach(function(e){var r,i=e.chartSpace,n=i&&i.userShapes,o=n&&n.relSizeAnchor;o&&o.length>0&&(r=new a.XmlWriter,r.writeDocument(!1),y.DrawingWriter.WriteCT_ChartDrawing(r,"","userShapes",n),t.file(e.drawingFile.fileName.substring(1),r.getXmlString()))})}},e.prototype.Po=function(e,t,r,n){var a=this,o=e.fi(r);o&&o.length>0&&o.forEach(function(o){var l,s=i.XFileConstants.od+o.id+"."+i.XFileConstants.nc,c=new i.XFile(i.XFileConstants.Sc+"/"+s,i.RelationshipConstants.$a);c.target="../tables/"+s,l=t.ze(c),o.rid=l,a.hp(o,c.fileName,e,r,n)})},e.prototype.hp=function(e,t,r,i,n){var a=this,o=a.fo,l=b.writeTable(e,r,i,n);o.file(t.substring(1),l)},e.prototype.Qo=function(e,t,r,i,n){var a,o,l=this,s=e.Dj(r);s&&s.length>0&&l.ip(e,t,r,s),a=e.Ej(r,"pivot"),a&&a.length>0&&l.ip(e,t,r,a),o=e.Ej(r,"timeline"),o&&o.length>0&&l.jp(e,t,r,o)},e.prototype.jp=function(e,t,r,n){var a,o,l,s,c,u=this;u.no++,a=i.XFileConstants.qd+u.no+"."+i.XFileConstants.nc,o=new i.XFile(i.XFileConstants.Uc+"/"+a,i.RelationshipConstants.tb),o.target="../timelines/"+a,l=t.ze(o),n[0].rid=l,s=u.fo,c=F.writeTimelines(n),s.file(o.fileName.substring(1),c)},e.prototype.ip=function(e,t,r,n){var a,o,l,s,c,u=this;u.mo++,a=i.XFileConstants.pd+u.mo+"."+i.XFileConstants.nc,o=new i.XFile(i.XFileConstants.Tc+"/"+a,i.RelationshipConstants.jb),o.target="../slicers/"+a,l=t.ze(o),n[0].rid=l,s=u.fo,c=w.writeSlicer(n),s.file(o.fileName.substring(1),c)},e.prototype.yo=function(e,t,r){var n,a,o=this;t&&(n=e.fi(),a={},t.forEach(function(e){var t,l,s,c,u,d=Object.keys(a);0!==d.length&&a[e.name]||(o.oo++,t=i.XFileConstants.rd+o.oo+"."+i.XFileConstants.nc,l=new i.XFile(i.XFileConstants.Wc+"/"+t,i.RelationshipConstants.kb),l.target="slicerCaches/"+t,s=r.ze(l),a[e.name]=s,e.cacheRid=s,c=o.fo,u=w.writeTableSlicerCache(e,n),c.file(l.fileName.substring(1),u))}))},e.prototype.wo=function(e,t){var r,a=this;e&&(r={},e.forEach(function(e){var o,l,s,c,u,d,f,p=Object.keys(r);0!==p.length&&r[e.name]||(n.isNullOrUndefined(e.boundsStartDate)?(a.oo++,d=i.XFileConstants.rd+a.oo+"."+i.XFileConstants.nc,f=new i.XFile(i.XFileConstants.Wc+"/"+d,i.RelationshipConstants.kb),f.target="slicerCaches/"+d,s=t.ze(f),r[e.name]=s,e.cacheRid=s,c=a.fo,u=w.writePivotSlicerCache(e),c.file(f.fileName.substring(1),u)):(a.po++,o=i.XFileConstants.sd+a.po+"."+i.XFileConstants.nc,l=new i.XFile(i.XFileConstants.Xc+"/"+o,i.RelationshipConstants.ub),l.target="timelineCaches/"+o,s=t.ze(l),r[e.name]=s,e.cacheRid=s,c=a.fo,u=F.writePivotTimelineCache(e),c.file(l.fileName.substring(1),u)))}))},e.prototype.Ro=function(e,t,r,i){var n,a=e.Rj(r);a&&a.length>0&&this.kp(e,t,a,!0),n=e.Pj(r),n&&n.length>0&&this.kp(e,t,n,!1)},e.prototype.kp=function(e,t,r,n){var a,o,l,s;this.ho++,a=i.XFileConstants.Kc+this.ho+"."+i.XFileConstants.oc,o=new i.XFile(i.XFileConstants.Mc+"/"+a,i.RelationshipConstants.ab),o.target=P+a,this.lp(r,o),l=t.ze(o),n&&(e.jn=l),s=C.writeVmlDrawingFile(r),this.fo.file(o.fileName.substring(1),s)},e.prototype.lp=function(e,t){var r=this;e.forEach(function(e){r.ko++;var i=_(e,r.ko,t);r.fo.file(i.fileName.substring(1),e.base64Image,{base64:!0}),t.relationFiles[e.rid]=i})},e.prototype.Co=function(e){var t,r,n,a=this,o=a.ro.Eh;o&&(t=i.XFileConstants.Fd,r=new i.XFile(i.XFileConstants.Cb+"/"+t,i.RelationshipConstants.sb),r.target=t,e.ze(r),n=S.getMetadataContent(o),a.fo.file(r.fileName.substring(1),n))},e.prototype.wn=function(){x.clearCache(),this.ro=D},e}(),t.XlsxWriter=L},"./src/xml-io/node-helper.ts":function(e,t,r){"use strict";var i,n,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/datamodel/excel-style.ts"),n=i.UnitHelper.emuToPixles,a=function(){function e(){}return e.Vm=function(e,t){return"1"===e||"0"!==e&&t},e.Wm=function(e,t){if(e){var r=parseFloat(e);if(!isNaN(r))return r}return t},e.Xm=function(e,t){if(e){var r=parseInt(e,10);if(!isNaN(r))return r}return t},e.He=function(e){return Array.isArray(e)||(e=e?[e]:[]),e},e.Ym=function(e,t,r){return r=r||t,e[t]&&e[t][r]},e.bn=function(e,t){e&&(t.x=n(parseInt(e._attr.x,10)),t.y=n(parseInt(e._attr.y,10)))},e.cn=function(e,t){e&&(t.width=n(parseInt(e._attr.cx,10)),t.height=n(parseInt(e._attr.cy,10)))},e.dn=function(t){if(t)return{col:parseInt(e.Ym(t,"xdr:col"),10),colOffset:n(parseInt(e.Ym(t,"xdr:colOff"),10)),row:parseInt(e.Ym(t,"xdr:row"),10),rowOffset:n(parseInt(e.Ym(t,"xdr:rowOff"),10))}},e}(),t.XmlNodeHelper=a},"./src/xml-io/xml-parser.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("./src/xml-io/xml-reader.ts");function n(e,t){var r,n,o;if(e){for(r=new i.XmlReader,n={},r.reset(),r.setXml(e),r.keepRootNamespace=t;r.read();)if(2!==r.elementType){for(o={},o._attr={},n[r.name()]=o;r.moveToNextAttribute();)o._attr[r.readAttributeNameAsString()]=r.readContentAsString();3!==r.elementType&&a(r,o)}return n}}t.parseXmlToObject=n;function a(e,t){for(var r,i,n,o=e.depth;e.read()&&!(e.depth<=o);)if(1===e.nodeType()){for(r={},i=e.name(),t[i]?(Array.isArray(t[i])||(t[i]=[t[i]]),t[i].push(r)):t[i]=r,r._attr={};e.moveToNextAttribute();)r._attr[e.readAttributeNameAsString()]=e.readContentAsString();if(3===e.elementType)continue;n=e.readElementContentAsString(),1===(1&e.elementType)&&""!==n&&e.mp>e.rn&&("preserve"===r._attr["xml:space"]&&(n=e.readElementContentAsString(!0)),r[i]=n),a(e,r)}}function o(e,t){var r,i,n,a="<"+t,l=e._attr;if(l)for(r in l)l.hasOwnProperty(r)&&(a+=" "+r+'="'+l[r]+'"');a+=">",i=function(t){e.hasOwnProperty(t)&&l!==e[t]&&(Array.isArray(e[t])?e[t].forEach(function(e){a+=o(e,t)}):a+="object"==typeof e[t]?o(e[t],t):e[t])};for(n in e)i(n);return a+="</"+t+">"}t.convertObjectToXml=o},"./src/xml-io/xml-reader.ts":function(e,t,r){"use strict";var i,n,a,o,l,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r("./src/common/common.ts"),n=i.Util.oa,a="<![CDATA[",o="]]>",l=null,s=function(){function e(){this.np=-1,this.op=0,this.pp=0,this.qp=0,this.buffer="",this.elementType=2,this.depth=0,this.rn=0,this._l=0,this.rp=0,this.tp=0,this.vp=0,this.wp=0,this.mp=0,this.xp=0,this.xmlIndex=0,this.xml="",this.yp=!1,this.zp=1/0,this.reset()}return e.prototype.reset=function(){var e=this;e.np=-1,e.op=0,e.pp=0,e.qp=0,e.buffer="",e.elementType=2,e.depth=0,e.rn=0,e._l=0,e.rp=0,e.tp=0,e.vp=0,e.wp=0,e.mp=0,e.xp=0,e.xmlIndex=0,e.xml="",e.yp=!1,e.zp=1/0,e.Ap=0,e.Bp=""},e.prototype.setXml=function(e){this.xml=e,this.zp=e.length},e.prototype.name=function(){var e,t=this,r=t.buffer.slice(t.rn,t.rn+t._l);return r&&!t.keepRootNamespace?(e=r.lastIndexOf(":")+1,e===t.Ap&&r.substr(0,e)===t.Bp||(e=0),r.substr(e)):r},e.prototype.nodeType=function(){return 2===this.elementType?15:1},e.prototype.fillBuffer=function(){var e=this,t=e.buffer.length;return 0===t&&(e.buffer=e.xml,e.np=0,e.mp=0,e.pp=e.buffer.length,!0)},e.prototype.read=function(){var e,t,r,i,n,l,s,c,u,d,f,p=this,h=p.zp;for(p.op=Number.MAX_VALUE,
49
49
  p.yp=!1;p.np<h;){if(p.np++,p.np>=p.pp&&!p.fillBuffer())return!1;if(e=p.buffer[p.np],"<"===e)break}for(t=["elementStarting","elementStart","elementNameEnd","elementEnd","elementContent","elementContentStart","endElementStart"],r=t.length,i=0,n=!1;i<r;){if(p.np>=h)return!1;switch(t[i]){case"elementStarting":for(n=!1;p.np<h;){if(p.np++,e=p.buffer[p.np],"/"===e){i=6,n=!0;break}if("?"===e){for(p.elementType=3;p.np<h;)if(p.np++,e=p.buffer[p.np],">"===e)return!0}else if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){p.rn=p.np;break}}if(n)continue;case"elementStart":for(n=!1,1===p.elementType&&p.depth++;p.np<h;){if(p.np++,e=p.buffer[p.np],">"===e){p._l=p.np-p.rn,i=3,n=!0;break}if(" "===e||"\r"===e||"\n"===e||"\t"===e||"/"===e){p._l=p.np-p.rn,p.op=p.np;break}}if(0===p.depth&&!p.keepRootNamespace&&p._l&&(l=p.buffer.substr(p.rn,p._l),s=l.lastIndexOf(":")+1,s&&(p.Bp=l.substr(0,s),p.Ap=s)),n)continue;case"elementNameEnd":for(c=!1;p.np<h&&(p.np++,e=p.buffer[p.np],'"'===e&&(c=!c),c||">"!==e););for(u=p.np;u>0;){if(u--,e=p.buffer[u],"/"===e)return p.qp=u,p.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){p.qp=u,p.elementType=1,i=4;break}}continue;case"elementEnd":for(u=p.np;u>0;){if(u--,e=p.buffer[u],"/"===e)return p.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){p.elementType=1;break}}case"elementContent":for(d=!1;p.np<h;){if(p.np++,e=p.buffer[p.np],p.buffer.substr(p.np,9)===a)return f=p.buffer.indexOf(o,p.np),p.mp=p.np,p.xp=f+o.length,p.np=p.xp-1,p.yp=!0,!0;if("<"===e)return p.np--,d&&(p.xp=p.np+1),!0;if(p.mp=p.np,d=!0,"\r"!==e&&"\n"!==e&&"\t"!==e)break}case"elementContentStart":for(;p.np<h;)if(p.np++,e=p.buffer[p.np],"<"===e)return p.xp=p.np,p.np--,!0;case"endElementStart":for(2!==p.elementType&&3!==p.elementType||p.depth--,p.elementType=2,p.rn=p.np+1;p.np<h;)if(p.np++,e=p.buffer[p.np],">"===e)return p._l=p.np-p.rn,!0}}},e.prototype.fastRead=function(){var e,t,r,i,n,l,s,c,u,d=this,f=d.zp;for(d.op=Number.MAX_VALUE,d.yp=!1;d.np<f;){if(d.np++,d.np>=d.pp&&!d.fillBuffer())return!1;if(e=d.buffer[d.np],"<"===e)break}for(t=["elementStarting","elementStart","elementNameEnd","elementEnd","elementContent","elementContentStart","endElementStart"],r=0,i=!1;r<t.length;){if(d.np>=f)return!1;switch(t[r]){case"elementStarting":for(i=!1;d.np<f;){if(d.np++,e=d.buffer[d.np],"/"===e){r=6,i=!0;break}if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){d.rn=d.np;break}}if(i)continue;case"elementStart":for(i=!1,1===d.elementType&&d.depth++;d.np<f;){if(d.np++,e=d.buffer[d.np],">"===e){d._l=d.np-d.rn,r=3,i=!0;break}if(" "===e||"\r"===e||"\n"===e||"\t"===e){d._l=d.np-d.rn,d.op=d.np;break}}if(0===d.depth&&!d.keepRootNamespace&&d._l&&(n=d.buffer.substr(d.rn,d._l),l=n.lastIndexOf(":")+1,l&&(d.Bp=n.substr(0,l),d.Ap=l)),i)continue;case"elementNameEnd":for(s=!1;d.np<f&&(d.np++,e=d.buffer[d.np],'"'===e&&(s=!s),s||">"!==e););for(c=d.np;c>0;){if(c--,e=d.buffer[c],"/"===e)return d.qp=c,d.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){d.qp=c,d.elementType=1,r=4;break}}continue;case"elementEnd":for(c=d.np;c>0;){if(c--,e=d.buffer[c],"/"===e)return d.elementType=3,!0;if(" "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){d.elementType=1;break}}case"elementContent":for(;d.np<f;){if(d.np++,e=d.buffer[d.np],d.buffer.substr(d.np,9)===a)return u=d.buffer.indexOf(o,d.np),d.mp=d.np,d.xp=u+o.length,d.np=d.xp-1,d.yp=!0,!0;if("<"===e)return d.np--,!0;if("\r"!==e&&"\n"!==e&&"\t"!==e){d.mp=d.np;break}}case"elementContentStart":for(;d.np<f;)if(d.np++,e=d.buffer[d.np],"<"===e)return d.xp=d.np,d.np--,!0;case"endElementStart":for(2!==d.elementType&&3!==d.elementType||d.depth--,d.elementType=2;d.np<f;)if(d.np++,e=d.buffer[d.np],">"===e)return!0}}},e.prototype.moveToNextAttribute=function(){for(var e,t,r=this,i=r.zp;r.op<i;){if(r.op>=r.qp-1)return!1;if(r.op++,e=r.buffer[r.op]," "!==e&&"\r"!==e&&"\n"!==e&&"\t"!==e){r.rp=r.op;break}}for(;r.op<i;)if(r.op++,e=r.buffer[r.op],"="===e||" "===e||"\r"===e||"\n"===e||"\t"===e){r.tp=r.op-r.rp;break}for(t='"';r.op<i;)if(r.op++,e=r.buffer[r.op],'"'===e||"'"===e){t=e,r.vp=r.op+1;break}for(;r.op<i;)if(r.op++,e=r.buffer[r.op],e===t)return r.wp=r.op,!0},e.prototype.readContentAsString=function(){var e=this;return e.buffer.slice(e.vp,e.wp)},e.prototype.readContentAsBoolean=function(e){var t=this,r=t.buffer[t.vp];return"1"===r||"t"===r||"0"!==r&&"f"!==r&&e},e.prototype.readContentAsInt=function(e){var t=this,r=parseInt(t.buffer.slice(t.vp,t.wp),10);return isNaN(r)?e:r},e.prototype.readContentAsDouble=function(e){var t=this,r=parseFloat(t.buffer.slice(t.vp,t.wp));return isNaN(r)?e:r},e.prototype.readContentAsError=function(){var e=this.readContentAsString(),t=l;switch(e){case"#DIV/0!":t=7;break;case"#N/A":t=42;break;case"#NAME?":t=29;break;case"#NULL!":t=0;break;case"#NUM!":t=36;break;case"#REF!":t=23;break;case"#VALUE!":t=15;break;case"#SPILL!":t=99}return t!==l?{_error:e,_code:t}:l},e.prototype.readElementContentAsString=function(e){var t,r,i,l=this,s=l.mp;if(this.mp<=this.rn)return"";if(e)for(t=l.buffer,r=t[s-1];s>0&&(" "===r||"\r"===r||"\n"===r||"\t"===r);)s--,r=t[s-1];return i=l.buffer.slice(s,l.xp),l.yp&&(i=n(i.replace(a,"").replace(o,"")),l.yp=!1),i},e.prototype.readElementContentAsInt=function(e){var t=this,r=parseInt(t.buffer.slice(t.mp,t.xp),10);return isNaN(r)?e:r},e.prototype.readElementContentAsDouble=function(e){var t=this,r=parseFloat(t.buffer.slice(t.mp,t.xp));return isNaN(r)?e:r},e.prototype.readElementContentAsBoolean=function(e){var t=this,r=t.buffer[t.mp];return"1"===r||"t"===r||"0"!==r&&"f"!==r&&e},e.prototype.readAttributeNameAsString=function(){var e=this;return e.buffer.slice(e.rp,e.rp+e.tp)},e.prototype.readFullElement=function(){var e,t,r=this;if(2===r.elementType)return"";if(e=r.rn-1,3===r.elementType)return r.buffer.slice(e,r.qp+2);if(t=r.depth,1===r.elementType){for(;r.read()&&!(r.depth<=t););return r.buffer.slice(e,r.rn+r._l+1)}return""},e}(),t.XmlReader=s},"./src/xml-io/xml-writer.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){var t=this;t.size=e||500,t.blockIndex=-1,t.stringIndex=0,t.blocks=[],this.createNewArray()}i.prototype.createNewArray=function(){var e=this,t=Array(e.size);e.blocks.push(t),e.blockIndex++,e.stringIndex=0},i.prototype.addString=function(e){var t=this;t.isFullArray()&&t.createNewArray(),t.blocks[t.blockIndex][t.stringIndex]=e,t.stringIndex++},i.prototype.getAllString=function(){var e,t,r=this;for(e=0;e<r.blocks.length;e++)r.blocks[e]=r.blocks[e].join("");return t=r.blocks.join(""),r.blocks=null,t},i.prototype.isFullArray=function(){var e=this;return e.stringIndex>e.size-2};var n=function(){function e(){this.xml=new i}return e.prototype.writeDocument=function(e){this.xml.addString('<?xml version="1.0" encoding="UTF-8" '+(e?"":'standalone="yes"')+"?>\r\n")},e.prototype.writeElement=function(e,t,r){void 0===r&&(r=t,t=void 0),this.xml.addString("<"+e),"function"==typeof t&&t(),this.xml.addString(">"),"function"==typeof r&&r(),this.xml.addString("</"+e+">")},e.prototype.writeValue=function(e){this.xml.addString(e)},e.prototype.writeLeafElement=function(e,t){this.xml.addString("<"+e),"function"==typeof t&&t(),this.xml.addString("/>")},e.prototype.writeAttributeString=function(e,t){this.xml.addString(" "+e),"style"===e?this.xml.addString("='"+t+"'"):this.xml.addString('="'+t+'"')},e.prototype.writeElementString=function(e,t){this.xml.addString("<"+e+">"+t+"</"+e+">")},e.prototype.getXmlString=function(){return this.xml.getAllString()},e}();t.XmlWriter=n}})});