/*! * flipper.js 5.0.11 Copyright (c) 2018 LOGOSWARE * licenses ./licenses.txt */ !function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return t[n].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){(function(t){var e,n,r,o,s,a,h,u,c,l,p,f,d,g,v,m,_,y,b,w,A,x,S,C,P;_=i(13),i(185),i(113),i(112),Vue.use(i(178)),i(125),i(124),v=i(103),P=i(27),l=i(21),c=i(4),f=i(18),p=i(12),h=i(58),m=i(84),u=i(86),e=i(89),s=i(92),a=i(93),n=i(94),r=i(90),o=i(91),x=i(98),y=i(10),b=i(163),A=i(157),S=i(160),w=i(68),C=i(161),i(114),Vue.use(VueTouch),Vue.config.debug=!1,g=i(199),d=i(33),window.flipper=new Vue({el:"#flipper-app",props:["bookpath","imagepath","pageurl","forcedstartpage","texthighlightcolor"],mixins:[e,s,a,n,r,o,x],data:{isDebug:!1,version:"4.4.1",isInitialized:!1,onInitErrorIE9:!1,view:"",bookViewNum:-1,scaleIndex:0,slideViewNum:-1,title:"",dataArray:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],labelArray:[],pageWidth:500,pageHeight:700,startPageSetting:0,maxMagnification:1,pageTotal:1,componentWidth:1e3,componentHeight:1e3,appWidth:1e3,appHeight:1e3,componentTop:0,componentLeft:0,appLeft:0,appTop:0,scale4Transition:1,bookDirection:"",textPointWords:[],searchXmlArray:[],searchResultArray:[],searchResultBeforeAndBehindLength:20,searchWords:[],isAndTextSearch:!0,koguchiMargin:30,effectMargin:80,selectedAreaTop:0,selectedAreaLeft:0,selectedAreaRight:0,selectedAreaBottom:0,selectedAreaIsRightPage:!1,embedCenterX:0,embedCenterY:0,selectedRightPageString:"",selectedLeftPageString:"",selectedAreaForUrlTop:0,selectedAreaForUrlLeft:0,selectedAreaForUrlRight:0,selectedAreaForUrlBottom:0,lastSoundPath:"",isMp3Loading:!1,isMp3Playing:!1,soundInstance:null,mp3ButtonMargin:10,equalizerIcon:i(207),loadingIcon:i(208),startPage:1,isInitAreaVisible:!1,startRectX:0,startRectY:0,startRectW:0,startRectH:0,initAreaScaleIndex:0,initEmbedScale:0,embedStartX:0,embedStartY:0,allowPrint:!1,allowMemo:!1,soPdf:!1,soPdfType:"book",soGA:!1,soGAType:"",soGAId:"",soSearch:!1,soSearchMode:"glyph",soVisualIndex:!1,soVisualIndexStartOpen:!1,soVisualIndexLabel:!0,soTextIndex:!1,soTextIndexStartOpen:!1,soTextIndexTreeOpen:!1,soTextIndexLabel:!0,soFusenIndex:!1,soFusenIndexStartOpen:!1,soFusenIndexLabel:!0,soPageIndicate:!0,soPageIndicateFormat:6,soPageIndicateTotal:-1,soShare:!1,soTextSelect:!1,soScaling:!1,soClickOperationType:"flip",soTwitterTag:"",soContentsPasswordHash:"",soEmbedHtml:!1,scormScoreType:"",scormCheckPageArray:[],soChangeMemoVisible:!1,soWeblio:!1,soMultiplePagesPrint:!1,soHtmlSkinType:"default",soHelp:!1,isLocal:!1,filterdSearchResultArray:[],isSearchLoading:!1,editingFusen:null,debugStrings:"debugString",autoScaleMode:!0,manualScale:1,initScaleForSwipe:1,devicePixelRatio:1,singleTapTime:0,tegakiColorR:255,tegakiColorG:0,tegakiColorB:0,tegakiColorAlpha:1,tegakiFutosa:10,tegakiCompositeOperation:"xor",localStoragePenData:{},localStorageFusenData:{},publishDateString:"",hsLanguage:"ja",hsFlipButtonEnabled:!0,hsMobileCloseButtonType:"default",hsMobileHomepageButtonEnabled:!1,hsMobileHomepageButtonUrl:"",hsMobileHomepageButtonTarget:"_blank",hsFusenBGColors:[],hsTegakiPenColors:[],hsTegakiThicknesses:[],soSNSFaceBook:!0,soSNSTwitter:!0,soSNSMail:!0,soSNSHatena:!0,soSNSGooglePlus:!0,soSNSLinkedIn:!0,soSNSLine:!1,fusenWidth:300,fusenHeight:100,isChirashi:!1,showEvaluationUseOnly:!1,evaluationUseOnlyImage:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnIAAACxCAMAAAB3E6CUAAAAP1BMVEUAAABVVVVUVFRUVFRQUFBUVFRVVVVQUFBUVFRVVVVUVFRVVVVTU1NUVFRVVVVUVFRVVVVVVVVUVFRVVVVVVVWWMphnAAAAFHRSTlMAwIBAEPBgIKAw4NBQsJBwP6+Pbw3gdbgAABTjSURBVHja7JlLstwgDEX5CQz4k9e5+19rgiRDXmWSaQqdibEQmvQpCVe7/4EzhDpfUvYd/jjdIh4NaF95RcrHE/ynOCV79E/iVQgcfULmxBCkUg3hp1PCIFctHpjijI04gDz1Iwi+vg56KC1q6IbyeQsMqPIW1yoA2C4gcMoF4NUKwleSDCY6YyP+UO7BhMS52viFAGha6ph47mwQ2lAWuDV0imnRiYK8wUC5TbldWcqdAK46pisBlNQvepKEqGo6QhlDE8AhXj2udKriVueQGEWAm2LRUi7GG0CSnSPGmJyxEUu5NltRaqJTAKhqyPMiagPTZeRhGpwrRUqwSSRNrwL+jTYgT+VmA5TRa2zGVC6zJ0unxK5E941rOiItSlLzKoaTI0BxWRU+gZZZv6VcN+X2ZSp380Lpw50KdPcddkkpAEkBHOs2GEahG3jEP0l4HL0HAYTQAUp2l9uUqZxfP722n6guLRIANyFAK6APgXSWdlABLp6yeiaxh6Kc8tjnw678i3IQ/FCK3KSpf8s5bmbjVAeS9siHq5R3bINppzPldmUqd+kcfF/yGqwQPK/S3y0v86ae44I3Pw8VM/z48aNpeQCXdDy7y23KVO4BvpxS5M5G2oD8bxob1DVbRfNriVMdomFlBCCpEZNLlePqpty2TOUSLZ282HQDLbm5G9ktqqql5scqmcG9gnWesOrVgUUR5UbsMOW2RZXTi1VIQyYPIKpVxLuxa0vrM0LsVjnQE1cRdwBZXQBIp69nmmwAEH9NuV05wHxxb2M/+ng88w8JkISIZ2ElibTxqNL96DNOSvN7bc06SJ/xYCrQRDlWzdvnw65M5dYaa8JGgtKrmtNnhB3MEG7H3PpNW1TbrrVkebJyOqZNuU15PBPEsIsAtKO4l/Q0jNCTZih3Fu41qXoANB31/haVva9jRns/z3n/OCeB0/uDQ0x1xsaUqHItavwr8l0S+1/eMAzDMAzDMAzDMAzDMIxf7JzrjoMgEEYHREVRa7Pz/s+6l2LotNOAGjZOMudXLx8Sk1MsDKpcGoMfId82H1vGcj3FmLvtVkiURQxypG4aJARjvJ20eCGLCsol2nsHCWQhkbxyHK3XKq0g6ilHtpxDJlKuHI/Rh0yIoYZyFO/gQSZySjlsJ1BkUF859FnlMLgjylE6UERQTznqXCZyP6WcbruTRD3l6ACUi9zOK9fqHioR1FOOypCPnFYOPSgCqKtcSuQj55VDnbZK4H+UGyEf2a/cW/oGyvUh4lAOKgd/uGYZMTGwEUsjtD+OhumGaKtcnxrKRZzHXZG9ykX6dteVdV2Z0DABZfIBEc2Xzkh+kKMcQMCNuSByUDkYCtdJrDHjq5du7ew9IHrazagrzE9IUm7CDVMQOaocePYc+LbULsd25xH9rVtaXWGO1FLO2BfOK5c+HfORlhzT2zeaT8rdipSbY2ZgWhpiXLwrvB91hfnB1WesrE9YENk3Y4VEU6Jcz9kVmGLZgtg/HzeAIlG5klGurnKesWvAByM92AyRoMPcL5KU2/df7rByS4FyjrELPNNsjG+3A+vDoX6Qo1yKzAWRo8q5Fjcm+ISlq8W0YU9/ApY2mkGRopzHXZGDyvWhZF1ujAkHiS7JTtQMVLkFFAnKuZWWFgoiR5RbO5+pPlC7PKfh9HpWX3phJVxdudo1Vp6MHIY5jYYT1W4LwGn6oLfzSFSug3yk5k6SnrNrxgfLazIM8bUWbv+QqFwAyEfOK2cLJg9ULmYUG77Zu9flNmEgCsCry0ogLsbpvv+z1twiAaKa1HHtuOf7lQk7xJM5A4iV5Kq3NKvwjmT12t2HjJpGpZIvdB+yGlscPHiKqhj2PM8YPKxeu8d6cs8sl3yhx5rDns7UmaGpL06y6zDTePbzIudoVCi5O3KhplN9pvNQlR4AW0z6nP24yPEchULJ3ZFTlhLll3K+9GKlZhHGNJKbnxY5bWlSKLkrcsdslDv6V1n0lGWDCOP1yOhHRS5cPEXnJXdGrnH0R+741GYKPTLbiChMCZ68fuRYTXrdeooKJXdFTtFWPRRnygVZnSQOj3HRy0eOsgolX49c2p51aclVbhpDx3zRJx3jepK4gJtqhMhNyMunsAlTp3XFUsUAHdJVy6eejuogFW6qiedErtIb/tGRK09Ez17mLsskctvFzJl95GzILn11az1jkU3BYyOXZx4cuXLDazNPLliaeGmsmV/gdmJo1u4jV0lk4s10Oe6kwar/LURuPYc+tFd7MWTkoqUlL93uwU3FxPEhcjUvx3s0HDIQufkclve7LoUw1hgjjqiTGLmkz2CvImKULNpYo+c8VpSwaLESIXIzyl3mRM01jR0P+l3kGkO1ZhFx1G92azLN+jzopN8NXQkQudluHMA2Rk6Jn5JmT17muXTM+tHqMXBs6MYzD61eDS1j4cMIkYvncLvN5Roea9pQzT/PfK6jGyS1jhg62WGMJG4QueQcYTsl+CKOjBg3jSIqWjSZ/r/LTe60gu3DMhC5GeUuc5a59tqTbm0QTwuT6/93SQrrWLilCG4QufQcuxWFZgmVY3HHrUeCtrSya+aU2dVFDXoQD1Cblc8fzbNELm0LkPlEWecl5b8XP6A9nMOnx28MCyvFU/IiUyml+pZo/8vu4inCgxv8BXtRzOqC6xMAAAAAAAAAAAAAAAAAAAAAAAAAAABAidMJehY7YF+2b6ETr7pjsZIEPYdrRISr/3jVih2GX3oYPN3rL5c2qj8Yk/tukavievh/RiV6SvQqQf+E/2hkEa7tUyJX/PKf94pc/4xtFSShnvr/MEo2gkPkHsxLVNG594yc/ZAD5RG5h9ISMZ17y8jVjWSwQeQeSUnC06l3jFzNktcict+p/nX+AQydesPI1SwnuEbkvsmgryyCyE1skFNsEbnf7J3ZtuIgEEXDPIQk2vL/39rzVXKKQSF26/I89dIEqmBTQMG1uyUDZ1Q1a6MB74cciwWdP8h1aptz1Yh41TLl9XbIbbEo8UHusGpYWzO/G3JSxaL8B7nDqjGq7edO3ww5uyNsmWMq/Y+Q8zzV7zjwVshNhv12NUxFvRdyBjNxMoVu7vZr4Gtvhtw0uZbB9F7IWdifwoZCfJB7gWpeBjmpqMyvST61H+ReoJqXQU7TBvAk9n2Qe4FqXga5BWdQXOGFD3L/fzWvglyCls9Vv74scu6k+Q9dTuZIFk4n/lP6JAcjJ08Xznlwrd6Gn666cchhU55c2VhdrV7nyNpa96w/6wkn8xTkNLvRebrKsqu2r1Omb3O8SlndwgK7FV1x0qbmcva3LfXNgb3JujgpBYpNZPiX/QpvzK77N803/5VdMqOR02d19fGSFA/G+qQNQDY3f7pI1A+9Ic5ftuuyX4LdStAY2QpyAY3C2vSfNoogdakjR9fAM8uPyxxBTMBrlAQWm8js86Uha7yG+45KD0VOe/ARjG2+aamyYFNpkt2zLrFxdiW/JB4k4GKyhpzM5G7E7t6Z5CqSms1A5IyNtL4NQE6jB2eZGJ+0pttDYcchZ+baKegFjM0zb/LTJyMQSTtWx51CyS8W6TPsW390ATk0SpPLg7l4aqzcOOTmmNMse5EjafaO3vdx6vbZNgo5pyJqqhqbYy4AB/TFGgvGCqJflcv7lT7u6QdlDTkO4wA+XpNVAUiZYcitMSvbiZwtGI8mMaPICvqRQ+LwNQlLGGCu3oX4FQNjg44oL2m/MO0iqTXjXN11OPp7tg+1KmY1D0NOxLy2LuTWUvhEk2Yy3rI+5Ip3KVcYHi3MYyUhHwAVGEujzQt+edKckDpSazO1NwqKlmkzoPSw7UPMS8kO5EI5fKJJtEQXckWgAoSmZuZn2kQcw2BToaXRLxy6G2VxqCO3UKFSwks65uW7kUNjUOvjyElVeq0duWUAciaSkjDvUNK12qMrIGfAJlqa9AvHrqXCcvnykgaWqBmOQ0uB9CjktuLgexg5Gwvy7cjFLuRKtsyZoOWZB1uLyJW+E43ILQW/FGU0Sx+LoMKKcCO6Xlxbwq/B/L4epMDGLuSSEc64kL+4twi2ET+VTiV/JbFYKrCswnEotxG50IUcLmS0mCaxLTGuZK5AhSS5QxsghiOnaL9wHiKe4w3ITZ5YxK5Y/xqXLzLgAuCwVLBX3OT+Ts7me7JcrAXANDYDIuc3IXZji3cj56i9oVkDtYpWDpiy45FjQYTdZ4L2CydFHNKiBTlLtBfDCOZE4W/YxCjkgszvuPyDyMkkxhGD1ZGzOpO4smI9yIGBonJeynHIqOHIaWK6D6Rf2JgaLFBTC3KBCKnlBCjivnUjh8IC5d3IoaWGWKNzqu+8JNIr81DkKveQFLWhEGXkWAm5jUBuIVIUkRf8mnH88rS4OnISe9VACABB7DgGuQ0eux+5hVp1egRJQP/gQrAbOVYuTJKpOl+a2kMzcpxAzlANvZB+YQszGJVbDTnkVuwb3zee8oxHDjEIjyEHIEHwkgRyEvp7OHJmAmmyVZbSYo73ILfQsbLglytm+lwbchxz/Ogian46cvxe5LAIR8aGUJqh2GHIncv3kEiv5g7kQulUvRW5ycOgUUmAakFOQDC35eSj/HW1EKamwciZE+fc9iO3kQ8bLBjxxnhoOpDD0qwsnAXNdOzrWMsJtEncj5zdQyxvHKoih36yfQCTe9y09RE1GDlzYVejOpGz9csPSw45LLIXuS3i9bSrJF2QOAw5eT9yIWml1ADdiBzuksihBtnZw5DTV+QHIMfAY1wXYN/pg5AzMdU3mcNnpT8WReTUnchN9yMnCzeaDP0aatth78Bv+CHaA5HTPsaRyHkIZ1CGwr4TxyCHmVgfMuYz/iXbjFw8HDmMUDwJUC3IYfY44CYRLmYfhZwDrHuRwxKwjCciJ0p3k3mkNQY5140cRqikwLUROcz78Nzl6eORCyo+CTn7j5CblsLdZHsXcvXEoYPv+pDDCJXQE9qRs+lMuhAvOBWfgJyO8VnI8X+FnFT5y9/sTuSwgQ1EwOHITXPuFF+2IxfSRxh2kfTxCciFOB4504KceSJyk6OY60BONV7R9KOQW5PFsYC9ZgtyMl0QYuYU24IxPxw5+IMDz5jqRU78L1GuOGMo+ThyLP/1BpaNQE4kGQ1dOZpFYSLO4JZbpyRwB33WhxzFNdO/1qZvM7Gy4n/QwB5HzsKJHm277UcO4+ptHeIe5PitS4I4BMd+G4+cgJ/lOxK5ZSBy6k7kJmkRpYeR43DBgnaS9yOHkLubOqZW5CCBvMGQ0ZAkPQK5hbq9yF4hSQJk1Rtf+JjKN+5YzT3HDzPY3occ8hAmVr+/XhmnfOLg3oLDaDxyElJIg5Crp4L9QOQ8IEdfkJA8pnKQCiZVuUam8ptZ2Y8c1sgnCFA15AAqdv23p3yS9yLnG5HTYOgY5OaGA69O5GzGHklGWFzRYUYUn0fRscwVNqz9yEEZy3f2zm09UhAIws0ZFHWSnfd/1k3ybeKs1UNhMHepyxk52PygSNMkKJkgh1Obec8vKzU3chY504ncCg/va5AzHcv6g8hZbHPMsRJUzaHbLULE5g84exhHDnFxML5CMrrmJWCkDZr9FHJ0jMRXZ3chcrbDeWkEOXzX1X8vZBNxgEgLvap3TIbDX7wQufKA+AFpjhzOSRPwYceQo5ukEbl0IXKRu2i6QeQKjCbqrBjljxdQ3zyay54MI4iMI4e4vFBvTz44W+gv48hhctwgprfsTJErBLlEYxrc/SByAl91cWnL0IkH9rBeLTryK7T9KHKQNaKOyfjgPDfnphkgJcjpW6QcfmsKurMqRS4S5NB7CWcPg8hht8KUtgs5q7DLFWHqi4s58VLkqhL04CxyvjNYxwxdmCFnNXuY9mdQ29j7ABQT5MCTHIe+UeTwHnFdqzDkDDyiX6RXAbZDgo39pcgJ0JL1/+bbQQlfNXe1d/bZ3mV9pwTX2siX94kPH7ssQc4pzZgBwyHkkhLw0gV1EKgV0uEegN2TDsWRn5yIeANEXIgcumDVBo5szRHLcMiM1NCLXDkMwPFWjTaerkrFsl7beKhpfOs9f57zMbUDRCwyjJzM4I8wPbF0vs/Ra2E2Nm01O/odz5rX3mfUnI8mTtcih25m/jxyrhGnFKIDe9vvvCTTncnh64H16Piem/GwdD5wTH2Jt1cofRS5eCdK/1nD2Hi7xVd88qI3nbHvejVT87vJSorPcjFyCUJHnUYO42QWqOWnpsOlBLnMkVN7aiOiX+hGjjv7GRlGjverfGgq1IT9A/Xd81iDvxY5HNftaeTw6RxIH+5HrnLksAI6HC2Kv+tsXC5BLnY2eeQx+oihUNzIm1yOnAUrnkdua0SMnAaQY6lxtzxHzmnoNPgwxATjyInpa/JM7y0Fko+uTGIUXo1cgQHqPHIFeh3pQ9RLodmzJ6yGYcg1G9g1+PCBtMYIcpyUTDtvKI0DKrrO4fLkBIMrkcOXm3weObRGOsyJQSH2+mL5SbNxgGpoYGSjvqKWc8hJCaQ1BpHDIvRCEiGO5GSEMEeJG0aOH+PEkdPzmNj9hOI4crsN0cYGq1HRxs8CssUe5GgzLl5GkeOkZM9e+YLrpVca8kbH1MuPIFf16QlHjh94pzMXihb40NwZIHvqRalGCWCuDXPELDly4g25/WHkJBlu4wb46L+JKtLSSoq/FDkPz9XzyPmmd5dfwUqB+9Xr7oj5EEna6pv1wwbxOCBLglwr8kROci1yWAQWUhYAzqn45qCwGb0IgR6K/ynk0lNaTEtRHpXNLi+g8mmFkMvxNMlVPn/ZdYjY9ElI+GeGqlcjLl/RodNHwuenXbq8U2fWJPRwzLp8teO0Jrg/TMuyRLn8QN28JQH5uL+fTst+BaiuD1mZZXPSofSQaLaQObSRysna+E3rikF+Tq5a65x8T+k9dSzC5F200eF1+rUfkm6Vaq3dnJcR8fq/qbqmLd5UhKvo98fLj05+SDjXy/KrX/1t715yEIhBAICa0Tqdxs+G+5/VRDfWJu5g9d4ZCIFAIN02VZiQbZ/ufUKq9ekvZFqv4UK2n6vhkOvSQ5Kj0DEiVHKkm09Ga1ep0tsy2oZMfdngg1S3ZRcPcrX40oy6SNd1q9Q6iziKDRFHrYc6jlpHvN31qlQZn5eeUOUZbZPiKLRfT3+9AKJz6N/0gO17AAAAAElFTkSuQmCC",isIE9:!1,error:null,linkPopupText:"",isBendFlipMode:!0,clickedExtensionLink:null,isCordova:!1,isPreview:!1,isSlice:!1,fixedCarouselEffectPadding:-1,fb:"facebook",gl:"google",areaCanvasVisible:!1,areaCanvasType:"url"},computed:{isPageOver720:function(){return this.pageWidth>720||this.pageHeight>720},isLandscape:function(){return this.componentWidth>this.componentHeight},tegakiIro:function(){return"rgba("+this.tegakiColorR+", "+this.tegakiColorG+", "+this.tegakiColorB+", "+this.tegakiColorAlpha+")"},tegakiIroEraser:function(){return"rgba(255, 255, 255, 1)"},noCacheParam:function(){return this.isLocal?new Date/1e3|0:this.publishDateString},pageIndicateValue:function(){switch(parseInt(this.soPageIndicateFormat,10)){case 0:return this.activePageLabel+"/"+this.pageTotalForPageIndicate;case 1:return this.activePage+"/"+this.pageTotalForPageIndicate;case 2:return this.activePageLabel;case 3:return this.activePage;case 4:return"slide"===this.view?this.activePageLabel:0===this.activeLeftPage?this.activeRightPageLabel:0===this.activeRightPage?this.activeLeftPageLabel:this.activeLeftPageLabel+"-"+this.activeRightPageLabel;case 5:return"slide"===this.view?this.activePage:0===this.activeLeftPage?this.activeRightPage:0===this.activeRightPage?this.activeLeftPage:this.activeLeftPage+"-"+this.activeRightPage;case 6:return""}},pageTotalForPageIndicate:function(){return Number(this.soPageIndicateTotal)!==-1?this.soPageIndicateTotal:this.pageTotal},bookViewLength:function(){return t.ceil((this.pageTotal+this.startPageSetting)/2)},componentCenter:function(){return t.round(this.componentWidth/2)},componentMiddle:function(){return t.round(this.componentHeight/2)},componentCenterGlobal:function(){return this.componentLeft+this.componentCenter},componentMiddleGlobal:function(){return this.componentTop+this.componentMiddle},scale:function(){return this.autoScaleMode?this.scaleIndex-1&&(this.effectMargin=this.fixedCarouselEffectPadding),this.soScaling?t.round((this.componentHeight-this.effectMargin)/this.pageHeight,2):1},tmpScaleXForSlide:function(){return this.soScaling?t.round((this.componentWidth-5)/this.pageWidth,2):1},tmpScaleYForSlide:function(){return this.soScaling?t.round((this.componentHeight-5)/this.pageHeight,2):1},baseScale:function(){switch(this.view){case m.CAROUSEL:return Math.min(this.tmpScaleXForCarousel,this.tmpScaleYForCarousel);case m.SLIDE:return Math.min(this.tmpScaleXForSlide,this.tmpScaleYForSlide);default:return 1}},scaleArray:function(){var t,e,i;for(t=[],e=this.baseScale,i=100,t.push(Math.round(e*i)/i);ethis.maxMagnification&&(e=this.maxMagnification),t.push(Math.round(e*i)/i);return t},activeLeftPage:function(){return"r2l"===this.$root.bookDirection?2*Math.abs(this.$root.bookViewNum)+Math.abs(this.$root.startPageSetting-1):this.activeRightPage+1<=this.$root.pageTotal?this.activeRightPage+1:0},activeRightPage:function(){return"r2l"===this.$root.bookDirection?this.activeLeftPage+1<=this.$root.pageTotal?this.activeLeftPage+1:0:2*Math.abs(this.$root.bookViewNum)+Math.abs(this.$root.startPageSetting-1)},activePage:function(){switch(this.view){case m.CAROUSEL:return this.isInitialized?Math.max(this.activeLeftPage,this.activeRightPage):0;case m.SLIDE:return this.isInitialized?this.slideViewNum+1:0}},activePageLabel:function(){return this.labelArray[this.activePage-1]},activePageId:function(){return this.dataArray[this.activePage-1]},activeLeftPageLabel:function(){return this.labelArray[this.activeLeftPage-1]},activeRightPageLabel:function(){return this.labelArray[this.activeRightPage-1]},activeLeftPageId:function(){return this.dataArray[this.activeLeftPage-1]},activeRightPageId:function(){return this.dataArray[this.activeRightPage-1]},activeLeftLeftPageId:function(){var t,e;return t="r2l"===this.$root.bookDirection?-1:1,e=this.dataArray[this.activeLeftPage-1+t],"l2r"===this.$root.bookDirection&&0===this.activeLeftPage&&(e=0),e},activeRightRightPageId:function(){var t,e;return t="r2l"===this.$root.bookDirection?1:-1,e=this.dataArray[this.activeRightPage-1+t],"r2l"===this.$root.bookDirection&&0===this.activeRightPage&&(e=0),e},selectedAreaWidth:function(){return this.selectedAreaRight-this.selectedAreaLeft},selectedAreaHeight:function(){return this.selectedAreaBottom-this.selectedAreaTop},selectedAreaForUrlWidth:function(){return this.selectedAreaForUrlRight-this.selectedAreaForUrlLeft},selectedAreaForUrlHeight:function(){return this.selectedAreaForUrlBottom-this.selectedAreaForUrlTop},shareUrlForTwitter:function(){var t,e,i,n,r;return i=this.selectedAreaUrl.replace(/index.html#/,"expand.html#"),e=i.split("#")[0],n=this.selectedAreaForUrlLeft+"_"+this.selectedAreaForUrlTop+"_"+this.selectedAreaForUrlWidth+"_"+this.selectedAreaForUrlHeight,t=e+"#tco="+this.activePage+"_"+n+"_0xff0000_"+this.scaleIndex,r="",""!==this.soTwitterTag&&(r="&hashtags="+encodeURIComponent(this.soTwitterTag)),"https://twitter.com/intent/tweet?url="+encodeURIComponent(t)+r},shareUrlForMail:function(){var t;return t="mailto:?body="+encodeURIComponent(this.selectedAreaUrl)},shareUrlForLine:function(){return"http://line.me/R/msg/text/?"+encodeURIComponent(this.selectedAreaUrl)},selectedAreaUrl:function(){var t;return t=this.bookUrl()+"index.html",t+"#page="+this.activePage+"&rect="+this.selectedAreaForUrlLeft+"_"+this.selectedAreaForUrlTop+"_"+this.selectedAreaForUrlWidth+"_"+this.selectedAreaForUrlHeight+"&color=0xff0000&scaleIndex="+this.scaleIndex},selectedShareIframeTag:function(){var e,i,n,r,o,s;if(o=this.$refs.view?this.$refs.view.translateX:0,s=this.$refs.view?this.$refs.view.translateY:0,n=.5,r=0,this.$refs.view)try{n=this.$refs.view.global2PercentX(this.componentCenterGlobal),r=this.$refs.view.global2PercentY(this.componentMiddleGlobal)}catch(t){}switch(this.view){case m.CAROUSEL:this.embedCenterX=t.floor(n*this.pageWidth*2),this.embedCenterY=t.floor(r*this.pageHeight+this.pageHeight/2);break;case m.SLIDE:this.embedCenterX=t.floor(n*this.pageWidth),this.embedCenterY=t.floor(r*this.pageHeight),h.isRightPageNum(this.activePage)&&(this.embedCenterX+=this.pageWidth)}return e=this.bookUrl()+"embedskin/index.html",i=e+"?page="+this.activePage+"&initEmbedSkin="+this.embedCenterX+"_"+this.embedCenterY+"_"+this.scaleIndex,''},enableFlipL:function(){switch(this.view){case m.CAROUSEL:return"r2l"===this.$root.bookDirection?this.bookViewNum>0:this.bookViewNum0:this.slideViewNum0;case m.SLIDE:return"r2l"===this.$root.bookDirection?this.slideViewNum0}}},components:{carousel:i(104),slide:i(105)},methods:{onClickAnywhere:function(t){if(this.isInitAreaVisible)return this.isInitAreaVisible=!1},bookUrl:function(){var t,e;return e=location.protocol+"//"+window.location.host+location.pathname,t=e.split("/").pop().toLocaleLowerCase().indexOf(".html")?e.substring(0,e.lastIndexOf("/"))+"/":e},measureDeviceRect:function(){return this.fitScreenSize()},fitScreenSize:function(){var t,e,i;i=!1;try{t=document.getElementById("flipper-component"),this.componentWidth!==t.clientWidth&&(i=!0),this.componentHeight!==t.clientHeight&&(i=!0),this.appWidth!==this.$el.clientWidth&&(i=!0),this.appHeight!==this.$el.clientHeight&&(i=!0),this.$set("componentWidth",t.clientWidth),this.$set("componentHeight",t.clientHeight),this.$set("appWidth",this.$el.clientWidth),this.$set("appHeight",this.$el.clientHeight),this.$set("componentTop",t.getBoundingClientRect().top),this.$set("componentLeft",t.getBoundingClientRect().left),this.$set("appLeft",this.$el.getBoundingClientRect().left),this.$set("appTop",this.$el.getBoundingClientRect().top),t.style.minHeight="150px"}catch(t){e=t}if(i&&this.$broadcast("fitScreenSize"),this.scaleIndex>this.scaleArray.length-1)return this.scaleIndex=this.scaleArray.length-1},createSearchResultArray:function(t){var e,i,n,r,o,s,a,h,u,c,l,p,f,d,v,m,_,y,b,w,A,x,S,C,P,T,k,E;for(this.isSearchLoading=!1,this.searchResultArray=[],C=Array.apply(null,Array(this.pageTotal)).map(Number.prototype.valueOf,0),a=0,p=t.length;ae.page?1:0}),this.filterdSearchResultArray=this.searchResultArray.filter(function(t){return function(t,e){return e<100}}(this))},onLoadMp3:function(){return this.isMp3Loading=!1,this.isMp3Playing=!0,this.soundInstance=createjs.Sound.play("mp3link"),this.soundInstance.on("complete",this.onCompleteMp3)},onCompleteMp3:function(t){return this.isMp3Playing=!1},stopPlayingMp3:function(){return createjs.Sound.stop(),this.isMp3Playing=!1}},created:function(){return this.onHashChange=function(t){return function(e){var i,n,r,o,s;return c.force=v.isFLConsole(),v.checkRect()&&(t.isInitAreaVisible=!0,o=v.getRect(),t.startRectX=o[0],t.startRectY=o[1],t.startRectW=o[2],t.startRectH=o[3],"slide"===t.view)?void(v.checkPage()&&(s=v.getPage(),n=0,i=t.startRectX+t.startRectW/2>t.pageWidth,i&&(t.startRectX-=h.pageWidth,h.isRightPageNum(s)||(n="r2l"===t.bookDirection?1:-1)),i||h.isRightPageNum(s)&&(n="r2l"===t.bookDirection?-1:1),t.$broadcast("gotoTargetPage1",s+n),t.startRectX+t.startRectW>t.pageWidth&&(t.startRectW=t.pageWidth-t.startRectX),t.startRectX<0&&(r=t.startRectX,t.startRectX=0,t.startRectW+=r))):v.checkPage()?t.$broadcast("gotoTargetPage1",v.getPage()):void 0}}(this),c.production="release",this.isLocal=v.isLocal(),this.xmlParser=new P.Parser({explicitArray:!1,explicitCharkey:!0}),this.searchXmlParser=new P.Parser,this.$on("browserPrivateMode",function(t){return null==t&&(t=!0),p.enable=!t,f.enable=!t}),this.$on("areaCanvas",function(t,e){return this.areaCanvasVisible=e,this.areaCanvasType=t,this.$broadcast("areaCanvas",e,t)}),this.$on("hammer",function(t){return this.$broadcast("hammer",t)}),this.$on("clearLocalStorage",function(){return this.$broadcast("fusenClearCurrentPage"),this.$broadcast("tegakiClearCurrentPage"),p.clearLocalStorage(),f.clearLocalStorage()}),this.$on("searchHighlight",function(t){return this.textPointWords=t,0===t.length?this.$broadcast("searchHighlightOff"):""===t[0]?(this.textPointWords=[],this.$broadcast("searchHighlightOff")):this.$broadcast("searchHighlightOn")}),this.$on("searchText",function(t){var e;if(this.searchWords=t,e=t.join(" "),0!==e.length&&""!==e[0])return l.send(l.ts,this.bookID,e,1),0!==this.searchXmlArray.length?this.createSearchResultArray(t):this.isSearchLoading===!1?(this.isSearchLoading=!0,this.$http.get(this.bookpath+"search.xml",{c:this.$root.noCacheParam},function(e,i,n){return this.searchXmlParser.parseString(e,function(e){return function(i,n){var r,o,s,a,h;for(a=n.searchtext.text,r=0,o=a.length;r-1&&(t.fixedCarouselEffectPadding=i.carousel_effect_padding),e()}).error(function(t,i,n){return e()})})}}(this),this.loadLWLibraJSONFile=function(t){return function(){return new d(function(e,i){return t.$http.get(t.bookpath+"lwlibra.json",{c:new Date/1e3|0},function(i,n,r){return t.isOnLibra=i.connect,t.libraApiUrl=i.api_base_url,"/"!==t.libraApiUrl.slice(-1)&&(t.libraApiUrl+="/"),e()}).error(function(t,i,n){return e()})})}}(this),this.loadBookXmlFile=function(t){return function(){return new d(function(e,i){return t.$http.get(t.bookpath+"book.xml",{c:new Date/1e3|0},function(n,r,o){return t.isPreview||t.isCordova||"file:"!==location.protocol?e(n):i()}).error(function(t,e,n){return i()})})}}(this),this.parseBookXml=function(t){return function(e){return new d(function(i,n){return t.xmlParser.parseString(e,function(r,o){var s,a,c;return h.init(o),t.publishDate=o.setting.publishDate._,t.publishDateString=String(t.publishDate).replace(/\/|:|\+|\s/g,""),t.bookID=h.bookID,t.title=h.title,t.dataArray=h.dataArray,t.labelArray=h.labelArray,t.bookDirection=h.bookDirection,t.pageWidth=h.pageWidth,t.pageHeight=h.pageHeight,t.sliceWidth=parseInt(o.setting.bookInformation.sliceWidth._,10),t.sliceHeight=parseInt(o.setting.bookInformation.sliceHeight._,10),t.startPageSetting=h.startPageSetting,s=parseInt(o.setting.bookInformation.maxMagnification._,10),t.maxMagnification=u.getMaxmagnification(s),t.devicePixelRatio=u.getDeviceRatio(),t.pageTotal=parseInt(o.setting.bookInformation.total._,10),t.labelDisplay="true"===o.setting.bookInformation.labelDisplay._,t.shadowDisplay="true"===o.setting.bookInformation.shadowDisplay._,t.thicknessDisplay="true"===o.setting.bookInformation.thicknessDisplay._,t.speed=Number(o.setting.bookInformation.speed._),t.speed<.2&&(t.isBendFlipMode=!1),t.sound="true"===o.setting.bookInformation.sound._,t.allowPrint=h.allowPrint,t.allowMemo=h.allowMemo,c=o.setting.makeroption.scormScoreType._,a=t.decryptByDES(o.setting.keycode._,String.fromCharCode(70)+t.gl.toUpperCase().substr(4,1)+t.fb.toUpperCase().substr(0,1)+String.fromCharCode(76)+String.fromCharCode(70)+t.gl.toUpperCase().substr(4,1)+t.fb.toUpperCase().substr(0,1)+String.fromCharCode(76)),t.xmlParser.parseString(a,function(r,o){return t.isChirashi="true"===o.BookKey.book.isChirashi._,t.showEvaluationUseOnly="true"===o.BookKey.book.isTrial._||"sample"===o.BookKey.book.bookType._,t.makerVersion=o.BookKey.maker.version._,t.makerPlan=o.BookKey.maker.plan._,t.makerGrade=o.BookKey.maker.grade._,t.isPreview?i(e):"sm"===t.makerPlan?v.isOnlineStorageWhiteUrl()?i(e):n("onlinestorage"):"lm"!==t.makerPlan&&"ly"!==t.makerPlan&&"lp"!==t.makerPlan||"libra"!==c?i(e):t.isLocal?i(e):t.$http.get(location.protocol+"//"+location.host+"/settings/config.json",{c:t.noCacheParam},function(t,n,r){return i(e)}).error(function(t,e,i){return n("suitemidium")})})})})}}(this),this.loadSkinOptionXmlFile=function(t){return function(){return new d(function(e,i){return t.$http.get(t.bookpath+"skinoption.xml",{c:t.noCacheParam},function(t,i,n){return e(t)}).error(function(t,e,n){return i()})})}}(this),this.parseSkinOptionXml=function(t){return function(e){return new d(function(i,n){return t.xmlParser.parseString(e,function(n,r){var o;t.soPdfType=r.setting.skinOption.pdf.$.type,t.soPdf="true"===r.setting.skinOption.pdf.$.visible,t.soGA="true"===r.setting.skinOption.googleAnalytics.$.visible,"vl"===t.makerGrade&&(t.soGA=!1),t.soGAType=r.setting.skinOption.googleAnalytics.$.type,t.soGAId=r.setting.skinOption.googleAnalytics.$.key,t.soEmbedHtml="true"===r.setting.skinOption.embedHtml.$.visible,t.soSearch="true"===r.setting.skinOption.textSearch.$.visible,t.soSearchMode=r.setting.skinOption.textSearch.$.mode,t.soVisualIndex="true"===r.setting.skinOption.visualIndex.$.visible,t.soVisualIndexStartOpen="open"===r.setting.skinOption.visualIndex.$.init,t.soVisualIndexLabel="none"!==r.setting.skinOption.visualIndex.$.label,t.soTextIndex="true"===r.setting.skinOption.textIndex.$.visible,t.soTextIndexStartOpen="open"===r.setting.skinOption.textIndex.$.init,t.soTextIndexTreeOpen="true"===r.setting.skinOption.textIndex.$.treeOpen,t.soTextIndexLabel="none"!==r.setting.skinOption.textIndex.$.label,t.soFusenIndex="true"===r.setting.skinOption.fusenIndex.$.visible,t.soFusenIndexStartOpen="open"===r.setting.skinOption.fusenIndex.$.init,t.soFusenIndexLabel="none"!==r.setting.skinOption.fusenIndex.$.label,t.soPageIndicate="true"===r.setting.skinOption.pageIndicate.$.visible,t.soPageIndicateFormat=r.setting.skinOption.pageIndicate.$.format,t.soPageIndicateTotal=r.setting.skinOption.pageIndicate.$.total,t.soShare="true"===r.setting.skinOption.url.$.visible,t.soTextSelect="true"===r.setting.skinOption.textRectangularSelect.$.visible,t.soScaling="true"===r.setting.skinOption.dynamicSizing.$.visible,_()||(t.soScaling=!0),t.soClickOperationType=r.setting.skinOption.dynamicSizing.$.type,t.soTwitterTag=r.setting.skinOption.twitter.$.tags,t.soContentsPasswordHash=null!=(o=r.setting.skinOption.contentPasswordHash)?o.$:void 0,t.soSNSTwitter="true"===r.setting.skinOption.sns.twitter.$.visible,t.soSNSMail="true"===r.setting.skinOption.sns.mail.$.visible;try{t.soSNSLine="true"===r.setting.skinOption.sns.line.$.visible}catch(t){}_()&&(t.soSNSLine=!1);try{t.soChangeMemoVisible="true"===r.setting.skinOption.changeMemoVisible.$.visible}catch(t){}try{t.soWeblio="true"===r.setting.skinOption.weblio.$.visible&&t.soTextSelect}catch(t){}try{t.soMultiplePagesPrint="true"===r.setting.skinOption.printOption.$.multiplePagesPrint}catch(t){}try{t.soHtmlSkinType=r.setting.skinOption.$.htmlSkinType}catch(t){}return t.soHelp="true"===r.setting.skinOption.help.$.visible,i(e)})})}}(this),this.loadHtml5SettingXmlFile=function(t){return function(){return new d(function(e,i){return t.$http.get(t.bookpath+"html5setting.xml",{c:t.noCacheParam},function(t,i,n){return e(t)}).error(function(t,e,n){return i()})})}}(this),this.parseHtml5SettingXml=function(e){return function(i){return new d(function(n,r){return e.xmlParser.parseString(i,function(r,o){try{e.hsLanguage=o.setting.html5setting.language._}catch(t){}try{e.hsFlipButtonEnabled="true"===o.setting.html5setting.flipButton.$.enabled}catch(t){}try{e.hsMobileCloseButtonType=o.setting.html5setting.mobile.closeButton.$.type}catch(t){}try{e.hsMobileHomepageButtonEnabled="true"===o.setting.html5setting.mobile.homepageButton.$.enabled}catch(t){}try{e.hsMobileHomepageButtonUrl=o.setting.html5setting.mobile.homepageButton.url._}catch(t){}try{e.hsMobileHomepageButtonTarget=o.setting.html5setting.mobile.homepageButton.$.target}catch(t){}try{t(o.setting.html5setting.fusen.bgColor.color).forEach(function(t){return e.hsFusenBGColors.push(t._); })}catch(t){}try{t(o.setting.html5setting.tegaki.penColor.color).forEach(function(t){return e.hsTegakiPenColors.push(t._)})}catch(t){}try{t(o.setting.html5setting.tegaki.penThickness.thickness).forEach(function(t){return e.hsTegakiThicknesses.push({thickness:t._})})}catch(t){}try{t(o.setting.html5setting.tegaki.penThicknessClass.class).forEach(function(t,i){return e.hsTegakiThicknesses[i].thicknessType=t._})}catch(t){}return n(i)})})}}(this),this.initFlipper=function(e){return function(){return new d(function(i,n){var r,o,s,a,h,u;return y.ie()&&y.ie(9)?(e.isIE9=!0,void(e.onInitErrorIE9=!0)):(e.fitScreenSize(),e.startPage=v.getPage(),f.checkLocalStorage()&&(e.localStoragePenData=f.init(e.bookID,e.title,e.bookpath+"index.html")),p.checkLocalStorage()&&(e.localStorageFusenData=p.init(e.bookID,e.title,e.bookpath+"index.html")),e.scormScoreStartPage>0&&(e.startPage=e.scormScoreStartPage),void 0!==e.forcedstartpage&&(e.startPage=e.forcedstartpage),e.startPage>e.pageTotal&&(e.startPage=e.pageTotal),v.checkRect()&&(e.initAreaScaleIndex=v.getScaleIndex(),e.isInitAreaVisible=!0,o=v.getRect(),e.startRectX=o[0],e.startRectY=o[1],e.startRectW=o[2],e.startRectH=o[3]),v.checkInitEmbedSkin()&&(e.initEmbedScale=t.min(v.getScaleIndex(),e.scaleArray.length-1),s=v.getEmbedCenter(),e.embedStartX=s[0],e.embedStartY=s[1]),e.view=m.CAROUSEL,y.ie()&&(e.isBendFlipMode=!1),y.android()&&(e.isBendFlipMode=!1),v.getSOption()&&("and"===v.getSOption()?e.isAndTextSearch=!0:"or"===v.getSOption()&&(e.isAndTextSearch=!1)),v.getHighlightWords()&&"glyph"===e.soSearchMode&&(h=v.getHighlightWords().replace(/,/g," ").replace(/%2C/g," "),a=h.replace(/\^|\$|\\|\.|\*|\+|\?|\(|\)|\[|\]|\|/g,"\\$&"),u=a.replace(/^\s+|\s+$/g,"").replace(/\s+/g," ").split(" "),r=[],t(u).forEach(function(t){return r.push(decodeURIComponent(t))}),e.textPointWords=r,u.length>0&&e.$broadcast("searchHighlightOn")),e.isLandscape!==!1||_()||(e.view="slide"),e.isChirashi&&(e.view="slide"),e.fitScreenSize(),i())})}}(this),this.$on("init",function(t){return this.scormScoreType=null!=t?t.scormScoreType:void 0,this.scormScoreStartPage=null!=t?t.scormScoreStartPage:void 0,(null!=t?t.scormScoreStartPage:void 0)&&(this.scormScoreStartPage=null!=t?t.scormScoreStartPage:void 0),this.isNotScormInit=void 0===t,this.fitScreenSize(),this.loadLWConfigJSONFile().then(this.loadLWLibraJSONFile).then(this.loadBookXmlFile).then(this.parseBookXml).then(this.parseSkinOptionXml).then(this.parseHtml5SettingXml).then(this.getLibraInfo).then(this.getLibraFusenList).then(this.uploadLibraUnsaveData).then(this.initFlipper).then(function(t){return function(){return c.log("FLIPPER init completed")}}(this)).catch(function(t){return function(t){if("file:"===location.protocol)return window.alert("データがパソコン内にある状態では、正常に閲覧できません。\n作成されたコンテンツのデータは、「ロゴスウェアローカルビュアー」(https://learning.logosware.com/soft/lv)を使用するか、ウェブサイトにアップロードして閲覧してください。");switch(t){case"onlinestorage":return window.alert("Online Storage Only.");case"suitemidium":return window.alert("Libra Only.");default:return window.alert("book initialize error "+t)}}}(this)),window.addEventListener("hashchange",this.onHashChange)})}})}).call(e,i(3))},function(t,e,i){(function(e,n){"use strict";function r(){try{var t=T;return T=null,t.apply(this,arguments)}catch(t){return D.e=t,D}}function o(t){return T=t,r}function s(t){return null==t||t===!0||t===!1||"string"==typeof t||"number"==typeof t}function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function h(t){return s(t)?new Error(m(t)):t}function u(t,e){var i,n=t.length,r=new Array(n+1);for(i=0;i1,n=e.length>0&&!(1===e.length&&"constructor"===e[0]),r=O.test(t+"")&&k.names(t).length>0;if(i||n||r)return!0}return!1}catch(t){return!1}}function d(t){function e(){}e.prototype=t;for(var i=8;i--;)new e;return t}function g(t){return R.test(t)}function v(t,e,i){for(var n=new Array(t),r=0;r10||t[0]>0}(),H.isNode&&H.toFastProperties(n);try{throw new Error}catch(t){H.lastLineError=t}t.exports=H}).call(e,function(){return this}(),i(7))},function(t,e){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},function(t,e,i){var n;(function(t,r,o){(function(){function o(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function s(t,e,i,n){for(var r=-1,o=null==t?0:t.length;++r-1}function p(t,e,i){for(var n=-1,r=null==t?0:t.length;++n-1;);return i}function F(t,e){for(var i=t.length;i--&&A(e,t[i],0)>-1;);return i}function N(t,e){for(var i=t.length,n=0;i--;)t[i]===e&&++n;return n}function B(t){return"\\"+en[t]}function H(t,e){return null==t?rt:t[e]}function U(t){return Vi.test(t)}function z(t){return Xi.test(t)}function W(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}function Y(t){var e=-1,i=Array(t.size);return t.forEach(function(t,n){i[++e]=[n,t]}),i}function V(t,e){return function(i){return t(e(i))}}function X(t,e){for(var i=-1,n=t.length,r=0,o=[];++i>>1,Ut=[["ary",Ct],["bind",_t],["bindKey",yt],["curry",wt],["curryRight",At],["flip",Tt],["partial",xt],["partialRight",St],["rearg",Pt]],zt="[object Arguments]",Wt="[object Array]",Yt="[object AsyncFunction]",Vt="[object Boolean]",Xt="[object Date]",qt="[object DOMException]",Gt="[object Error]",Zt="[object Function]",Qt="[object GeneratorFunction]",Jt="[object Map]",Kt="[object Number]",te="[object Null]",ee="[object Object]",ie="[object Promise]",ne="[object Proxy]",re="[object RegExp]",oe="[object Set]",se="[object String]",ae="[object Symbol]",he="[object Undefined]",ue="[object WeakMap]",ce="[object WeakSet]",le="[object ArrayBuffer]",pe="[object DataView]",fe="[object Float32Array]",de="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",me="[object Int32Array]",_e="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",we="[object Uint32Array]",Ae=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Pe=/[&<>"']/g,Te=RegExp(Ce.source),ke=RegExp(Pe.source),Ee=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$e=/^\w*$/,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,je=RegExp(Re.source),Me=/^\s+/,Fe=/\s/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Ye=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,Xe=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ke=/($^)/,ti=/['\n\r\u2028\u2029\\]/g,ei="\\ud800-\\udfff",ii="\\u0300-\\u036f",ni="\\ufe20-\\ufe2f",ri="\\u20d0-\\u20ff",oi=ii+ni+ri,si="\\u2700-\\u27bf",ai="a-z\\xdf-\\xf6\\xf8-\\xff",hi="\\xac\\xb1\\xd7\\xf7",ui="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ci="\\u2000-\\u206f",li=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pi="A-Z\\xc0-\\xd6\\xd8-\\xde",fi="\\ufe0e\\ufe0f",di=hi+ui+ci+li,gi="['’]",vi="["+ei+"]",mi="["+di+"]",_i="["+oi+"]",yi="\\d+",bi="["+si+"]",wi="["+ai+"]",Ai="[^"+ei+di+yi+si+ai+pi+"]",xi="\\ud83c[\\udffb-\\udfff]",Si="(?:"+_i+"|"+xi+")",Ci="[^"+ei+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ti="[\\ud800-\\udbff][\\udc00-\\udfff]",ki="["+pi+"]",Ei="\\u200d",Di="(?:"+wi+"|"+Ai+")",Ii="(?:"+ki+"|"+Ai+")",Li="(?:"+gi+"(?:d|ll|m|re|s|t|ve))?",$i="(?:"+gi+"(?:D|LL|M|RE|S|T|VE))?",Oi=Si+"?",Ri="["+fi+"]?",ji="(?:"+Ei+"(?:"+[Ci,Pi,Ti].join("|")+")"+Ri+Oi+")*",Mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ni=Ri+Oi+ji,Bi="(?:"+[bi,Pi,Ti].join("|")+")"+Ni,Hi="(?:"+[Ci+_i+"?",_i,Pi,Ti,vi].join("|")+")",Ui=RegExp(gi,"g"),zi=RegExp(_i,"g"),Wi=RegExp(xi+"(?="+xi+")|"+Hi+Ni,"g"),Yi=RegExp([ki+"?"+wi+"+"+Li+"(?="+[mi,ki,"$"].join("|")+")",Ii+"+"+$i+"(?="+[mi,ki+Di,"$"].join("|")+")",ki+"?"+Di+"+"+Li,ki+"+"+$i,Fi,Mi,yi,Bi].join("|"),"g"),Vi=RegExp("["+Ei+ei+oi+fi+"]"),Xi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gi=-1,Zi={};Zi[fe]=Zi[de]=Zi[ge]=Zi[ve]=Zi[me]=Zi[_e]=Zi[ye]=Zi[be]=Zi[we]=!0,Zi[zt]=Zi[Wt]=Zi[le]=Zi[Vt]=Zi[pe]=Zi[Xt]=Zi[Gt]=Zi[Zt]=Zi[Jt]=Zi[Kt]=Zi[ee]=Zi[re]=Zi[oe]=Zi[se]=Zi[ue]=!1;var Qi={};Qi[zt]=Qi[Wt]=Qi[le]=Qi[pe]=Qi[Vt]=Qi[Xt]=Qi[fe]=Qi[de]=Qi[ge]=Qi[ve]=Qi[me]=Qi[Jt]=Qi[Kt]=Qi[ee]=Qi[re]=Qi[oe]=Qi[se]=Qi[ae]=Qi[_e]=Qi[ye]=Qi[be]=Qi[we]=!0,Qi[Gt]=Qi[Zt]=Qi[ue]=!1;var Ji={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Ki={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof t&&t&&t.Object===Object&&t,sn="object"==typeof self&&self&&self.Object===Object&&self,an=on||sn||Function("return this")(),hn="object"==typeof e&&e&&!e.nodeType&&e,un=hn&&"object"==typeof r&&r&&!r.nodeType&&r,cn=un&&un.exports===hn,ln=cn&&on.process,pn=function(){try{var t=un&&un.require&&un.require("util").types;return t?t:ln&&ln.binding&&ln.binding("util")}catch(t){}}(),fn=pn&&pn.isArrayBuffer,dn=pn&&pn.isDate,gn=pn&&pn.isMap,vn=pn&&pn.isRegExp,mn=pn&&pn.isSet,_n=pn&&pn.isTypedArray,yn=P("length"),bn=T(Ji),wn=T(Ki),An=T(tn),xn=function t(e){function i(t){if(ah(t)&&!_p(t)&&!(t instanceof _)){if(t instanceof r)return t;if(_c.call(t,"__wrapped__"))return rs(t)}return new r(t)}function n(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=rt}function _(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Nt,this.__views__=[]}function T(){var t=new _(this.__wrapped__);return t.__actions__=Mr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mr(this.__views__),t}function Z(){if(this.__filtered__){var t=new _(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,i=_p(t),n=e<0,r=i?t.length:0,o=To(0,r,this.__views__),s=o.start,a=o.end,h=a-s,u=n?a:s-1,c=this.__iteratees__,l=c.length,p=0,f=qc(h,this.__takeCount__);if(!i||!n&&r==h&&f==h)return br(t,this.__actions__);var d=[];t:for(;h--&&p-1}function ui(t,e){var i=this.__data__,n=Ii(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}function ci(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Fi(t,e,i,n,r,o){var s,h=e&ft,u=e&dt,c=e>if(i&&(s=r?i(t,n,r,o):i(t)),s!==rt)return s;if(!sh(t))return t;var l=_p(t);if(l){if(s=Do(t),!h)return Mr(t,s)}else{var p=kl(t),f=p==Zt||p==Qt;if(bp(t))return Tr(t,h);if(p==ee||p==zt||f&&!r){if(s=u||f?{}:Io(t),!h)return u?Br(t,Oi(s,t)):Nr(t,$i(s,t))}else{if(!Qi[p])return r?t:{};s=Lo(t,p,h)}}o||(o=new yi);var d=o.get(t);if(d)return d;o.set(t,s),Sp(t)?t.forEach(function(n){s.add(Fi(n,e,i,n,t,o))}):Ap(t)&&t.forEach(function(n,r){s.set(r,Fi(n,e,i,r,t,o))});var g=c?u?yo:_o:u?zh:Uh,v=l?rt:g(t);return a(v||t,function(n,r){v&&(r=n,n=t[r]),Di(s,r,Fi(n,e,i,r,t,o))}),s}function Ni(t){var e=Uh(t);return function(i){return Bi(i,t,e)}}function Bi(t,e,i){var n=i.length;if(null==t)return!n;for(t=uc(t);n--;){var r=i[n],o=e[r],s=t[r];if(s===rt&&!(r in t)||!o(s))return!1}return!0}function Hi(t,e,i){if("function"!=typeof t)throw new pc(ht);return Il(function(){t.apply(rt,i)},e)}function Wi(t,e,i,n){var r=-1,o=l,s=!0,a=t.length,h=[],u=e.length;if(!a)return h;i&&(e=f(e,O(i))),n?(o=p,s=!1):e.length>=st&&(o=j,s=!1,e=new vi(e));t:for(;++rr?0:r+i),n=n===rt||n>r?r:Sh(n),n<0&&(n+=r),n=i>n?0:Ch(n);i0&&i(a)?e>1?Ki(a,e-1,i,n,r):d(r,a):n||(r[r.length]=a)}return r}function tn(t,e){return t&&_l(t,e,Uh)}function en(t,e){return t&&yl(t,e,Uh)}function on(t,e){return c(e,function(e){return nh(t[e])})}function sn(t,e){e=Cr(e,t);for(var i=0,n=e.length;null!=t&&ie}function pn(t,e){return null!=t&&_c.call(t,e)}function yn(t,e){return null!=t&&e in uc(t)}function xn(t,e,i){return t>=qc(e,i)&&t=120&&c.length>=120)?new vi(s&&c):rt}c=t[0];var d=-1,g=a[0];t:for(;++d-1;)a!==t&&Lc.call(a,h,1),Lc.call(t,h,1);return t}function tr(t,e){for(var i=t?e.length:0,n=i-1;i--;){var r=e[i];if(i==n||r!==o){var o=r;Ro(r)?Lc.call(t,r,1):mr(t,r)}}return t}function er(t,e){return t+Hc(Qc()*(e-t+1))}function ir(t,e,i,n){for(var r=-1,o=Xc(Bc((e-t)/(i||1)),0),s=rc(o);o--;)s[n?o:++r]=t,t+=i;return s}function nr(t,e){var i="";if(!t||e<1||e>jt)return i;do e%2&&(i+=t),e=Hc(e/2),e&&(t+=t);while(e);return i}function rr(t,e){return Ll(qo(t,e,Lu),t+"")}function or(t){return Pi(eu(t))}function sr(t,e){var i=eu(t);return ts(i,Mi(e,0,i.length))}function ar(t,e,i,n){if(!sh(t))return t;e=Cr(e,t);for(var r=-1,o=e.length,s=o-1,a=t;null!=a&&++rr?0:r+e),i=i>r?r:i,i<0&&(i+=r),r=e>i?0:i-e>>>0,e>>>=0;for(var o=rc(r);++n>>1,s=t[o];null!==s&&!_h(s)&&(i?s<=e:s=st){var u=e?null:Sl(t);if(u)return q(u);s=!1,r=j,h=new vi}else h=e?[]:a;t:for(;++n=n?t:ur(t,e,i)}function Tr(t,e){if(e)return t.slice();var i=t.length,n=kc?kc(i):new t.constructor(i);return t.copy(n),n}function kr(t){var e=new t.constructor(t.byteLength);return new Tc(e).set(new Tc(t)),e}function Er(t,e){var i=e?kr(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}function Dr(t){var e=new t.constructor(t.source,Ve.exec(t));return e.lastIndex=t.lastIndex,e}function Ir(t){return fl?uc(fl.call(t)):{}}function Lr(t,e){var i=e?kr(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function $r(t,e){if(t!==e){var i=t!==rt,n=null===t,r=t===t,o=_h(t),s=e!==rt,a=null===e,h=e===e,u=_h(e);if(!a&&!u&&!o&&t>e||o&&s&&h&&!a&&!u||n&&s&&h||!i&&h||!r)return 1;if(!n&&!o&&!u&&t=a)return h;var u=i[n];return h*("desc"==u?-1:1)}}return t.index-e.index}function Rr(t,e,i,n){for(var r=-1,o=t.length,s=i.length,a=-1,h=e.length,u=Xc(o-s,0),c=rc(h+u),l=!n;++a1?i[r-1]:rt,s=r>2?i[2]:rt;for(o=t.length>3&&"function"==typeof o?(r--,o):rt,s&&jo(i[0],i[1],s)&&(o=r<3?rt:o,r=1),e=uc(e);++n-1?r[o?e[s]:s]:rt}}function Qr(t){return mo(function(e){var i=e.length,n=i,o=r.prototype.thru;for(t&&e.reverse();n--;){var s=e[n];if("function"!=typeof s)throw new pc(ht);if(o&&!a&&"wrapper"==bo(s))var a=new r([],!0)}for(n=a?n:i;++n1&&_.reverse(),l&&ha))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var l=-1,p=!0,f=i&mt?new vi:rt;for(o.set(t,e),o.set(e,t);++l1?"& ":"")+e[n],e=e.join(i>2?", ":" "),t.replace(Ne,"{\n/* [wrapped with "+e+"] */\n")}function Oo(t){return _p(t)||mp(t)||!!($c&&t&&t[$c])}function Ro(t,e){var i=typeof t;return e=null==e?jt:e,!!e&&("number"==i||"symbol"!=i&&Qe.test(t))&&t>-1&&t%1==0&&t0){if(++e>=Dt)return arguments[0]}else e=0;return t.apply(rt,arguments)}}function ts(t,e){var i=-1,n=t.length,r=n-1;for(e=e===rt?n:e;++i=this.__values__.length,e=t?rt:this.__values__[this.__index__++];return{done:t,value:e}}function ra(){return this}function oa(t){for(var e,i=this;i instanceof n;){var r=rs(i);r.__index__=0,r.__values__=rt,e?o.__wrapped__=r:e=r;var o=r;i=i.__wrapped__}return o.__wrapped__=t,e}function sa(){var t=this.__wrapped__;if(t instanceof _){var e=t;return this.__actions__.length&&(e=new _(this)),e=e.reverse(),e.__actions__.push({func:ta,args:[Ds],thisArg:rt}),new r(e,this.__chain__)}return this.thru(Ds)}function aa(){return br(this.__wrapped__,this.__actions__)}function ha(t,e,i){var n=_p(t)?u:Yi;return i&&jo(t,e,i)&&(e=rt),n(t,Ao(e,3))}function ua(t,e){var i=_p(t)?c:Ji;return i(t,Ao(e,3))}function ca(t,e){return Ki(va(t,e),1)}function la(t,e){return Ki(va(t,e),Rt)}function pa(t,e,i){return i=i===rt?1:Sh(i),Ki(va(t,e),i)}function fa(t,e){var i=_p(t)?a:vl;return i(t,Ao(e,3))}function da(t,e){var i=_p(t)?h:ml;return i(t,Ao(e,3))}function ga(t,e,i,n){t=qa(t)?t:eu(t),i=i&&!n?Sh(i):0;var r=t.length;return i<0&&(i=Xc(r+i,0)),mh(t)?i<=r&&t.indexOf(e,i)>-1:!!r&&A(t,e,i)>-1}function va(t,e){var i=_p(t)?f:zn;return i(t,Ao(e,3))}function ma(t,e,i,n){return null==t?[]:(_p(e)||(e=null==e?[]:[e]),i=n?rt:i,_p(i)||(i=null==i?[]:[i]),Gn(t,e,i))}function _a(t,e,i){var n=_p(t)?g:k,r=arguments.length<3;return n(t,Ao(e,4),i,r,vl)}function ya(t,e,i){var n=_p(t)?v:k,r=arguments.length<3;return n(t,Ao(e,4),i,r,ml)}function ba(t,e){var i=_p(t)?c:Ji;return i(t,Oa(Ao(e,3)))}function wa(t){var e=_p(t)?Pi:or;return e(t)}function Aa(t,e,i){e=(i?jo(t,e,i):e===rt)?1:Sh(e);var n=_p(t)?Ti:sr;return n(t,e)}function xa(t){var e=_p(t)?ki:hr;return e(t)}function Sa(t){if(null==t)return 0;if(qa(t))return mh(t)?J(t):t.length;var e=kl(t);return e==Jt||e==oe?t.size:Bn(t).length}function Ca(t,e,i){var n=_p(t)?m:cr;return i&&jo(t,e,i)&&(e=rt),n(t,Ao(e,3))}function Pa(t,e){if("function"!=typeof e)throw new pc(ht);return t=Sh(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ta(t,e,i){return e=i?rt:e,e=t&&null==e?t.length:e,uo(t,Ct,rt,rt,rt,rt,e)}function ka(t,e){var i;if("function"!=typeof e)throw new pc(ht);return t=Sh(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=rt),i}}function Ea(t,e,i){e=i?rt:e;var n=uo(t,wt,rt,rt,rt,rt,rt,e);return n.placeholder=Ea.placeholder,n}function Da(t,e,i){e=i?rt:e;var n=uo(t,At,rt,rt,rt,rt,rt,e);return n.placeholder=Da.placeholder,n}function Ia(t,e,i){function n(e){var i=p,n=f;return p=f=rt,_=e,g=t.apply(n,i)}function r(t){return _=t,v=Il(a,e),y?n(t):g}function o(t){var i=t-m,n=t-_,r=e-i;return b?qc(r,d-n):r}function s(t){var i=t-m,n=t-_;return m===rt||i>=e||i<0||b&&n>=d}function a(){var t=sp();return s(t)?h(t):void(v=Il(a,o(t)))}function h(t){return v=rt,w&&p?n(t):(p=f=rt,g)}function u(){v!==rt&&xl(v),_=0,p=m=f=v=rt}function c(){return v===rt?g:h(sp())}function l(){var t=sp(),i=s(t);if(p=arguments,f=this,m=t,i){if(v===rt)return r(m);if(b)return xl(v),v=Il(a,e),n(m)}return v===rt&&(v=Il(a,e)),g}var p,f,d,g,v,m,_=0,y=!1,b=!1,w=!0;if("function"!=typeof t)throw new pc(ht);return e=Ph(e)||0,sh(i)&&(y=!!i.leading,b="maxWait"in i,d=b?Xc(Ph(i.maxWait)||0,e):d,w="trailing"in i?!!i.trailing:w),l.cancel=u,l.flush=c,l}function La(t){return uo(t,Tt)}function $a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new pc(ht);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new($a.Cache||ci),i}function Oa(t){if("function"!=typeof t)throw new pc(ht);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ra(t){return ka(2,t)}function ja(t,e){if("function"!=typeof t)throw new pc(ht);return e=e===rt?e:Sh(e),rr(t,e)}function Ma(t,e){if("function"!=typeof t)throw new pc(ht);return e=null==e?0:Xc(Sh(e),0),rr(function(i){var n=i[e],r=Pr(i,0,e);return n&&d(r,n),o(t,this,r)})}function Fa(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new pc(ht);return sh(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),Ia(t,e,{leading:n,maxWait:e,trailing:r})}function Na(t){return Ta(t,1)}function Ba(t,e){return pp(Sr(e),t)}function Ha(){if(!arguments.length)return[];var t=arguments[0];return _p(t)?t:[t]}function Ua(t){return Fi(t,gt)}function za(t,e){return e="function"==typeof e?e:rt,Fi(t,gt,e)}function Wa(t){return Fi(t,ft|gt)}function Ya(t,e){return e="function"==typeof e?e:rt,Fi(t,ft|gt,e)}function Va(t,e){return null==e||Bi(t,e,Uh(e))}function Xa(t,e){return t===e||t!==t&&e!==e}function qa(t){return null!=t&&oh(t.length)&&!nh(t)}function Ga(t){return ah(t)&&qa(t)}function Za(t){return t===!0||t===!1||ah(t)&&un(t)==Vt}function Qa(t){return ah(t)&&1===t.nodeType&&!gh(t)}function Ja(t){if(null==t)return!0;if(qa(t)&&(_p(t)||"string"==typeof t||"function"==typeof t.splice||bp(t)||Cp(t)||mp(t)))return!t.length;var e=kl(t);if(e==Jt||e==oe)return!t.size;if(Ho(t))return!Bn(t).length;for(var i in t)if(_c.call(t,i))return!1;return!0}function Ka(t,e){return In(t,e)}function th(t,e,i){i="function"==typeof i?i:rt;var n=i?i(t,e):rt;return n===rt?In(t,e,rt,i):!!n}function eh(t){if(!ah(t))return!1;var e=un(t);return e==Gt||e==qt||"string"==typeof t.message&&"string"==typeof t.name&&!gh(t)}function ih(t){return"number"==typeof t&&Wc(t)}function nh(t){if(!sh(t))return!1;var e=un(t);return e==Zt||e==Qt||e==Yt||e==ne}function rh(t){return"number"==typeof t&&t==Sh(t)}function oh(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=jt}function sh(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ah(t){return null!=t&&"object"==typeof t}function hh(t,e){return t===e||On(t,e,So(e))}function uh(t,e,i){return i="function"==typeof i?i:rt,On(t,e,So(e),i)}function ch(t){return dh(t)&&t!=+t}function lh(t){if(El(t))throw new sc(at);return Rn(t)}function ph(t){return null===t}function fh(t){return null==t}function dh(t){return"number"==typeof t||ah(t)&&un(t)==Kt}function gh(t){if(!ah(t)||un(t)!=ee)return!1;var e=Ec(t);if(null===e)return!0;var i=_c.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&mc.call(i)==Ac}function vh(t){return rh(t)&&t>=-jt&&t<=jt}function mh(t){return"string"==typeof t||!_p(t)&&ah(t)&&un(t)==se}function _h(t){return"symbol"==typeof t||ah(t)&&un(t)==ae}function yh(t){return t===rt}function bh(t){return ah(t)&&kl(t)==ue}function wh(t){return ah(t)&&un(t)==ce}function Ah(t){if(!t)return[];if(qa(t))return mh(t)?K(t):Mr(t);if(Oc&&t[Oc])return W(t[Oc]());var e=kl(t),i=e==Jt?Y:e==oe?q:eu;return i(t)}function xh(t){if(!t)return 0===t?t:0;if(t=Ph(t),t===Rt||t===-Rt){var e=t<0?-1:1;return e*Mt}return t===t?t:0}function Sh(t){var e=xh(t),i=e%1;return e===e?i?e-i:e:0}function Ch(t){return t?Mi(Sh(t),0,Nt):0}function Ph(t){if("number"==typeof t)return t;if(_h(t))return Ft;if(sh(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=sh(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=$(t);var i=qe.test(t);return i||Ze.test(t)?rn(t.slice(2),i?2:8):Xe.test(t)?Ft:+t}function Th(t){return Fr(t,zh(t))}function kh(t){return t?Mi(Sh(t),-jt,jt):0===t?t:0}function Eh(t){return null==t?"":gr(t)}function Dh(t,e){var i=gl(t);return null==e?i:$i(i,e)}function Ih(t,e){return b(t,Ao(e,3),tn)}function Lh(t,e){return b(t,Ao(e,3),en)}function $h(t,e){return null==t?t:_l(t,Ao(e,3),zh)}function Oh(t,e){return null==t?t:yl(t,Ao(e,3),zh)}function Rh(t,e){return t&&tn(t,Ao(e,3))}function jh(t,e){return t&&en(t,Ao(e,3))}function Mh(t){return null==t?[]:on(t,Uh(t))}function Fh(t){return null==t?[]:on(t,zh(t))}function Nh(t,e,i){var n=null==t?rt:sn(t,e);return n===rt?i:n}function Bh(t,e){return null!=t&&Eo(t,e,pn)}function Hh(t,e){return null!=t&&Eo(t,e,yn)}function Uh(t){return qa(t)?Ci(t):Bn(t)}function zh(t){return qa(t)?Ci(t,!0):Hn(t)}function Wh(t,e){var i={};return e=Ao(e,3),tn(t,function(t,n,r){Ri(i,e(t,n,r),t)}),i}function Yh(t,e){var i={};return e=Ao(e,3),tn(t,function(t,n,r){Ri(i,n,e(t,n,r))}),i}function Vh(t,e){return Xh(t,Oa(Ao(e)))}function Xh(t,e){if(null==t)return{};var i=f(yo(t),function(t){return[t]});return e=Ao(e),Qn(t,i,function(t,i){return e(t,i[0])})}function qh(t,e,i){e=Cr(e,t);var n=-1,r=e.length;for(r||(r=1,t=rt);++ne){var n=t;t=e,e=n}if(i||t%1||e%1){var r=Qc();return qc(t+r*(e-t+nn("1e-"+((r+"").length-1))),e)}return er(t,e)}function su(t){return Qp(Eh(t).toLowerCase())}function au(t){return t=Eh(t),t&&t.replace(Je,bn).replace(zi,"")}function hu(t,e,i){t=Eh(t),e=gr(e);var n=t.length;i=i===rt?n:Mi(Sh(i),0,n);var r=i;return i-=e.length,i>=0&&t.slice(i,r)==e}function uu(t){return t=Eh(t),t&&ke.test(t)?t.replace(Pe,wn):t}function cu(t){return t=Eh(t),t&&je.test(t)?t.replace(Re,"\\$&"):t}function lu(t,e,i){t=Eh(t),e=Sh(e);var n=e?J(t):0;if(!e||n>=e)return t;var r=(e-n)/2;return io(Hc(r),i)+t+io(Bc(r),i)}function pu(t,e,i){t=Eh(t),e=Sh(e);var n=e?J(t):0;return e&&n>>0)?(t=Eh(t),t&&("string"==typeof e||null!=e&&!xp(e))&&(e=gr(e),!e&&U(t))?Pr(K(t),0,i):t.split(e,i)):[]}function _u(t,e,i){return t=Eh(t),i=null==i?0:Mi(Sh(i),0,t.length),e=gr(e),t.slice(i,i+e.length)==e}function yu(t,e,n){var r=i.templateSettings;n&&jo(t,e,n)&&(e=rt),t=Eh(t),e=Dp({},e,r,co);var o,s,a=Dp({},e.imports,r.imports,co),h=Uh(a),u=R(a,h),c=0,l=e.interpolate||Ke,p="__p += '",f=cc((e.escape||Ke).source+"|"+l.source+"|"+(l===Ie?Ye:Ke).source+"|"+(e.evaluate||Ke).source+"|$","g"),d="//# sourceURL="+(_c.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gi+"]")+"\n";t.replace(f,function(e,i,n,r,a,h){return n||(n=r),p+=t.slice(c,h).replace(ti,B),i&&(o=!0,p+="' +\n__e("+i+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=h+e.length,e}),p+="';\n";var g=_c.call(e,"variable")&&e.variable;if(g){if(ze.test(g))throw new sc(ut)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(Ae,""):p).replace(xe,"$1").replace(Se,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Jp(function(){return ac(h,d+"return "+p).apply(rt,u)});if(v.source=p,eh(v))throw v;return v}function bu(t){return Eh(t).toLowerCase()}function wu(t){return Eh(t).toUpperCase()}function Au(t,e,i){if(t=Eh(t),t&&(i||e===rt))return $(t);if(!t||!(e=gr(e)))return t;var n=K(t),r=K(e),o=M(n,r),s=F(n,r)+1;return Pr(n,o,s).join("")}function xu(t,e,i){if(t=Eh(t),t&&(i||e===rt))return t.slice(0,tt(t)+1);if(!t||!(e=gr(e)))return t;var n=K(t),r=F(n,K(e))+1;return Pr(n,0,r).join("")}function Su(t,e,i){if(t=Eh(t),t&&(i||e===rt))return t.replace(Me,"");if(!t||!(e=gr(e)))return t;var n=K(t),r=M(n,K(e));return Pr(n,r).join("")}function Cu(t,e){var i=kt,n=Et;if(sh(e)){var r="separator"in e?e.separator:r;i="length"in e?Sh(e.length):i,n="omission"in e?gr(e.omission):n}t=Eh(t);var o=t.length;if(U(t)){var s=K(t);o=s.length}if(i>=o)return t;var a=i-J(n);if(a<1)return n;var h=s?Pr(s,0,a).join(""):t.slice(0,a);if(r===rt)return h+n;if(s&&(a+=h.length-a),xp(r)){if(t.slice(a).search(r)){var u,c=h;for(r.global||(r=cc(r.source,Eh(Ve.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var l=u.index;h=h.slice(0,l===rt?a:l)}}else if(t.indexOf(gr(r),a)!=a){var p=h.lastIndexOf(r);p>-1&&(h=h.slice(0,p))}return h+n}function Pu(t){return t=Eh(t),t&&Te.test(t)?t.replace(Ce,An):t}function Tu(t,e,i){return t=Eh(t),e=i?rt:e,e===rt?z(t)?nt(t):y(t):t.match(e)||[]}function ku(t){var e=null==t?0:t.length,i=Ao();return t=e?f(t,function(t){if("function"!=typeof t[1])throw new pc(ht);return[i(t[0]),t[1]]}):[],rr(function(i){for(var n=-1;++njt)return[];var i=Nt,n=qc(t,Nt);e=Ao(e),t-=Nt;for(var r=I(n,e);++i1?t[e-1]:rt;return i="function"==typeof i?(t.pop(),i):rt,Gs(t,i)}),Ql=mo(function(t){var e=t.length,i=e?t[0]:0,n=this.__wrapped__,o=function(e){return ji(e,t)};return!(e>1||this.__actions__.length)&&n instanceof _&&Ro(i)?(n=n.slice(i,+i+(e?1:0)),n.__actions__.push({func:ta,args:[o],thisArg:rt}),new r(n,this.__chain__).thru(function(t){return e&&!t.length&&t.push(rt),t})):this.thru(o)}),Jl=Hr(function(t,e,i){_c.call(t,i)?++t[i]:Ri(t,i,1)}),Kl=Zr(fs),tp=Zr(ds),ep=Hr(function(t,e,i){_c.call(t,i)?t[i].push(e):Ri(t,i,[e])}),ip=rr(function(t,e,i){var n=-1,r="function"==typeof e,s=qa(t)?rc(t.length):[];return vl(t,function(t){s[++n]=r?o(e,t,i):Tn(t,e,i)}),s}),np=Hr(function(t,e,i){Ri(t,i,e)}),rp=Hr(function(t,e,i){t[i?0:1].push(e)},function(){return[[],[]]}),op=rr(function(t,e){if(null==t)return[];var i=e.length;return i>1&&jo(t,e[0],e[1])?e=[]:i>2&&jo(e[0],e[1],e[2])&&(e=[e[0]]),Gn(t,Ki(e,1),[])}),sp=Fc||function(){return an.Date.now()},ap=rr(function(t,e,i){var n=_t;if(i.length){var r=X(i,wo(ap));n|=xt}return uo(t,n,e,i,r)}),hp=rr(function(t,e,i){var n=_t|yt;if(i.length){var r=X(i,wo(hp));n|=xt}return uo(e,n,t,i,r)}),up=rr(function(t,e){return Hi(t,1,e)}),cp=rr(function(t,e,i){return Hi(t,Ph(e)||0,i)});$a.Cache=ci;var lp=Al(function(t,e){e=1==e.length&&_p(e[0])?f(e[0],O(Ao())):f(Ki(e,1),O(Ao()));var i=e.length;return rr(function(n){for(var r=-1,s=qc(n.length,i);++r=e}),mp=kn(function(){return arguments}())?kn:function(t){return ah(t)&&_c.call(t,"callee")&&!Ic.call(t,"callee")},_p=rc.isArray,yp=fn?O(fn):En,bp=zc||zu,wp=dn?O(dn):Dn,Ap=gn?O(gn):$n,xp=vn?O(vn):jn,Sp=mn?O(mn):Mn,Cp=_n?O(_n):Fn,Pp=oo(Un),Tp=oo(function(t,e){return t<=e}),kp=Ur(function(t,e){if(Ho(e)||qa(e))return void Fr(e,Uh(e),t);for(var i in e)_c.call(e,i)&&Di(t,i,e[i])}),Ep=Ur(function(t,e){Fr(e,zh(e),t)}),Dp=Ur(function(t,e,i,n){Fr(e,zh(e),t,n)}),Ip=Ur(function(t,e,i,n){Fr(e,Uh(e),t,n)}),Lp=mo(ji),$p=rr(function(t,e){t=uc(t);var i=-1,n=e.length,r=n>2?e[2]:rt;for(r&&jo(e[0],e[1],r)&&(n=1);++i1),e}),Fr(t,yo(t),i),n&&(i=Fi(i,ft|dt|gt,po));for(var r=e.length;r--;)mr(i,e[r]);return i}),Hp=mo(function(t,e){return null==t?{}:Zn(t,e)}),Up=ho(Uh),zp=ho(zh),Wp=Xr(function(t,e,i){return e=e.toLowerCase(),t+(i?su(e):e)}),Yp=Xr(function(t,e,i){return t+(i?"-":"")+e.toLowerCase()}),Vp=Xr(function(t,e,i){return t+(i?" ":"")+e.toLowerCase()}),Xp=Vr("toLowerCase"),qp=Xr(function(t,e,i){return t+(i?"_":"")+e.toLowerCase()}),Gp=Xr(function(t,e,i){return t+(i?" ":"")+Qp(e)}),Zp=Xr(function(t,e,i){return t+(i?" ":"")+e.toUpperCase()}),Qp=Vr("toUpperCase"),Jp=rr(function(t,e){try{return o(t,rt,e)}catch(t){return eh(t)?t:new sc(t)}}),Kp=mo(function(t,e){return a(e,function(e){e=es(e),Ri(t,e,ap(t[e],t))}),t}),tf=Qr(),ef=Qr(!0),nf=rr(function(t,e){return function(i){return Tn(i,t,e)}}),rf=rr(function(t,e){return function(i){return Tn(t,i,e)}}),of=eo(f),sf=eo(u),af=eo(m),hf=ro(),uf=ro(!0),cf=to(function(t,e){return t+e},0),lf=ao("ceil"),pf=to(function(t,e){return t/e},1),ff=ao("floor"),df=to(function(t,e){return t*e},1),gf=ao("round"),vf=to(function(t,e){return t-e},0);return i.after=Pa,i.ary=Ta,i.assign=kp,i.assignIn=Ep,i.assignInWith=Dp,i.assignWith=Ip,i.at=Lp,i.before=ka,i.bind=ap,i.bindAll=Kp,i.bindKey=hp,i.castArray=Ha,i.chain=Js,i.chunk=os,i.compact=ss,i.concat=as,i.cond=ku,i.conforms=Eu,i.constant=Du,i.countBy=Jl,i.create=Dh,i.curry=Ea,i.curryRight=Da,i.debounce=Ia,i.defaults=$p,i.defaultsDeep=Op,i.defer=up,i.delay=cp,i.difference=Ol,i.differenceBy=Rl,i.differenceWith=jl,i.drop=hs,i.dropRight=us,i.dropRightWhile=cs,i.dropWhile=ls,i.fill=ps,i.filter=ua,i.flatMap=ca,i.flatMapDeep=la,i.flatMapDepth=pa,i.flatten=gs,i.flattenDeep=vs,i.flattenDepth=ms,i.flip=La,i.flow=tf,i.flowRight=ef,i.fromPairs=_s,i.functions=Mh,i.functionsIn=Fh,i.groupBy=ep,i.initial=ws,i.intersection=Ml,i.intersectionBy=Fl,i.intersectionWith=Nl,i.invert=Rp,i.invertBy=jp,i.invokeMap=ip,i.iteratee=$u,i.keyBy=np,i.keys=Uh,i.keysIn=zh,i.map=va,i.mapKeys=Wh,i.mapValues=Yh,i.matches=Ou,i.matchesProperty=Ru,i.memoize=$a,i.merge=Fp,i.mergeWith=Np,i.method=nf,i.methodOf=rf,i.mixin=ju,i.negate=Oa,i.nthArg=Nu,i.omit=Bp,i.omitBy=Vh,i.once=Ra,i.orderBy=ma,i.over=of,i.overArgs=lp,i.overEvery=sf,i.overSome=af,i.partial=pp,i.partialRight=fp,i.partition=rp,i.pick=Hp,i.pickBy=Xh,i.property=Bu,i.propertyOf=Hu,i.pull=Bl,i.pullAll=Ps,i.pullAllBy=Ts,i.pullAllWith=ks,i.pullAt=Hl,i.range=hf,i.rangeRight=uf,i.rearg=dp,i.reject=ba,i.remove=Es,i.rest=ja,i.reverse=Ds,i.sampleSize=Aa,i.set=Gh,i.setWith=Zh,i.shuffle=xa,i.slice=Is,i.sortBy=op,i.sortedUniq=Fs,i.sortedUniqBy=Ns,i.split=mu,i.spread=Ma,i.tail=Bs,i.take=Hs,i.takeRight=Us,i.takeRightWhile=zs,i.takeWhile=Ws,i.tap=Ks,i.throttle=Fa,i.thru=ta,i.toArray=Ah,i.toPairs=Up,i.toPairsIn=zp,i.toPath=qu,i.toPlainObject=Th,i.transform=Qh,i.unary=Na,i.union=Ul,i.unionBy=zl,i.unionWith=Wl,i.uniq=Ys,i.uniqBy=Vs,i.uniqWith=Xs,i.unset=Jh,i.unzip=qs,i.unzipWith=Gs,i.update=Kh,i.updateWith=tu,i.values=eu,i.valuesIn=iu,i.without=Yl,i.words=Tu,i.wrap=Ba,i.xor=Vl,i.xorBy=Xl,i.xorWith=ql,i.zip=Gl,i.zipObject=Zs,i.zipObjectDeep=Qs,i.zipWith=Zl,i.entries=Up,i.entriesIn=zp,i.extend=Ep,i.extendWith=Dp,ju(i,i),i.add=cf,i.attempt=Jp,i.camelCase=Wp,i.capitalize=su,i.ceil=lf,i.clamp=nu,i.clone=Ua,i.cloneDeep=Wa,i.cloneDeepWith=Ya,i.cloneWith=za,i.conformsTo=Va,i.deburr=au,i.defaultTo=Iu,i.divide=pf,i.endsWith=hu,i.eq=Xa,i.escape=uu,i.escapeRegExp=cu,i.every=ha,i.find=Kl,i.findIndex=fs,i.findKey=Ih,i.findLast=tp,i.findLastIndex=ds,i.findLastKey=Lh,i.floor=ff,i.forEach=fa,i.forEachRight=da,i.forIn=$h,i.forInRight=Oh,i.forOwn=Rh,i.forOwnRight=jh,i.get=Nh,i.gt=gp,i.gte=vp,i.has=Bh,i.hasIn=Hh,i.head=ys,i.identity=Lu,i.includes=ga,i.indexOf=bs,i.inRange=ru,i.invoke=Mp,i.isArguments=mp,i.isArray=_p,i.isArrayBuffer=yp,i.isArrayLike=qa,i.isArrayLikeObject=Ga,i.isBoolean=Za,i.isBuffer=bp,i.isDate=wp,i.isElement=Qa,i.isEmpty=Ja,i.isEqual=Ka,i.isEqualWith=th,i.isError=eh,i.isFinite=ih,i.isFunction=nh,i.isInteger=rh,i.isLength=oh,i.isMap=Ap,i.isMatch=hh,i.isMatchWith=uh,i.isNaN=ch,i.isNative=lh,i.isNil=fh,i.isNull=ph,i.isNumber=dh,i.isObject=sh,i.isObjectLike=ah,i.isPlainObject=gh,i.isRegExp=xp,i.isSafeInteger=vh,i.isSet=Sp,i.isString=mh,i.isSymbol=_h,i.isTypedArray=Cp,i.isUndefined=yh,i.isWeakMap=bh,i.isWeakSet=wh,i.join=As,i.kebabCase=Yp,i.last=xs,i.lastIndexOf=Ss,i.lowerCase=Vp,i.lowerFirst=Xp,i.lt=Pp,i.lte=Tp,i.max=Zu,i.maxBy=Qu,i.mean=Ju,i.meanBy=Ku,i.min=tc,i.minBy=ec,i.stubArray=Uu,i.stubFalse=zu,i.stubObject=Wu,i.stubString=Yu,i.stubTrue=Vu,i.multiply=df,i.nth=Cs,i.noConflict=Mu,i.noop=Fu,i.now=sp,i.pad=lu,i.padEnd=pu,i.padStart=fu,i.parseInt=du,i.random=ou,i.reduce=_a,i.reduceRight=ya,i.repeat=gu,i.replace=vu,i.result=qh,i.round=gf,i.runInContext=t,i.sample=wa,i.size=Sa,i.snakeCase=qp,i.some=Ca,i.sortedIndex=Ls,i.sortedIndexBy=$s,i.sortedIndexOf=Os,i.sortedLastIndex=Rs,i.sortedLastIndexBy=js,i.sortedLastIndexOf=Ms,i.startCase=Gp,i.startsWith=_u,i.subtract=vf,i.sum=ic,i.sumBy=nc,i.template=yu,i.times=Xu,i.toFinite=xh,i.toInteger=Sh,i.toLength=Ch,i.toLower=bu,i.toNumber=Ph,i.toSafeInteger=kh,i.toString=Eh,i.toUpper=wu,i.trim=Au,i.trimEnd=xu,i.trimStart=Su,i.truncate=Cu,i.unescape=Pu,i.uniqueId=Gu,i.upperCase=Zp,i.upperFirst=Qp,i.each=fa,i.eachRight=da,i.first=ys,ju(i,function(){var t={};return tn(i,function(e,n){_c.call(i.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),i.VERSION=ot,a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){i[t].placeholder=i}),a(["drop","take"],function(t,e){_.prototype[t]=function(i){i=i===rt?1:Xc(Sh(i),0);var n=this.__filtered__&&!e?new _(this):this.clone();return n.__filtered__?n.__takeCount__=qc(i,n.__takeCount__):n.__views__.push({size:qc(i,Nt),type:t+(n.__dir__<0?"Right":"")}),n},_.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),a(["filter","map","takeWhile"],function(t,e){var i=e+1,n=i==Lt||i==Ot;_.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ao(t,3),type:i}),e.__filtered__=e.__filtered__||n,e}}),a(["head","last"],function(t,e){var i="take"+(e?"Right":"");_.prototype[t]=function(){return this[i](1).value()[0]}}),a(["initial","tail"],function(t,e){var i="drop"+(e?"":"Right");_.prototype[t]=function(){return this.__filtered__?new _(this):this[i](1)}}),_.prototype.compact=function(){return this.filter(Lu)},_.prototype.find=function(t){return this.filter(t).head()},_.prototype.findLast=function(t){return this.reverse().find(t)},_.prototype.invokeMap=rr(function(t,e){return"function"==typeof t?new _(this):this.map(function(i){return Tn(i,t,e)})}),_.prototype.reject=function(t){return this.filter(Oa(Ao(t)))},_.prototype.slice=function(t,e){t=Sh(t);var i=this;return i.__filtered__&&(t>0||e<0)?new _(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==rt&&(e=Sh(e),i=e<0?i.dropRight(-e):i.take(e-t)),i)},_.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},_.prototype.toArray=function(){return this.take(Nt)},tn(_.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),s=i[o?"take"+("last"==e?"Right":""):e],a=o||/^find/.test(e);s&&(i.prototype[e]=function(){var e=this.__wrapped__,h=o?[1]:arguments,u=e instanceof _,c=h[0],l=u||_p(e),p=function(t){var e=s.apply(i,d([t],h));return o&&f?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,g=!!this.__actions__.length,v=a&&!f,m=u&&!g;if(!a&&l){e=m?e:new _(this);var y=t.apply(e,h);return y.__actions__.push({func:ta,args:[p],thisArg:rt}),new r(y,f)}return v&&m?t.apply(this,h):(y=this.thru(p),v?o?y.value()[0]:y.value():y)})}),a(["pop","push","shift","sort","splice","unshift"],function(t){var e=fc[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);i.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(_p(i)?i:[],t)}return this[n](function(i){return e.apply(_p(i)?i:[],t)})}}),tn(_.prototype,function(t,e){var n=i[e];if(n){var r=n.name+"";_c.call(sl,r)||(sl[r]=[]),sl[r].push({name:e,func:n})}}),sl[Jr(rt,yt).name]=[{name:"wrapper",func:rt}],_.prototype.clone=T,_.prototype.reverse=Z,_.prototype.value=et,i.prototype.at=Ql,i.prototype.chain=ea,i.prototype.commit=ia,i.prototype.next=na,i.prototype.plant=oa,i.prototype.reverse=sa,i.prototype.toJSON=i.prototype.valueOf=i.prototype.value=aa,i.prototype.first=i.prototype.head,Oc&&(i.prototype[Oc]=ra),i},Sn=xn();an._=Sn,n=function(){return Sn}.call(e,i,e,r),!(n!==rt&&(r.exports=n))}).call(this)}).call(e,function(){return this}(),i(186)(t),i(3))},function(t,e){var i,n=[].slice;i=function(){function t(){}return t.production="",t.force=!1,t.log=function(){var t;if(t=1<=arguments.length?n.call(arguments,0):[],window.console&&"function"==typeof window.console.log){if("development"===this.production)return console.log.apply(console,t);if(this.force)return console.log.apply(console,t)}},t}(),t.exports=i},function(t,e,i){(function(){var e,n,r,o,s,a,h,u,c,l,p,f,d,g,v,m,_,y,b,w={}.hasOwnProperty;b=i(8),y=b.isObject,_=b.isFunction,m=b.isEmpty,v=b.getValue,u=null,r=null,o=null,s=null,a=null,d=null,g=null,f=null,h=null,n=null,p=null,c=null,e=null,t.exports=l=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=i(48),r=i(40),o=i(41),s=i(46),a=i(47),d=i(51),g=i(53),f=i(50),h=i(81),n=i(2),p=i(195),c=i(49),e=i(190))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new p(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var t,e,i,r,o;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(o="",r=this.children,e=0,i=r.length;e":(null!=(i=this.parent)?i.name:void 0)?"node: <"+t+">, parent: <"+this.parent.name+">":"node: <"+t+">":""},t.prototype.ele=function(t,e,i){return this.element(t,e,i)},t.prototype.nod=function(t,e,i){return this.node(t,e,i)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(t,e,i){return this.declaration(t,e,i)},t.prototype.e=function(t,e,i){return this.element(t,e,i)},t.prototype.n=function(t,e,i){return this.node(t,e,i)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(t){return this.importDocument(t)},t.prototype.replaceChild=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(t,e){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(t){var i,n;return i=this,i===t?0:this.document()!==t.document()?(n=e.Disconnected|e.ImplementationSpecific,n|=Math.random()<.5?e.Preceding:e.Following):i.isAncestor(t)?e.Contains|e.Preceding:i.isDescendant(t)?e.Contains|e.Following:i.isPreceding(t)?e.Preceding:e.Following},t.prototype.isSameNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(t){var e,i,n;if(t.nodeType!==this.nodeType)return!1;if(t.children.length!==this.children.length)return!1;for(e=i=0,n=this.children.length-1;0<=n?i<=n:i>=n;e=0<=n?++i:--i)if(!this.children[e].isEqualNode(t.children[e]))return!1;return!0},t.prototype.getFeature=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(t,e,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(t){return!!t&&(t===this||this.isDescendant(t))},t.prototype.isDescendant=function(t){var e,i,n,r,o;for(o=this.children,n=0,r=o.length;ni},t.prototype.treePosition=function(t){var e,i;return i=0,e=!1,this.foreachTreeNode(this.document(),function(n){if(i++,!e&&n===t)return e=!0}),e?i:-1},t.prototype.foreachTreeNode=function(t,e){var i,n,r,o,s;for(t||(t=this.document()),o=t.children,n=0,r=o.length;n>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var o=0;o>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,n=[],r=function(e){var e=e,i=987654321,n=4294967295;return function(){i=36969*(65535&i)+(i>>16)&n,e=18e3*(65535&e)+(e>>16)&n;var r=(i<<16)+e&n;return r/=4294967296,r+=.5,r*(t.random()>.5?1:-1)}},o=0;o>>2]>>>24-r%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new s.init(i,e/2)}},u=a.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new s.init(i,e)}},c=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},l=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,n=i.words,r=i.sigBytes,o=this.blockSize,a=4*o,h=r/a;h=e?t.ceil(h):t.max((0|h)-this._minBufferSize,0);var u=h*o,c=t.min(4*u,r);if(u){for(var l=0;l1)for(var i=1;i]=?|/)[0];return p[r]?p[r](t,n):t==n||n!==n}function o(t){var e=c.call(t),i=e.length;return 1===i&&h.array(e[0])&&(e=e[0]),e}function s(t,e){h[t]=function(i){return e[t].test(i)}}function a(){var n=h;for(var r in n)if(l.call(n,r)&&h.function(n[r]))for(var o=n[r].api||["not","all","any"],s=0;s":function(t,e){return t>e},">=":function(t,e){return t>=e}};h.arguments=function(t){return"[object Arguments]"===u.call(t)||null!=t&&"object"==typeof t&&"callee"in t},h.array=Array.isArray||function(t){return"[object Array]"===u.call(t)},h.boolean=function(t){return t===!0||t===!1||"[object Boolean]"===u.call(t)},h.char=function(t){return h.string(t)&&1===t.length},h.date=function(t){return"[object Date]"===u.call(t)},h.domNode=function(t){return h.object(t)&&t.nodeType>0},h.error=function(t){return"[object Error]"===u.call(t)},h.function=function(t){return"[object Function]"===u.call(t)||"function"==typeof t},h.json=function(t){return"[object Object]"===u.call(t)},h.nan=function(t){return t!==t},h.null=function(t){return null===t},h.number=function(t){return h.not.nan(t)&&"[object Number]"===u.call(t)},h.object=function(t){return Object(t)===t},h.regexp=function(t){return"[object RegExp]"===u.call(t)},h.sameType=function(t,e){var i=u.call(t);return i===u.call(e)&&("[object Number]"!==i||!h.any.nan(t,e)||h.all.nan(t,e))},h.sameType.api=["not"],h.string=function(t){return"[object String]"===u.call(t)},h.undefined=function(t){return void 0===t},h.windowObject=function(t){return null!=t&&"object"==typeof t&&"setInterval"in t},h.empty=function(t){if(h.object(t)){var e=Object.getOwnPropertyNames(t).length;return!!(0===e||1===e&&h.array(t)||2===e&&h.arguments(t))}return""===t},h.existy=function(t){return null!=t},h.falsy=function(t){return!t},h.truthy=t(h.falsy),h.above=function(t,e){return h.all.number(t,e)&&t>e},h.above.api=["not"],h.decimal=function(t){return h.number(t)&&t%1!==0},h.equal=function(t,e){return h.all.number(t,e)?t===e&&1/t===1/e:h.all.string(t,e)||h.all.regexp(t,e)?""+t==""+e:!!h.all.boolean(t,e)&&t===e},h.equal.api=["not"],h.even=function(t){return h.number(t)&&t%2===0},h.finite=isFinite||function(t){return h.not.infinite(t)&&h.not.nan(t)},h.infinite=function(t){return t===1/0||t===-(1/0)},h.integer=function(t){return h.number(t)&&t%1===0},h.negative=function(t){return h.number(t)&&t<0},h.odd=function(t){return h.number(t)&&t%2===1},h.positive=function(t){return h.number(t)&&t>0},h.under=function(t,e){return h.all.number(t,e)&&te&&t=0&&t.indexOf(e,i)===i},h.endWith.api=["not"],h.include=function(t,e){return t.indexOf(e)>-1},h.include.api=["not"],h.lowerCase=function(t){return h.string(t)&&t===t.toLowerCase()},h.palindrome=function(t){if(h.not.string(t))return!1;t=t.replace(/[^a-zA-Z0-9]+/g,"").toLowerCase();for(var e=t.length-1,i=0,n=Math.floor(e/2);i<=n;i++)if(t.charAt(i)!==t.charAt(e-i))return!1;return!0},h.space=function(t){if(h.not.char(t))return!1;var e=t.charCodeAt(0);return e>8&&e<14||32===e},h.startWith=function(t,e){return h.string(t)&&0===t.indexOf(e)},h.startWith.api=["not"],h.upperCase=function(t){return h.string(t)&&t===t.toUpperCase()};var g=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],v=["january","february","march","april","may","june","july","august","september","october","november","december"];h.day=function(t,e){return h.date(t)&&e.toLowerCase()===g[t.getDay()]},h.day.api=["not"],h.dayLightSavingTime=function(t){var e=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),6,1),n=Math.max(e.getTimezoneOffset(),i.getTimezoneOffset());return t.getTimezoneOffset()e.getTime()},h.inDateRange=function(t,e,i){if(h.not.date(t)||h.not.date(e)||h.not.date(i))return!1;var n=t.getTime();return n>e.getTime()&&ne)return!1;return i===e},h.propertyCount.api=["not"],h.propertyDefined=function(t,e){return h.object(t)&&h.string(e)&&e in t},h.propertyDefined.api=["not"],h.inArray=function(t,e){if(h.not.array(e))return!1;for(var i=0;i="],n=1;n=0||"MacIntel"===window.navigator.platform&&window.navigator.userAgent.indexOf("Safari")!==-1&&window.navigator.userAgent.indexOf("Chrome")===-1&&void 0!==window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>0,!e&&t}},function(t,e){var i=function(){"use strict";return void 0===this}();if(i)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:i,propertyIsWritable:function(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!(i&&!i.writable&&!i.set)}};else{var n={}.hasOwnProperty,r={}.toString,o={}.constructor.prototype,s=function(t){var e=[];for(var i in t)n.call(t,i)&&e.push(i);return e},a=function(t,e){return{value:t[e]}},h=function(t,e,i){return t[e]=i.value,t},u=function(t){return t},c=function(t){try{return Object(t).constructor.prototype}catch(t){return o}},l=function(t){try{return"[object Array]"===r.call(t)}catch(t){return!1}};t.exports={isArray:l,keys:s,names:s,defineProperty:h,getDescriptor:a,freeze:u,getPrototypeOf:c,isES5:i,propertyIsWritable:function(){return!0}}}},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),s.alloc(+t)}function m(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(n)return Y(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return $(this,e,i);case"utf8":case"utf-8":return E(this,e,i);case"ascii":return I(this,e,i);case"latin1":case"binary":return L(this,e,i);case"base64":return k(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function b(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:w(t,e,i,n,r);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):w(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function w(t,e,i,n,r){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,h=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,h/=2,i/=2}var u;if(r){var c=-1;for(u=i;ua&&(i=a-h),u=i;u>=0;u--){for(var l=!0,p=0;pr&&(n=r)):n=r;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(r+a<=i){var h,u,c,l;switch(a){case 1:o<128&&(s=o);break;case 2:h=t[r+1],128===(192&h)&&(l=(31&o)<<6|63&h,l>127&&(s=l));break;case 3:h=t[r+1],u=t[r+2],128===(192&h)&&128===(192&u)&&(l=(15&o)<<12|(63&h)<<6|63&u,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:h=t[r+1],u=t[r+2],c=t[r+3],128===(192&h)&&128===(192&u)&&128===(192&c)&&(l=(15&o)<<18|(63&h)<<12|(63&u)<<6|63&c,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),r+=a}return D(n)}function D(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var i="",n=0;nn)&&(i=n);for(var r="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,i,n,r,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function M(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function F(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r>>8*(n?r:3-r)&255}function N(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function B(t,e,i,n,r){return r||N(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(t,e,i,n,23,4),i+4}function H(t,e,i,n,r){return r||N(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(t,e,i,n,52,8),i+8}function U(t){if(t=z(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){e=e||1/0;for(var i,n=t.length,r=null,o=[],s=0;s55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=(r-55296<<10|i-56320)+65536}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function V(t){for(var e=[],i=0;i>8,r=i%256,o.push(r),o.push(n);return o}function q(t){return Q.toByteArray(U(t))}function G(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function Z(t){return t!==t}var Q=i(126),J=i(165),K=i(70);e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:n(),e.kMaxLength=r(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,e,i){return a(null,t,e,i)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,e,i){return u(null,t,e,i)},s.allocUnsafe=function(t){return c(null,t)},s.allocUnsafeSlow=function(t){return c(null,t)},s.isBuffer=function(t){return!(null==t||!t._isBuffer)},s.compare=function(t,e){if(!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},s.prototype.compare=function(t,e,i,n,r){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,a=i-e,h=Math.min(o,a),u=this.slice(n,r),c=t.slice(e,i),l=0;lr)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,e,i);case"utf8":case"utf-8":return x(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return C(this,t,e,i);case"base64":return P(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;s.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e0&&(r*=256);)n+=this[t+--e]*r;return n},s.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||R(t,e,this.length);for(var n=this[t],r=1,o=0;++o=r&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||R(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},s.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},s.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),J.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),J.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),J.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),J.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){var r=Math.pow(2,8*i)-1;j(this,t,e,i,r,0)}var o=1,s=0;for(this[e]=255&t;++s=0&&(s*=256);)this[e+o]=t/s&255;return e+i},s.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);j(this,t,e,i,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+i},s.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);j(this,t,e,i,r-1,-r)}var o=i-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+i},s.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,i){return B(this,t,e,!0,i)},s.prototype.writeFloatBE=function(t,e,i){return B(this,t,e,!1,i)},s.prototype.writeDoubleLE=function(t,e,i){return H(this,t,e,!0,i)},s.prototype.writeDoubleBE=function(t,e,i){return H(this,t,e,!1,i)},s.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var o;if("number"==typeof t)for(o=e;o0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(t,e){function i(){this.removeListener(t,i),r||(r=!0,e.apply(this,arguments))}if(!n(e))throw TypeError("listener must be a function");var r=!1;return i.listener=e,this.on(t,i),this},i.prototype.removeListener=function(t,e){var i,r,s,a;if(!n(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=this._events[t],s=i.length,r=-1,i===e||n(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(i)){for(a=s;a-- >0;)if(i[a]===e||i[a].listener&&i[a].listener===e){r=a;break}if(r<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[t],n(i))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},i.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?n(this._events[t])?[this._events[t]]:this._events[t].slice():[]},i.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(n(e))return 1;if(e)return e.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,i){var n;/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */ !function(r,o,s,a){"use strict";function h(t,e,i){return setTimeout(f(t,i),e)}function u(t,e,i){return!!Array.isArray(t)&&(c(t,i[e],i),!0)}function c(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,n,i),t.apply(this,arguments)}}function p(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&>(n,i)}function f(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==_t?t.apply(e?e[0]||a:a,e):t}function g(t,e){return t===a?e:t}function v(t,e,i){c(b(e),function(e){t.addEventListener(e,i,!1)})}function m(t,e,i){c(b(e),function(e){t.removeEventListener(e,i,!1)})}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function y(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function w(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]}):n.sort()),n}function S(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;o1&&!i.firstMultiple?i.firstMultiple=$(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,h=e.center=O(n);e.timeStamp=wt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=F(a,h),e.distance=M(a,h),I(i,e),e.offsetDirection=j(e.deltaX,e.deltaY);var u=R(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=bt(u.x)>bt(u.y)?u.x:u.y,e.scale=s?B(s.pointers,n):1,e.rotation=s?N(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,L(i,e);var c=t.element;_(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function I(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Ot&&o.eventType!==jt||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function L(t,e){var i,n,r,o,s=t.lastInterval||e,h=e.timeStamp-s.timeStamp;if(e.eventType!=Mt&&(h>$t||s.velocity===a)){var u=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,l=R(h,u,c);n=l.x,r=l.y,i=bt(l.x)>bt(l.y)?l.x:l.y,o=j(u,c),t.lastInterval=e}else i=s.velocity,n=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}function $(t){for(var e=[],i=0;i=bt(e)?t<0?Nt:Bt:e<0?Ht:Ut}function M(t,e,i){i||(i=Vt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function F(t,e,i){i||(i=Vt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function N(t,e){return F(e[1],e[0],Xt)+F(t[1],t[0],Xt)}function B(t,e){return M(e[0],e[1],Xt)/M(t[0],t[1],Xt)}function H(){this.evEl=Gt,this.evWin=Zt,this.pressed=!1,T.apply(this,arguments)}function U(){this.evEl=Kt,this.evWin=te,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function z(){this.evTarget=ie,this.evWin=ne,this.started=!1,T.apply(this,arguments)}function W(t,e){var i=A(t.touches),n=A(t.changedTouches);return e&(jt|Mt)&&(i=x(i.concat(n),"identifier",!0)),[i,n]}function Y(){this.evTarget=oe,this.targetIds={},T.apply(this,arguments)}function V(t,e){var i=A(t.touches),n=this.targetIds;if(e&(Ot|Rt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,s=A(t.changedTouches),a=[],h=this.target;if(o=i.filter(function(t){return _(t.target,h)}),e===Ot)for(r=0;r-1&&n.splice(t,1)};setTimeout(r,se)}}function Z(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;n=be&&e(i.options.event+et(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=xe)},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return rt.prototype.attrTest.call(this,t)&&(this.state&_e||!(this.state&_e)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=it(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p(st,rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[fe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&_e)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(at,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[le]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(jt|Mt)&&!r)this.reset();else if(t.eventType&Ot)this.reset(),this._timer=h(function(){this.state=we,this.tryEmit()},e.time,this);else if(t.eventType&jt)return we;return xe},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===we&&(t&&t.eventType&jt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=wt(),this.manager.emit(this.options.event,this._input)))}}),p(ht,rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[fe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&_e)}}),p(ut,rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:zt|Wt,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(zt|Wt)?e=t.overallVelocity:i&zt?e=t.overallVelocityX:i&Wt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&jt},emit:function(t){var e=it(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(ct,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pe]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance=i.width&&(m.push(f.substr(0,f.length-1)),f=o);m.push(f)}for(d=[],g=[],u=0,p=m.length;u>>2];t.sigBytes-=e}},m=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:v}),reset:function(){l.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=i.createEncryptor;else{var n=i.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,e&&e.words):(this._mode=n.call(i,this,e&&e.words),this._mode.__creator=n)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{var e=this._process(!0);t.unpad(e)}return e},blockSize:4}),n.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),_=i.format={},y=_.OpenSSL={stringify:function(t){var e=t.ciphertext,i=t.salt;if(i)var n=o.create([1398893684,1701076831]).concat(i).concat(e);else var n=e;return n.toString(h)},parse:function(t){var e=h.parse(t),i=e.words;if(1398893684==i[0]&&1701076831==i[1]){var n=o.create(i.slice(2,4));i.splice(0,4),e.sigBytes-=16}return m.create({ciphertext:e,salt:n})}},b=n.SerializableCipher=r.extend({cfg:r.extend({format:y}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var r=t.createEncryptor(i,n),o=r.finalize(e),s=r.cfg;return m.create({ciphertext:o,key:i,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var r=t.createDecryptor(i,n).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),w=i.kdf={},A=w.OpenSSL={execute:function(t,e,i,n){n||(n=o.random(8));var r=c.create({keySize:e+i}).compute(t,n),s=o.create(r.words.slice(e),4*i);return r.sigBytes=4*e,m.create({key:r,iv:s,salt:n})}},x=n.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:A}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var r=n.kdf.execute(i,t.keySize,t.ivSize);n.iv=r.iv;var o=b.encrypt.call(this,t,e,r.key,n);return o.mixIn(r),o},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var r=n.kdf.execute(i,t.keySize,t.ivSize,e.salt);n.iv=r.iv;var o=b.decrypt.call(this,t,e,r.key,n);return o}})}()})},function(t,e,i){(function(e,n,r){"use strict";function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){T(e,t)}}function s(t){return O.from(t)}function a(t){return O.isBuffer(t)||t instanceof R}function h(){}function u(t,e){E=E||i(11),t=t||{}; var n=e instanceof E;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,s=t.writableHighWaterMark,a=this.objectMode?16:16384;r||0===r?this.highWaterMark=r:n&&(s||0===s)?this.highWaterMark=s:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=t.decodeStrings===!1;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){_(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function c(t){return E=E||i(11),M.call(c,this)||this instanceof E?(this._writableState=new u(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),void $.call(this)):new c(t)}function l(t,e){var i=new Error("write after end");t.emit("error",i),k.nextTick(e,i)}function p(t,e,i,n){var r=!0,o=!1;return null===i?o=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),k.nextTick(n,o),r=!1),r}function f(t,e,i){return t.objectMode||t.decodeStrings===!1||"string"!=typeof e||(e=O.from(e,i)),e}function d(t,e,i,n,r,o){if(!i){var s=f(e,n,r);n!==s&&(i=!0,r="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var h=e.length-1?n:k.nextTick;c.WritableState=u;var I=Object.create(i(19));I.inherits=i(16);var L={deprecate:i(176)},$=i(74),O=i(26).Buffer,R=r.Uint8Array||function(){},j=i(73);I.inherits(c,$),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:L.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var M;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!M.call(this,t)||this===c&&t&&t._writableState instanceof u}})):M=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,i){var n=this._writableState,r=!1,o=!n.objectMode&&a(t);return o&&!O.isBuffer(t)&&(t=s(t)),"function"==typeof e&&(i=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof i&&(i=h),n.ended?l(this,i):(o||p(this,n,t,i))&&(n.pendingcb++,r=d(this,n,o,t,e,i)),r},c.prototype.cork=function(){var t=this._writableState;t.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(t,e,i){i(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,i){var n=this._writableState;"function"==typeof t?(i=t,t=null,e=null):"function"==typeof e&&(i=e,e=null),null!==t&&void 0!==t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||P(this,n,i)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=j.destroy,c.prototype._undestroy=j.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,i(7),i(37).setImmediate,function(){return this}())},function(t,e,i){e=t.exports=i(71),e.Stream=e,e.Readable=e,e.Writable=i(35),e.Duplex=i(11),e.Transform=i(72),e.PassThrough=i(167)},function(t,e,i){(function(t){function n(t,e){this._id=t,this._clearFn=e}var r="undefined"!=typeof t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new n(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new n(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i(173),e.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(e,function(){return this}())},function(t,e){function i(t){this.state=o,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}var n=0,r=1,o=2;i.reject=function(t){return new i(function(e,i){i(t)})},i.resolve=function(t){return new i(function(e,i){e(t)})},i.all=function(t){return new i(function(e,i){function n(i){return function(n){o[i]=n,r+=1,r===t.length&&e(o)}}var r=0,o=[];0===t.length&&e(o);for(var s=0;s=r;e=0<=r?++n:--n)if(!this.attribs[e].isEqualNode(t.attribs[e]))return!1;return!0},i}(s)}).call(this)},function(t,e){(function(){var e;t.exports=e=function(){function t(t){this.nodes=t}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(t){return this.nodes[t]},t.prototype.setNamedItem=function(t){var e;return e=this.nodes[t.nodeName],this.nodes[t.nodeName]=t,e||null},t.prototype.removeNamedItem=function(t){var e;return e=this.nodes[t],delete this.nodes[t],e||null},t.prototype.item=function(t){return this.nodes[Object.keys(this.nodes)[t]]||null},t.prototype.getNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(t){throw new Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},function(t,e,i){(function(){var e,n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;e=i(2),n=i(29),t.exports=r=function(t){function i(t,n,r){if(i.__super__.constructor.call(this,t),null==n)throw new Error("Missing instruction target. "+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,r&&(this.value=this.stringify.insValue(r))}return o(i,t),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return!!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.target===this.target},i}(n)}).call(this)},function(t,e,i){(function(){var e,n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;e=i(2),n=i(5),t.exports=r=function(t){function i(t,n){if(i.__super__.constructor.call(this,t),null==n)throw new Error("Missing raw text. "+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(n)}return o(i,t),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}(n)}).call(this)},function(t,e,i){(function(){var e,n,r=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=i(83),t.exports=e=function(t){function e(t){e.__super__.constructor.call(this,t)}return r(e,t),e.prototype.document=function(t,e){var i,n,r,o,s;for(e=this.filterOptions(e),o="",s=t.children,n=0,r=s.length;nt.right||e.rightt.bottom||e.bottomi)},t.createRect=function(t,i,n,r){return new e(t,i,n,r)},t.intersectRect=function(t,i){var n,r,o,s;return r=Math.max(t.left,i.left),o=Math.min(t.right,i.right),n=Math.min(t.bottom,i.bottom),s=Math.max(t.top,i.top),new e(r,s,o,n)},t.ratioRect=function(t,e){var i,n;return i=(t.right-t.left)*(t.bottom-t.top),n=(e.right-e.left)*(e.bottom-e.top),n/i},t}(),t.exports=n}).call(this)},function(t,e){(function(){var e;e=function(){function t(){}return t.type=function(){var t,e,i,n,r;for(t={},r="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),i=0,n=r.length;i0;case g.SLIDE:return!this.$parent.isFlipping&&this.page===(null!=(n=this.$root)?n.slideViewNum:void 0)+1&&this.page>0}}catch(e){return t=e,!1}},isActivePageAndZoomingLayer2:function(){var t,i;return t=r.getDeviceRatio(),i=1,m()&&(i=.8),this.isActivePage&&this.$root.maxMagnification>=2&&this.$parent.isZooming===!1&&this.$parent.isFlipping===!1&&this.$root.scale>e.round(i/t,2)&&!this.isActivePageAndZoomingLayer4&&!this.isActivePageAndZoomingLayer8},isActivePageAndZoomingLayer4:function(){var t;return t=r.getDeviceRatio(),this.isActivePage&&this.$root.maxMagnification>=4&&this.$parent.isZooming===!1&&this.$parent.isFlipping===!1&&this.$root.scale>e.round(2/t,2)&&!this.isActivePageAndZoomingLayer8},isActivePageAndZoomingLayer8:function(){var t;return t=r.getDeviceRatio(),this.isActivePage&&this.$root.maxMagnification>=8&&this.$parent.isZooming===!1&&this.$parent.isFlipping===!1&&this.$root.scale>e.round(4/t,2)},getLeftPageShadow:function(){return this.page>0&&this.page<=this.$root.pageTotal?this.leftPageShadow:""},getRightPageShadow:function(){return this.page>0&&this.page<=this.$root.pageTotal?this.rightPageShadow:""},isLeftPage:function(){return!(this.page<1||this.page>this.$root.pageTotal||("r2l"===this.$root.bookDirection?(this.page+this.$root.startPageSetting)%2!==1:(this.page+this.$root.startPageSetting)%2!==0))},isRightPage:function(){return!(this.page<1||this.page>this.$root.pageTotal||this.isLeftPage)},isLeftPageVisibility:function(){return this.isLeftPage?"visible":"hidden"},isRightPageVisibility:function(){return this.isRightPage?"visible":"hidden"},nombre:function(){return this.$root.labelArray[this.page-1]},isCheckMark:function(){return"1"===this.$root.scormCheckPageArray[this.page-1]},isPageShadowVisible:function(){switch(this.$root.view){case g.SLIDE:return!1;default:return this.$root.shadowDisplay}}},methods:{reloadTextPoint3:function(t){var e,i,n,r,o,s,a,h,u,p,f;if(this.$root.soTextSelect&&this.isActivePage){if(this.$parent.isFlipping)return;if(this.isTextpointLoaded){for(p=new c(this.$root.selectedAreaLeft,this.$root.selectedAreaTop,this.$root.selectedAreaRight,this.$root.selectedAreaBottom),r=new c(0,0,this.$root.pageWidth,this.$root.pageHeight),u=new c(this.$root.pageWidth,0,2*this.$root.pageWidth,this.$root.pageHeight),this.$root.view===g.SLIDE&&(this.isRightPage?this.$root.selectedAreaIsRightPage||(p=new c(this.$root.selectedAreaLeft+this.$root.pageWidth,this.$root.selectedAreaTop,this.$root.selectedAreaRight+this.$root.pageWidth,this.$root.selectedAreaBottom)):this.$root.selectedAreaIsRightPage&&(p=new c(this.$root.selectedAreaLeft-this.$root.pageWidth,this.$root.selectedAreaTop,this.$root.selectedAreaRight-this.$root.pageWidth,this.$root.selectedAreaBottom))),this.isRightPage?(this.$root.selectedRightPageString="",f=l.intersectRect(p,u),f.offset(this.$root.pageWidth*-1,0)):(this.$root.selectedLeftPageString="",f=l.intersectRect(p,r)),a=this.textPointArray,h=[],n=i=0,o=a.length;i"),C=C.replace(/"/g,'"'),C=C.replace(/'/g,"'"),y=this.$root.textPointWords,o=0,u=y.length;o=0;)r.push(A.index+T-g),T--;for(null===this.charCanvasStage&&(this.charCanvasStage=new createjs.Stage(this.$els.charCanvas)),a=0,l=r.length;a=e.round(2/u,2)){for(l=p.getSlicePositions(this.$root.pageWidth,this.$root.pageHeight,this.$root.sliceWidth,this.$root.sliceHeight,2),i=t=0,s=l.length;t=e.round(4/u,2)){for(f=p.getSlicePositions(this.$root.pageWidth,this.$root.pageHeight,this.$root.sliceWidth,this.$root.sliceHeight,4),i=n=0,a=f.length;n=e.round(8/u,2)){for(d=p.getSlicePositions(this.$root.pageWidth,this.$root.pageHeight,this.$root.sliceWidth,this.$root.sliceHeight,8),i=o=0,h=d.length;o0)for(s=0,u=i.length;s10&&(t.updateShape(h,"normal"),i.update(),clearInterval(h.pressIntervalID)),c=e.nativeEvent.pageX||e.nativeEvent.clientX||e.nativeEvent.x,l=e.nativeEvent.pageY||e.nativeEvent.clientY||e.nativeEvent.y,s=Math.abs(h.mouseDownNativeX-c),u=Math.abs(h.mouseDownNativeY-l),r=Math.sqrt(Math.pow(s,2)+Math.pow(u,2)),r>10)return h.disableClickEvent=!0}}(this)),h.addEventListener("pressup",function(t){return function(e){if(t.updateShape(h,"normal"),i.update(),clearInterval(h.pressIntervalID),!h.isDelaying&&t.isClickDelay)return t.isClickDelay&&(h.toggle=!h.toggle,t.updateShape(h,"normal"),i.update()),t.onClickShape(e)}}(this)),h.addEventListener("click",function(t){return function(e){return h.disableClickEvent?void(h.disableClickEvent=!1):t.isClickDelay?void 0:(h.toggle=!h.toggle,t.onClickShape(e))}}(this)),h.addEventListener("mouseover",function(t){return function(n){return"true"===h.link.useHandCursor[0]&&(document.body.style.cursor="pointer"),t.owner.$dispatch("linkMouseOver",n,e.body[0]),t.updateShape(n.target,"over"),i.update()}}(this)),h.addEventListener("mouseout",function(t){return function(e){return"true"===h.link.useHandCursor[0]&&(document.body.style.cursor=""),t.owner.$dispatch("linkMouseOut",e),t.updateShape(e.target,"normal"),i.update()}}(this)),h},t.onClickShape=function(t){var e,i,n,s,a;if(this.owner.isPanning!==!0&&!this.owner.isZooming){switch(t.target.link.linkTarget[0]){case"_blank":case"_self":t.target.link.linkUrl[0].length>0&&(0===t.target.link.linkUrl[0].indexOf("mailto:")?location.href=t.target.link.linkUrl[0]:"undefined"==typeof device?window.open(t.target.link.linkUrl[0],t.target.link.linkTarget[0]):(a=t.target.link.linkUrl[0],"phonegaptop"===a?location.href="../../index.html":"http://"===a.substr(0,7)||"https://"===a.substr(0,8)?window.open(a,"_system"):window.open(a,t.target.link.linkTarget[0])));break;case"gotoTargetPage":this.rt.gotoTargetPage(t.target.link.linkUrl[0]);break;case"flv":r.log("flv");break;case"mp3":"undefined"==typeof device?this.owner.$dispatch("onClickMp3",t):(a=this.bookPath+"mp3/"+t.target.link.linkUrl[0],s=cordova.InAppBrowser.open(a,"_blank","location=false"));break;case"mp4":"undefined"==typeof device?(n=t.target.link.linkUrl[0],window.open(this.bookPath+"html5movie.html?v="+encodeURIComponent(n)+"&c="+this.noCacheParam,"_blank")):(a=this.bookPath+"movie/"+t.target.link.linkUrl[0],s=cordova.InAppBrowser.open(a,"_blank","location=false"));break;case"extension":this.owner.$dispatch("onClickExtensionLink",t.target.link);try{onExtensionLinkAction(t.target.link)}catch(t){e=t}break;case"notUseTag":location.href=t.target.link.linkUrl[0];break;case"":break;default:t.target.link.linkTarget[0]}return"undefined"==typeof device?(i="p="+t.target.page+",id="+t.target.link.id+",target="+t.target.link.linkTarget[0]+",url="+t.target.link.linkUrl[0],o.send(o.ln,this.rt.bookID,i,1)):void 0}},t.updateBitmap=function(t,e){var i,n;return n=t.link,i="normal"===e?n.hitAlpha/100:n.roAlpha/100,t.alpha=i},t.updateShape=function(t,e){var i,r,o,s,a,h,u,c,l,p,f,d,g,v,m,_,y,b,w,A,x,S,C;switch(A=t.link.shape[0],f=t.link,r="normal"===e?null!=(v=f.hitColor)?v[0]:void 0:null!=(m=f.roColor)?m[0]:void 0,i="normal"===e?f.hitAlpha/100:f.roAlpha/100,"image"===A&&(d=f.id[0],g=t.isRightPage?"r":"l","normal"===e?(i=.01,this.updateImageRollOut(f,d,g)):(i=.01,this.updateImageRollOver(f,d,g))),"mousedown"===e&&(r=10066329,i=.5),t.graphics.clear(),h="normal"===e?"true"===String(null!=(_=f.activeLine)?_[0]:void 0):"true"===String(null!=(y=f.activeRoLine)?y[0]:void 0),p="normal"===e?f.lineThickness:f.roLineThickness,l="normal"===e?null!=(b=f.lineColor)?b[0]:void 0:null!=(w=f.roLineColor)?w[0]:void 0,c="normal"===e?f.lineAlpha/100:f.roLineAlpha/100,h&&(t.graphics.setStrokeStyle(p,2,2),t.graphics.beginStroke("rgba("+n.getR(l)+","+n.getG(l)+","+n.getB(l)+","+c+")")),a="true"===String(f.activeFill[0]),a===!1&&(i=.01),0===i&&(i=.01),t.graphics.beginFill("rgba("+n.getR(r)+","+n.getG(r)+","+n.getB(r)+","+i+")"),A){case"box":return t.graphics.drawRect(0,0,f.shapeWidth[0],f.shapeHeight[0]);case"oval":return t.graphics.drawEllipse(0,0,f.shapeWidth[0],f.shapeHeight[0]);case"polygon":for(t.graphics.moveTo(f.xArray[0],f.yArray[0]),S=f.xArray[0].split(","),C=f.yArray[0].split(","),s=o=0,u=S.length;o=0;)"fusen"===(null!=(n=this.linkStage.getChildAt(e))?n.name:void 0)&&(t=this.linkStage.getChildAt(e),t.visible=this.$root.memoLayerVisible),e--;return null!=(r=this.linkStage)?r.update():void 0},getAllFusenIds:function(){var t,e,i,n;for(n=[],t=(null!=(e=this.linkStage)?e.numChildren:void 0)-1;t>=0;)"fusen"===(null!=(i=this.linkStage.getChildAt(t))?i.name:void 0)&&n.push(this.linkStage.getChildAt(t).id),t--;return window.alert(n.toString()),n},clearAllFusen:function(){var t,e,i,n;for(t=(null!=(e=this.linkStage)?e.numChildren:void 0)-1;t>=0;)"fusen"===(null!=(i=this.linkStage.getChildAt(t))?i.name:void 0)&&this.linkStage.removeChildAt(t),t--;return null!=(n=this.linkStage)&&n.update(),this.createFusenDataArray("dummy","libraRemovePage")},peelFusen:function(t){var e,i,n,r,o;for(n=!1,i=(null!=(r=this.linkStage)?r.numChildren:void 0)-1;i>=0;)"fusen"===(null!=(o=this.linkStage.getChildAt(i))?o.name:void 0)&&(e=this.linkStage.getChildAt(i),e.id===t&&(n=!0,this.linkStage.removeChildAt(i),this.linkStage.update())),i--;return this.createFusenDataArray(t,"libraRemove"),n},updateFusen:function(t){var e,i,n,r,o,s,a,h;for(r=!1,n=(null!=(a=this.linkStage)?a.numChildren:void 0)-1,e="",s="";n>=0;){if("fusen"===(null!=(h=this.linkStage.getChildAt(n))?h.name:void 0)&&(i=this.linkStage.getChildAt(n),i.id===t.id)){for(o in t)switch(r=!0,o){case"text":i.changeText(t[o]);break;case"x":i.x=t[o];break;case"y":i.y=t[o];break;case"bgColor":i.changeBgColor(t[o])}this.linkStage.update(),e=i.accessType?i.accessType:"private",s=!!i.readOnly&&i.readOnly}n--}return this.createFusenDataArray(t.id,"libraUpdate",e,s),r},_shiftPastePosition:function(t){var e,i,n,r,o,s,a;for(a=[],e=i=0,r=null!=(o=this.linkStage)?o.numChildren:void 0;0<=r?i<=r:i>=r;e=0<=r?++i:--i)n=null!=(s=this.linkStage)?s.getChildAt(e):void 0,"fusen"===(null!=n?n.name:void 0)&&t.x===n.x&&t.y===n.y?(t.y+=5,a.push(this._shiftPastePosition(t))):a.push(void 0);return a},pasteFusen:function(t,i,n,s,a,u,c){var l,p,f,d,g,v,m;return null==t&&(t=null),null==i&&(i=""),null==n&&(n=null),null==s&&(s=null),null==a&&(a="#ffff99"),p=r.createFusen(a,t,u,c),p.changeText(i),p.changeBgColor(a),l=p.getChildByName("button"),d=this.global2PercentX(this.$root.componentCenterGlobal),g=this.global2PercentY(this.$root.componentMiddleGlobal),"carousel"===this.$options.name&&(p.x=n?n:e.floor(2*this.$root.pageWidth*d+50-this.$root.fusenWidth/2),p.y=s?s:e.floor(this.$root.pageHeight/2+50+g*this.$root.pageHeight-this.$root.fusenHeight/2)),"slide"===this.$options.name&&(p.x=n?n:e.floor(1*this.$root.pageWidth*d+50-this.$root.fusenWidth/2),p.y=s?s:e.floor(50+g*this.$root.pageHeight-this.$root.fusenHeight/2)),this._shiftPastePosition(p),f=!1,p.addEventListener("mousedown",function(t){return function(e){var i,n,r,s;if(f=!1,!t.isFusenDragging)return p.depthCounter=t.fusenDepthCounter,t.fusenDepthCounter++,n=function(t,e){return"fusen"===t.name&&"fusen"===e.name?t.depthCounter>e.depthCounter?1:t.depthCounter10&&clearInterval(t.fusenOnPressIntervalID),null!=(o=t.linkStage)?o.update():void 0}}(this)),p.addEventListener("pressup",function(t){return function(e){var i,n,r;if(t.fusenDraggingId===p.id)return clearInterval(t.fusenOnPressIntervalID),null!=(r=t.linkStage)&&r.update(),p.f&&(t.$root.editingFusen=p.f,p.f=null),setTimeout(function(){var e;return t.isFusenDragging=!1,t.fusenDraggingId=null,p.setDeactive(),null!=(e=t.linkStage)?e.update():void 0},10),i=parseInt(e.stageX,10),n=parseInt(e.stageY,10),t.mouseDownX===i&&t.mouseDownY===n&&(f=!1),!t.$root.isOnLibra||f?t.createFusenDataArray(p.id,"libraUpdate",u,c):void 0}}(this)),l&&!c&&l.addEventListener("click",function(t){return function(e){var i,n;return i=new o(p.id,p.getText(),p.x,p.y,p.bgColor,"#000000",300,100),t.$root.editingFusen=i,t.isFusenDragging=!1,p.setDeactive(),null!=(n=t.linkStage)?n.update():void 0}}(this)),p.depthCounter=this.fusenDepthCounter,this.fusenDepthCounter++,p.visible=this.$root.memoLayerVisible,null!=(v=this.linkStage)&&v.addChildAt(p,this.linkStage.numChildren),null!=(m=this.linkStage)&&m.update(),null===t&&this.createFusenDataArray(p.id,"libraAdd"),p}},ready:function(){return n.log("FusenMixin Mixin")}},t.exports=s}).call(e,i(3))},function(t,e,i){(function(e){var n,r,o;o=i(33),n=i(4),r={methods:{sendLibraDebounce:e.debounce(function(){return this.sendLibra()},1e3),sendLibra:function(){if(this.$root.isOnLibra&&this.$root.libraAccessKey)return o.resolve(this.$root.saveLibraAndRemoveLocalStorage()).then(function(t){return function(){return n.log("保存成功")}}(this)).catch(function(t){return function(e){return n.log("保存に失敗"),o.resolve(t.$root.saveLibraAndRemoveLocalStorage()).then(function(){return n.log("リトライで保存成功")}).catch(function(t){return n.log("リトライでも保存失敗")})}}(this))},addLibra:function(t,e,i){var n,r,o,s,a,h,u,c;if(this.$root.isOnLibra){for(n=i?i:"private",h={access_type:n,position:e.pageId,type:t,data_id:e.id,data:e},s=!1,c=this.$root.unsaveLibraPenData,o=r=0,u=c.length;r=v;h=0<=v?++p:--p)for(l=f=0,m=c.width;0<=m?f<=m:f>=m;l=0<=m?++f:--f)r=c.data[h*(4*o.width)+4*l+3],r>0&&(c.data[h*(4*o.width)+4*l+3]-=255-w);for(e.imageDataRollOver=c,u=s.getImageData(0,0,o.width,o.height),h=d=0,_=u.height;0<=_?d<=_:d>=_;h=0<=_?++d:--d)for(l=g=0,y=u.width;0<=y?g<=y:g>=y;l=0<=y?++g:--g)r=u.data[h*(4*o.width)+4*l+3],r>0&&(u.data[h*(4*o.width)+4*l+3]-=255-b);return e.imageDataRollOut=u,s.putImageData(u,0,0)}catch(i){return t=i,n.log("errorimagelink-"+a+"-"+e.id[0])}},r=t.target||t.currentTarget||t.srcElement,s(r)})}}}(this)}},t.exports=r},function(t,e,i){(function(e){var n,r,o;r=i(164),n=i(4),o={ready:function(){var t,i;if(n.log("MouseWheel Mixin"),i=function(t){return function(e,i,n,r){var o,s;return o=e.pageX||e.originalEvent.pageX||e.originalEvent.clientX||e.originalEvent.x,s=e.pageY||e.originalEvent.pageY||e.originalEvent.clientY||e.originalEvent.y,i<0?t.$root.zoomout(o,s):t.$root.zoomin(o,s)}}(this),t=e.throttle(i,500,{trailing:!1}),"carousel"===this.$options.name&&r(this.$els.carousel).wheel(function(e){return function(i,n,r,o){if(Math.abs(n)>0)return t.apply(e,[i,n,r,o])}}(this)),"slide"===this.$options.name)return r(this.$els.slide).wheel(function(e){return function(i,n,r,o){if(Math.abs(n)>0)return t.apply(e,[i,n,r,o])}}(this))}},t.exports=o}).call(e,i(3))},function(t,e,i){(function(e){var n,r,o,s;n=i(4),r=i(31),s=i(56),o={data:function(){return{penDataArray:[],restoredLibraPenCarouselRPage:!1,restoredLibraPenCarouselLPage:!1,restoredLibraPenSlideCurrentPage:!1,isShiftPress:!1,straightLineDirection:null}},computed:{restoredLibraPenCarouselCurrentPage:function(){return this.$root.activeLeftPageId?this.$root.activeRightPageId?this.restoredLibraPenCarouselRPage&&this.restoredLibraPenCarouselLPage:this.restoredLibraPenCarouselLPage:this.restoredLibraPenCarouselRPage}},methods:{visibleAllPen:function(){var t,e;return t=this.linkStage.getChildByName("drawDisplayShape"),t.visible=this.$root.memoLayerVisible,null!=(e=this.linkStage)?e.update():void 0},penDataArray2Canvas:function(t,e){var i,r,o,s,a,h,u,c,l,p,f,d;if(this.isFlipping)return void n.log("書こうと思ったけどめくってたから止めた");for(f=this.penDataArray,o=0,h=f.length;oMath.abs(this.penStage.mouseY-this.oldPt.y)?(n.log(">>>最初の横方向"),this.straightLineDirection="horizontal",r=!0):(this.straightLineDirection="vertical",r=!1)}return this.drawingShape.graphics.clear(),this.isShiftPress?r?(this.newPt.x=Math.round(this.penStage.mouseX),this.newPt.y=Math.round(this.oldPt.y)):(this.newPt.y=Math.round(this.penStage.mouseY),this.newPt.x=Math.round(this.oldPt.x)):(this.newPt.x=Math.round(this.penStage.mouseX),this.newPt.y=Math.round(this.penStage.mouseY)),o=this.$root.tegakiFutosa,i=this.isTegakiIsElaser?this.$root.tegakiIroEraser:this.$root.tegakiIro,this.drawingShape.graphics.setStrokeStyle(o,"round","round").beginStroke(i).moveTo(this.oldPt.x,this.oldPt.y).lineTo(this.newPt.x,this.newPt.y),this.isShiftPress?r?this.oldPt.x=Math.round(this.penStage.mouseX):this.oldPt.y=Math.round(this.penStage.mouseY):(this.oldPt.x=Math.round(this.penStage.mouseX),this.oldPt.y=Math.round(this.penStage.mouseY)),e.last(this.penDataArray).points.push({x:this.newPt.x,y:this.newPt.y}),this.isTegakiIsElaser?this.drawingShape.updateCache("destination-out"):this.drawingShape.updateCache(1===this.$root.tegakiColorAlpha?"source-over":this.$root.tegakiCompositeOperation),this.penStage.update()}},created:function(){return this.isFlippingUnwatcherPen=this.$watch(function(){return this.isFlipping},function(t,e){if(t===!0)return this.restoredLibraPenCarouselRPage=!1,this.restoredLibraPenCarouselLPage=!1,this.restoredLibraPenSlideCurrentPage=!1})},ready:function(){return n.log("PenMixin Mixin")}},t.exports=o}).call(e,i(3))},function(t,e,i){"use strict";t.exports=function(t){function e(e,i,a){return function(h){var u=a._boundValue();t:for(var c=0;c>>6-s%4*2;n[o>>>2]|=(a|h)<<24-o%4*8,o++}return r.create(n,o)}var i=t,n=i.lib,r=n.WordArray,o=i.enc;o.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,n=this._map;t.clamp();for(var r=[],o=0;o>>2]>>>24-o%4*8&255,a=e[o+1>>>2]>>>24-(o+1)%4*8&255,h=e[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|a<<8|h,c=0;c<4&&o+.75*c>>6*(3-c)&63));var l=n.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(t){var i=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===M.prototype||(e=r(e)),n?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):c(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!i?(e=s.decoder.write(e),s.objectMode||0!==e.length?c(t,s,e,!1):_(t,s)):c(t,s,e,!1))):n||(s.reading=!1)}return p(s)}function c(t,e,i,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,n?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&v(t)),_(t,e)}function l(t,e){var i;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i}function p(t){return!t.ended&&(t.needReadable||t.length=V?t=V:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function d(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=f(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function g(t,e){if(!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(H("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?L.nextTick(m,t):m(t))}function m(t){H("emit readable"),t.emit("readable"),S(t)}function _(t,e){e.readingMore||(e.readingMore=!0,L.nextTick(y,t,e))}function y(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):i=P(t,e.buffer,e.decoder),i}function P(t,e,i){var n;return to.length?o.length:t;if(r+=s===o.length?o:o.slice(0,t),t-=s,0===t){s===o.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(s));break}++n}return e.length-=n,r}function k(t,e){var i=M.allocUnsafe(t),n=e.head,r=1;for(n.data.copy(i),t-=n.data.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),t-=s,0===t){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function E(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,L.nextTick(D,e,t))}function D(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function I(t,e){for(var i=0,n=t.length;i=e.highWaterMark||e.ended))return H("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?E(this):v(this),null;if(t=d(t,e),0===t&&e.ended)return 0===e.length&&E(this),null;var n=e.needReadable;H("need readable",n),(0===e.length||e.length-t0?C(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&E(this)),null!==r&&this.emit("data",r),r},h.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},h.prototype.pipe=function(t,e){function i(t,e){H("onunpipe"),t===p&&e&&e.hasUnpiped===!1&&(e.hasUnpiped=!0,o())}function r(){H("onend"),t.end()}function o(){H("cleanup"),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("drain",v),t.removeListener("error",h),t.removeListener("unpipe",i),p.removeListener("end",r),p.removeListener("end",l),p.removeListener("data",a),m=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function a(e){H("ondata"),_=!1;var i=t.write(e);!1!==i||_||((1===f.pipesCount&&f.pipes===t||f.pipesCount>1&&I(f.pipes,t)!==-1)&&!m&&(H("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,_=!0),p.pause())}function h(e){H("onerror",e),l(),t.removeListener("error",h),0===R(t,"error")&&t.emit("error",e)}function u(){t.removeListener("finish",c),l()}function c(){H("onfinish"),t.removeListener("close",u),l()}function l(){H("unpipe"),p.unpipe(t)}var p=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,H("pipe count=%d opts=%j",f.pipesCount,e);var d=(!e||e.end!==!1)&&t!==n.stdout&&t!==n.stderr,g=d?r:l;f.endEmitted?L.nextTick(g):p.once("end",g),t.on("unpipe",i);var v=b(p);t.on("drain",v);var m=!1,_=!1;return p.on("data",a),s(t,"error",h),t.once("close",u),t.once("finish",c),t.emit("pipe",p),f.flowing||(H("pipe resume"),p.resume()),t},h.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function a(t,e,i){var n=e.length-1;if(n=0?(r>0&&(t.lastNeed=r-1),r):--n=0?(r>0&&(t.lastNeed=r-2),r):--n=0?(r>0&&(2===r?r=0:t.lastNeed=r-3),r):0))}function h(t,e,i){if(128!==(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"�"}}function u(t){var e=this.lastTotal-this.lastNeed,i=h(this,t,e);return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){var i=a(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function d(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function m(t){return t&&t.length?this.write(t):""}var _=i(26).Buffer,y=_.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function m(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function _(t,e){for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function y(t){return null!==t&&"object"==typeof t}function b(t){return qi.call(t)===Gi}function w(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function A(t,e){var i,n,r,o,s,a=function a(){var h=Date.now()-o;h=0?i=setTimeout(a,e-h):(i=null,s=t.apply(r,n),i||(r=n=null))};return function(){return r=this,n=arguments,o=Date.now(),i||(i=setTimeout(a,e)),s}}function x(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function S(t){var e=function e(){if(!e.cancelled)return t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function C(t,e){return t==e||!(!y(t)||!y(e))&&JSON.stringify(t)===JSON.stringify(e)}function P(t){return/native code/.test(t.toString())}function T(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function k(){return gn.charCodeAt(_n+1)}function E(){return gn.charCodeAt(++_n)}function D(){return _n>=mn}function I(){for(;k()===In;)E()}function L(t){return t===Tn||t===kn}function $(t){return Ln[t]}function O(t,e){return $n[t]===e}function R(){for(var t,e=E();!D();)if(t=E(),t===Dn)E();else if(t===e)break}function j(t){for(var e=0,i=t;!D();)if(t=k(),L(t))R();else if(i===t&&e++,O(i,t)&&e--,E(),0===e)break}function M(){for(var t=_n;!D();)if(yn=k(),L(yn))R();else if($(yn))j(yn);else if(yn===En){if(E(),yn=k(),yn!==En){bn!==xn&&bn!==Pn||(bn=Sn);break}E()}else{if(yn===In&&(bn===Cn||bn===Pn)){I();break}bn===Sn&&(bn=Cn),E()}return gn.slice(t+1,_n)||null}function F(){for(var t=[];!D();)t.push(N());return t}function N(){var t,e={};return bn=Sn,e.name=M().trim(),bn=Pn,t=B(),t.length&&(e.args=t),e}function B(){for(var t=[];!D()&&bn!==Sn;){var e=M();if(!e)break;t.push(H(e))}return t}function H(t){if(An.test(t))return{value:u(t),dynamic:!1};var e=l(t),i=e===t;return{value:i?t:e,dynamic:i}}function U(t){var e=wn.get(t);if(e)return e;gn=t,vn={},mn=gn.length,_n=-1,yn="",bn=xn;var i;return gn.indexOf("|")<0?vn.expression=gn.trim():(vn.expression=M().trim(),i=F(),i.length&&(vn.filters=i)),wn.put(t,vn),vn}function z(t){return t.replace(Rn,"\\$&")}function W(){var t=z(zn.delimiters[0]),e=z(zn.delimiters[1]),i=z(zn.unsafeDelimiters[0]),n=z(zn.unsafeDelimiters[1]);Mn=new RegExp(i+"((?:.|\\n)+?)"+n+"|"+t+"((?:.|\\n)+?)"+e,"g"),Fn=new RegExp("^"+i+"((?:.|\\n)+?)"+n+"$"),jn=new T(1e3)}function Y(t){jn||W();var e=jn.get(t);if(e)return e;if(!Mn.test(t))return null;for(var i,n,r,o,s,a,h=[],u=Mn.lastIndex=0;i=Mn.exec(t);)n=i.index,n>u&&h.push({value:t.slice(u,n)}),r=Fn.test(i[0]),o=r?i[1]:i[2],s=o.charCodeAt(0),a=42===s,o=a?o.slice(1):o,h.push({tag:!0,value:o.trim(),html:r,oneTime:a}),u=n+i[0].length;return u1?t.map(function(t){return X(t,e)}).join("+"):X(t[0],e,!0)}function X(t,e,i){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':q(t.value,i):'"'+t.value+'"'}function q(t,e){if(Nn.test(t)){var i=U(t);return i.filters?"this._applyFilters("+i.expression+",null,"+JSON.stringify(i.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function G(t,e,i,n){J(t,1,function(){e.appendChild(t)},i,n)}function Z(t,e,i,n){J(t,1,function(){rt(t,e)},i,n)}function Q(t,e,i){J(t,-1,function(){st(t)},e,i)}function J(t,e,i,n,r){var o=t.__v_trans;if(!o||!o.hooks&&!an||!n._isCompiled||n.$parent&&!n.$parent._isCompiled)return i(),void(r&&r());var s=e>0?"enter":"leave";o[s](i,r)}function K(t){return"string"==typeof t&&(t=document.querySelector(t)),t}function tt(t){if(!t)return!1;var e=t.ownerDocument.documentElement,i=t.parentNode;return e===t||e===i||!(!i||1!==i.nodeType||!e.contains(i))}function et(t,e){var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i}function it(t,e){var i=et(t,":"+e);return null===i&&(i=et(t,"v-bind:"+e)),i}function nt(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function rt(t,e){e.parentNode.insertBefore(t,e)}function ot(t,e){e.nextSibling?rt(t,e.nextSibling):e.parentNode.appendChild(t)}function st(t){t.parentNode.removeChild(t)}function at(t,e){e.firstChild?rt(t,e.firstChild):e.appendChild(t)}function ht(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)}function ut(t,e,i,n){t.addEventListener(e,i,n)}function ct(t,e,i){t.removeEventListener(e,i)}function lt(t){var e=t.className;return"object"==typeof e&&(e=e.baseVal||""),e}function pt(t,e){nn&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function ft(t,e){if(t.classList)t.classList.add(e);else{var i=" "+lt(t)+" ";i.indexOf(" "+e+" ")<0&&pt(t,(i+e).trim())}}function dt(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+lt(t)+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");pt(t,i.trim())}t.className||t.removeAttribute("class")}function gt(t,e){var i,n;if(_t(t)&&xt(t.content)&&(t=t.content),t.hasChildNodes())for(vt(t),n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}function vt(t){for(var e;e=t.firstChild,mt(e);)t.removeChild(e);for(;e=t.lastChild,mt(e);)t.removeChild(e)}function mt(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function _t(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function yt(t,e){var i=zn.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__v_anchor=!0,i}function bt(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;i=h.length){for(var t=0;t=97&&e<=122||e>=65&&e<=90?"ident":e>=49&&e<=57?"number":"else"}function zt(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(s(e)?l(e):"*"+e)}function Wt(t){function e(){var e=t[c+1];if(l===dr&&"'"===e||l===gr&&'"'===e)return c++,n="\\"+e,f[or](),!0}var i,n,r,o,s,a,h,u=[],c=-1,l=ur,p=0,f=[];for(f[sr]=function(){void 0!==r&&(u.push(r),r=void 0)},f[or]=function(){void 0===r?r=n:r+=n},f[ar]=function(){f[or](),p++},f[hr]=function(){if(p>0)p--,l=fr,f[or]();else{if(p=0,r=zt(r),r===!1)return!1;f[sr]()}};null!=l;)if(c++,i=t[c],"\\"!==i||!e()){if(o=Ut(i),h=_r[l],s=h[o]||h.else||mr,s===mr)return;if(l=s[0],a=f[s[1]],a&&(n=s[2],n=void 0===n?i:n,a()===!1))return;if(l===vr)return u.raw=t,u}}function Yt(t){var e=rr.get(t);return e||(e=Wt(t),e&&rr.put(t,e)),e}function Vt(t,e){return ee(e).get(t)}function Xt(t,e,i){var r=t;if("string"==typeof e&&(e=Wt(e)),!e||!y(t))return!1;for(var o,s,a=0,h=e.length;a-1?i.replace(kr,Qt):i,e+"scope."+i)}function Qt(t,e){return Lr[e]}function Jt(t){Sr.test(t),Lr.length=0;var e=t.replace(Tr,Gt).replace(Cr,"");return e=(" "+e).replace(Dr,Zt).replace(kr,Qt),Kt(e)}function Kt(t){try{return new Function("scope","return "+t+";")}catch(t){return qt}}function te(t){var e=Yt(t);if(e)return function(t,i){Xt(t,e,i)}}function ee(t,e){t=t.trim();var i=br.get(t);if(i)return e&&!i.set&&(i.set=te(i.exp)),i;var n={exp:t};return n.get=ie(t)&&t.indexOf("[")<0?Kt("scope."+t):Jt(t),e&&(n.set=te(t)),br.put(t,n),n}function ie(t){return Er.test(t)&&!Ir.test(t)&&"Math."!==t.slice(0,5)}function ne(){Or.length=0,Rr.length=0,jr={},Mr={},Fr=!1}function re(){for(var t=!0;t;)t=!1,oe(Or),oe(Rr),Or.length?t=!0:(Ki&&zn.devtools&&Ki.emit("flush"),ne())}function oe(t){for(var e=0;e0){var s=o+(n?e:St(e));r=Jr.get(s),r||(r=Ze(i,t.$options,!0),Jr.put(s,r))}else r=Ze(i,t.$options,!0);this.linker=r}function Ae(t,e,i){var n=t.node.previousSibling;if(n){for(t=n.__v_frag;!(t&&t.forId===i&&t.inserted||n===e);){if(n=n.previousSibling,!n)return;t=n.__v_frag}return t}}function xe(t){for(var e=-1,i=new Array(Math.floor(t));++e47&&e<58?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&e<91)?e:bo[t]});return i=[].concat.apply([],i),function(e){if(i.indexOf(e.keyCode)>-1)return t.call(this,e)}}function Ee(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function De(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ie(t){return function(e){if(e.target===e.currentTarget)return t.call(this,e)}}function Le(t){if(Co[t])return Co[t];var e=$e(t);return Co[t]=Co[e]=e,e}function $e(t){t=d(t);var e=p(t),i=e.charAt(0).toUpperCase()+e.slice(1);Po||(Po=document.createElement("div"));var n,r=Ao.length;if("filter"!==e&&e in Po.style)return{kebab:t,camel:e};for(;r--;)if(n=xo[r]+i,n in Po.style)return{kebab:Ao[r]+t,camel:n}}function Oe(t){var e=[];if(Zi(t))for(var i=0,n=t.length;i=r?i():t[o].call(e,n)}var r=t.length,o=0;t[0].call(e,n)}function Me(t,e,i){for(var n,r,o,a,h,u,c,l=[],f=i.$options.propsData,g=Object.keys(e),v=g.length;v--;)r=g[v],n=e[r]||Uo,h=p(r),zo.test(h)&&(c={name:r,path:h,options:n,mode:Ho.ONE_WAY,raw:null},o=d(r),null===(a=it(t,o))&&(null!==(a=it(t,o+".sync"))?c.mode=Ho.TWO_WAY:null!==(a=it(t,o+".once"))&&(c.mode=Ho.ONE_TIME)),null!==a?(c.raw=a,u=U(a),a=u.expression,c.filters=u.filters,s(a)&&!u.filters?c.optimizedLiteral=!0:c.dynamic=!0,c.parentPath=a):null!==(a=et(t,o))?c.raw=a:f&&null!==(a=f[r]||f[h])&&(c.raw=a),l.push(c));return Fe(l)}function Fe(t){return function(e,i){e._props={};for(var n,r,s,a,h,p=e.$options.propsData,f=t.length;f--;)if(n=t[f],h=n.raw,r=n.path,s=n.options,e._props[r]=n,p&&o(p,r)&&Be(e,n,p[r]),null===h)Be(e,n,void 0);else if(n.dynamic)n.mode===Ho.ONE_TIME?(a=(i||e._context||e).$get(n.parentPath),Be(e,n,a)):e._context?e._bindDir({name:"prop",def:Yo,prop:n},null,null,i):Be(e,n,e.$get(n.parentPath));else if(n.optimizedLiteral){var g=l(h);a=g===h?c(u(h)):g,Be(e,n,a)}else a=s.type===Boolean&&(""===h||h===d(n.name))||h,Be(e,n,a)}}function Ne(t,e,i,n){var r=e.dynamic&&ie(e.parentPath),o=i;void 0===o&&(o=Ue(t,e)),o=We(e,o,t);var s=o!==i;ze(e,o,t)||(o=void 0),r&&!s?Rt(function(){n(o)}):n(o)}function Be(t,e,i){Ne(t,e,i,function(i){Bt(t,e.path,i)})}function He(t,e,i){Ne(t,e,i,function(i){t[e.path]=i})}function Ue(t,e){var i=e.options;if(!o(i,"default"))return i.type!==Boolean&&void 0;var n=i.default;return y(n),"function"==typeof n&&i.type!==Function?n.call(t):n}function ze(t,e,i){if(!t.options.required&&(null===t.raw||null==e))return!0;var n=t.options,r=n.type,o=!r,s=[];if(r){Zi(r)||(r=[r]);for(var a=0;ae?-1:t===e?0:1}),e=0,i=a.length;ef.priority)&&(f=p,c=r.name,a=mi(r.name),s=r.value,u=h[1],l=h[2]));return f?gi(t,u,s,i,f,c,l,a):void 0}function di(){}function gi(t,e,i,n,r,o,s,a){var h=U(i),u={name:e,arg:s,expression:h.expression,filters:h.filters,raw:i,attr:o,modifiers:a,def:r};"for"!==e&&"router-view"!==e||(u.ref=bt(t));var c=function(t,e,i,n,r){u.ref&&Bt((n||t).$refs,u.ref,null),t._bindDir(u,e,i,n,r)};return c.terminal=!0,c}function vi(t,e){function i(t,e,i){var n=i&&yi(i),r=!n&&U(o);g.push({name:t,attr:s,raw:a,def:e,arg:u,modifiers:c,expression:r&&r.expression,filters:r&&r.filters,interp:i,hasOneTime:n})}for(var n,r,o,s,a,h,u,c,l,p,f,d=t.length,g=[];d--;)if(n=t[d],r=s=n.name,o=a=n.value,p=Y(o),u=null,c=mi(r),r=r.replace(ss,""),p)o=V(p),u=r,i("bind",Fo.bind,p);else if(as.test(r))c.literal=!ns.test(r),i("transition",is.transition);else if(rs.test(r))u=r.replace(rs,""),i("on",Fo.on);else if(ns.test(r))h=r.replace(ns,""),"style"===h||"class"===h?i(h,is[h]):(u=h,i("bind",Fo.bind));else if(f=r.match(os)){if(h=f[1],u=f[2],"else"===h)continue;l=$t(e,"directives",h,!0),l&&i(h,l)}if(g.length)return _i(g)}function mi(t){var e=Object.create(null),i=t.match(ss);if(i)for(var n=i.length;n--;)e[i[n].slice(1)]=!0;return e}function _i(t){return function(e,i,n,r,o){for(var s=t.length;s--;)e._bindDir(t[s],i,n,r,o)}}function yi(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function bi(t){return"SCRIPT"===t.tagName&&(!t.hasAttribute("type")||"text/javascript"===t.getAttribute("type"))}function wi(t,e){return e&&(e._containerAttrs=xi(t)),_t(t)&&(t=fe(t)),e&&(e._asComponent&&!e.template&&(e.template=""),e.template&&(e._content=gt(t),t=Ai(t,e))),xt(t)&&(at(yt("v-start",!0),t),t.appendChild(yt("v-end",!0))),t}function Ai(t,e){var i=e.template,n=fe(i,!0);if(n){var r=n.firstChild;if(!r)return n;var o=r.tagName&&r.tagName.toLowerCase();return e.replace?(t===document.body,n.childNodes.length>1||1!==r.nodeType||"component"===o||$t(e,"components",o)||nt(r,"is")||$t(e,"elementDirectives",o)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?n:(e._replacerAttrs=xi(r),Si(t,r),r)):(t.appendChild(n),t)}}function xi(t){if(1===t.nodeType&&t.hasAttributes())return m(t.attributes)}function Si(t,e){for(var i,n,r=t.attributes,o=r.length;o--;)i=r[o].name,n=r[o].value,e.hasAttribute(i)||cs.test(i)?"class"===i&&!Y(n)&&(n=n.trim())&&n.split(/\s+/).forEach(function(t){ft(e,t)}):e.setAttribute(i,n)}function Ci(t,e){if(e){for(var i,n,r=t._slotContents=Object.create(null),o=0,s=e.children.length;o1?m(i):i;var r=e&&i.some(function(t){return t._fromParent});r&&(n=!1);for(var o=m(arguments,1),s=0,a=i.length;se?o:-o}var i=null,n=void 0;t=ms(t);var r=m(arguments,1),o=r[r.length-1];"number"==typeof o?(o=o<0?-1:1,r=r.length>1?r.slice(0,-1):r):o=1;var s=r[0];return s?("function"==typeof s?i=function(t,e){return s(t,e)*o}:(n=Array.prototype.concat.apply([],r),i=function(t,r,o){return o=o||0,o>=n.length-1?e(t,r,o):e(t,r,o)||i(t,r,o+1)}),t.slice().sort(i)):t}function Hi(t,e){var i;if(b(t)){var n=Object.keys(t);for(i=n.length;i--;)if(Hi(t[n[i]],e))return!0}else if(Zi(t)){for(i=t.length;i--;)if(Hi(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function Ui(t){function e(t){return new Function("return function "+g(t)+" (options) { this._init(options) }")()}t.options={directives:Fo,elementDirectives:vs,filters:ys,transitions:{},components:{},partials:{},replace:!0},t.util=ir,t.config=zn,t.set=n,t.delete=r,t.nextTick=pn,t.compiler=ls,t.FragmentFactory=we,t.internalDirectives=is,t.parsers={path:yr,text:Bn,template:Zr,directive:On,expression:$r},t.cid=0;var i=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var o=t.name||n.options.name,s=e(o||"VueComponent");return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=i++,s.options=Lt(n.options,t),s.super=n,s.extend=n.extend,zn._assetTypes.forEach(function(t){s[t]=n[t]}),o&&(s.options.components[o]=s),r&&(t._Ctor=s),s},t.use=function(t){if(!t.installed){var e=m(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},t.mixin=function(e){t.options=Lt(t.options,e)},zn._assetTypes.forEach(function(e){t[e]=function(i,n){return n?("component"===e&&b(n)&&(n.name||(n.name=i),n=t.extend(n)),this.options[e+"s"][i]=n,n):this.options[e+"s"][i]}}),_(t.transition,Yn)}var zi=Object.prototype.hasOwnProperty,Wi=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Yi=/-(\w)/g,Vi=/([^-])([A-Z])/g,Xi=/(?:^|[-_\/])(\w)/g,qi=Object.prototype.toString,Gi="[object Object]",Zi=Array.isArray,Qi="__proto__"in{},Ji="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Ki=Ji&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,tn=Ji&&window.navigator.userAgent.toLowerCase(),en=tn&&tn.indexOf("trident")>0,nn=tn&&tn.indexOf("msie 9.0")>0,rn=tn&&tn.indexOf("android")>0,on=tn&&/iphone|ipad|ipod|ios/.test(tn),sn=void 0,an=void 0,hn=void 0,un=void 0;if(Ji&&!nn){var cn=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,ln=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;sn=cn?"WebkitTransition":"transition",an=cn?"webkitTransitionEnd":"transitionend",hn=ln?"WebkitAnimation":"animation",un=ln?"webkitAnimationEnd":"animationend"}var pn=function(){function t(){i=!1;var t=e.slice(0);e.length=0;for(var n=0;n=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),w(Jn,"$remove",function(t){if(this.length){var e=x(this,t);return e>-1?this.splice(e,1):void 0}});var tr=Object.getOwnPropertyNames(Kn),er=!0;jt.prototype.walk=function(t){for(var e=Object.keys(t),i=0,n=e.length;i",""],tr:[2,"","
"],col:[2,"","
"]};Wr.td=Wr.th=[3,"","
"],Wr.option=Wr.optgroup=[1,'"],Wr.thead=Wr.tbody=Wr.colgroup=Wr.caption=Wr.tfoot=[1,"","
"],Wr.g=Wr.defs=Wr.symbol=Wr.use=Wr.image=Wr.text=Wr.circle=Wr.ellipse=Wr.line=Wr.path=Wr.polygon=Wr.polyline=Wr.rect=[1,'',""];var Yr=/<([\w:-]+)/,Vr=/&#?\w+?;/,Xr=/"+this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.declaration=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i)+"",r+=this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.docType=function(t,e,i){var r,o,s,a,h;if(i||(i=0),this.openNode(t,e,i),e.state=n.OpenTag,a=this.indent(t,e,i),a+="0){for(a+=" [",a+=this.endline(t,e,i),e.state=n.InsideTag,h=t.children,o=0,s=h.length;o",a+=this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),a},t.prototype.element=function(t,i,r){var o,s,a,h,u,c,l,p,f,d,g,v,m,_;r||(r=0),d=!1,g="",this.openNode(t,i,r),i.state=n.OpenTag,g+=this.indent(t,i,r)+"<"+t.name,v=t.attribs;for(f in v)y.call(v,f)&&(o=v[f],g+=this.attribute(o,i,r));if(a=t.children.length,h=0===a?null:t.children[0],0===a||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw)&&""===t.value}))i.allowEmpty?(g+=">",i.state=n.CloseTag,g+=""+this.endline(t,i,r)):(i.state=n.CloseTag,g+=i.spaceBeforeSlash+"/>"+this.endline(t,i,r));else if(!i.pretty||1!==a||h.type!==e.Text&&h.type!==e.Raw||null==h.value){if(i.dontPrettyTextNodes)for(m=t.children,u=0,l=m.length;u"+this.endline(t,i,r),i.state=n.InsideTag,_=t.children,c=0,p=_.length;c",d&&i.suppressPrettyCount--,g+=this.endline(t,i,r),i.state=n.None}else g+=">",i.state=n.InsideTag,i.suppressPrettyCount++,d=!0,g+=this.writeChildNode(h,i,r+1),i.suppressPrettyCount--,d=!1,i.state=n.CloseTag,g+=""+this.endline(t,i,r);return this.closeNode(t,i,r),g},t.prototype.writeChildNode=function(t,i,n){switch(t.type){case e.CData:return this.cdata(t,i,n);case e.Comment:return this.comment(t,i,n);case e.Element:return this.element(t,i,n);case e.Raw:return this.raw(t,i,n);case e.Text:return this.text(t,i,n);case e.ProcessingInstruction:return this.processingInstruction(t,i,n);case e.Dummy:return"";case e.Declaration:return this.declaration(t,i,n);case e.DocType:return this.docType(t,i,n);case e.AttributeDeclaration:return this.dtdAttList(t,i,n);case e.ElementDeclaration:return this.dtdElement(t,i,n);case e.EntityDeclaration:return this.dtdEntity(t,i,n);case e.NotationDeclaration:return this.dtdNotation(t,i,n);default:throw new Error("Unknown XML node type: "+t.constructor.name)}},t.prototype.processingInstruction=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i)+"",r+=this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.raw=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i),e.state=n.InsideTag,r+=t.value,e.state=n.CloseTag,r+=this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.text=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i),e.state=n.InsideTag,r+=t.value,e.state=n.CloseTag,r+=this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.dtdAttList=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i)+""+this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.dtdElement=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i)+""+this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.dtdEntity=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i)+""+this.endline(t,e,i),e.state=n.None,this.closeNode(t,e,i),r},t.prototype.dtdNotation=function(t,e,i){var r;return this.openNode(t,e,i),e.state=n.OpenTag,r=this.indent(t,e,i)+""+this.endline(t,e,i), e.state=n.None,this.closeNode(t,e,i),r},t.prototype.openNode=function(t,e,i){},t.prototype.closeNode=function(t,e,i){},t.prototype.openAttribute=function(t,e,i){},t.prototype.closeAttribute=function(t,e,i){},t}()}).call(this)},function(t,e){(function(){var e;e=function(){function t(){}return t.CAROUSEL="carousel",t.ONESIDE="oneside",t.SLIDE="slide",t}(),t.exports=e}).call(this)},function(t,e){(function(){var e;e=function(){function t(){}return t.getR=function(t){return t>>16&255},t.getG=function(t){return t>>8&255},t.getB=function(t){return 255&t},t}(),t.exports=e}).call(this)},function(t,e,i){(function(e){(function(){var i;i=function(){function t(){}return t.getDeviceRatio=function(){return void 0===window.devicePixelRatio?1:e.round(e.min([window.devicePixelRatio,2]),2)},t.getMaxmagnification=function(t){return t},t}(),t.exports=i}).call(this)}).call(e,i(3))},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAABkCAYAAABOx/oaAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAc5pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgRmlyZXdvcmtzIENTNjwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KAHiqRgAAALVJREFUSA3tVNEOAxEQLFaOhA/z/58i8YC40nSFXC49Ce091MuyJmZ2DcQYs4UQhLVWeO9FSmmjj2ZQSvey7JK4vyyZ5bxYrxExxip6iSSlVCW4JglRJS6R1BLg/O5EY14ihOzfr2i1l5iUMveB8kwEMUbILw7OywSAznnnSDQBxj8SO/GOh4YUOx6SBTwrOealsdcxSyfn/E4G01p3cmaVWc5px6wrxjN/81k552q3Plc0yWBPgCcp955NgdAAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAABkCAYAAABOx/oaAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAABzmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBGaXJld29ya3MgQ1M2PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgprRCUgAAAAtElEQVRIDdVUSQ7DIAyEHDgg8Qn6BP7/KjhQsZVEMnKplGIpjloOMUETjzMeI51zD6VULKVErfVTCBG3/vhYxMNaq8Q5zj/vzAN9jlzP+R3ZWhusgL6PHRhxXGP33ss15J6bHZlSOmRkJwKlDiKawbq9R6tZ6pzLuUX5N0HgBSLLb0JyHNmJcs4Eg1lreaeD3UtYXNhvtMtqtiN7j0adsMHxb9lDCL/kJWMMYRD2Dlyh/OylFwE5MqOvS9KwAAAAAElFTkSuQmCC"},function(t,e){var i;i={data:{slideLastPage:0},methods:{flipR:function(){return this.$broadcast("flipR")},flipL:function(){return this.$broadcast("flipL")},flipRMax:function(){return"r2l"===this.$root.bookDirection?this.$broadcast("gotoTargetPage1",this.pageTotal):this.$broadcast("gotoTargetPage1",1)},flipLMax:function(){return"r2l"===this.$root.bookDirection?this.$broadcast("gotoTargetPage1",1):this.$broadcast("gotoTargetPage1",this.pageTotal)},zoomin:function(t,e){if(this.scaleIndex0)return this.$broadcast("zoomout",t,e),this.scaleIndex=this.scaleIndex-1},zoomAt:function(t){return this.$broadcast("zoomAt",t),this.scaleIndex=t},changeView:function(t){if(!this.isChirashi&&this.view!==t&&("slide"===this.view&&(this.slideLastPage=this.activePage),this.$broadcast("zoomAt",0),this.scaleIndex=0,this.view=t,"slide"===t&&(this.slideLastPage===this.activeLeftPage||this.slideLastPage===this.activeRightPage)&&this.slideLastPage>0))return Vue.nextTick(function(t){return function(){return t.gotoTargetPage(t.slideLastPage)}}(this))},gotoTargetPage:function(t,e){return null==e&&(e=!0),e?this.$broadcast("gotoTargetPage2",t):this.$broadcast("gotoTargetPage1",t)},gotoTargetPageId:function(t,e){var i,n;if(null==e&&(e=!0),n=this.dataArray.indexOf(String(t)),n>-1)return i=n+1,e?this.$broadcast("gotoTargetPage2",i):this.$broadcast("gotoTargetPage1",i)},gotoTargetLabel:function(t,e){var i,n,r,o,s,a;for(null==e&&(e=!0),a=0,s=this.labelArray,n=i=0,o=s.length;i0)return e?this.$broadcast("gotoTargetPage2",a):this.$broadcast("gotoTargetPage1",a)}}},t.exports=i},function(t,e){var i;i={data:{makerVersion:"0",makerPlan:"",makerGrade:""}}},function(t,e){var i;i={methods:{zoomAdjustW:function(){var t,e,i,n;for(i=Number(this.$root.scaleArray.length-1);(n=this.$root.scaleArray[i],t=1*this.$root.pageWidth,"carousel"===this.view&&(t*=2),e=t*n,!(e0||(this.$refs.view.peelFusen(t),0))},fusenUpdate:function(t){if(t.id)return this.$refs.view.updateFusen(t)},fusenClearCurrentPage:function(){return!(this.isOnLibra&&this.unsaveLibraPenData.length>0||(this.$refs.view.clearAllFusen(),"carousel"===this.view&&(r.remove(this.activeLeftPageId),r.remove(this.activeRightPageId),this.$root.isOnLibra&&(this.$refs.view.removePageLibra("fusens",this.activeLeftPageId),this.$refs.view.removePageLibra("fusens",this.activeRightPageId))),"slide"===this.view&&(r.remove(this.activePageId),this.$root.isOnLibra&&this.$refs.view.removePageLibra("fusens",this.activePageId)),0))}}},t.exports=n},function(t,e,i){var n,r;r=i(18),n={methods:{tegakiStart:function(){return this.memoLayerVisible||this.visibleMemoLayer(!0),this.$refs.view.isTegakiCanvasVisible=!0},tegakiEnd:function(){return this.$refs.view.isTegakiCanvasVisible=!1},tegakiColor:function(t,e,i,n){return this.tegakiColorR=t,this.tegakiColorG=e,this.tegakiColorB=i,this.tegakiColorAlpha=parseFloat(n)},tegakiThickness:function(t){return this.tegakiFutosa=t},tegakiPen:function(){return this.$refs.view.isTegakiIsElaser=!1},tegakiEraser:function(){return this.$refs.view.isTegakiIsElaser=!0},tegakiClearCurrentPage:function(){return!(this.isOnLibra&&this.unsaveLibraPenData.length>0||("carousel"===this.view&&(this.$refs.view.penDataArray=[],this.$root.isOnLibra&&(this.$refs.view.removePageLibra("pens",this.$root.activeLeftPageId),this.$refs.view.removePageLibra("pens",this.$root.activeRightPageId)),this.$refs.view.clearDrawingShape(),this.$refs.view.clearDrawDisplayShape(),r.remove(this.$root.activeLeftPageId),r.remove(this.$root.activeRightPageId)),"slide"===this.view&&(this.$refs.view.penDataArray=[],this.$root.isOnLibra&&this.$refs.view.removePageLibra("pens",this.$root.activePageId),this.$refs.view.clearDrawingShape(),this.$refs.view.clearDrawDisplayShape(),r.remove(this.$root.activePageId)),0))}}},t.exports=n},function(t,e){var i;i={data:{memoLayerVisible:!0},methods:{visibleMemoLayer:function(t){return this.memoLayerVisible=t,this.$refs.view.visibleAllFusen(),this.$refs.view.visibleAllPen()}}},t.exports=i},function(t,e,i){i(202),t.exports={template:i(118),props:["pos"],data:function(){return{bgColor:{backgroundColor:"#cccccc"},koguchisL:[],koguchisR:[],checkVisible:!1}},computed:{getLeft:function(){return"L"===this.pos?this.$root.componentCenter-this.$root.pageWidth:this.$root.componentCenter},checkKoguchi:function(){}},methods:{calcKoguchiArray:function(t,e){var i,n;return t=Math.min(5,t),e=Math.min(5,e),this.koguchisL=t>0?function(){i=[];for(var e=0;0<=t?e<=t:e>=t;0<=t?e++:e--)i.push(e);return i}.apply(this):[],this.koguchisR=e>0?function(){n=[];for(var t=0;0<=e?t<=e:t>=e;0<=e?t++:t--)n.push(t);return n}.apply(this):[]},updateKoguchi:function(t){var e,i;return i=this.$root.bookViewNum-1,e=this.$root.bookViewLength-1-this.$root.bookViewNum-1,t===!0?"r2l"===this.$root.bookDirection?this.$parent.isR2LFlip===!0?this.calcKoguchiArray(i,e-1):this.calcKoguchiArray(i-1,e):this.$parent.isR2LFlip===!0?this.calcKoguchiArray(e,i-1):this.calcKoguchiArray(e-1,i):"r2l"===this.$root.bookDirection?this.calcKoguchiArray(i,e):this.calcKoguchiArray(e,i)},updateShadow:function(t){var e;return null!=this.$parent.hyoujiindexl?t===!0?"L"===this.pos?this.$parent.isR2LFlip?this.checkVisible=this.$parent.carouselArray[this.$parent.hyoujiindexl]>0:this.checkVisible=this.$parent.carouselArray[this.$parent.underIndexL]>0:this.$parent.isR2LFlip?this.checkVisible=this.$parent.carouselArray[this.$parent.underIndexR]>0:this.checkVisible=this.$parent.carouselArray[this.$parent.hyoujiindexr]>0:"L"===this.pos?this.checkVisible=this.$parent.carouselArray[this.$parent.hyoujiindexl]>0:this.checkVisible=this.$parent.carouselArray[this.$parent.hyoujiindexr]>0:(e="R"===this.pos?this.$root.activeRightPage:this.$root.activeLeftPage,this.checkVisible=e>0&&e<=this.$root.pageTotal)}},created:function(){return this.isFlippingUnwatcher=this.$watch(function(){return this.$parent.isFlipping},function(t,e){return this.updateKoguchi(t)}),this.isFlippingUnwatcher2=this.$watch(function(){return this.$parent.isFlipping},function(t,e){return this.updateShadow(t)}),this.$watch(function(){return this.$root.bookViewNum},function(t,e){return this.updateShadow(this.$parent.isFlipping),this.updateKoguchi(this.$parent.isFlipping)})},ready:function(){return this.updateKoguchi(!1),this.updateShadow(!1)}}},function(t,e,i){var n;i(203),n=i(10),t.exports={template:i(119),props:["sliceindex","layerscale","page","item"],data:function(){return{debugStyle:{fontSize:"40px",color:"#ff9900",position:"absolute",top:"0px",left:"0px"}}},computed:{getTop:function(){return this.item.top+"px"},getLeft:function(){return this.item.left+"px"},getWidth:function(){return this.item.getWidth()+"px"},getHeight:function(){return this.item.getHeight()+"px"},g1:function(){return this.item.getWidth()},g2:function(){return this.item.getHeight()},getImageStyle:function(){var t,e,i,r,o;return i={},i.position="absolute",i.top="0px",i.left="0px",i.width="100%",i.height="100%",n.not.safari()&&(i.backfaceVisibility="hidden",i.transform="translateZ(0)"),n.chrome(">=68")&&n.mac()&&(e=.73,t=.5,o=(this.item.getWidth()+e)/this.item.getWidth(),r=(this.item.getHeight()+t)/this.item.getHeight(),i.transform="translateZ(0) scale("+o+", "+r+")"),i}}}},function(t,e,i){i(204),t.exports={template:i(120)}},function(t,e,i){(function(e){var n,r,o;o=i(33),n=i(4),r={data:function(){return{isOnLibra:!1,libraApiUrl:"http://kaneko-mba.local:8082/",libraAccessKey:null,libraHan:0,libraContentId:0,libraLoginUrl:"",unsaveLibraPenData:[],libraFusenListData:[],libraVersion:"",libraGetListApiName:""}},methods:{updateLibraFusenListData:function(t){var i;return i=e.findIndex(this.libraFusenListData,function(e){return function(e){return e.id===t.id}}(this)),i>-1?(n.log("付箋リストの中にあるので変更:"+t.id),this.libraFusenListData.splice(i,1),this.libraFusenListData.splice(i,0,t)):(n.log("付箋リストの中にないので追加:"+t.id),this.libraFusenListData.push(t))},removeLibraFusenListDataByUUID:function(t){var i;if(i=e.findIndex(this.libraFusenListData,function(e){return function(e){return e.id===t}}(this)),i>-1)return this.libraFusenListData.splice(i,1)},removeLibraFusenListDataByPageID:function(t){var i,n,r,o,s,a;for(i=[],s=this.libraFusenListData,r=0,o=s.length;r=0;o=l<=0?++h:--h)t.unsaveLibraPenData[o].data_id===a.data_id&&(n.log(t.unsaveLibraPenData[o].type),"fusens"===t.unsaveLibraPenData[o].type&&t.updateLibraFusenListData(t.unsaveLibraPenData[o].data),t.unsaveLibraPenData.splice(o,1));return e()}return i()},function(t){return i()})}}(this))}},ready:function(){return this.$watch("unsaveLibraPenData",function(t,e){var i,n,r;if(void 0===this.libraContentId)throw new Error("libra id is undefined");r=["libradata","unsaveMemos",this.libraContentId].join("."),n=JSON.stringify(t);try{return window.localStorage.setItem(r,n)}catch(t){i=t}}),this.getLibraInfo=function(t){return function(){return new o(function(e,i){var n;return t.isOnLibra?(n={c:t.noCacheParam,content_type:"flipper"},n.content_url=window.location.href,t.$http.get(t.libraApiUrl+"_ContentStorage/getSetting/",n,function(n,r,o){return n.response?(t.libraAccessKey=n.access_key,t.libraHan=n.version,t.libraContentId=n.content_id,"local"===n.setting.flipper_contents_storage_location&&(t.isOnLibra=!1),t.libraLoginUrl=n.login_url,t.libraVersion=n.libra_version?n.libra_version:"",e()):i(new Error("getSettingResponseFalse"))}).error(function(t,e,n){return i(new Error("LibraSetting Error"))})):e()})}}(this),this.checkLibraVersion=function(t){return function(){var e,i,n,r,o,s,a;for(e="2.6.0".split("."),o=t.libraVersion.split("."),a=!0,r=n=0;n<=2;r=++n){if(i="",s="",i=rNumber(s)){a=!1;break}}return a}}(this),this.getLibraFusenList=function(t){return function(){return new o(function(i,n){var r,o;return t.isOnLibra&&t.libraAccessKey?(r={access_key:t.libraAccessKey,content_id:t.libraContentId,version:t.libraHan,c:new Date/1e3|0},o=e.merge(r,{type:"fusens"}),t.libraGetListApiName=t.checkLibraVersion()?"_ContentStorage/getListAll/":"_ContentStorage/getList/",t.$http.get(t.libraApiUrl+t.libraGetListApiName,o,function(r,o,s){var a,h,u,c,l;if(r.response){for(h=e.map(r.stored_data,function(t){var e;return e=JSON.parse(t.data),e.access_type=t.access_type||"private",e.read_only=t.read_only||!1,e}),c=u=0,l=h.length;u0?o.resolve(t.saveLibraAndRemoveLocalStorage()).then(function(){return window.alert("前回終了時に保存されていないメモを復元しました"),e()}).catch(function(t){return e()}):(n.log("未保存データなし"),e())}return e()})}}(this)}},t.exports=r}).call(e,i(3))},function(t,e){var i;i=function(){function t(){}return t.init=function(t,e){return this.pageWidth=t,this.pageHeight=e,this.a=2*this.pageWidth/20,this.b=this.pageHeight/20},t.getGaPointMihiraki=function(t,e,i,n){var r,o,s,a,h,u;return i=Math.min(i,20*this.a),n=Math.min(n,20*this.b),h=t/this.a>>0,u=e/this.b>>0,h=Math.max(0,h),u=Math.max(0,u),o=(parseFloat(t)+parseFloat(i)-1)/this.a>>0,s=(parseFloat(e)+parseFloat(n)-1)/this.b>>0,o=Math.min(o,19),s=Math.min(s,19),a=h+20*u,r=Math.min(o+20*s,399),"lt="+a+",rb="+r},t.getGaPoint=function(t,e,i,n){var r,o,s,a,h,u,c;return i=Math.min(i,10*this.a),n=Math.min(n,20*this.b),u=t/this.a>>0,c=e/this.b>>0,u=Math.max(0,u),c=Math.max(0,c),o=(parseFloat(t)+parseFloat(i)-1)/this.a>>0,s=(parseFloat(e)+parseFloat(n)-1)/this.b>>0,a=0,a=u<=9?9:19,o=Math.min(o,a),s=Math.min(s,19),h=u+20*c,r=Math.min(o+20*s,399),"lt="+h+",rb="+r},t}(),t.exports=i},function(t,e,i){(function(e){var n,r,o,s,a;r=i(21),o=i(20),s=i(54),n=i(99),a=function(){function t(){}return t.sendBookLog=function(){return r.send(r.bl,flipper.bookID,flipper.bookUrl(),1)},t.sendViewLog=function(){return r.send(r.pv,flipper.bookID,"pn="+(flipper.slideViewNum+1),1)},t.sendCustomPage=function(){return r.sendCustomPage()},t.sendZoomLog=function(t,i){var a,h,u,c,l,p,f;if(0!==flipper.scaleIndex)return f=new o(e.floor(t.left),e.floor(t.top),e.floor(t.right),e.floor(t.bottom)),h=new o(flipper.componentLeft,flipper.componentTop,flipper.componentWidth+flipper.componentLeft,flipper.componentHeight+flipper.componentTop),l=s.intersectRect(f,h),u=0-f.left,c=0-f.top,l.offset(u,c),l.setWidth(l.getWidth()/flipper.scale),l.setHeight(l.getHeight()/flipper.scale),l.offset(l.left/flipper.scale-l.left,l.top/flipper.scale-l.top),i||l.offset(flipper.pageWidth,0),n.init(flipper.pageWidth,flipper.pageHeight),p=n.getGaPoint(l.left,l.top,l.getWidth(),l.getHeight()),a="pn="+(flipper.slideViewNum+1)+",scaleIndex="+flipper.scaleIndex,a+=","+p+",tm=0",r.send(r.phm,flipper.bookID,a,1)},t}(),t.exports=a}).call(e,i(3))},function(t,e){var i;i=function(){function t(){}return t.zenkaku2hankaku=function(t){var e;return e=t.replace(/[!-~]/g,function(t){return String.fromCharCode(t.charCodeAt(0)-65248)}),e.replace(/”/g,'"').replace(/’/g,"'").replace(/‘/g,"`").replace(/ /g," ").replace(/〜/g,"~")},t.zenkaku2hankakuWord=function(t){var e;return e=t.replace(/[!-~]/g,function(t){return t=String.fromCharCode(t.charCodeAt(0)-65248),t=t.replace(/[\^|\$|\\|\.|\*|\+|\?|\(|\)|\[|\]|\|]/gi,"\\$&")}),e.replace(/”/g,'"').replace(/’/g,"'").replace(/‘/g,"`").replace(/ /g," ").replace(/〜/g,"~")},t}(),t.exports=i},function(t,e,i){var n,r,o,s,a;s=i(20),a=i(54),r=i(198),o=i(21),n=function(){function t(){}return t.sendBookLog=function(){return o.send(o.bl,flipper.bookID,flipper.bookUrl(),1)},t.sendViewLog=function(){return o.send(o.vv,flipper.bookID,"vn="+flipper.bookViewNum,1)},t.sendCustomPage=function(){return o.sendCustomPage()},t.sendZoomLog=function(t){var e,i,n,h,u,c,l,p,f,d,g;if(0!==flipper.scaleIndex)return i=t.left,n=t.top,i+=flipper.componentCenter*flipper.scale,f=i-flipper.pageWidth*flipper.scale,g=n-flipper.pageHeight/2*flipper.scale,h=new s(Math.floor(f),Math.floor(g),Math.floor(f+2*flipper.pageWidth*flipper.scale),Math.floor(g+flipper.pageHeight*flipper.scale)),u=new s(flipper.componentLeft,flipper.componentTop,flipper.componentWidth+flipper.componentLeft,flipper.componentHeight+flipper.componentTop),p=a.intersectRect(h,u),c=0-h.left,l=0-h.top,p.offset(c,l),p.setWidth(p.getWidth()/flipper.scale),p.setHeight(p.getHeight()/flipper.scale),p.offset(p.left/flipper.scale-p.left,p.top/flipper.scale-p.top),r.init(flipper.pageWidth,flipper.pageHeight),d=r.getGaPointMihiraki(p.left,p.top,p.getWidth(),p.getHeight()),e="vn="+flipper.bookViewNum+",scaleIndex="+flipper.scaleIndex,e+=","+d+",tm=0",o.send(o.vhm,flipper.bookID,e,1)},t}(),t.exports=n},function(t,e,i){(function(e){var i;i=function(){function t(){}return t.getPage=function(){var t,i,n,r;return n=location.search.substr(1),n.indexOf("page=")>-1?(i=n.substr(n.indexOf("page=")).split("&")[0].split("=")[1],e.parseInt(i)):(t=location.hash.substr(1),t.indexOf("page=")>-1?i=t.substr(t.indexOf("page=")).split("&")[0].split("=")[1]:t.indexOf("p=")>-1?i=t.substr(t.indexOf("p=")).split("&")[0].split("=")[1]:t.indexOf("tco=")>-1?(r=t.substr(t.indexOf("tco=")).split("&")[0].split("=")[1],i=r.split("_")[0]):i=1,i=i>0?i:1,e.parseInt(i))},t.checkPage=function(){var t;return t=location.hash.substr(1),t.indexOf("page=")>-1},t.getRect=function(){var t,e,i,n;return t=location.hash.substr(1),t.indexOf("rect=")>-1?e=t.substr(t.indexOf("rect=")).split("&")[0].split("=")[1]:t.indexOf("tco=")>-1?(n=t.substr(t.indexOf("tco=")).split("&")[0].split("=")[1],i=n.split("_"),e=[i[1],i[2],i[3],i[4]].join("_")):e="0_0_0_0",e.split("_").map(function(t){return parseInt(t,10)})},t.checkRect=function(){var t;return t=location.hash.substr(1),t.indexOf("rect=")>-1||t.indexOf("tco=")>-1},t.getScaleIndex=function(){var t,e,i,n,r;return this.checkInitEmbedSkin()?(n=location.search.substr(1),t=n.substr(n.indexOf("initEmbedSkin=")).split("&")[0].split("=")[1],t.split("_")[2]):(e=location.hash.substr(1),e.indexOf("scaleindex=")>-1?i=e.substr(e.indexOf("scaleindex=")).split("&")[0].split("=")[1]:e.indexOf("scaleIndex=")>-1?i=e.substr(e.indexOf("scaleIndex=")).split("&")[0].split("=")[1]:e.indexOf("tco=")>-1?(r=e.substr(e.indexOf("tco=")).split("&")[0].split("=")[1],i=r.split("_")[6]):i=0,i)},t.checkScaleIndex=function(){var t;return t=location.hash.substr(1),t.indexOf("scaleindex=")>-1||t.indexOf("scaleIndex=")>-1},t.createTwitterString=function(t){},t.checkInitEmbedSkin=function(){var t;return t=location.search.substr(1),t.indexOf("initEmbedSkin=")>-1},t.getEmbedCenter=function(){var t,i,n;return n=location.search.substr(1),i=n.substr(n.indexOf("initEmbedSkin=")).split("&")[0].split("=")[1],t=i.split("_"),[e.parseInt(t[0]),e.parseInt(t[1])]},t.replaceAt=function(t,e,i){return t.substr(0,e)+i+t.substr(e+i.length)},t.isLocal=function(){return 0===location.href.indexOf("http://127.0.0.1")||0===location.href.indexOf("http://localhost")},t.getHighlightWords=function(){var t;return t=location.search.substr(1),t.substr(t.indexOf("highlightwords=")).split("&")[0].split("=")[1]},t.getSOption=function(){var t;return t=location.search.substr(1),t.substr(t.indexOf("soption=")).split("&")[0].split("=")[1]},t.isFLConsole=function(){var t,e;return e=location.hash.substr(1),e.indexOf("console=")>-1&&(t=e.substr(e.indexOf("console=")).split("&")[0].split("=")[1],"true"===t)},t.isOnlineStorageWhiteUrl=function(){return 0===location.href.indexOf("http://127.0.0.1")||0===location.href.indexOf("http://c.logosware.com")||0===location.href.indexOf("https://c.logosware.com")},t}(),t.exports=i}).call(e,i(3))},function(t,e,i){(function(e,n){var r,o,s,a,h,u,c,l,p,f,d,g,v,m,_,y,b;_=i(13),i(205),r=i(102),y=i(10),f=i(18),p=i(12),b=i(27),m=i(55),c=i(60),s=i(32),a=i(30),g=i(31),o=i(4),d=i(64),h=i(61),v=i(65),l=i(63),u=i(62),t.exports={name:"carousel",mixins:[d,h,v,l,u],template:i(121),components:{"page-layer":i(57),"page-shadow":i(95)},data:function(){return{leftPageShadow:i(87),rightPageShadow:i(88),isBendFlipping:!1,rotateYForFlipRight:0,rotateYForFlipLeft:-180,imageLinks:[],isFusenDragging:!1,totaldeg:0,isR2LFlip:!1,isL2RFlip:!1,translateX:0,translateY:0,panStartX:0,panStartY:0,transitionDuration:0,isZooming:!1,isDragging:!1,isPanning:!1,isAreaCanvasVisible:!1,areaCanvasType:"",flipStartSound:i(116),flipStopSound:i(115),linkStage:null,canvasPadding:50,isTegakiCanvasVisible:!1,isTegakiIsElaser:!1,fusenOnPressIntervalID:0,debugHeight:0,moveX:0,moveY:0,tmpx:0,tmpy:0,percentX:0,percentY:0,eCenterX:0,eCenterY:0,fusenDepthCounter:0}},computed:{bendR2LVisible:function(){return this.isR2LFlip?"visible":"hidden"},bendL2RVisible:function(){return this.isL2RFlip?"visible":"hidden"},isBendFlipMode:function(){return this.$root.isBendFlipMode},getLeftPageShadow:function(){return this.leftPageShadow},getRightPageShadow:function(){return this.rightPageShadow},backgroundImage:function(){var t;return this.$root.activeRightPageId?(t=this.$root.imagepath?this.$root.imagepath:this.$root.bookpath,t+"page"+this.$root.activeRightPageId+"/x1.jpg?c="+this.$root.noCacheParam):null},backgroundImage2:function(){var t;return this.$root.activeRightRightPageId?(t=this.$root.imagepath?this.$root.imagepath:this.$root.bookpath,t+"page"+this.$root.activeRightRightPageId+"/x1.jpg?c="+this.$root.noCacheParam):null},backgroundImage3:function(){var t;return this.$root.activeLeftLeftPageId?(t=this.$root.imagepath?this.$root.imagepath:this.$root.bookpath,t+"page"+this.$root.activeLeftLeftPageId+"/x1.jpg?c="+this.$root.noCacheParam):null},backgroundImage4:function(){var t;return this.$root.activeLeftPageId?(t=this.$root.imagepath?this.$root.imagepath:this.$root.bookpath,t+"page"+this.$root.activeLeftPageId+"/x1.jpg?c="+this.$root.noCacheParam):null},shadowWidthForFlipR2L_R:function(){var t;return t=this.$root.pageWidth,t-Math.abs(t*this.rotateYForFlipRight/180)},shadowWidthForFlipL2R_L:function(){var t;return t=this.$root.pageWidth,Math.abs(t*this.rotateYForFlipLeft/180)*-1},bendSukima:function(){return y.ios()?1.02:y.safari()?1.03:1.02},bendSliceWidth:function(){return e.ceil(this.$root.pageWidth/10*this.bendSukima,20)},bendSliceCanvasWidth:function(){return e.ceil(this.$root.pageWidth/10*this.bendSukima,20)},bendSliceLeft:function(){return e.floor(this.$root.pageWidth/10+0,2)},bendSliceLeftNodo:function(){return Math.max(this.bendSliceLeft*-9,(this.$root.pageWidth-this.bendSliceCanvasWidth)*-1)},bendPaperR2LRotateY:function(){var t;return t=this.rotateYForFlipRight>-30?Math.sin(this.rotateYForFlipRight/-30*.5*Math.PI)*-10:Math.cos((this.rotateYForFlipRight+30)/-150*.5*Math.PI)*-10,e.round(t,2)},bendPaperL2RRotateY:function(){var t;return t=this.rotateYForFlipLeft<-150?10*Math.sin(this.rotateYForFlipLeft/-30*.5*Math.PI):10*Math.cos((this.rotateYForFlipLeft+150)/-150*.5*Math.PI),e.round(t,2)},linkCanvasBorderStyleForDebug:function(){return""},flipSpeed:function(){var t;return t=0,!_()&&this.$root.speed>0&&(t=0),1e3*this.$root.speed+t},multiFlipSpeed:function(){return Math.min(this.flipSpeed,200)},hidariue:function(){return this.translateX-this.$root.pageWidth*this.$root.scale},hidariue2:function(){return this.translateY-this.$root.pageHeight/2*this.$root.scale},isFlipping:function(){return this.isR2LFlip||this.isL2RFlip},counter:function(){return Math.floor(Math.abs(this.totaldeg*-1/180))},counter01:function(){return Math.abs(this.counter%2)},counter10:function(){return 0===this.counter01?1:0},aaa:function(){return"r2l"===this.$root.bookDirection?this.totaldeg-(this.totaldeg+180*(this.counter+1)/2)*this.counter01+90*this.counter*this.counter10:this.totaldeg*-1-(-1*this.totaldeg+180*(this.counter+1)/2)*this.counter01+90*this.counter*this.counter10},bbb:function(){return"r2l"===this.$root.bookDirection?this.totaldeg-this.aaa:this.totaldeg*-1-this.aaa},aaa360:function(){return"r2l"===this.$root.bookDirection?this.aaa%360:(360+this.aaa%360)*-1},bbb360:function(){return"r2l"===this.$root.bookDirection?this.bbb%360:(360+this.bbb%360)*-1},counteramari4:function(){return"r2l"===this.$root.bookDirection?2*this.counter%8:2*this.counter%8},counteramari4plus1:function(){return"r2l"===this.$root.bookDirection?this.counteramari4+1:this.counteramari4+1},hyoujiindexr:function(){return"r2l"===this.$root.bookDirection?2*this.$root.bookViewNum%8:this.hyoujiindexl-1>=0?this.hyoujiindexl-1:7},hyoujiindexl:function(){return"r2l"===this.$root.bookDirection?this.hyoujiindexr-1>=0?this.hyoujiindexr-1:7:2*this.$root.bookViewNum%8},hyoujiindexrr:function(){var t;return t="r2l"===this.$root.bookDirection?1:-1,this.hyoujiindexr%8+t},hyoujiindexll:function(){var t;return t="r2l"===this.$root.bookDirection?-1:1,this.hyoujiindexl%8+t},underIndexR:function(){return"r2l"===this.$root.bookDirection?this.hyoujiindexr+2<=7?this.hyoujiindexr+2:this.hyoujiindexr+2-8:this.hyoujiindexr-2>=0?this.hyoujiindexr-2:this.hyoujiindexr-2+8},underIndexL:function(){return"r2l"===this.$root.bookDirection?this.hyoujiindexl-2>=0?this.hyoujiindexl-2:this.hyoujiindexl-2+8:this.hyoujiindexl+2<=7?this.hyoujiindexl+2:this.hyoujiindexl+2-8},uraindexr:function(){return this.hyoujiindexr+4<=7?this.hyoujiindexr+4:this.hyoujiindexr+4-8},uraindexl:function(){return this.hyoujiindexl+4<=7?this.hyoujiindexl+4:this.hyoujiindexl+4-8},index:function(){return this.$root.bookViewNum+1},a0:function(){return this.realPageOr0(8*Math.floor((this.index-0)/4)+1+Math.abs(1-this.$root.startPageSetting))},a1:function(){return this.realPageOr0(8*Math.floor((this.index-1)/4)+2+Math.abs(1-this.$root.startPageSetting))},b2:function(){return this.realPageOr0(8*Math.floor((this.index-1)/4)+3+Math.abs(1-this.$root.startPageSetting))},b3:function(){return this.realPageOr0(8*Math.floor((this.index-2)/4)+4+Math.abs(1-this.$root.startPageSetting))},a4:function(){return this.realPageOr0(8*Math.floor((this.index-2)/4)+5+Math.abs(1-this.$root.startPageSetting))},a5:function(){return this.realPageOr0(8*Math.floor((this.index-3)/4)+6+Math.abs(1-this.$root.startPageSetting))},b6:function(){return this.realPageOr0(8*Math.floor((this.index-3)/4)+7+Math.abs(1-this.$root.startPageSetting))},b7:function(){return this.realPageOr0(8*Math.floor((this.index-4)/4)+8+Math.abs(1-this.$root.startPageSetting))},carouselArray:function(){return[this.a0,this.a1,this.b2,this.b3,this.a4,this.a5,this.b6,this.b7]}},methods:{answerLinkInitialDisplay:function(t){return function(t){return"answer"!==t.key||"extension"!==t.target}}(this),onLoadImageForFlipCanvas:function(t){return function(t,e){}}(this),getTransformIgnoreFF0:function(t){var e;return e={},0!==this.calcRotateY(t)&&(e.transform="rotateY("+this.calcRotateY(t)+"deg) translate3d(0px,0px,0px)"),e},getUraCanvasLeft:function(t){return function(t,i){var n,r;return r={},y.safari()?(r.right="0px",n=1,r.backgroundPosition=e.ceil(i*-1*t+n)+"px 0px"):(r.left="-1px",r.backgroundPosition=i*-1*t+"px 0px"),r}}(this),realPageOr0:function(t){return t<=0||t>this.$root.pageTotal?0:t},getLeft:function(t){return"r2l"===this.$root.bookDirection?this.$root.componentCenter-t%2*this.$root.pageWidth:this.$root.componentCenter-(t+1)%2*this.$root.pageWidth},checkBrightness:function(t,e,i,n){return null},isPrintTarget:function(t,e,i){return this.isPrintTargetL(t,e,i)||this.isPrintTargetR(t,e,i)},isPrintTargetL:function(t,e,i){return t===this.hyoujiindexl},isPrintTargetR:function(t,e,i){return t===this.hyoujiindexr},isPrintTargetIgnore:function(t,e,i){return!this.isPrintTarget(t,e,i)},checkvif:function(t){return!(t<1||t>this.$root.pageTotal)},checkvshow:function(t,e,i,n,r){var o;return o=!1,this.uraindexr!==t&&this.uraindexl!==t&&("r2l"===this.$root.bookDirection?(0===t&&(o=e>=-180&&e<=0),1===t&&(o=e>=-180&&e<=0),4===t&&(o=e<=-180&&e>=-360),5===t&&(o=e<=-180&&e>-360||0===e),2===t&&(o=i>=-180&&i<=0),3===t&&(o=i>=-180&&i<=0),6===t&&(o=i<=-180&&i>=-360),7===t&&(o=i<=-180&&i>=-360||0===i)):(0===t&&(o=e>=-360&&e<=-180),1===t&&(o=e>=-360&&e<=-180),4===t&&(o=e>=-180&&e<0||e===-360),5===t&&(o=e>=-180&&e<0||e===-360),2===t&&(o=i>=-360&&i<=-180),3===t&&(o=i>=-360&&i<=-180),6===t&&(o=i>=-180&&i<0||i===-360),7===t&&(o=i>=-180&&i<0||i===-360)),this.isBendFlipMode&&this.isBendFlipping&&(o=!1,n&&(this.underIndexR===t&&(o=!0),this.hyoujiindexl===t&&(o=!0)),r&&(this.underIndexL===t&&(o=!0),this.hyoujiindexr===t&&(o=!0))),n===!1&&r===!1&&(o=t===this.hyoujiindexr||t===this.hyoujiindexl),o)},calcRotateY:function(t){var e;return"r2l"===this.$root.bookDirection?(0===t&&(e=this.aaa360),1===t&&(e=this.aaa360+180),4===t&&(e=this.aaa360+180),5===t&&(e=this.aaa360+0),2===t&&(e=this.bbb360+0),3===t&&(e=this.bbb360+180),6===t&&(e=this.bbb360+180),7===t&&(e=this.bbb360+0)):(0===t&&(e=this.aaa360+360),1===t&&(e=this.aaa360+180),4===t&&(e=this.aaa360+180),5===t&&(e=this.aaa360+360),2===t&&(e=this.bbb360+360),3===t&&(e=this.bbb360+180),6===t&&(e=this.bbb360+180),7===t&&(e=this.bbb360+360)),e},getTransformOrigin:function(t,e){return"r2l"===this.$root.bookDirection?t%2===0?"left":"right":t%2===0?"right":"left"},getZIndex:function(t,e,i){var n;return n=0,t===this.hyoujiindexr&&(n=2),t===this.hyoujiindexl&&(n=2),t===this.counteramari4&&(n=4),t===this.counteramari4plus1&&(n=4),"r2l"===this.$root.bookDirection?(0===t&&e<=0&&e>-90&&(n+=1),1===t&&e<=-90&&e>-180&&(n+=1),4===t&&e<=-180&&e>-270&&(n+=1),5===t&&e<=-270&&e>-360&&(n+=1),2===t&&i<=0&&i>-90&&(n+=1),3===t&&i<=-90&&i>-180&&(n+=1),6===t&&i<=-180&&i>-270&&(n+=1),7===t&&i<=-270&&i>-360&&(n+=1)):(0===t&&e<-270&&e>=-360&&(n+=1),1===t&&e<=-180&&e>-270&&(n+=1), 4===t&&e<-90&&e>=-180&&(n+=1),5===t&&(e<=-0&&e>-90||e===-360)&&(n+=1),2===t&&i<-270&&i>=-360&&(n+=1),3===t&&i<=-180&&i>-270&&(n+=1),6===t&&i<-90&&i>=-180&&(n+=1),7===t&&(i<=-0&&i>-90||i===-360)&&(n+=1)),n},gotoTargetPage:function(t){var e;if(t=parseInt(t,10),!isNaN(t)&&!(t<1||t>this.$root.pageTotal||this.isFlipping||(e=Math.floor((t-Math.abs(1-this.$root.startPageSetting))/2),e===this.$root.bookViewNum)))return this.$root.selectedRightPageString="",this.$root.selectedLeftPageString="",this.isL2RFlip=!0,this.totaldeg="r2l"===this.$root.bookDirection?-180*e:180*e,this.$root.bookViewNum=e,Vue.nextTick(function(t){return function(){return t.isR2LFlip=t.isL2RFlip=!1,t.onFlipStop()}}(this))},flipR:function(t,e){if(!this.isFlipping){if("r2l"===this.$root.bookDirection){if(this.$root.bookViewNum===this.$root.bookViewLength-1)return}else if(0===this.$root.bookViewNum)return;this.$root.selectedRightPageString="",this.$root.selectedLeftPageString="",this.isR2LFlip=!0,this.isL2RFlip=!1,this.isBendFlipping=this.isBendFlipMode,this.rotateYForFlipRight=-5,createjs.Tween.get(this).to({totaldeg:this.totaldeg-180,rotateYForFlipRight:-180},t,createjs.Ease.quadInOut).call(e,["test"])}},flipL:function(t,e){if(!this.isFlipping){if("r2l"===this.$root.bookDirection){if(0===this.$root.bookViewNum)return}else if(this.$root.bookViewNum===this.$root.bookViewLength-1)return;this.$root.selectedRightPageString="",this.$root.selectedLeftPageString="",this.isR2LFlip=!1,this.isL2RFlip=!0,this.isBendFlipping=this.isBendFlipMode,this.rotateYForFlipLeft=-175,createjs.Tween.get(this).to({totaldeg:this.totaldeg+180,rotateYForFlipLeft:0},t,createjs.Ease.quadInOut).call(e,["test"])}},onFlipR2LEnd:function(t){if(this.isR2LFlip=!1,this.isL2RFlip=!1,this.$root)return"r2l"===this.$root.bookDirection?this.$root.bookViewNum=this.$root.bookViewNum+1:this.$root.bookViewNum=this.$root.bookViewNum-1,this.onFlipStop()},onFlipL2REnd:function(t){if(this.isR2LFlip=!1,this.isL2RFlip=!1,this.$root)return"r2l"===this.$root.bookDirection?this.$root.bookViewNum=this.$root.bookViewNum-1:this.$root.bookViewNum=this.$root.bookViewNum+1,this.onFlipStop()},onFlipStop:function(){if(this.isBendFlipping=!1,flipper.sound&&_()&&createjs.Sound.play("flipStopSound"),this.$dispatch("flipStop"),r.sendViewLog(),r.sendCustomPage(),this._sendZoomLog(),this.isAreaCanvasVisible)return this.$broadcast("intersectChars")},repeatFlip:function(t,e,i){return flipper.sound&&_()&&createjs.Sound.play("flipStopSound"),this.isR2LFlip=this.isL2RFlip=!1,this.$root.bookViewNum=this.$root.bookViewNum+i,this.$root.bookViewNum===t?(this.$dispatch("flipStop"),r.sendViewLog(),r.sendCustomPage(),void this._sendZoomLog()):Vue.nextTick(function(n){return function(){var r;return t>n.$root.bookViewNum?"r2l"===n.$root.bookDirection?n.isR2LFlip=!0:n.isL2RFlip=!0:"r2l"===n.$root.bookDirection?n.isL2RFlip=!0:n.isR2LFlip=!0,r=1===Math.abs(n.$root.bookViewNum-t)?n.flipSpeed:n.multiFlipSpeed,r=1===Math.abs(n.$root.bookViewNum-t)?n.multiFlipSpeed:n.multiFlipSpeed,createjs.Tween.get(n).to({totaldeg:n.totaldeg+e},r,createjs.Ease.quadInOut).call(n.repeatFlip,[t,e,i])}}(this))},transitionDurationOn:function(){return this.$set("transitionDuration",.1)},transitionDurationOff:function(){if(this.transitionDuration>0)return this.$set("transitionDuration",0)},otherTransitionEnd:function(t){return this.$set("isZooming",!1),this.transitionDurationOff(),this.$set("isZooming",!1),this.isDragging&&this.$set("isDragging",!1),this._sendZoomLog()},_sendZoomLog:function(){var t,i,n,o,s,a,h,u,c;return _()||(s=e.max([this.global2PercentX(this.$root.componentLeft),0]),h=e.min([this.global2PercentX(this.$root.componentLeft+this.$root.componentWidth),1]),c=e.max([this.global2PercentY(this.$root.componentTop),-.5]),i=e.min([this.global2PercentY(this.$root.componentTop+this.$root.componentHeight),.5]),o=e.floor(s*this.$root.pageWidth*2),a=e.floor(h*this.$root.pageWidth*2),u=e.floor((c+.5)*this.$root.pageHeight),t=e.floor((i+.5)*this.$root.pageHeight),this._updateRootSelecedArea(o,u,a,t)),n=this.$els.carousel.getBoundingClientRect(),r.sendZoomLog(n)},_drawRectOnDrawingCanvas:function(t,e,i,n){return this.drawingCanvas.graphics.clear().beginFill("rgba(255,170,170,0.5)").drawRect(t,e,i,n),this.stage.update()},_updateRootSelecedArea:function(t,e,i,n){var r,o,s,a,h,u,c;if("text"===this.areaCanvasType)return this.$root.selectedAreaLeft=t,this.$root.selectedAreaTop=e,this.$root.selectedAreaRight=i,this.$root.selectedAreaBottom=n,this.$broadcast("intersectChars");if("url"===this.areaCanvasType)return t===e&&e===i&&i===n&&0===n&&(i=2*this.$root.pageWidth,n=this.$root.pageHeight),this.$root.selectedAreaForUrlLeft=t,this.$root.selectedAreaForUrlTop=e,this.$root.selectedAreaForUrlRight=i,this.$root.selectedAreaForUrlBottom=n;if("zoom"!==this.areaCanvasType)return t===e&&e===i&&i===n&&0===n&&(c=this.isRightPage?this.$root.pageWidth:0,t=0+c,e=0,i=1*this.$root.pageWidth+c,n=this.$root.pageHeight),this.$root.selectedAreaForUrlLeft=t,this.$root.selectedAreaForUrlTop=e,this.$root.selectedAreaForUrlRight=i,this.$root.selectedAreaForUrlBottom=n;if(this.isAreaCanvasVisible)if(t===e&&e===i&&i===n&&0===n);else{for(a=0,h=this.$root.scaleArray.length;;){if(u=this.$root.scaleArray[h],s=this.$root.componentWidth>(i-t)*u&&this.$root.componentHeight>(n-e)*u&&h0)return this.$set("isZooming",!0),this.transitionDurationOn(),r=(i-t)/2+t,o=(n-e)/2+e,a=Math.min(a,this.$root.scaleArray.length-1),this.translateX=(this.$root.pageWidth-r)*this.$root.scaleArray[a],this.translateY=(this.$root.pageHeight/2-o)*this.$root.scaleArray[a],this.$root.scaleIndex=a,this.$parent.$dispatch("areaCanvas","zoom",!1)}},_drawFusensFromPageComponent:function(t,i){var n,r,o,s,a;if(t&&0!==t.length&&!this.isFlipping){for(r=e.cloneDeep(t),i&&e.map(r,function(t){return function(e){return e.x=e.x+t.$root.pageWidth,e}}(this)),a=[],o=0,s=r.length;om;f=0<=m?++d:--d)"fusen"===(null!=(y=this.linkStage.getChildAt(f))?y.name:void 0)&&(u=this.linkStage.getChildAt(f),h=new a(u.id,u.getText(),e.round(u.x),e.round(u.y),u.bgColor,"#000000",300,100),o=50,c=h.x-o+this.$root.fusenWidth/2,c<=this.$root.pageWidth?h.resolve(this.$root.activeLeftPageId):h.resolve(this.$root.activeRightPageId),void 0===this.$root.activeLeftPageId&&c<=this.$root.pageWidth&&h.resolve(this.$root.activeRightPageId),void 0===this.$root.activeRightPageId&&c>this.$root.pageWidth&&h.resolve(this.$root.activeLeftPageId),v.push(h));if(!this.$root.isOnLibra||!r){if(this.$root.activeLeftPageId)if(l=e.filter(e.cloneDeep(v),function(t){return function(e){return e.pageId===t.$root.activeLeftPageId}}(this)),this.$root.isOnLibra){if(h=e.find(l,{id:t}))switch(i){case"libraAdd":this.addLibra("fusens",h);break;case"libraUpdate":this.updateLibra("fusens",h,n)}}else try{p.add(this.$root.activeLeftPageId,l)}catch(t){s=t,this.$root.error=s}if(this.$root.activeRightPageId)if(g=e.filter(e.cloneDeep(v),function(t){return function(e){return e.pageId===t.$root.activeRightPageId}}(this)),e.map(g,function(t){return function(e){return e.x=e.x-t.$root.pageWidth,e}}(this)),this.$root.isOnLibra){if(h=e.find(g,{id:t}))switch(i){case"libraAdd":return this.addLibra("fusens",h);case"libraUpdate":return this.updateLibra("fusens",h,n)}}else try{return p.add(this.$root.activeRightPageId,g)}catch(t){return s=t,this.$root.error=s}}},p3:function(){var t,i,n,r,s,a;if(this.$root.isOnLibra){if("carousel"===this.$options.name){if(!this.restoredLibraPenCarouselCurrentPage)return void o.log("描画されていないから止める")}else if(!this.restoredLibraPenSlideCurrentPage)return void o.log("描画されていないから止める");if(this.penDataArray.length<1)return void o.log("これ2")}if(s=e.cloneDeep(e.maxBy(e.last(this.penDataArray).points,"x")),a=e.cloneDeep(e.minBy(e.last(this.penDataArray).points,"x")),i=(a.x+s.x)/2,i<=this.$root.pageWidth?e.last(this.penDataArray).resolve(this.$root.activeLeftPageId):e.last(this.penDataArray).resolve(this.$root.activeRightPageId),void 0===this.$root.activeLeftPageId&&e.last(this.penDataArray).resolve(this.$root.activeRightPageId),void 0===this.$root.activeRightPageId&&e.last(this.penDataArray).resolve(this.$root.activeLeftPageId),e.last(this.penDataArray).pageId===this.$root.activeLeftPageId)if(r=e.filter(this.penDataArray,function(t){return function(e){return e.pageId===t.$root.activeLeftPageId}}(this)),this.$root.isOnLibra)this.addLibra("pens",e.last(r));else try{f.add(this.$root.activeLeftPageId,r)}catch(t){n=t,this.$root.error=n}else if(t=e.cloneDeep(this.penDataArray),r=e.filter(t,function(t){return function(e){return e.pageId===t.$root.activeRightPageId}}(this)),e.map(r,function(t){return function(i,n,r){return e.map(i.points,function(e,i,n){return e.x=e.x-t.$root.pageWidth,e}),i}}(this)),this.$root.isOnLibra)this.addLibra("pens",e.last(r));else try{f.add(this.$root.activeRightPageId,r)}catch(t){n=t,this.$root.error=n}},repositionX:function(t){var e;return e=this.$root.pageWidth*t,this.translateX>e?e:(e=this.$root.pageWidth*t*-1,this.translateXe?e:(e=this.$root.pageHeight*t/2*-1,this.translateY=0;)"drawDisplayShape"===(null!=(o=this.linkStage.getChildAt(e))?o.name:void 0)||(s=this.linkStage.getChildAt(e),i=s.link,parseInt(t,10)===parseInt(s.page,10)&&"extension"===i.linkTarget[0]&&"answer"===i.key[0]&&(s.toggle&&(n+=1),a.push(s))),e--;return(h=function(t){return function(e){var i,n,r,o,s,h;for(s=[],i=0,n=a.length;i=0;)"drawDisplayShape"===(null!=(o=this.linkStage.getChildAt(e))?o.name:void 0)||(s=this.linkStage.getChildAt(e),i=s.link,"extension"===i.linkTarget[0]&&"answer"===i.key[0]&&t===i.linkUrl[0]&&(s.toggle&&(n+=1),a.push(s))),e--;return(h=function(t){return function(e){var i,n,r,o,s,h;for(s=[],i=0,n=a.length;ithis.$root.pageTotal||this.isFlipping||(s=Math.floor((t-Math.abs(1-this.$root.startPageSetting))/2),s===this.$root.bookViewNum)?void 0:(e="r2l"===this.$root.bookDirection?-180:180,s>this.$root.bookViewNum?(a=1,r=10):(a=-1,r=-10,e*=-1),o=t-r,h=Math.floor((o-Math.abs(1-this.$root.startPageSetting))/2),Math.abs(this.$root.bookViewNum-s)>3&&(i=180*h,"r2l"===this.$root.bookDirection&&(i*=-1),this.totaldeg=i,this.$root.bookViewNum=h),this.isR2LFlip=this.isL2RFlip=!1,s>this.$root.bookViewNum?"r2l"===this.$root.bookDirection?this.isR2LFlip=!0:this.isL2RFlip=!0:"r2l"===this.$root.bookDirection?this.isL2RFlip=!0:this.isR2LFlip=!0,n=1===Math.abs(this.$root.bookViewNum-s)?this.multiFlipSpeed:this.multiFlipSpeed,createjs.Tween.get(this).to({totaldeg:this.totaldeg+e},n,createjs.Ease.quadInOut).call(this.repeatFlip,[s,e,a])))}),this.$on("areaCanvas",function(t,e){null==e&&(e="url"),this.isAreaCanvasVisible=t,this.areaCanvasType=e,t?(this._drawRectOnDrawingCanvas(0,0,0,0),this._updateRootSelecedArea(0,0,0,0)):(this._drawRectOnDrawingCanvas(0,0,0,0),this._updateRootSelecedArea(0,0,0,0))}),this.$on("hammer",function(t){return this.mc.set({enable:t})}),this.isTegakiCanvasVisibleWatcher=this.$watch(function(){return this.isTegakiCanvasVisible},function(t,e){return t?(this.clearDrawDisplayShape(),this.penDataArray2Canvas(this.drawingShape,this.penStage)):this.penDataArray2Canvas(this.drawDisplayShape,this.linkStage)}),this.isFlippingUnwatcher=this.$watch(function(){return this.isFlipping},function(t,e){var i,n,r,o,s,a;if(t===!0){for(null!=(n=this.linkStage)&&n.enableMouseOver(0),y.not.edge()&&y.not.android()&&createjs.Ticker.setFPS(40),i=(null!=(r=this.linkStage)?r.numChildren:void 0)-1;i>=0;)"drawDisplayShape"===(null!=(o=this.linkStage.getChildAt(i))?o.name:void 0)||this.linkStage.removeChildAt(i),i--;return this.fusenDepthCounter=0,this.drawDisplayShape.graphics.clear(),this.drawDisplayShape.updateCache(),null!=(s=this.linkStage)&&s.update(),this.penDataArray=[],this.drewPenIds=[],this.imageLinks=[],this.drawingShape.graphics.clear(),this.drawingShape.updateCache(),null!=(a=this.penStage)?a.update():void 0}return createjs.Ticker.setFPS(20)})},ready:function(){var t,e,i,s,a,h,u,c,l,p;if(this.$root.isInitialized?(this.transitionDurationOff(),l=this.$root.slideViewNum+1,p=Math.floor((l-Math.abs(1-this.$root.startPageSetting))/2),this.totaldeg="r2l"===this.$root.bookDirection?-180*p:180*p,this.$root.bookViewNum=p):(r.sendBookLog(),l=this.$root.startPage,p=Math.floor((l-Math.abs(1-this.$root.startPageSetting))/2),this.totaldeg="r2l"===this.$root.bookDirection?-180*p:180*p,this.$root.bookViewNum=p),this.$dispatch("flipStop",{isInit:!0}),this.$root.isInitAreaVisible&&this.$root.initAreaScaleIndex>0){for(h=Number(this.$root.initAreaScaleIndex);;){if(u=this.$root.scaleArray[h],a=this.$root.componentWidth>this.$root.startRectW*u&&this.$root.componentHeight>this.$root.startRectH*u&&h",this.$root.initAreaScaleIndex),this.$root.initAreaScaleIndex>0&&(t=this.$root.startRectW/2+this.$root.startRectX,e=this.$root.startRectH/2+this.$root.startRectY,this.$root.scaleIndex=Math.min(this.$root.initAreaScaleIndex,this.$root.scaleArray.length-1),this.translateX=(this.$root.pageWidth-t)*this.$root.scaleArray[this.$root.initAreaScaleIndex],this.translateY=(this.$root.pageHeight/2-e)*this.$root.scaleArray[this.$root.initAreaScaleIndex])}return this.$root.initEmbedScale>0&&(this.$root.scaleIndex=Math.min(this.$root.initEmbedScale,this.$root.scaleArray.length-1),t=this.$root.embedStartX,e=this.$root.embedStartY,this.translateX=(this.$root.pageWidth-t)*this.$root.scaleArray[this.$root.scaleIndex],this.translateY=(this.$root.pageHeight/2-e)*this.$root.scaleArray[this.$root.scaleIndex]),r.sendViewLog(),r.sendCustomPage(),this._sendZoomLog(),null===this.linkStage&&(this.linkStage=new createjs.Stage(this.$els.linkCanvas)),createjs.Touch.isSupported()&&createjs.Touch.enable(this.linkStage),this.drawDisplayShape=new createjs.Shape,this.drawDisplayShape.name="drawDisplayShape",this.drawDisplayShape.x=this.canvasPadding,this.drawDisplayShape.y=this.canvasPadding,this.linkStage.addChild(this.drawDisplayShape),this.drawDisplayShape.cache(0,0,this.$els.linkCanvas.width,this.$els.linkCanvas.height),this.penStage=new createjs.Stage(this.$els.penCanvas),this.penStage.enableDOMEvents(!0),this.drawingShape=new createjs.Shape,this.penStage.addChild(this.drawingShape),this.penStage.update(),this.penDataArray=[],createjs.Touch.isSupported()&&createjs.Touch.enable(this.penStage),this.drawingShape.cache(0,0,this.$els.penCanvas.width,this.$els.penCanvas.height),_()||y.ie()?(this.handleMouseDownForPen=function(t){return function(e){return t.isPenDrawing&&t.p3(),t.p1(),t.isPenDrawing=!0}}(this),this.handleMouseMoveForPen=function(t){return function(e){if(t.isPenDrawing)return t.p2(e)}}(this),this.handleMouseUpForPen=function(t){return function(e){return t.p3(),t.isPenDrawing=!1}}(this)):(this.handleMouseDownForPen=function(t){return function(e){return t.isPenDrawing&&t.p3(),t.p1()}}(this),this.handleMouseMoveForPen=function(t){return function(e){return t.isPenDrawing=!0,t.p2(e)}}(this),this.handleMouseUpForPen=function(t){return function(e){return t.p3(),t.isPenDrawing=!1}}(this)),this.penStage.addEventListener("stagemousemove",this.handleMouseMoveForPen),this.penStage.addEventListener("stagemousedown",this.handleMouseDownForPen),this.penStage.addEventListener("stagemouseup",this.handleMouseUpForPen),this.stage=new createjs.Stage(this.$els.areaCanvas),this.stage.enableDOMEvents(!0),createjs.Touch.isSupported()&&createjs.Touch.enable(this.stage),this.drawingCanvas=new createjs.Shape,this.stage.addChild(this.drawingCanvas),this.stage.update(),this.handleMouseDown=function(t){return function(e){if(e.primary)return t.downPt=new createjs.Point(t.stage.mouseX,t.stage.mouseY),t.stage.addEventListener("stagemousemove",s)}}(this),s=function(t){return function(e){if(e.primary)return t._drawRectOnDrawingCanvas(t.downPt.x,t.downPt.y,t.stage.mouseX-t.downPt.x,t.stage.mouseY-t.downPt.y)}}(this),this.handleMouseUp=function(t){return function(e){var i,n,r,o;if(e.primary&&(t.stage.removeEventListener("stagemousemove",s),t.downPt.x!==t.stage.mouseX||t.downPt.y!==t.stage.mouseY))return n=Math.floor(Math.min(t.downPt.x,t.stage.mouseX)),o=Math.floor(Math.min(t.downPt.y,t.stage.mouseY)),r=Math.floor(Math.max(t.downPt.x,t.stage.mouseX)),i=Math.floor(Math.max(t.downPt.y,t.stage.mouseY)),t._updateRootSelecedArea(n,o,r,i)}}(this),this.stage.addEventListener("stagemousedown",this.handleMouseDown),this.stage.addEventListener("stagemouseup",this.handleMouseUp),this.mc=new n.Manager(this.$els.carousel),this.mc.add(new n.Pan({threshold:6,pointers:1,enable:this.canPanEnable})),this.mc.add(new n.Swipe({enable:this.canSwipeEnable}).recognizeWith(this.mc.get("pan"))),c=new n.Tap({event:"singletap"}),i=new n.Tap({event:"doubletap",taps:2,posThreshold:30}),i.recognizeWith(c),c.requireFailure([i]),this.mc.add([i,c]),this.mc.add(new n.Pinch({enable:this.canPinchEnable})),this.mc.on("singletap",function(t){return function(e){return t.$root.singleTapTime=new Date/1}}(this)),this.mc.on("pinchstart",function(t){return function(e){return o.log("pinchstart"),t.$set("isZooming",!0),t.transitionDurationOff(),t.$root.initScaleForSwipe=t.$root.scale,t.$root.manualScale=t.$root.scale,t.$root.autoScaleMode=!1,t.tmpx=t.getTmpX(),t.tmpy=t.getTmpY(),t.percentX=t.global2PercentX(e.center.x),t.percentY=t.global2PercentY(e.center.y),t.percentX=t.percentX-.5,t.translateXStart=t.translateX,t.translateYStart=t.translateY}}(this)),this.mc.on("pinchmove",function(t){return function(e){var i,n,r,s,a;return o.log("pinchmove"),t.eCenterX=e.center.x,t.eCenterY=e.center.y,t.$root.manualScale=Math.round(t.$root.initScaleForSwipe*e.scale*100)/100,n=t.$root.manualScale,r=2*t.$root.pageWidth*n,s=r*t.percentX+t.tmpx,t.moveX=-(s-e.center.x),i=t.$root.pageHeight*n,a=i*t.percentY+t.tmpy,t.moveY=-(a-e.center.y),t.translateX=t.moveX+t.translateXStart,t.translateY=t.moveY+t.translateYStart}}(this)),this.mc.on("pinchend",function(t){return function(e){var i,n,r,s,a,u,c;if(o.log("pinchend"),t.transitionDurationOn(),t.$root.scalet.$root.maxMagnification)return t.$root.zoomAt(t.$root.scaleArray.length-1);for(a=t.$root.scaleArray,i=r=0,s=a.length;rh&&(0===i?t.$root.scaleIndex=i+1:t.$root.scaleIndex=i);return n=!1,u=t.repositionX(t.$root.scale),t.translateX!==u&&(t.transitionDurationOn(),n=!0,t.translateX=u),c=t.repositionY(t.$root.scale),t.translateY!==c&&(t.transitionDurationOn(),n=!0,t.translateY=c),n?void 0:t.otherTransitionEnd()}}(this)),this.mc.on("doubletap",function(t){return function(e){if(!t.isTegakiCanvasVisible)return t.$root.scale===t.$root.maxMagnification?t.$root.zoomAt(0):t.$root.zoomin(e.center.x,e.center.y)}}(this)),this.mc.on("pinchcancel",function(t){return function(t){}}(this)),this.mc.on("panstart panmove panend",function(t){return function(e){var i,n,r;if((t.$root.scaleIndex>0||!t.$root.autoScaleMode)&&!t.isAreaCanvasVisible&&!t.isTegakiCanvasVisible)switch(o.log(e.type),e.type){case"panstart":return t.isPanning=!0,t.$set("panStartX",t.translateX),t.$set("panStartY",t.translateY),t.$set("isDragging",!0);case"panmove":return t.transitionDurationOff(),t.$set("translateX",e.deltaX+t.panStartX),t.$set("translateY",e.deltaY+t.panStartY);case"panend":if(i=!1,n=t.repositionX(t.$root.scale),t.translateX!==n&&(t.transitionDurationOn(),i=!0,t.translateX=n),r=t.repositionY(t.$root.scale),t.translateY!==r&&(t.transitionDurationOn(),i=!0,t.translateY=r),t.isPanning=!1,!i)return t.$set("isDragging",!1),t._sendZoomLog()}}}(this)),this.mc.on("swipeleft",function(t){return function(e){if(0===t.$root.scaleIndex&&t.$root.autoScaleMode&&!t.isAreaCanvasVisible&&!t.isTegakiCanvasVisible)return t.$root.flipR()}}(this)),this.mc.on("swiperight",function(t){return function(e){if(0===t.$root.scaleIndex&&t.$root.autoScaleMode&&!t.isAreaCanvasVisible&&!t.isTegakiCanvasVisible)return t.$root.flipL()}}(this))},beforeDestroy:function(){if(this.drawDisplayShape&&(this.linkStage.removeChild(this.drawDisplayShape),delete this.drawDisplayShape),this.linkStage&&(this.linkStage.removeAllChildren(),delete this.linkStage),this.$els.linkCanvas&&(this.$els.linkCanvas.width=0,this.$els.linkCanvas.height=0,this.$els.linkCanvas.remove(),delete this.$els.linkCanvas),this.drawingShape&&(this.penStage.removeChild(this.drawingShape),delete this.drawingShape),this.penStage&&(this.penStage.removeEventListener("stagemousemove",this.handleMouseMoveForPen),this.penStage.removeEventListener("stagemousedown",this.handleMouseDownForPen),this.penStage.removeEventListener("stagemouseup",this.handleMouseUpForPen),this.penStage.removeAllChildren(),delete this.penStage),this.$els.penCanvas&&(this.$els.penCanvas.width=0,this.$els.penCanvas.height=0,this.$els.penCanvas.remove(),delete this.$els.penCanvas),this.drawingCanvas&&(this.stage.removeEventListener("stagemousedown",this.handleMouseDown),this.stage.removeEventListener("stagemouseup",this.handleMouseUp),this.stage.removeChild(this.drawingCanvas),delete this.drawingCanvas),this.stage&&(this.stage.removeAllChildren(),delete this.stage),this.$els.areaCanvas&&(this.$els.areaCanvas.width=0,this.$els.areaCanvas.height=0,this.$els.areaCanvas.remove(),delete this.$els.areaCanvas),this.mc)return this.mc.destroy()}}}).call(e,i(3),i(24))},function(t,e,i){(function(e,n){var r,o,s,a,h,u,c,l,p,f,d,g,v,m,_,y,b,w,A;b=i(13),i(206),o=i(4),f=i(18),p=i(12),w=i(10),A=i(27),_=i(55),c=i(60),s=i(32),y=i(56),m=i(100),r=i(58),a=i(30),g=i(31),d=i(64),h=i(61),v=i(65),l=i(63),u=i(62),t.exports={name:"slide",mixins:[d,h,v,l,u],template:i(122),components:{"page-layer":i(57),"slide-shadow":i(97)},data:function(){return{imageLinks:[],asobi:0,slideViewNumForAnimation:0,translateX:0,translateY:0,panStartX:0,panStartY:0,transitionDuration:0,isZooming:!1,isDragging:!1,isFlipping:!1,isPanning:!1,isAreaCanvasVisible:!1,areaCanvasType:"",linkStage:null,canvasPadding:50,isTegakiCanvasVisible:!1,isTegakiIsElaser:!1,fusenOnPressIntervalID:0,moveX:0,moveY:0,tmpx:0,tmpy:0,percentX:0,percentY:0,eCenterX:0,eCenterY:0,fusenDepthCounter:0,pageSpaceAdjustor:1.9,textTimeout:null,textDelay:200}},computed:{isRightPage:function(){return"l2r"===this.$root.bookDirection?this.$root.activePage%2!==this.$root.startPageSetting:this.$root.activePage%2===this.$root.startPageSetting},linkCanvasBorderStyleForDebug:function(){return""},flipSpeed:function(){return 10*this.$root.speed*100},totalDistance:function(){return"r2l"===this.$root.bookDirection?this.slideViewNumForAnimation*(this.$root.appWidth/(2*this.$root.baseScale)+this.$root.pageWidth/this.pageSpaceAdjustor)*-1+this.asobi:(this.slideViewNumForAnimation*(this.$root.appWidth/(2*this.$root.baseScale)+this.$root.pageWidth/this.pageSpaceAdjustor)*-1+this.asobi*-1)*-1},index:function(){return this.$root.slideViewNum+0},a0:function(){return 5*Math.floor((this.index+4)/5)},a1:function(){return 5*Math.floor((this.index+3)/5)+1},a2:function(){return 5*Math.floor((this.index+2)/5)+2},a3:function(){return 5*Math.floor((this.index+1)/5)+3},a4:function(){return 5*Math.floor((this.index+0)/5)+4},carouselArray:function(){return[this.a0,this.a1,this.a2,this.a3,this.a4]}},methods:{answerLinkInitialDisplay:function(t){return function(t){return"answer"!==t.key||"extension"!==t.target}}(this),getLeft:function(t){return t-=1,"r2l"===this.$root.bookDirection?1*(this.$root.appWidth/(2*this.$root.baseScale)+this.$root.pageWidth/this.pageSpaceAdjustor)*t:1*(this.$root.appWidth/(2*this.$root.baseScale)+this.$root.pageWidth/this.pageSpaceAdjustor)*t*-1},checkPrintClass:function(t,e,i){return e===i+1},checkvshow:function(t,e,i){return this.isZooming||this.$root.scale>this.$root.baseScale?e===i+1:e<=i+2&&e>=i&&e>0&&e<=this.$root.pageTotal},gotoTargetPage:function(t){if(clearTimeout(this.textTimeout),t=parseInt(t,10),!isNaN(t)&&!(t<1||t>this.$root.pageTotal||this.isFlipping||t===this.$root.slideViewNum+1))return this.$root.selectedRightPageString="",this.$root.selectedLeftPageString="",this.isFlipping=!0,this.transitionDurationOff(),this.slideViewNumForAnimation=t-1,this.$root.slideViewNum=t-1,Vue.nextTick(function(t){return function(){return t.isFlipping=!1,t.onFlipStop()}}(this))},flipL:function(t){if(clearTimeout(this.textTimeout),!this.isFlipping){if("r2l"===this.$root.bookDirection){if(this.slideViewNumForAnimation<1)return}else if(this.slideViewNumForAnimation>this.$root.pageTotal-2)return;return this.$root.selectedRightPageString="",this.$root.selectedLeftPageString="",this.transitionDurationOn(),this.isFlipping=!0,"r2l"===this.$root.bookDirection?this.slideViewNumForAnimation-=1:this.slideViewNumForAnimation+=1}},flipR:function(t){if(clearTimeout(this.textTimeout),!this.isFlipping){if("r2l"===this.$root.bookDirection){if(this.slideViewNumForAnimation>this.$root.pageTotal-2)return}else if(this.slideViewNumForAnimation<1)return;return this.$root.selectedRightPageString="",this.$root.selectedLeftPageString="",this.transitionDurationOn(),this.isFlipping=!0,"r2l"===this.$root.bookDirection?this.slideViewNumForAnimation+=1:this.slideViewNumForAnimation-=1}},onFlipStop:function(){if(this.$dispatch("flipStop"),m.sendViewLog(),m.sendCustomPage(),this._sendZoomLog(),this.isAreaCanvasVisible)return this.textTimeout=setTimeout(function(t){return function(){return t.$broadcast("intersectChars")}}(this),this.textDelay)},transitionDurationOn:function(){return this.$set("transitionDuration",.2)},transitionDurationOff:function(){if(this.transitionDuration>0)return this.$set("transitionDuration",0)},otherTransitionEnd:function(t){return null==t&&(t=null),this.isFlipping?(this.$root.slideViewNum=this.slideViewNumForAnimation, this.isFlipping=!1,this.onFlipStop()):(this.isDragging&&this.$set("isDragging",!1),this._sendZoomLog()),this.$set("isZooming",!1),this.transitionDurationOff()},_sendZoomLog:function(){var t,i,n,r,o,s,a,h,u,c,l,p;return b()||(c=this.isRightPage?this.$root.pageWidth:0,s=e.max([this.global2PercentX(this.$root.componentLeft),0]),u=e.min([this.global2PercentX(this.$root.componentLeft+this.$root.componentWidth),1]),p=e.max([this.global2PercentY(this.$root.componentTop),0]),i=e.min([this.global2PercentY(this.$root.componentTop+this.$root.componentHeight),1]),o=e.floor(s*this.$root.pageWidth),h=e.floor(u*this.$root.pageWidth),l=e.floor(p*this.$root.pageHeight),t=e.floor(i*this.$root.pageHeight),this._updateRootSelecedArea(o+c,l,h+c,t)),n=this.$els.slide.getBoundingClientRect(),a=this.$root.activePage,r="r2l"===this.$root.bookDirection?(a+this.$root.startPageSetting)%2===1:(a+this.$root.startPageSetting)%2===0,m.sendZoomLog(n,r)},_drawRectOnDrawingCanvas:function(t,e,i,n){return this.drawingCanvas.graphics.clear().beginFill("rgba(255,170,170,0.5)").drawRect(t,e,i,n),this.areaStage.update()},_updateRootSelecedArea:function(t,e,i,n){var r,o,s,a,h,u,c,l,p,f,d,g;if("text"===this.areaCanvasType)return this.$root.selectedAreaIsRightPage=this.isRightPage,this.$root.selectedAreaLeft=t,this.$root.selectedAreaTop=e,this.$root.selectedAreaRight=i,this.$root.selectedAreaBottom=n,this.$broadcast("intersectChars");if("url"===this.areaCanvasType)return t===e&&e===i&&i===n&&0===n&&(g=this.isRightPage?this.$root.pageWidth:0,t=0+g,e=0,i=1*this.$root.pageWidth+g,n=this.$root.pageHeight),this.$root.selectedAreaForUrlLeft=t,this.$root.selectedAreaForUrlTop=e,this.$root.selectedAreaForUrlRight=i,this.$root.selectedAreaForUrlBottom=n;if("zoom"!==this.areaCanvasType)return t===e&&e===i&&i===n&&0===n&&(g=this.isRightPage?this.$root.pageWidth:0,t=0+g,e=0,i=1*this.$root.pageWidth+g,n=this.$root.pageHeight),this.$root.selectedAreaForUrlLeft=t,this.$root.selectedAreaForUrlTop=e,this.$root.selectedAreaForUrlRight=i,this.$root.selectedAreaForUrlBottom=n;if(this.isAreaCanvasVisible)if(t===e&&e===i&&i===n&&0===n);else{for(c=0,f=this.$root.scaleArray.length;;){if(d=this.$root.scaleArray[f],h=this.$root.componentWidth>(i-t)*d&&this.$root.componentHeight>(n-e)*d&&f0)return this.$set("isZooming",!0),this.transitionDurationOn(),(i-t)/2+t>this.$root.pageWidth&&(i-=this.$root.pageWidth,t-=this.$root.pageWidth),u=this.$root.scaleArray[c],a=u*this.$root.pageWidth-this.$root.baseScale*this.$root.pageWidth,s=u*this.$root.pageHeight-this.$root.baseScale*this.$root.pageHeight,this.translateX=a/2*-1,this.translateY=s/2*-1,r=this.$root.pageWidth/2,o=this.$root.pageHeight/2,l=(i-t)/2+t,p=(n-e)/2+e,this.translateX-=(l-r)*u,this.translateY-=(p-o)*u,this.$root.scaleIndex=c,this.$parent.$dispatch("areaCanvas","zoom",!1)}},_drawFusensFromPageComponent:function(t,e){var i,n,r,o;if(t&&!this.isFlipping){for(o=[],n=0,r=t.length;nf;u=0<=f?++c:--c)if("fusen"===(null!=(g=this.linkStage.getChildAt(u))?g.name:void 0)){if(h=this.linkStage.getChildAt(u),s=new a(h.id,h.getText(),e.round(h.x),e.round(h.y),h.bgColor,"#000000",300,100),s.resolve(this.$root.activePageId),this.$root.isOnLibra&&s.id===t)switch(i){case"libraAdd":this.addLibra("fusens",s);break;case"libraUpdate":this.updateLibra("fusens",s,n)}l.push(s)}if(this.$root.isOnLibra);else try{return p.add(this.$root.activePageId,l)}catch(t){return o=t,this.$root.error=o}}},p3:function(){var t,i;if(this.$root.isOnLibra){if("carousel"===this.$options.name){if(!this.restoredLibraPenCarouselCurrentPage)return void o.log("libraの線が描画されていないから止める")}else if(!this.restoredLibraPenSlideCurrentPage)return void o.log("libraの線が描画されていないから止める");if(this.penDataArray.length<1)return}if(i=this.$root.activePageId,e.last(this.penDataArray).resolve(i),this.$root.isOnLibra)return this.addLibra("pens",e.last(this.penDataArray));try{return f.add(i,this.penDataArray)}catch(e){return t=e,this.$root.error=t}},repositionX:function(t){return this.translateX>this.$root.pageWidth*this.$root.baseScale/2?this.$root.pageWidth*this.$root.baseScale/2:this.translateXthis.$root.pageHeight*this.$root.baseScale/2?this.$root.pageHeight*this.$root.baseScale/2:this.translateY=0;)"drawDisplayShape"===(null!=(o=this.linkStage.getChildAt(e))?o.name:void 0)||(s=this.linkStage.getChildAt(e),i=s.link,parseInt(t,10)===parseInt(s.page,10)&&"extension"===i.linkTarget[0]&&"answer"===i.key[0]&&(s.toggle&&(n+=1),a.push(s))),e--;return(h=function(t){return function(e){var i,n,r,o,s,h;for(s=[],i=0,n=a.length;i=0;)"drawDisplayShape"===(null!=(o=this.linkStage.getChildAt(e))?o.name:void 0)||(s=this.linkStage.getChildAt(e),i=s.link,"extension"===i.linkTarget[0]&&"answer"===i.key[0]&&t===i.linkUrl[0]&&(s.toggle&&(n+=1),a.push(s))),e--;return(h=function(t){return function(e){var i,n,r,o,s,h;for(s=[],i=0,n=a.length;i=0;)"drawDisplayShape"===(null!=(o=this.linkStage.getChildAt(i))?o.name:void 0)||this.linkStage.removeChildAt(i),i--;return this.imageLinks=[],this.clearDrawDisplayShape(),this.penDataArray=[],this.clearDrawingShape()}})},ready:function(){var t,e,i,s,a,h,u,c,l,p,f,d,g,v,_,y,A;if(this.$root.isInitialized?(this.transitionDurationOff(),this.$root.slideViewNum=Math.max(this.$root.activeLeftPage-1,this.$root.activeRightPage-1,0),this.slideViewNumForAnimation=Math.max(this.$root.activeLeftPage-1,this.$root.activeRightPage-1,0),this.$root.scalethis.$root.pageWidth,c&&(this.$root.startRectX-=r.pageWidth,r.isRightPageNum(this.$root.activePage)||(f="r2l"===this.$root.bookDirection?1:-1,this.$root.gotoTargetPage(this.$root.activePage+f))),c||r.isRightPageNum(this.$root.activePage)&&(f="r2l"===this.$root.bookDirection?-1:1,this.$root.gotoTargetPage(this.$root.activePage+f)),this.$root.startRectX+this.$root.startRectW>this.$root.pageWidth&&(this.$root.startRectW=this.$root.pageWidth-this.$root.startRectX),this.$root.startRectX<0&&(d=this.$root.startRectX,this.$root.startRectX=0,this.$root.startRectW+=d),this.$root.initAreaScaleIndex>0)){for(_=Number(this.$root.initAreaScaleIndex);;){if(y=this.$root.scaleArray[_],u=this.$root.componentWidth>this.$root.startRectW*y&&this.$root.componentHeight>this.$root.startRectH*y&&_",this.$root.initAreaScaleIndex),this.$root.initAreaScaleIndex>0&&(p=Math.min(this.$root.initAreaScaleIndex,this.$root.scaleArray.length-1),l=this.$root.scaleArray[p],s=l*this.$root.pageWidth-this.$root.baseScale*this.$root.pageWidth,i=l*this.$root.pageHeight-this.$root.baseScale*this.$root.pageHeight,this.translateX=s/2*-1,this.translateY=i/2*-1,t=this.$root.pageWidth/2,e=this.$root.pageHeight/2,g=this.$root.startRectW/2+this.$root.startRectX,v=this.$root.startRectH/2+this.$root.startRectY,this.translateX-=(g-t)*l,this.translateY-=(v-e)*l,this.$root.scaleIndex=p)}return this.$root.initEmbedScale>0&&(t=this.$root.embedStartX,e=this.$root.embedStartY,c=t>this.$root.pageWidth,c&&(r.isRightPageNum(this.$root.activePage)||(this.$root.gotoTargetPage(this.$root.activePage+1),this.$root.embedStartX-=this.$root.pageWidth,t=this.$root.embedStartX)),c||r.isRightPageNum(this.$root.activePage)&&this.$root.gotoTargetPage(this.$root.activePage-1),this.$root.scaleIndex=Math.min(this.$root.initEmbedScale,this.$root.scaleArray.length-1),this.translateX=(this.$root.pageWidth/4-t)*this.$root.scaleArray[this.$root.scaleIndex],this.translateY=(this.$root.pageHeight/4-e)*this.$root.scaleArray[this.$root.scaleIndex]),m.sendViewLog(),m.sendCustomPage(),this._sendZoomLog(),null===this.linkStage&&(this.linkStage=new createjs.Stage(this.$els.linkCanvas)),createjs.Touch.isSupported()&&createjs.Touch.enable(this.linkStage,!1),this.drawDisplayShape=new createjs.Shape,this.drawDisplayShape.name="drawDisplayShape",this.drawDisplayShape.x=this.canvasPadding,this.drawDisplayShape.y=this.canvasPadding,this.linkStage.addChild(this.drawDisplayShape),this.drawDisplayShape.cache(0,0,this.$els.linkCanvas.width,this.$els.linkCanvas.height),this.penStage=new createjs.Stage(this.$els.penCanvas),this.penStage.enableDOMEvents(!0),this.drawingShape=new createjs.Shape,this.penStage.addChild(this.drawingShape),this.penStage.update(),this.penDataArray=[],createjs.Touch.isSupported()&&createjs.Touch.enable(this.penStage,!1),this.drawingShape.cache(0,0,this.$els.penCanvas.width,this.$els.penCanvas.height),b()||w.ie()?(this.handleMouseDownForPen=function(t){return function(e){return t.isPenDrawing&&t.p3(),t.p1(),t.isPenDrawing=!0}}(this),this.handleMouseMoveForPen=function(t){return function(e){if(t.isPenDrawing)return t.p2(e)}}(this),this.handleMouseUpForPen=function(t){return function(e){return t.p3(),t.isPenDrawing=!1}}(this)):(this.handleMouseDownForPen=function(t){return function(e){return t.isPenDrawing&&t.p3(),t.p1()}}(this),this.handleMouseMoveForPen=function(t){return function(e){return t.isPenDrawing=!0,t.p2(e)}}(this),this.handleMouseUpForPen=function(t){return function(e){return t.p3(),t.isPenDrawing=!1}}(this)),this.penStage.addEventListener("stagemousemove",this.handleMouseMoveForPen),this.penStage.addEventListener("stagemousedown",this.handleMouseDownForPen),this.penStage.addEventListener("stagemouseup",this.handleMouseUpForPen),this.areaStage=new createjs.Stage(this.$els.areaCanvas),this.areaStage.enableDOMEvents(!0),createjs.Touch.enable(this.areaStage,!1),this.drawingCanvas=new createjs.Shape,this.areaStage.addChild(this.drawingCanvas),this.areaStage.update(),this.handleMouseDown=function(t){return function(e){if(e.primary)return t.downPt=new createjs.Point(t.areaStage.mouseX,t.areaStage.mouseY),t.areaStage.addEventListener("stagemousemove",h)}}(this),h=function(t){return function(e){if(e.primary)return t._drawRectOnDrawingCanvas(t.downPt.x,t.downPt.y,t.areaStage.mouseX-t.downPt.x,t.areaStage.mouseY-t.downPt.y)}}(this),this.handleMouseUp=function(t){return function(e){var i,n,r,o,s;if(e.primary&&(t.areaStage.removeEventListener("stagemousemove",h),t.downPt.x!==t.areaStage.mouseX||t.downPt.y!==t.areaStage.mouseY))return o=t.isRightPage?t.$root.pageWidth:0,n=Math.floor(Math.min(t.downPt.x+o,t.areaStage.mouseX+o)),s=Math.floor(Math.min(t.downPt.y,t.areaStage.mouseY)),r=Math.floor(Math.max(t.downPt.x+o,t.areaStage.mouseX+o)),i=Math.floor(Math.max(t.downPt.y,t.areaStage.mouseY)),t._updateRootSelecedArea(n,s,r,i)}}(this),this.areaStage.addEventListener("stagemousedown",this.handleMouseDown),this.areaStage.addEventListener("stagemouseup",this.handleMouseUp),this.mc=new n.Manager(this.$els.slide),this.mc.add(new n.Pan({threshold:10,pointers:1,enable:this.canPanEnable})),this.mc.add(new n.Swipe({enable:this.canSwipeEnable}).recognizeWith(this.mc.get("pan"))),A=new n.Tap({event:"singletap"}),a=new n.Tap({event:"doubletap",taps:2,posThreshold:30}),a.recognizeWith(A),A.requireFailure([a]),this.mc.add([a,A]),this.mc.add(new n.Pinch({enable:this.canPinchEnable})),this.mc.on("singletap",function(t){return function(e){return t.$root.singleTapTime=new Date/1}}(this)),this.mc.on("pinchstart",function(t){return function(e){var i,n,r,s;return o.log("pinchstart"),t.$set("isZooming",!0),t.transitionDurationOff(),t.$root.initScaleForSwipe=t.$root.scale,t.$root.manualScale=t.$root.scale,t.$root.autoScaleMode=!1,n=t.$els.slide.getBoundingClientRect().width,i=t.$els.slide.getBoundingClientRect().height,r=e.center.x-t.$els.slide.getBoundingClientRect().left,s=e.center.y-t.$els.slide.getBoundingClientRect().top,t.percentX=Math.floor(r/n*100)/100,t.percentY=Math.floor(s/i*100)/100,t.tmpx=t.$els.slide.getBoundingClientRect().left,t.tmpy=t.$els.slide.getBoundingClientRect().top,t.translateXStart=t.translateX,t.translateYStart=t.translateY}}(this)),this.mc.on("pinchend",function(t){return function(e){var i,n,r,s,a,h,u;if(o.log("pinchend"),t.transitionDurationOn(),t.$root.scalet.$root.maxMagnification)return t.$root.zoomAt(t.$root.scaleArray.length-1);for(a=t.$root.scaleArray,i=r=0,s=a.length;r_&&(0===i?t.$root.scaleIndex=i+1:t.$root.scaleIndex=i);return n=!1,h=t.repositionX(t.$root.scale),t.translateX!==h&&(t.transitionDurationOn(),n=!0,t.translateX=h),u=t.repositionY(t.$root.scale),t.translateY!==u&&(t.transitionDurationOn(),n=!0,t.translateY=u),n?void 0:t.otherTransitionEnd()}}(this)),this.mc.on("pinchcancel",function(t){return function(t){}}(this)),this.mc.on("pinchmove",function(t){return function(e){var i,n,r,s;return o.log("pinchmove"),t.eCenterX=e.center.x,t.eCenterY=e.center.y,t.$root.manualScale=Math.round(t.$root.initScaleForSwipe*e.scale*100)/100,l=t.$root.manualScale,n=t.$root.pageWidth*l,r=n*t.percentX+t.tmpx,t.moveX=-(r-e.center.x),i=t.$root.pageHeight*l,s=i*t.percentY+t.tmpy,t.moveY=-(s-e.center.y),t.translateX=t.moveX+t.translateXStart,t.translateY=t.moveY+t.translateYStart}}(this)),this.mc.on("doubletap",function(t){return function(e){if(!t.isTegakiCanvasVisible)return t.$root.scale===t.$root.maxMagnification?t.$root.zoomAt(0):t.$root.zoomin(e.center.x,e.center.y)}}(this)),this.mc.on("panstart panmove panend",function(t){return function(e){var i,n,r;if(!t.isAreaCanvasVisible&&!t.isTegakiCanvasVisible)switch(e.type){case"panstart":if(t.isPanning=!0,0===t.$root.scaleIndex&&t.$root.autoScaleMode){if(t.isFlipping)return;return t.$set("panStartX",t.asobi)}return t.$set("panStartX",t.translateX),t.$set("panStartY",t.translateY),t.$set("isDragging",!0);case"panmove":if(t.transitionDurationOff(),0===t.$root.scaleIndex&&t.$root.autoScaleMode){if(t.isFlipping)return;return t.$set("asobi",e.deltaX/t.$root.scale+t.panStartX)}return t.$set("translateX",e.deltaX+t.panStartX),t.$set("translateY",e.deltaY+t.panStartY);case"panend":if(t.isPanning=!1,0===t.$root.scaleIndex&&t.$root.autoScaleMode){if(t.isFlipping)return;return t.asobit.$root.pageWidth/8&&t.flipL(),t.$set("asobi",0)}if(i=!1,n=t.repositionX(t.$root.scale),t.translateX!==n&&(t.transitionDurationOn(),i=!0,t.translateX=n),r=t.repositionY(t.$root.scale),t.translateY!==r&&(t.transitionDurationOn(),i=!0,t.translateY=r),!i)return t.$set("isDragging",!1),t._sendZoomLog()}}}(this)),this.mc.on("swipeleft",function(t){return function(t){}}(this)),this.mc.on("swiperight",function(t){return function(t){}}(this))},beforeDestroy:function(){if(this.drawDisplayShape&&(this.linkStage.removeChild(this.drawDisplayShape),delete this.drawDisplayShape),this.linkStage&&(this.linkStage.removeAllChildren(),delete this.linkStage),this.$els.linkCanvas&&(this.$els.linkCanvas.width=0,this.$els.linkCanvas.height=0,this.$els.linkCanvas.remove(),delete this.$els.linkCanvas),this.drawingShape&&(this.penStage.removeChild(this.drawingShape),delete this.drawingShape),this.penStage&&(this.penStage.removeEventListener("stagemousemove",this.handleMouseMoveForPen),this.penStage.removeEventListener("stagemousedown",this.handleMouseDownForPen),this.penStage.removeEventListener("stagemouseup",this.handleMouseUpForPen),this.penStage.removeAllChildren(),delete this.penStage),this.$els.penCanvas&&(this.$els.penCanvas.width=0,this.$els.penCanvas.height=0,this.$els.penCanvas.remove(),delete this.$els.penCanvas),this.drawingCanvas&&(this.areaStage.removeEventListener("stagemousedown",this.handleMouseDown),this.areaStage.removeEventListener("stagemouseup",this.handleMouseUp),this.areaStage.removeChild(this.drawingCanvas),delete this.drawingCanvas),this.areaStage&&(this.areaStage.removeAllChildren(),delete this.areaStage),this.$els.areaCanvas&&(this.$els.areaCanvas.width=0,this.$els.areaCanvas.height=0,this.$els.areaCanvas.remove(),delete this.$els.areaCanvas),this.mc)return this.mc.destroy()}}}).call(e,i(3),i(24))},function(t,e,i){e=t.exports=i(15)(),e.push([t.id,".nombre{text-shadow:1px 1px 1px #fff,-1px 1px 1px #fff,1px -1px 1px #fff,-1px -1px 1px #fff}",""])},function(t,e,i){e=t.exports=i(15)(),e.push([t.id,".carouselpageshadow{box-shadow:rgba(0,0,0,.2) 0 0 5px 3px;background-color:#fdfdfd}.koguchi{box-shadow:#d2d2d2 0 0 0 1px;background-color:#fff}",""])},function(t,e,i){e=t.exports=i(15)(),e.push([t.id,"",""])},function(t,e,i){e=t.exports=i(15)(),e.push([t.id,".slideshadow{box-shadow:hsla(0,0%,67%,.651) 0 0 5px 3px;background-color:#fdfdfd}",""])},function(t,e,i){e=t.exports=i(15)(),e.push([t.id,"#carousel{position:absolute}.mp3-loading,.mp3-playing{background-color:#fff;border:1px solid #ccc}.bounce-enter{animation:bounce-in .2s}.bounce-leave{animation:bounce-out 0s}.initframe{animation:Flash1 .6s infinite}#flipLeft2Right,#flipRight2Left,.flipslice{transform-style:preserve-3d;transform-origin:0 0 0}.flipslice{border:0 solid #09f;position:absolute;top:0;left:0;margin:0;padding:0}#flipLeft2Right #ura2,#flipRight2Left #ura{transform:rotateY(0.1deg);transform-origin:-100% 0}#flipLeft2Right #omote2 div,#flipRight2Left #omote div{box-shadow:inset hsla(0,0%,100%,.3) 0 -1px 0 0,#ccc 0 1px 0 0}#flipLeft2Right #omote2>div>div>div>div>div>div>div>div>div>div,#flipRight2Left #omote>div>div>div>div>div>div>div>div>div>div{box-shadow:inset hsla(0,0%,100%,.3) -1px -1px 0 0,#ccc 1px 1px 0 0}div.flipslicecanvas{position:absolute;transform:rotateY(0deg) scaleX(-1);background-repeat:no-repeat}@keyframes bounce-in{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes bounce-out{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes Flash1{50%{opacity:0}}",""])},function(t,e,i){e=t.exports=i(15)(),e.push([t.id,"#slide{position:absolute}.mp3-loading,.mp3-playing{background-color:#fff;border:1px solid #ccc}.initframe{animation:Flash1 .6s infinite}@keyframes Flash1{50%{opacity:0}}",""])},function(t,e,i){(function(e){t.exports=e.Hammer=i(24)}).call(e,function(){return this}())},function(t,e,i){(function(e){t.exports=e.Vue=i(76)}).call(e,function(){return this}())},function(t,e,i){(function(e){t.exports=e.VueTouch=i(184)}).call(e,function(){return this}())},function(t,e,i){t.exports=i.p+"peel_end.mp3"},function(t,e,i){t.exports=i.p+"peel_start.mp3"},function(t,e){t.exports="
\"\"0 && page<=$root.pageTotal\" v-bind:style=\"[getImageStyle, { width: $root.pageWidth * 1 + 'px', height: $root.pageHeight * 1 + 'px'}]\" v-bind:src=\"$root.imagepath ? $root.imagepath + 'page'+ pageFolderNum+'/x1.jpg?c='+$root.noCacheParam : $root.bookpath + 'page'+ pageFolderNum+'/x1.jpg?c='+$root.noCacheParam\" v-bind:id=\"'x1Image' + page\">0 && page<=$root.pageTotal\" alt=\"\" v-bind:src=$root.evaluationUseOnlyImage v-bind:style=\"{\n position: 'absolute',\n maxWidth: '100%',\n maxHeight: '100%',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n margin: 'auto',\n opacity: 0.8,\n transform: 'translate3d(0px,0px,0px)'\n }\">
{{nombre}}
{{nombre}}
{{nombre}}
x2slices:{{x2slices.length}}
x4slices:{{x4slices.length}}
x8slices:{{x8slices.length}}
\"\" \"\"
{{i+Math.floor(i/10)*10}}
{{10+i+Math.floor(i/10)*10}}
\"\" \"\"
{{index}}
{{$root.view}}
{{isActivePageAndZoomingLayer2}}
{{isActivePageAndZoomingLayer4}}
{{isActivePageAndZoomingLayer8}}
{{x2slices.length}}
{{x4slices.length}}
{{x8slices.length}}
"},function(t,e){t.exports="
"; },function(t,e){t.exports="
\"\"
"},function(t,e){t.exports="
{{translateX}},{{translateY}}
\"\"
\"\"
carousel
isShiftPress:{{isShiftPress}}
restoredLibraPenCarouselLPage:{{restoredLibraPenCarouselLPage}}
restoredLibraPenCarouselRPage:{{restoredLibraPenCarouselRPage}}
restoredLibraPenCarouselCurrentPage:{{restoredLibraPenCarouselCurrentPage}}
@$root.activeLeftPageId:{{$root.activeLeftPageId}}
@$root.activeRightPageId:{{$root.activeRightPageId}}
"},function(t,e){t.exports="
{{percentX*100}}%,{{percentY*100}}%
\"\"
\"\"
restoredLibraPenSlideCurrentPage:{{restoredLibraPenSlideCurrentPage}}
"},function(t,e){(function(){/*! * @license EaselJS * Visit http://createjs.com/ for documentation, updates and examples. * * Copyright (c) 2011-2015 gskinner.com, inc. * * Distributed under the terms of the MIT license. * http://www.opensource.org/licenses/mit-license.html * * This notice shall be included in all copies or substantial portions of the Software. */ this.createjs=this.createjs||{},createjs.extend=function(t,e){"use strict";function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i},this.createjs=this.createjs||{},createjs.promote=function(t,e){"use strict";var i=t.prototype,n=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__;if(n){i[(e+="_")+"constructor"]=n.constructor;for(var r in n)i.hasOwnProperty(r)&&"function"==typeof n[r]&&(i[e+r]=n[r])}return t},this.createjs=this.createjs||{},createjs.indexOf=function(t,e){"use strict";for(var i=0,n=t.length;n>i;i++)if(e===t[i])return i;return-1},this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.type=t,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!e,this.cancelable=!!i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e=t.prototype;e.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},e.stopPropagation=function(){this.propagationStopped=!0},e.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.remove=function(){this.removed=!0},e.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var e=t.prototype;t.initialize=function(t){t.addEventListener=e.addEventListener,t.on=e.on,t.removeEventListener=t.off=e.removeEventListener,t.removeAllEventListeners=e.removeAllEventListeners,t.hasEventListener=e.hasEventListener,t.dispatchEvent=e.dispatchEvent,t._dispatchEvent=e._dispatchEvent,t.willTrigger=e.willTrigger},e.addEventListener=function(t,e,i){var n;n=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var r=n[t];return r&&this.removeEventListener(t,e,i),r=n[t],r?r.push(e):n[t]=[e],e},e.on=function(t,e,i,n,r,o){return e.handleEvent&&(i=i||e,e=e.handleEvent),i=i||this,this.addEventListener(t,function(t){e.call(i,t,r),n&&t.remove()},o)},e.removeEventListener=function(t,e,i){var n=i?this._captureListeners:this._listeners;if(n){var r=n[t];if(r)for(var o=0,s=r.length;s>o;o++)if(r[o]==e){1==s?delete n[t]:r.splice(o,1);break}}},e.off=e.removeEventListener,e.removeAllEventListeners=function(t){t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null},e.dispatchEvent=function(t,e,i){if("string"==typeof t){var n=this._listeners;if(!(e||n&&n[t]))return!0;t=new createjs.Event(t,e,i)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var r=this,o=[r];r.parent;)o.push(r=r.parent);var s,a=o.length;for(s=a-1;s>=0&&!t.propagationStopped;s--)o[s]._dispatchEvent(t,1+(0==s));for(s=1;a>s&&!t.propagationStopped;s++)o[s]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return!t.defaultPrevented},e.hasEventListener=function(t){var e=this._listeners,i=this._captureListeners;return!!(e&&e[t]||i&&i[t])},e.willTrigger=function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1},e.toString=function(){return"[EventDispatcher]"},e._dispatchEvent=function(t,e){var i,n=1==e?this._captureListeners:this._listeners;if(t&&n){var r=n[t.type];if(!r||!(i=r.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,r=r.slice();for(var o=0;i>o&&!t.immediatePropagationStopped;o++){var s=r[o];s.handleEvent?s.handleEvent(t):s(t),t.removed&&(this.off(t.type,s,1==e),t.removed=!1)}}},createjs.EventDispatcher=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Ticker cannot be instantiated."}t.RAF_SYNCHED="synched",t.RAF="raf",t.TIMEOUT="timeout",t.useRAF=!1,t.timingMode=null,t.maxDelta=0,t.paused=!1,t.removeEventListener=null,t.removeAllEventListeners=null,t.dispatchEvent=null,t.hasEventListener=null,t._listeners=null,createjs.EventDispatcher.initialize(t),t._addEventListener=t.addEventListener,t.addEventListener=function(){return!t._inited&&t.init(),t._addEventListener.apply(t,arguments)},t._inited=!1,t._startTime=0,t._pausedTime=0,t._ticks=0,t._pausedTicks=0,t._interval=50,t._lastTime=0,t._times=null,t._tickTimes=null,t._timerId=null,t._raf=!0,t.setInterval=function(e){t._interval=e,t._inited&&t._setupTick()},t.getInterval=function(){return t._interval},t.setFPS=function(e){t.setInterval(1e3/e)},t.getFPS=function(){return 1e3/t._interval};try{Object.defineProperties(t,{interval:{get:t.getInterval,set:t.setInterval},framerate:{get:t.getFPS,set:t.setFPS}})}catch(t){console.log(t)}t.init=function(){t._inited||(t._inited=!0,t._times=[],t._tickTimes=[],t._startTime=t._getTime(),t._times.push(t._lastTime=0),t.interval=t._interval)},t.reset=function(){if(t._raf){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;e&&e(t._timerId)}else clearTimeout(t._timerId);t.removeAllEventListeners("tick"),t._timerId=t._times=t._tickTimes=null,t._startTime=t._lastTime=t._ticks=0,t._inited=!1},t.getMeasuredTickTime=function(e){var i=0,n=t._tickTimes;if(!n||n.length<1)return-1;e=Math.min(n.length,e||0|t.getFPS());for(var r=0;e>r;r++)i+=n[r];return i/e},t.getMeasuredFPS=function(e){var i=t._times;return!i||i.length<2?-1:(e=Math.min(i.length-1,e||0|t.getFPS()),1e3/((i[0]-i[e])/e))},t.setPaused=function(e){t.paused=e},t.getPaused=function(){return t.paused},t.getTime=function(e){return t._startTime?t._getTime()-(e?t._pausedTime:0):-1},t.getEventTime=function(e){return t._startTime?(t._lastTime||t._startTime)-(e?t._pausedTime:0):-1},t.getTicks=function(e){return t._ticks-(e?t._pausedTicks:0)},t._handleSynch=function(){t._timerId=null,t._setupTick(),t._getTime()-t._lastTime>=.97*(t._interval-1)&&t._tick()},t._handleRAF=function(){t._timerId=null,t._setupTick(),t._tick()},t._handleTimeout=function(){t._timerId=null,t._setupTick(),t._tick()},t._setupTick=function(){if(null==t._timerId){var e=t.timingMode||t.useRAF&&t.RAF_SYNCHED;if(e==t.RAF_SYNCHED||e==t.RAF){var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(i)return t._timerId=i(e==t.RAF?t._handleRAF:t._handleSynch),void(t._raf=!0)}t._raf=!1,t._timerId=setTimeout(t._handleTimeout,t._interval)}},t._tick=function(){var e=t.paused,i=t._getTime(),n=i-t._lastTime;if(t._lastTime=i,t._ticks++,e&&(t._pausedTicks++,t._pausedTime+=n),t.hasEventListener("tick")){var r=new createjs.Event("tick"),o=t.maxDelta;r.delta=o&&n>o?o:n,r.paused=e,r.time=i,r.runTime=i-t._pausedTime,t.dispatchEvent(r)}for(t._tickTimes.unshift(t._getTime()-i);t._tickTimes.length>100;)t._tickTimes.pop();for(t._times.unshift(i);t._times.length>100;)t._times.pop()};var e=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);t._getTime=function(){return(e&&e.call(performance)||(new Date).getTime())-t._startTime},createjs.Ticker=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"UID cannot be instantiated"}t._nextID=0,t.get=function(){return t._nextID++},createjs.UID=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n,r,o,s,a,h,u,c){this.Event_constructor(t,e,i),this.stageX=n,this.stageY=r,this.rawX=null==h?n:h,this.rawY=null==u?r:u,this.nativeEvent=o,this.pointerID=s,this.primary=!!a,this.relatedTarget=c}var e=createjs.extend(t,createjs.Event);e._get_localX=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).x},e._get_localY=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).y},e._get_isTouch=function(){return-1!==this.pointerID};try{Object.defineProperties(e,{localX:{get:e._get_localX},localY:{get:e._get_localY},isTouch:{get:e._get_isTouch}})}catch(t){}e.clone=function(){return new t(this.type,this.bubbles,this.cancelable,this.stageX,this.stageY,this.nativeEvent,this.pointerID,this.primary,this.rawX,this.rawY)},e.toString=function(){return"[MouseEvent (type="+this.type+" stageX="+this.stageX+" stageY="+this.stageY+")]"},createjs.MouseEvent=createjs.promote(t,"Event")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n,r,o){this.setValues(t,e,i,n,r,o)}var e=t.prototype;t.DEG_TO_RAD=Math.PI/180,t.identity=null,e.setValues=function(t,e,i,n,r,o){return this.a=null==t?1:t,this.b=e||0,this.c=i||0,this.d=null==n?1:n,this.tx=r||0,this.ty=o||0,this},e.append=function(t,e,i,n,r,o){var s=this.a,a=this.b,h=this.c,u=this.d;return(1!=t||0!=e||0!=i||1!=n)&&(this.a=s*t+h*e,this.b=a*t+u*e,this.c=s*i+h*n,this.d=a*i+u*n),this.tx=s*r+h*o+this.tx,this.ty=a*r+u*o+this.ty,this},e.prepend=function(t,e,i,n,r,o){var s=this.a,a=this.c,h=this.tx;return this.a=t*s+i*this.b,this.b=e*s+n*this.b,this.c=t*a+i*this.d,this.d=e*a+n*this.d,this.tx=t*h+i*this.ty+r,this.ty=e*h+n*this.ty+o,this},e.appendMatrix=function(t){return this.append(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.prependMatrix=function(t){return this.prepend(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.appendTransform=function(e,i,n,r,o,s,a,h,u){if(o%360)var c=o*t.DEG_TO_RAD,l=Math.cos(c),p=Math.sin(c);else l=1,p=0;return s||a?(s*=t.DEG_TO_RAD,a*=t.DEG_TO_RAD,this.append(Math.cos(a),Math.sin(a),-Math.sin(s),Math.cos(s),e,i),this.append(l*n,p*n,-p*r,l*r,0,0)):this.append(l*n,p*n,-p*r,l*r,e,i),(h||u)&&(this.tx-=h*this.a+u*this.c,this.ty-=h*this.b+u*this.d),this},e.prependTransform=function(e,i,n,r,o,s,a,h,u){if(o%360)var c=o*t.DEG_TO_RAD,l=Math.cos(c),p=Math.sin(c);else l=1,p=0;return(h||u)&&(this.tx-=h,this.ty-=u),s||a?(s*=t.DEG_TO_RAD,a*=t.DEG_TO_RAD,this.prepend(l*n,p*n,-p*r,l*r,0,0),this.prepend(Math.cos(a),Math.sin(a),-Math.sin(s),Math.cos(s),e,i)):this.prepend(l*n,p*n,-p*r,l*r,e,i),this},e.rotate=function(e){e*=t.DEG_TO_RAD;var i=Math.cos(e),n=Math.sin(e),r=this.a,o=this.b;return this.a=r*i+this.c*n,this.b=o*i+this.d*n,this.c=-r*n+this.c*i,this.d=-o*n+this.d*i,this},e.skew=function(e,i){return e*=t.DEG_TO_RAD,i*=t.DEG_TO_RAD,this.append(Math.cos(i),Math.sin(i),-Math.sin(e),Math.cos(e),0,0),this},e.scale=function(t,e){return this.a*=t,this.b*=t,this.c*=e,this.d*=e,this},e.translate=function(t,e){return this.tx+=this.a*t+this.c*e,this.ty+=this.b*t+this.d*e,this},e.identity=function(){return this.a=this.d=1,this.b=this.c=this.tx=this.ty=0,this},e.invert=function(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.tx,o=t*n-e*i;return this.a=n/o,this.b=-e/o,this.c=-i/o,this.d=t/o,this.tx=(i*this.ty-n*r)/o,this.ty=-(t*this.ty-e*r)/o,this},e.isIdentity=function(){return 0===this.tx&&0===this.ty&&1===this.a&&0===this.b&&0===this.c&&1===this.d},e.equals=function(t){return this.tx===t.tx&&this.ty===t.ty&&this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d},e.transformPoint=function(t,e,i){return i=i||{},i.x=t*this.a+e*this.c+this.tx,i.y=t*this.b+e*this.d+this.ty,i},e.decompose=function(e){null==e&&(e={}),e.x=this.tx,e.y=this.ty,e.scaleX=Math.sqrt(this.a*this.a+this.b*this.b),e.scaleY=Math.sqrt(this.c*this.c+this.d*this.d);var i=Math.atan2(-this.c,this.d),n=Math.atan2(this.b,this.a),r=Math.abs(1-i/n);return 1e-5>r?(e.rotation=n/t.DEG_TO_RAD,this.a<0&&this.d>=0&&(e.rotation+=e.rotation<=0?180:-180),e.skewX=e.skewY=0):(e.skewX=i/t.DEG_TO_RAD,e.skewY=n/t.DEG_TO_RAD),e},e.copy=function(t){return this.setValues(t.a,t.b,t.c,t.d,t.tx,t.ty)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.tx,this.ty)},e.toString=function(){return"[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"},t.identity=new t,createjs.Matrix2D=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n,r){this.setValues(t,e,i,n,r)}var e=t.prototype;e.setValues=function(t,e,i,n,r){return this.visible=null==t||!!t,this.alpha=null==e?1:e,this.shadow=i,this.compositeOperation=n,this.matrix=r||this.matrix&&this.matrix.identity()||new createjs.Matrix2D,this},e.append=function(t,e,i,n,r){return this.alpha*=e,this.shadow=i||this.shadow,this.compositeOperation=n||this.compositeOperation,this.visible=this.visible&&t,r&&this.matrix.appendMatrix(r),this},e.prepend=function(t,e,i,n,r){return this.alpha*=e,this.shadow=this.shadow||i,this.compositeOperation=this.compositeOperation||n,this.visible=this.visible&&t,r&&this.matrix.prependMatrix(r),this},e.identity=function(){return this.visible=!0,this.alpha=1,this.shadow=this.compositeOperation=null,this.matrix.identity(),this},e.clone=function(){return new t(this.alpha,this.shadow,this.compositeOperation,this.visible,this.matrix.clone())},createjs.DisplayProps=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.setValues(t,e)}var e=t.prototype;e.setValues=function(t,e){return this.x=t||0,this.y=e||0,this},e.copy=function(t){return this.x=t.x,this.y=t.y,this},e.clone=function(){return new t(this.x,this.y)},e.toString=function(){return"[Point (x="+this.x+" y="+this.y+")]"},createjs.Point=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n){this.setValues(t,e,i,n)}var e=t.prototype;e.setValues=function(t,e,i,n){return this.x=t||0,this.y=e||0,this.width=i||0,this.height=n||0,this},e.extend=function(t,e,i,n){return i=i||0,n=n||0,t+i>this.x+this.width&&(this.width=t+i-this.x),e+n>this.y+this.height&&(this.height=e+n-this.y),t=this.x&&t+i<=this.x+this.width&&e>=this.y&&e+n<=this.y+this.height},e.union=function(t){return this.clone().extend(t.x,t.y,t.width,t.height)},e.intersection=function(e){var i=e.x,n=e.y,r=i+e.width,o=n+e.height;return this.x>i&&(i=this.x),this.y>n&&(n=this.y),this.x+this.width=r||n>=o?null:new t(i,n,r-i,o-n)},e.intersects=function(t){return t.x<=this.x+this.width&&this.x<=t.x+t.width&&t.y<=this.y+this.height&&this.y<=t.y+t.height},e.isEmpty=function(){return this.width<=0||this.height<=0},e.clone=function(){return new t(this.x,this.y,this.width,this.height)},e.toString=function(){return"[Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")]"},createjs.Rectangle=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n,r,o,s){t.addEventListener&&(this.target=t,this.overLabel=null==i?"over":i,this.outLabel=null==e?"out":e,this.downLabel=null==n?"down":n,this.play=r,this._isPressed=!1,this._isOver=!1,this._enabled=!1,t.mouseChildren=!1,this.enabled=!0,this.handleEvent({}),o&&(s&&(o.actionsEnabled=!1,o.gotoAndStop&&o.gotoAndStop(s)),t.hitArea=o))}var e=t.prototype;e.setEnabled=function(t){if(t!=this._enabled){var e=this.target;this._enabled=t,t?(e.cursor="pointer",e.addEventListener("rollover",this),e.addEventListener("rollout",this),e.addEventListener("mousedown",this),e.addEventListener("pressup",this),e._reset&&(e.__reset=e._reset,e._reset=this._reset)):(e.cursor=null,e.removeEventListener("rollover",this),e.removeEventListener("rollout",this),e.removeEventListener("mousedown",this),e.removeEventListener("pressup",this),e.__reset&&(e._reset=e.__reset,delete e.__reset))}},e.getEnabled=function(){return this._enabled};try{Object.defineProperties(e,{enabled:{get:e.getEnabled,set:e.setEnabled}})}catch(t){}e.toString=function(){return"[ButtonHelper]"},e.handleEvent=function(t){var e,i=this.target,n=t.type;"mousedown"==n?(this._isPressed=!0,e=this.downLabel):"pressup"==n?(this._isPressed=!1,e=this._isOver?this.overLabel:this.outLabel):"rollover"==n?(this._isOver=!0,e=this._isPressed?this.downLabel:this.overLabel):(this._isOver=!1,e=this._isPressed?this.overLabel:this.outLabel),this.play?i.gotoAndPlay&&i.gotoAndPlay(e):i.gotoAndStop&&i.gotoAndStop(e)},e._reset=function(){var t=this.paused;this.__reset(),this.paused=t},createjs.ButtonHelper=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n){this.color=t||"black",this.offsetX=e||0,this.offsetY=i||0,this.blur=n||0}var e=t.prototype;t.identity=new t("transparent",0,0,0),e.toString=function(){return"[Shadow]"},e.clone=function(){return new t(this.color,this.offsetX,this.offsetY,this.blur)},createjs.Shadow=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.EventDispatcher_constructor(),this.complete=!0,this.framerate=0,this._animations=null,this._frames=null,this._images=null,this._data=null,this._loadCount=0,this._frameHeight=0,this._frameWidth=0,this._numFrames=0,this._regX=0,this._regY=0,this._spacing=0,this._margin=0,this._parseData(t)}var e=createjs.extend(t,createjs.EventDispatcher);e.getAnimations=function(){return this._animations.slice()};try{Object.defineProperties(e,{animations:{get:e.getAnimations}})}catch(t){}e.getNumFrames=function(t){if(null==t)return this._frames?this._frames.length:this._numFrames||0;var e=this._data[t];return null==e?0:e.frames.length},e.getAnimation=function(t){return this._data[t]},e.getFrame=function(t){var e;return this._frames&&(e=this._frames[t])?e:null},e.getFrameBounds=function(t,e){var i=this.getFrame(t);return i?(e||new createjs.Rectangle).setValues(-i.regX,-i.regY,i.rect.width,i.rect.height):null},e.toString=function(){return"[SpriteSheet]"},e.clone=function(){throw"SpriteSheet cannot be cloned."},e._parseData=function(t){var e,i,n,r;if(null!=t){if(this.framerate=t.framerate||0,t.images&&(i=t.images.length)>0)for(r=this._images=[],e=0;i>e;e++){var o=t.images[e];if("string"==typeof o){var s=o;o=document.createElement("img"),o.src=s}r.push(o),o.getContext||o.naturalWidth||(this._loadCount++,this.complete=!1,function(t,e){o.onload=function(){t._handleImageLoad(e)}}(this,s),function(t,e){o.onerror=function(){t._handleImageError(e)}}(this,s))}if(null==t.frames);else if(Array.isArray(t.frames))for(this._frames=[],r=t.frames,e=0,i=r.length;i>e;e++){var a=r[e];this._frames.push({image:this._images[a[4]?a[4]:0],rect:new createjs.Rectangle(a[0],a[1],a[2],a[3]),regX:a[5]||0,regY:a[6]||0})}else n=t.frames,this._frameWidth=n.width,this._frameHeight=n.height,this._regX=n.regX||0,this._regY=n.regY||0,this._spacing=n.spacing||0,this._margin=n.margin||0,this._numFrames=n.count,0==this._loadCount&&this._calculateFrames();if(this._animations=[],null!=(n=t.animations)){this._data={};var h;for(h in n){var u={name:h},c=n[h];if("number"==typeof c)r=u.frames=[c];else if(Array.isArray(c))if(1==c.length)u.frames=[c[0]];else for(u.speed=c[3],u.next=c[2],r=u.frames=[],e=c[0];e<=c[1];e++)r.push(e);else{u.speed=c.speed,u.next=c.next;var l=c.frames;r=u.frames="number"==typeof l?[l]:l.slice(0)}(u.next===!0||void 0===u.next)&&(u.next=h),(u.next===!1||r.length<2&&u.next==h)&&(u.next=null),u.speed||(u.speed=1),this._animations.push(h),this._data[h]=u}}}},e._handleImageLoad=function(){0==--this._loadCount&&(this._calculateFrames(),this.complete=!0,this.dispatchEvent("complete"))},e._handleImageError=function(t){var e=new createjs.Event("error");e.src=t,this.dispatchEvent(e),0==--this._loadCount&&this.dispatchEvent("complete")},e._calculateFrames=function(){if(!this._frames&&0!=this._frameWidth){this._frames=[];var t=this._numFrames||1e5,e=0,i=this._frameWidth,n=this._frameHeight,r=this._spacing,o=this._margin;t:for(var s=0,a=this._images;s=l;){for(var p=o;u-o-i>=p;){if(e>=t)break t;e++,this._frames.push({image:h,rect:new createjs.Rectangle(p,l,i,n),regX:this._regX,regY:this._regY}),p+=i+r}l+=n+r}this._numFrames=e}},createjs.SpriteSheet=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.command=null,this._stroke=null,this._strokeStyle=null,this._oldStrokeStyle=null,this._strokeDash=null,this._oldStrokeDash=null,this._strokeIgnoreScale=!1,this._fill=null,this._instructions=[],this._commitIndex=0,this._activeInstructions=[],this._dirty=!1,this._storeIndex=0,this.clear()}var e=t.prototype,i=t;t.getRGB=function(t,e,i,n){return null!=t&&null==i&&(n=e,i=255&t,e=t>>8&255,t=t>>16&255),null==n?"rgb("+t+","+e+","+i+")":"rgba("+t+","+e+","+i+","+n+")"},t.getHSL=function(t,e,i,n){return null==n?"hsl("+t%360+","+e+"%,"+i+"%)":"hsla("+t%360+","+e+"%,"+i+"%,"+n+")"},t.BASE_64={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63},t.STROKE_CAPS_MAP=["butt","round","square"],t.STROKE_JOINTS_MAP=["miter","round","bevel"];var n=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");n.getContext&&(t._ctx=n.getContext("2d"),n.width=n.height=1),e.getInstructions=function(){return this._updateInstructions(),this._instructions};try{Object.defineProperties(e,{instructions:{get:e.getInstructions}})}catch(t){}e.isEmpty=function(){return!(this._instructions.length||this._activeInstructions.length)},e.draw=function(t,e){this._updateInstructions();for(var i=this._instructions,n=this._storeIndex,r=i.length;r>n;n++)i[n].exec(t,e)},e.drawAsPath=function(t){this._updateInstructions();for(var e,i=this._instructions,n=this._storeIndex,r=i.length;r>n;n++)(e=i[n]).path!==!1&&e.exec(t)},e.moveTo=function(t,e){return this.append(new i.MoveTo(t,e),!0)},e.lineTo=function(t,e){return this.append(new i.LineTo(t,e))},e.arcTo=function(t,e,n,r,o){return this.append(new i.ArcTo(t,e,n,r,o))},e.arc=function(t,e,n,r,o,s){return this.append(new i.Arc(t,e,n,r,o,s))},e.quadraticCurveTo=function(t,e,n,r){return this.append(new i.QuadraticCurveTo(t,e,n,r))},e.bezierCurveTo=function(t,e,n,r,o,s){return this.append(new i.BezierCurveTo(t,e,n,r,o,s))},e.rect=function(t,e,n,r){return this.append(new i.Rect(t,e,n,r))},e.closePath=function(){return this._activeInstructions.length?this.append(new i.ClosePath):this},e.clear=function(){return this._instructions.length=this._activeInstructions.length=this._commitIndex=0,this._strokeStyle=this._oldStrokeStyle=this._stroke=this._fill=this._strokeDash=this._oldStrokeDash=null,this._dirty=this._strokeIgnoreScale=!1,this},e.beginFill=function(t){return this._setFill(t?new i.Fill(t):null)},e.beginLinearGradientFill=function(t,e,n,r,o,s){return this._setFill((new i.Fill).linearGradient(t,e,n,r,o,s))},e.beginRadialGradientFill=function(t,e,n,r,o,s,a,h){return this._setFill((new i.Fill).radialGradient(t,e,n,r,o,s,a,h))},e.beginBitmapFill=function(t,e,n){return this._setFill(new i.Fill(null,n).bitmap(t,e))},e.endFill=function(){return this.beginFill()},e.setStrokeStyle=function(t,e,n,r,o){return this._updateInstructions(!0),this._strokeStyle=this.command=new i.StrokeStyle(t,e,n,r,o),this._stroke&&(this._stroke.ignoreScale=o),this._strokeIgnoreScale=o,this},e.setStrokeDash=function(t,e){return this._updateInstructions(!0),this._strokeDash=this.command=new i.StrokeDash(t,e),this},e.beginStroke=function(t){return this._setStroke(t?new i.Stroke(t):null)},e.beginLinearGradientStroke=function(t,e,n,r,o,s){return this._setStroke((new i.Stroke).linearGradient(t,e,n,r,o,s))},e.beginRadialGradientStroke=function(t,e,n,r,o,s,a,h){return this._setStroke((new i.Stroke).radialGradient(t,e,n,r,o,s,a,h))},e.beginBitmapStroke=function(t,e){return this._setStroke((new i.Stroke).bitmap(t,e))},e.endStroke=function(){return this.beginStroke()},e.curveTo=e.quadraticCurveTo,e.drawRect=e.rect,e.drawRoundRect=function(t,e,i,n,r){return this.drawRoundRectComplex(t,e,i,n,r,r,r,r)},e.drawRoundRectComplex=function(t,e,n,r,o,s,a,h){return this.append(new i.RoundRect(t,e,n,r,o,s,a,h))},e.drawCircle=function(t,e,n){return this.append(new i.Circle(t,e,n))},e.drawEllipse=function(t,e,n,r){return this.append(new i.Ellipse(t,e,n,r))},e.drawPolyStar=function(t,e,n,r,o,s){return this.append(new i.PolyStar(t,e,n,r,o,s))},e.append=function(t,e){return this._activeInstructions.push(t),this.command=t,e||(this._dirty=!0),this},e.decodePath=function(e){for(var i=[this.moveTo,this.lineTo,this.quadraticCurveTo,this.bezierCurveTo,this.closePath],n=[2,2,4,6,0],r=0,o=e.length,s=[],a=0,h=0,u=t.BASE_64;o>r;){var c=e.charAt(r),l=u[c],p=l>>3,f=i[p];if(!f||3&l)throw"bad path data (@"+r+"): "+c;var d=n[p];p||(a=h=0),s.length=0,r++;for(var g=(l>>2&1)+2,v=0;d>v;v++){var m=u[e.charAt(r)],_=m>>5?-1:1;m=(31&m)<<6|u[e.charAt(r+1)],3==g&&(m=m<<6|u[e.charAt(r+2)]),m=_*m/10,v%2?a=m+=a:h=m+=h,s[v]=m,r+=g}f.apply(this,s)}return this},e.store=function(){return this._updateInstructions(!0),this._storeIndex=this._instructions.length,this},e.unstore=function(){return this._storeIndex=0,this},e.clone=function(){var e=new t;return e.command=this.command,e._stroke=this._stroke,e._strokeStyle=this._strokeStyle,e._strokeDash=this._strokeDash,e._strokeIgnoreScale=this._strokeIgnoreScale,e._fill=this._fill,e._instructions=this._instructions.slice(),e._commitIndex=this._commitIndex,e._activeInstructions=this._activeInstructions.slice(),e._dirty=this._dirty,e._storeIndex=this._storeIndex,e},e.toString=function(){return"[Graphics]"},e.mt=e.moveTo,e.lt=e.lineTo,e.at=e.arcTo,e.bt=e.bezierCurveTo,e.qt=e.quadraticCurveTo,e.a=e.arc,e.r=e.rect,e.cp=e.closePath,e.c=e.clear,e.f=e.beginFill,e.lf=e.beginLinearGradientFill,e.rf=e.beginRadialGradientFill,e.bf=e.beginBitmapFill,e.ef=e.endFill,e.ss=e.setStrokeStyle,e.sd=e.setStrokeDash,e.s=e.beginStroke,e.ls=e.beginLinearGradientStroke,e.rs=e.beginRadialGradientStroke,e.bs=e.beginBitmapStroke,e.es=e.endStroke,e.dr=e.drawRect,e.rr=e.drawRoundRect,e.rc=e.drawRoundRectComplex,e.dc=e.drawCircle,e.de=e.drawEllipse,e.dp=e.drawPolyStar,e.p=e.decodePath,e._updateInstructions=function(e){var i=this._instructions,n=this._activeInstructions,r=this._commitIndex;if(this._dirty&&n.length){i.length=r,i.push(t.beginCmd);var o=n.length,s=i.length;i.length=s+o;for(var a=0;o>a;a++)i[a+s]=n[a];this._fill&&i.push(this._fill),this._stroke&&(this._strokeDash!==this._oldStrokeDash&&(this._oldStrokeDash=this._strokeDash,i.push(this._strokeDash)),this._strokeStyle!==this._oldStrokeStyle&&(this._oldStrokeStyle=this._strokeStyle,i.push(this._strokeStyle)),i.push(this._stroke)),this._dirty=!1}e&&(n.length=0,this._commitIndex=i.length)},e._setFill=function(t){return this._updateInstructions(!0),this.command=this._fill=t,this},e._setStroke=function(t){return this._updateInstructions(!0),(this.command=this._stroke=t)&&(t.ignoreScale=this._strokeIgnoreScale),this},(i.LineTo=function(t,e){this.x=t,this.y=e}).prototype.exec=function(t){t.lineTo(this.x,this.y)},(i.MoveTo=function(t,e){this.x=t,this.y=e}).prototype.exec=function(t){t.moveTo(this.x,this.y)},(i.ArcTo=function(t,e,i,n,r){this.x1=t,this.y1=e,this.x2=i,this.y2=n,this.radius=r}).prototype.exec=function(t){t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)},(i.Arc=function(t,e,i,n,r,o){this.x=t,this.y=e,this.radius=i,this.startAngle=n,this.endAngle=r,this.anticlockwise=!!o}).prototype.exec=function(t){t.arc(this.x,this.y,this.radius,this.startAngle,this.endAngle,this.anticlockwise)},(i.QuadraticCurveTo=function(t,e,i,n){this.cpx=t,this.cpy=e,this.x=i,this.y=n}).prototype.exec=function(t){t.quadraticCurveTo(this.cpx,this.cpy,this.x,this.y)},(i.BezierCurveTo=function(t,e,i,n,r,o){this.cp1x=t,this.cp1y=e,this.cp2x=i,this.cp2y=n,this.x=r,this.y=o}).prototype.exec=function(t){t.bezierCurveTo(this.cp1x,this.cp1y,this.cp2x,this.cp2y,this.x,this.y)},(i.Rect=function(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}).prototype.exec=function(t){t.rect(this.x,this.y,this.w,this.h)},(i.ClosePath=function(){}).prototype.exec=function(t){t.closePath()},(i.BeginPath=function(){}).prototype.exec=function(t){t.beginPath()},e=(i.Fill=function(t,e){this.style=t,this.matrix=e}).prototype,e.exec=function(t){if(this.style){t.fillStyle=this.style;var e=this.matrix;e&&(t.save(),t.transform(e.a,e.b,e.c,e.d,e.tx,e.ty)),t.fill(),e&&t.restore()}},e.linearGradient=function(e,i,n,r,o,s){for(var a=this.style=t._ctx.createLinearGradient(n,r,o,s),h=0,u=e.length;u>h;h++)a.addColorStop(i[h],e[h]);return a.props={colors:e,ratios:i,x0:n,y0:r,x1:o,y1:s,type:"linear"},this},e.radialGradient=function(e,i,n,r,o,s,a,h){for(var u=this.style=t._ctx.createRadialGradient(n,r,o,s,a,h),c=0,l=e.length;l>c;c++)u.addColorStop(i[c],e[c]);return u.props={colors:e,ratios:i,x0:n,y0:r,r0:o,x1:s,y1:a,r1:h,type:"radial"},this},e.bitmap=function(e,i){if(e.naturalWidth||e.getContext||e.readyState>=2){var n=this.style=t._ctx.createPattern(e,i||"");n.props={image:e,repetition:i,type:"bitmap"}}return this},e.path=!1,e=(i.Stroke=function(t,e){this.style=t,this.ignoreScale=e}).prototype,e.exec=function(t){this.style&&(t.strokeStyle=this.style,this.ignoreScale&&(t.save(),t.setTransform(1,0,0,1,0,0)),t.stroke(),this.ignoreScale&&t.restore())},e.linearGradient=i.Fill.prototype.linearGradient,e.radialGradient=i.Fill.prototype.radialGradient,e.bitmap=i.Fill.prototype.bitmap,e.path=!1,e=(i.StrokeStyle=function(t,e,i,n,r){this.width=t,this.caps=e,this.joints=i,this.miterLimit=n,this.ignoreScale=r}).prototype,e.exec=function(e){e.lineWidth=null==this.width?"1":this.width,e.lineCap=null==this.caps?"butt":isNaN(this.caps)?this.caps:t.STROKE_CAPS_MAP[this.caps],e.lineJoin=null==this.joints?"miter":isNaN(this.joints)?this.joints:t.STROKE_JOINTS_MAP[this.joints],e.miterLimit=null==this.miterLimit?"10":this.miterLimit,e.ignoreScale=null!=this.ignoreScale&&this.ignoreScale},e.path=!1,(i.StrokeDash=function(t,e){this.segments=t,this.offset=e||0}).prototype.exec=function(t){t.setLineDash&&(t.setLineDash(this.segments||i.StrokeDash.EMPTY_SEGMENTS),t.lineDashOffset=this.offset||0)},i.StrokeDash.EMPTY_SEGMENTS=[],(i.RoundRect=function(t,e,i,n,r,o,s,a){this.x=t,this.y=e,this.w=i,this.h=n,this.radiusTL=r,this.radiusTR=o,this.radiusBR=s,this.radiusBL=a}).prototype.exec=function(t){var e=(u>h?h:u)/2,i=0,n=0,r=0,o=0,s=this.x,a=this.y,h=this.w,u=this.h,c=this.radiusTL,l=this.radiusTR,p=this.radiusBR,f=this.radiusBL;0>c&&(c*=i=-1),c>e&&(c=e),0>l&&(l*=n=-1),l>e&&(l=e),0>p&&(p*=r=-1),p>e&&(p=e),0>f&&(f*=o=-1),f>e&&(f=e),t.moveTo(s+h-l,a),t.arcTo(s+h+l*n,a-l*n,s+h,a+l,l),t.lineTo(s+h,a+u-p),t.arcTo(s+h+p*r,a+u+p*r,s+h-p,a+u,p),t.lineTo(s+f,a+u),t.arcTo(s-f*o,a+u+f*o,s,a+u-f,f),t.lineTo(s,a+c),t.arcTo(s-c*i,a-c*i,s+c,a,c),t.closePath()},(i.Circle=function(t,e,i){this.x=t,this.y=e,this.radius=i}).prototype.exec=function(t){t.arc(this.x,this.y,this.radius,0,2*Math.PI)},(i.Ellipse=function(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}).prototype.exec=function(t){var e=this.x,i=this.y,n=this.w,r=this.h,o=.5522848,s=n/2*o,a=r/2*o,h=e+n,u=i+r,c=e+n/2,l=i+r/2;t.moveTo(e,l),t.bezierCurveTo(e,l-a,c-s,i,c,i),t.bezierCurveTo(c+s,i,h,l-a,h,l),t.bezierCurveTo(h,l+a,c+s,u,c,u),t.bezierCurveTo(c-s,u,e,l+a,e,l)},(i.PolyStar=function(t,e,i,n,r,o){this.x=t,this.y=e,this.radius=i,this.sides=n,this.pointSize=r,this.angle=o}).prototype.exec=function(t){var e=this.x,i=this.y,n=this.radius,r=(this.angle||0)/180*Math.PI,o=this.sides,s=1-(this.pointSize||0),a=Math.PI/o;t.moveTo(e+Math.cos(r)*n,i+Math.sin(r)*n);for(var h=0;o>h;h++)r+=a,1!=s&&t.lineTo(e+Math.cos(r)*n*s,i+Math.sin(r)*n*s),r+=a,t.lineTo(e+Math.cos(r)*n,i+Math.sin(r)*n);t.closePath()},t.beginCmd=new i.BeginPath,createjs.Graphics=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.EventDispatcher_constructor(),this.alpha=1,this.cacheCanvas=null,this.cacheID=0,this.id=createjs.UID.get(),this.mouseEnabled=!0,this.tickEnabled=!0,this.name=null,this.parent=null,this.regX=0,this.regY=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.skewX=0,this.skewY=0,this.shadow=null,this.visible=!0,this.x=0,this.y=0,this.transformMatrix=null,this.compositeOperation=null,this.snapToPixel=!0,this.filters=null, this.mask=null,this.hitArea=null,this.cursor=null,this._cacheOffsetX=0,this._cacheOffsetY=0,this._filterOffsetX=0,this._filterOffsetY=0,this._cacheScale=1,this._cacheDataURLID=0,this._cacheDataURL=null,this._props=new createjs.DisplayProps,this._rectangle=new createjs.Rectangle,this._bounds=null}var e=createjs.extend(t,createjs.EventDispatcher);t._MOUSE_EVENTS=["click","dblclick","mousedown","mouseout","mouseover","pressmove","pressup","rollout","rollover"],t.suppressCrossDomainErrors=!1,t._snapToPixelEnabled=!1;var i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.getContext&&(t._hitTestCanvas=i,t._hitTestContext=i.getContext("2d"),i.width=i.height=1),t._nextCacheID=1,e.getStage=function(){for(var t=this,e=createjs.Stage;t.parent;)t=t.parent;return t instanceof e?t:null};try{Object.defineProperties(e,{stage:{get:e.getStage}})}catch(t){}e.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},e.draw=function(t,e){var i=this.cacheCanvas;if(e||!i)return!1;var n=this._cacheScale;return t.drawImage(i,this._cacheOffsetX+this._filterOffsetX,this._cacheOffsetY+this._filterOffsetY,i.width/n,i.height/n),!0},e.updateContext=function(e){var i=this,n=i.mask,r=i._props.matrix;n&&n.graphics&&!n.graphics.isEmpty()&&(n.getMatrix(r),e.transform(r.a,r.b,r.c,r.d,r.tx,r.ty),n.graphics.drawAsPath(e),e.clip(),r.invert(),e.transform(r.a,r.b,r.c,r.d,r.tx,r.ty)),this.getMatrix(r);var o=r.tx,s=r.ty;t._snapToPixelEnabled&&i.snapToPixel&&(o=o+(0>o?-.5:.5)|0,s=s+(0>s?-.5:.5)|0),e.transform(r.a,r.b,r.c,r.d,o,s),e.globalAlpha*=i.alpha,i.compositeOperation&&(e.globalCompositeOperation=i.compositeOperation),i.shadow&&this._applyShadow(e,i.shadow)},e.cache=function(t,e,i,n,r){r=r||1,this.cacheCanvas||(this.cacheCanvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")),this._cacheWidth=i,this._cacheHeight=n,this._cacheOffsetX=t,this._cacheOffsetY=e,this._cacheScale=r,this.updateCache()},e.updateCache=function(e){var i=this.cacheCanvas;if(!i)throw"cache() must be called before updateCache()";var n=this._cacheScale,r=this._cacheOffsetX*n,o=this._cacheOffsetY*n,s=this._cacheWidth,a=this._cacheHeight,h=i.getContext("2d"),u=this._getFilterBounds();r+=this._filterOffsetX=u.x,o+=this._filterOffsetY=u.y,s=Math.ceil(s*n)+u.width,a=Math.ceil(a*n)+u.height,s!=i.width||a!=i.height?(i.width=s,i.height=a):e||h.clearRect(0,0,s+1,a+1),h.save(),h.globalCompositeOperation=e,h.setTransform(n,0,0,n,-r,-o),this.draw(h,!0),this._applyFilters(),h.restore(),this.cacheID=t._nextCacheID++},e.uncache=function(){this._cacheDataURL=this.cacheCanvas=null,this.cacheID=this._cacheOffsetX=this._cacheOffsetY=this._filterOffsetX=this._filterOffsetY=0,this._cacheScale=1},e.getCacheDataURL=function(){return this.cacheCanvas?(this.cacheID!=this._cacheDataURLID&&(this._cacheDataURL=this.cacheCanvas.toDataURL()),this._cacheDataURL):null},e.localToGlobal=function(t,e,i){return this.getConcatenatedMatrix(this._props.matrix).transformPoint(t,e,i||new createjs.Point)},e.globalToLocal=function(t,e,i){return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(t,e,i||new createjs.Point)},e.localToLocal=function(t,e,i,n){return n=this.localToGlobal(t,e,n),i.globalToLocal(n.x,n.y,n)},e.setTransform=function(t,e,i,n,r,o,s,a,h){return this.x=t||0,this.y=e||0,this.scaleX=null==i?1:i,this.scaleY=null==n?1:n,this.rotation=r||0,this.skewX=o||0,this.skewY=s||0,this.regX=a||0,this.regY=h||0,this},e.getMatrix=function(t){var e=this,i=t&&t.identity()||new createjs.Matrix2D;return e.transformMatrix?i.copy(e.transformMatrix):i.appendTransform(e.x,e.y,e.scaleX,e.scaleY,e.rotation,e.skewX,e.skewY,e.regX,e.regY)},e.getConcatenatedMatrix=function(t){for(var e=this,i=this.getMatrix(t);e=e.parent;)i.prependMatrix(e.getMatrix(e._props.matrix));return i},e.getConcatenatedDisplayProps=function(t){t=t?t.identity():new createjs.DisplayProps;var e=this,i=e.getMatrix(t.matrix);do t.prepend(e.visible,e.alpha,e.shadow,e.compositeOperation),e!=this&&i.prependMatrix(e.getMatrix(e._props.matrix));while(e=e.parent);return t},e.hitTest=function(e,i){var n=t._hitTestContext;n.setTransform(1,0,0,1,-e,-i),this.draw(n);var r=this._testHit(n);return n.setTransform(1,0,0,1,0,0),n.clearRect(0,0,2,2),r},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.getBounds=function(){if(this._bounds)return this._rectangle.copy(this._bounds);var t=this.cacheCanvas;if(t){var e=this._cacheScale;return this._rectangle.setValues(this._cacheOffsetX,this._cacheOffsetY,t.width/e,t.height/e)}return null},e.getTransformedBounds=function(){return this._getBounds()},e.setBounds=function(t,e,i,n){null==t&&(this._bounds=t),this._bounds=(this._bounds||new createjs.Rectangle).setValues(t,e,i,n)},e.clone=function(){return this._cloneProps(new t)},e.toString=function(){return"[DisplayObject (name="+this.name+")]"},e._cloneProps=function(t){return t.alpha=this.alpha,t.mouseEnabled=this.mouseEnabled,t.tickEnabled=this.tickEnabled,t.name=this.name,t.regX=this.regX,t.regY=this.regY,t.rotation=this.rotation,t.scaleX=this.scaleX,t.scaleY=this.scaleY,t.shadow=this.shadow,t.skewX=this.skewX,t.skewY=this.skewY,t.visible=this.visible,t.x=this.x,t.y=this.y,t.compositeOperation=this.compositeOperation,t.snapToPixel=this.snapToPixel,t.filters=null==this.filters?null:this.filters.slice(0),t.mask=this.mask,t.hitArea=this.hitArea,t.cursor=this.cursor,t._bounds=this._bounds,t},e._applyShadow=function(t,e){e=e||Shadow.identity,t.shadowColor=e.color,t.shadowOffsetX=e.offsetX,t.shadowOffsetY=e.offsetY,t.shadowBlur=e.blur},e._tick=function(t){var e=this._listeners;e&&e.tick&&(t.target=null,t.propagationStopped=t.immediatePropagationStopped=!1,this.dispatchEvent(t))},e._testHit=function(e){try{var i=e.getImageData(0,0,1,1).data[3]>1}catch(e){if(!t.suppressCrossDomainErrors)throw"An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."}return i},e._applyFilters=function(){if(this.filters&&0!=this.filters.length&&this.cacheCanvas)for(var t=this.filters.length,e=this.cacheCanvas.getContext("2d"),i=this.cacheCanvas.width,n=this.cacheCanvas.height,r=0;t>r;r++)this.filters[r].applyFilter(e,0,0,i,n)},e._getFilterBounds=function(){var t,e=this.filters,i=this._rectangle.setValues(0,0,0,0);if(!e||!(t=e.length))return i;for(var n=0;t>n;n++){var r=this.filters[n];r.getBounds&&r.getBounds(i)}return i},e._getBounds=function(t,e){return this._transformBounds(this.getBounds(),t,e)},e._transformBounds=function(t,e,i){if(!t)return t;var n=t.x,r=t.y,o=t.width,s=t.height,a=this._props.matrix;a=i?a.identity():this.getMatrix(a),(n||r)&&a.appendTransform(0,0,1,1,0,0,0,-n,-r),e&&a.prependMatrix(e);var h=o*a.a,u=o*a.b,c=s*a.c,l=s*a.d,p=a.tx,f=a.ty,d=p,g=p,v=f,m=f;return(n=h+p)g&&(g=n),(n=h+c+p)g&&(g=n),(n=c+p)g&&(g=n),(r=u+f)m&&(m=r),(r=u+l+f)m&&(m=r),(r=l+f)m&&(m=r),t.setValues(d,v,g-d,m-v)},e._hasMouseEventListener=function(){for(var e=t._MOUSE_EVENTS,i=0,n=e.length;n>i;i++)if(this.hasEventListener(e[i]))return!0;return!!this.cursor},createjs.DisplayObject=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.DisplayObject_constructor(),this.children=[],this.mouseChildren=!0,this.tickChildren=!0}var e=createjs.extend(t,createjs.DisplayObject);e.getNumChildren=function(){return this.children.length};try{Object.defineProperties(e,{numChildren:{get:e.getNumChildren}})}catch(t){}e.initialize=t,e.isVisible=function(){var t=this.cacheCanvas||this.children.length;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;for(var i=this.children.slice(),n=0,r=i.length;r>n;n++){var o=i[n];o.isVisible()&&(t.save(),o.updateContext(t),o.draw(t),t.restore())}return!0},e.addChild=function(t){if(null==t)return t;var e=arguments.length;if(e>1){for(var i=0;e>i;i++)this.addChild(arguments[i]);return arguments[e-1]}return t.parent&&t.parent.removeChild(t),t.parent=this,this.children.push(t),t.dispatchEvent("added"),t},e.addChildAt=function(t,e){var i=arguments.length,n=arguments[i-1];if(0>n||n>this.children.length)return arguments[i-2];if(i>2){for(var r=0;i-1>r;r++)this.addChildAt(arguments[r],n+r);return arguments[i-2]}return t.parent&&t.parent.removeChild(t),t.parent=this,this.children.splice(e,0,t),t.dispatchEvent("added"),t},e.removeChild=function(t){var e=arguments.length;if(e>1){for(var i=!0,n=0;e>n;n++)i=i&&this.removeChild(arguments[n]);return i}return this.removeChildAt(createjs.indexOf(this.children,t))},e.removeChildAt=function(t){var e=arguments.length;if(e>1){for(var i=[],n=0;e>n;n++)i[n]=arguments[n];i.sort(function(t,e){return e-t});for(var r=!0,n=0;e>n;n++)r=r&&this.removeChildAt(i[n]);return r}if(0>t||t>this.children.length-1)return!1;var o=this.children[t];return o&&(o.parent=null),this.children.splice(t,1),o.dispatchEvent("removed"),!0},e.removeAllChildren=function(){for(var t=this.children;t.length;)this.removeChildAt(0)},e.getChildAt=function(t){return this.children[t]},e.getChildByName=function(t){for(var e=this.children,i=0,n=e.length;n>i;i++)if(e[i].name==t)return e[i];return null},e.sortChildren=function(t){this.children.sort(t)},e.getChildIndex=function(t){return createjs.indexOf(this.children,t)},e.swapChildrenAt=function(t,e){var i=this.children,n=i[t],r=i[e];n&&r&&(i[t]=r,i[e]=n)},e.swapChildren=function(t,e){for(var i,n,r=this.children,o=0,s=r.length;s>o&&(r[o]==t&&(i=o),r[o]==e&&(n=o),null==i||null==n);o++);o!=s&&(r[i]=e,r[n]=t)},e.setChildIndex=function(t,e){var i=this.children,n=i.length;if(!(t.parent!=this||0>e||e>=n)){for(var r=0;n>r&&i[r]!=t;r++);r!=n&&r!=e&&(i.splice(r,1),i.splice(e,0,t))}},e.contains=function(t){for(;t;){if(t==this)return!0;t=t.parent}return!1},e.hitTest=function(t,e){return null!=this.getObjectUnderPoint(t,e)},e.getObjectsUnderPoint=function(t,e,i){var n=[],r=this.localToGlobal(t,e);return this._getObjectsUnderPoint(r.x,r.y,n,i>0,1==i),n},e.getObjectUnderPoint=function(t,e,i){var n=this.localToGlobal(t,e);return this._getObjectsUnderPoint(n.x,n.y,null,i>0,1==i)},e.getBounds=function(){return this._getBounds(null,!0)},e.getTransformedBounds=function(){return this._getBounds()},e.clone=function(e){var i=this._cloneProps(new t);return e&&this._cloneChildren(i),i},e.toString=function(){return"[Container (name="+this.name+")]"},e._tick=function(t){if(this.tickChildren)for(var e=this.children.length-1;e>=0;e--){var i=this.children[e];i.tickEnabled&&i._tick&&i._tick(t)}this.DisplayObject__tick(t)},e._cloneChildren=function(t){t.children.length&&t.removeAllChildren();for(var e=t.children,i=0,n=this.children.length;n>i;i++){var r=this.children[i].clone(!0);r.parent=t,e.push(r)}},e._getObjectsUnderPoint=function(e,i,n,r,o,s){if(s=s||0,!s&&!this._testMask(this,e,i))return null;var a,h=createjs.DisplayObject._hitTestContext;o=o||r&&this._hasMouseEventListener();for(var u=this.children,c=u.length,l=c-1;l>=0;l--){var p=u[l],f=p.hitArea;if(p.visible&&(f||p.isVisible())&&(!r||p.mouseEnabled)&&(f||this._testMask(p,e,i)))if(!f&&p instanceof t){var d=p._getObjectsUnderPoint(e,i,n,r,o,s+1);if(!n&&d)return r&&!this.mouseChildren?this:d}else{if(r&&!o&&!p._hasMouseEventListener())continue;var g=p.getConcatenatedDisplayProps(p._props);if(a=g.matrix,f&&(a.appendMatrix(f.getMatrix(f._props.matrix)),g.alpha=f.alpha),h.globalAlpha=g.alpha,h.setTransform(a.a,a.b,a.c,a.d,a.tx-e,a.ty-i),(f||p).draw(h),!this._testHit(h))continue;if(h.setTransform(1,0,0,1,0,0),h.clearRect(0,0,2,2),!n)return r&&!this.mouseChildren?this:p;n.push(p)}}return null},e._testMask=function(t,e,i){var n=t.mask;if(!n||!n.graphics||n.graphics.isEmpty())return!0;var r=this._props.matrix,o=t.parent;r=o?o.getConcatenatedMatrix(r):r.identity(),r=n.getMatrix(n._props.matrix).prependMatrix(r);var s=createjs.DisplayObject._hitTestContext;return s.setTransform(r.a,r.b,r.c,r.d,r.tx-e,r.ty-i),n.graphics.drawAsPath(s),s.fillStyle="#000",s.fill(),!!this._testHit(s)&&(s.setTransform(1,0,0,1,0,0),s.clearRect(0,0,2,2),!0)},e._getBounds=function(t,e){var i=this.DisplayObject_getBounds();if(i)return this._transformBounds(i,t,e);var n=this._props.matrix;n=e?n.identity():this.getMatrix(n),t&&n.prependMatrix(t);for(var r=this.children.length,o=null,s=0;r>s;s++){var a=this.children[s];a.visible&&(i=a._getBounds(n))&&(o?o.extend(i.x,i.y,i.width,i.height):o=i.clone())}return o},createjs.Container=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.Container_constructor(),this.autoClear=!0,this.canvas="string"==typeof t?document.getElementById(t):t,this.mouseX=0,this.mouseY=0,this.drawRect=null,this.snapToPixelEnabled=!1,this.mouseInBounds=!1,this.tickOnUpdate=!0,this.mouseMoveOutside=!1,this.preventSelection=!0,this._pointerData={},this._pointerCount=0,this._primaryPointerID=null,this._mouseOverIntervalID=null,this._nextStage=null,this._prevStage=null,this.enableDOMEvents(!0)}var e=createjs.extend(t,createjs.Container);e._get_nextStage=function(){return this._nextStage},e._set_nextStage=function(t){this._nextStage&&(this._nextStage._prevStage=null),t&&(t._prevStage=this),this._nextStage=t};try{Object.defineProperties(e,{nextStage:{get:e._get_nextStage,set:e._set_nextStage}})}catch(t){}e.update=function(t){if(this.canvas&&(this.tickOnUpdate&&this.tick(t),this.dispatchEvent("drawstart",!1,!0)!==!1)){createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var e=this.drawRect,i=this.canvas.getContext("2d");i.setTransform(1,0,0,1,0,0),this.autoClear&&(e?i.clearRect(e.x,e.y,e.width,e.height):i.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)),i.save(),this.drawRect&&(i.beginPath(),i.rect(e.x,e.y,e.width,e.height),i.clip()),this.updateContext(i),this.draw(i,!1),i.restore(),this.dispatchEvent("drawend")}},e.tick=function(t){if(this.tickEnabled&&this.dispatchEvent("tickstart",!1,!0)!==!1){var e=new createjs.Event("tick");if(t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);this._tick(e),this.dispatchEvent("tickend")}},e.handleEvent=function(t){"tick"==t.type&&this.update(t)},e.clear=function(){if(this.canvas){var t=this.canvas.getContext("2d");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)}},e.toDataURL=function(t,e){var i,n=this.canvas.getContext("2d"),r=this.canvas.width,o=this.canvas.height;if(t){i=n.getImageData(0,0,r,o);var s=n.globalCompositeOperation;n.globalCompositeOperation="destination-over",n.fillStyle=t,n.fillRect(0,0,r,o)}var a=this.canvas.toDataURL(e||"image/png");return t&&(n.putImageData(i,0,0),n.globalCompositeOperation=s),a},e.enableMouseOver=function(t){if(this._mouseOverIntervalID&&(clearInterval(this._mouseOverIntervalID),this._mouseOverIntervalID=null,0==t&&this._testMouseOver(!0)),null==t)t=20;else if(0>=t)return;var e=this;this._mouseOverIntervalID=setInterval(function(){e._testMouseOver()},1e3/Math.min(50,t))},e.enableDOMEvents=function(t){null==t&&(t=!0);var e,i,n=this._eventListeners;if(!t&&n){for(e in n)i=n[e],i.t.removeEventListener(e,i.f,!1);this._eventListeners=null}else if(t&&!n&&this.canvas){var r=window.addEventListener?window:document,o=this;n=this._eventListeners={},n.mouseup={t:r,f:function(t){o._handleMouseUp(t)}},n.mousemove={t:r,f:function(t){o._handleMouseMove(t)}},n.dblclick={t:this.canvas,f:function(t){o._handleDoubleClick(t)}},n.mousedown={t:this.canvas,f:function(t){o._handleMouseDown(t)}};for(e in n)i=n[e],i.t.addEventListener(e,i.f,!1)}},e.clone=function(){throw"Stage cannot be cloned."},e.toString=function(){return"[Stage (name="+this.name+")]"},e._getElementRect=function(t){var e;try{e=t.getBoundingClientRect()}catch(i){e={top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}var i=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||document.body.clientLeft||0),n=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||document.body.clientTop||0),r=window.getComputedStyle?getComputedStyle(t,null):t.currentStyle,o=parseInt(r.paddingLeft)+parseInt(r.borderLeftWidth),s=parseInt(r.paddingTop)+parseInt(r.borderTopWidth),a=parseInt(r.paddingRight)+parseInt(r.borderRightWidth),h=parseInt(r.paddingBottom)+parseInt(r.borderBottomWidth);return{left:e.left+i+o,right:e.right+i-a,top:e.top+n+s,bottom:e.bottom+n-h}},e._getPointerData=function(t){var e=this._pointerData[t];return e||(e=this._pointerData[t]={x:0,y:0}),e},e._handleMouseMove=function(t){t||(t=window.event),this._handlePointerMove(-1,t,t.pageX,t.pageY)},e._handlePointerMove=function(t,e,i,n,r){if((!this._prevStage||void 0!==r)&&this.canvas){var o=this._nextStage,s=this._getPointerData(t),a=s.inBounds;this._updatePointerPosition(t,e,i,n),(a||s.inBounds||this.mouseMoveOutside)&&(-1===t&&s.inBounds==!a&&this._dispatchMouseEvent(this,a?"mouseleave":"mouseenter",!1,t,s,e),this._dispatchMouseEvent(this,"stagemousemove",!1,t,s,e),this._dispatchMouseEvent(s.target,"pressmove",!0,t,s,e)),o&&o._handlePointerMove(t,e,i,n,null)}},e._updatePointerPosition=function(t,e,i,n){var r=this._getElementRect(this.canvas);i-=r.left,n-=r.top;var o=this.canvas.width,s=this.canvas.height;i/=(r.right-r.left)/o,n/=(r.bottom-r.top)/s;var a=this._getPointerData(t);(a.inBounds=i>=0&&n>=0&&o-1>=i&&s-1>=n)?(a.x=i,a.y=n):this.mouseMoveOutside&&(a.x=0>i?0:i>o-1?o-1:i,a.y=0>n?0:n>s-1?s-1:n),a.posEvtObj=e,a.rawX=i,a.rawY=n,(t===this._primaryPointerID||-1===t)&&(this.mouseX=a.x,this.mouseY=a.y,this.mouseInBounds=a.inBounds)},e._handleMouseUp=function(t){this._handlePointerUp(-1,t,!1)},e._handlePointerUp=function(t,e,i,n){var r=this._nextStage,o=this._getPointerData(t);if(!this._prevStage||void 0!==n){var s=null,a=o.target;n||!a&&!r||(s=this._getObjectsUnderPoint(o.x,o.y,null,!0)),o.down&&(this._dispatchMouseEvent(this,"stagemouseup",!1,t,o,e,s),o.down=!1),s==a&&this._dispatchMouseEvent(a,"click",!0,t,o,e),this._dispatchMouseEvent(a,"pressup",!0,t,o,e),i?(t==this._primaryPointerID&&(this._primaryPointerID=null),delete this._pointerData[t]):o.target=null,r&&r._handlePointerUp(t,e,i,n||s&&this)}},e._handleMouseDown=function(t){this._handlePointerDown(-1,t,t.pageX,t.pageY)},e._handlePointerDown=function(t,e,i,n,r){this.preventSelection&&e.preventDefault(),(null==this._primaryPointerID||-1===t)&&(this._primaryPointerID=t),null!=n&&this._updatePointerPosition(t,e,i,n);var o=null,s=this._nextStage,a=this._getPointerData(t);r||(o=a.target=this._getObjectsUnderPoint(a.x,a.y,null,!0)),a.inBounds&&(this._dispatchMouseEvent(this,"stagemousedown",!1,t,a,e,o),a.down=!0),this._dispatchMouseEvent(o,"mousedown",!0,t,a,e),s&&s._handlePointerDown(t,e,i,n,r||o&&this)},e._testMouseOver=function(t,e,i){if(!this._prevStage||void 0!==e){var n=this._nextStage;if(!this._mouseOverIntervalID)return void(n&&n._testMouseOver(t,e,i));var r=this._getPointerData(-1);if(r&&(t||this.mouseX!=this._mouseOverX||this.mouseY!=this._mouseOverY||!this.mouseInBounds)){var o,s,a,h=r.posEvtObj,u=i||h&&h.target==this.canvas,c=null,l=-1,p="";!e&&(t||this.mouseInBounds&&u)&&(c=this._getObjectsUnderPoint(this.mouseX,this.mouseY,null,!0),this._mouseOverX=this.mouseX,this._mouseOverY=this.mouseY);var f=this._mouseOverTarget||[],d=f[f.length-1],g=this._mouseOverTarget=[];for(o=c;o;)g.unshift(o),p||(p=o.cursor),o=o.parent;for(this.canvas.style.cursor=p,!e&&i&&(i.canvas.style.cursor=p),s=0,a=g.length;a>s&&g[s]==f[s];s++)l=s;for(d!=c&&this._dispatchMouseEvent(d,"mouseout",!0,-1,r,h,c),s=f.length-1;s>l;s--)this._dispatchMouseEvent(f[s],"rollout",!1,-1,r,h,c);for(s=g.length-1;s>l;s--)this._dispatchMouseEvent(g[s],"rollover",!1,-1,r,h,d);d!=c&&this._dispatchMouseEvent(c,"mouseover",!0,-1,r,h,d),n&&n._testMouseOver(t,e||c&&this,i||u&&this)}}},e._handleDoubleClick=function(t,e){var i=null,n=this._nextStage,r=this._getPointerData(-1);e||(i=this._getObjectsUnderPoint(r.x,r.y,null,!0),this._dispatchMouseEvent(i,"dblclick",!0,-1,r,t)),n&&n._handleDoubleClick(t,e||i&&this)},e._dispatchMouseEvent=function(t,e,i,n,r,o,s){if(t&&(i||t.hasEventListener(e))){var a=new createjs.MouseEvent(e,i,!1,r.x,r.y,o,n,n===this._primaryPointerID||-1===n,r.rawX,r.rawY,s);t.dispatchEvent(a)}},createjs.Stage=createjs.promote(t,"Container")}(),this.createjs=this.createjs||{},function(){function t(t){this.DisplayObject_constructor(),"string"==typeof t?(this.image=document.createElement("img"),this.image.src=t):this.image=t,this.sourceRect=null}var e=createjs.extend(t,createjs.DisplayObject);e.initialize=t,e.isVisible=function(){var t=this.image,e=this.cacheCanvas||t&&(t.naturalWidth||t.getContext||t.readyState>=2);return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&e)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e)||!this.image)return!0;var i=this.image,n=this.sourceRect;if(n){var r=n.x,o=n.y,s=r+n.width,a=o+n.height,h=0,u=0,c=i.width,l=i.height;0>r&&(h-=r,r=0),s>c&&(s=c),0>o&&(u-=o,o=0),a>l&&(a=l),t.drawImage(i,r,o,s-r,a-o,h,u,s-r,a-o)}else t.drawImage(i,0,0);return!0},e.getBounds=function(){var t=this.DisplayObject_getBounds();if(t)return t;var e=this.image,i=this.sourceRect||e,n=e&&(e.naturalWidth||e.getContext||e.readyState>=2);return n?this._rectangle.setValues(0,0,i.width,i.height):null},e.clone=function(){var e=new t(this.image);return this.sourceRect&&(e.sourceRect=this.sourceRect.clone()),this._cloneProps(e),e},e.toString=function(){return"[Bitmap (name="+this.name+")]"},createjs.Bitmap=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.DisplayObject_constructor(),this.currentFrame=0,this.currentAnimation=null,this.paused=!0,this.spriteSheet=t,this.currentAnimationFrame=0,this.framerate=0,this._animation=null,this._currentFrame=null,this._skipAdvance=!1,null!=e&&this.gotoAndPlay(e)}var e=createjs.extend(t,createjs.DisplayObject);e.initialize=t,e.isVisible=function(){var t=this.cacheCanvas||this.spriteSheet.complete;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;this._normalizeFrame();var i=this.spriteSheet.getFrame(0|this._currentFrame);if(!i)return!1;var n=i.rect;return n.width&&n.height&&t.drawImage(i.image,n.x,n.y,n.width,n.height,-i.regX,-i.regY,n.width,n.height),!0},e.play=function(){this.paused=!1},e.stop=function(){this.paused=!0},e.gotoAndPlay=function(t){this.paused=!1,this._skipAdvance=!0,this._goto(t)},e.gotoAndStop=function(t){this.paused=!0,this._goto(t)},e.advance=function(t){var e=this.framerate||this.spriteSheet.framerate,i=e&&null!=t?t/(1e3/e):1;this._normalizeFrame(i)},e.getBounds=function(){return this.DisplayObject_getBounds()||this.spriteSheet.getFrameBounds(this.currentFrame,this._rectangle)},e.clone=function(){return this._cloneProps(new t(this.spriteSheet))},e.toString=function(){return"[Sprite (name="+this.name+")]"},e._cloneProps=function(t){return this.DisplayObject__cloneProps(t),t.currentFrame=this.currentFrame,t.currentAnimation=this.currentAnimation,t.paused=this.paused,t.currentAnimationFrame=this.currentAnimationFrame,t.framerate=this.framerate,t._animation=this._animation,t._currentFrame=this._currentFrame,t._skipAdvance=this._skipAdvance,t},e._tick=function(t){this.paused||(this._skipAdvance||this.advance(t&&t.delta),this._skipAdvance=!1),this.DisplayObject__tick(t)},e._normalizeFrame=function(t){t=t||0;var e,i=this._animation,n=this.paused,r=this._currentFrame;if(i){var o=i.speed||1,s=this.currentAnimationFrame;if(e=i.frames.length,s+t*o>=e){var a=i.next;if(this._dispatchAnimationEnd(i,r,n,a,e-1))return;if(a)return this._goto(a,t-(e-s)/o);this.paused=!0,s=i.frames.length-1}else s+=t*o;this.currentAnimationFrame=s,this._currentFrame=i.frames[0|s]}else if(r=this._currentFrame+=t,e=this.spriteSheet.getNumFrames(),r>=e&&e>0&&!this._dispatchAnimationEnd(i,r,n,e-1)&&(this._currentFrame-=e)>=e)return this._normalizeFrame();r=0|this._currentFrame,this.currentFrame!=r&&(this.currentFrame=r,this.dispatchEvent("change"))},e._dispatchAnimationEnd=function(t,e,i,n,r){var o=t?t.name:null;if(this.hasEventListener("animationend")){var s=new createjs.Event("animationend");s.name=o,s.next=n,this.dispatchEvent(s)}var a=this._animation!=t||this._currentFrame!=e;return a||i||!this.paused||(this.currentAnimationFrame=r,a=!0),a},e._goto=function(t,e){if(this.currentAnimationFrame=0,isNaN(t)){var i=this.spriteSheet.getAnimation(t);i&&(this._animation=i,this.currentAnimation=t,this._normalizeFrame(e))}else this.currentAnimation=this._animation=null,this._currentFrame=t,this._normalizeFrame()},createjs.Sprite=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.DisplayObject_constructor(),this.graphics=t?t:new createjs.Graphics}var e=createjs.extend(t,createjs.DisplayObject);e.isVisible=function(){var t=this.cacheCanvas||this.graphics&&!this.graphics.isEmpty();return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){return!!this.DisplayObject_draw(t,e)||(this.graphics.draw(t,this),!0)},e.clone=function(e){var i=e&&this.graphics?this.graphics.clone():this.graphics;return this._cloneProps(new t(i))},e.toString=function(){return"[Shape (name="+this.name+")]"},createjs.Shape=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.DisplayObject_constructor(),this.text=t,this.font=e,this.color=i,this.textAlign="left",this.textBaseline="top",this.maxWidth=null,this.outline=0,this.lineHeight=0,this.lineWidth=null}var e=createjs.extend(t,createjs.DisplayObject),i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.getContext&&(t._workingContext=i.getContext("2d"),i.width=i.height=1),t.H_OFFSETS={start:0,left:0,center:-.5,end:-1,right:-1},t.V_OFFSETS={top:0,hanging:-.01,middle:-.4,alphabetic:-.8,ideographic:-.85,bottom:-1},e.isVisible=function(){var t=this.cacheCanvas||null!=this.text&&""!==this.text;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)},e.draw=function(t,e){if(this.DisplayObject_draw(t,e))return!0;var i=this.color||"#000";return this.outline?(t.strokeStyle=i,t.lineWidth=1*this.outline):t.fillStyle=i,this._drawText(this._prepContext(t)),!0},e.getMeasuredWidth=function(){return this._getMeasuredWidth(this.text)},e.getMeasuredLineHeight=function(){return 1.2*this._getMeasuredWidth("M")},e.getMeasuredHeight=function(){return this._drawText(null,{}).height},e.getBounds=function(){var e=this.DisplayObject_getBounds();if(e)return e;if(null==this.text||""===this.text)return null;var i=this._drawText(null,{}),n=this.maxWidth&&this.maxWidthu;u++){var l=h[u],p=null;if(null!=this.lineWidth&&(p=e.measureText(l).width)>this.lineWidth){var f=l.split(/(\s)/);l=f[0],p=e.measureText(l).width;for(var d=1,g=f.length;g>d;d+=2){var v=e.measureText(f[d]+f[d+1]).width;p+v>this.lineWidth?(r&&this._drawTextLine(e,l,a*o),n&&n.push(l),p>s&&(s=p),l=f[d+1],p=e.measureText(l).width,a++):(l+=f[d]+f[d+1],p+=v)}}r&&this._drawTextLine(e,l,a*o),n&&n.push(l),i&&null==p&&(p=e.measureText(l).width),p>s&&(s=p),a++}return i&&(i.width=s,i.height=a*o),r||e.restore(),i},e._drawTextLine=function(t,e,i){this.outline?t.strokeText(e,0,i,this.maxWidth||65535):t.fillText(e,0,i,this.maxWidth||65535)},e._getMeasuredWidth=function(e){var i=t._workingContext;i.save();var n=this._prepContext(i).measureText(e).width;return i.restore(),n},createjs.Text=createjs.promote(t,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.Container_constructor(),this.text=t||"",this.spriteSheet=e,this.lineHeight=0,this.letterSpacing=0,this.spaceWidth=0,this._oldProps={text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0}}var e=createjs.extend(t,createjs.Container);t.maxPoolSize=100,t._spritePool=[],e.draw=function(t,e){this.DisplayObject_draw(t,e)||(this._updateText(),this.Container_draw(t,e))},e.getBounds=function(){return this._updateText(),this.Container_getBounds()},e.isVisible=function(){var t=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&this.text;return!!(this.visible&&this.alpha>0&&0!==this.scaleX&&0!==this.scaleY&&t)},e.clone=function(){return this._cloneProps(new t(this.text,this.spriteSheet))},e.addChild=e.addChildAt=e.removeChild=e.removeChildAt=e.removeAllChildren=function(){},e._cloneProps=function(t){return this.Container__cloneProps(t),t.lineHeight=this.lineHeight,t.letterSpacing=this.letterSpacing,t.spaceWidth=this.spaceWidth,t},e._getFrameIndex=function(t,e){var i,n=e.getAnimation(t);return n||(t!=(i=t.toUpperCase())||t!=(i=t.toLowerCase())||(i=null),i&&(n=e.getAnimation(i))),n&&n.frames[0]},e._getFrame=function(t,e){var i=this._getFrameIndex(t,e);return null==i?i:e.getFrame(i)},e._getLineHeight=function(t){var e=this._getFrame("1",t)||this._getFrame("T",t)||this._getFrame("L",t)||t.getFrame(0);return e?e.rect.height:1},e._getSpaceWidth=function(t){var e=this._getFrame("1",t)||this._getFrame("l",t)||this._getFrame("e",t)||this._getFrame("a",t)||t.getFrame(0);return e?e.rect.width:1},e._updateText=function(){var e,i=0,n=0,r=this._oldProps,o=!1,s=this.spaceWidth,a=this.lineHeight,h=this.spriteSheet,u=t._spritePool,c=this.children,l=0,p=c.length;for(var f in r)r[f]!=this[f]&&(r[f]=this[f],o=!0);if(o){var d=!!this._getFrame(" ",h);d||s||(s=this._getSpaceWidth(h)),a||(a=this._getLineHeight(h));for(var g=0,v=this.text.length;v>g;g++){var m=this.text.charAt(g);if(" "!=m||d)if("\n"!=m&&"\r"!=m){var _=this._getFrameIndex(m,h);null!=_&&(p>l?e=c[l]:(c.push(e=u.length?u.pop():new createjs.Sprite),e.parent=this,p++),e.spriteSheet=h,e.gotoAndStop(_),e.x=i,e.y=n,l++,i+=e.getBounds().width+this.letterSpacing)}else"\r"==m&&"\n"==this.text.charAt(g+1)&&g++,i=0,n+=a;else i+=s}for(;p>l;)u.push(e=c.pop()),e.parent=null,p--;u.length>t.maxPoolSize&&(u.length=t.maxPoolSize)}},createjs.BitmapText=createjs.promote(t,"Container")}(),this.createjs=this.createjs||{},function(){"use strict";function t(e,i,n,r){this.Container_constructor(),!t.inited&&t.init(),this.mode=e||t.INDEPENDENT,this.startPosition=i||0,this.loop=n,this.currentFrame=0,this.timeline=new createjs.Timeline(null,r,{paused:!0,position:i,useTicks:!0}),this.paused=!1,this.actionsEnabled=!0,this.autoReset=!0,this.frameBounds=this.frameBounds||null,this.framerate=null,this._synchOffset=0,this._prevPos=-1,this._prevPosition=0,this._t=0,this._managed={}}function e(){throw"MovieClipPlugin cannot be instantiated."}var i=createjs.extend(t,createjs.Container);t.INDEPENDENT="independent",t.SINGLE_FRAME="single",t.SYNCHED="synched",t.inited=!1,t.init=function(){t.inited||(e.install(),t.inited=!0)},i.getLabels=function(){return this.timeline.getLabels()},i.getCurrentLabel=function(){return this._updateTimeline(),this.timeline.getCurrentLabel()},i.getDuration=function(){return this.timeline.duration; };try{Object.defineProperties(i,{labels:{get:i.getLabels},currentLabel:{get:i.getCurrentLabel},totalFrames:{get:i.getDuration},duration:{get:i.getDuration}})}catch(t){}i.initialize=t,i.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},i.draw=function(t,e){return!!this.DisplayObject_draw(t,e)||(this._updateTimeline(),this.Container_draw(t,e),!0)},i.play=function(){this.paused=!1},i.stop=function(){this.paused=!0},i.gotoAndPlay=function(t){this.paused=!1,this._goto(t)},i.gotoAndStop=function(t){this.paused=!0,this._goto(t)},i.advance=function(e){var i=t.INDEPENDENT;if(this.mode==i){for(var n=this,r=n.framerate;(n=n.parent)&&null==r;)n.mode==i&&(r=n._framerate);this._framerate=r;var o=null!=r&&-1!=r&&null!=e?e/(1e3/r)+this._t:1,s=0|o;for(this._t=o-s;!this.paused&&s--;)this._prevPosition=this._prevPos<0?0:this._prevPosition+1,this._updateTimeline()}},i.clone=function(){throw"MovieClip cannot be cloned."},i.toString=function(){return"[MovieClip (name="+this.name+")]"},i._tick=function(t){this.advance(t&&t.delta),this.Container__tick(t)},i._goto=function(t){var e=this.timeline.resolve(t);null!=e&&(-1==this._prevPos&&(this._prevPos=NaN),this._prevPosition=e,this._t=0,this._updateTimeline())},i._reset=function(){this._prevPos=-1,this._t=this.currentFrame=0,this.paused=!1},i._updateTimeline=function(){var e=this.timeline,i=this.mode!=t.INDEPENDENT;e.loop=null==this.loop||this.loop;var n=i?this.startPosition+(this.mode==t.SINGLE_FRAME?0:this._synchOffset):this._prevPos<0?0:this._prevPosition,r=i||!this.actionsEnabled?createjs.Tween.NONE:null;if(this.currentFrame=e._calcPosition(n),e.setPosition(n,r),this._prevPosition=e._prevPosition,this._prevPos!=e._prevPos){this.currentFrame=this._prevPos=e._prevPos;for(var o in this._managed)this._managed[o]=1;for(var s=e._tweens,a=0,h=s.length;h>a;a++){var u=s[a],c=u._target;if(c!=this&&!u.passive){var l=u._stepPosition;c instanceof createjs.DisplayObject?this._addManagedChild(c,l):this._setState(c.state,l)}}var p=this.children;for(a=p.length-1;a>=0;a--){var f=p[a].id;1==this._managed[f]&&(this.removeChildAt(a),delete this._managed[f])}}},i._setState=function(t,e){if(t)for(var i=t.length-1;i>=0;i--){var n=t[i],r=n.t,o=n.p;for(var s in o)r[s]=o[s];this._addManagedChild(r,e)}},i._addManagedChild=function(e,i){e._off||(this.addChildAt(e,0),e instanceof t&&(e._synchOffset=i,e.mode==t.INDEPENDENT&&e.autoReset&&!this._managed[e.id]&&e._reset()),this._managed[e.id]=2)},i._getBounds=function(t,e){var i=this.DisplayObject_getBounds();return i||(this._updateTimeline(),this.frameBounds&&(i=this._rectangle.copy(this.frameBounds[this.currentFrame]))),i?this._transformBounds(i,t,e):this.Container__getBounds(t,e)},createjs.MovieClip=createjs.promote(t,"Container"),e.priority=100,e.install=function(){createjs.Tween.installPlugin(e,["startPosition"])},e.init=function(t,e,i){return i},e.step=function(){},e.tween=function(e,i,n,r,o,s){return e.target instanceof t?1==s?o[i]:r[i]:n}}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"SpriteSheetUtils cannot be instantiated"}var e=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");e.getContext&&(t._workingCanvas=e,t._workingContext=e.getContext("2d"),e.width=e.height=1),t.addFlippedFrames=function(e,i,n,r){if(i||n||r){var o=0;i&&t._flip(e,++o,!0,!1),n&&t._flip(e,++o,!1,!0),r&&t._flip(e,++o,!0,!0)}},t.extractFrame=function(e,i){isNaN(i)&&(i=e.getAnimation(i).frames[0]);var n=e.getFrame(i);if(!n)return null;var r=n.rect,o=t._workingCanvas;o.width=r.width,o.height=r.height,t._workingContext.drawImage(n.image,r.x,r.y,r.width,r.height,0,0,r.width,r.height);var s=document.createElement("img");return s.src=o.toDataURL("image/png"),s},t.mergeAlpha=function(t,e,i){i||(i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")),i.width=Math.max(e.width,t.width),i.height=Math.max(e.height,t.height);var n=i.getContext("2d");return n.save(),n.drawImage(t,0,0),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),n.restore(),i},t._flip=function(e,i,n,r){for(var o=e._images,s=t._workingCanvas,a=t._workingContext,h=o.length/i,u=0;h>u;u++){var c=o[u];c.__tmp=u,a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,s.width+1,s.height+1),s.width=c.width,s.height=c.height,a.setTransform(n?-1:1,0,0,r?-1:1,n?c.width:0,r?c.height:0),a.drawImage(c,0,0);var l=document.createElement("img");l.src=s.toDataURL("image/png"),l.width=c.width,l.height=c.height,o.push(l)}var p=e._frames,f=p.length/i;for(u=0;f>u;u++){c=p[u];var d=c.rect.clone();l=o[c.image.__tmp+h*i];var g={image:l,rect:d,regX:c.regX,regY:c.regY};n&&(d.x=l.width-d.x-d.width,g.regX=d.width-c.regX),r&&(d.y=l.height-d.y-d.height,g.regY=d.height-c.regY),p.push(g)}var v="_"+(n?"h":"")+(r?"v":""),m=e._animations,_=e._data,y=m.length/i;for(u=0;y>u;u++){var b=m[u];c=_[b];var w={name:b+v,speed:c.speed,next:c.next,frames:[]};c.next&&(w.next+=v),p=c.frames;for(var A=0,x=p.length;x>A;A++)w.frames.push(p[A]+f*i);_[w.name]=w,m.push(w.name)}},createjs.SpriteSheetUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.EventDispatcher_constructor(),this.maxWidth=2048,this.maxHeight=2048,this.spriteSheet=null,this.scale=1,this.padding=1,this.timeSlice=.3,this.progress=-1,this.framerate=t||0,this._frames=[],this._animations={},this._data=null,this._nextFrameIndex=0,this._index=0,this._timerID=null,this._scale=1}var e=createjs.extend(t,createjs.EventDispatcher);t.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions",t.ERR_RUNNING="a build is already running",e.addFrame=function(e,i,n,r,o){if(this._data)throw t.ERR_RUNNING;var s=i||e.bounds||e.nominalBounds;return!s&&e.getBounds&&(s=e.getBounds()),s?(n=n||1,this._frames.push({source:e,sourceRect:s,scale:n,funct:r,data:o,index:this._frames.length,height:s.height*n})-1):null},e.addAnimation=function(e,i,n,r){if(this._data)throw t.ERR_RUNNING;this._animations[e]={frames:i,next:n,speed:r}},e.addMovieClip=function(e,i,n,r,o,s){if(this._data)throw t.ERR_RUNNING;var a=e.frameBounds,h=i||e.bounds||e.nominalBounds;if(!h&&e.getBounds&&(h=e.getBounds()),h||a){var u,c,l=this._frames.length,p=e.timeline.duration;for(u=0;p>u;u++){var f=a&&a[u]?a[u]:h;this.addFrame(e,f,n,this._setupMovieClipFrame,{i:u,f:r,d:o})}var d=e.timeline._labels,g=[];for(var v in d)g.push({index:d[v],label:v});if(g.length)for(g.sort(function(t,e){return t.index-e.index}),u=0,c=g.length;c>u;u++){for(var m=g[u].label,_=l+g[u].index,y=l+(u==c-1?p:g[u+1].index),b=[],w=_;y>w;w++)b.push(w);(!s||(m=s(m,e,_,y)))&&this.addAnimation(m,b,!0)}}},e.build=function(){if(this._data)throw t.ERR_RUNNING;for(this._startBuild();this._drawNext(););return this._endBuild(),this.spriteSheet},e.buildAsync=function(e){if(this._data)throw t.ERR_RUNNING;this.timeSlice=e,this._startBuild();var i=this;this._timerID=setTimeout(function(){i._run()},50-50*Math.max(.01,Math.min(.99,this.timeSlice||.3)))},e.stopAsync=function(){clearTimeout(this._timerID),this._data=null},e.clone=function(){throw"SpriteSheetBuilder cannot be cloned."},e.toString=function(){return"[SpriteSheetBuilder]"},e._startBuild=function(){var e=this.padding||0;this.progress=0,this.spriteSheet=null,this._index=0,this._scale=this.scale;var i=[];this._data={images:[],frames:i,framerate:this.framerate,animations:this._animations};var n=this._frames.slice();if(n.sort(function(t,e){return t.height<=e.height?-1:1}),n[n.length-1].height+2*e>this.maxHeight)throw t.ERR_DIMENSIONS;for(var r=0,o=0,s=0;n.length;){var a=this._fillRow(n,r,s,i,e);if(a.w>o&&(o=a.w),r+=a.h,!a.h||!n.length){var h=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");h.width=this._getSize(o,this.maxWidth),h.height=this._getSize(r,this.maxHeight),this._data.images[s]=h,a.h||(o=r=0,s++)}}},e._setupMovieClipFrame=function(t,e){var i=t.actionsEnabled;t.actionsEnabled=!1,t.gotoAndStop(e.i),t.actionsEnabled=i,e.f&&e.f(t,e.d,e.i)},e._getSize=function(t,e){for(var i=4;Math.pow(2,++i)=0;l--){var p=e[l],f=this._scale*p.scale,d=p.sourceRect,g=p.source,v=Math.floor(f*d.x-o),m=Math.floor(f*d.y-o),_=Math.ceil(f*d.height+2*o),y=Math.ceil(f*d.width+2*o);if(y>s)throw t.ERR_DIMENSIONS;_>h||u+y>s||(p.img=n,p.rect=new createjs.Rectangle(u,i,y,_),c=c||_,e.splice(l,1),r[p.index]=[u,i,y,_,n,Math.round(-v+f*g.regX-o),Math.round(-m+f*g.regY-o)],u+=y)}return{w:u,h:c}},e._endBuild=function(){this.spriteSheet=new createjs.SpriteSheet(this._data),this._data=null,this.progress=1,this.dispatchEvent("complete")},e._run=function(){for(var t=50*Math.max(.01,Math.min(.99,this.timeSlice||.3)),e=(new Date).getTime()+t,i=!1;e>(new Date).getTime();)if(!this._drawNext()){i=!0;break}if(i)this._endBuild();else{var n=this;this._timerID=setTimeout(function(){n._run()},50-t)}var r=this.progress=this._index/this._frames.length;if(this.hasEventListener("progress")){var o=new createjs.Event("progress");o.progress=r,this.dispatchEvent(o)}},e._drawNext=function(){var t=this._frames[this._index],e=t.scale*this._scale,i=t.rect,n=t.sourceRect,r=this._data.images[t.img],o=r.getContext("2d");return t.funct&&t.funct(t.source,t.data),o.save(),o.beginPath(),o.rect(i.x,i.y,i.width,i.height),o.clip(),o.translate(Math.ceil(i.x-n.x*e),Math.ceil(i.y-n.y*e)),o.scale(e,e),t.source.draw(o),o.restore(),++this._indext)&&(t=0),(isNaN(e)||0>e)&&(e=0),(isNaN(i)||1>i)&&(i=1),this.blurX=0|t,this.blurY=0|e,this.quality=0|i}var e=createjs.extend(t,createjs.Filter);t.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1],t.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9],e.getBounds=function(t){var e=0|this.blurX,i=0|this.blurY;if(0>=e&&0>=i)return t;var n=Math.pow(this.quality,.2);return(t||new createjs.Rectangle).pad(e*n+1,i*n+1,e*n+1,i*n+1)},e.clone=function(){return new t(this.blurX,this.blurY,this.quality)},e.toString=function(){return"[BlurFilter]"},e._applyFilter=function(e){var i=this.blurX>>1;if(isNaN(i)||0>i)return!1;var n=this.blurY>>1;if(isNaN(n)||0>n)return!1;if(0==i&&0==n)return!1;var r=this.quality;(isNaN(r)||1>r)&&(r=1),r|=0,r>3&&(r=3),1>r&&(r=1);var o=e.data,s=0,a=0,h=0,u=0,c=0,l=0,p=0,f=0,d=0,g=0,v=0,m=0,_=0,y=0,b=0,w=i+i+1|0,A=n+n+1|0,x=0|e.width,S=0|e.height,C=x-1|0,P=S-1|0,T=i+1|0,k=n+1|0,E={r:0,b:0,g:0,a:0},D=E;for(h=1;w>h;h++)D=D.n={r:0,b:0,g:0,a:0};D.n=E;var I={r:0,b:0,g:0,a:0},L=I;for(h=1;A>h;h++)L=L.n={r:0,b:0,g:0,a:0};L.n=I;for(var $=null,O=0|t.MUL_TABLE[i],R=0|t.SHG_TABLE[i],j=0|t.MUL_TABLE[n],M=0|t.SHG_TABLE[n];r-- >0;){p=l=0;var F=O,N=R;for(a=S;--a>-1;){for(f=T*(m=o[0|l]),d=T*(_=o[l+1|0]),g=T*(y=o[l+2|0]),v=T*(b=o[l+3|0]),D=E,h=T;--h>-1;)D.r=m,D.g=_,D.b=y,D.a=b,D=D.n;for(h=1;T>h;h++)u=l+((h>C?C:h)<<2)|0,f+=D.r=o[u],d+=D.g=o[u+1],g+=D.b=o[u+2],v+=D.a=o[u+3],D=D.n;for($=E,s=0;x>s;s++)o[l++]=f*F>>>N,o[l++]=d*F>>>N,o[l++]=g*F>>>N,o[l++]=v*F>>>N,u=p+((u=s+i+1)s;s++){for(l=s<<2|0,f=k*(m=o[l])|0,d=k*(_=o[l+1|0])|0,g=k*(y=o[l+2|0])|0,v=k*(b=o[l+3|0])|0,L=I,h=0;k>h;h++)L.r=m,L.g=_,L.b=y,L.a=b,L=L.n;for(c=x,h=1;n>=h;h++)l=c+s<<2,f+=L.r=o[l],d+=L.g=o[l+1],g+=L.b=o[l+2],v+=L.a=o[l+3],L=L.n,P>h&&(c+=x);if(l=s,$=I,r>0)for(a=0;S>a;a++)u=l<<2,o[u+3]=b=v*F>>>N,b>0?(o[u]=f*F>>>N,o[u+1]=d*F>>>N,o[u+2]=g*F>>>N):o[u]=o[u+1]=o[u+2]=0,u=s+((u=a+k)a;a++)u=l<<2,o[u+3]=b=v*F>>>N,b>0?(b=255/b,o[u]=(f*F>>>N)*b,o[u+1]=(d*F>>>N)*b,o[u+2]=(g*F>>>N)*b):o[u]=o[u+1]=o[u+2]=0,u=s+((u=a+k)n;n+=4)e[n+3]=i[n]||0;return!0},e._prepAlphaMap=function(){if(!this.alphaMap)return!1;if(this.alphaMap==this._alphaMap&&this._mapData)return!0;this._mapData=null;var t,e=this._alphaMap=this.alphaMap,i=e;e instanceof HTMLCanvasElement?t=i.getContext("2d"):(i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"),i.width=e.width,i.height=e.height,t=i.getContext("2d"),t.drawImage(e,0,0));try{var n=t.getImageData(0,0,e.width,e.height)}catch(t){return!1}return this._mapData=n.data,!0},createjs.AlphaMapFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.mask=t}var e=createjs.extend(t,createjs.Filter);e.applyFilter=function(t,e,i,n,r,o,s,a){return!this.mask||(o=o||t,null==s&&(s=e),null==a&&(a=i),o.save(),t==o&&(o.globalCompositeOperation="destination-in",o.drawImage(this.mask,s,a),o.restore(),!0))},e.clone=function(){return new t(this.mask)},e.toString=function(){return"[AlphaMaskFilter]"},createjs.AlphaMaskFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n,r,o,s,a){this.redMultiplier=null!=t?t:1,this.greenMultiplier=null!=e?e:1,this.blueMultiplier=null!=i?i:1,this.alphaMultiplier=null!=n?n:1,this.redOffset=r||0,this.greenOffset=o||0,this.blueOffset=s||0,this.alphaOffset=a||0}var e=createjs.extend(t,createjs.Filter);e.toString=function(){return"[ColorFilter]"},e.clone=function(){return new t(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},e._applyFilter=function(t){for(var e=t.data,i=e.length,n=0;i>n;n+=4)e[n]=e[n]*this.redMultiplier+this.redOffset,e[n+1]=e[n+1]*this.greenMultiplier+this.greenOffset,e[n+2]=e[n+2]*this.blueMultiplier+this.blueOffset,e[n+3]=e[n+3]*this.alphaMultiplier+this.alphaOffset;return!0},createjs.ColorFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n){this.setColor(t,e,i,n)}var e=t.prototype;t.DELTA_INDEX=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],t.IDENTITY_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],t.LENGTH=t.IDENTITY_MATRIX.length,e.setColor=function(t,e,i,n){return this.reset().adjustColor(t,e,i,n)},e.reset=function(){return this.copy(t.IDENTITY_MATRIX)},e.adjustColor=function(t,e,i,n){return this.adjustHue(n),this.adjustContrast(e),this.adjustBrightness(t),this.adjustSaturation(i)},e.adjustBrightness=function(t){return 0==t||isNaN(t)?this:(t=this._cleanValue(t,255),this._multiplyMatrix([1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1]),this)},e.adjustContrast=function(e){if(0==e||isNaN(e))return this;e=this._cleanValue(e,100);var i;return 0>e?i=127+e/100*127:(i=e%1,i=0==i?t.DELTA_INDEX[e]:t.DELTA_INDEX[e<<0]*(1-i)+t.DELTA_INDEX[(e<<0)+1]*i,i=127*i+127),this._multiplyMatrix([i/127,0,0,0,.5*(127-i),0,i/127,0,0,.5*(127-i),0,0,i/127,0,.5*(127-i),0,0,0,1,0,0,0,0,0,1]),this},e.adjustSaturation=function(t){if(0==t||isNaN(t))return this;t=this._cleanValue(t,100);var e=1+(t>0?3*t/100:t/100),i=.3086,n=.6094,r=.082;return this._multiplyMatrix([i*(1-e)+e,n*(1-e),r*(1-e),0,0,i*(1-e),n*(1-e)+e,r*(1-e),0,0,i*(1-e),n*(1-e),r*(1-e)+e,0,0,0,0,0,1,0,0,0,0,0,1]),this},e.adjustHue=function(t){if(0==t||isNaN(t))return this;t=this._cleanValue(t,180)/180*Math.PI;var e=Math.cos(t),i=Math.sin(t),n=.213,r=.715,o=.072;return this._multiplyMatrix([n+e*(1-n)+i*-n,r+e*-r+i*-r,o+e*-o+i*(1-o),0,0,n+e*-n+.143*i,r+e*(1-r)+.14*i,o+e*-o+i*-.283,0,0,n+e*-n+i*-(1-n),r+e*-r+i*r,o+e*(1-o)+i*o,0,0,0,0,0,1,0,0,0,0,0,1]),this},e.concat=function(e){return e=this._fixMatrix(e),e.length!=t.LENGTH?this:(this._multiplyMatrix(e),this)},e.clone=function(){return(new t).copy(this)},e.toArray=function(){for(var e=[],i=0,n=t.LENGTH;n>i;i++)e[i]=this[i];return e},e.copy=function(e){for(var i=t.LENGTH,n=0;i>n;n++)this[n]=e[n];return this},e.toString=function(){return"[ColorMatrix]"},e._multiplyMatrix=function(t){var e,i,n,r=[];for(e=0;5>e;e++){for(i=0;5>i;i++)r[i]=this[i+5*e];for(i=0;5>i;i++){var o=0;for(n=0;5>n;n++)o+=t[i+5*n]*r[n];this[i+5*e]=o}}},e._cleanValue=function(t,e){return Math.min(e,Math.max(-e,t))},e._fixMatrix=function(e){return e instanceof t&&(e=e.toArray()),e.lengtht.LENGTH&&(e=e.slice(0,t.LENGTH)),e},createjs.ColorMatrix=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.matrix=t}var e=createjs.extend(t,createjs.Filter);e.toString=function(){return"[ColorMatrixFilter]"},e.clone=function(){return new t(this.matrix)},e._applyFilter=function(t){for(var e,i,n,r,o=t.data,s=o.length,a=this.matrix,h=a[0],u=a[1],c=a[2],l=a[3],p=a[4],f=a[5],d=a[6],g=a[7],v=a[8],m=a[9],_=a[10],y=a[11],b=a[12],w=a[13],A=a[14],x=a[15],S=a[16],C=a[17],P=a[18],T=a[19],k=0;s>k;k+=4)e=o[k],i=o[k+1],n=o[k+2],r=o[k+3],o[k]=e*h+i*u+n*c+r*l+p,o[k+1]=e*f+i*d+n*g+r*v+m,o[k+2]=e*_+i*y+n*b+r*w+A,o[k+3]=e*x+i*S+n*C+r*P+T;return!0},createjs.ColorMatrixFilter=createjs.promote(t,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Touch cannot be instantiated"}t.isSupported=function(){return!!("ontouchstart"in window||window.MSPointerEvent&&window.navigator.msMaxTouchPoints>0||window.PointerEvent&&window.navigator.maxTouchPoints>0)},t.enable=function(e,i,n){return!(!(e&&e.canvas&&t.isSupported())||!e.__touch&&(e.__touch={pointers:{},multitouch:!i,preventDefault:!n,count:0},"ontouchstart"in window?t._IOS_enable(e):(window.PointerEvent||window.MSPointerEvent)&&t._IE_enable(e),0))},t.disable=function(e){e&&("ontouchstart"in window?t._IOS_disable(e):(window.PointerEvent||window.MSPointerEvent)&&t._IE_disable(e),delete e.__touch)},t._IOS_enable=function(e){var i=e.canvas,n=e.__touch.f=function(i){t._IOS_handleEvent(e,i)};i.addEventListener("touchstart",n,!1),i.addEventListener("touchmove",n,!1),i.addEventListener("touchend",n,!1),i.addEventListener("touchcancel",n,!1)},t._IOS_disable=function(t){var e=t.canvas;if(e){var i=t.__touch.f;e.removeEventListener("touchstart",i,!1),e.removeEventListener("touchmove",i,!1),e.removeEventListener("touchend",i,!1),e.removeEventListener("touchcancel",i,!1)}},t._IOS_handleEvent=function(t,e){if(t){t.__touch.preventDefault&&e.preventDefault&&e.preventDefault();for(var i=e.changedTouches,n=e.type,r=0,o=i.length;o>r;r++){var s=i[r],a=s.identifier;s.target==t.canvas&&("touchstart"===n?this._handleStart(t,a,e,s.pageX,s.pageY):"touchmove"===n?this._handleMove(t,a,e,s.pageX,s.pageY):("touchend"===n||"touchcancel"===n)&&this._handleEnd(t,a,e))}}},t._IE_enable=function(e){var i=e.canvas,n=e.__touch.f=function(i){t._IE_handleEvent(e,i)};void 0===window.PointerEvent?(i.addEventListener("MSPointerDown",n,!1),window.addEventListener("MSPointerMove",n,!1),window.addEventListener("MSPointerUp",n,!1),window.addEventListener("MSPointerCancel",n,!1),e.__touch.preventDefault&&(i.style.msTouchAction="none")):(i.addEventListener("pointerdown",n,!1),window.addEventListener("pointermove",n,!1),window.addEventListener("pointerup",n,!1),window.addEventListener("pointercancel",n,!1),e.__touch.preventDefault&&(i.style.touchAction="none")),e.__touch.activeIDs={}},t._IE_disable=function(t){var e=t.__touch.f;void 0===window.PointerEvent?(window.removeEventListener("MSPointerMove",e,!1),window.removeEventListener("MSPointerUp",e,!1),window.removeEventListener("MSPointerCancel",e,!1),t.canvas&&t.canvas.removeEventListener("MSPointerDown",e,!1)):(window.removeEventListener("pointermove",e,!1),window.removeEventListener("pointerup",e,!1),window.removeEventListener("pointercancel",e,!1),t.canvas&&t.canvas.removeEventListener("pointerdown",e,!1))},t._IE_handleEvent=function(t,e){if(t){t.__touch.preventDefault&&e.preventDefault&&e.preventDefault();var i=e.type,n=e.pointerId,r=t.__touch.activeIDs;if("MSPointerDown"===i||"pointerdown"===i){if(e.srcElement!=t.canvas)return;r[n]=!0,this._handleStart(t,n,e,e.pageX,e.pageY)}else r[n]&&("MSPointerMove"===i||"pointermove"===i?this._handleMove(t,n,e,e.pageX,e.pageY):("MSPointerUp"===i||"MSPointerCancel"===i||"pointerup"===i||"pointercancel"===i)&&(delete r[n],this._handleEnd(t,n,e)))}},t._handleStart=function(t,e,i,n,r){var o=t.__touch;if(o.multitouch||!o.count){var s=o.pointers;s[e]||(s[e]=!0,o.count++,t._handlePointerDown(e,i,n,r))}},t._handleMove=function(t,e,i,n,r){t.__touch.pointers[e]&&t._handlePointerMove(e,i,n,r)},t._handleEnd=function(t,e,i){var n=t.__touch,r=n.pointers;r[e]&&(n.count--,t._handlePointerUp(e,i,!0),delete r[e])},createjs.Touch=t}(),this.createjs=this.createjs||{},function(){"use strict";var t=createjs.EaselJS=createjs.EaselJS||{};t.version="0.8.3",t.buildDate="Thu, 09 May 2019 15:42:49 GMT"}()}).call(window)},function(t,e){(function(){/*! * @license SoundJS * Visit http://createjs.com/ for documentation, updates and examples. * * Copyright (c) 2011-2015 gskinner.com, inc. * * Distributed under the terms of the MIT license. * http://www.opensource.org/licenses/mit-license.html * * This notice shall be included in all copies or substantial portions of the Software. */ /**! * SoundJS FlashAudioPlugin also includes swfobject (http://code.google.com/p/swfobject/) */ this.createjs=this.createjs||{},function(){var t=createjs.SoundJS=createjs.SoundJS||{};t.version="NEXT",t.buildDate="Mon, 14 Sep 2015 19:11:47 GMT"}(),this.createjs=this.createjs||{},createjs.extend=function(t,e){"use strict";function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i},this.createjs=this.createjs||{},createjs.promote=function(t,e){"use strict";var i=t.prototype,n=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__;if(n){i[(e+="_")+"constructor"]=n.constructor;for(var r in n)i.hasOwnProperty(r)&&"function"==typeof n[r]&&(i[e+r]=n[r])}return t},this.createjs=this.createjs||{},createjs.indexOf=function(t,e){"use strict";for(var i=0,n=t.length;n>i;i++)if(e===t[i])return i;return-1},this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(t,e){var i=Array.prototype.slice.call(arguments,2);return function(){return t.apply(e,Array.prototype.slice.call(arguments,0).concat(i))}}}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"BrowserDetect cannot be instantiated"}var e=t.agent=window.navigator.userAgent;t.isWindowPhone=e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,t.isFirefox=e.indexOf("Firefox")>-1,t.isOpera=null!=window.opera,t.isChrome=e.indexOf("Chrome")>-1,t.isIOS=(e.indexOf("iPod")>-1||e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&!t.isWindowPhone,t.isAndroid=e.indexOf("Android")>-1&&!t.isWindowPhone,t.isBlackberry=e.indexOf("Blackberry")>-1,createjs.BrowserDetect=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var e=t.prototype;t.initialize=function(t){t.addEventListener=e.addEventListener,t.on=e.on,t.removeEventListener=t.off=e.removeEventListener,t.removeAllEventListeners=e.removeAllEventListeners,t.hasEventListener=e.hasEventListener,t.dispatchEvent=e.dispatchEvent,t._dispatchEvent=e._dispatchEvent,t.willTrigger=e.willTrigger},e.addEventListener=function(t,e,i){var n;n=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var r=n[t];return r&&this.removeEventListener(t,e,i),r=n[t],r?r.push(e):n[t]=[e],e},e.on=function(t,e,i,n,r,o){return e.handleEvent&&(i=i||e,e=e.handleEvent),i=i||this,this.addEventListener(t,function(t){e.call(i,t,r),n&&t.remove()},o)},e.removeEventListener=function(t,e,i){var n=i?this._captureListeners:this._listeners;if(n){var r=n[t];if(r)for(var o=0,s=r.length;s>o;o++)if(r[o]==e){1==s?delete n[t]:r.splice(o,1);break}}},e.off=e.removeEventListener,e.removeAllEventListeners=function(t){t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null},e.dispatchEvent=function(t){if("string"==typeof t){var e=this._listeners;if(!e||!e[t])return!1;t=new createjs.Event(t)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var i=this,n=[i];i.parent;)n.push(i=i.parent);var r,o=n.length;for(r=o-1;r>=0&&!t.propagationStopped;r--)n[r]._dispatchEvent(t,1+(0==r));for(r=1;o>r&&!t.propagationStopped;r++)n[r]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return t.defaultPrevented},e.hasEventListener=function(t){var e=this._listeners,i=this._captureListeners;return!!(e&&e[t]||i&&i[t])},e.willTrigger=function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1},e.toString=function(){return"[EventDispatcher]"},e._dispatchEvent=function(t,e){var i,n=1==e?this._captureListeners:this._listeners;if(t&&n){var r=n[t.type];if(!r||!(i=r.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,r=r.slice();for(var o=0;i>o&&!t.immediatePropagationStopped;o++){var s=r[o];s.handleEvent?s.handleEvent(t):s(t),t.removed&&(this.off(t.type,s,1==e),t.removed=!1)}}},createjs.EventDispatcher=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.type=t,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!e,this.cancelable=!!i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e=t.prototype;e.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},e.stopPropagation=function(){this.propagationStopped=!0},e.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.remove=function(){this.removed=!0},e.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.Event_constructor("error"),this.title=t,this.message=e,this.data=i}var e=createjs.extend(t,createjs.Event);e.clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(t,"Event")}(),this.createjs=this.createjs||{},function(t){"use strict";function e(t,e){this.Event_constructor("progress"),this.loaded=t,this.total=null==e?1:e,this.progress=0==e?0:this.loaded/this.total}var i=createjs.extend(e,createjs.Event);i.clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(e,"Event")}(window),this.createjs=this.createjs||{},function(){"use strict";function t(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.LoadItem.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=i.LOAD_TIMEOUT_DEFAULT}var e=t.prototype={},i=t;i.LOAD_TIMEOUT_DEFAULT=8e3,i.create=function(e){if("string"==typeof e){var n=new t;return n.src=e,n}if(e instanceof i)return e;if(e instanceof Object&&e.src)return null==e.loadTimeout&&(e.loadTimeout=i.LOAD_TIMEOUT_DEFAULT),e;throw new Error("Type not recognized.")},e.set=function(t){for(var e in t)this[e]=t[e];return this},createjs.LoadItem=i}(),function(){var t={};t.ABSOLUTE_PATT=/^(?:\w+:)?\/{2}/i,t.RELATIVE_PATT=/^[.\/]*?\//i,t.EXTENSION_PATT=/\/?[^\/]+\.(\w{1,5})$/i,t.parseURI=function(e){var i={absolute:!1,relative:!1};if(null==e)return i;var n=e.indexOf("?");n>-1&&(e=e.substr(0,n));var r;return t.ABSOLUTE_PATT.test(e)?i.absolute=!0:t.RELATIVE_PATT.test(e)&&(i.relative=!0),(r=e.match(t.EXTENSION_PATT))&&(i.extension=r[1].toLowerCase()),i},t.formatQueryString=function(t,e){if(null==t)throw new Error("You must specify data.");var i=[];for(var n in t)i.push(n+"="+escape(t[n]));return e&&(i=i.concat(e)),i.join("&")},t.buildPath=function(t,e){if(null==e)return t;var i=[],n=t.indexOf("?");if(-1!=n){var r=t.slice(n+1);i=i.concat(r.split("&"))}return-1!=n?t.slice(0,n)+"?"+this._formatQueryString(e,i):t+"?"+this._formatQueryString(e,i)},t.isCrossDomain=function(t){var e=document.createElement("a");e.href=t.src;var i=document.createElement("a");i.href=location.href;var n=""!=e.hostname&&(e.port!=i.port||e.protocol!=i.protocol||e.hostname!=i.hostname);return n},t.isLocal=function(t){var e=document.createElement("a");return e.href=t.src,""==e.hostname&&"file:"==e.protocol},t.isBinary=function(t){switch(t){case createjs.AbstractLoader.IMAGE:case createjs.AbstractLoader.BINARY:return!0;default:return!1}},t.isImageTag=function(t){return t instanceof HTMLImageElement},t.isAudioTag=function(t){return!!window.HTMLAudioElement&&t instanceof HTMLAudioElement},t.isVideoTag=function(t){return!!window.HTMLVideoElement&&t instanceof HTMLVideoElement},t.isText=function(t){switch(t){case createjs.AbstractLoader.TEXT:case createjs.AbstractLoader.JSON:case createjs.AbstractLoader.MANIFEST:case createjs.AbstractLoader.XML:case createjs.AbstractLoader.CSS:case createjs.AbstractLoader.SVG:case createjs.AbstractLoader.JAVASCRIPT:case createjs.AbstractLoader.SPRITESHEET:return!0;default:return!1}},t.getTypeByExtension=function(t){if(null==t)return createjs.AbstractLoader.TEXT;switch(t.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.AbstractLoader.IMAGE;case"ogg":case"mp3":case"webm":return createjs.AbstractLoader.SOUND;case"mp4":case"webm":case"ts":return createjs.AbstractLoader.VIDEO;case"json":return createjs.AbstractLoader.JSON;case"xml":return createjs.AbstractLoader.XML;case"css":return createjs.AbstractLoader.CSS;case"js":return createjs.AbstractLoader.JAVASCRIPT;case"svg":return createjs.AbstractLoader.SVG;default:return createjs.AbstractLoader.TEXT}},createjs.RequestUtils=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=i,this.resultFormatter=null,this._item=t?createjs.LoadItem.create(t):null,this._preferXHR=e,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var e=createjs.extend(t,createjs.EventDispatcher),i=t;i.POST="POST",i.GET="GET",i.BINARY="binary",i.CSS="css",i.IMAGE="image",i.JAVASCRIPT="javascript",i.JSON="json",i.JSONP="jsonp",i.MANIFEST="manifest",i.SOUND="sound",i.VIDEO="video",i.SPRITESHEET="spritesheet",i.SVG="svg",i.TEXT="text",i.XML="xml",e.getItem=function(){return this._item},e.getResult=function(t){return t?this._rawResult:this._result},e.getTag=function(){return this._tag},e.setTag=function(t){this._tag=t},e.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var t=new createjs.Event("initialize");t.loader=this._request,this.dispatchEvent(t),this._request.load()},e.cancel=function(){this.canceled=!0,this.destroy()},e.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},e.getLoadedItems=function(){return this._loadedItems},e._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._createTag=function(t){return null},e._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},e._sendProgress=function(t){if(!this._isCanceled()){var e=null;"number"==typeof t?(this.progress=t,e=new createjs.ProgressEvent(this.progress)):(e=t,this.progress=t.loaded/t.total,e.progress=this.progress,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(e)}},e._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var t=new createjs.Event("complete");t.rawResult=this._rawResult,null!=this._result&&(t.result=this._result),this.dispatchEvent(t)}},e._sendError=function(t){!this._isCanceled()&&this.hasEventListener("error")&&(null==t&&(t=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(t))},e._isCanceled=function(){return!(null!=window.createjs&&!this.canceled)},e.resultFormatter=null,e.handleEvent=function(t){switch(t.type){case"complete":this._rawResult=t.target._response;var e=this.resultFormatter&&this.resultFormatter(this),i=this;e instanceof Function?e(function(t){i._result=t,i._sendComplete()}):(this._result=e||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(t);break;case"error":this._sendError(t);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(t.type)}},e.buildPath=function(t,e){return createjs.RequestUtils.buildPath(t,e)},e.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractLoader_constructor(t,e,i),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src"}var e=createjs.extend(t,createjs.AbstractLoader);e.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},e._createTag=function(){},e._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},e._formatResult=function(t){return this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR&&(t.getTag().src=t.getResult(!0)),t.getTag()},createjs.AbstractMediaLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(t){this._item=t},e=createjs.extend(t,createjs.EventDispatcher);e.load=function(){},e.destroy=function(){},e.cancel=function(){},createjs.AbstractRequest=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1,this._startTagVisibility=null}var e=createjs.extend(t,createjs.AbstractRequest);e.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this),this._tag.onerror=createjs.proxy(this._handleError,this);var t=new createjs.Event("initialize");t.loader=this._tag,this.dispatchEvent(t),this._hideTag(),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag[this._tagSrcAttribute]=this._item.src,null==this._tag.parentNode&&(window.document.body.appendChild(this._tag),this._addedToDOM=!0)},e.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;("loaded"==t.readyState||"complete"==t.readyState)&&this._handleTagComplete()},e._handleError=function(){this._clean(),this.dispatchEvent("error")},e._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this._showTag(),this.dispatchEvent("complete")},e._handleTimeout=function(){this._clean(),this.dispatchEvent(new createjs.Event("timeout"))},e._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._tag.onerror=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag),clearTimeout(this._loadTimeout)},e._hideTag=function(){this._startTagVisibility=this._tag.style.visibility,this._tag.style.visibility="hidden"},e._showTag=function(){this._tag.style.visibility=this._startTagVisibility},e._handleStalled=function(){},createjs.TagRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.AbstractRequest_constructor(t),this._tag=e,this._tagSrcAttribute=i,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var e=createjs.extend(t,createjs.TagRequest);e.load=function(){var t=createjs.proxy(this._handleStalled,this);this._stalledCallback=t;var e=createjs.proxy(this._handleProgress,this);this._handleProgress=e,this._tag.addEventListener("stalled",t),this._tag.addEventListener("progress",e),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},e._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var t=this._tag;("loaded"==t.readyState||"complete"==t.readyState)&&this._handleTagComplete()},e._handleStalled=function(){},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.removeEventListener("stalled",this._stalledCallback),this._tag.removeEventListener("progress",this._progressCallback),this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(t,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractRequest_constructor(t),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),!this._createXHR(t)}var e=createjs.extend(t,createjs.AbstractRequest);t.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],e.getResult=function(t){return t&&this._rawResponse?this._rawResponse:this._response},e.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},e.load=function(){if(null==this._request)return void this._handleError();this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values&&this._item.method!=createjs.AbstractLoader.GET?this._item.method==createjs.AbstractLoader.POST&&this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)):this._request.send()}catch(t){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,t))}},e.setResponseType=function(t){this._request.responseType=t},e.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},e.getResponseHeader=function(t){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(t):null},e._handleProgress=function(t){if(t&&!(t.loaded>0&&0==t.total)){var e=new createjs.ProgressEvent(t.loaded,t.total);this.dispatchEvent(e)}},e._handleLoadStart=function(t){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},e._handleAbort=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,t))},e._handleError=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(t.message))},e._handleReadyStateChange=function(t){4==this._request.readyState&&this._handleLoad()},e._handleLoad=function(t){if(!this.loaded){this.loaded=!0;var e=this._checkError();if(e)return void this._handleError(e);this._response=this._getResponse(),this._clean(),this.dispatchEvent(new createjs.Event("complete"))}},e._handleTimeout=function(t){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,t))},e._checkError=function(){var t=parseInt(this._request.status);switch(t){case 404:case 0:return new Error(t)}return null},e._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(t){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(t){}return null},e._createXHR=function(t){var e=createjs.RequestUtils.isCrossDomain(t),i={},n=null;if(window.XMLHttpRequest)n=new XMLHttpRequest,e&&void 0===n.withCredentials&&window.XDomainRequest&&(n=new XDomainRequest);else{for(var r=0,o=s.ACTIVEX_VERSIONS.length;o>r;r++){s.ACTIVEX_VERSIONS[r];try{n=new ActiveXObject(axVersions);break}catch(t){}}if(null==n)return!1}null==t.mimeType&&createjs.RequestUtils.isText(t.type)&&(t.mimeType="text/plain; charset=utf-8"),t.mimeType&&n.overrideMimeType&&n.overrideMimeType(t.mimeType),this._xhrLevel="string"==typeof n.responseType?2:1;var a=null;if(a=t.method==createjs.AbstractLoader.GET?createjs.RequestUtils.buildPath(t.src,t.values):t.src,n.open(t.method||createjs.AbstractLoader.GET,a,!0),e&&n instanceof XMLHttpRequest&&1==this._xhrLevel&&(i.Origin=location.origin),t.values&&t.method==createjs.AbstractLoader.POST&&(i["Content-Type"]="application/x-www-form-urlencoded"),e||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),t.headers)for(var h in t.headers)i[h]=t.headers[h];for(h in i)n.setRequestHeader(h,i[h]);return n instanceof XMLHttpRequest&&void 0!==t.withCredentials&&(n.withCredentials=t.withCredentials),this._request=n,!0},e._clean=function(){clearTimeout(this._loadTimeout),this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)},e.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(t,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e){this.AbstractMediaLoader_constructor(t,e,createjs.AbstractLoader.SOUND),createjs.RequestUtils.isAudioTag(t)?this._tag=t:createjs.RequestUtils.isAudioTag(t.src)?this._tag=t:createjs.RequestUtils.isAudioTag(t.tag)&&(this._tag=createjs.RequestUtils.isAudioTag(t)?t:t.src),null!=this._tag&&(this._preferXHR=!1)}var e=createjs.extend(t,createjs.AbstractMediaLoader),i=t;i.canLoadItem=function(t){return t.type==createjs.AbstractLoader.SOUND},e._createTag=function(t){var e=document.createElement("audio");return e.autoplay=!1,e.preload="none",e.src=t,e},createjs.SoundLoader=createjs.promote(t,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(){this.interrupt=null,this.delay=null,this.offset=null,this.loop=null,this.volume=null,this.pan=null,this.startTime=null,this.duration=null},e=t.prototype={},i=t;i.create=function(t){if(t instanceof i||t instanceof Object){var e=new createjs.PlayPropsConfig;return e.set(t),e}throw new Error("Type not recognized.")},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[PlayPropsConfig]"},createjs.PlayPropsConfig=i}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Sound cannot be instantiated"}function e(t,e){this.init(t,e)}var i=t;i.INTERRUPT_ANY="any",i.INTERRUPT_EARLY="early",i.INTERRUPT_LATE="late",i.INTERRUPT_NONE="none",i.PLAY_INITED="playInited",i.PLAY_SUCCEEDED="playSucceeded",i.PLAY_INTERRUPTED="playInterrupted",i.PLAY_FINISHED="playFinished",i.PLAY_FAILED="playFailed",i.SUPPORTED_EXTENSIONS=["mp3","ogg","opus","mpeg","wav","m4a","mp4","aiff","wma","mid"],i.EXTENSION_MAP={m4a:"mp4"},i.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([\/.]*?(?:[^?]+)?\/)?((?:[^\/?]+)\.(\w+))(?:\?(\S+)?)?$/,i.defaultInterruptBehavior=i.INTERRUPT_NONE,i.alternateExtensions=[],i.activePlugin=null,i._masterVolume=1,Object.defineProperty(i,"volume",{get:function(){return this._masterVolume},set:function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),i._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var e=this._instances,n=0,r=e.length;r>n;n++)e[n].setMasterVolume(t)}}),i._masterMute=!1,Object.defineProperty(i,"muted",{get:function(){return this._masterMute},set:function(t){if(null==t)return!1;if(this._masterMute=t,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(t))for(var e=this._instances,i=0,n=e.length;n>i;i++)e[i].setMasterMute(t);return!0}}),Object.defineProperty(i,"capabilities",{get:function(){return null==i.activePlugin?null:i.activePlugin._capabilities},set:function(t){return!1}}),i._pluginsRegistered=!1,i._lastID=0,i._instances=[],i._idHash={},i._preloadHash={},i._defaultPlayPropsHash={},i.addEventListener=null,i.removeEventListener=null,i.removeAllEventListeners=null,i.dispatchEvent=null,i.hasEventListener=null,i._listeners=null,createjs.EventDispatcher.initialize(i),i.getPreloadHandlers=function(){return{callback:createjs.proxy(i.initLoad,i),types:["sound"],extensions:i.SUPPORTED_EXTENSIONS}},i._handleLoadComplete=function(t){var e=t.target.getItem().src;if(i._preloadHash[e])for(var n=0,r=i._preloadHash[e].length;r>n;n++){var o=i._preloadHash[e][n];if(i._preloadHash[e][n]=!0,i.hasEventListener("fileload")){var t=new createjs.Event("fileload");t.src=o.src,t.id=o.id,t.data=o.data,t.sprite=o.sprite,i.dispatchEvent(t)}}},i._handleLoadError=function(t){var e=t.target.getItem().src;if(i._preloadHash[e])for(var n=0,r=i._preloadHash[e].length;r>n;n++){var o=i._preloadHash[e][n];if(i._preloadHash[e][n]=!1,i.hasEventListener("fileerror")){var t=new createjs.Event("fileerror");t.src=o.src,t.id=o.id,t.data=o.data,t.sprite=o.sprite,i.dispatchEvent(t)}}},i._registerPlugin=function(t){return!!t.isSupported()&&(i.activePlugin=new t,!0)},i.registerPlugins=function(t){i._pluginsRegistered=!0;for(var e=0,n=t.length;n>e;e++)if(i._registerPlugin(t[e]))return!0;return!1},i.initializeDefaultPlugins=function(){return null!=i.activePlugin||!i._pluginsRegistered&&!!i.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])},i.isReady=function(){return null!=i.activePlugin},i.getCapabilities=function(){return null==i.activePlugin?null:i.activePlugin._capabilities},i.getCapability=function(t){return null==i.activePlugin?null:i.activePlugin._capabilities[t]},i.initLoad=function(t){return i._registerSound(t)},i._registerSound=function(t){if(!i.initializeDefaultPlugins())return!1;var n;if(t.src instanceof Object?(n=i._parseSrc(t.src),n.src=t.path+n.src):n=i._parsePath(t.src),null==n)return!1;t.src=n.src,t.type="sound";var r=t.data,o=null;if(null!=r&&(isNaN(r.channels)?isNaN(r)||(o=parseInt(r)):o=parseInt(r.channels),r.audioSprite))for(var s,a=r.audioSprite.length;a--;)s=r.audioSprite[a],i._idHash[s.id]={src:t.src,startTime:parseInt(s.startTime),duration:parseInt(s.duration)},s.defaultPlayProps&&(i._defaultPlayPropsHash[s.id]=createjs.PlayPropsConfig.create(s.defaultPlayProps));null!=t.id&&(i._idHash[t.id]={src:t.src});var h=i.activePlugin.register(t);return e.create(t.src,o),null!=r&&isNaN(r)?t.data.channels=o||e.maxPerChannel():t.data=o||e.maxPerChannel(),h.type&&(t.type=h.type),t.defaultPlayProps&&(i._defaultPlayPropsHash[t.src]=createjs.PlayPropsConfig.create(t.defaultPlayProps)),h},i.registerSound=function(t,e,n,r,o){var s={src:t,id:e,data:n,defaultPlayProps:o};t instanceof Object&&t.src&&(r=e,s=t),s=createjs.LoadItem.create(s),s.path=r,null==r||s.src instanceof Object||(s.src=r+t);var a=i._registerSound(s);if(!a)return!1;if(i._preloadHash[s.src]||(i._preloadHash[s.src]=[]),i._preloadHash[s.src].push(s),1==i._preloadHash[s.src].length)a.on("complete",createjs.proxy(this._handleLoadComplete,this)),a.on("error",createjs.proxy(this._handleLoadError,this)),i.activePlugin.preload(a);else if(1==i._preloadHash[s.src][0])return!0;return s},i.registerSounds=function(t,e){var i=[];t.path&&(e?e+=t.path:e=t.path,t=t.manifest);for(var n=0,r=t.length;r>n;n++)i[n]=createjs.Sound.registerSound(t[n].src,t[n].id,t[n].data,e,t[n].defaultPlayProps);return i},i.removeSound=function(t,n){if(null==i.activePlugin)return!1;t instanceof Object&&t.src&&(t=t.src);var r;if(t instanceof Object?r=i._parseSrc(t):(t=i._getSrcById(t).src,r=i._parsePath(t)),null==r)return!1;t=r.src,null!=n&&(t=n+t);for(var o in i._idHash)i._idHash[o].src==t&&delete i._idHash[o];return e.removeSrc(t),delete i._preloadHash[t],i.activePlugin.removeSound(t),!0},i.removeSounds=function(t,e){var i=[];t.path&&(e?e+=t.path:e=t.path,t=t.manifest);for(var n=0,r=t.length;r>n;n++)i[n]=createjs.Sound.removeSound(t[n].src,e);return i},i.removeAllSounds=function(){i._idHash={},i._preloadHash={},e.removeAll(),i.activePlugin&&i.activePlugin.removeAllSounds()},i.loadComplete=function(t){if(!i.isReady())return!1;var e=i._parsePath(t);return t=e?i._getSrcById(e.src).src:i._getSrcById(t).src,void 0!=i._preloadHash[t]&&1==i._preloadHash[t][0]},i._parsePath=function(t){"string"!=typeof t&&(t=t.toString());var e=t.match(i.FILE_PATTERN);if(null==e)return!1;for(var n=e[4],r=e[5],o=i.capabilities,s=0;!o[r];)if(r=i.alternateExtensions[s++],s>i.alternateExtensions.length)return null;t=t.replace("."+e[5],"."+r);var a={name:n,src:t,extension:r};return a},i._parseSrc=function(t){var e={name:void 0,src:void 0,extension:void 0},n=i.capabilities;for(var r in t)if(t.hasOwnProperty(r)&&n[r]){e.src=t[r],e.extension=r;break}if(!e.src)return!1;var o=e.src.lastIndexOf("/");return e.name=-1!=o?e.src.slice(o+1):e.src,e},i.play=function(t,e,n,r,o,s,a,h,u){var c;c=createjs.PlayPropsConfig.create(e instanceof Object||e instanceof createjs.PlayPropsConfig?e:{interrupt:e,delay:n,offset:r,loop:o,volume:s,pan:a,startTime:h,duration:u});var l=i.createInstance(t,c.startTime,c.duration),p=i._playInstance(l,c);return p||l._playFailed(),l},i.createInstance=function(t,n,r){if(!i.initializeDefaultPlugins())return new createjs.DefaultSoundInstance(t,n,r);var o=i._defaultPlayPropsHash[t];t=i._getSrcById(t);var s=i._parsePath(t.src),a=null;return null!=s&&null!=s.src?(e.create(s.src),null==n&&(n=t.startTime),a=i.activePlugin.create(s.src,n,r||t.duration),o=o||i._defaultPlayPropsHash[s.src],o&&a.applyPlayProps(o)):a=new createjs.DefaultSoundInstance(t,n,r),a.uniqueId=i._lastID++,a},i.stop=function(){for(var t=this._instances,e=t.length;e--;)t[e].stop()},i.setVolume=function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),i._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var e=this._instances,n=0,r=e.length;r>n;n++)e[n].setMasterVolume(t)},i.getVolume=function(){return this._masterVolume},i.setMute=function(t){if(null==t)return!1;if(this._masterMute=t,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(t))for(var e=this._instances,i=0,n=e.length;n>i;i++)e[i].setMasterMute(t);return!0},i.getMute=function(){return this._masterMute},i.setDefaultPlayProps=function(t,e){t=i._getSrcById(t),i._defaultPlayPropsHash[i._parsePath(t.src).src]=createjs.PlayPropsConfig.create(e)},i.getDefaultPlayProps=function(t){return t=i._getSrcById(t),i._defaultPlayPropsHash[i._parsePath(t.src).src]},i._playInstance=function(t,e){var n=i._defaultPlayPropsHash[t.src]||{};if(null==e.interrupt&&(e.interrupt=n.interrupt||i.defaultInterruptBehavior),null==e.delay&&(e.delay=n.delay||0),null==e.offset&&(e.offset=t.getPosition()),null==e.loop&&(e.loop=t.loop),null==e.volume&&(e.volume=t.volume),null==e.pan&&(e.pan=t.pan),0==e.delay){var r=i._beginPlaying(t,e);if(!r)return!1}else{var o=setTimeout(function(){i._beginPlaying(t,e)},e.delay);t.delayTimeoutId=o}return this._instances.push(t),!0},i._beginPlaying=function(t,i){if(!e.add(t,i.interrupt))return!1;var n=t._beginPlaying(i);if(!n){var r=createjs.indexOf(this._instances,t);return r>-1&&this._instances.splice(r,1),!1}return!0},i._getSrcById=function(t){return i._idHash[t]||{src:t}},i._playFinished=function(t){e.remove(t);var i=createjs.indexOf(this._instances,t);i>-1&&this._instances.splice(i,1)},createjs.Sound=t,e.channels={},e.create=function(t,i){var n=e.get(t);return null==n&&(e.channels[t]=new e(t,i),!0)},e.removeSrc=function(t){ var i=e.get(t);return null!=i&&(i._removeAll(),delete e.channels[t],!0)},e.removeAll=function(){for(var t in e.channels)e.channels[t]._removeAll();e.channels={}},e.add=function(t,i){var n=e.get(t.src);return null!=n&&n._add(t,i)},e.remove=function(t){var i=e.get(t.src);return null!=i&&(i._remove(t),!0)},e.maxPerChannel=function(){return n.maxDefault},e.get=function(t){return e.channels[t]};var n=e.prototype;n.constructor=e,n.src=null,n.max=null,n.maxDefault=100,n.length=0,n.init=function(t,e){this.src=t,this.max=e||this.maxDefault,-1==this.max&&(this.max=this.maxDefault),this._instances=[]},n._get=function(t){return this._instances[t]},n._add=function(t,e){return!!this._getSlot(e,t)&&(this._instances.push(t),this.length++,!0)},n._remove=function(t){var e=createjs.indexOf(this._instances,t);return-1!=e&&(this._instances.splice(e,1),this.length--,!0)},n._removeAll=function(){for(var t=this.length-1;t>=0;t--)this._instances[t].stop()},n._getSlot=function(e,i){var n,r;if(e!=t.INTERRUPT_NONE&&(r=this._get(0),null==r))return!0;for(var o=0,s=this.max;s>o;o++){if(n=this._get(o),null==n)return!0;if(n.playState==t.PLAY_FINISHED||n.playState==t.PLAY_INTERRUPTED||n.playState==t.PLAY_FAILED){r=n;break}e!=t.INTERRUPT_NONE&&(e==t.INTERRUPT_EARLY&&n.getPosition()r.getPosition())&&(r=n)}return null!=r&&(r._interrupt(),this._remove(r),!0)},n.toString=function(){return"[Sound SoundChannel]"}}(),this.createjs=this.createjs||{},function(){"use strict";var t=function(t,e,i,n){this.EventDispatcher_constructor(),this.src=t,this.uniqueId=-1,this.playState=null,this.delayTimeoutId=null,this._volume=1,Object.defineProperty(this,"volume",{get:this.getVolume,set:this.setVolume}),this._pan=0,Object.defineProperty(this,"pan",{get:this.getPan,set:this.setPan}),this._startTime=Math.max(0,e||0),Object.defineProperty(this,"startTime",{get:this.getStartTime,set:this.setStartTime}),this._duration=Math.max(0,i||0),Object.defineProperty(this,"duration",{get:this.getDuration,set:this.setDuration}),this._playbackResource=null,Object.defineProperty(this,"playbackResource",{get:this.getPlaybackResource,set:this.setPlaybackResource}),n!==!1&&n!==!0&&this.setPlaybackResource(n),this._position=0,Object.defineProperty(this,"position",{get:this.getPosition,set:this.setPosition}),this._loop=0,Object.defineProperty(this,"loop",{get:this.getLoop,set:this.setLoop}),this._muted=!1,Object.defineProperty(this,"muted",{get:this.getMuted,set:this.setMuted}),this._paused=!1,Object.defineProperty(this,"paused",{get:this.getPaused,set:this.setPaused})},e=createjs.extend(t,createjs.EventDispatcher);e.play=function(t,e,i,n,r,o){var s;return s=createjs.PlayPropsConfig.create(t instanceof Object||t instanceof createjs.PlayPropsConfig?t:{interrupt:t,delay:e,offset:i,loop:n,volume:r,pan:o}),this.playState==createjs.Sound.PLAY_SUCCEEDED?(this.applyPlayProps(s),void(this._paused&&this.setPaused(!1))):(this._cleanUp(),createjs.Sound._playInstance(this,s),this)},e.stop=function(){return this._position=0,this._paused=!1,this._handleStop(),this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this},e.destroy=function(){this._cleanUp(),this.src=null,this.playbackResource=null,this.removeAllEventListeners()},e.applyPlayProps=function(t){return null!=t.offset&&this.setPosition(t.offset),null!=t.loop&&this.setLoop(t.loop),null!=t.volume&&this.setVolume(t.volume),null!=t.pan&&this.setPan(t.pan),null!=t.startTime&&(this.setStartTime(t.startTime),this.setDuration(t.duration)),this},e.toString=function(){return"[AbstractSoundInstance]"},e.getPaused=function(){return this._paused},e.setPaused=function(t){return t!==!0&&t!==!1||this._paused==t||1==t&&this.playState!=createjs.Sound.PLAY_SUCCEEDED?void 0:(this._paused=t,t?this._pause():this._resume(),clearTimeout(this.delayTimeoutId),this)},e.setVolume=function(t){return t==this._volume?this:(this._volume=Math.max(0,Math.min(1,t)),this._muted||this._updateVolume(),this)},e.getVolume=function(){return this._volume},e.setMuted=function(t){return t===!0||t===!1?(this._muted=t,this._updateVolume(),this):void 0},e.getMuted=function(){return this._muted},e.setPan=function(t){return t==this._pan?this:(this._pan=Math.max(-1,Math.min(1,t)),this._updatePan(),this)},e.getPan=function(){return this._pan},e.getPosition=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||(this._position=this._calculateCurrentPosition()),this._position},e.setPosition=function(t){return this._position=Math.max(0,t),this.playState==createjs.Sound.PLAY_SUCCEEDED&&this._updatePosition(),this},e.getStartTime=function(){return this._startTime},e.setStartTime=function(t){return t==this._startTime?this:(this._startTime=Math.max(0,t||0),this._updateStartTime(),this)},e.getDuration=function(){return this._duration},e.setDuration=function(t){return t==this._duration?this:(this._duration=Math.max(0,t||0),this._updateDuration(),this)},e.setPlaybackResource=function(t){return this._playbackResource=t,0==this._duration&&this._setDurationFromSource(),this},e.getPlaybackResource=function(){return this._playbackResource},e.getLoop=function(){return this._loop},e.setLoop=function(t){null!=this._playbackResource&&(0!=this._loop&&0==t?this._removeLooping(t):0==this._loop&&0!=t&&this._addLooping(t)),this._loop=t},e._sendEvent=function(t){var e=new createjs.Event(t);this.dispatchEvent(e)},e._cleanUp=function(){clearTimeout(this.delayTimeoutId),this._handleCleanUp(),this._paused=!1,createjs.Sound._playFinished(this)},e._interrupt=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_INTERRUPTED,this._sendEvent("interrupted")},e._beginPlaying=function(t){return this.setPosition(t.offset),this.setLoop(t.loop),this.setVolume(t.volume),this.setPan(t.pan),null!=t.startTime&&(this.setStartTime(t.startTime),this.setDuration(t.duration)),null!=this._playbackResource&&this._positioni;i++){var r=this._soundInstances[e][i];r.setPlaybackResource(this._audioSources[e])}},e._handlePreloadError=function(t){},e._updateVolume=function(){},createjs.AbstractPlugin=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(t){this.AbstractLoader_constructor(t,!0,createjs.AbstractLoader.SOUND)}var e=createjs.extend(t,createjs.AbstractLoader);t.context=null,e.toString=function(){return"[WebAudioLoader]"},e._createRequest=function(){this._request=new createjs.XHRRequest(this._item,!1),this._request.setResponseType("arraybuffer")},e._sendComplete=function(e){t.context.decodeAudioData(this._rawResult,createjs.proxy(this._handleAudioDecoded,this),createjs.proxy(this._sendError,this))},e._handleAudioDecoded=function(t){this._result=t,this.AbstractLoader__sendComplete()},createjs.WebAudioLoader=createjs.promote(t,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,n,r){this.AbstractSoundInstance_constructor(t,e,n,r),this.gainNode=i.context.createGain(),this.panNode=i.context.createPanner(),this.panNode.panningModel=i._panningModel,this.panNode.connect(this.gainNode),this._updatePan(),this.sourceNode=null,this._soundCompleteTimeout=null,this._sourceNodeNext=null,this._playbackStartTime=0,this._endedHandler=createjs.proxy(this._handleSoundComplete,this)}var e=createjs.extend(t,createjs.AbstractSoundInstance),i=t;i.context=null,i._scratchBuffer=null,i.destinationNode=null,i._panningModel="equalpower",e.destroy=function(){this.AbstractSoundInstance_destroy(),this.panNode.disconnect(0),this.panNode=null,this.gainNode.disconnect(0),this.gainNode=null},e.toString=function(){return"[WebAudioSoundInstance]"},e._updatePan=function(){this.panNode.setPosition(this._pan,0,-.5)},e._removeLooping=function(t){this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)},e._addLooping=function(t){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},e._setDurationFromSource=function(){this._duration=1e3*this.playbackResource.duration},e._handleCleanUp=function(){this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout),this._playbackStartTime=0},e._cleanUpAudioNode=function(t){if(t){t.stop(0),t.disconnect(0);try{t.buffer=i._scratchBuffer}catch(t){}t=null}return t},e._handleSoundReady=function(t){this.gainNode.connect(i.destinationNode);var e=.001*this._duration,n=.001*this._position;n>e&&(n=e),this.sourceNode=this._createAndPlayAudioNode(i.context.currentTime-e,n),this._playbackStartTime=this.sourceNode.startTime-n,this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(e-n)),0!=this._loop&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},e._createAndPlayAudioNode=function(t,e){var n=i.context.createBufferSource();n.buffer=this.playbackResource,n.connect(this.panNode);var r=.001*this._duration;return n.startTime=t+r,n.start(n.startTime,e+.001*this._startTime,r-e),n},e._pause=function(){this._position=1e3*(i.context.currentTime-this._playbackStartTime),this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout)},e._resume=function(){this._handleSoundReady()},e._updateVolume=function(){var t=this._muted?0:this._volume;t!=this.gainNode.gain.value&&(this.gainNode.gain.value=t)},e._calculateCurrentPosition=function(){return 1e3*(i.context.currentTime-this._playbackStartTime)},e._updatePosition=function(){this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),clearTimeout(this._soundCompleteTimeout),this._paused||this._handleSoundReady()},e._handleLoop=function(){this._cleanUpAudioNode(this.sourceNode),this.sourceNode=this._sourceNodeNext,this._playbackStartTime=this.sourceNode.startTime,this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0),this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)},e._updateDuration=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._pause(),this._resume())},createjs.WebAudioSoundInstance=createjs.promote(t,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.AbstractPlugin_constructor(),this._panningModel=i._panningModel,this.context=i.context,this.dynamicsCompressorNode=this.context.createDynamicsCompressor(),this.dynamicsCompressorNode.connect(this.context.destination),this.gainNode=this.context.createGain(),this.gainNode.connect(this.dynamicsCompressorNode),createjs.WebAudioSoundInstance.destinationNode=this.gainNode,this._capabilities=i._capabilities,this._loaderClass=createjs.WebAudioLoader,this._soundInstanceClass=createjs.WebAudioSoundInstance,this._addPropsToClasses()}var e=createjs.extend(t,createjs.AbstractPlugin),i=t;i._capabilities=null,i._panningModel="equalpower",i.context=null,i._scratchBuffer=null,i.isSupported=function(){var t=createjs.BrowserDetect.isIOS||createjs.BrowserDetect.isAndroid||createjs.BrowserDetect.isBlackberry;return!("file:"==location.protocol&&!t&&!this._isFileXHRSupported())&&(i._generateCapabilities(),null!=i.context)},i.playEmptySound=function(){if(null!=i.context){var t=i.context.createBufferSource();t.buffer=i._scratchBuffer,t.connect(i.context.destination),t.start(0,0,0)}},i._isFileXHRSupported=function(){var t=!0,e=new XMLHttpRequest;try{e.open("GET","WebAudioPluginTest.fail",!1)}catch(e){return t=!1}e.onerror=function(){t=!1},e.onload=function(){t=404==this.status||200==this.status||0==this.status&&""!=this.response};try{e.send()}catch(e){t=!1}return t},i._generateCapabilities=function(){if(null==i._capabilities){var t=document.createElement("audio");if(null==t.canPlayType)return null;if(null==i.context)if(window.AudioContext)i.context=new AudioContext;else{if(!window.webkitAudioContext)return null;i.context=new webkitAudioContext}null==i._scratchBuffer&&(i._scratchBuffer=i.context.createBuffer(1,1,22050)),i._compatibilitySetUp(),i.playEmptySound(),i._capabilities={panning:!0,volume:!0,tracks:-1};for(var e=createjs.Sound.SUPPORTED_EXTENSIONS,n=createjs.Sound.EXTENSION_MAP,r=0,o=e.length;o>r;r++){var s=e[r],a=n[s]||s;i._capabilities[s]="no"!=t.canPlayType("audio/"+s)&&""!=t.canPlayType("audio/"+s)||"no"!=t.canPlayType("audio/"+a)&&""!=t.canPlayType("audio/"+a)}i.context.destination.numberOfChannels<2&&(i._capabilities.panning=!1)}},i._compatibilitySetUp=function(){if(i._panningModel="equalpower",!i.context.createGain){i.context.createGain=i.context.createGainNode;var t=i.context.createBufferSource();t.__proto__.start=t.__proto__.noteGrainOn,t.__proto__.stop=t.__proto__.noteOff,i._panningModel=0}},e.toString=function(){return"[WebAudioPlugin]"},e._addPropsToClasses=function(){var t=this._soundInstanceClass;t.context=this.context,t._scratchBuffer=this._scratchBuffer,t.destinationNode=this.gainNode,t._panningModel=this._panningModel,this._loaderClass.context=this.context},e._updateVolume=function(){var t=createjs.Sound._masterMute?0:this._volume;t!=this.gainNode.gain.value&&(this.gainNode.gain.value=t)},createjs.WebAudioPlugin=createjs.promote(t,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"HTMLAudioTagPool cannot be instantiated"}function e(t){this._tags=[]}var i=t;i._tags={},i._tagPool=new e,i._tagUsed={},i.get=function(t){var e=i._tags[t];return null==e?(e=i._tags[t]=i._tagPool.get(),e.src=t):i._tagUsed[t]?(e=i._tagPool.get(),e.src=t):i._tagUsed[t]=!0,e},i.set=function(t,e){e==i._tags[t]?i._tagUsed[t]=!1:i._tagPool.set(e)},i.remove=function(t){var e=i._tags[t];return null!=e&&(i._tagPool.set(e),delete i._tags[t],delete i._tagUsed[t],!0)},i.getDuration=function(t){var e=i._tags[t];return null!=e&&e.duration?1e3*e.duration:0},createjs.HTMLAudioTagPool=t;var n=e.prototype;n.constructor=e,n.get=function(){var t;return t=0==this._tags.length?this._createTag():this._tags.pop(),null==t.parentNode&&document.body.appendChild(t),t},n.set=function(t){var e=createjs.indexOf(this._tags,t);-1==e&&(this._tags.src=null,this._tags.push(t))},n.toString=function(){return"[TagPool]"},n._createTag=function(){var t=document.createElement("audio");return t.autoplay=!1,t.preload="none",t}}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i,n){this.AbstractSoundInstance_constructor(t,e,i,n),this._audioSpriteStopTime=null,this._delayTimeoutId=null,this._endedHandler=createjs.proxy(this._handleSoundComplete,this),this._readyHandler=createjs.proxy(this._handleTagReady,this),this._stalledHandler=createjs.proxy(this._playFailed,this),this._audioSpriteEndHandler=createjs.proxy(this._handleAudioSpriteLoop,this),this._loopHandler=createjs.proxy(this._handleSoundComplete,this),i?this._audioSpriteStopTime=.001*(e+i):this._duration=createjs.HTMLAudioTagPool.getDuration(this.src)}var e=createjs.extend(t,createjs.AbstractSoundInstance);e.setMasterVolume=function(t){this._updateVolume()},e.setMasterMute=function(t){this._updateVolume()},e.toString=function(){return"[HTMLAudioSoundInstance]"},e._removeLooping=function(){null!=this._playbackResource&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._addLooping=function(){null==this._playbackResource||this._audioSpriteStopTime||(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)},e._handleCleanUp=function(){var t=this._playbackResource;if(null!=t){t.pause(),t.loop=!1,t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),t.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1);try{t.currentTime=this._startTime}catch(t){}createjs.HTMLAudioTagPool.set(this.src,t),this._playbackResource=null}},e._beginPlaying=function(t){return this._playbackResource=createjs.HTMLAudioTagPool.get(this.src),this.AbstractSoundInstance__beginPlaying(t)},e._handleSoundReady=function(t){if(4!==this._playbackResource.readyState){var e=this._playbackResource;return e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),e.preload="auto",void e.load()}this._updateVolume(),this._playbackResource.currentTime=.001*(this._startTime+this._position),this._audioSpriteStopTime?this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1):(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),0!=this._loop&&(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)),this._playbackResource.play()},e._handleTagReady=function(t){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),this._handleSoundReady()},e._pause=function(){this._playbackResource.pause()},e._resume=function(){this._playbackResource.play()},e._updateVolume=function(){if(null!=this._playbackResource){var t=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;t!=this._playbackResource.volume&&(this._playbackResource.volume=t)}},e._calculateCurrentPosition=function(){return 1e3*this._playbackResource.currentTime-this._startTime},e._updatePosition=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1);try{this._playbackResource.currentTime=.001*(this._position+this._startTime)}catch(t){this._handleSetPositionSeek(null)}},e._handleSetPositionSeek=function(t){null!=this._playbackResource&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._handleAudioSpriteLoop=function(t){this._playbackResource.currentTime<=this._audioSpriteStopTime||(this._playbackResource.pause(),0==this._loop?this._handleSoundComplete(null):(this._position=0,this._loop--,this._playbackResource.currentTime=.001*this._startTime,this._paused||this._playbackResource.play(),this._sendEvent("loop")))},e._handleLoop=function(t){0==this._loop&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},e._updateStartTime=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},e._updateDuration=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},e._setDurationFromSource=function(){this._duration=createjs.HTMLAudioTagPool.getDuration(this.src),this._playbackResource=null},createjs.HTMLAudioSoundInstance=createjs.promote(t,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this.AbstractPlugin_constructor(),this.defaultNumChannels=2,this._capabilities=i._capabilities,this._loaderClass=createjs.SoundLoader,this._soundInstanceClass=createjs.HTMLAudioSoundInstance}var e=createjs.extend(t,createjs.AbstractPlugin),i=t;i.MAX_INSTANCES=30,i._AUDIO_READY="canplaythrough",i._AUDIO_ENDED="ended",i._AUDIO_SEEKED="seeked",i._AUDIO_STALLED="stalled",i._TIME_UPDATE="timeupdate",i._capabilities=null,i.isSupported=function(){return i._generateCapabilities(),null!=i._capabilities},i._generateCapabilities=function(){if(null==i._capabilities){var t=document.createElement("audio");if(null==t.canPlayType)return null;i._capabilities={panning:!1,volume:!0,tracks:-1};for(var e=createjs.Sound.SUPPORTED_EXTENSIONS,n=createjs.Sound.EXTENSION_MAP,r=0,o=e.length;o>r;r++){var s=e[r],a=n[s]||s;i._capabilities[s]="no"!=t.canPlayType("audio/"+s)&&""!=t.canPlayType("audio/"+s)||"no"!=t.canPlayType("audio/"+a)&&""!=t.canPlayType("audio/"+a)}}},e.register=function(t){var e=createjs.HTMLAudioTagPool.get(t.src),i=this.AbstractPlugin_register(t);return i.setTag(e),i},e.removeSound=function(t){this.AbstractPlugin_removeSound(t),createjs.HTMLAudioTagPool.remove(t)},e.create=function(t,e,i){var n=this.AbstractPlugin_create(t,e,i);return n.setPlaybackResource(null),n},e.toString=function(){return"[HTMLAudioPlugin]"},e.setVolume=e.getVolume=e.setMute=null,createjs.HTMLAudioPlugin=createjs.promote(t,"AbstractPlugin")}()}).call(window)},function(t,e){(function(){/*! * @license TweenJS * Visit http://createjs.com/ for documentation, updates and examples. * * Copyright (c) 2011-2015 gskinner.com, inc. * * Distributed under the terms of the MIT license. * http://www.opensource.org/licenses/mit-license.html * * This notice shall be included in all copies or substantial portions of the Software. */ this.createjs=this.createjs||{},createjs.extend=function(t,e){"use strict";function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i},this.createjs=this.createjs||{},createjs.promote=function(t,e){"use strict";var i=t.prototype,n=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__;if(n){i[(e+="_")+"constructor"]=n.constructor;for(var r in n)i.hasOwnProperty(r)&&"function"==typeof n[r]&&(i[e+r]=n[r])}return t},this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.type=t,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!e,this.cancelable=!!i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var e=t.prototype;e.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},e.stopPropagation=function(){this.propagationStopped=!0},e.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.remove=function(){this.removed=!0},e.clone=function(){return new t(this.type,this.bubbles,this.cancelable)},e.set=function(t){for(var e in t)this[e]=t[e];return this},e.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null,this._captureListeners=null}var e=t.prototype;t.initialize=function(t){t.addEventListener=e.addEventListener,t.on=e.on,t.removeEventListener=t.off=e.removeEventListener,t.removeAllEventListeners=e.removeAllEventListeners,t.hasEventListener=e.hasEventListener,t.dispatchEvent=e.dispatchEvent,t._dispatchEvent=e._dispatchEvent,t.willTrigger=e.willTrigger},e.addEventListener=function(t,e,i){var n;n=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var r=n[t];return r&&this.removeEventListener(t,e,i),r=n[t],r?r.push(e):n[t]=[e],e},e.on=function(t,e,i,n,r,o){return e.handleEvent&&(i=i||e,e=e.handleEvent),i=i||this,this.addEventListener(t,function(t){e.call(i,t,r),n&&t.remove()},o)},e.removeEventListener=function(t,e,i){var n=i?this._captureListeners:this._listeners;if(n){var r=n[t];if(r)for(var o=0,s=r.length;s>o;o++)if(r[o]==e){1==s?delete n[t]:r.splice(o,1);break}}},e.off=e.removeEventListener,e.removeAllEventListeners=function(t){t?(this._listeners&&delete this._listeners[t],this._captureListeners&&delete this._captureListeners[t]):this._listeners=this._captureListeners=null},e.dispatchEvent=function(t){if("string"==typeof t){var e=this._listeners;if(!e||!e[t])return!1;t=new createjs.Event(t)}else t.target&&t.clone&&(t=t.clone());try{t.target=this}catch(t){}if(t.bubbles&&this.parent){for(var i=this,n=[i];i.parent;)n.push(i=i.parent);var r,o=n.length;for(r=o-1;r>=0&&!t.propagationStopped;r--)n[r]._dispatchEvent(t,1+(0==r));for(r=1;o>r&&!t.propagationStopped;r++)n[r]._dispatchEvent(t,3)}else this._dispatchEvent(t,2);return t.defaultPrevented},e.hasEventListener=function(t){var e=this._listeners,i=this._captureListeners;return!!(e&&e[t]||i&&i[t])},e.willTrigger=function(t){for(var e=this;e;){if(e.hasEventListener(t))return!0;e=e.parent}return!1},e.toString=function(){return"[EventDispatcher]"},e._dispatchEvent=function(t,e){var i,n=1==e?this._captureListeners:this._listeners;if(t&&n){var r=n[t.type];if(!r||!(i=r.length))return;try{t.currentTarget=this}catch(t){}try{t.eventPhase=e}catch(t){}t.removed=!1,r=r.slice();for(var o=0;i>o&&!t.immediatePropagationStopped;o++){var s=r[o];s.handleEvent?s.handleEvent(t):s(t),t.removed&&(this.off(t.type,s,1==e),t.removed=!1)}}},createjs.EventDispatcher=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"Ticker cannot be instantiated."}t.RAF_SYNCHED="synched",t.RAF="raf",t.TIMEOUT="timeout",t.useRAF=!1,t.timingMode=null,t.maxDelta=0,t.paused=!1,t.removeEventListener=null,t.removeAllEventListeners=null,t.dispatchEvent=null,t.hasEventListener=null,t._listeners=null,createjs.EventDispatcher.initialize(t),t._addEventListener=t.addEventListener,t.addEventListener=function(){return!t._inited&&t.init(),t._addEventListener.apply(t,arguments)},t._inited=!1,t._startTime=0,t._pausedTime=0,t._ticks=0,t._pausedTicks=0,t._interval=50,t._lastTime=0,t._times=null,t._tickTimes=null,t._timerId=null,t._raf=!0,t.setInterval=function(e){t._interval=e,t._inited&&t._setupTick()},t.getInterval=function(){return t._interval},t.setFPS=function(e){t.setInterval(1e3/e)},t.getFPS=function(){return 1e3/t._interval};try{Object.defineProperties(t,{interval:{get:t.getInterval,set:t.setInterval},framerate:{get:t.getFPS,set:t.setFPS}})}catch(t){console.log(t)}t.init=function(){t._inited||(t._inited=!0,t._times=[],t._tickTimes=[],t._startTime=t._getTime(),t._times.push(t._lastTime=0),t.interval=t._interval)},t.reset=function(){if(t._raf){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;e&&e(t._timerId)}else clearTimeout(t._timerId);t.removeAllEventListeners("tick"),t._timerId=t._times=t._tickTimes=null,t._startTime=t._lastTime=t._ticks=0,t._inited=!1},t.getMeasuredTickTime=function(e){var i=0,n=t._tickTimes;if(!n||n.length<1)return-1;e=Math.min(n.length,e||0|t.getFPS());for(var r=0;e>r;r++)i+=n[r];return i/e},t.getMeasuredFPS=function(e){var i=t._times;return!i||i.length<2?-1:(e=Math.min(i.length-1,e||0|t.getFPS()),1e3/((i[0]-i[e])/e))},t.setPaused=function(e){t.paused=e},t.getPaused=function(){return t.paused},t.getTime=function(e){return t._startTime?t._getTime()-(e?t._pausedTime:0):-1},t.getEventTime=function(e){return t._startTime?(t._lastTime||t._startTime)-(e?t._pausedTime:0):-1},t.getTicks=function(e){return t._ticks-(e?t._pausedTicks:0)},t._handleSynch=function(){t._timerId=null,t._setupTick(),t._getTime()-t._lastTime>=.97*(t._interval-1)&&t._tick()},t._handleRAF=function(){t._timerId=null,t._setupTick(),t._tick()},t._handleTimeout=function(){t._timerId=null,t._setupTick(),t._tick()},t._setupTick=function(){if(null==t._timerId){var e=t.timingMode||t.useRAF&&t.RAF_SYNCHED;if(e==t.RAF_SYNCHED||e==t.RAF){var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(i)return t._timerId=i(e==t.RAF?t._handleRAF:t._handleSynch),void(t._raf=!0)}t._raf=!1,t._timerId=setTimeout(t._handleTimeout,t._interval)}},t._tick=function(){var e=t.paused,i=t._getTime(),n=i-t._lastTime;if(t._lastTime=i,t._ticks++,e&&(t._pausedTicks++,t._pausedTime+=n),t.hasEventListener("tick")){var r=new createjs.Event("tick"),o=t.maxDelta;r.delta=o&&n>o?o:n,r.paused=e,r.time=i,r.runTime=i-t._pausedTime,t.dispatchEvent(r)}for(t._tickTimes.unshift(t._getTime()-i);t._tickTimes.length>100;)t._tickTimes.pop();for(t._times.unshift(i);t._times.length>100;)t._times.pop()};var e=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);t._getTime=function(){return(e&&e.call(performance)||(new Date).getTime())-t._startTime},createjs.Ticker=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(e,i,n){this.ignoreGlobalPause=!1,this.loop=!1,this.duration=0,this.pluginData=n||{},this.target=e,this.position=null,this.passive=!1,this._paused=!1,this._curQueueProps={},this._initQueueProps={},this._steps=[],this._actions=[],this._prevPosition=0,this._stepPosition=0,this._prevPos=-1,this._target=e,this._useTicks=!1,this._inited=!1,this._registered=!1,i&&(this._useTicks=i.useTicks,this.ignoreGlobalPause=i.ignoreGlobalPause,this.loop=i.loop,i.onChange&&this.addEventListener("change",i.onChange),i.override&&t.removeTweens(e)),i&&i.paused?this._paused=!0:createjs.Tween._register(this,!0),i&&null!=i.position&&this.setPosition(i.position,t.NONE)}var e=createjs.extend(t,createjs.EventDispatcher);t.NONE=0,t.LOOP=1,t.REVERSE=2,t.IGNORE={},t._tweens=[],t._plugins={},t.get=function(e,i,n,r){return r&&t.removeTweens(e),new t(e,i,n)},t.tick=function(e,i){for(var n=t._tweens.slice(),r=n.length-1;r>=0;r--){var o=n[r];i&&!o.ignoreGlobalPause||o._paused||o.tick(o._useTicks?1:e)}},t.handleEvent=function(t){"tick"==t.type&&this.tick(t.delta,t.paused)},t.removeTweens=function(e){if(e.tweenjs_count){for(var i=t._tweens,n=i.length-1;n>=0;n--){var r=i[n];r._target==e&&(r._paused=!0,i.splice(n,1))}e.tweenjs_count=0}},t.removeAllTweens=function(){for(var e=t._tweens,i=0,n=e.length;n>i;i++){var r=e[i];r._paused=!0,r.target&&(r.target.tweenjs_count=0)}e.length=0},t.hasActiveTweens=function(e){return e?null!=e.tweenjs_count&&!!e.tweenjs_count:t._tweens&&!!t._tweens.length},t.installPlugin=function(e,i){var n=e.priority;null==n&&(e.priority=n=0);for(var r=0,o=i.length,s=t._plugins;o>r;r++){var a=i[r];if(s[a]){for(var h=s[a],u=0,c=h.length;c>u&&!(n=t)return this;var i=this._cloneProps(this._curQueueProps);return this._addStep({d:t,p0:i,e:this._linearEase,p1:i,v:e})},e.to=function(t,e,i){return(isNaN(e)||0>e)&&(e=0),this._addStep({d:e||0,p0:this._cloneProps(this._curQueueProps),e:i,p1:this._cloneProps(this._appendQueueProps(t))})},e.call=function(t,e,i){return this._addAction({f:t,p:e?e:[this],o:i?i:this._target})},e.set=function(t,e){return this._addAction({f:this._set,o:this,p:[t,e?e:this._target]})},e.play=function(t){return t||(t=this),this.call(t.setPaused,[!1],t)},e.pause=function(t){return t||(t=this),this.call(t.setPaused,[!0],t)},e.setPosition=function(t,e){0>t&&(t=0),null==e&&(e=1);var i=t,n=!1;if(i>=this.duration&&(this.loop?i%=this.duration:(i=this.duration,n=!0)),i==this._prevPos)return n;var r=this._prevPos;if(this.position=this._prevPos=i,this._prevPosition=t,this._target)if(n)this._updateTargetProps(null,1);else if(this._steps.length>0){for(var o=0,s=this._steps.length;s>o&&!(this._steps[o].t>i);o++);var a=this._steps[o-1];this._updateTargetProps(a,(this._stepPosition=i-a.t)/a.d)}return 0!=e&&this._actions.length>0&&(this._useTicks?this._runActions(i,i):1==e&&r>i?(r!=this.duration&&this._runActions(r,this.duration),this._runActions(0,i,!0)):this._runActions(r,i)),n&&this.setPaused(!0),this.dispatchEvent("change"),n},e.tick=function(t){this._paused||this.setPosition(this._prevPosition+t)},e.setPaused=function(e){return this._paused===!!e?this:(this._paused=!!e,t._register(this,!e),this)},e.w=e.wait,e.t=e.to,e.c=e.call,e.s=e.set,e.toString=function(){return"[Tween]"},e.clone=function(){throw"Tween can not be cloned."},e._updateTargetProps=function(e,i){var n,r,o,s,a,h;if(e||1!=i){if(this.passive=!!e.v,this.passive)return;e.e&&(i=e.e(i,0,1,1)),n=e.p0,r=e.p1}else this.passive=!1,n=r=this._curQueueProps;for(var u in this._initQueueProps){null==(s=n[u])&&(n[u]=s=this._initQueueProps[u]),null==(a=r[u])&&(r[u]=a=s),o=s==a||0==i||1==i||"number"!=typeof s?1==i?a:s:s+(a-s)*i;var c=!1;if(h=t._plugins[u])for(var l=0,p=h.length;p>l;l++){var f=h[l].tween(this,u,o,n,r,i,!!e&&n==r,!e);f==t.IGNORE?c=!0:o=f}c||(this._target[u]=o)}},e._runActions=function(t,e,i){var n=t,r=e,o=-1,s=this._actions.length,a=1;for(t>e&&(n=e,r=t,o=s,s=a=-1);(o+=a)!=s;){var h=this._actions[o],u=h.t;(u==r||u>n&&r>u||i&&u==t)&&h.f.apply(h.o,h.p)}},e._appendQueueProps=function(e){var i,n,r,o,s;for(var a in e)if(void 0===this._initQueueProps[a]){if(n=this._target[a],i=t._plugins[a])for(r=0,o=i.length;o>r;r++)n=i[r].init(this,a,n);this._initQueueProps[a]=this._curQueueProps[a]=void 0===n?null:n}else n=this._curQueueProps[a];for(var a in e){if(n=this._curQueueProps[a],i=t._plugins[a])for(s=s||{},r=0,o=i.length;o>r;r++)i[r].step&&i[r].step(this,a,n,e[a],s);this._curQueueProps[a]=e[a]}return s&&this._appendQueueProps(s),this._curQueueProps},e._cloneProps=function(t){var e={};for(var i in t)e[i]=t[i];return e},e._addStep=function(t){return t.d>0&&(this._steps.push(t),t.t=this.duration,this.duration+=t.d),this},e._addAction=function(t){return t.t=this.duration,this._actions.push(t),this},e._set=function(t,e){for(var i in t)e[i]=t[i]},createjs.Tween=createjs.promote(t,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function t(t,e,i){this.EventDispatcher_constructor(),this.ignoreGlobalPause=!1,this.duration=0,this.loop=!1,this.position=null,this._paused=!1,this._tweens=[],this._labels=null,this._labelList=null,this._prevPosition=0,this._prevPos=-1,this._useTicks=!1,this._registered=!1,i&&(this._useTicks=i.useTicks,this.loop=i.loop,this.ignoreGlobalPause=i.ignoreGlobalPause,i.onChange&&this.addEventListener("change",i.onChange)),t&&this.addTween.apply(this,t),this.setLabels(e),i&&i.paused?this._paused=!0:createjs.Tween._register(this,!0),i&&null!=i.position&&this.setPosition(i.position,createjs.Tween.NONE)}var e=createjs.extend(t,createjs.EventDispatcher);e.addTween=function(t){var e=arguments.length;if(e>1){for(var i=0;e>i;i++)this.addTween(arguments[i]);return arguments[0]}return 0==e?null:(this.removeTween(t),this._tweens.push(t),t.setPaused(!0),t._paused=!1,t._useTicks=this._useTicks,t.duration>this.duration&&(this.duration=t.duration),this._prevPos>=0&&t.setPosition(this._prevPos,createjs.Tween.NONE),t)},e.removeTween=function(t){var e=arguments.length;if(e>1){for(var i=!0,n=0;e>n;n++)i=i&&this.removeTween(arguments[n]);return i}if(0==e)return!1;for(var r=this._tweens,n=r.length;n--;)if(r[n]==t)return r.splice(n,1),t.duration>=this.duration&&this.updateDuration(),!0;return!1},e.addLabel=function(t,e){this._labels[t]=e;var i=this._labelList;if(i){for(var n=0,r=i.length;r>n&&!(en&&!(e=this.duration;if(i==this._prevPos)return n;this._prevPosition=t,this.position=this._prevPos=i;for(var r=0,o=this._tweens.length;o>r;r++)if(this._tweens[r].setPosition(i,e),i!=this._prevPos)return!1;return n&&this.setPaused(!0),this.dispatchEvent("change"),n},e.setPaused=function(t){this._paused=!!t,createjs.Tween._register(this,!t)},e.updateDuration=function(){this.duration=0;for(var t=0,e=this._tweens.length;e>t;t++){var i=this._tweens[t];i.duration>this.duration&&(this.duration=i.duration)}},e.tick=function(t){this.setPosition(this._prevPosition+t)},e.resolve=function(t){var e=Number(t);return isNaN(e)&&(e=this._labels[t]),e},e.toString=function(){return"[Timeline]"},e.clone=function(){throw"Timeline can not be cloned."},e._goto=function(t){var e=this.resolve(t);null!=e&&this.setPosition(e)},e._calcPosition=function(t){return 0>t?0:tt&&(t=-1),t>1&&(t=1),function(e){return 0==t?e:0>t?e*(e*-t+1+t):e*((2-e)*t+(1-t))}},t.getPowIn=function(t){return function(e){return Math.pow(e,t)}},t.getPowOut=function(t){return function(e){return 1-Math.pow(1-e,t)}},t.getPowInOut=function(t){return function(e){return(e*=2)<1?.5*Math.pow(e,t):1-.5*Math.abs(Math.pow(2-e,t))}},t.quadIn=t.getPowIn(2),t.quadOut=t.getPowOut(2),t.quadInOut=t.getPowInOut(2),t.cubicIn=t.getPowIn(3),t.cubicOut=t.getPowOut(3),t.cubicInOut=t.getPowInOut(3),t.quartIn=t.getPowIn(4),t.quartOut=t.getPowOut(4),t.quartInOut=t.getPowInOut(4),t.quintIn=t.getPowIn(5),t.quintOut=t.getPowOut(5),t.quintInOut=t.getPowInOut(5),t.sineIn=function(t){return 1-Math.cos(t*Math.PI/2)},t.sineOut=function(t){return Math.sin(t*Math.PI/2)},t.sineInOut=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getBackIn=function(t){return function(e){return e*e*((t+1)*e-t)}},t.backIn=t.getBackIn(1.7),t.getBackOut=function(t){return function(e){return--e*e*((t+1)*e+t)+1}},t.backOut=t.getBackOut(1.7),t.getBackInOut=function(t){return t*=1.525,function(e){return(e*=2)<1?.5*e*e*((t+1)*e-t):.5*((e-=2)*e*((t+1)*e+t)+2)}},t.backInOut=t.getBackInOut(1.7),t.circIn=function(t){return-(Math.sqrt(1-t*t)-1)},t.circOut=function(t){return Math.sqrt(1- --t*t)},t.circInOut=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},t.bounceIn=function(e){return 1-t.bounceOut(1-e)},t.bounceOut=function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},t.bounceInOut=function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5},t.getElasticIn=function(t,e){var i=2*Math.PI;return function(n){if(0==n||1==n)return n;var r=e/i*Math.asin(1/t);return-(t*Math.pow(2,10*(n-=1))*Math.sin((n-r)*i/e))}},t.elasticIn=t.getElasticIn(1,.3),t.getElasticOut=function(t,e){var i=2*Math.PI;return function(n){if(0==n||1==n)return n;var r=e/i*Math.asin(1/t);return t*Math.pow(2,-10*n)*Math.sin((n-r)*i/e)+1}},t.elasticOut=t.getElasticOut(1,.3),t.getElasticInOut=function(t,e){var i=2*Math.PI;return function(n){var r=e/i*Math.asin(1/t);return(n*=2)<1?-.5*t*Math.pow(2,10*(n-=1))*Math.sin((n-r)*i/e):t*Math.pow(2,-10*(n-=1))*Math.sin((n-r)*i/e)*.5+1}},t.elasticInOut=t.getElasticInOut(1,.3*1.5),createjs.Ease=t}(),this.createjs=this.createjs||{},function(){"use strict";function t(){throw"MotionGuidePlugin cannot be instantiated."}t.priority=0,t._rotOffS,t._rotOffE,t._rotNormS,t._rotNormE,t.install=function(){return createjs.Tween.installPlugin(t,["guide","x","y","rotation"]),createjs.Tween.IGNORE},t.init=function(t,e,i){var n=t.target;return n.hasOwnProperty("x")||(n.x=0),n.hasOwnProperty("y")||(n.y=0),n.hasOwnProperty("rotation")||(n.rotation=0),"rotation"==e&&(t.__needsRot=!0),"guide"==e?null:i},t.step=function(e,i,n,r,o){if("rotation"==i&&(e.__rotGlobalS=n,e.__rotGlobalE=r,t.testRotData(e,o)),"guide"!=i)return r;var s,a=r;a.hasOwnProperty("path")||(a.path=[]);var h=a.path;if(a.hasOwnProperty("end")||(a.end=1),a.hasOwnProperty("start")||(a.start=n&&n.hasOwnProperty("end")&&n.path===h?n.end:0),a.hasOwnProperty("_segments")&&a._length)return r;var u=h.length,c=10;if(!(u>=6&&(u-2)%4==0))throw"invalid 'path' data, please see documentation for valid paths";a._segments=[],a._length=0;for(var l=2;u>l;l+=4){for(var p,f,d=h[l-2],g=h[l-1],v=h[l+0],m=h[l+1],_=h[l+2],y=h[l+3],b=d,w=g,A=0,x=[],S=1;c>=S;S++){var C=S/c,P=1-C;p=P*P*d+2*P*C*v+C*C*_,f=P*P*g+2*P*C*m+C*C*y,A+=x[x.push(Math.sqrt((s=p-b)*s+(s=f-w)*s))-1],b=p,w=f}a._segments.push(A),a._segments.push(x),a._length+=A}s=a.orient,a.orient=!0;var T={};return t.calc(a,a.start,T),e.__rotPathS=Number(T.rotation.toFixed(5)),t.calc(a,a.end,T),e.__rotPathE=Number(T.rotation.toFixed(5)),a.orient=!1,t.calc(a,a.end,o),a.orient=s,a.orient?(e.__guideData=a,t.testRotData(e,o),r):r},t.testRotData=function(t,e){if(void 0===t.__rotGlobalS||void 0===t.__rotGlobalE){if(t.__needsRot)return;t.__rotGlobalS=t.__rotGlobalE=void 0!==t._curQueueProps.rotation?t._curQueueProps.rotation:e.rotation=t.target.rotation||0}if(void 0!==t.__guideData){var i=t.__guideData,n=t.__rotGlobalE-t.__rotGlobalS,r=t.__rotPathE-t.__rotPathS,o=n-r;if("auto"==i.orient)o>180?o-=360:-180>o&&(o+=360);else if("cw"==i.orient){for(;0>o;)o+=360;0==o&&n>0&&180!=n&&(o+=360)}else if("ccw"==i.orient){for(o=n-(r>180?360-r:r);o>0;)o-=360;0==o&&0>n&&-180!=n&&(o-=360)}i.rotDelta=o,i.rotOffS=t.__rotGlobalS-t.__rotPathS,t.__rotGlobalS=t.__rotGlobalE=t.__guideData=t.__needsRot=void 0}},t.tween=function(e,i,n,r,o,s,a){var h=o.guide;if(void 0==h||h===r.guide)return n;if(h.lastRatio!=s){var u=(h.end-h.start)*(a?h.end:s)+h.start;switch(t.calc(h,u,e.target),h.orient){case"cw":case"ccw":case"auto":e.target.rotation+=h.rotOffS+h.rotDelta*s;break;case"fixed":default:e.target.rotation+=h.rotOffS}h.lastRatio=s}return"rotation"!=i||h.orient&&"false"!=h.orient?e.target[i]:n},t.calc=function(e,i,n){void 0==e._segments&&t.validate(e),void 0==n&&(n={x:0,y:0,rotation:0});for(var r=e._segments,o=e.path,s=e._length*i,a=r.length-2,h=0;s>r[h]&&a>h;)s-=r[h],h+=2;var u=r[h+1],c=0;for(a=u.length-1;s>u[c]&&a>c;)s-=u[c],c++;var l=c/++a+s/(a*u[c]);h=2*h+2;var p=1-l;return n.x=p*p*o[h-2]+2*p*l*o[h+0]+l*l*o[h+2],n.y=p*p*o[h-1]+2*p*l*o[h+1]+l*l*o[h+3],e.orient&&(n.rotation=57.2957795*Math.atan2((o[h+1]-o[h-1])*p+(o[h+3]-o[h+1])*l,(o[h+0]-o[h-2])*p+(o[h+2]-o[h+0])*l)),n},createjs.MotionGuidePlugin=t}(),this.createjs=this.createjs||{},function(){"use strict";var t=createjs.TweenJS=createjs.TweenJS||{};t.version="0.6.1",t.buildDate="Thu, 21 May 2015 16:17:37 GMT"}()}).call(window)},function(t,e){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");i===-1&&(i=e);var n=i===e?0:4-i%4;return[i,n]}function n(t){var e=i(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function r(t,e,i){return 3*(e+i)/4-i}function o(t){var e,n,o=i(t),s=o[0],a=o[1],h=new l(r(t,s,a)),u=0,p=a>0?s-4:s;for(n=0;n>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===a&&(e=c[t.charCodeAt(n)]<<2|c[t.charCodeAt(n+1)]>>4,h[u++]=255&e),1===a&&(e=c[t.charCodeAt(n)]<<10|c[t.charCodeAt(n+1)]<<4|c[t.charCodeAt(n+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h}function s(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function a(t,e,i){for(var n,r=[],o=e;oh?h:s+o));return 1===n?(e=t[i-1],r.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],r.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),r.join("")}e.byteLength=n,e.toByteArray=o,e.fromByteArray=h;for(var u=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=p.length;f0;){var e=t.shift();if("function"==typeof e){var i=t.shift(),n=t.shift();e.call(i,n)}else e._settlePromises()}},n.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},n.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},n.prototype._reset=function(){this._isTickUsed=!1},t.exports=n,t.exports.firstLineError=a}).call(e,i(7))},function(t,e){"use strict";t.exports=function(t,e,i,n){var r=!1,o=function(t,e){this._reject(e)},s=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},a=function(t,e){0===(50397184&this._bitField)&&this._resolveCallback(e.target)},h=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){r||(r=!0,t.prototype._propagateFrom=n.propagateFromFunction(),t.prototype._boundValue=n.boundValueFunction());var u=i(o),c=new t(e);c._propagateFrom(this,1);var l=this._target();if(c._setBoundTo(u),u instanceof t){var p={promiseRejectionQueued:!1,promise:c,target:l,bindingPromise:u};l._then(e,s,void 0,c,p),u._then(a,h,void 0,c,p),c._setOnCancel(u)}else c._resolveCallback(l);return c},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},t.bind=function(e,i){return t.resolve(i).bind(e)}}},function(t,e,i){"use strict";var n=Object.create;if(n){var r=n(null),o=n(null);r[" size"]=o[" size"]=0}t.exports=function(t){function e(e,i){var n;if(null!=e&&(n=e[i]),"function"!=typeof n){var r="Object "+c.classString(e)+" has no method '"+c.toString(i)+"'";throw new t.TypeError(r)}return n}function n(t){var i=this.pop(),n=e(t,i);return n.apply(t,this)}function s(t){return t[this]}function a(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var h,u,c=i(1),l=c.canEvaluate,p=c.isIdentifier,f=function(t){return new Function("ensureMethod"," \n\t return function(obj) { \n\t 'use strict' \n\t var len = this.length; \n\t ensureMethod(obj, 'methodName'); \n\t switch(len) { \n\t case 1: return obj.methodName(this[0]); \n\t case 2: return obj.methodName(this[0], this[1]); \n\t case 3: return obj.methodName(this[0], this[1], this[2]); \n\t case 0: return obj.methodName(); \n\t default: \n\t return obj.methodName.apply(obj, this); \n\t } \n\t }; \n\t ".replace(/methodName/g,t))(e)},d=function(t){return new Function("obj"," \n\t 'use strict'; \n\t return obj.propertyName; \n\t ".replace("propertyName",t))},g=function(t,e,i){var n=i[t];if("function"!=typeof n){if(!p(t))return null;if(n=e(t),i[t]=n,i[" size"]++,i[" size"]>512){for(var r=Object.keys(i),o=0;o<256;++o)delete i[r[o]];i[" size"]=r.length-256}}return n};h=function(t){return g(t,f,r)},u=function(t){return g(t,d,o)},t.prototype.call=function(t){for(var e=arguments.length,i=new Array(Math.max(e-1,0)),r=1;r0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var i=0;i=0)return o[t]}var r=!1,o=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=i,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var i=t.prototype._pushContext,o=t.prototype._popContext,s=t._peekContext,a=t.prototype._peekContext,h=t.prototype._promiseCreated; e.deactivateLongStackTraces=function(){t.prototype._pushContext=i,t.prototype._popContext=o,t._peekContext=s,t.prototype._peekContext=a,t.prototype._promiseCreated=h,r=!1},r=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=n,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},function(t,e,i){(function(e){"use strict";t.exports=function(t,n){function r(t,e){return{promise:e}}function o(){return!1}function s(t,e,i){var n=this;try{t(e,i,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+N.toString(t));n._attachCancellationCallback(t)})}catch(t){return t}}function a(t){if(!this._isCancellable())return this;var e=this._onCancel();void 0!==e?N.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function h(){return this._onCancelField}function u(t){this._onCancelField=t}function c(){this._cancellationParent=void 0,this._onCancelField=void 0}function l(t,e){if(0!==(1&e)){this._cancellationParent=t;var i=t._branchesRemainingToCancel;void 0===i&&(i=0),t._branchesRemainingToCancel=i+1}0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function p(t,e){0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function f(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function d(){this._trace=new L(this._peekContext())}function g(t,e){if(B(t)){var i=this._trace;if(void 0!==i&&e&&(i=i._parent),void 0!==i)i.attachExtraTrace(t);else if(!t.__stackCleaned__){var n=S(t);N.notEnumerableProp(t,"stack",n.message+"\n"+n.stack.join("\n")),N.notEnumerableProp(t,"__stackCleaned__",!0)}}}function v(t,e,i,n,r){if(void 0===t&&null!==e&&Z){if(void 0!==r&&r._returnedNonUndefined())return;if(0===(65535&n._bitField))return;i&&(i+=" ");var o="",s="";if(e._trace){for(var a=e._trace.stack.split("\n"),h=A(a),u=h.length-1;u>=0;--u){var c=h[u];if(!U.test(c)){var l=c.match(z);l&&(o="at "+l[1]+":"+l[2]+":"+l[3]+" ");break}}if(h.length>0)for(var p=h[0],u=0;u0&&(s="\n"+a[u-1]);break}}var f="a promise was created in a "+i+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+s;n._warn(f,!0,e)}}function m(t,e){var i=t+" is deprecated and will be removed in a future version.";return e&&(i+=" Use "+e+" instead."),_(i)}function _(e,i,n){if(st.warnings){var r,o=new F(e);if(i)n._attachExtraTrace(o);else if(st.longStackTraces&&(r=t._peekContext()))r.attachExtraTrace(o);else{var s=S(o);o.stack=s.message+"\n"+s.stack.join("\n")}et("warning",o)||C(o,"",!0)}}function y(t,e){for(var i=0;i=0;--a)if(n[a]===o){s=a;break}for(var a=s;a>=0;--a){var h=n[a];if(e[r]!==h)break;e.pop(),r--}e=n}}function A(t){for(var e=[],i=0;i0&&"SyntaxError"!=t.name&&(e=e.slice(i)),e}function S(t){var e=t.stack,i=t.toString();return e="string"==typeof e&&e.length>0?x(t):[" (No stack trace)"],{message:i,stack:"SyntaxError"==t.name?e:A(e)}}function C(t,e,i){if("undefined"!=typeof console){var n;if(N.isObject(t)){var r=t.stack;n=e+Y(r,t)}else n=e+String(t);"function"==typeof R?R(n,i):"function"==typeof console.log||"object"==typeof console.log}}function P(t,e,i,n){var r=!1;try{"function"==typeof e&&(r=!0,"rejectionHandled"===t?e(n):e(i,n))}catch(t){M.throwLater(t)}"unhandledRejection"===t?et(t,i,n)||r||C(i,"Unhandled rejection "):et(t,n)}function T(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():N.toString(t);var i=/\[object [a-zA-Z0-9$_]+\]/;if(i.test(e))try{var n=JSON.stringify(t);e=n}catch(t){}0===e.length&&(e="(empty array)")}return"(<"+k(e)+">, no stack trace)"}function k(t){var e=41;return t.length=a||(nt=function(t){if(H.test(t))return!0;var e=D(t);return!!(e&&e.fileName===i&&s<=e.line&&e.line<=a)})}}function L(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);ot(this,L),e>32&&this.uncycle()}var $,O,R,j=t._getDomain,M=t._async,F=i(9).Warning,N=i(1),B=N.canAttachTrace,H=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,U=/\((?:timers\.js):\d+:\d+\)/,z=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,W=null,Y=null,V=!1,X=!(0==N.env("BLUEBIRD_DEBUG")||!N.env("BLUEBIRD_DEBUG")&&"development"!==N.env("NODE_ENV")),q=!(0==N.env("BLUEBIRD_WARNINGS")||!X&&!N.env("BLUEBIRD_WARNINGS")),G=!(0==N.env("BLUEBIRD_LONG_STACK_TRACES")||!X&&!N.env("BLUEBIRD_LONG_STACK_TRACES")),Z=0!=N.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(q||!!N.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=t._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),M.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){P("rejectionHandled",$,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),P("unhandledRejection",O,t,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(t,e,i){return _(t,e,i||this)},t.onPossiblyUnhandledRejection=function(t){var e=j();O="function"==typeof t?null===e?t:N.domainBind(e,t):void 0},t.onUnhandledRejectionHandled=function(t){var e=j();$="function"==typeof t?null===e?t:N.domainBind(e,t):void 0};var Q=function(){};t.longStackTraces=function(){if(M.haveItemsQueued()&&!st.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!st.longStackTraces&&E()){var e=t.prototype._captureStackTrace,i=t.prototype._attachExtraTrace;st.longStackTraces=!0,Q=function(){if(M.haveItemsQueued()&&!st.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=i,n.deactivateLongStackTraces(),M.enableTrampoline(),st.longStackTraces=!1},t.prototype._captureStackTrace=d,t.prototype._attachExtraTrace=g,n.activateLongStackTraces(),M.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return st.longStackTraces&&E()};var J=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return N.global.dispatchEvent(t),function(t,e){var i=new CustomEvent(t.toLowerCase(),{detail:e,cancelable:!0});return!N.global.dispatchEvent(i)}}if("function"==typeof Event){var t=new Event("CustomEvent");return N.global.dispatchEvent(t),function(t,e){var i=new Event(t.toLowerCase(),{cancelable:!0});return i.detail=e,!N.global.dispatchEvent(i)}}var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),N.global.dispatchEvent(t),function(t,e){var i=document.createEvent("CustomEvent");return i.initCustomEvent(t.toLowerCase(),!1,!0,e),!N.global.dispatchEvent(i)}}catch(t){}return function(){return!1}}(),K=function(){return N.isNode?function(){return e.emit.apply(e,arguments)}:N.global?function(t){var e="on"+t.toLowerCase(),i=N.global[e];return!!i&&(i.apply(N.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),tt={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(t,e,i){return{promise:e,child:i}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,i){return{reason:e,promise:i}},rejectionHandled:r},et=function(t){var e=!1;try{e=K.apply(null,arguments)}catch(t){M.throwLater(t),e=!0}var i=!1;try{i=J(t,tt[t].apply(null,arguments))}catch(t){M.throwLater(t),i=!0}return i||e};t.config=function(e){if(e=Object(e),"longStackTraces"in e&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&Q()),"warnings"in e){var i=e.warnings;st.warnings=!!i,Z=st.warnings,N.isObject(i)&&"wForgottenReturn"in i&&(Z=!!i.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!st.cancellation){if(M.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=c,t.prototype._propagateFrom=l,t.prototype._onCancel=h,t.prototype._setOnCancel=u,t.prototype._attachCancellationCallback=a,t.prototype._execute=s,it=l,st.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!st.monitoring?(st.monitoring=!0,t.prototype._fireEvent=et):!e.monitoring&&st.monitoring&&(st.monitoring=!1,t.prototype._fireEvent=o)),t},t.prototype._fireEvent=o,t.prototype._execute=function(t,e,i){try{t(e,i)}catch(t){return t}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(t){},t.prototype._attachCancellationCallback=function(t){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(t,e){};var it=p,nt=function(){return!1},rt=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;N.inherits(L,Error),n.CapturedTrace=L,L.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],i={},n=0,r=this;void 0!==r;++n)e.push(r),r=r._parent;t=this._length=n;for(var n=t-1;n>=0;--n){var o=e[n].stack;void 0===i[o]&&(i[o]=n)}for(var n=0;n0&&(e[a-1]._parent=void 0,e[a-1]._length=1),e[n]._parent=void 0,e[n]._length=1;var h=n>0?e[n-1]:this;a=0;--c)e[c]._length=u,u++;return}}}},L.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=S(t),i=e.message,n=[e.stack],r=this;void 0!==r;)n.push(A(r.stack.split("\n"))),r=r._parent;w(n),b(n),N.notEnumerableProp(t,"stack",y(i,n)),N.notEnumerableProp(t,"__stackCleaned__",!0)}};var ot=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():T(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,W=t,Y=e;var i=Error.captureStackTrace;return nt=function(t){return H.test(t)},function(t,e){Error.stackTraceLimit+=6,i(t,e),Error.stackTraceLimit-=6}}var n=new Error;if("string"==typeof n.stack&&n.stack.split("\n")[0].indexOf("stackDetection@")>=0)return W=/@/,Y=e,V=!0,function(t){t.stack=(new Error).stack};var r;try{throw new Error}catch(t){r="stack"in t}return"stack"in n||!r||"number"!=typeof Error.stackTraceLimit?(Y=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?T(e):e.toString()},null):(W=t,Y=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(R=function(t){console.warn(t)},N.isNode&&e.stderr.isTTY?R=function(t,e){var i=e?"":"";console.warn(i+t+"\n")}:N.isNode||"string"!=typeof(new Error).stack||(R=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var st={warnings:q,longStackTraces:!1,cancellation:!1,monitoring:!1};return G&&t.longStackTraces(),{longStackTraces:function(){return st.longStackTraces},warnings:function(){return st.warnings},cancellation:function(){return st.cancellation},monitoring:function(){return st.monitoring},propagateFromFunction:function(){return it},boundValueFunction:function(){return f},checkForgottenReturns:v,setBounds:I,warn:_,deprecated:m,CapturedTrace:L,fireDomEvent:J,fireGlobalEvent:K}}}).call(e,i(7))},function(t,e){"use strict";t.exports=function(t){function e(){return this.value}function i(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(i){return i instanceof t&&i.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:i},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this._then(i,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,i,void 0,{reason:t},void 0);var e=arguments[1],n=function(){throw e};return this.caught(t,n)},t.prototype.catchReturn=function(i){if(arguments.length<=1)return i instanceof t&&i.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:i},void 0);var n=arguments[1];n instanceof t&&n.suppressUnhandledRejections();var r=function(){return n};return this.caught(i,r)}}},function(t,e){"use strict";t.exports=function(t,e){function i(){return o(this)}function n(t,i){return r(t,i,e,e)}var r=t.reduce,o=t.all;t.prototype.each=function(t){return r(this,t,e,0)._then(i,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return r(this,t,e,e)},t.each=function(t,n){return r(t,n,e,0)._then(i,void 0,void 0,t,void 0)},t.mapSeries=n}},function(t,e){"use strict";t.exports=function(t,e){var i=t.map;t.prototype.filter=function(t,n){return i(this,t,n,e)},t.filter=function(t,n,r){return i(t,n,r,e)}}},function(t,e,i){"use strict";t.exports=function(t,e,n){function r(t,e,i){this.promise=t,this.type=e,this.handler=i,this.called=!1,this.cancelPromise=null}function o(t){this.finallyHandler=t}function s(t,e){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function a(){return u.call(this,this.promise._target()._settledValue())}function h(t){if(!s(this,t))return p.e=t,p}function u(i){var r=this.promise,u=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?u.call(r._boundValue()):u.call(r._boundValue(),i);if(c===n)return c;if(void 0!==c){r._setReturnedNonUndefined();var f=e(c,r);if(f instanceof t){if(null!=this.cancelPromise){if(f._isCancelled()){var d=new l("late cancellation observer");return r._attachExtraTrace(d),p.e=d,p}f.isPending()&&f._attachCancellationCallback(new o(this))}return f._then(a,h,void 0,this,void 0)}}}return r.isRejected()?(s(this),p.e=i,p):(s(this),i)}var c=i(1),l=t.CancellationError,p=c.errorObj,f=i(66)(n);return r.prototype.isFinallyHandler=function(){return 0===this.type},o.prototype._resultCancelled=function(){s(this.finallyHandler)},t.prototype._passThrough=function(t,e,i,n){return"function"!=typeof t?this.then():this._then(i,n,void 0,new r(this,e,t),void 0)},t.prototype.lastly=t.prototype.finally=function(t){return this._passThrough(t,0,u,u)},t.prototype.tap=function(t){return this._passThrough(t,1,u)},t.prototype.tapCatch=function(e){var i=arguments.length;if(1===i)return this._passThrough(e,1,void 0,u);var n,r=new Array(i-1),o=0;for(n=0;n0&&"function"==typeof arguments[o]&&(i=arguments[o],o<=8&&u)){var c=new t(r);c._captureStackTrace();for(var l=g[o-1],p=new l(i),f=v,d=0;d=1?s:0,new a(e,i,s,o).promise()}var u=t._getDomain,c=i(1),l=c.tryCatch,p=c.errorObj,f=t._async;c.inherits(a,e),a.prototype._asyncInit=function(){this._init$(void 0,-2)},a.prototype._init=function(){},a.prototype._promiseFulfilled=function(e,i){var n=this._values,o=this.length(),a=this._preservedValues,h=this._limit;if(i<0){if(i=i*-1-1,n[i]=e,h>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(h>=1&&this._inFlight>=h)return n[i]=e,this._queue.push(i),!1;null!==a&&(a[i]=e);var u=this._promise,c=this._callback,f=u._boundValue();u._pushContext();var d=l(c).call(f,e,i,o),g=u._popContext();if(s.checkForgottenReturns(d,g,null!==a?"Promise.filter":"Promise.map",u),d===p)return this._reject(d.e),!0;var v=r(d,this._promise);if(v instanceof t){v=v._target();var m=v._bitField;if(0===(50397184&m))return h>=1&&this._inFlight++,n[i]=v,v._proxy(this,(i+1)*-1),!1;if(0===(33554432&m))return 0!==(16777216&m)?(this._reject(v._reason()),!0):(this._cancel(),!0);d=v._value()}n[i]=d}var _=++this._totalResolved;return _>=o&&(null!==a?this._filter(n,a):this._resolve(n),!0)},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,i=this._values;t.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];h=s.isArray(u)?a(i).apply(c,u):a(i).call(c,u)}else h=a(i)();var l=n._popContext();return o.checkForgottenReturns(h,l,"Promise.try",n),n._resolveFromSyncValue(h),n},t.prototype._resolveFromSyncValue=function(t){t===s.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},function(t,e,i){"use strict";t.exports=function(t){function e(t,e){var i=this;if(!o.isArray(t))return n.call(i,t,e);var r=a(e).apply(i._boundValue(),[null].concat(t));r===h&&s.throwLater(r.e)}function n(t,e){var i=this,n=i._boundValue(),r=void 0===t?a(e).call(n,null):a(e).call(n,null,t);r===h&&s.throwLater(r.e)}function r(t,e){var i=this;if(!t){var n=new Error(t+"");n.cause=t,t=n}var r=a(e).call(i._boundValue(),t);r===h&&s.throwLater(r.e)}var o=i(1),s=t._async,a=o.tryCatch,h=o.errorObj;t.prototype.asCallback=t.prototype.nodeify=function(t,i){if("function"==typeof t){var o=n;void 0!==i&&Object(i).spread&&(o=e),this._then(o,r,void 0,this,t)}return this}}},function(t,e,i){(function(e){"use strict";t.exports=function(){function n(){}function r(t,e){if(null==t||t.constructor!==o)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof e)throw new y("expecting a function but got "+d.classString(e))}function o(t){t!==w&&r(this,t),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(t),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function s(t){this.promise._resolveCallback(t)}function a(t){this.promise._rejectCallback(t,!1)}function h(t){var e=new o(w);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var u,c=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},l=function(){return new o.PromiseInspection(this._target())},p=function(t){return o.reject(new y(t))},f={},d=i(1);u=d.isNode?function(){var t=e.domain;return void 0===t&&(t=null),t}:function(){return null},d.notEnumerableProp(o,"_getDomain",u);var g=i(14),v=i(128),m=new v;g.defineProperty(o,"_async",{value:m});var _=i(9),y=o.TypeError=_.TypeError;o.RangeError=_.RangeError;var b=o.CancellationError=_.CancellationError;o.TimeoutError=_.TimeoutError,o.OperationalError=_.OperationalError,o.RejectionError=_.OperationalError,o.AggregateError=_.AggregateError;var w=function(){},A={},x={},S=i(154)(o,w),C=i(144)(o,w,S,p,n),P=i(132)(o),T=P.create,k=i(133)(o,P),E=(k.CapturedTrace,i(137)(o,S,x)),D=i(66)(x),I=i(67),L=d.errorObj,$=d.tryCatch;return o.prototype.toString=function(){return"[object Promise]"},o.prototype.caught=o.prototype.catch=function(t){var e=arguments.length;if(e>1){var i,n=new Array(e-1),r=0;for(i=0;i0&&"function"!=typeof t&&"function"!=typeof e){var i=".then() only accepts functions but was passed: "+d.classString(t);arguments.length>1&&(i+=", "+d.classString(e)),this._warn(i)}return this._then(t,e,void 0,void 0,void 0)},o.prototype.done=function(t,e){var i=this._then(t,e,void 0,void 0,void 0);i._setIsFinal()},o.prototype.spread=function(t){return"function"!=typeof t?p("expecting a function but got "+d.classString(t)):this.all()._then(t,void 0,void 0,A,void 0)},o.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},o.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},o.prototype.error=function(t){return this.caught(d.originatesFromRejection,t)},o.getNewLibraryCopy=t.exports,o.is=function(t){return t instanceof o},o.fromNode=o.fromCallback=function(t){var e=new o(w);e._captureStackTrace();var i=arguments.length>1&&!!Object(arguments[1]).multiArgs,n=$(t)(I(e,i));return n===L&&e._rejectCallback(n.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},o.all=function(t){return new C(t).promise()},o.cast=function(t){var e=S(t);return e instanceof o||(e=new o(w),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},o.resolve=o.fulfilled=o.cast,o.reject=o.rejected=function(t){var e=new o(w);return e._captureStackTrace(),e._rejectCallback(t,!0),e},o.setScheduler=function(t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));return m.setScheduler(t)},o.prototype._then=function(t,e,i,n,r){var s=void 0!==r,a=s?r:new o(w),h=this._target(),c=h._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===n&&0!==(2097152&this._bitField)&&(n=0!==(50397184&c)?this._boundValue():h===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var l=u();if(0!==(50397184&c)){var p,f,g=h._settlePromiseCtx;0!==(33554432&c)?(f=h._rejectionHandler0,p=t):0!==(16777216&c)?(f=h._fulfillmentHandler0,p=e,h._unsetRejectionIsUnhandled()):(g=h._settlePromiseLateCancellationObserver,f=new b("late cancellation observer"),h._attachExtraTrace(f),p=e),m.invoke(g,h,{handler:null===l?p:"function"==typeof p&&d.domainBind(l,p),promise:a,receiver:n,value:f})}else h._addCallbacks(t,e,a,n,l);return a},o.prototype._length=function(){return 65535&this._bitField},o.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},o.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},o.prototype._setLength=function(t){this._bitField=this._bitField&-65536|65535&t},o.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},o.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},o.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},o.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},o.prototype._isFinal=function(){return(4194304&this._bitField)>0},o.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},o.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},o.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},o.prototype._setAsyncGuaranteed=function(){m.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},o.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==f)return void 0===e&&this._isBound()?this._boundValue():e},o.prototype._promiseAt=function(t){return this[4*t-4+2]},o.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},o.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},o.prototype._boundValue=function(){},o.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),i=t._rejectionHandler0,n=t._promise0,r=t._receiverAt(0);void 0===r&&(r=f),this._addCallbacks(e,i,n,r,null)},o.prototype._migrateCallbackAt=function(t,e){var i=t._fulfillmentHandlerAt(e),n=t._rejectionHandlerAt(e),r=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=f),this._addCallbacks(i,n,r,o,null)},o.prototype._addCallbacks=function(t,e,i,n,r){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=i,this._receiver0=n,"function"==typeof t&&(this._fulfillmentHandler0=null===r?t:d.domainBind(r,t)),"function"==typeof e&&(this._rejectionHandler0=null===r?e:d.domainBind(r,e));else{var s=4*o-4;this[s+2]=i,this[s+3]=n,"function"==typeof t&&(this[s+0]=null===r?t:d.domainBind(r,t)),"function"==typeof e&&(this[s+1]=null===r?e:d.domainBind(r,e))}return this._setLength(o+1),o},o.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},o.prototype._resolveCallback=function(t,e){if(0===(117506048&this._bitField)){if(t===this)return this._rejectCallback(c(),!1);var i=S(t,this);if(!(i instanceof o))return this._fulfill(t);e&&this._propagateFrom(i,2);var n=i._target();if(n===this)return void this._reject(c());var r=n._bitField;if(0===(50397184&r)){var s=this._length();s>0&&n._migrateCallback0(this);for(var a=1;a>>16)){if(t===this){var i=c();return this._attachExtraTrace(i),this._reject(i)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!==(134217728&e)?this._settlePromises():m.settlePromises(this))}},o.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16))return this._setRejected(),this._fulfillmentHandler0=t,this._isFinal()?m.fatalError(t,d.isNode):void((65535&e)>0?m.settlePromises(this):this._ensurePossibleRejectionHandled())},o.prototype._fulfillPromises=function(t,e){for(var i=1;i0){if(0!==(16842752&t)){var i=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,i,t),this._rejectPromises(e,i)}else{var n=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,n,t),this._fulfillPromises(e,n)}this._setLength(0)}this._clearCancellationData()},o.prototype._settledValue=function(){var t=this._bitField;return 0!==(33554432&t)?this._rejectionHandler0:0!==(16777216&t)?this._fulfillmentHandler0:void 0},o.defer=o.pending=function(){k.deprecated("Promise.defer","new Promise");var t=new o(w);return{promise:t,resolve:s,reject:a}},d.notEnumerableProp(o,"_makeSelfResolutionError",c),i(141)(o,w,S,p,k),i(129)(o,w,S,k),i(131)(o,C,p,k),i(134)(o),i(153)(o),i(139)(o,C,S,w,m,u),o.Promise=o,o.version="3.5.0",i(140)(o,C,p,S,w,k),i(130)(o),i(156)(o,p,S,T,w,k),i(155)(o,w,k),i(138)(o,p,w,S,n,k),i(142)(o),i(145)(o,w),i(146)(o,C,S,p),i(148)(o,w,S,p),i(149)(o,C,p,S,w,k),i(151)(o,C,k),i(152)(o,C,p),i(136)(o,w),i(135)(o,w),i(127)(o),d.toFastProperties(o),d.toFastProperties(o.prototype),h({a:1}),h({b:2}),h({c:3}),h(1),h(function(){}),h(void 0),h(!1),h(new o(w)),k.setBounds(v.firstLineError,d.lastLineError),o}}).call(e,i(7))},function(t,e,i){"use strict";t.exports=function(t,e,n,r,o){function s(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}function a(i){var n=this._promise=new t(e);i instanceof t&&n._propagateFrom(i,3),n._setOnCancel(this),this._values=i,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var h=i(1);return h.isArray,h.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function e(i,o){var a=n(this._values,this._promise);if(a instanceof t){a=a._target();var u=a._bitField;if(this._values=a,0===(50397184&u))return this._promise._setAsyncGuaranteed(),a._then(e,this._reject,void 0,this,o);if(0===(33554432&u))return 0!==(16777216&u)?this._reject(a._reason()):this._cancel();a=a._value()}if(a=h.asArray(a),null===a){var c=r("expecting an array or an iterable object but got "+h.classString(a)).reason();return void this._promise._rejectCallback(c,!1)}return 0===a.length?void(o===-5?this._resolveEmptyArray():this._resolve(s(o))):void this._iterate(a)},a.prototype._iterate=function(e){var i=this.getActualLength(e.length);this._length=i,this._values=this.shouldCopyValues()?new Array(i):this._values;for(var r=this._promise,o=!1,s=null,a=0;a=this._length&&(this._resolve(this._values),!0)},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var i=0;i=i;--n)e.push(n);for(var n=t+1;n<=3;++n)e.push(n);return e},P=function(t){return f.filledRange(t,"_arg","")},T=function(t){return f.filledRange(Math.max(t,3),"_arg","")},k=function(t){return"number"==typeof t.length?Math.max(Math.min(t.length,1024),0):0};l=function(i,n,r,o,s,a){function h(t){var e,i=P(t).join(", "),r=t>0?", ":"";return e=m?"ret = callback.call(this, {{args}}, nodeback); break;\n":void 0===n?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n",e.replace("{{args}}",i).replace(", ",r)}function u(){for(var t="",e=0;e=this._length){var n;if(this._isMap)n=p(this._values);else{n={};for(var r=this.length(),o=0,s=this.length();o>1},t.prototype.props=function(){return s(this)},t.props=function(t){return s(t)}}},function(t,e){"use strict";function i(t,e,i,n,r){for(var o=0;o=this._length&&(this._resolve(this._values),!0)},r.prototype._promiseFulfilled=function(t,e){var i=new o;return i._bitField=33554432,i._settledValueField=t,this._promiseResolved(e,i)},r.prototype._promiseRejected=function(t,e){var i=new o;return i._bitField=16777216,i._settledValueField=t,this._promiseResolved(e,i)},t.settle=function(t){return n.deprecated(".settle()",".reflect()"),new r(t).promise()},t.prototype.settle=function(){return t.settle(this)}}},function(t,e,i){"use strict";t.exports=function(t,e,n){function r(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return n("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var i=new r(t),o=i.promise();return i.setHowMany(e),i.init(),o}var s=i(1),a=i(9).RangeError,h=i(9).AggregateError,u=s.isArray,c={};s.inherits(r,e),r.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=u(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},r.prototype.init=function(){this._initialized=!0,this._init()},r.prototype.setUnwrap=function(){this._unwrap=!0},r.prototype.howMany=function(){return this._howMany},r.prototype.setHowMany=function(t){this._howMany=t},r.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},r.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},r.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},r.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new h,e=this.length();e0?this._reject(t):this._cancel(),!0}return!1},r.prototype._fulfilled=function(){return this._totalResolved},r.prototype._rejected=function(){return this._values.length-this.length()},r.prototype._addRejected=function(t){this._values.push(t)},r.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},r.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},r.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new a(e)},r.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(t,e){return o(t,e)},t.prototype.some=function(t){return o(this,t)},t._SomePromiseArray=r}},function(t,e){"use strict";t.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var i=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},n=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},s=e.prototype.isPending=function(){return 0===(50397184&this._bitField)},a=e.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};e.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},t.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},t.prototype.isPending=function(){return s.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return r.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return i.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),n.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},function(t,e,i){"use strict";t.exports=function(t,e){function n(i,n){if(c(i)){if(i instanceof t)return i;var r=o(i);if(r===u){n&&n._pushContext();var h=t.reject(r.e);return n&&n._popContext(),h}if("function"==typeof r){if(s(i)){var h=new t(e);return i._then(h._fulfill,h._reject,void 0,h,null),h}return a(i,r,n)}}return i}function r(t){return t.then}function o(t){try{return r(t)}catch(t){return u.e=t,u}}function s(t){try{return l.call(t,"_promise0")}catch(t){return!1}}function a(i,n,r){function o(t){a&&(a._resolveCallback(t),a=null)}function s(t){a&&(a._rejectCallback(t,l,!0),a=null)}var a=new t(e),c=a;r&&r._pushContext(),a._captureStackTrace(),r&&r._popContext();var l=!0,p=h.tryCatch(n).call(i,o,s);return l=!1,a&&p===u&&(a._rejectCallback(p.e,!0,!0),a=null),c}var h=i(1),u=h.errorObj,c=h.isObject,l={}.hasOwnProperty;return n}},function(t,e,i){"use strict";t.exports=function(t,e,n){function r(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function s(t){throw clearTimeout(this.handle),t}var a=i(1),h=t.TimeoutError;r.prototype._resultCancelled=function(){ clearTimeout(this.handle)};var u=function(t){return c(+this).thenReturn(t)},c=t.delay=function(i,o){var s,a;return void 0!==o?(s=t.resolve(o)._then(u,null,null,i,void 0),n.cancellation()&&o instanceof t&&s._setOnCancel(o)):(s=new t(e),a=setTimeout(function(){s._fulfill()},+i),n.cancellation()&&s._setOnCancel(new r(a)),s._captureStackTrace()),s._setAsyncGuaranteed(),s};t.prototype.delay=function(t){return c(t,this)};var l=function(t,e,i){var n;n="string"!=typeof e?e instanceof Error?e:new h("operation timed out"):new h(e),a.markAsOriginatingFromRejection(n),t._attachExtraTrace(n),t._reject(n),null!=i&&i.cancel()};t.prototype.timeout=function(t,e){t=+t;var i,a,h=new r(setTimeout(function(){i.isPending()&&l(i,e,a)},t));return n.cancellation()?(a=this.then(),i=a._then(o,s,void 0,h,void 0),i._setOnCancel(h)):i=this._then(o,s,void 0,h,void 0),i}}},function(t,e,i){"use strict";t.exports=function(t,e,n,r,o,s){function a(t){setTimeout(function(){throw t},0)}function h(t){var e=n(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function u(e,i){function r(){if(s>=u)return c._fulfill();var o=h(e[s++]);if(o instanceof t&&o._isDisposable()){try{o=n(o._getDisposer().tryDispose(i),e.promise)}catch(t){return a(t)}if(o instanceof t)return o._then(r,a,null,null,null)}r()}var s=0,u=e.length,c=new t(o);return r(),c}function c(t,e,i){this._data=t,this._promise=e,this._context=i}function l(t,e,i){this.constructor$(t,e,i)}function p(t){return c.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function f(t){this.length=t,this.promise=null,this[t-1]=null}var d=i(1),g=i(9).TypeError,v=i(1).inherits,m=d.errorObj,_=d.tryCatch,y={};c.prototype.data=function(){return this._data},c.prototype.promise=function(){return this._promise},c.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():y},c.prototype.tryDispose=function(t){var e=this.resource(),i=this._context;void 0!==i&&i._pushContext();var n=e!==y?this.doDispose(e,t):null;return void 0!==i&&i._popContext(),this._promise._unsetDisposable(),this._data=null,n},c.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},v(l,c),l.prototype.doDispose=function(t,e){var i=this.data();return i.call(t,t,e)},f.prototype._resultCancelled=function(){for(var e=this.length,i=0;i0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},t.prototype.disposer=function(t){if("function"==typeof t)return new l(t,this,r());throw new g}}},function(t,e,i){!function(n,r){t.exports=e=r(i(6))}(this,function(t){return t.enc.Utf8})},function(t,e,i){!function(n,r){t.exports=e=r(i(6))}(this,function(t){!function(){var e=t,i=e.lib,n=i.Base,r=e.enc,o=r.Utf8,s=e.algo;s.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var i=t.blockSize,n=4*i;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),s=this._iKey=e.clone(),a=r.words,h=s.words,u=0;u>>32-o)+e}function n(t,e,i,n,r,o,s){var a=t+(e&n|i&~n)+r+s;return(a<>>32-o)+e}function r(t,e,i,n,r,o,s){var a=t+(e^i^n)+r+s;return(a<>>32-o)+e}function o(t,e,i,n,r,o,s){var a=t+(i^(e|~n))+r+s;return(a<>>32-o)+e}var s=t,a=s.lib,h=a.WordArray,u=a.Hasher,c=s.algo,l=[];!function(){for(var t=0;t<64;t++)l[t]=4294967296*e.abs(e.sin(t+1))|0}();var p=c.MD5=u.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var s=0;s<16;s++){var a=e+s,h=t[a];t[a]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var u=this._hash.words,c=t[e+0],p=t[e+1],f=t[e+2],d=t[e+3],g=t[e+4],v=t[e+5],m=t[e+6],_=t[e+7],y=t[e+8],b=t[e+9],w=t[e+10],A=t[e+11],x=t[e+12],S=t[e+13],C=t[e+14],P=t[e+15],T=u[0],k=u[1],E=u[2],D=u[3];T=i(T,k,E,D,c,7,l[0]),D=i(D,T,k,E,p,12,l[1]),E=i(E,D,T,k,f,17,l[2]),k=i(k,E,D,T,d,22,l[3]),T=i(T,k,E,D,g,7,l[4]),D=i(D,T,k,E,v,12,l[5]),E=i(E,D,T,k,m,17,l[6]),k=i(k,E,D,T,_,22,l[7]),T=i(T,k,E,D,y,7,l[8]),D=i(D,T,k,E,b,12,l[9]),E=i(E,D,T,k,w,17,l[10]),k=i(k,E,D,T,A,22,l[11]),T=i(T,k,E,D,x,7,l[12]),D=i(D,T,k,E,S,12,l[13]),E=i(E,D,T,k,C,17,l[14]),k=i(k,E,D,T,P,22,l[15]),T=n(T,k,E,D,p,5,l[16]),D=n(D,T,k,E,m,9,l[17]),E=n(E,D,T,k,A,14,l[18]),k=n(k,E,D,T,c,20,l[19]),T=n(T,k,E,D,v,5,l[20]),D=n(D,T,k,E,w,9,l[21]),E=n(E,D,T,k,P,14,l[22]),k=n(k,E,D,T,g,20,l[23]),T=n(T,k,E,D,b,5,l[24]),D=n(D,T,k,E,C,9,l[25]),E=n(E,D,T,k,d,14,l[26]),k=n(k,E,D,T,y,20,l[27]),T=n(T,k,E,D,S,5,l[28]),D=n(D,T,k,E,f,9,l[29]),E=n(E,D,T,k,_,14,l[30]),k=n(k,E,D,T,x,20,l[31]),T=r(T,k,E,D,v,4,l[32]),D=r(D,T,k,E,y,11,l[33]),E=r(E,D,T,k,A,16,l[34]),k=r(k,E,D,T,C,23,l[35]),T=r(T,k,E,D,p,4,l[36]),D=r(D,T,k,E,g,11,l[37]),E=r(E,D,T,k,_,16,l[38]),k=r(k,E,D,T,w,23,l[39]),T=r(T,k,E,D,S,4,l[40]),D=r(D,T,k,E,c,11,l[41]),E=r(E,D,T,k,d,16,l[42]),k=r(k,E,D,T,m,23,l[43]),T=r(T,k,E,D,b,4,l[44]),D=r(D,T,k,E,x,11,l[45]),E=r(E,D,T,k,P,16,l[46]),k=r(k,E,D,T,f,23,l[47]),T=o(T,k,E,D,c,6,l[48]),D=o(D,T,k,E,_,10,l[49]),E=o(E,D,T,k,C,15,l[50]),k=o(k,E,D,T,v,21,l[51]),T=o(T,k,E,D,x,6,l[52]),D=o(D,T,k,E,d,10,l[53]),E=o(E,D,T,k,w,15,l[54]),k=o(k,E,D,T,p,21,l[55]),T=o(T,k,E,D,y,6,l[56]),D=o(D,T,k,E,P,10,l[57]),E=o(E,D,T,k,m,15,l[58]),k=o(k,E,D,T,S,21,l[59]),T=o(T,k,E,D,g,6,l[60]),D=o(D,T,k,E,A,10,l[61]),E=o(E,D,T,k,f,15,l[62]),k=o(k,E,D,T,b,21,l[63]),u[0]=u[0]+T|0,u[1]=u[1]+k|0,u[2]=u[2]+E|0,u[3]=u[3]+D|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;i[r>>>5]|=128<<24-r%32;var o=e.floor(n/4294967296),s=n;i[(r+64>>>9<<4)+15]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[(r+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(i.length+1),this._process();for(var a=this._hash,h=a.words,u=0;u<4;u++){var c=h[u];h[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return a},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t}});s.MD5=u._createHelper(p),s.HmacMD5=u._createHmacHelper(p)}(Math),t.MD5})},function(t,e,i){!function(n,r,o){t.exports=e=r(i(6),i(34))}(this,function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB})},function(t,e,i){!function(n,r,o){t.exports=e=r(i(6),i(34))}(this,function(t){return t.pad.Pkcs7})},function(t,e,i){!function(n,r){t.exports=e=r(i(6))}(this,function(t){return function(){var e=t,i=e.lib,n=i.WordArray,r=i.Hasher,o=e.algo,s=[],a=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],a=i[3],h=i[4],u=0;u<80;u++){if(u<16)s[u]=0|t[e+u];else{var c=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=c<<1|c>>>31}var l=(n<<5|n>>>27)+h+s[u];l+=u<20?(r&o|~r&a)+1518500249:u<40?(r^o^a)+1859775393:u<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,h=a,a=o,o=r<<30|r>>>2,r=n,n=l}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+h|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=Math.floor(i/4294967296),e[(n+64>>>9<<4)+15]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a)}(),t.SHA1})},function(t,e,i){!function(n,r,o){t.exports=e=r(i(6),i(68),i(159),i(69),i(34))}(this,function(t){return function(){function e(t,e){var i=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=i,this._lBlock^=i<>>t^this._lBlock)&e;this._lBlock^=i,this._rBlock^=i<>>5]>>>31-r%32&1}for(var o=this._subKeys=[],s=0;s<16;s++){for(var a=o[s]=[],l=c[s],n=0;n<24;n++)a[n/6|0]|=i[(u[n]-1+l)%28]<<31-n%6,a[4+(n/6|0)]|=i[28+(u[n+24]-1+l)%28]<<31-n%6;a[0]=a[0]<<1|a[0]>>>31;for(var n=1;n<7;n++)a[n]=a[n]>>>4*(n-1)+3;a[7]=a[7]<<5|a[7]>>>27}for(var p=this._invSubKeys=[],n=0;n<16;n++)p[n]=o[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,n,r){this._lBlock=t[n],this._rBlock=t[n+1],e.call(this,4,252645135),e.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),e.call(this,1,1431655765);for(var o=0;o<16;o++){for(var s=r[o],a=this._lBlock,h=this._rBlock,u=0,c=0;c<8;c++)u|=l[c][((h^s[c])&p[c])>>>0];this._lBlock=h,this._rBlock=a^u}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,e.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),t[n]=this._lBlock,t[n+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=s._createHelper(f);var d=a.TripleDES=s.extend({_doReset:function(){var t=this._key,e=t.words;this._des1=f.createEncryptor(o.create(e.slice(0,2))),this._des2=f.createEncryptor(o.create(e.slice(2,4))),this._des3=f.createEncryptor(o.create(e.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=s._createHelper(d)}(),t.TripleDES})},function(t,e,i){!function(e,i){"use strict";var n=function(t){return new n.Instance(t)};n.SUPPORT="wheel",n.ADD_EVENT="addEventListener",n.REMOVE_EVENT="removeEventListener",n.PREFIX="",n.READY=!1,n.Instance=function(t){return n.READY||(n.normalise.browser(),n.READY=!0),this.element=t,this.handlers=[],this},n.Instance.prototype={wheel:function(t,e){return n.event.add(this,n.SUPPORT,t,e),"DOMMouseScroll"===n.SUPPORT&&n.event.add(this,"MozMousePixelScroll",t,e),this},unwheel:function(t,e){return void 0===t&&(t=this.handlers.slice(-1)[0])&&(t=t.original),n.event.remove(this,n.SUPPORT,t,e),"DOMMouseScroll"===n.SUPPORT&&n.event.remove(this,"MozMousePixelScroll",t,e),this}},n.event={add:function(t,i,r,o){var s=r;r=function(t){t||(t=e.event);var i=n.normalise.event(t),r=n.normalise.delta(t);return s(i,r[0],r[1],r[2])},t.element[n.ADD_EVENT](n.PREFIX+i,r,o||!1),t.handlers.push({original:s,normalised:r})},remove:function(t,e,i,r){for(var o,s=i,a={},h=0,u=t.handlers.length;h=9||(n.SUPPORT=void 0!==i.onmousewheel?"mousewheel":"DOMMouseScroll"),e.addEventListener||(n.ADD_EVENT="attachEvent",n.REMOVE_EVENT="detachEvent",n.PREFIX="on")},event:function(t){var e={originalEvent:t,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"===t.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(){t.stopPropagation?t.stopPropagation():t.cancelBubble=!1}};return t.wheelDelta&&(e.deltaY=-.025*t.wheelDelta),t.wheelDeltaX&&(e.deltaX=-.025*t.wheelDeltaX),t.detail&&(e.deltaY=t.detail),e},delta:function(t){var e,i=0,n=0,s=0,a=0,h=0;return t.deltaY&&(s=t.deltaY*-1,i=s),t.deltaX&&(n=t.deltaX,i=n*-1),t.wheelDelta&&(i=t.wheelDelta),t.wheelDeltaY&&(s=t.wheelDeltaY),t.wheelDeltaX&&(n=t.wheelDeltaX*-1),t.detail&&(i=t.detail*-1),0===i?[0,0,0]:(a=Math.abs(i),(!r||a0?"floor":"ceil",i=Math[e](i/r),n=Math[e](n/o),s=Math[e](s/o),[i,n,s])}},"function"==typeof e.define&&e.define.amd?e.define("hamster",[],function(){return n}):t.exports=n}(window,window.document)},function(t,e){e.read=function(t,e,i,n,r){var o,s,a=8*r-n-1,h=(1<>1,c=-7,l=i?r-1:0,p=i?-1:1,f=t[e+l];for(l+=p,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+t[e+l],l+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+l],l+=p,c-=8);if(0===o)o=1-u;else{if(o===h)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var s,a,h,u=8*o-r-1,c=(1<>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))<1&&(s--,h*=2),e+=s+l>=1?p/h:p*Math.pow(2,1-l),e*h>=2&&(s++,h/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(e*h-1)*Math.pow(2,r),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,r),s=0));r>=8;t[i+f]=255&a,f+=d,a/=256,r-=8);for(s=s<0;t[i+f]=255&s,f+=d,s/=256,u-=8);t[i+f-d]|=128*g}},function(t,e,i){t.exports=i(11)},function(t,e,i){"use strict";function n(t){return this instanceof n?void r.call(this,t):new n(t)}t.exports=n;var r=i(72),o=Object.create(i(19));o.inherits=i(16),o.inherits(n,r),n.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,i){t.copy(e,i)}var o=i(26).Buffer,s=i(211);t.exports=function(){function t(){n(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),i=this.head,n=0;i;)r(i.data,e,n),n+=i.data.length,i=i.next;return e},t}(),s&&s.inspect&&s.inspect.custom&&(t.exports.prototype[s.inspect.custom]=function(){var t=s.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,i){t.exports=i(36).PassThrough},function(t,e,i){t.exports=i(36).Transform},function(t,e,i){t.exports=i(35)},function(t,e,i){(function(t){!function(e){function n(t,i){if(!(this instanceof n))return new n(t,i);var r=this;o(r),r.q=r.c="",r.bufferCheckPosition=e.MAX_BUFFER_LENGTH,r.opt=i||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!t,r.noscript=!(!t&&!r.opt.noscript),r.state=U.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(M)),r.trackPosition=r.opt.position!==!1,r.trackPosition&&(r.position=r.line=r.column=0),d(r,"onready")}function r(t){for(var i=Math.max(e.MAX_BUFFER_LENGTH,10),n=0,r=0,o=D.length;ri)switch(D[r]){case"textNode":v(t);break;case"cdata":g(t,"oncdata",t.cdata),t.cdata="";break;case"script":g(t,"onscript",t.script),t.script="";break;default:_(t,"Max buffer length exceeded: "+D[r])}n=Math.max(n,s)}var a=e.MAX_BUFFER_LENGTH-n;t.bufferCheckPosition=a+t.position}function o(t){for(var e=0,i=D.length;e"===t||u(t)}function p(t,e){return t.test(e)}function f(t,e){return!p(t,e)}function d(t,e,i){t[e]&&t[e](i)}function g(t,e,i){t.textNode&&v(t),d(t,e,i)}function v(t){t.textNode=m(t.opt,t.textNode),t.textNode&&d(t,"ontext",t.textNode),t.textNode=""}function m(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function _(t,e){return v(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,d(t,"onerror",e),t}function y(t){return t.sawRoot&&!t.closedRoot&&b(t,"Unclosed root tag"),t.state!==U.BEGIN&&t.state!==U.BEGIN_WHITESPACE&&t.state!==U.TEXT&&_(t,"Unexpected end"),v(t),t.c="",t.closed=!0,d(t,"onend"),n.call(t,t.strict,t.opt),t}function b(t,e){if("object"!=typeof t||!(t instanceof n))throw new Error("bad call to strictFail");t.strict&&_(t,e)}function w(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,i=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(i.ns=e.ns),t.attribList.length=0,g(t,"onopentagstart",i)}function A(t,e){var i=t.indexOf(":"),n=i<0?["",t]:t.split(":"),r=n[0],o=n[1];return e&&"xmlns"===t&&(r="xmlns",o=""),{prefix:r,local:o}}function x(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),t.attribList.indexOf(t.attribName)!==-1||t.tag.attributes.hasOwnProperty(t.attribName))return void(t.attribName=t.attribValue="");if(t.opt.xmlns){var e=A(t.attribName,!0),i=e.prefix,n=e.local;if("xmlns"===i)if("xml"===n&&t.attribValue!==R)b(t,"xml: prefix must be bound to "+R+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==j)b(t,"xmlns: prefix must be bound to "+j+"\nActual: "+t.attribValue);else{var r=t.tag,o=t.tags[t.tags.length-1]||t;r.ns===o.ns&&(r.ns=Object.create(o.ns)),r.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,g(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function S(t,e){if(t.opt.xmlns){var i=t.tag,n=A(t.tagName);i.prefix=n.prefix,i.local=n.local,i.uri=i.ns[n.prefix]||"",i.prefix&&!i.uri&&(b(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),i.uri=n.prefix);var r=t.tags[t.tags.length-1]||t;i.ns&&r.ns!==i.ns&&Object.keys(i.ns).forEach(function(e){g(t,"onopennamespace",{prefix:e,uri:i.ns[e]})});for(var o=0,s=t.attribList.length;o",t.tagName="",void(t.state=U.SCRIPT);g(t,"onscript",t.script),t.script=""}var e=t.tags.length,i=t.tagName;t.strict||(i=i[t.looseCase]());for(var n=i;e--;){var r=t.tags[e];if(r.name===n)break;b(t,"Unexpected close tag")}if(e<0)return b(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=U.TEXT);t.tagName=i;for(var o=t.tags.length;o-- >e;){var s=t.tag=t.tags.pop();t.tagName=t.tag.name,g(t,"onclosetag",t.tagName);var a={};for(var h in s.ns)a[h]=s.ns[h];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&s.ns!==u.ns&&Object.keys(s.ns).forEach(function(e){var i=s.ns[e];g(t,"onclosenamespace",{prefix:e,uri:i})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=U.TEXT}function P(t){var e,i=t.entity,n=i.toLowerCase(),r="";return t.ENTITIES[i]?t.ENTITIES[i]:t.ENTITIES[n]?t.ENTITIES[n]:(i=n,"#"===i.charAt(0)&&("x"===i.charAt(1)?(i=i.slice(2),e=parseInt(i,16),r=e.toString(16)):(i=i.slice(1),e=parseInt(i,10),r=e.toString(10))),i=i.replace(/^0+/,""),isNaN(e)||r.toLowerCase()!==i?(b(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function T(t,e){"<"===e?(t.state=U.OPEN_WAKA,t.startTagPosition=t.position):u(e)||(b(t,"Non-whitespace before first tag."),t.textNode=e,t.state=U.TEXT)}function k(t,e){var i="";return e"===n?(g(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=U.TEXT):c(n)?(e.state=U.SGML_DECL_QUOTED,e.sgmlDecl+=n):e.sgmlDecl+=n;continue;case U.SGML_DECL_QUOTED:n===e.q&&(e.state=U.SGML_DECL,e.q=""),e.sgmlDecl+=n;continue;case U.DOCTYPE:">"===n?(e.state=U.TEXT,g(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=n,"["===n?e.state=U.DOCTYPE_DTD:c(n)&&(e.state=U.DOCTYPE_QUOTED,e.q=n));continue;case U.DOCTYPE_QUOTED:e.doctype+=n,n===e.q&&(e.q="",e.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:e.doctype+=n,"]"===n?e.state=U.DOCTYPE:c(n)&&(e.state=U.DOCTYPE_DTD_QUOTED,e.q=n);continue;case U.DOCTYPE_DTD_QUOTED:e.doctype+=n,n===e.q&&(e.state=U.DOCTYPE_DTD,e.q="");continue;case U.COMMENT:"-"===n?e.state=U.COMMENT_ENDING:e.comment+=n;continue;case U.COMMENT_ENDING:"-"===n?(e.state=U.COMMENT_ENDED,e.comment=m(e.opt,e.comment),e.comment&&g(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+n,e.state=U.COMMENT);continue;case U.COMMENT_ENDED:">"!==n?(b(e,"Malformed comment"),e.comment+="--"+n,e.state=U.COMMENT):e.state=U.TEXT;continue;case U.CDATA:"]"===n?e.state=U.CDATA_ENDING:e.cdata+=n;continue;case U.CDATA_ENDING:"]"===n?e.state=U.CDATA_ENDING_2:(e.cdata+="]"+n,e.state=U.CDATA);continue;case U.CDATA_ENDING_2:">"===n?(e.cdata&&g(e,"oncdata",e.cdata),g(e,"onclosecdata"),e.cdata="",e.state=U.TEXT):"]"===n?e.cdata+="]":(e.cdata+="]]"+n,e.state=U.CDATA);continue;case U.PROC_INST:"?"===n?e.state=U.PROC_INST_ENDING:u(n)?e.state=U.PROC_INST_BODY:e.procInstName+=n;continue;case U.PROC_INST_BODY:if(!e.procInstBody&&u(n))continue;"?"===n?e.state=U.PROC_INST_ENDING:e.procInstBody+=n;continue;case U.PROC_INST_ENDING:">"===n?(g(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=U.TEXT):(e.procInstBody+="?"+n,e.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:p(N,n)?e.tagName+=n:(w(e),">"===n?S(e):"/"===n?e.state=U.OPEN_TAG_SLASH:(u(n)||b(e,"Invalid character in tag name"),e.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:">"===n?(S(e,!0),C(e)):(b(e,"Forward-slash in opening tag not followed by >"),e.state=U.ATTRIB);continue;case U.ATTRIB:if(u(n))continue;">"===n?S(e):"/"===n?e.state=U.OPEN_TAG_SLASH:p(F,n)?(e.attribName=n,e.attribValue="",e.state=U.ATTRIB_NAME):b(e,"Invalid attribute name");continue;case U.ATTRIB_NAME:"="===n?e.state=U.ATTRIB_VALUE:">"===n?(b(e,"Attribute without value"),e.attribValue=e.attribName,x(e),S(e)):u(n)?e.state=U.ATTRIB_NAME_SAW_WHITE:p(N,n)?e.attribName+=n:b(e,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if("="===n)e.state=U.ATTRIB_VALUE;else{if(u(n))continue;b(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",g(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===n?S(e):p(F,n)?(e.attribName=n,e.state=U.ATTRIB_NAME):(b(e,"Invalid attribute name"),e.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if(u(n))continue;c(n)?(e.q=n,e.state=U.ATTRIB_VALUE_QUOTED):(b(e,"Unquoted attribute value"),e.state=U.ATTRIB_VALUE_UNQUOTED,e.attribValue=n);continue;case U.ATTRIB_VALUE_QUOTED:if(n!==e.q){"&"===n?e.state=U.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=n;continue}x(e),e.q="",e.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:u(n)?e.state=U.ATTRIB:">"===n?S(e):"/"===n?e.state=U.OPEN_TAG_SLASH:p(F,n)?(b(e,"No whitespace between attributes"),e.attribName=n,e.attribValue="",e.state=U.ATTRIB_NAME):b(e,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(!l(n)){"&"===n?e.state=U.ATTRIB_VALUE_ENTITY_U:e.attribValue+=n;continue}x(e),">"===n?S(e):e.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(e.tagName)">"===n?C(e):p(N,n)?e.tagName+=n:e.script?(e.script+=""===n?C(e):b(e,"Invalid characters in closing tag");continue;case U.TEXT_ENTITY:case U.ATTRIB_VALUE_ENTITY_Q:case U.ATTRIB_VALUE_ENTITY_U:var a,h;switch(e.state){case U.TEXT_ENTITY:a=U.TEXT,h="textNode";break;case U.ATTRIB_VALUE_ENTITY_Q:a=U.ATTRIB_VALUE_QUOTED,h="attribValue";break;case U.ATTRIB_VALUE_ENTITY_U:a=U.ATTRIB_VALUE_UNQUOTED,h="attribValue"}";"===n?(e[h]+=P(e),e.entity="",e.state=a):p(e.entity.length?H:B,n)?e.entity+=n:(b(e,"Invalid character in entity name"),e[h]+="&"+e.entity+n,e.entity="",e.state=a);continue;default:throw new Error(e,"Unknown state: "+e.state)}return e.position>=e.bufferCheckPosition&&r(e),e}e.parser=function(t,e){return new n(t,e)},e.SAXParser=n,e.SAXStream=h,e.createStream=a,e.MAX_BUFFER_LENGTH=65536;var D=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}e.prototype=t;var i=new e;return i}),Object.keys||(Object.keys=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}),n.prototype={end:function(){y(this)},write:E,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var I;try{I=i(174).Stream}catch(t){I=function(){}}var L=e.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});h.prototype=Object.create(I.prototype,{constructor:{value:h}}),h.prototype.write=function(e){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(e)){if(!this._decoder){var n=i(175).StringDecoder;this._decoder=new n("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},h.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},h.prototype.on=function(t,e){var i=this;return i._parser["on"+t]||L.indexOf(t)===-1||(i._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),i.emit.apply(i,e)}),I.prototype.on.call(i,t,e)};var $="[CDATA[",O="DOCTYPE",R="http://www.w3.org/XML/1998/namespace",j="http://www.w3.org/2000/xmlns/",M={xml:R,xmlns:j},F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,N=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,B=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,H=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=0;e.STATE={BEGIN:U++,BEGIN_WHITESPACE:U++,TEXT:U++,TEXT_ENTITY:U++,OPEN_WAKA:U++,SGML_DECL:U++,SGML_DECL_QUOTED:U++,DOCTYPE:U++,DOCTYPE_QUOTED:U++,DOCTYPE_DTD:U++,DOCTYPE_DTD_QUOTED:U++,COMMENT_STARTING:U++,COMMENT:U++,COMMENT_ENDING:U++,COMMENT_ENDED:U++,CDATA:U++,CDATA_ENDING:U++,CDATA_ENDING_2:U++,PROC_INST:U++,PROC_INST_BODY:U++,PROC_INST_ENDING:U++,OPEN_TAG:U++,OPEN_TAG_SLASH:U++,ATTRIB:U++,ATTRIB_NAME:U++,ATTRIB_NAME_SAW_WHITE:U++,ATTRIB_VALUE:U++,ATTRIB_VALUE_QUOTED:U++,ATTRIB_VALUE_CLOSED:U++,ATTRIB_VALUE_UNQUOTED:U++,ATTRIB_VALUE_ENTITY_Q:U++,ATTRIB_VALUE_ENTITY_U:U++,CLOSE_TAG:U++,CLOSE_TAG_SAW_WHITE:U++,SCRIPT:U++,SCRIPT_ENDING:U++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t],n="number"==typeof i?String.fromCharCode(i):i;e.ENTITIES[t]=n});for(var z in e.STATE)e.STATE[e.STATE[z]]=z;U=e.STATE,/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ String.fromCodePoint||!function(){var t=String.fromCharCode,e=Math.floor,i=function(){var i,n,r=16384,o=[],s=-1,a=arguments.length;if(!a)return"";for(var h="";++s1114111||e(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?o.push(u):(u-=65536,i=(u>>10)+55296,n=u%1024+56320,o.push(i,n)),(s+1===a||o.length>r)&&(h+=t.apply(null,o),o.length=0)}return h};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:i,configurable:!0,writable:!0}):String.fromCodePoint=i}()}(e)}).call(e,i(22).Buffer)},function(t,e,i){(function(t,e){!function(t,i){"use strict";function n(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived),e+=t.toString(this.encoding,0,r);var r=e.length-1,n=e.charCodeAt(r);if(n>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},u.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var i=t[t.length-e];if(1==e&&i>>5==6){this.charLength=2;break}if(e<=2&&i>>4==14){this.charLength=3;break}if(e<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=e},u.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var i=this.charReceived,n=this.charBuffer,r=this.encoding;e+=n.slice(0,i).toString(r)}return e}},function(t,e){(function(e){function i(t,e){function i(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}if(n("noDeprecation"))return t;var r=!1;return i}function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=i}).call(e,function(){return this}())},function(t,e,i){var n=i(181),r=i(179),o=i(38);t.exports=function(t){function e(o,h){var u;return t.isPlainObject(o)&&(h=o,o=""),h=t.extend({url:o},h),h=t.extend(!0,{},e.options,this.options,h),null===h.crossOrigin&&(h.crossOrigin=a(h.url)),h.method=h.method.toUpperCase(),h.headers=t.extend({},e.headers.common,h.crossOrigin?{}:e.headers.custom,e.headers[h.method.toLowerCase()],h.headers),t.isPlainObject(h.data)&&/^(GET|JSONP)$/i.test(h.method)&&(t.extend(h.params,h.data),delete h.data),h.emulateHTTP&&!h.crossOrigin&&/^(PUT|PATCH|DELETE)$/i.test(h.method)&&(h.headers["X-HTTP-Method-Override"]=h.method,h.method="POST"),h.emulateJSON&&t.isPlainObject(h.data)&&(h.headers["Content-Type"]="application/x-www-form-urlencoded",h.data=t.url.params(h.data)),t.isObject(h.data)&&/FormData/i.test(h.data.toString())&&delete h.headers["Content-Type"],t.isPlainObject(h.data)&&(h.data=JSON.stringify(h.data)),u=("JSONP"==h.method?r:n).call(this.vm,t,h),u=i(u.then(s,s),this.vm),h.success&&(u=u.success(h.success)),h.error&&(u=u.error(h.error)),u}function i(t,e){return t.success=function(n){return i(t.then(function(t){return n.call(e,t.data,t.status,t)||t}),e)},t.error=function(n){return i(t.then(void 0,function(t){return n.call(e,t.data,t.status,t)||t}),e)},t.always=function(n){var r=function(t){return n.call(e,t.data,t.status,t)||t};return i(t.then(r,r),e)},t}function s(t){try{t.data=JSON.parse(t.responseText)}catch(e){t.data=t.responseText}return t.ok?t:o.reject(t)}function a(e){var i=t.url.parse(e);return i.protocol!==h.protocol||i.host!==h.host}var h=t.url.parse(location.href),u={"Content-Type":"application/json;charset=utf-8"};return e.options={method:"get",params:{},data:"",xhr:null,jsonp:"callback",beforeSend:null,crossOrigin:null,emulateHTTP:!1,emulateJSON:!1},e.headers={put:u,post:u,patch:u,delete:u,common:{Accept:"application/json, text/plain, */*"},custom:{"X-Requested-With":"XMLHttpRequest"}},["get","put","post","patch","delete","jsonp"].forEach(function(i){e[i]=function(e,n,r,o){return t.isFunction(n)&&(o=r,r=n,n=void 0),this(e,t.extend({method:i,data:n,success:r},o))}}),t.http=e}},function(t,e,i){function n(t){var e=i(180)(t);t.url=i(183)(e),t.http=i(177)(e),t.resource=i(182)(e),Object.defineProperties(t.prototype,{$url:{get:function(){return e.options(t.url,this,this.$options.url)}},$http:{get:function(){return e.options(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}}})}window.Vue&&Vue.use(n),t.exports=n},function(t,e,i){var n=i(38);t.exports=function(t,e){var i,r,o="_jsonp"+Math.random().toString(36).substr(2),s={};return e.params[e.jsonp]=o,t.isFunction(e.beforeSend)&&e.beforeSend.call(this,{},e),new n(function(n,a){i=document.createElement("script"),i.src=t.url(e),i.type="text/javascript",i.async=!0,window[o]=function(t){r=t};var h=function(t){delete window[o],document.body.removeChild(i),"load"!==t.type||r||(t.type="error"),s.ok="error"!==t.type,s.status=s.ok?200:404,s.responseText=r?r:t.type,(s.ok?n:a)(s)};i.onload=h,i.onerror=h,document.body.appendChild(i)})}},function(t,e){t.exports=function(t){function e(t,n,r){for(var o in n)r&&(i.isPlainObject(n[o])||i.isArray(n[o]))?(i.isPlainObject(n[o])&&!i.isPlainObject(t[o])&&(t[o]={}),i.isArray(n[o])&&!i.isArray(t[o])&&(t[o]=[]),e(t[o],n[o],r)):void 0!==n[o]&&(t[o]=n[o])}var i=t.util.extend({},t.util);return i.isString=function(t){return"string"==typeof t},i.isFunction=function(t){return"function"==typeof t},i.options=function(t,e,n){return n=n||{},i.isFunction(n)&&(n=n.call(e)),i.extend(t.bind({vm:e,options:n}),t,{options:n})},i.each=function(t,e){var n,r;if("number"==typeof t.length)for(n=0;n=200&&o.status<300),(o.ok?i:n)(o)};o.onload=r,o.onabort=r,o.onerror=r,o.send(e.data)})}},function(t,e){t.exports=function(t){function e(n,r,o,s){var a=this,h={};return o=t.extend({},e.actions,o),t.each(o,function(e,o){e=t.extend(!0,{url:n,params:r||{}},s,e),h[o]=function(){return(a.$http||t.http)(i(e,arguments))}}),h}function i(e,i){var n,r,o,s=t.extend({},e),a={};switch(i.length){case 4:o=i[3],r=i[2];case 3:case 2:if(!t.isFunction(i[1])){a=i[0],n=i[1],r=i[2];break}if(t.isFunction(i[0])){r=i[0],o=i[1];break}r=i[1],o=i[2];case 1:t.isFunction(i[0])?r=i[0]:/^(POST|PUT|PATCH)$/i.test(s.method)?n=i[0]:a=i[0];break;case 0:break;default:throw"Expected up to 4 arguments [params, data, success, error], got "+i.length+" arguments"}return s.data=n,s.params=t.extend({},s.params,a),r&&(s.success=r),o&&(s.error=o),s}return e.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},t.resource=e}},function(t,e){var i=document.documentMode,n=document.createElement("a");t.exports=function(t){function e(i,n){var r,s={},a={},h=i;return t.isPlainObject(h)||(h={url:i,params:n}),h=t.extend(!0,{},e.options,this.options,h),i=h.url.replace(/(\/?):([a-z]\w*)/gi,function(t,e,i){return h.params[i]?(s[i]=!0,e+o(h.params[i])):""}),t.isString(h.root)&&!i.match(/^(https?:)?\//)&&(i=h.root+"/"+i),t.each(h.params,function(t,e){s[e]||(a[e]=t)}),r=e.params(a),r&&(i+=(i.indexOf("?")==-1?"?":"&")+r),i}function r(e,i,n){var o,s=t.isArray(i),a=t.isPlainObject(i);t.each(i,function(i,h){o=t.isObject(i)||t.isArray(i),n&&(h=n+"["+(a||o?h:"")+"]"),!n&&s?e.add(i.name,i.value):o?r(e,i,h):e.add(h,i)})}function o(t){return s(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function s(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}return e.options={url:"",root:null,params:{}},e.params=function(e){var i=[];return i.add=function(e,i){t.isFunction(i)&&(i=i()),null===i&&(i=""),this.push(o(e)+"="+o(i))},r(i,e),i.join("&")},e.parse=function(t){return i&&(n.href=t,t=n.href),n.href=t,{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",port:n.port,host:n.host,hostname:n.hostname,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):""}},t.url=e}},function(t,e,i){!function(){function e(t){return t.charAt(0).toUpperCase()+t.slice(1)}function n(t){var e=t.direction;if("string"==typeof e){var i="DIRECTION_"+e.toUpperCase();a.indexOf(e)>-1&&o.hasOwnProperty(i)?t.direction=o[i]:console.warn("[vue-touch] invalid direction: "+e)}}var r={},o=i(24),s=["tap","pan","pinch","press","rotate","swipe"],a=["up","down","left","right","horizontal","vertical","all"],h={};if(!o)throw new Error("[vue-touch] cannot locate Hammer.js.");r.config={},r.install=function(t){t.directive("touch",{isFn:!0,acceptStatement:!0,priority:t.directive("on").priority,bind:function(){this.el.hammer||(this.el.hammer=new o.Manager(this.el));var t=this.mc=this.el.hammer,i=this.arg;i||console.warn("[vue-touch] event type argument is required.");var a,u;if(h[i]){var c=h[i];a=c.type,u=new(o[e(a)])(c),u.recognizeWith(t.recognizers),t.add(u)}else{for(var l=0;l1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function d(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function g(t,e){for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function v(t){return null!==t&&"object"==typeof t}function m(t){return Xi.call(t)===qi}function _(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function y(t,e){var i,n,r,o,s,a=function a(){var h=Date.now()-o;h=0?i=setTimeout(a,e-h):(i=null,s=t.apply(r,n),i||(r=n=null))};return function(){return r=this,n=arguments,o=Date.now(),i||(i=setTimeout(a,e)),s}}function b(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function w(t){var e=function e(){if(!e.cancelled)return t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function A(t,e){return t==e||!(!v(t)||!v(e))&&JSON.stringify(t)===JSON.stringify(e)}function x(t){return/native code/.test(t.toString())}function S(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function C(){return dn.charCodeAt(mn+1)}function P(){return dn.charCodeAt(++mn)}function T(){return mn>=vn}function k(){for(;C()===Dn;)P()}function E(t){return t===Pn||t===Tn}function D(t){return In[t]}function I(t,e){return Ln[t]===e}function L(){for(var t,e=P();!T();)if(t=P(),t===En)P();else if(t===e)break}function $(t){for(var e=0,i=t;!T();)if(t=C(),E(t))L();else if(i===t&&e++,I(i,t)&&e--,P(),0===e)break}function O(){for(var t=mn;!T();)if(_n=C(),E(_n))L();else if(D(_n))$(_n);else if(_n===kn){if(P(),_n=C(),_n!==kn){yn!==An&&yn!==Cn||(yn=xn);break}P()}else{if(_n===Dn&&(yn===Sn||yn===Cn)){k();break}yn===xn&&(yn=Sn),P()}return dn.slice(t+1,mn)||null}function R(){for(var t=[];!T();)t.push(j());return t}function j(){var t,e={};return yn=xn,e.name=O().trim(),yn=Cn,t=M(),t.length&&(e.args=t),e}function M(){for(var t=[];!T()&&yn!==xn;){var e=O();if(!e)break;t.push(F(e))}return t}function F(t){if(wn.test(t))return{value:s(t),dynamic:!1};var e=h(t),i=e===t;return{value:i?t:e,dynamic:i}}function N(t){var e=bn.get(t);if(e)return e;dn=t,gn={},vn=dn.length,mn=-1,_n="",yn=An;var i;return dn.indexOf("|")<0?gn.expression=dn.trim():(gn.expression=O().trim(),i=R(),i.length&&(gn.filters=i)),bn.put(t,gn),gn}function B(t){return t.replace(On,"\\$&")}function H(){var t=B(Un.delimiters[0]),e=B(Un.delimiters[1]),i=B(Un.unsafeDelimiters[0]),n=B(Un.unsafeDelimiters[1]);jn=new RegExp(i+"((?:.|\\n)+?)"+n+"|"+t+"((?:.|\\n)+?)"+e,"g"),Mn=new RegExp("^"+i+"((?:.|\\n)+?)"+n+"$"),Rn=new S(1e3)}function U(t){Rn||H();var e=Rn.get(t);if(e)return e;if(!jn.test(t))return null;for(var i,n,r,o,s,a,h=[],u=jn.lastIndex=0;i=jn.exec(t);)n=i.index,n>u&&h.push({value:t.slice(u,n)}),r=Mn.test(i[0]),o=r?i[1]:i[2],s=o.charCodeAt(0),a=42===s,o=a?o.slice(1):o,h.push({tag:!0,value:o.trim(),html:r,oneTime:a}),u=n+i[0].length;return u1?t.map(function(t){return W(t,e)}).join("+"):W(t[0],e,!0)}function W(t,e,i){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':Y(t.value,i):'"'+t.value+'"'}function Y(t,e){if(Fn.test(t)){var i=N(t);return i.filters?"this._applyFilters("+i.expression+",null,"+JSON.stringify(i.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function V(t,e,i,n){G(t,1,function(){e.appendChild(t)},i,n)}function X(t,e,i,n){G(t,1,function(){et(t,e)},i,n)}function q(t,e,i){G(t,-1,function(){nt(t)},e,i)}function G(t,e,i,n,r){var o=t.__v_trans;if(!o||!o.hooks&&!sn||!n._isCompiled||n.$parent&&!n.$parent._isCompiled)return i(),void(r&&r());var s=e>0?"enter":"leave";o[s](i,r)}function Z(t){if("string"==typeof t){var e=t;t=document.querySelector(t),t||zn("Cannot find element: "+e)}return t}function Q(t){if(!t)return!1;var e=t.ownerDocument.documentElement,i=t.parentNode;return e===t||e===i||!(!i||1!==i.nodeType||!e.contains(i))}function J(t,e){var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i}function K(t,e){var i=J(t,":"+e);return null===i&&(i=J(t,"v-bind:"+e)),i}function tt(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function et(t,e){e.parentNode.insertBefore(t,e)}function it(t,e){e.nextSibling?et(t,e.nextSibling):e.parentNode.appendChild(t)}function nt(t){t.parentNode.removeChild(t)}function rt(t,e){e.firstChild?et(t,e.firstChild):e.appendChild(t)}function ot(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)}function st(t,e,i,n){t.addEventListener(e,i,n)}function at(t,e,i){t.removeEventListener(e,i)}function ht(t){var e=t.className;return"object"==typeof e&&(e=e.baseVal||""),e}function ut(t,e){en&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function ct(t,e){if(t.classList)t.classList.add(e);else{var i=" "+ht(t)+" ";i.indexOf(" "+e+" ")<0&&ut(t,(i+e).trim())}}function lt(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+ht(t)+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");ut(t,i.trim())}t.className||t.removeAttribute("class")}function pt(t,e){var i,n;if(gt(t)&&bt(t.content)&&(t=t.content),t.hasChildNodes())for(ft(t),n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}function ft(t){for(var e;e=t.firstChild,dt(e);)t.removeChild(e);for(;e=t.lastChild,dt(e);)t.removeChild(e)}function dt(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function gt(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function vt(t,e){var i=Un.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__v_anchor=!0,i}function mt(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;i=h.length){for(var t=0;t - did you mean <"+o+">? HTML is case-insensitive, remember to use kebab-case in templates."):Gn(t,i)&&zn("Unknown custom element: <"+i+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.')}}function xt(t,e){var i=t.getAttribute("is");if(null!=i){if(Dt(e,"components",i))return t.removeAttribute("is"),{id:i}}else if(i=K(t,"is"),null!=i)return{id:i,dynamic:!0}}function St(e,n){var r,o,s;for(r in n)o=e[r],s=n[r],i(e,r)?v(o)&&v(s)&&St(o,s):t(e,r,s);return e}function Ct(t,e){var i=Object.create(t||null);return e?g(i,kt(e)):i}function Pt(t){if(t.components)for(var e,i=t.components=kt(t.components),n=Object.keys(i),r=t._componentNameMap={},o=0,s=n.length;o=97&&e<=122||e>=65&&e<=90?"ident":e>=49&&e<=57?"number":"else"}function Bt(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(n(e)?h(e):"*"+e)}function Ht(t){function e(){var e=t[c+1];if(l===gr&&"'"===e||l===vr&&'"'===e)return c++,n="\\"+e,f[sr](),!0}var i,n,r,o,s,a,h,u=[],c=-1,l=cr,p=0,f=[];for(f[ar]=function(){void 0!==r&&(u.push(r),r=void 0)},f[sr]=function(){void 0===r?r=n:r+=n},f[hr]=function(){f[sr](),p++},f[ur]=function(){if(p>0)p--,l=dr,f[sr]();else{if(p=0,r=Bt(r),r===!1)return!1;f[ar]()}};null!=l;)if(c++,i=t[c],"\\"!==i||!e()){if(o=Nt(i),h=yr[l],s=h[o]||h.else||_r,s===_r)return;if(l=s[0],a=f[s[1]],a&&(n=s[2],n=void 0===n?i:n,a()===!1))return;if(l===mr)return u.raw=t,u}}function Ut(t){var e=or.get(t);return e||(e=Ht(t),e&&or.put(t,e)),e}function zt(t,e){return Jt(e).get(t)}function Wt(e,i,n){var r=e;if("string"==typeof i&&(i=Ht(i)),!i||!v(e))return!1;for(var o,s,a=0,h=i.length;a-1?i.replace(Dr,qt):i,e+"scope."+i)}function qt(t,e){return Or[e]}function Gt(t){Pr.test(t)&&zn("Avoid using reserved keywords in expression: "+t),Or.length=0;var e=t.replace(Er,Vt).replace(Tr,"");return e=(" "+e).replace(Lr,Xt).replace(Dr,qt),Zt(e)}function Zt(t){try{return new Function("scope","return "+t+";")}catch(e){return zn(e.toString().match(/unsafe-eval|CSP/)?"It seems you are using the default build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. Use the CSP-compliant build instead: http://vuejs.org/guide/installation.html#CSP-compliant-build":"Invalid expression. Generated function body: "+t),Yt}}function Qt(t){var e=Ut(t);return e?function(t,i){Wt(t,e,i)}:void zn("Invalid setter expression: "+t)}function Jt(t,e){t=t.trim();var i=Ar.get(t);if(i)return e&&!i.set&&(i.set=Qt(i.exp)),i;var n={exp:t};return n.get=Kt(t)&&t.indexOf("[")<0?Zt("scope."+t):Gt(t),e&&(n.set=Qt(t)),Ar.put(t,n),n}function Kt(t){return Ir.test(t)&&!$r.test(t)&&"Math."!==t.slice(0,5)}function te(){jr.length=0,Mr.length=0,Fr={},Nr={},Br=!1}function ee(){for(var t=!0;t;)t=!1,ie(jr),ie(Mr),jr.length?t=!0:(Ji&&Un.devtools&&Ji.emit("flush"),te())}function ie(t){for(var e=0;eUn._maxUpdateCount)){zn('You may have an infinite update loop for watcher with expression "'+i.expression+'"',i.vm);break}}t.length=0}function ne(t){var e=t.id;if(null==Fr[e]){var i=t.user?Mr:jr;Fr[e]=i.length,i.push(t),Br||(Br=!0,ln(ee))}}function re(t,e,i,n){n&&g(this,n);var r="function"==typeof e;if(this.vm=t,t._watchers.push(this),this.expression=e,this.cb=i,this.id=++Hr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new pn,this.newDepIds=new pn,this.prevError=null,r)this.getter=e,this.setter=void 0;else{var o=Jt(e,this.twoWay);this.getter=o.get,this.setter=o.set}this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function oe(t,e){var i=void 0,n=void 0;e||(e=Ur,e.clear());var r=Gi(t),o=v(t);if((r||o)&&Object.isExtensible(t)){if(t.__ob__){var s=t.__ob__.dep.id;if(e.has(s))return;e.add(s)}if(r)for(i=t.length;i--;)oe(t[i],e);else if(o)for(n=Object.keys(t),i=n.length;i--;)oe(t[n[i]],e)}}function se(t){return gt(t)&&bt(t.content)}function ae(t,e){var i=e?t:t.trim(),n=Wr.get(i);if(n)return n;var r=document.createDocumentFragment(),o=t.match(Xr),s=qr.test(t),a=Gr.test(t);if(o||s||a){var h=o&&o[1],u=Vr[h]||Vr.efault,c=u[0],l=u[1],p=u[2],f=document.createElement("div");for(f.innerHTML=l+t+p;c--;)f=f.lastChild;for(var d;d=f.firstChild;)r.appendChild(d)}else r.appendChild(document.createTextNode(t));return e||ft(r),Wr.put(i,r),r}function he(t){if(se(t))return ae(t.innerHTML);if("SCRIPT"===t.tagName)return ae(t.textContent);for(var e,i=ue(t),n=document.createDocumentFragment();e=i.firstChild;)n.appendChild(e);return ft(n),n}function ue(t){if(!t.querySelectorAll)return t.cloneNode();var e,i,n,r=t.cloneNode(!0);if(Zr){var o=r;if(se(t)&&(t=t.content,o=r.content),i=t.querySelectorAll("template"),i.length)for(n=o.querySelectorAll("template"),e=n.length;e--;)n[e].parentNode.replaceChild(ue(i[e]),n[e])}if(Qr)if("TEXTAREA"===t.tagName)r.value=t.value;else if(i=t.querySelectorAll("textarea"),i.length)for(n=r.querySelectorAll("textarea"),e=n.length;e--;)n[e].value=i[e].value;return r}function ce(t,e,i){var n,r;return bt(t)?(ft(t),e?ue(t):t):("string"==typeof t?i||"#"!==t.charAt(0)?r=ae(t,i):(r=Yr.get(t),r||(n=document.getElementById(t.slice(1)),n&&(r=he(n),Yr.put(t,r)))):t.nodeType&&(r=he(t)),r&&e?ue(r):r)}function le(t,e,i,n,r,o){this.children=[],this.childFrags=[],this.vm=e,this.scope=r,this.inserted=!1,this.parentFrag=o,o&&o.childFrags.push(this),this.unlink=t(e,i,n,r,this);var s=this.single=1===i.childNodes.length&&!i.childNodes[0].__v_anchor;s?(this.node=i.childNodes[0],this.before=pe,this.remove=fe):(this.node=vt("fragment-start"),this.end=vt("fragment-end"),this.frag=i,rt(this.node,i),i.appendChild(this.end),this.before=de,this.remove=ge),this.node.__v_frag=this}function pe(t,e){this.inserted=!0;var i=e!==!1?X:et;i(this.node,t,this.vm),Q(this.node)&&this.callHook(ve)}function fe(){this.inserted=!1;var t=Q(this.node),e=this;this.beforeRemove(),q(this.node,this.vm,function(){t&&e.callHook(me),e.destroy()})}function de(t,e){this.inserted=!0;var i=this.vm,n=e!==!1?X:et;_t(this.node,this.end,function(e){n(e,t,i)}),Q(this.node)&&this.callHook(ve)}function ge(){this.inserted=!1;var t=this,e=Q(this.node);this.beforeRemove(),yt(this.node,this.end,this.vm,this.frag,function(){e&&t.callHook(me),t.destroy()})}function ve(t){!t._isAttached&&Q(t.$el)&&t._callHook("attached")}function me(t){t._isAttached&&!Q(t.$el)&&t._callHook("detached")}function _e(t,e){this.vm=t;var i,n="string"==typeof e;n||gt(e)&&!e.hasAttribute("v-if")?i=ce(e,!0):(i=document.createDocumentFragment(),i.appendChild(e)),this.template=i;var r,o=t.constructor.cid;if(o>0){var s=o+(n?e:wt(e));r=to.get(s),r||(r=Ge(i,t.$options,!0),to.put(s,r))}else r=Ge(i,t.$options,!0);this.linker=r}function ye(t,e,i){var n=t.node.previousSibling;if(n){for(t=n.__v_frag;!(t&&t.forId===i&&t.inserted||n===e);){if(n=n.previousSibling,!n)return;t=n.__v_frag}return t}}function be(t){for(var e=-1,i=new Array(Math.floor(t));++e47&&e<58?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&e<91)?e:Ao[t]});return i=[].concat.apply([],i),function(e){if(i.indexOf(e.keyCode)>-1)return t.call(this,e)}}function Pe(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Te(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ke(t){return function(e){if(e.target===e.currentTarget)return t.call(this,e)}}function Ee(t){if(To[t])return To[t];var e=De(t);return To[t]=To[e]=e,e}function De(t){t=l(t);var e=u(t),i=e.charAt(0).toUpperCase()+e.slice(1);ko||(ko=document.createElement("div"));var n,r=So.length;if("filter"!==e&&e in ko.style)return{kebab:t,camel:e};for(;r--;)if(n=Co[r]+i,n in ko.style)return{kebab:So[r]+t,camel:n}}function Ie(t){var e=[];if(Gi(t))for(var i=0,n=t.length;i=r?i():t[o].call(e,n)}var r=t.length,o=0;t[0].call(e,n)}function Oe(t,e,i){for(var r,o,s,a,h,c,p,f=[],d=i.$options.propsData,g=Object.keys(e),v=g.length;v--;)if(o=g[v],r=e[o]||Wo,"$data"!==o)if(h=u(o),Yo.test(h)){if(p={name:o,path:h,options:r,mode:zo.ONE_WAY,raw:null},s=l(o),null===(a=K(t,s))&&(null!==(a=K(t,s+".sync"))?p.mode=zo.TWO_WAY:null!==(a=K(t,s+".once"))&&(p.mode=zo.ONE_TIME)),null!==a)p.raw=a,c=N(a),a=c.expression,p.filters=c.filters,n(a)&&!c.filters?p.optimizedLiteral=!0:(p.dynamic=!0,p.mode!==zo.TWO_WAY||Vo.test(a)||(p.mode=zo.ONE_WAY,zn("Cannot bind two-way prop with non-settable parent path: "+a,i))),p.parentPath=a,r.twoWay&&p.mode!==zo.TWO_WAY&&zn('Prop "'+o+'" expects a two-way binding type.',i);else if(null!==(a=J(t,s)))p.raw=a;else if(d&&null!==(a=d[o]||d[h]))p.raw=a;else{var m=h.toLowerCase();a=/[A-Z\-]/.test(o)&&(t.getAttribute(m)||t.getAttribute(":"+m)||t.getAttribute("v-bind:"+m)||t.getAttribute(":"+m+".once")||t.getAttribute("v-bind:"+m+".once")||t.getAttribute(":"+m+".sync")||t.getAttribute("v-bind:"+m+".sync")),a?zn("Possible usage error for prop `"+m+"` - did you mean `"+s+"`? HTML is case-insensitive, remember to use kebab-case for props in templates.",i):!r.required||d&&(o in d||h in d)||zn("Missing required prop: "+o,i)}f.push(p)}else zn('Invalid prop key: "'+o+'". Prop keys must be valid identifiers.',i);else zn("Do not use $data as prop.",i);return Re(f)}function Re(t){return function(e,n){e._props={};for(var r,o,u,c,p,f=e.$options.propsData,d=t.length;d--;)if(r=t[d],p=r.raw,o=r.path,u=r.options,e._props[o]=r,f&&i(f,o)&&Me(e,r,f[o]),null===p)Me(e,r,void 0);else if(r.dynamic)r.mode===zo.ONE_TIME?(c=(n||e._context||e).$get(r.parentPath),Me(e,r,c)):e._context?e._bindDir({name:"prop",def:qo,prop:r},null,null,n):Me(e,r,e.$get(r.parentPath));else if(r.optimizedLiteral){var g=h(p);c=g===p?a(s(p)):g,Me(e,r,c)}else c=u.type===Boolean&&(""===p||p===l(r.name))||p,Me(e,r,c)}}function je(t,e,i,n){var r=e.dynamic&&Kt(e.parentPath),o=i;void 0===o&&(o=Ne(t,e)),o=He(e,o,t);var s=o!==i;Be(e,o,t)||(o=void 0),r&&!s?Lt(function(){n(o)}):n(o)}function Me(t,e,i){je(t,e,i,function(i){Mt(t,e.path,i)})}function Fe(t,e,i){je(t,e,i,function(i){t[e.path]=i})}function Ne(t,e){var n=e.options;if(!i(n,"default"))return n.type!==Boolean&&void 0;var r=n.default;return v(r)&&zn('Invalid default value for prop "'+e.name+'": Props with type Object/Array must use a factory function to return the default value.',t),"function"==typeof r&&n.type!==Function?r.call(t):r}function Be(t,e,i){if(!t.options.required&&(null===t.raw||null==e))return!0;var n=t.options,r=n.type,o=!r,s=[];if(r){Gi(r)||(r=[r]);for(var a=0;ae?-1:t===e?0:1}),e=0,i=a.length;e1,u=e.el.tagName.toLowerCase();"component"===u&&e.name&&(u+=":"+e.name),zn("Attribute"+(h?"s ":" ")+a.join(", ")+(h?" are":" is")+" ignored on component <"+u+"> because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance")}}return e._containerAttrs=e._replacerAttrs=null,function(t,e,i){var o,s=t._context;s&&n&&(o=Ze(function(){n(s,e,null,i)},s));var a=Ze(function(){r&&r(t,e)},t);return Je(t,a,s,o)}}function ii(t,e){var i=t.nodeType;return 1!==i||yi(t)?3===i&&t.data.trim()?ri(t,e):null:ni(t,e)}function ni(t,e){if("TEXTAREA"===t.tagName){if(null!==J(t,"v-pre"))return fi;var i=U(t.value);i&&(t.setAttribute(":value",z(i)),t.value="")}var n,r=t.hasAttributes(),o=r&&d(t.attributes);return r&&(n=pi(t,o,e)),n||(n=ci(t,e)),n||(n=li(t,e)),!n&&r&&(n=gi(o,e)),n}function ri(t,e){if(t._skip)return oi;var i=U(t.wholeText);if(!i)return null;for(var n=t.nextSibling;n&&3===n.nodeType;)n._skip=!0,n=n.nextSibling;for(var r,o,s=document.createDocumentFragment(),a=0,h=i.length;af.priority)&&(f=p,c=r.name,a=vi(r.name),s=r.value,u=h[1],l=h[2]));return f?di(t,u,s,i,f,c,l,a):void 0}function fi(){}function di(t,e,i,n,r,o,s,a){var h=N(i),u={name:e,arg:s,expression:h.expression,filters:h.filters,raw:i,attr:o,modifiers:a,def:r};"for"!==e&&"router-view"!==e||(u.ref=mt(t));var c=function(t,e,i,n,r){u.ref&&Mt((n||t).$refs,u.ref,null),t._bindDir(u,e,i,n,r)};return c.terminal=!0,c}function gi(t,e){function i(t,e,i){var n=i&&_i(i),r=!n&&N(o);g.push({name:t,attr:s,raw:a,def:e,arg:u,modifiers:c,expression:r&&r.expression,filters:r&&r.filters,interp:i,hasOneTime:n})}for(var n,r,o,s,a,h,u,c,l,p,f,d=t.length,g=[];d--;)if(n=t[d],r=s=n.name,o=a=n.value,p=U(o),u=null,c=vi(r),r=r.replace(us,""),p)o=z(p),u=r,i("bind",Bo.bind,p),"class"===r&&Array.prototype.some.call(t,function(t){return":class"===t.name||"v-bind:class"===t.name})&&zn('class="'+a+'": Do not mix mustache interpolation and v-bind for "class" on the same element. Use one or the other.',e);else if(cs.test(r))c.literal=!ss.test(r),i("transition",os.transition);else if(as.test(r))u=r.replace(as,""),i("on",Bo.on);else if(ss.test(r))h=r.replace(ss,""),"style"===h||"class"===h?i(h,os[h]):(u=h,i("bind",Bo.bind));else if(f=r.match(hs)){if(h=f[1],u=f[2],"else"===h)continue;l=Dt(e,"directives",h,!0),l&&i(h,l)}if(g.length)return mi(g)}function vi(t){var e=Object.create(null),i=t.match(us);if(i)for(var n=i.length;n--;)e[i[n].slice(1)]=!0;return e}function mi(t){return function(e,i,n,r,o){for(var s=t.length;s--;)e._bindDir(t[s],i,n,r,o)}}function _i(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function yi(t){return"SCRIPT"===t.tagName&&(!t.hasAttribute("type")||"text/javascript"===t.getAttribute("type"))}function bi(t,e){return e&&(e._containerAttrs=Ai(t)),gt(t)&&(t=ce(t)),e&&(e._asComponent&&!e.template&&(e.template=""),e.template&&(e._content=pt(t),t=wi(t,e))),bt(t)&&(rt(vt("v-start",!0),t),t.appendChild(vt("v-end",!0))),t}function wi(t,e){var i=e.template,n=ce(i,!0);if(n){var r=n.firstChild;if(!r)return n;var o=r.tagName&&r.tagName.toLowerCase();return e.replace?(t===document.body&&zn("You are mounting an instance with a template to . This will replace entirely. You should probably use `replace: false` here."),n.childNodes.length>1||1!==r.nodeType||"component"===o||Dt(e,"components",o)||tt(r,"is")||Dt(e,"elementDirectives",o)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?n:(e._replacerAttrs=Ai(r),xi(t,r),r)):(t.appendChild(n),t)}zn("Invalid template option: "+i)}function Ai(t){if(1===t.nodeType&&t.hasAttributes())return d(t.attributes)}function xi(t,e){for(var i,n,r=t.attributes,o=r.length;o--;)i=r[o].name,n=r[o].value,e.hasAttribute(i)||fs.test(i)?"class"===i&&!U(n)&&(n=n.trim())&&n.split(/\s+/).forEach(function(t){ct(e,t)}):e.setAttribute(i,n)}function Si(t,e){if(e){for(var i,n,r=t._slotContents=Object.create(null),o=0,s=e.children.length;o1?d(i):i;var r=e&&i.some(function(t){return t._fromParent});r&&(n=!1);for(var o=d(arguments,1),s=0,a=i.length;se?o:-o}var i=null,n=void 0;t=bs(t);var r=d(arguments,1),o=r[r.length-1];"number"==typeof o?(o=o<0?-1:1,r=r.length>1?r.slice(0,-1):r):o=1;var s=r[0];return s?("function"==typeof s?i=function(t,e){return s(t,e)*o}:(n=Array.prototype.concat.apply([],r),i=function(t,r,o){return o=o||0,o>=n.length-1?e(t,r,o):e(t,r,o)||i(t,r,o+1)}),t.slice().sort(i)):t}function Bi(t,e){var i;if(m(t)){var n=Object.keys(t);for(i=n.length;i--;)if(Bi(t[n[i]],e))return!0}else if(Gi(t)){for(i=t.length;i--;)if(Bi(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function Hi(i){function n(t){return new Function("return function "+p(t)+" (options) { this._init(options) }")()}i.options={directives:Bo,elementDirectives:ys,filters:As,transitions:{},components:{},partials:{},replace:!0},i.util=nr,i.config=Un,i.set=t,i.delete=e,i.nextTick=ln,i.compiler=ds,i.FragmentFactory=_e,i.internalDirectives=os,i.parsers={path:wr,text:Nn,template:Jr,directive:$n,expression:Rr},i.cid=0;var r=1;i.extend=function(t){t=t||{};var e=this,i=0===e.cid;if(i&&t._Ctor)return t._Ctor;var o=t.name||e.options.name;/^[a-zA-Z][\w-]*$/.test(o)||(zn('Invalid component name: "'+o+'". Component names can only contain alphanumeric characaters and the hyphen.'),o=null);var s=n(o||"VueComponent");return s.prototype=Object.create(e.prototype),s.prototype.constructor=s,s.cid=r++,s.options=Et(e.options,t),s.super=e,s.extend=e.extend,Un._assetTypes.forEach(function(t){s[t]=e[t]}),o&&(s.options.components[o]=s),i&&(t._Ctor=s),s},i.use=function(t){if(!t.installed){var e=d(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},i.mixin=function(t){i.options=Et(i.options,t)},Un._assetTypes.forEach(function(t){i[t]=function(e,n){return n?("component"===t&&(Xn.test(e)||qn.test(e))&&zn("Do not use built-in or reserved HTML elements as component id: "+e),"component"===t&&m(n)&&(n.name||(n.name=e),n=i.extend(n)),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}),g(i.transition,Yn)}var Ui=Object.prototype.hasOwnProperty,zi=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Wi=/-(\w)/g,Yi=/([^-])([A-Z])/g,Vi=/(?:^|[-_\/])(\w)/g,Xi=Object.prototype.toString,qi="[object Object]",Gi=Array.isArray,Zi="__proto__"in{},Qi="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Ji=Qi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ki=Qi&&window.navigator.userAgent.toLowerCase(),tn=Ki&&Ki.indexOf("trident")>0,en=Ki&&Ki.indexOf("msie 9.0")>0,nn=Ki&&Ki.indexOf("android")>0,rn=Ki&&/iphone|ipad|ipod|ios/.test(Ki),on=void 0,sn=void 0,an=void 0,hn=void 0;if(Qi&&!en){var un=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,cn=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;on=un?"WebkitTransition":"transition",sn=un?"webkitTransitionEnd":"transitionend",an=cn?"WebkitAnimation":"animation",hn=cn?"webkitAnimationEnd":"animationend"}var ln=function(){function t(){i=!1;var t=e.slice(0);e.length=0;for(var n=0;n)":""}}();var Yn=Object.freeze({appendWithTransition:V,beforeWithTransition:X,removeWithTransition:q,applyTransition:G}),Vn=/^v-ref:/,Xn=/^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i,qn=/^(slot|partial|component)$/i,Gn=void 0;Gn=function(t,e){return e.indexOf("-")>-1?t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:/HTMLUnknownElement/.test(t.toString())&&!/^(data|time|rtc|rb|details|dialog|summary)$/.test(e)};var Zn=Un.optionMergeStrategies=Object.create(null);Zn.data=function(t,e,i){return i?t||e?function(){var n="function"==typeof e?e.call(i):e,r="function"==typeof t?t.call(i):void 0;return n?St(n,r):r}:void 0:e?"function"!=typeof e?(zn('The "data" option should be a function that returns a per-instance value in component definitions.',i),t):t?function(){return St(e.call(this),t.call(this))}:e:t},Zn.el=function(t,e,i){if(!i&&e&&"function"!=typeof e)return void zn('The "el" option should be a function that returns a per-instance value in component definitions.',i);var n=e||t;return i&&"function"==typeof n?n.call(i):n},Zn.init=Zn.created=Zn.ready=Zn.attached=Zn.detached=Zn.beforeCompile=Zn.compiled=Zn.beforeDestroy=Zn.destroyed=Zn.activate=function(t,e){return e?t?t.concat(e):Gi(e)?e:[e]:t},Un._assetTypes.forEach(function(t){Zn[t+"s"]=Ct}),Zn.watch=Zn.events=function(t,e){if(!e)return t;if(!t)return e;var i={};g(i,t);for(var n in e){var r=i[n],o=e[n];r&&!Gi(r)&&(r=[r]),i[n]=r?r.concat(o):[o]}return i},Zn.props=Zn.methods=Zn.computed=function(t,e){if(!e)return t;if(!t)return e;var i=Object.create(null);return g(i,t),g(i,e),i};var Qn=function(t,e){return void 0===e?t:e},Jn=0;It.target=null,It.prototype.addSub=function(t){this.subs.push(t)},It.prototype.removeSub=function(t){this.subs.$remove(t)},It.prototype.depend=function(){It.target.addDep(this)},It.prototype.notify=function(){for(var t=d(this.subs),e=0,i=t.length;e=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),_(Kn,"$remove",function(t){if(this.length){var e=b(this,t);return e>-1?this.splice(e,1):void 0}});var er=Object.getOwnPropertyNames(tr),ir=!0;$t.prototype.walk=function(t){for(var e=Object.keys(t),i=0,n=e.length;i",""],tr:[2,"","
"],col:[2,"","
"]};Vr.td=Vr.th=[3,"","
"],Vr.option=Vr.optgroup=[1,'"],Vr.thead=Vr.tbody=Vr.colgroup=Vr.caption=Vr.tfoot=[1,"","
"],Vr.g=Vr.defs=Vr.symbol=Vr.use=Vr.image=Vr.text=Vr.circle=Vr.ellipse=Vr.line=Vr.path=Vr.polygon=Vr.polyline=Vr.rect=[1,'',""];var Xr=/<([\w:-]+)/,qr=/&#?\w+?;/,Gr=/