diff --git a/dist/pagenote.css b/dist/pagenote.css index ed2f991c..c9018862 100644 --- a/dist/pagenote.css +++ b/dist/pagenote.css @@ -1 +1 @@ -pagenote-camera .pagenote-camera-container{z-index:9999;position:fixed;top:200px;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:5px;box-shadow:0 30px 50px -20px rgba(0,0,0,.7);-webkit-animation:angle 5s;animation:angle 5s}pagenote-camera .camera-bottom,pagenote-camera .camera-mid,pagenote-camera .camera-top{width:360px}pagenote-camera .camera-top{height:60px;background:-webkit-linear-gradient(left,#e2e2e2,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);background:linear-gradient(90deg,#e2e2e2 0,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);border:1px solid #dcdcdc;border-top-left-radius:5px}pagenote-camera .camera-top:before{display:block;content:"";position:absolute;top:-20px;right:0;width:210px;height:20px;background:-webkit-linear-gradient(left,#f5f5f5,#f5f5f5 174px,#e2e2e2);background:linear-gradient(90deg,#f5f5f5 0,#f5f5f5 174px,#e2e2e2);border-top-left-radius:5px;border-top-right-radius:5px;border:1px solid #dcdcdc;border-bottom:none;box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-top .zoom{position:absolute;top:-15px;left:30px;width:42px;height:9px;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-top .zoom,pagenote-camera .camera-top .zoom:before{border:1px solid #a3a3a3;border-top-left-radius:3px;border-top-right-radius:3px}pagenote-camera .camera-top .zoom:before{top:-6px;width:20px;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 50%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 50%,#b0b0b0)}pagenote-camera .camera-top .zoom:after,pagenote-camera .camera-top .zoom:before{display:block;content:"";position:relative;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);height:4px}pagenote-camera .camera-top .zoom:after{top:3px;width:46px;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);border:1px solid #a3a3a3;border-bottom:none;border-top-left-radius:3px;border-top-right-radius:3px}pagenote-camera .camera-top .mode-changer{top:-20px;left:82px;width:60px;height:16px;border:1px solid #a3a3a3;border-radius:3px;box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-top .mode-changer,pagenote-camera .camera-top .mode-changer:after{position:absolute;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0)}pagenote-camera .camera-top .mode-changer:after{display:block;content:"";top:16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:50px;height:2px;border:1px solid #a3a3a3;border-bottom:none}pagenote-camera .camera-top .sides{width:100%}pagenote-camera .camera-top .sides:after,pagenote-camera .camera-top .sides:before{display:block;content:"";position:absolute;top:24px;width:8px;height:30px;background:-webkit-linear-gradient(top,#828181,#696767 10%,#4f4d4d 50%,#403e3f);background:linear-gradient(180deg,#828181 0,#696767 10%,#4f4d4d 50%,#403e3f);border:1px solid #3e3c3d;border-radius:2px;box-shadow:0 3px 5px -1px rgba(0,0,0,.5)}pagenote-camera .camera-top .sides:before{left:-4px;border-top-left-radius:3px;border-bottom-left-radius:3px}pagenote-camera .camera-top .sides:after{right:-4px;border-top-right-radius:3px;border-bottom-right-radius:3px}pagenote-camera .camera-top .range-finder{position:absolute;top:10px;left:105px;width:30px;height:20px;background:#3e3c3d;border-radius:3px;box-shadow:inset 0 0 5px 3px #333132}pagenote-camera .camera-top .range-finder:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:12px;height:12px;background:#797878;border-radius:100%}pagenote-camera .camera-top .focus{position:absolute;top:-14px;left:156px;width:15px;height:15px;background:#3f3d3e;border-radius:100%;box-shadow:inset 0 0 4px 3px #2d2b2b,inset 0 4px 5px 0 #f5f5f5,inset 0 -3px 4px -2px #a3a2a2}pagenote-camera .camera-top .red{position:absolute;top:5px;left:165px;width:30px;height:30px;background:#dc2839;border-radius:100%}pagenote-camera .camera-top .view-finder{position:absolute;left:210px;width:48px;height:30px;background:-webkit-radial-gradient(center ellipse,#828181 0,#403e3f 85%,#403e3f 100%);background:radial-gradient(ellipse at center,#828181 0,#403e3f 85%,#403e3f 100%);border:3px solid #312f2f;border-radius:4px;box-shadow:inset 0 8px 8px -8px #fdfdfd}pagenote-camera .camera-top .flash{position:absolute;top:-6px;right:20px;width:58px;height:46px;background:-webkit-radial-gradient(center ellipse,#828181 0,#403e3f 70%,#403e3f 100%);background:radial-gradient(ellipse at center,#828181 0,#403e3f 70%,#403e3f 100%);border:2px solid #312f2f;border-radius:3px;box-shadow:inset 0 8px 8px -8px #fdfdfd}pagenote-camera .camera-top .flash:after,pagenote-camera .camera-top .flash:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}pagenote-camera .camera-top .flash:before{width:90%;height:70%;background:-webkit-radial-gradient(center ellipse,#696767 0,#1e1e1e 50%,#1e1e1e 100%);background:radial-gradient(ellipse at center,#696767 0,#1e1e1e 50%,#1e1e1e 100%)}pagenote-camera .camera-top .flash:after{width:16px;height:14px;background:#797979;border-top-left-radius:8px 2px;border-top-right-radius:8px 2px;border-bottom-left-radius:8px 2px;border-bottom-right-radius:8px 2px}pagenote-camera .camera-top .flash .light,pagenote-camera .camera-top .flash .light.capturing{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:20px;height:20px;background:-webkit-radial-gradient(center ellipse,#fff 0,hsla(0,0%,100%,0) 100%);background:radial-gradient(ellipse at center,#fff 0,hsla(0,0%,100%,0) 100%);border-radius:100%;z-index:2;-webkit-animation:flash 1s backwards;animation:flash 1s backwards}pagenote-camera .camera-mid{position:relative;height:130px;background:-webkit-linear-gradient(left,#e4e4e4,#fafafa 10%,#fafafa 90%,#e4e4e4);background:linear-gradient(90deg,#e4e4e4 0,#fafafa 10%,#fafafa 90%,#e4e4e4);border:1px solid #dcdcdc;border-top:none;border-bottom:none;box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-mid .tip{font-size:12px;padding:24px;line-height:2em;opacity:0;animation:fade-in .8s ease-in forwards;animation-delay:.9s}pagenote-camera .camera-mid .tip button{font-size:12px;padding:4px 12px;margin-right:4px;border:1px solid #999;border-radius:4px}pagenote-camera .camera-mid .lens,pagenote-camera .camera-mid .sensor{animation:scale-out .8s ease-out forwards;animation-delay:.9s}pagenote-camera .camera-mid .sensor{position:absolute;top:40px;left:105px;width:30px;height:30px;background:#545252;border:2px solid #545252;border-radius:100%;box-shadow:inset 0 12px 12px -10px #fdfdfd,0 2px 5px 1px rgba(0,0,0,.3)}pagenote-camera .camera-mid .sensor:after,pagenote-camera .camera-mid .sensor:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}pagenote-camera .camera-mid .sensor:before{width:20px;height:20px;background:-webkit-linear-gradient(top,#e9e9e9,#bdbdbd);background:linear-gradient(180deg,#e9e9e9 0,#bdbdbd);border-radius:100%}pagenote-camera .camera-mid .sensor:after{width:12px;height:12px;background:#fafafa;border-radius:100%;box-shadow:0 2px 3px 0 #747474}pagenote-camera .camera-mid .lens{position:absolute;top:-20px;left:130px;width:155px;height:155px;background:-webkit-radial-gradient(center ellipse,#000 0,#000 15%,#272525 30%,#403e3f 0,#403e3f 31%,#403e3f 40%,#e9ebec 41%,#e9ebec 44%,#b0b1b2 48%,#e8e9ea 50%,#e8e9ea 60%,#f7f8f8 0,#787979 65%,#fff 66%,#fff 100%);background:radial-gradient(ellipse at center,#000 0,#000 15%,#272525 30%,#403e3f 0,#403e3f 31%,#403e3f 40%,#e9ebec 41%,#e9ebec 44%,#b0b1b2 48%,#e8e9ea 50%,#e8e9ea 60%,#f7f8f8 0,#787979 65%,#fff 66%,#fff 100%);border:1px solid #b6b7b8;border-radius:100%;box-sizing:border-box;box-shadow:0 7px 15px -2px rgba(0,0,0,.4),inset 0 -2px 15px -2px rgba(0,0,0,.2),inset 0 7px 15px -2px #fff}pagenote-camera .camera-mid .lens:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:25px;height:25px;background:rgba(0,0,0,.7);border-radius:100%;box-shadow:inset 0 5px 3px -2px hsla(0,0%,100%,.5),inset 0 -5px 20px -8px hsla(0,0%,100%,.5)}pagenote-camera .camera-bottom{height:16px;background:-webkit-linear-gradient(left,#e2e2e2,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);background:linear-gradient(90deg,#e2e2e2 0,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);border:1px solid #dcdcdc;border-bottom:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;box-shadow:inset 0 15px 15px -15px #fdfdfd,inset 0 -12px 12px -10px #797979}pagenote-camera .camera-picture{position:absolute;width:100%;height:100%;opacity:0;z-index:-1;animation:picture-in .9s ease-in forwards;animation-delay:.5s}pagenote-camera .camera-picture img{max-width:100%;max-height:100%;box-shadow:0 0 2px 1px #484848}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0;display:none}}@keyframes scale-out{0%{transform:scale(1);opacity:1}to{transform:scale(0);opacity:0}}@keyframes picture-in{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0)}}@keyframes flash{0%{width:0;height:0}20%{width:200px;height:200px}25%{width:0;height:0}45%{width:200px;height:200px}50%{width:0;height:0}to{width:0;height:0}}@keyframes angle{0%{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0deg);box-shadow:0 30px 50px -20px rgba(0,0,0,.7)}25%{-webkit-transform:translate(-50%,-50%) rotate(2deg);transform:translate(-50%,-50%) rotate(2deg);box-shadow:10px 30px 50px -20px rgba(0,0,0,.7)}75%{-webkit-transform:translate(-50%,-50%) rotate(-2deg);transform:translate(-50%,-50%) rotate(-2deg);box-shadow:-10px 30px 50px -20px rgba(0,0,0,.7)}to{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0deg);box-shadow:0 30px 50px -20px rgba(0,0,0,.7)}}#bp_container{z-index:99999999!important}pagenote-notification{display:inline-block;position:fixed;left:0;top:0;z-index:99999;font-size:12px;padding:2px 4px;border-radius:2px;background:#ffd581;color:#000}pagenote-notification.success{background:#ffd581}pagenote-notification.error{background:#ff7b82}pagenote-notification.fade{animation:notification 3s ease-in-out forwards}@keyframes notification{0%{transform:translateY(0);opacity:1}80%{transform:translateY(-16px);opacity:1}to{transform:translateY(-20px);opacity:0}}@media screen and (max-width:720px){.l5z .c3X{transform:translate(0) scale(.59)!important;opacity:1}._1FS{width:40px}}._3Nx{display:block;font-size:12px;left:0;top:0;width:100%;height:20px;line-height:20px;overflow:hidden;text-align:left;cursor:pointer;border-left:4px solid var(--color);padding:0 6px;box-sizing:border-box;background-color:#fff;margin-bottom:5px;text-overflow:ellipsis;color:#333;transition:all .3s}._3Nx:last-child{margin-bottom:0}._3Nx._3kC,._3Nx:hover{max-height:5em;z-index:1}._3Nx:hover{user-select:auto;z-index:2!important}._3Nx.vRo,._3Nx:hover{background-color:#fbfcff}._3Nx.vRo{z-index:1;width:calc(100% + 14px);height:auto;max-height:5em;transform:translateX(-14px);border-radius:5px 0 0 5px;border-left:8px solid var(--color)}._1fF{z-index:9999}._1fF:hover{z-index:99999}._1fF._2N_ ._1Zj{cursor:move;transform:scale(2);animation:none;box-shadow:0 0 0 1px #fff}._1fF._2N_ ._1Zj:after,._1fF._2N_ ._1Zj:before{display:none}._1fF._2N_ ._13E:hover ._2Je{opacity:1;transform:scale(2) translate(16px)}._1fF._2N_ ._13E:hover ._1gB{opacity:1;transform:scale(2) translate(-16px)}._1fF ._13E:hover ._1Zj{transform:scale(2)}._1fF ._1gB,._1fF ._2Je{position:absolute;opacity:0;top:6px;left:-7px;width:13px;height:13px;cursor:pointer;border-radius:2px;transition:all .5s}._1fF ._1gB svg,._1fF ._2Je svg{vertical-align:super;box-shadow:1px 1px 3px 0 #d0cfc6;border-radius:2px;background:#fff}._1fF ._1Zj{position:absolute;z-index:1;width:13px;height:13px;border:1px solid var(--bg-color);top:6px;left:-7px;border-radius:50%;color:#fff;cursor:pointer;animation:tRz 1.5s linear infinite;animation-direction:alternate;transition:.3s;background-color:var(--bg-color);background-size:cover;background-repeat:no-repeat;background-position:50%}._1fF ._1Zj._2XM{border:1px solid red}._1fF ._1Zj:before{content:"";position:absolute;left:-1px;top:6px;width:9px;height:1px;border-left:3px solid;border-right:3px solid}._1fF ._1Zj:after{content:"";position:absolute;left:6px;top:-1px;width:1px;height:9px;border-top:3px solid;border-bottom:3px solid}._1fF ._1Zj:hover{transform:scale(2);animation:none}._1fF ._1Zj:hover+._1z1{display:block}._1fF ._1z1{display:none;box-sizing:border-box;overflow:hidden;width:0;height:0;min-height:20px;font-size:14px;border-radius:5px;background:radial-gradient(26px 26px at left 13px,transparent 50%,var(--bg-color) 0);box-shadow:0 0 1px 2px #fff;transition:all .2s}._1fF ._1z1._1s7{display:block;width:auto;height:auto}._1fF ._1z1._1s7:focus,._1fF ._1z1._1s7:hover{z-index:99999999;border-radius:0 0 5px 5px}._1fF ._1z1._1s7:focus .eQ7,._1fF ._1z1._1s7:hover .eQ7{opacity:1;border-bottom:1px solid #fff;transform:translateY(-20px)}._1fF ._1z1 ._1zy{display:none;box-sizing:border-box;width:100%;min-width:200px;max-width:280px;padding:2px 14px 2px 20px;border-radius:6px;user-select:none}._1fF ._1z1 ._1zy._16J{display:block}._1fF ._1z1 ._1zy._2G5,._1fF ._1z1 ._1zy:focus{outline:1px solid #eee;user-select:all}._1fF ._1z1 ._1zy:focus+.eQ7{z-index:1;opacity:1;transform:translateY(-20px)}._1fF ._1z1 ._1zy img{max-width:100%;max-height:100%}._2bP{display:none;width:12px;height:12px;position:absolute;top:-14px;left:0;background-color:#189cfd;border-radius:14px}.eQ7{opacity:0;left:0;width:100%;font-size:12px;box-sizing:border-box;padding:0 8px;white-space:nowrap;transition:all .3s;background:var(--bg-color);border-radius:5px 5px 0 0;will-change:transform}._1Qg,.eQ7{position:absolute;top:0;height:20px}._1Qg{display:block;width:20px;right:0;cursor:pointer}._2iJ{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);min-width:200px;font-size:14px;padding:10px;background:#f7f7f7;box-shadow:0 0 9px 1px #676767}._2iJ label{display:inline-block;width:80px}.f4X{right:-7px;top:-7px;color:#000;margin-top:2px;margin-left:3px;width:12px;height:12px;border:1px solid;border-radius:100%}.f4X,.f4X:before{position:absolute;background-color:currentColor}.f4X:before{content:"";width:8px;height:3px;color:#fff;left:2px;top:4px}.oLC{display:none;position:fixed;z-index:99999;font-size:12px;line-height:20px;padding:0 4px;width:20px;box-sizing:border-box;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#f36b5d;border-radius:10px;transition:width .5s}.oLC._2FU{display:block}.oLC.uyU{width:160px;background:#fff;border-radius:4px}@keyframes _3xz{0%{transform:scale(0)}to{transform:scale(1)}}.OTU{z-index:999999;padding:4px;border:none;box-shadow:0 2px 4px rgba(0,0,0,.5);font-weight:600;color:#fff;background-color:#189cfd;border-radius:6px;outline:none;cursor:pointer;transition:all 225ms cubic-bezier(.4,0,.2,1) 0ms}.OTU:hover{background-color:#1976d2}b[data-highlight=y]{cursor:pointer}._3Ds #_-1e{fill:#fff}._3Ds #cGb{display:none}._3Ds._266 #_-1e,._3Ds._266 #cGb{display:block;fill:#ff720f}light[data-highlight]{position:relative;font-size:inherit!important;font-family:inherit!important;background-image:linear-gradient(0deg,#ffde5d 2px,rgba(255,222,93,.84) 0);background-image:linear-gradient(0deg,var(--bgcolor) 2px,var(--bgcolor) 0);background-size:100% 0;border-bottom:2px solid #ffde5d;border-bottom:2px solid var(--bgbottomcolor);background-repeat:no-repeat;background-position:bottom;transition:background-size .5s ease-out;box-sizing:border-box}light[data-highlight]:hover{z-index:1}light[data-highlight][data-active="1"]{-webkit-text-fill-color:var(--color);background-size:100% 2em;animation:light .5s ease-in-out}light[data-highlight][data-active="1"][data-mask="1"]{filter:blur(2px)}light[data-highlight][data-active="1"]:hover{opacity:.85}light[data-highlight]:hover light-actions{display:block}light[data-highlight][data-type=img]{border:1px solid var(--bgcolor)}light[data-highlight] pagenote-tag-edit{display:block;width:100%;height:100%}light[data-highlight] pagenote-tip{display:block;background:#ffe5b0;padding:8px;border:1px solid #999}light-aside{position:absolute;cursor:default;left:0;top:100%;padding-top:4px;font-size:12px;border-radius:6px}light-aside:hover{z-index:9}light-aside aside{content:"";display:block;width:8px;height:8px;background:var(--bgcolor);position:absolute;left:0;top:0;transition:all .3s ease-in-out}light-aside light-actions{cursor:pointer;background:#fff}light-aside light-actions svg{fill:var(--bgcolor)}light-aside .note{position:relative;min-width:150px;max-width:100%;padding:4px;background:var(--bgcolor);box-shadow:2px 2px 2px 0 #ccc;border:1px solid #fff;border-radius:4px}._37b._3fJ{color:#000;position:absolute;margin-left:3px;margin-top:3px;width:12px;height:12px;border-radius:70% 15%;border:1px solid;-webkit-transform:rotate(45deg);transform:rotate(45deg)}._37b._3fJ:before{content:"";position:absolute;left:2px;top:2px;width:6px;height:6px;border-radius:50%;border:1px solid;background-color:currentColor}@keyframes tool-in{0%{opacity:0}1%{display:block}to{opacity:1;transform:translate(0)}}@keyframes light{0%{background-size:100% 2px}to{background-size:100% 2em}}@keyframes _1HC{0%{opacity:.3;transform:scale(.3)}to{transform:scale(1);opacity:1}}@keyframes tRz{0%{box-shadow:0 0 1px 2px #fff}to{box-shadow:0 0 2px 2px rgba(199,198,198,.52)}}@keyframes _1y5{0%{right:auto}to{right:-160px}}@-webkit-keyframes _35h{0%{filter:hue-rotate(0deg)}to{filter:hue-rotate(-1turn)}}@keyframes shine-light{0%{left:100%;top:100%;filter:hue-rotate(0deg)}10%{width:8px;height:8px}45%{left:0;top:100%}50%{left:0;top:0}90%{left:100%;top:0;width:8px;height:8px}to{left:100%;top:100%;filter:hue-rotate(-1turn)}}.rc-popover{position:absolute;z-index:1070;display:block;visibility:visible;font-size:12px;line-height:1.5;opacity:.9}.rc-popover-hidden{display:none}.rc-popover-placement-top,.rc-popover-placement-topLeft,.rc-popover-placement-topRight{padding:5px 0 9px}.rc-popover-placement-right,.rc-popover-placement-rightBottom,.rc-popover-placement-rightTop{padding:0 5px 0 9px}.rc-popover-placement-bottom,.rc-popover-placement-bottomLeft,.rc-popover-placement-bottomRight{padding:9px 0 5px}.rc-popover-placement-left,.rc-popover-placement-leftBottom,.rc-popover-placement-leftTop{padding:0 9px 0 5px}.rc-popover-inner{padding:8px 10px;color:#fff;text-align:left;text-decoration:none;background-color:#fff;border-radius:6px;box-shadow:0 0 4px rgba(0,0,0,.17);min-height:14px}.rc-popover-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-popover-placement-top .rc-popover-arrow,.rc-popover-placement-topLeft .rc-popover-arrow,.rc-popover-placement-topRight .rc-popover-arrow{bottom:4px;margin-left:-5px;border-width:5px 5px 0;border-top-color:#fff}.rc-popover-placement-top .rc-popover-arrow{left:50%}.rc-popover-placement-topLeft .rc-popover-arrow{left:15%}.rc-popover-placement-topRight .rc-popover-arrow{right:15%}.rc-popover-placement-right .rc-popover-arrow,.rc-popover-placement-rightBottom .rc-popover-arrow,.rc-popover-placement-rightTop .rc-popover-arrow{left:4px;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#fff}.rc-popover-placement-right .rc-popover-arrow{top:50%}.rc-popover-placement-rightTop .rc-popover-arrow{top:15%;margin-top:0}.rc-popover-placement-rightBottom .rc-popover-arrow{bottom:15%}.rc-popover-placement-left .rc-popover-arrow,.rc-popover-placement-leftBottom .rc-popover-arrow,.rc-popover-placement-leftTop .rc-popover-arrow{right:4px;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#fff}.rc-popover-placement-left .rc-popover-arrow{top:50%}.rc-popover-placement-leftTop .rc-popover-arrow{top:15%;margin-top:0}.rc-popover-placement-leftBottom .rc-popover-arrow{bottom:15%}.rc-popover-placement-bottom .rc-popover-arrow,.rc-popover-placement-bottomLeft .rc-popover-arrow,.rc-popover-placement-bottomRight .rc-popover-arrow{top:4px;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#fff}.rc-popover-placement-bottom .rc-popover-arrow{left:50%}.rc-popover-placement-bottomLeft .rc-popover-arrow{left:15%}.rc-popover-placement-bottomRight .rc-popover-arrow{right:15%}.category-title{cursor:pointer;line-height:1em}.category-title svg{vertical-align:text-bottom}.category-title .category-name{display:inline-block;max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-right:4px;margin-bottom:4px;font-size:12px;border-radius:4px;background:#f3f3f3;padding:0 12px;color:#666;border:1px solid #e6e6e6}.droplabel .select-menu-header{padding:8px 10px;line-height:16px;background:#fff;border-bottom:1px solid #e1e4e8}.droplabel .select-menu-header .select-menu-title{font-weight:600;color:#24292e}.droplabel .select-menu-header .close-button{position:absolute;right:4px;top:4px;cursor:pointer}.droplabel .select-menu-text-filter{position:relative;padding:10px;border-bottom:1px solid #dfe2e5}.droplabel .select-menu-text-filter input{display:block;width:100%;max-width:100%;padding:5px 12px;border:1px solid #dfe2e5;border-radius:6px;box-sizing:border-box;line-height:1em;font-size:12px}.droplabel .select-menu-text-filter .new-button{position:absolute;right:0;top:14px;right:20px;color:#fff;padding:0 4px;background:#e91e63;border-radius:2px;border:1px solid #ffeb3b;z-index:1;cursor:pointer}.droplabel .select-menu-list{position:relative;max-height:400px;overflow:auto;color:#586069}.droplabel .select-menu-list .select-menu-item{display:block;padding:8px 8px 8px 30px;overflow:hidden;color:inherit;cursor:pointer;border-bottom:1px solid #eaecef}.droplabel .select-menu-list .select-menu-item:hover{background-color:#f4f4f4}.droplabel .select-menu-list .select-menu-item .select-menu-item-icon{vertical-align:middle;float:left;margin-left:-20px}pagenote-block,pagenote-description,pagenote-dot,pagenote-infos,pagenote-light,pagenote-light-anotation,pagenote-light-ref,pagenote-lights,pagenote-line,pagenote-progress,pagenote-progress-percent,pagenote-snapshots{display:block;box-sizing:border-box}pagenote-action-group{display:block}pagenote-icon{cursor:pointer;display:inline-block;border-radius:50%}pagenote-icon:hover{background:#fff;box-shadow:0 1px 3px 1px rgba(60,64,67,.15),0 1px 2px 0 rgba(60,64,67,.3)}pagenote-aside{position:fixed;right:2px;z-index:99991;top:0;width:200px;user-select:none;background:#fff;transition:width .2s ease-out;border-radius:4px;border:1px solid #e3e3e3;line-height:1.414em}pagenote-aside[data-status=expand]{border:none;width:18px;height:100%;background:transparent}pagenote-aside[data-status=expand] pagenote-actions{background:none;padding:0}pagenote-aside[data-status=expand] pagenote-action-group,pagenote-aside[data-status=expand] pagenote-description,pagenote-aside[data-status=expand] pagenote-infos{display:none}pagenote-aside[data-status=expand] pagenote-action[data-action=toggle]{top:34px;right:auto;margin:0}pagenote-aside[data-status=expand] pagenote-lights{left:-1px;overflow:visible}pagenote-actions{box-sizing:border-box;position:relative;display:flex;padding:4px;color:#fff;font-size:13px;font-weight:400;white-space:nowrap;text-align:left;text-overflow:ellipsis;-webkit-transition:all .25s ease-out;transition:all .25s ease-out}pagenote-actions pagenote-action{display:inline-block;cursor:pointer;width:18px;height:18px;margin-right:5px;background-size:contain}pagenote-actions pagenote-action[data-action=toggle]{position:absolute;right:0}pagenote-description{margin:6px 0;padding:0 6px;color:#8f959e;font-size:12px;line-height:1.414em;max-height:2.828em;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #f3f3f3}pagenote-lights{max-height:78vh;overflow:auto;padding-left:6px;left:-6px;position:relative}pagenote-lights pagenote-line-container{display:block;font-size:12px;left:0;top:0;width:100%;line-height:20px;text-align:left;cursor:pointer;box-sizing:border-box;background-color:rgba(0,0,0,.02);border-radius:4px;margin:8px 0;text-overflow:ellipsis;transition:all .3s ease-in-out}pagenote-lights pagenote-line-container:hover{background-color:#fbfcff;user-select:auto;z-index:2!important}pagenote-lights pagenote-dot-container{position:absolute}pagenote-lights pagenote-dot-container:hover{z-index:9999}pagenote-lights pagenote-dot-container:hover pagenote-light-ref-dot{display:block}pagenote-lights pagenote-dot-container[data-active="1"] pagenote-dot{transform:scale(1.5);background:var(--color)}pagenote-lights pagenote-dot-container pagenote-light-ref-dot{display:none;position:absolute;width:200px;top:-10px;right:-4px;font-size:12px;background:#fff;box-shadow:0 10px 20px 0 rgba(168,182,191,.6);padding:6px 12px 6px 6px;border-radius:4px;z-index:1}pagenote-lights pagenote-dot-container pagenote-dot{position:relative;display:block;width:8px;height:8px;border-radius:50%;transition:all .3s ease-in-out;cursor:pointer;z-index:2;background:#fff;border:1px solid var(--color)}pagenote-infos{padding:6px}pagenote-snapshots{margin:6px 0}pagenote-snapshots pagenote-snapshot{display:inline-block;position:relative}pagenote-snapshots pagenote-snapshot:hover pagenote-icon{display:block}pagenote-snapshots pagenote-snapshot pagenote-icon{position:absolute;top:28px;left:7px;display:none}pagenote-snapshots pagenote-snapshot img{width:30px;height:30px;cursor:zoom-in;border-radius:4px}pagenote-toggle-all{display:inline-block}pagenote-toggle-all svg{border:1px solid #b9b9b9;border-radius:50%}pagenote-toggle-all[data-run="1"]{animation:_3ih 1s linear infinite forwards}@keyframes _3ih{0%{transform:rotate(0)}to{transform:rotate(1turn)}}pagenote-ref-anotation{position:relative;display:block;color:#1f2329}pagenote-ref-anotation pagenote-light-ref{position:relative;padding:0 6px;line-height:1.4em;max-height:2.8em}pagenote-ref-anotation pagenote-light-ref:before{content:"";width:1px;height:100%;background:var(--fill-color);display:block;position:absolute;left:-3px;border:1px solid #bbbfc4}pagenote-ref-anotation pagenote-light-ref pagenote-tag{background:#00bdb8}pagenote-ref-anotation pagenote-light-anotation{margin-top:4px;padding:0 6px;color:#646a73;line-height:1.4em;max-height:2.8em;overflow:hidden}pagenote-ref-anotation pagenote-light-actions{position:absolute;right:0;top:0;background:#fff;display:none}pagenote-ref-anotation:hover pagenote-light-actions{display:block}pagenote-ref-anotation[data-insign="1"] pagenote-light-ref{font-weight:500}pagenote-ref-anotation[data-insign="1"] pagenote-light-ref:before{border-color:var(--color)}pagenote-progress{width:100%;position:absolute;background:#f3f3f3;height:1px}pagenote-progress pagenote-progress-percent{border-radius:6px;transition:width .1s ease-in-out;position:absolute;top:0;left:-1px;background:#2196f3;width:0;height:1px}pagenote-progress pagenote-progress-percent svg{cursor:pointer;fill:#8f8f8f;padding:2px;border-radius:4px}pagenote-scroll-sign{position:absolute;left:0;display:block;width:16px;height:1px;border:1px solid #fff;background:#888;z-index:3}.rc-tooltip{position:absolute;z-index:1070;display:block;visibility:visible;font-size:12px;line-height:1.5;opacity:.9}.rc-tooltip-hidden{display:none}.rc-tooltip-placement-top,.rc-tooltip-placement-topLeft,.rc-tooltip-placement-topRight{padding:5px 0 9px}.rc-tooltip-placement-right,.rc-tooltip-placement-rightBottom,.rc-tooltip-placement-rightTop{padding:0 5px 0 9px}.rc-tooltip-placement-bottom,.rc-tooltip-placement-bottomLeft,.rc-tooltip-placement-bottomRight{padding:9px 0 5px}.rc-tooltip-placement-left,.rc-tooltip-placement-leftBottom,.rc-tooltip-placement-leftTop{padding:0 9px 0 5px}.rc-tooltip-inner{padding:8px 10px;color:#fff;text-align:left;text-decoration:none;background-color:#373737;border-radius:6px;box-shadow:0 0 4px rgba(0,0,0,.17);min-height:14px}.rc-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-tooltip-placement-top .rc-tooltip-arrow,.rc-tooltip-placement-topLeft .rc-tooltip-arrow,.rc-tooltip-placement-topRight .rc-tooltip-arrow{bottom:4px;margin-left:-5px;border-width:5px 5px 0;border-top-color:#373737}.rc-tooltip-placement-top .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-topLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-topRight .rc-tooltip-arrow{right:15%}.rc-tooltip-placement-right .rc-tooltip-arrow,.rc-tooltip-placement-rightBottom .rc-tooltip-arrow,.rc-tooltip-placement-rightTop .rc-tooltip-arrow{left:4px;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#373737}.rc-tooltip-placement-right .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-rightTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-rightBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-left .rc-tooltip-arrow,.rc-tooltip-placement-leftBottom .rc-tooltip-arrow,.rc-tooltip-placement-leftTop .rc-tooltip-arrow{right:4px;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#373737}.rc-tooltip-placement-left .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-leftTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-leftBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-bottom .rc-tooltip-arrow,.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{top:4px;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#373737}.rc-tooltip-placement-bottom .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{right:15%}pagenote-colors-container{display:block;position:relative}pagenote-colors-container:hover pagenote-color-button:not(:first-child){transform:translate(0) scale(.59)!important;opacity:1}pagenote-color-button{display:block;width:30px!important;height:30px!important;position:absolute;opacity:0;border:none!important;box-shadow:0 2px 7px 0 rgba(39,43,49,.2)!important;background-color:var(--color);border-radius:40px!important;background-size:30px!important;background-position:50%!important;background-repeat:no-repeat!important;cursor:pointer;transition:all .3s ease-out;box-sizing:border-box;user-select:none;text-align:center;vertical-align:middle;line-height:24px;font-size:22px;text-shadow:1px 1px 0 #000;filter:drop-shadow(0 6px 14px rgba(31,35,41,.13))}pagenote-color-button:first-child{left:0;top:0!important;opacity:1!important;width:30px!important;height:30px!important;z-index:1}pagenote-color-button:not(:first-child){padding:2px;animation:_1_x 3s ease-out;animation-delay:.6s}pagenote-color-button:hover{opacity:1!important}pagenote-plugin-group{position:absolute;top:0;left:0}pagenote-plugin-group pagenote-action-button{cursor:pointer;display:block;width:30px!important;height:30px!important;border-radius:50%;transform:scale(.75);animation:_2OK .8s ease-in-out forwards;background-position:50%;background-repeat:no-repeat;background-color:#fff;background-size:contain;border:1px solid #eae8e8;box-shadow:0 0 1px 0 #f5f5f5;transition:all .3s ease-in-out}pagenote-plugin-group pagenote-action-button:hover{transform:scale(1)!important}pagenote-plugin-group pagenote-action-button:not(:first-child){margin-top:6px;display:none}pagenote-plugin-group:hover{z-index:1}pagenote-plugin-group:hover pagenote-action-button{display:block}@keyframes colorShow{0%{transform:translate(0) scale(.41)!important;opacity:0}10%{transform:translate(0) scale(.59);opacity:1}80%{transform:translate(0) scale(.59);opacity:1}to{opacity:1}}@keyframes _2OK{0%{transform:scale(0)}to{transform:scale(.75)}}._1iK{position:absolute;background:hsla(0,0%,100%,.95);z-index:99998;min-width:160px;max-width:400px;box-shadow:-1px 0 0 rgba(0,0,0,.1),1px 0 0 rgba(0,0,0,.1),0 1px 1px rgba(0,0,0,.2);animation:_3Zi .5s ease backwards;border-radius:0 0 4px 4px}._1iK:hover{z-index:99999999}._1iK:hover ._1le{display:block}._1le{padding:2px 8px;margin-bottom:2px;border-top:3px solid gold;display:none;user-select:none;cursor:move}._1le._3X7{display:block}._1le pagenote-icon{margin-right:4px;border-radius:10px;cursor:pointer}._1le pagenote-icon:hover{background:#f6fcff}._1le .Shc{font-size:12px;color:#999;border-top:1px dashed #eee;cursor:pointer}._2tt{position:relative;cursor:pointer}._2tt._1L7{right:20px}._2tt._1L7,.kRL{position:absolute}.kRL{left:-20px;top:-10px;background:#fff;border-radius:10px;box-shadow:0 2px 1px 0 #dedede;cursor:pointer;transition:.3s ease}.kRL.h6Q{transform:rotate(45deg)}._3Ls{position:absolute;right:0}._1yB{cursor:move}._35Z{position:relative;display:inline-block;margin-right:4px;cursor:pointer}._35Z:hover ._1Zr{display:block}._35Z ._1Zr{display:none;position:absolute;background:#fff;white-space:nowrap;z-index:1}._35Z .BLR{display:inline-block;margin-right:-5px;width:18px;height:18px;border-radius:10px;box-shadow:-1px 0 0 rgba(0,0,0,.1),1px 0 0 rgba(0,0,0,.1),0 1px 1px rgba(0,0,0,.2)}._35Z .BLR:hover{transform:scale(1.2)}._35Z .BLR._1dQ{border:1px solid #000;box-sizing:border-box}._35Z ._37R{width:18px;height:18px;border-radius:50%}._3vW{display:none;border-top:1px solid #eee;font-size:12px;min-height:2em;padding:4px;color:#333}._3vW img{max-width:100%}._3vW._3I5{display:block}@keyframes _3Zi{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}} \ No newline at end of file +pagenote-camera .pagenote-camera-container{z-index:9999;position:fixed;top:200px;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:5px;box-shadow:0 30px 50px -20px rgba(0,0,0,.7);-webkit-animation:angle 5s;animation:angle 5s}pagenote-camera .camera-bottom,pagenote-camera .camera-mid,pagenote-camera .camera-top{width:360px}pagenote-camera .camera-top{height:60px;background:-webkit-linear-gradient(left,#e2e2e2,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);background:linear-gradient(90deg,#e2e2e2 0,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);border:1px solid #dcdcdc;border-top-left-radius:5px}pagenote-camera .camera-top:before{display:block;content:"";position:absolute;top:-20px;right:0;width:210px;height:20px;background:-webkit-linear-gradient(left,#f5f5f5,#f5f5f5 174px,#e2e2e2);background:linear-gradient(90deg,#f5f5f5 0,#f5f5f5 174px,#e2e2e2);border-top-left-radius:5px;border-top-right-radius:5px;border:1px solid #dcdcdc;border-bottom:none;box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-top .zoom{position:absolute;top:-15px;left:30px;width:42px;height:9px;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-top .zoom,pagenote-camera .camera-top .zoom:before{border:1px solid #a3a3a3;border-top-left-radius:3px;border-top-right-radius:3px}pagenote-camera .camera-top .zoom:before{top:-6px;width:20px;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 50%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 50%,#b0b0b0)}pagenote-camera .camera-top .zoom:after,pagenote-camera .camera-top .zoom:before{display:block;content:"";position:relative;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);height:4px}pagenote-camera .camera-top .zoom:after{top:3px;width:46px;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);border:1px solid #a3a3a3;border-bottom:none;border-top-left-radius:3px;border-top-right-radius:3px}pagenote-camera .camera-top .mode-changer{top:-20px;left:82px;width:60px;height:16px;border:1px solid #a3a3a3;border-radius:3px;box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-top .mode-changer,pagenote-camera .camera-top .mode-changer:after{position:absolute;background:-webkit-linear-gradient(left,#b0b0b0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0);background:linear-gradient(90deg,#b0b0b0 0,#e2e2e2 30%,#e2e2e2 50%,#e2e2e2 70%,#b0b0b0)}pagenote-camera .camera-top .mode-changer:after{display:block;content:"";top:16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:50px;height:2px;border:1px solid #a3a3a3;border-bottom:none}pagenote-camera .camera-top .sides{width:100%}pagenote-camera .camera-top .sides:after,pagenote-camera .camera-top .sides:before{display:block;content:"";position:absolute;top:24px;width:8px;height:30px;background:-webkit-linear-gradient(top,#828181,#696767 10%,#4f4d4d 50%,#403e3f);background:linear-gradient(180deg,#828181 0,#696767 10%,#4f4d4d 50%,#403e3f);border:1px solid #3e3c3d;border-radius:2px;box-shadow:0 3px 5px -1px rgba(0,0,0,.5)}pagenote-camera .camera-top .sides:before{left:-4px;border-top-left-radius:3px;border-bottom-left-radius:3px}pagenote-camera .camera-top .sides:after{right:-4px;border-top-right-radius:3px;border-bottom-right-radius:3px}pagenote-camera .camera-top .range-finder{position:absolute;top:10px;left:105px;width:30px;height:20px;background:#3e3c3d;border-radius:3px;box-shadow:inset 0 0 5px 3px #333132}pagenote-camera .camera-top .range-finder:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:12px;height:12px;background:#797878;border-radius:100%}pagenote-camera .camera-top .focus{position:absolute;top:-14px;left:156px;width:15px;height:15px;background:#3f3d3e;border-radius:100%;box-shadow:inset 0 0 4px 3px #2d2b2b,inset 0 4px 5px 0 #f5f5f5,inset 0 -3px 4px -2px #a3a2a2}pagenote-camera .camera-top .red{position:absolute;top:5px;left:165px;width:30px;height:30px;background:#dc2839;border-radius:100%}pagenote-camera .camera-top .view-finder{position:absolute;left:210px;width:48px;height:30px;background:-webkit-radial-gradient(center ellipse,#828181 0,#403e3f 85%,#403e3f 100%);background:radial-gradient(ellipse at center,#828181 0,#403e3f 85%,#403e3f 100%);border:3px solid #312f2f;border-radius:4px;box-shadow:inset 0 8px 8px -8px #fdfdfd}pagenote-camera .camera-top .flash{position:absolute;top:-6px;right:20px;width:58px;height:46px;background:-webkit-radial-gradient(center ellipse,#828181 0,#403e3f 70%,#403e3f 100%);background:radial-gradient(ellipse at center,#828181 0,#403e3f 70%,#403e3f 100%);border:2px solid #312f2f;border-radius:3px;box-shadow:inset 0 8px 8px -8px #fdfdfd}pagenote-camera .camera-top .flash:after,pagenote-camera .camera-top .flash:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}pagenote-camera .camera-top .flash:before{width:90%;height:70%;background:-webkit-radial-gradient(center ellipse,#696767 0,#1e1e1e 50%,#1e1e1e 100%);background:radial-gradient(ellipse at center,#696767 0,#1e1e1e 50%,#1e1e1e 100%)}pagenote-camera .camera-top .flash:after{width:16px;height:14px;background:#797979;border-top-left-radius:8px 2px;border-top-right-radius:8px 2px;border-bottom-left-radius:8px 2px;border-bottom-right-radius:8px 2px}pagenote-camera .camera-top .flash .light,pagenote-camera .camera-top .flash .light.capturing{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:20px;height:20px;background:-webkit-radial-gradient(center ellipse,#fff 0,hsla(0,0%,100%,0) 100%);background:radial-gradient(ellipse at center,#fff 0,hsla(0,0%,100%,0) 100%);border-radius:100%;z-index:2;-webkit-animation:flash 1s backwards;animation:flash 1s backwards}pagenote-camera .camera-mid{position:relative;height:130px;background:-webkit-linear-gradient(left,#e4e4e4,#fafafa 10%,#fafafa 90%,#e4e4e4);background:linear-gradient(90deg,#e4e4e4 0,#fafafa 10%,#fafafa 90%,#e4e4e4);border:1px solid #dcdcdc;border-top:none;border-bottom:none;box-shadow:inset 0 15px 15px -15px #fdfdfd}pagenote-camera .camera-mid .tip{font-size:12px;padding:24px;line-height:2em;opacity:0;animation:fade-in .8s ease-in forwards;animation-delay:.9s}pagenote-camera .camera-mid .tip button{font-size:12px;padding:4px 12px;margin-right:4px;border:1px solid #999;border-radius:4px}pagenote-camera .camera-mid .lens,pagenote-camera .camera-mid .sensor{animation:scale-out .8s ease-out forwards;animation-delay:.9s}pagenote-camera .camera-mid .sensor{position:absolute;top:40px;left:105px;width:30px;height:30px;background:#545252;border:2px solid #545252;border-radius:100%;box-shadow:inset 0 12px 12px -10px #fdfdfd,0 2px 5px 1px rgba(0,0,0,.3)}pagenote-camera .camera-mid .sensor:after,pagenote-camera .camera-mid .sensor:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}pagenote-camera .camera-mid .sensor:before{width:20px;height:20px;background:-webkit-linear-gradient(top,#e9e9e9,#bdbdbd);background:linear-gradient(180deg,#e9e9e9 0,#bdbdbd);border-radius:100%}pagenote-camera .camera-mid .sensor:after{width:12px;height:12px;background:#fafafa;border-radius:100%;box-shadow:0 2px 3px 0 #747474}pagenote-camera .camera-mid .lens{position:absolute;top:-20px;left:130px;width:155px;height:155px;background:-webkit-radial-gradient(center ellipse,#000 0,#000 15%,#272525 30%,#403e3f 0,#403e3f 31%,#403e3f 40%,#e9ebec 41%,#e9ebec 44%,#b0b1b2 48%,#e8e9ea 50%,#e8e9ea 60%,#f7f8f8 0,#787979 65%,#fff 66%,#fff 100%);background:radial-gradient(ellipse at center,#000 0,#000 15%,#272525 30%,#403e3f 0,#403e3f 31%,#403e3f 40%,#e9ebec 41%,#e9ebec 44%,#b0b1b2 48%,#e8e9ea 50%,#e8e9ea 60%,#f7f8f8 0,#787979 65%,#fff 66%,#fff 100%);border:1px solid #b6b7b8;border-radius:100%;box-sizing:border-box;box-shadow:0 7px 15px -2px rgba(0,0,0,.4),inset 0 -2px 15px -2px rgba(0,0,0,.2),inset 0 7px 15px -2px #fff}pagenote-camera .camera-mid .lens:before{display:block;content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:25px;height:25px;background:rgba(0,0,0,.7);border-radius:100%;box-shadow:inset 0 5px 3px -2px hsla(0,0%,100%,.5),inset 0 -5px 20px -8px hsla(0,0%,100%,.5)}pagenote-camera .camera-bottom{height:16px;background:-webkit-linear-gradient(left,#e2e2e2,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);background:linear-gradient(90deg,#e2e2e2 0,#f5f5f5 10%,#f5f5f5 90%,#e2e2e2);border:1px solid #dcdcdc;border-bottom:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;box-shadow:inset 0 15px 15px -15px #fdfdfd,inset 0 -12px 12px -10px #797979}pagenote-camera .camera-picture{position:absolute;width:100%;height:100%;opacity:0;z-index:-1;animation:picture-in .9s ease-in forwards;animation-delay:.5s}pagenote-camera .camera-picture img{max-width:100%;max-height:100%;box-shadow:0 0 2px 1px #484848}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0;display:none}}@keyframes scale-out{0%{transform:scale(1);opacity:1}to{transform:scale(0);opacity:0}}@keyframes picture-in{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0)}}@keyframes flash{0%{width:0;height:0}20%{width:200px;height:200px}25%{width:0;height:0}45%{width:200px;height:200px}50%{width:0;height:0}to{width:0;height:0}}@keyframes angle{0%{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0deg);box-shadow:0 30px 50px -20px rgba(0,0,0,.7)}25%{-webkit-transform:translate(-50%,-50%) rotate(2deg);transform:translate(-50%,-50%) rotate(2deg);box-shadow:10px 30px 50px -20px rgba(0,0,0,.7)}75%{-webkit-transform:translate(-50%,-50%) rotate(-2deg);transform:translate(-50%,-50%) rotate(-2deg);box-shadow:-10px 30px 50px -20px rgba(0,0,0,.7)}to{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0deg);box-shadow:0 30px 50px -20px rgba(0,0,0,.7)}}#bp_container{z-index:99999999!important}pagenote-notification{display:inline-block;position:fixed;left:0;top:0;z-index:99999;font-size:12px;padding:2px 4px;border-radius:2px;background:#ffd581;color:#000}pagenote-notification.success{background:#ffd581}pagenote-notification.error{background:#ff7b82}pagenote-notification.fade{animation:notification 3s ease-in-out forwards}@keyframes notification{0%{transform:translateY(0);opacity:1}80%{transform:translateY(-16px);opacity:1}to{transform:translateY(-20px);opacity:0}}@media screen and (max-width:720px){.l5z .c3X{transform:translate(0) scale(.59)!important;opacity:1}._1FS{width:40px}}._3Nx{display:block;font-size:12px;left:0;top:0;width:100%;height:20px;line-height:20px;overflow:hidden;text-align:left;cursor:pointer;border-left:4px solid var(--color);padding:0 6px;box-sizing:border-box;background-color:#fff;margin-bottom:5px;text-overflow:ellipsis;color:#333;transition:all .3s}._3Nx:last-child{margin-bottom:0}._3Nx._3kC,._3Nx:hover{max-height:5em;z-index:1}._3Nx:hover{user-select:auto;z-index:2!important}._3Nx.vRo,._3Nx:hover{background-color:#fbfcff}._3Nx.vRo{z-index:1;width:calc(100% + 14px);height:auto;max-height:5em;transform:translateX(-14px);border-radius:5px 0 0 5px;border-left:8px solid var(--color)}._1fF{z-index:9999}._1fF:hover{z-index:99999}._1fF._2N_ ._1Zj{cursor:move;transform:scale(2);animation:none;box-shadow:0 0 0 1px #fff}._1fF._2N_ ._1Zj:after,._1fF._2N_ ._1Zj:before{display:none}._1fF._2N_ ._13E:hover ._2Je{opacity:1;transform:scale(2) translate(16px)}._1fF._2N_ ._13E:hover ._1gB{opacity:1;transform:scale(2) translate(-16px)}._1fF ._13E:hover ._1Zj{transform:scale(2)}._1fF ._1gB,._1fF ._2Je{position:absolute;opacity:0;top:6px;left:-7px;width:13px;height:13px;cursor:pointer;border-radius:2px;transition:all .5s}._1fF ._1gB svg,._1fF ._2Je svg{vertical-align:super;box-shadow:1px 1px 3px 0 #d0cfc6;border-radius:2px;background:#fff}._1fF ._1Zj{position:absolute;z-index:1;width:13px;height:13px;border:1px solid var(--bg-color);top:6px;left:-7px;border-radius:50%;color:#fff;cursor:pointer;animation:tRz 1.5s linear infinite;animation-direction:alternate;transition:.3s;background-color:var(--bg-color);background-size:cover;background-repeat:no-repeat;background-position:50%}._1fF ._1Zj._2XM{border:1px solid red}._1fF ._1Zj:before{content:"";position:absolute;left:-1px;top:6px;width:9px;height:1px;border-left:3px solid;border-right:3px solid}._1fF ._1Zj:after{content:"";position:absolute;left:6px;top:-1px;width:1px;height:9px;border-top:3px solid;border-bottom:3px solid}._1fF ._1Zj:hover{transform:scale(2);animation:none}._1fF ._1Zj:hover+._1z1{display:block}._1fF ._1z1{display:none;box-sizing:border-box;overflow:hidden;width:0;height:0;min-height:20px;font-size:14px;border-radius:5px;background:radial-gradient(26px 26px at left 13px,transparent 50%,var(--bg-color) 0);box-shadow:0 0 1px 2px #fff;transition:all .2s}._1fF ._1z1._1s7{display:block;width:auto;height:auto}._1fF ._1z1._1s7:focus,._1fF ._1z1._1s7:hover{z-index:99999999;border-radius:0 0 5px 5px}._1fF ._1z1._1s7:focus .eQ7,._1fF ._1z1._1s7:hover .eQ7{opacity:1;border-bottom:1px solid #fff;transform:translateY(-20px)}._1fF ._1z1 ._1zy{display:none;box-sizing:border-box;width:100%;min-width:200px;max-width:280px;padding:2px 14px 2px 20px;border-radius:6px;user-select:none}._1fF ._1z1 ._1zy._16J{display:block}._1fF ._1z1 ._1zy._2G5,._1fF ._1z1 ._1zy:focus{outline:1px solid #eee;user-select:all}._1fF ._1z1 ._1zy:focus+.eQ7{z-index:1;opacity:1;transform:translateY(-20px)}._1fF ._1z1 ._1zy img{max-width:100%;max-height:100%}._2bP{display:none;width:12px;height:12px;position:absolute;top:-14px;left:0;background-color:#189cfd;border-radius:14px}.eQ7{opacity:0;left:0;width:100%;font-size:12px;box-sizing:border-box;padding:0 8px;white-space:nowrap;transition:all .3s;background:var(--bg-color);border-radius:5px 5px 0 0;will-change:transform}._1Qg,.eQ7{position:absolute;top:0;height:20px}._1Qg{display:block;width:20px;right:0;cursor:pointer}._2iJ{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);min-width:200px;font-size:14px;padding:10px;background:#f7f7f7;box-shadow:0 0 9px 1px #676767}._2iJ label{display:inline-block;width:80px}.f4X{right:-7px;top:-7px;color:#000;margin-top:2px;margin-left:3px;width:12px;height:12px;border:1px solid;border-radius:100%}.f4X,.f4X:before{position:absolute;background-color:currentColor}.f4X:before{content:"";width:8px;height:3px;color:#fff;left:2px;top:4px}.oLC{display:none;position:fixed;z-index:99999;font-size:12px;line-height:20px;padding:0 4px;width:20px;box-sizing:border-box;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#f36b5d;border-radius:10px;transition:width .5s}.oLC._2FU{display:block}.oLC.uyU{width:160px;background:#fff;border-radius:4px}@keyframes _3xz{0%{transform:scale(0)}to{transform:scale(1)}}.OTU{z-index:999999;padding:4px;border:none;box-shadow:0 2px 4px rgba(0,0,0,.5);font-weight:600;color:#fff;background-color:#189cfd;border-radius:6px;outline:none;cursor:pointer;transition:all 225ms cubic-bezier(.4,0,.2,1) 0ms}.OTU:hover{background-color:#1976d2}b[data-highlight=y]{cursor:pointer}._3Ds #_-1e{fill:#fff}._3Ds #cGb{display:none}._3Ds._266 #_-1e,._3Ds._266 #cGb{display:block;fill:#ff720f}light[data-highlight]{position:relative;font-size:inherit!important;font-family:inherit!important;background-image:linear-gradient(0deg,#ffde5d 2px,rgba(255,222,93,.84) 0);background-image:linear-gradient(0deg,var(--bgcolor) 2px,var(--bgcolor) 0);background-size:100% 0;border-bottom:2px solid #ffde5d;border-bottom:2px solid var(--bgbottomcolor);background-repeat:no-repeat;background-position:bottom;transition:background-size .5s ease-out;box-sizing:border-box}light[data-highlight]:hover{z-index:1}light[data-highlight][data-active="1"]{-webkit-text-fill-color:var(--color);background-size:100% 2em;animation:light .5s ease-in-out}light[data-highlight][data-active="1"][data-mask="1"]{filter:blur(2px)}light[data-highlight][data-active="1"]:hover{opacity:.85}light[data-highlight][data-active="1"][data-type=img]{outline:1px solid var(--bgcolor)}light[data-highlight]:hover light-actions{display:block}light[data-highlight] pagenote-tag-edit{display:block;width:100%;height:100%}light[data-highlight] pagenote-tip{display:block;background:#ffe5b0;padding:8px;border:1px solid #999}light-aside{position:absolute;cursor:default;left:0;top:100%;padding-top:4px;font-size:12px;border-radius:6px}light-aside:hover{z-index:9}light-aside aside{content:"";display:block;width:8px;height:8px;background:var(--bgcolor);position:absolute;left:0;top:0;transition:all .3s ease-in-out}light-aside light-actions{cursor:pointer;background:#fff}light-aside light-actions svg{fill:var(--bgcolor)}light-aside .note{position:relative;min-width:150px;max-width:100%;padding:4px;background:var(--bgcolor);box-shadow:2px 2px 2px 0 #ccc;border:1px solid #fff;border-radius:4px}._37b._3fJ{color:#000;position:absolute;margin-left:3px;margin-top:3px;width:12px;height:12px;border-radius:70% 15%;border:1px solid;-webkit-transform:rotate(45deg);transform:rotate(45deg)}._37b._3fJ:before{content:"";position:absolute;left:2px;top:2px;width:6px;height:6px;border-radius:50%;border:1px solid;background-color:currentColor}@keyframes tool-in{0%{opacity:0}1%{display:block}to{opacity:1;transform:translate(0)}}@keyframes light{0%{background-size:100% 2px}to{background-size:100% 2em}}@keyframes _1HC{0%{opacity:.3;transform:scale(.3)}to{transform:scale(1);opacity:1}}@keyframes tRz{0%{box-shadow:0 0 1px 2px #fff}to{box-shadow:0 0 2px 2px rgba(199,198,198,.52)}}@keyframes _1y5{0%{right:auto}to{right:-160px}}@-webkit-keyframes _35h{0%{filter:hue-rotate(0deg)}to{filter:hue-rotate(-1turn)}}@keyframes shine-light{0%{left:100%;top:100%;filter:hue-rotate(0deg)}10%{width:8px;height:8px}45%{left:0;top:100%}50%{left:0;top:0}90%{left:100%;top:0;width:8px;height:8px}to{left:100%;top:100%;filter:hue-rotate(-1turn)}}.rc-popover{position:absolute;z-index:1070;display:block;visibility:visible;font-size:12px;line-height:1.5;opacity:.9}.rc-popover-hidden{display:none}.rc-popover-placement-top,.rc-popover-placement-topLeft,.rc-popover-placement-topRight{padding:5px 0 9px}.rc-popover-placement-right,.rc-popover-placement-rightBottom,.rc-popover-placement-rightTop{padding:0 5px 0 9px}.rc-popover-placement-bottom,.rc-popover-placement-bottomLeft,.rc-popover-placement-bottomRight{padding:9px 0 5px}.rc-popover-placement-left,.rc-popover-placement-leftBottom,.rc-popover-placement-leftTop{padding:0 9px 0 5px}.rc-popover-inner{padding:8px 10px;color:#848484;text-align:left;text-decoration:none;background-color:#fff;border-radius:6px;box-shadow:0 0 4px rgba(0,0,0,.17);min-height:14px}.rc-popover-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-popover-placement-top .rc-popover-arrow,.rc-popover-placement-topLeft .rc-popover-arrow,.rc-popover-placement-topRight .rc-popover-arrow{bottom:4px;margin-left:-5px;border-width:5px 5px 0;border-top-color:#fff}.rc-popover-placement-top .rc-popover-arrow{left:50%}.rc-popover-placement-topLeft .rc-popover-arrow{left:15%}.rc-popover-placement-topRight .rc-popover-arrow{right:15%}.rc-popover-placement-right .rc-popover-arrow,.rc-popover-placement-rightBottom .rc-popover-arrow,.rc-popover-placement-rightTop .rc-popover-arrow{left:4px;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#fff}.rc-popover-placement-right .rc-popover-arrow{top:50%}.rc-popover-placement-rightTop .rc-popover-arrow{top:15%;margin-top:0}.rc-popover-placement-rightBottom .rc-popover-arrow{bottom:15%}.rc-popover-placement-left .rc-popover-arrow,.rc-popover-placement-leftBottom .rc-popover-arrow,.rc-popover-placement-leftTop .rc-popover-arrow{right:4px;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#fff}.rc-popover-placement-left .rc-popover-arrow{top:50%}.rc-popover-placement-leftTop .rc-popover-arrow{top:15%;margin-top:0}.rc-popover-placement-leftBottom .rc-popover-arrow{bottom:15%}.rc-popover-placement-bottom .rc-popover-arrow,.rc-popover-placement-bottomLeft .rc-popover-arrow,.rc-popover-placement-bottomRight .rc-popover-arrow{top:4px;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#fff}.rc-popover-placement-bottom .rc-popover-arrow{left:50%}.rc-popover-placement-bottomLeft .rc-popover-arrow{left:15%}.rc-popover-placement-bottomRight .rc-popover-arrow{right:15%}.category-title{cursor:pointer;line-height:1em}.category-title svg{vertical-align:top}.category-title .categories{padding-left:20px}.category-title .category-name{display:inline-block;max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-right:4px;margin-bottom:4px;font-size:12px;border-radius:4px;background:#f3f3f3;padding:0 12px;color:#666;border:1px solid #e6e6e6}.droplabel .select-menu-header{padding:8px 10px;line-height:16px;background:#fff;border-bottom:1px solid #e1e4e8}.droplabel .select-menu-header .select-menu-title{font-weight:600;color:#24292e}.droplabel .select-menu-header .close-button{position:absolute;right:4px;top:4px;cursor:pointer}.droplabel .select-menu-text-filter{position:relative;padding:10px;border-bottom:1px solid #dfe2e5}.droplabel .select-menu-text-filter input{display:block;width:100%;max-width:100%;padding:5px 12px;border:1px solid #dfe2e5;border-radius:6px;box-sizing:border-box;line-height:1em;font-size:12px}.droplabel .select-menu-text-filter .new-button{position:absolute;right:0;top:14px;right:20px;color:#fff;padding:0 4px;background:#e91e63;border-radius:2px;border:1px solid #ffeb3b;z-index:1;cursor:pointer}.droplabel .select-menu-list{position:relative;max-height:400px;overflow:auto;color:#586069}.droplabel .select-menu-list .select-menu-item{display:block;padding:8px 8px 8px 30px;overflow:hidden;color:inherit;cursor:pointer;border-bottom:1px solid #eaecef}.droplabel .select-menu-list .select-menu-item:hover{background-color:#f4f4f4}.droplabel .select-menu-list .select-menu-item .select-menu-item-icon{vertical-align:middle;float:left;margin-left:-20px}pagenote-block,pagenote-description,pagenote-dot,pagenote-infos,pagenote-light,pagenote-light-anotation,pagenote-light-ref,pagenote-lights,pagenote-line,pagenote-progress,pagenote-progress-percent,pagenote-snapshots{display:block;box-sizing:border-box}pagenote-action-group{display:block}pagenote-icon{cursor:pointer;display:inline-block;border-radius:50%}pagenote-icon:hover{background:#fff;box-shadow:0 1px 3px 1px rgba(60,64,67,.15),0 1px 2px 0 rgba(60,64,67,.3)}pagenote-aside{position:fixed;right:2px;z-index:99991;top:0;width:200px;user-select:none;background:#fff;transition:width .2s ease-out;border-radius:4px;border:1px solid #e3e3e3;line-height:1.414em}pagenote-aside[data-status=expand]{border:none;width:18px;height:100%;background:transparent}pagenote-aside[data-status=expand] pagenote-actions{background:none;padding:0}pagenote-aside[data-status=expand] pagenote-action-group,pagenote-aside[data-status=expand] pagenote-description,pagenote-aside[data-status=expand] pagenote-infos{display:none}pagenote-aside[data-status=expand] pagenote-action[data-action=toggle]{top:34px;right:auto;margin:0}pagenote-aside[data-status=expand] pagenote-lights{left:-1px;overflow:visible}pagenote-actions{box-sizing:border-box;position:relative;display:flex;padding:4px;color:#fff;font-size:13px;font-weight:400;white-space:nowrap;text-align:left;text-overflow:ellipsis;-webkit-transition:all .25s ease-out;transition:all .25s ease-out}pagenote-actions pagenote-action{display:inline-block;cursor:pointer;width:18px;height:18px;margin-right:5px;background-size:contain}pagenote-actions pagenote-action[data-action=toggle]{position:absolute;right:0}pagenote-description{margin:6px 0;padding:0 6px;color:#8f959e;font-size:12px;line-height:1.414em;max-height:2.828em;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #f3f3f3}pagenote-lights{max-height:78vh;overflow:auto;padding-left:6px;left:-6px;position:relative}pagenote-lights pagenote-line-container{display:block;font-size:12px;left:0;top:0;width:100%;line-height:20px;text-align:left;cursor:pointer;box-sizing:border-box;background-color:rgba(0,0,0,.02);border-radius:4px;margin:8px 0;text-overflow:ellipsis;transition:all .3s ease-in-out}pagenote-lights pagenote-line-container:hover{background-color:#fbfcff;user-select:auto;z-index:2!important}pagenote-lights pagenote-dot-container{position:absolute}pagenote-lights pagenote-dot-container:hover{z-index:9999}pagenote-lights pagenote-dot-container:hover pagenote-light-ref-dot{display:block}pagenote-lights pagenote-dot-container[data-active="1"] pagenote-dot{transform:scale(1.5);background:var(--color)}pagenote-lights pagenote-dot-container pagenote-light-ref-dot{display:none;position:absolute;width:200px;top:-10px;right:-4px;font-size:12px;background:#fff;box-shadow:0 10px 20px 0 rgba(168,182,191,.6);padding:6px 12px 6px 6px;border-radius:4px;z-index:1}pagenote-lights pagenote-dot-container pagenote-dot{position:relative;display:block;width:8px;height:8px;border-radius:50%;transition:all .3s ease-in-out;cursor:pointer;z-index:2;background:#fff;border:1px solid var(--color)}pagenote-infos{padding:6px}pagenote-snapshots{margin:6px 0}pagenote-snapshots pagenote-snapshot{display:inline-block;position:relative}pagenote-snapshots pagenote-snapshot:hover pagenote-icon{display:block}pagenote-snapshots pagenote-snapshot pagenote-icon{position:absolute;top:28px;left:7px;display:none}pagenote-snapshots pagenote-snapshot img{width:30px;height:30px;cursor:zoom-in;border-radius:4px}pagenote-toggle-all{display:inline-block}pagenote-toggle-all svg{border:1px solid #b9b9b9;border-radius:50%}pagenote-toggle-all[data-run="1"]{animation:_3ih 1s linear infinite forwards}@keyframes _3ih{0%{transform:rotate(0)}to{transform:rotate(1turn)}}pagenote-ref-anotation{position:relative;display:block;color:#1f2329}pagenote-ref-anotation pagenote-light-ref{position:relative;padding:0 6px;line-height:1.4em;max-height:2.8em}pagenote-ref-anotation pagenote-light-ref:before{content:"";width:1px;height:100%;background:var(--fill-color);display:block;position:absolute;left:-3px;border:1px solid #bbbfc4}pagenote-ref-anotation pagenote-light-ref pagenote-tag{background:#00bdb8}pagenote-ref-anotation pagenote-light-anotation{margin-top:4px;padding:0 6px;color:#646a73;line-height:1.4em;max-height:2.8em;overflow:hidden}pagenote-ref-anotation pagenote-light-actions{position:absolute;right:0;top:0;background:#fff;display:none}pagenote-ref-anotation:hover pagenote-light-actions{display:block}pagenote-ref-anotation[data-insign="1"] pagenote-light-ref{font-weight:500}pagenote-ref-anotation[data-insign="1"] pagenote-light-ref:before{border-color:var(--color)}pagenote-progress{width:100%;position:absolute;background:#f3f3f3;height:1px}pagenote-progress pagenote-progress-percent{border-radius:6px;transition:width .1s ease-in-out;position:absolute;top:0;left:-1px;background:#2196f3;width:0;height:1px}pagenote-progress pagenote-progress-percent svg{cursor:pointer;fill:#8f8f8f;padding:2px;border-radius:4px}pagenote-scroll-sign{position:absolute;left:0;display:block;width:16px;height:1px;border:1px solid #fff;background:#888;z-index:3}.rc-tooltip{position:absolute;z-index:1070;display:block;visibility:visible;font-size:12px;line-height:1.5;opacity:.9}.rc-tooltip-hidden{display:none}.rc-tooltip-placement-top,.rc-tooltip-placement-topLeft,.rc-tooltip-placement-topRight{padding:5px 0 9px}.rc-tooltip-placement-right,.rc-tooltip-placement-rightBottom,.rc-tooltip-placement-rightTop{padding:0 5px 0 9px}.rc-tooltip-placement-bottom,.rc-tooltip-placement-bottomLeft,.rc-tooltip-placement-bottomRight{padding:9px 0 5px}.rc-tooltip-placement-left,.rc-tooltip-placement-leftBottom,.rc-tooltip-placement-leftTop{padding:0 9px 0 5px}.rc-tooltip-inner{padding:8px 10px;color:#fff;text-align:left;text-decoration:none;background-color:#373737;border-radius:6px;box-shadow:0 0 4px rgba(0,0,0,.17);min-height:14px}.rc-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-tooltip-placement-top .rc-tooltip-arrow,.rc-tooltip-placement-topLeft .rc-tooltip-arrow,.rc-tooltip-placement-topRight .rc-tooltip-arrow{bottom:4px;margin-left:-5px;border-width:5px 5px 0;border-top-color:#373737}.rc-tooltip-placement-top .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-topLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-topRight .rc-tooltip-arrow{right:15%}.rc-tooltip-placement-right .rc-tooltip-arrow,.rc-tooltip-placement-rightBottom .rc-tooltip-arrow,.rc-tooltip-placement-rightTop .rc-tooltip-arrow{left:4px;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#373737}.rc-tooltip-placement-right .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-rightTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-rightBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-left .rc-tooltip-arrow,.rc-tooltip-placement-leftBottom .rc-tooltip-arrow,.rc-tooltip-placement-leftTop .rc-tooltip-arrow{right:4px;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#373737}.rc-tooltip-placement-left .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-leftTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-leftBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-bottom .rc-tooltip-arrow,.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{top:4px;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#373737}.rc-tooltip-placement-bottom .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{right:15%}pagenote-colors-container{display:block;position:relative}pagenote-colors-container:hover pagenote-color-button:not(:first-child){transform:translate(0) scale(.59)!important;opacity:1}pagenote-color-button{display:block;width:30px!important;height:30px!important;position:absolute;opacity:0;border:none!important;box-shadow:0 2px 7px 0 rgba(39,43,49,.2)!important;background-color:var(--color);border-radius:40px!important;background-size:30px!important;background-position:50%!important;background-repeat:no-repeat!important;cursor:pointer;transition:all .3s ease-out;box-sizing:border-box;user-select:none;text-align:center;vertical-align:middle;line-height:24px;font-size:22px;text-shadow:1px 1px 0 #000;filter:drop-shadow(0 6px 14px rgba(31,35,41,.13))}pagenote-color-button:first-child{left:0;top:0!important;opacity:1!important;width:30px!important;height:30px!important;z-index:1}pagenote-color-button:not(:first-child){padding:2px;animation:_1_x 3s ease-out;animation-delay:.6s}pagenote-color-button:hover{opacity:1!important}pagenote-plugin-group{position:absolute;top:0;left:0}pagenote-plugin-group pagenote-action-button{cursor:pointer;display:block;width:30px!important;height:30px!important;border-radius:50%;transform:scale(.75);animation:_2OK .8s ease-in-out forwards;background-position:50%;background-repeat:no-repeat;background-color:#fff;background-size:contain;border:1px solid #eae8e8;box-shadow:0 0 1px 0 #f5f5f5;transition:all .3s ease-in-out}pagenote-plugin-group pagenote-action-button:hover{transform:scale(1)!important}pagenote-plugin-group pagenote-action-button:not(:first-child){margin-top:6px;display:none}pagenote-plugin-group:hover{z-index:1}pagenote-plugin-group:hover pagenote-action-button{display:block}@keyframes colorShow{0%{transform:translate(0) scale(.41)!important;opacity:0}10%{transform:translate(0) scale(.59);opacity:1}80%{transform:translate(0) scale(.59);opacity:1}to{opacity:1}}@keyframes _2OK{0%{transform:scale(0)}to{transform:scale(.75)}}._1iK{position:absolute;background:hsla(0,0%,100%,.95);z-index:99998;min-width:160px;max-width:400px;box-shadow:-1px 0 0 rgba(0,0,0,.1),1px 0 0 rgba(0,0,0,.1),0 1px 1px rgba(0,0,0,.2);animation:_3Zi .5s ease backwards;border-radius:0 0 4px 4px}._1iK:hover{z-index:99999999}._1iK:hover ._1le{display:block}._1le{padding:2px 8px;margin-bottom:2px;border-top:3px solid gold;display:none;user-select:none;cursor:move}._1le._3X7{display:block}._1le pagenote-icon{margin-right:4px;border-radius:10px;cursor:pointer}._1le pagenote-icon:hover{background:#f6fcff}._1le .Shc{font-size:12px;color:#999;border-top:1px dashed #eee;cursor:pointer}._2tt{position:relative;cursor:pointer}._2tt._1L7{right:20px}._2tt._1L7,.kRL{position:absolute}.kRL{left:-20px;top:-10px;background:#fff;border-radius:10px;box-shadow:0 2px 1px 0 #dedede;cursor:pointer;transition:.3s ease}.kRL.h6Q{transform:rotate(45deg)}._3Ls{position:absolute;right:0}._1yB{cursor:move}._35Z{position:relative;display:inline-block;margin-right:4px;cursor:pointer}._35Z:hover ._1Zr{display:block}._35Z ._1Zr{display:none;position:absolute;background:#fff;white-space:nowrap;z-index:1}._35Z .BLR{display:inline-block;margin-right:-5px;width:18px;height:18px;border-radius:10px;box-shadow:-1px 0 0 rgba(0,0,0,.1),1px 0 0 rgba(0,0,0,.1),0 1px 1px rgba(0,0,0,.2)}._35Z .BLR:hover{transform:scale(1.2)}._35Z .BLR._1dQ{border:1px solid #000;box-sizing:border-box}._35Z ._37R{width:18px;height:18px;border-radius:50%}._3vW{display:none;border-top:1px solid #eee;font-size:12px;min-height:2em;padding:4px;color:#333}._3vW img{max-width:100%}._3vW._3I5{display:block}@keyframes _3Zi{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}} \ No newline at end of file diff --git a/dist/pagenote.js b/dist/pagenote.js index 5d9625e5..349c3dd3 100644 --- a/dist/pagenote.js +++ b/dist/pagenote.js @@ -1,3 +1,3 @@ /*! For license information please see pagenote.js.LICENSE.txt */ -!function(A,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t=e();for(var n in t)("object"==typeof exports?exports:A)[n]=t[n]}}(window,(function(){return function(A){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return A[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=A,t.c=e,t.d=function(A,e,n){t.o(A,e)||Object.defineProperty(A,e,{enumerable:!0,get:n})},t.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},t.t=function(A,e){if(1&e&&(A=t(A)),8&e)return A;if(4&e&&"object"==typeof A&&A&&A.__esModule)return A;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:A}),2&e&&"string"!=typeof A)for(var r in A)t.d(n,r,function(e){return A[e]}.bind(null,r));return n},t.n=function(A){var e=A&&A.__esModule?function(){return A.default}:function(){return A};return t.d(e,"a",e),e},t.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},t.p="",t(t.s=53)}([function(A,e,t){"use strict";t.d(e,"k",(function(){return R})),t.d(e,"i",(function(){return M})),t.d(e,"f",(function(){return h})),t.d(e,"h",(function(){return h})),t.d(e,"b",(function(){return g})),t.d(e,"g",(function(){return p})),t.d(e,"a",(function(){return w})),t.d(e,"d",(function(){return x})),t.d(e,"e",(function(){return D})),t.d(e,"l",(function(){return v})),t.d(e,"c",(function(){return S})),t.d(e,"j",(function(){return n}));var n,r,o,i,s,a,c={},u=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function B(A,e){for(var t in e)A[t]=e[t];return A}function f(A){var e=A.parentNode;e&&e.removeChild(A)}function h(A,e,t){var n,r,o,i=arguments,s={};for(o in e)"key"==o?n=e[o]:"ref"==o?r=e[o]:s[o]=e[o];if(arguments.length>3)for(t=[t],o=3;o1&&N(r,e,t),e=F(t,r,r,A.__k,null,r.__e,e),"function"==typeof A.type&&(A.__d=e)))}function O(A,e,t,r,o,i,s,a,c){var u,l,f,h,d,p,Q,C,E,m,v,F=e.type;if(void 0!==e.constructor)return null;null!=t.__h&&(c=t.__h,a=e.__e=t.__e,e.__h=null,i=[a]),(u=n.__b)&&u(e);try{A:if("function"==typeof F){if(C=e.props,E=(u=F.contextType)&&r[u.__c],m=u?E?E.props.value:u.__:r,t.__c?Q=(l=e.__c=t.__c).__=l.__E:("prototype"in F&&F.prototype.render?e.__c=l=new F(C,m):(e.__c=l=new w(C,m),l.constructor=F,l.render=L),E&&E.sub(l),l.props=C,l.state||(l.state={}),l.context=m,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=F.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=B({},l.__s)),B(l.__s,F.getDerivedStateFromProps(C,l.__s))),h=l.props,d=l.state,f)null==F.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==F.getDerivedStateFromProps&&C!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(C,m),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(C,l.__s,m)||e.__v===t.__v){l.props=C,l.state=l.__s,e.__v!==t.__v&&(l.__d=!1),l.__v=e,e.__e=t.__e,e.__k=t.__k,l.__h.length&&s.push(l),N(e,a,A);break A}null!=l.componentWillUpdate&&l.componentWillUpdate(C,l.__s,m),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(h,d,p)}))}l.context=m,l.props=C,l.state=l.__s,(u=n.__r)&&u(e),l.__d=!1,l.__v=e,l.__P=A,u=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=B(B({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(p=l.getSnapshotBeforeUpdate(h,d)),v=null!=u&&u.type==g&&null==u.key?u.props.children:u,U(A,Array.isArray(v)?v:[v],e,t,r,o,i,s,a,c),l.base=e.__e,e.__h=null,l.__h.length&&s.push(l),Q&&(l.__E=l.__=null),l.__e=!1}else null==i&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=I(t.__e,e,t,r,o,i,s,c);(u=n.diffed)&&u(e)}catch(A){e.__v=null,(c||null!=i)&&(e.__e=a,e.__h=!!c,i[i.indexOf(a)]=null),n.__e(A,e,t)}return e.__e}function T(A,e){n.__c&&n.__c(e,A),A.some((function(e){try{A=e.__h,e.__h=[],A.some((function(A){A.call(e)}))}catch(A){n.__e(A,e.__v)}}))}function I(A,e,t,n,r,o,i,s){var a,l,B,f,h,d=t.props,p=e.props;if(r="svg"===e.type||r,null!=o)for(a=0;a3)for(t=[t],o=3;o3;)t.pop()();if(t[1]=t.__.length&&t.__.push({}),t.__[A]}function d(A){return s=1,p(O,A)}function p(A,e,t){var o=h(n++,2);return o.t=A,o.__c||(o.__=[t?t(e):O(void 0,e),function(A){var e=o.t(o.__[0],A);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=r),o.__}function g(A,e){var t=h(n++,3);!i.j.__s&&N(t.__H,e)&&(t.__=A,t.__H=e,r.__H.__h.push(t))}function w(A,e){var t=h(n++,4);!i.j.__s&&N(t.__H,e)&&(t.__=A,t.__H=e,r.__h.push(t))}function Q(A){return s=5,E((function(){return{current:A}}),[])}function C(A,e,t){s=6,w((function(){"function"==typeof A?A(e()):A&&(A.current=e())}),null==t?t:t.concat(A))}function E(A,e){var t=h(n++,7);return N(t.__H,e)&&(t.__=A(),t.__H=e,t.__h=A),t.__}function m(A,e){return s=8,E((function(){return A}),e)}function U(A){var e=r.context[A.__c],t=h(n++,9);return t.__c=A,e?(null==t.__&&(t.__=!0,e.sub(r)),e.props.value):A.__}function v(A,e){i.j.useDebugValue&&i.j.useDebugValue(e?e(A):A)}function F(A){var e=h(n++,10),t=d();return e.__=A,r.componentDidCatch||(r.componentDidCatch=function(A){e.__&&e.__(A),t[1](A)}),[t[0],function(){t[1](void 0)}]}function b(){a.forEach((function(A){if(A.__P)try{A.__H.__h.forEach(H),A.__H.__h.forEach(_),A.__H.__h=[]}catch(e){A.__H.__h=[],i.j.__e(e,A.__v)}})),a=[]}i.j.__b=function(A){r=null,c&&c(A)},i.j.__r=function(A){u&&u(A),n=0;var e=(r=A.__c).__H;e&&(e.__h.forEach(H),e.__h.forEach(_),e.__h=[])},i.j.diffed=function(A){l&&l(A);var e=A.__c;e&&e.__H&&e.__H.__h.length&&(1!==a.push(e)&&o===i.j.requestAnimationFrame||((o=i.j.requestAnimationFrame)||function(A){var e,t=function(){clearTimeout(n),y&&cancelAnimationFrame(e),setTimeout(A)},n=setTimeout(t,100);y&&(e=requestAnimationFrame(t))})(b)),r=void 0},i.j.__c=function(A,e){e.some((function(A){try{A.__h.forEach(H),A.__h=A.__h.filter((function(A){return!A.__||_(A)}))}catch(t){e.some((function(A){A.__h&&(A.__h=[])})),e=[],i.j.__e(t,A.__v)}})),B&&B(A,e)},i.j.unmount=function(A){f&&f(A);var e=A.__c;if(e&&e.__H)try{e.__H.__.forEach(H)}catch(A){i.j.__e(A,e.__v)}};var y="function"==typeof requestAnimationFrame;function H(A){var e=r;"function"==typeof A.__c&&A.__c(),r=e}function _(A){var e=r;A.__c=A.__(),r=e}function N(A,e){return!A||A.length!==e.length||e.some((function(e,t){return e!==A[t]}))}function O(A,e){return"function"==typeof e?e(A):e}},function(A,e,t){A.exports={lightAction:"_1iK",fadeInScale:"_3Zi",actions:"_1le",show:"_3X7",moreInfo:"Shc",actionIcon:"_2tt",deleteIcon:"_1L7",pinIcon:"kRL",pin:"h6Q",moreIcon:"_3Ls",dragIcon:"_1yB",colors:"_35Z",colorOptions:"_1Zr",colorItem:"BLR",active:"_1dQ",currentColor:"_37R",note:"_3vW",showNote:"_3I5"}},function(A,e,t){var n;!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var A=[],e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}function i(A,e,t,n,r,i){return o((s=o(o(e,A),o(n,i)))<<(a=r)|s>>>32-a,t);var s,a}function s(A,e,t,n,r,o,s){return i(e&t|~e&n,A,e,r,o,s)}function a(A,e,t,n,r,o,s){return i(e&n|t&~n,A,e,r,o,s)}function c(A,e,t,n,r,o,s){return i(e^t^n,A,e,r,o,s)}function u(A,e,t,n,r,o,s){return i(t^(e|~n),A,e,r,o,s)}function l(A,e){var t,n,r,i,l;A[e>>5]|=128<>>9<<4)]=e;var B=1732584193,f=-271733879,h=-1732584194,d=271733878;for(t=0;t>5]>>>e%32&255);return t}function f(A){var e,t=[];for(t[(A.length>>2)-1]=void 0,e=0;e>5]|=(255&A.charCodeAt(e/8))<>>4&15)+"0123456789abcdef".charAt(15&e);return n}function d(A){return unescape(encodeURIComponent(A))}function p(A){return function(A){return B(l(f(A),8*A.length))}(d(A))}function g(A,e){return function(A,e){var t,n,r=f(A),o=[],i=[];for(o[15]=i[15]=void 0,r.length>16&&(r=l(r,8*A.length)),t=0;t<16;t+=1)o[t]=909522486^r[t],i[t]=1549556828^r[t];return n=l(o.concat(f(e)),512+8*e.length),B(l(i.concat(n),640))}(d(A),d(e))}function w(A,e,t){return e?t?g(e,A):h(g(e,A)):t?p(A):h(p(A))}void 0===(n=function(){return w}.call(e,t,e,A))||(A.exports=n)}()},function(A,e){function t(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?A.exports=t=function(A){return typeof A}:A.exports=t=function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(e)}A.exports=t},function(A,e,t){A.exports=t(41)},function(A,e){A.exports=function(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=55296&&r<=56319&&t>10),i%1024+56320)),(r+1===t||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),l=0;l=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),d=10,p=13,g=15,w=17,Q=18,C=19,E=20,m=21,U=22,v=24,F=25,b=26,y=27,H=28,_=30,N=32,O=33,T=34,I=35,K=37,S=38,L=39,R=40,M=42,x=function(A){var e,t,n,r=function(A){var e,t,n,r,o,i=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(i--,"="===A[A.length-2]&&i--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e>4,l[a++]=(15&n)<<4|r>>2,l[a++]=(3&r)<<6|63&o;return c}(A),o=Array.isArray(r)?function(A){for(var e=A.length,t=[],n=0;n0;){var i=n[--o];if(Array.isArray(A)?-1!==A.indexOf(i):A===i)for(var s=t;s<=n.length;){var a;if((a=n[++s])===e)return!0;if(a!==d)break}if(i!==d)break}return!1},J=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n!==d)return n;t--}return 0},W=function(A,e,t,n,r){if(0===t[n])return"×";var o=n-1;if(Array.isArray(r)&&!0===r[o])return"×";var i=o-1,s=o+1,a=e[o],c=i>=0?e[i]:0,u=e[s];if(2===a&&3===u)return"×";if(-1!==k.indexOf(a))return"!";if(-1!==k.indexOf(u))return"×";if(-1!==P.indexOf(u))return"×";if(8===J(o,e))return"÷";if(11===x.get(A[o])&&(u===K||u===N||u===O))return"×";if(7===a||7===u)return"×";if(9===a)return"×";if(-1===[d,p,g].indexOf(a)&&9===u)return"×";if(-1!==[w,Q,C,v,H].indexOf(u))return"×";if(J(o,e)===U)return"×";if(G(23,U,o,e))return"×";if(G([w,Q],m,o,e))return"×";if(G(12,12,o,e))return"×";if(a===d)return"÷";if(23===a||23===u)return"×";if(16===u||16===a)return"÷";if(-1!==[p,g,m].indexOf(u)||14===a)return"×";if(36===c&&-1!==X.indexOf(a))return"×";if(a===H&&36===u)return"×";if(u===E&&-1!==D.concat(E,C,F,K,N,O).indexOf(a))return"×";if(-1!==D.indexOf(u)&&a===F||-1!==D.indexOf(a)&&u===F)return"×";if(a===y&&-1!==[K,N,O].indexOf(u)||-1!==[K,N,O].indexOf(a)&&u===b)return"×";if(-1!==D.indexOf(a)&&-1!==V.indexOf(u)||-1!==V.indexOf(a)&&-1!==D.indexOf(u))return"×";if(-1!==[y,b].indexOf(a)&&(u===F||-1!==[U,g].indexOf(u)&&e[s+1]===F)||-1!==[U,g].indexOf(a)&&u===F||a===F&&-1!==[F,H,v].indexOf(u))return"×";if(-1!==[F,H,v,w,Q].indexOf(u))for(var l=o;l>=0;){if((B=e[l])===F)return"×";if(-1===[H,v].indexOf(B))break;l--}if(-1!==[y,b].indexOf(u))for(l=-1!==[w,Q].indexOf(a)?i:o;l>=0;){var B;if((B=e[l])===F)return"×";if(-1===[H,v].indexOf(B))break;l--}if(S===a&&-1!==[S,L,T,I].indexOf(u)||-1!==[L,T].indexOf(a)&&-1!==[L,R].indexOf(u)||-1!==[R,I].indexOf(a)&&u===R)return"×";if(-1!==j.indexOf(a)&&-1!==[E,b].indexOf(u)||-1!==j.indexOf(u)&&a===y)return"×";if(-1!==D.indexOf(a)&&-1!==D.indexOf(u))return"×";if(a===v&&-1!==D.indexOf(u))return"×";if(-1!==D.concat(F).indexOf(a)&&u===U||-1!==D.concat(F).indexOf(u)&&a===Q)return"×";if(41===a&&41===u){for(var f=t[o],h=1;f>0&&41===e[--f];)h++;if(h%2!=0)return"×"}return a===N&&u===O?"×":"÷"},Y=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],n=[],r=[];return A.forEach((function(A,o){var i=x.get(A);if(i>50?(r.push(!0),i-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(o),t.push(16);if(4===i||11===i){if(0===o)return n.push(o),t.push(_);var s=t[o-1];return-1===z.indexOf(s)?(n.push(n[o-1]),t.push(s)):(n.push(o),t.push(_))}return n.push(o),31===i?t.push("strict"===e?m:K):i===M||29===i?t.push(_):43===i?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(K):t.push(_):void t.push(i)})),[n,t,r]}(A,e.lineBreak),n=t[0],r=t[1],o=t[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map((function(A){return-1!==[F,_,M].indexOf(A)?K:A}))),[n,r,"keep-all"===e.wordBreak?o.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0]},q=function(){function A(A,e,t,n){this.codePoints=A,this.required="!"===e,this.start=t,this.end=n}return A.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},A}();!function(A){A[A.STRING_TOKEN=0]="STRING_TOKEN",A[A.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",A[A.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",A[A.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",A[A.COMMA_TOKEN=4]="COMMA_TOKEN",A[A.HASH_TOKEN=5]="HASH_TOKEN",A[A.DELIM_TOKEN=6]="DELIM_TOKEN",A[A.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",A[A.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",A[A.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",A[A.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",A[A.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",A[A.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",A[A.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",A[A.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",A[A.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",A[A.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",A[A.NUMBER_TOKEN=17]="NUMBER_TOKEN",A[A.FUNCTION=18]="FUNCTION",A[A.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",A[A.IDENT_TOKEN=20]="IDENT_TOKEN",A[A.COLUMN_TOKEN=21]="COLUMN_TOKEN",A[A.URL_TOKEN=22]="URL_TOKEN",A[A.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",A[A.CDC_TOKEN=24]="CDC_TOKEN",A[A.CDO_TOKEN=25]="CDO_TOKEN",A[A.COLON_TOKEN=26]="COLON_TOKEN",A[A.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",A[A.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",A[A.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",A[A.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",A[A.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",A[A.EOF_TOKEN=32]="EOF_TOKEN"}(B||(B={}));var Z=function(A){return A>=48&&A<=57},$=function(A){return Z(A)||A>=65&&A<=70||A>=97&&A<=102},AA=function(A){return 10===A||9===A||32===A},eA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},tA=function(A){return eA(A)||Z(A)||45===A},nA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},rA=function(A,e){return 92===A&&10!==e},oA=function(A,e,t){return 45===A?eA(e)||rA(e,t):!!eA(A)||!(92!==A||!rA(A,e))},iA=function(A,e,t){return 43===A||45===A?!!Z(e)||46===e&&Z(t):Z(46===A?e:A)},sA=function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var n=[];Z(A[e]);)n.push(A[e++]);var r=n.length?parseInt(a.apply(void 0,n),10):0;46===A[e]&&e++;for(var o=[];Z(A[e]);)o.push(A[e++]);var i=o.length,s=i?parseInt(a.apply(void 0,o),10):0;69!==A[e]&&101!==A[e]||e++;var c=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(c=-1),e++);for(var u=[];Z(A[e]);)u.push(A[e++]);var l=u.length?parseInt(a.apply(void 0,u),10):0;return t*(r+s*Math.pow(10,-i))*Math.pow(10,c*l)},aA={type:B.LEFT_PARENTHESIS_TOKEN},cA={type:B.RIGHT_PARENTHESIS_TOKEN},uA={type:B.COMMA_TOKEN},lA={type:B.SUFFIX_MATCH_TOKEN},BA={type:B.PREFIX_MATCH_TOKEN},fA={type:B.COLUMN_TOKEN},hA={type:B.DASH_MATCH_TOKEN},dA={type:B.INCLUDE_MATCH_TOKEN},pA={type:B.LEFT_CURLY_BRACKET_TOKEN},gA={type:B.RIGHT_CURLY_BRACKET_TOKEN},wA={type:B.SUBSTRING_MATCH_TOKEN},QA={type:B.BAD_URL_TOKEN},CA={type:B.BAD_STRING_TOKEN},EA={type:B.CDO_TOKEN},mA={type:B.CDC_TOKEN},UA={type:B.COLON_TOKEN},vA={type:B.SEMICOLON_TOKEN},FA={type:B.LEFT_SQUARE_BRACKET_TOKEN},bA={type:B.RIGHT_SQUARE_BRACKET_TOKEN},yA={type:B.WHITESPACE_TOKEN},HA={type:B.EOF_TOKEN},_A=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(s(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==HA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(tA(e)||rA(t,n)){var r=oA(e,t,n)?2:1,o=this.consumeName();return{type:B.HASH_TOKEN,value:o,flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),lA;break;case 39:return this.consumeStringToken(39);case 40:return aA;case 41:return cA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),wA;break;case 43:if(iA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return uA;case 45:var i=A,s=this.peekCodePoint(0),c=this.peekCodePoint(1);if(iA(i,s,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(oA(i,s,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===s&&62===c)return this.consumeCodePoint(),this.consumeCodePoint(),mA;break;case 46:if(iA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(42===u&&47===(u=this.consumeCodePoint()))return this.consumeToken();if(-1===u)return this.consumeToken()}break;case 58:return UA;case 59:return vA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),EA;break;case 64:var l=this.peekCodePoint(0),f=this.peekCodePoint(1),h=this.peekCodePoint(2);if(oA(l,f,h))return o=this.consumeName(),{type:B.AT_KEYWORD_TOKEN,value:o};break;case 91:return FA;case 92:if(rA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return bA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),BA;break;case 123:return pA;case 125:return gA;case 117:case 85:var d=this.peekCodePoint(0),p=this.peekCodePoint(1);return 43!==d||!$(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),hA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),fA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),dA;break;case-1:return HA}return AA(A)?(this.consumeWhiteSpace(),yA):Z(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):eA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:B.DELIM_TOKEN,value:a(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();$(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(a.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),r=parseInt(a.apply(void 0,A.map((function(A){return 63===A?70:A}))),16);return{type:B.UNICODE_RANGE_TOKEN,start:n,end:r}}var o=parseInt(a.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&$(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];$(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return r=parseInt(a.apply(void 0,i),16),{type:B.UNICODE_RANGE_TOKEN,start:o,end:r}}return{type:B.UNICODE_RANGE_TOKEN,start:o,end:o}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:B.FUNCTION_TOKEN,value:A}):{type:B.IDENT_TOKEN,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:B.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===B.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:B.URL_TOKEN,value:t.value}):(this.consumeBadUrlRemnants(),QA)}for(;;){var n=this.consumeCodePoint();if(-1===n||41===n)return{type:B.URL_TOKEN,value:a.apply(void 0,A)};if(AA(n))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:B.URL_TOKEN,value:a.apply(void 0,A)}):(this.consumeBadUrlRemnants(),QA);if(34===n||39===n||40===n||nA(n))return this.consumeBadUrlRemnants(),QA;if(92===n){if(!rA(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),QA;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;AA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;rA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(6e4,A);e+=a.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var n=this._value[t];if(-1===n||void 0===n||n===A)return e+=this.consumeStringSlice(t),{type:B.STRING_TOKEN,value:e};if(10===n)return this._value.splice(0,t),CA;if(92===n){var r=this._value[t+1];-1!==r&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):rA(n,r)&&(e+=this.consumeStringSlice(t),e+=a(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(43!==t&&45!==t||A.push(this.consumeCodePoint());Z(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===t&&Z(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Z(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===t||101===t)&&((43===n||45===n)&&Z(r)||Z(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Z(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[sA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),o=this.peekCodePoint(2);if(oA(n,r,o)){var i=this.consumeName();return{type:B.DIMENSION_TOKEN,number:e,flags:t,unit:i}}return 37===n?(this.consumeCodePoint(),{type:B.PERCENTAGE_TOKEN,number:e,flags:t}):{type:B.NUMBER_TOKEN,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if($(A)){for(var e=a(A);$(this.peekCodePoint(0))&&e.length<6;)e+=a(this.consumeCodePoint());AA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return-1===A?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(tA(e))A+=a(e);else{if(!rA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=a(this.consumeEscapedCodePoint())}}},A}(),NA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new _A;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===B.WHITESPACE_TOKEN;)A=this.consumeToken();if(A.type===B.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(A.type===B.WHITESPACE_TOKEN);if(A.type===B.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===B.EOF_TOKEN)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case B.LEFT_CURLY_BRACKET_TOKEN:case B.LEFT_SQUARE_BRACKET_TOKEN:case B.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case B.FUNCTION_TOKEN:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(t.type===B.EOF_TOKEN||xA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:B.FUNCTION};;){var t=this.consumeToken();if(t.type===B.EOF_TOKEN||t.type===B.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?HA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),OA=function(A){return A.type===B.DIMENSION_TOKEN},TA=function(A){return A.type===B.NUMBER_TOKEN},IA=function(A){return A.type===B.IDENT_TOKEN},KA=function(A){return A.type===B.STRING_TOKEN},SA=function(A,e){return IA(A)&&A.value===e},LA=function(A){return A.type!==B.WHITESPACE_TOKEN},RA=function(A){return A.type!==B.WHITESPACE_TOKEN&&A.type!==B.COMMA_TOKEN},MA=function(A){var e=[],t=[];return A.forEach((function(A){if(A.type===B.COMMA_TOKEN){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}A.type!==B.WHITESPACE_TOKEN&&t.push(A)})),t.length&&e.push(t),e},xA=function(A,e){return e===B.LEFT_CURLY_BRACKET_TOKEN&&A.type===B.RIGHT_CURLY_BRACKET_TOKEN||e===B.LEFT_SQUARE_BRACKET_TOKEN&&A.type===B.RIGHT_SQUARE_BRACKET_TOKEN||e===B.LEFT_PARENTHESIS_TOKEN&&A.type===B.RIGHT_PARENTHESIS_TOKEN},DA=function(A){return A.type===B.NUMBER_TOKEN||A.type===B.DIMENSION_TOKEN},kA=function(A){return A.type===B.PERCENTAGE_TOKEN||DA(A)},PA=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},VA={type:B.NUMBER_TOKEN,number:0,flags:4},zA={type:B.PERCENTAGE_TOKEN,number:50,flags:4},jA={type:B.PERCENTAGE_TOKEN,number:100,flags:4},XA=function(A,e,t){var n=A[0],r=A[1];return[GA(n,e),GA(void 0!==r?r:n,t)]},GA=function(A,e){if(A.type===B.PERCENTAGE_TOKEN)return A.number/100*e;if(OA(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},JA=function(A){if(A.type===B.DIMENSION_TOKEN)switch(A.unit){case"deg":return Math.PI*A.number/180;case"grad":return Math.PI/200*A.number;case"rad":return A.number;case"turn":return 2*Math.PI*A.number}throw new Error("Unsupported angle type")},WA=function(A){return A.type===B.DIMENSION_TOKEN&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)},YA=function(A){switch(A.filter(IA).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[VA,VA];case"to top":case"bottom":return qA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[VA,jA];case"to right":case"left":return qA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[jA,jA];case"to bottom":case"top":return qA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[jA,VA];case"to left":case"right":return qA(270)}return 0},qA=function(A){return Math.PI*A/180},ZA=function(A){if(A.type===B.FUNCTION){var e=ae[A.name];if(void 0===e)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(A.values)}if(A.type===B.HASH_TOKEN){if(3===A.value.length){var t=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);return ee(parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16),1)}if(4===A.value.length){t=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);var o=A.value.substring(3,4);return ee(parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(o+o,16)/255)}if(6===A.value.length)return t=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6),ee(parseInt(t,16),parseInt(n,16),parseInt(r,16),1);if(8===A.value.length)return t=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6),o=A.value.substring(6,8),ee(parseInt(t,16),parseInt(n,16),parseInt(r,16),parseInt(o,16)/255)}if(A.type===B.IDENT_TOKEN){var i=ce[A.value.toUpperCase()];if(void 0!==i)return i}return ce.TRANSPARENT},$A=function(A){return 0==(255&A)},Ae=function(A){var e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?"rgba("+r+","+n+","+t+","+e/255+")":"rgb("+r+","+n+","+t+")"},ee=function(A,e,t,n){return(A<<24|e<<16|t<<8|Math.round(255*n)<<0)>>>0},te=function(A,e){if(A.type===B.NUMBER_TOKEN)return A.number;if(A.type===B.PERCENTAGE_TOKEN){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},ne=function(A){var e=A.filter(RA);if(3===e.length){var t=e.map(te),n=t[0],r=t[1],o=t[2];return ee(n,r,o,1)}if(4===e.length){var i=e.map(te),s=(n=i[0],r=i[1],o=i[2],i[3]);return ee(n,r,o,s)}return 0};function re(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var oe,ie,se=function(A){var e=A.filter(RA),t=e[0],n=e[1],r=e[2],o=e[3],i=(t.type===B.NUMBER_TOKEN?qA(t.number):JA(t))/(2*Math.PI),s=kA(n)?n.number/100:0,a=kA(r)?r.number/100:0,c=void 0!==o&&kA(o)?GA(o,1):1;if(0===s)return ee(255*a,255*a,255*a,1);var u=a<=.5?a*(s+1):a+s-a*s,l=2*a-u,f=re(l,u,i+1/3),h=re(l,u,i),d=re(l,u,i-1/3);return ee(255*f,255*h,255*d,c)},ae={hsl:se,hsla:se,rgb:ne,rgba:ne},ce={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(A){A[A.VALUE=0]="VALUE",A[A.LIST=1]="LIST",A[A.IDENT_VALUE=2]="IDENT_VALUE",A[A.TYPE_VALUE=3]="TYPE_VALUE",A[A.TOKEN_VALUE=4]="TOKEN_VALUE"})(oe||(oe={})),function(A){A[A.BORDER_BOX=0]="BORDER_BOX",A[A.PADDING_BOX=1]="PADDING_BOX",A[A.CONTENT_BOX=2]="CONTENT_BOX"}(ie||(ie={}));var ue,le,Be,fe={name:"background-clip",initialValue:"border-box",prefix:!1,type:oe.LIST,parse:function(A){return A.map((function(A){if(IA(A))switch(A.value){case"padding-box":return ie.PADDING_BOX;case"content-box":return ie.CONTENT_BOX}return ie.BORDER_BOX}))}},he={name:"background-color",initialValue:"transparent",prefix:!1,type:oe.TYPE_VALUE,format:"color"},de=function(A){var e=ZA(A[0]),t=A[1];return t&&kA(t)?{color:e,stop:t}:{color:e,stop:null}},pe=function(A,e){var t=A[0],n=A[A.length-1];null===t.stop&&(t.stop=VA),null===n.stop&&(n.stop=jA);for(var r=[],o=0,i=0;io?r.push(a):r.push(o),o=a}else r.push(null)}var c=null;for(i=0;iA.optimumDistance)?{optimumCorner:e,optimumDistance:s}:A}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Ce=function(A){var e=qA(180),t=[];return MA(A).forEach((function(A,n){if(0===n){var r=A[0];if(r.type===B.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(e=YA(A));if(WA(r))return void(e=(JA(r)+qA(270))%qA(360))}var o=de(A);t.push(o)})),{angle:e,stops:t,type:ue.LINEAR_GRADIENT}},Ee=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},me=function(A,e,t,n,r){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",A.toString()),i.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(r),i},Ue=function(A){return new Promise((function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},ve={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);var n=e.getBoundingClientRect(),r=Math.round(n.height);if(A.body.removeChild(t),123===r)return!0}}return!1}(document);return Object.defineProperty(ve,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(ve,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var n=new Image,r=e.toDataURL();n.src=r;var o=me(100,100,0,0,n);return t.fillStyle="red",t.fillRect(0,0,100,100),Ue(o).then((function(e){t.drawImage(e,0,0);var n=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var o=A.createElement("div");return o.style.backgroundImage="url("+r+")",o.style.height="100px",Ee(n)?Ue(me(100,100,0,0,o)):Promise.reject(!1)})).then((function(A){return t.drawImage(A,0,0),Ee(t.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(ve,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(ve,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(ve,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ve,"SUPPORT_CORS_XHR",{value:A}),A}},Fe=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e0&&setTimeout((function(){return e("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise((function(r,o){var i=ve.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status)if("text"===i)r(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return r(A.result)}),!1),A.addEventListener("error",(function(A){return o(A)}),!1),A.readAsDataURL(s.response)}else o("Failed to proxy resource "+n+" with status code "+s.status)},s.onerror=o,s.open("GET",t+"?url="+encodeURIComponent(A)+"&responseType="+i),"text"!==i&&s instanceof XMLHttpRequest&&(s.responseType=i),e._options.imageTimeout){var a=e._options.imageTimeout;s.timeout=a,s.ontimeout=function(){return o("Timed out ("+a+"ms) proxying "+n)}}s.send()}))},A}(),He=/^data:image\/svg\+xml/i,_e=/^data:image\/.*;base64,/i,Ne=/^data:image\/.*/i,Oe=function(A){return ve.SUPPORT_SVG_DRAWING||!Se(A)},Te=function(A){return Ne.test(A)},Ie=function(A){return _e.test(A)},Ke=function(A){return"blob"===A.substr(0,4)},Se=function(A){return"svg"===A.substr(-3).toLowerCase()||He.test(A)},Le=function(A){var e=le.CIRCLE,t=Be.FARTHEST_CORNER,n=[],r=[];return MA(A).forEach((function(A,o){var i=!0;if(0===o?i=A.reduce((function(A,e){if(IA(e))switch(e.value){case"center":return r.push(zA),!1;case"top":case"left":return r.push(VA),!1;case"right":case"bottom":return r.push(jA),!1}else if(kA(e)||DA(e))return r.push(e),!1;return A}),i):1===o&&(i=A.reduce((function(A,n){if(IA(n))switch(n.value){case"circle":return e=le.CIRCLE,!1;case"ellipse":return e=le.ELLIPSE,!1;case"contain":case"closest-side":return t=Be.CLOSEST_SIDE,!1;case"farthest-side":return t=Be.FARTHEST_SIDE,!1;case"closest-corner":return t=Be.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return t=Be.FARTHEST_CORNER,!1}else if(DA(n)||kA(n))return Array.isArray(t)||(t=[]),t.push(n),!1;return A}),i)),i){var s=de(A);n.push(s)}})),{size:t,shape:e,stops:n,position:r,type:ue.RADIAL_GRADIENT}};!function(A){A[A.URL=0]="URL",A[A.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",A[A.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(ue||(ue={})),function(A){A[A.CIRCLE=0]="CIRCLE",A[A.ELLIPSE=1]="ELLIPSE"}(le||(le={})),function(A){A[A.CLOSEST_SIDE=0]="CLOSEST_SIDE",A[A.FARTHEST_SIDE=1]="FARTHEST_SIDE",A[A.CLOSEST_CORNER=2]="CLOSEST_CORNER",A[A.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Be||(Be={}));var Re,Me=function(A){if(A.type===B.URL_TOKEN){var e={url:A.value,type:ue.URL};return be.getInstance().addImage(A.value),e}if(A.type===B.FUNCTION){var t=xe[A.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(A.values)}throw new Error("Unsupported image type")},xe={"linear-gradient":function(A){var e=qA(180),t=[];return MA(A).forEach((function(A,n){if(0===n){var r=A[0];if(r.type===B.IDENT_TOKEN&&"to"===r.value)return void(e=YA(A));if(WA(r))return void(e=JA(r))}var o=de(A);t.push(o)})),{angle:e,stops:t,type:ue.LINEAR_GRADIENT}},"-moz-linear-gradient":Ce,"-ms-linear-gradient":Ce,"-o-linear-gradient":Ce,"-webkit-linear-gradient":Ce,"radial-gradient":function(A){var e=le.CIRCLE,t=Be.FARTHEST_CORNER,n=[],r=[];return MA(A).forEach((function(A,o){var i=!0;if(0===o){var s=!1;i=A.reduce((function(A,n){if(s)if(IA(n))switch(n.value){case"center":return r.push(zA),A;case"top":case"left":return r.push(VA),A;case"right":case"bottom":return r.push(jA),A}else(kA(n)||DA(n))&&r.push(n);else if(IA(n))switch(n.value){case"circle":return e=le.CIRCLE,!1;case"ellipse":return e=le.ELLIPSE,!1;case"at":return s=!0,!1;case"closest-side":return t=Be.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return t=Be.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return t=Be.CLOSEST_CORNER,!1;case"farthest-corner":return t=Be.FARTHEST_CORNER,!1}else if(DA(n)||kA(n))return Array.isArray(t)||(t=[]),t.push(n),!1;return A}),i)}if(i){var a=de(A);n.push(a)}})),{size:t,shape:e,stops:n,position:r,type:ue.RADIAL_GRADIENT}},"-moz-radial-gradient":Le,"-ms-radial-gradient":Le,"-o-radial-gradient":Le,"-webkit-radial-gradient":Le,"-webkit-gradient":function(A){var e=qA(180),t=[],n=ue.LINEAR_GRADIENT,r=le.CIRCLE,o=Be.FARTHEST_CORNER;return MA(A).forEach((function(A,e){var r=A[0];if(0===e){if(IA(r)&&"linear"===r.value)return void(n=ue.LINEAR_GRADIENT);if(IA(r)&&"radial"===r.value)return void(n=ue.RADIAL_GRADIENT)}if(r.type===B.FUNCTION)if("from"===r.name){var o=ZA(r.values[0]);t.push({stop:VA,color:o})}else if("to"===r.name)o=ZA(r.values[0]),t.push({stop:jA,color:o});else if("color-stop"===r.name){var i=r.values.filter(RA);if(2===i.length){o=ZA(i[1]);var s=i[0];TA(s)&&t.push({stop:{type:B.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}})),n===ue.LINEAR_GRADIENT?{angle:(e+qA(180))%qA(360),stops:t,type:n}:{size:o,shape:r,stops:t,position:[],type:n}}},De={name:"background-image",initialValue:"none",type:oe.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===B.IDENT_TOKEN&&"none"===e.value?[]:A.filter((function(A){return RA(A)&&function(A){return A.type!==B.FUNCTION||xe[A.name]}(A)})).map(Me)}},ke={name:"background-origin",initialValue:"border-box",prefix:!1,type:oe.LIST,parse:function(A){return A.map((function(A){if(IA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Pe={name:"background-position",initialValue:"0% 0%",type:oe.LIST,prefix:!1,parse:function(A){return MA(A).map((function(A){return A.filter(kA)})).map(PA)}};!function(A){A[A.REPEAT=0]="REPEAT",A[A.NO_REPEAT=1]="NO_REPEAT",A[A.REPEAT_X=2]="REPEAT_X",A[A.REPEAT_Y=3]="REPEAT_Y"}(Re||(Re={}));var Ve,ze={name:"background-repeat",initialValue:"repeat",prefix:!1,type:oe.LIST,parse:function(A){return MA(A).map((function(A){return A.filter(IA).map((function(A){return A.value})).join(" ")})).map(je)}},je=function(A){switch(A){case"no-repeat":return Re.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Re.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Re.REPEAT_Y;case"repeat":default:return Re.REPEAT}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(Ve||(Ve={}));var Xe,Ge={name:"background-size",initialValue:"0",prefix:!1,type:oe.LIST,parse:function(A){return MA(A).map((function(A){return A.filter(Je)}))}},Je=function(A){return IA(A)||kA(A)},We=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:oe.TYPE_VALUE,format:"color"}},Ye=We("top"),qe=We("right"),Ze=We("bottom"),$e=We("left"),At=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:oe.LIST,parse:function(A){return PA(A.filter(kA))}}},et=At("top-left"),tt=At("top-right"),nt=At("bottom-right"),rt=At("bottom-left");!function(A){A[A.NONE=0]="NONE",A[A.SOLID=1]="SOLID"}(Xe||(Xe={}));var ot,it=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"none":return Xe.NONE}return Xe.SOLID}}},st=it("top"),at=it("right"),ct=it("bottom"),ut=it("left"),lt=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:oe.VALUE,prefix:!1,parse:function(A){return OA(A)?A.number:0}}},Bt=lt("top"),ft=lt("right"),ht=lt("bottom"),dt=lt("left"),pt={name:"color",initialValue:"transparent",prefix:!1,type:oe.TYPE_VALUE,format:"color"},gt={name:"display",initialValue:"inline-block",prefix:!1,type:oe.LIST,parse:function(A){return A.filter(IA).reduce((function(A,e){return A|wt(e.value)}),0)}},wt=function(A){switch(A){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(A){A[A.NONE=0]="NONE",A[A.LEFT=1]="LEFT",A[A.RIGHT=2]="RIGHT",A[A.INLINE_START=3]="INLINE_START",A[A.INLINE_END=4]="INLINE_END"}(ot||(ot={}));var Qt,Ct={name:"float",initialValue:"none",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"left":return ot.LEFT;case"right":return ot.RIGHT;case"inline-start":return ot.INLINE_START;case"inline-end":return ot.INLINE_END}return ot.NONE}},Et={name:"letter-spacing",initialValue:"0",prefix:!1,type:oe.VALUE,parse:function(A){return A.type===B.IDENT_TOKEN&&"normal"===A.value?0:A.type===B.NUMBER_TOKEN||A.type===B.DIMENSION_TOKEN?A.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Qt||(Qt={}));var mt,Ut={name:"line-break",initialValue:"normal",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"strict":return Qt.STRICT;case"normal":default:return Qt.NORMAL}}},vt={name:"line-height",initialValue:"normal",prefix:!1,type:oe.TOKEN_VALUE},Ft={name:"list-style-image",initialValue:"none",type:oe.VALUE,prefix:!1,parse:function(A){return A.type===B.IDENT_TOKEN&&"none"===A.value?null:Me(A)}};!function(A){A[A.INSIDE=0]="INSIDE",A[A.OUTSIDE=1]="OUTSIDE"}(mt||(mt={}));var bt,yt={name:"list-style-position",initialValue:"outside",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"inside":return mt.INSIDE;case"outside":default:return mt.OUTSIDE}}};!function(A){A[A.NONE=-1]="NONE",A[A.DISC=0]="DISC",A[A.CIRCLE=1]="CIRCLE",A[A.SQUARE=2]="SQUARE",A[A.DECIMAL=3]="DECIMAL",A[A.CJK_DECIMAL=4]="CJK_DECIMAL",A[A.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",A[A.LOWER_ROMAN=6]="LOWER_ROMAN",A[A.UPPER_ROMAN=7]="UPPER_ROMAN",A[A.LOWER_GREEK=8]="LOWER_GREEK",A[A.LOWER_ALPHA=9]="LOWER_ALPHA",A[A.UPPER_ALPHA=10]="UPPER_ALPHA",A[A.ARABIC_INDIC=11]="ARABIC_INDIC",A[A.ARMENIAN=12]="ARMENIAN",A[A.BENGALI=13]="BENGALI",A[A.CAMBODIAN=14]="CAMBODIAN",A[A.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",A[A.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",A[A.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",A[A.DEVANAGARI=18]="DEVANAGARI",A[A.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",A[A.GEORGIAN=20]="GEORGIAN",A[A.GUJARATI=21]="GUJARATI",A[A.GURMUKHI=22]="GURMUKHI",A[A.HEBREW=22]="HEBREW",A[A.HIRAGANA=23]="HIRAGANA",A[A.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",A[A.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",A[A.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",A[A.KANNADA=27]="KANNADA",A[A.KATAKANA=28]="KATAKANA",A[A.KATAKANA_IROHA=29]="KATAKANA_IROHA",A[A.KHMER=30]="KHMER",A[A.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",A[A.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",A[A.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",A[A.LAO=34]="LAO",A[A.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",A[A.MALAYALAM=36]="MALAYALAM",A[A.MONGOLIAN=37]="MONGOLIAN",A[A.MYANMAR=38]="MYANMAR",A[A.ORIYA=39]="ORIYA",A[A.PERSIAN=40]="PERSIAN",A[A.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",A[A.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",A[A.TAMIL=43]="TAMIL",A[A.TELUGU=44]="TELUGU",A[A.THAI=45]="THAI",A[A.TIBETAN=46]="TIBETAN",A[A.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",A[A.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",A[A.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",A[A.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",A[A.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(bt||(bt={}));var Ht,_t={name:"list-style-type",initialValue:"none",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"disc":return bt.DISC;case"circle":return bt.CIRCLE;case"square":return bt.SQUARE;case"decimal":return bt.DECIMAL;case"cjk-decimal":return bt.CJK_DECIMAL;case"decimal-leading-zero":return bt.DECIMAL_LEADING_ZERO;case"lower-roman":return bt.LOWER_ROMAN;case"upper-roman":return bt.UPPER_ROMAN;case"lower-greek":return bt.LOWER_GREEK;case"lower-alpha":return bt.LOWER_ALPHA;case"upper-alpha":return bt.UPPER_ALPHA;case"arabic-indic":return bt.ARABIC_INDIC;case"armenian":return bt.ARMENIAN;case"bengali":return bt.BENGALI;case"cambodian":return bt.CAMBODIAN;case"cjk-earthly-branch":return bt.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return bt.CJK_HEAVENLY_STEM;case"cjk-ideographic":return bt.CJK_IDEOGRAPHIC;case"devanagari":return bt.DEVANAGARI;case"ethiopic-numeric":return bt.ETHIOPIC_NUMERIC;case"georgian":return bt.GEORGIAN;case"gujarati":return bt.GUJARATI;case"gurmukhi":return bt.GURMUKHI;case"hebrew":return bt.HEBREW;case"hiragana":return bt.HIRAGANA;case"hiragana-iroha":return bt.HIRAGANA_IROHA;case"japanese-formal":return bt.JAPANESE_FORMAL;case"japanese-informal":return bt.JAPANESE_INFORMAL;case"kannada":return bt.KANNADA;case"katakana":return bt.KATAKANA;case"katakana-iroha":return bt.KATAKANA_IROHA;case"khmer":return bt.KHMER;case"korean-hangul-formal":return bt.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return bt.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return bt.KOREAN_HANJA_INFORMAL;case"lao":return bt.LAO;case"lower-armenian":return bt.LOWER_ARMENIAN;case"malayalam":return bt.MALAYALAM;case"mongolian":return bt.MONGOLIAN;case"myanmar":return bt.MYANMAR;case"oriya":return bt.ORIYA;case"persian":return bt.PERSIAN;case"simp-chinese-formal":return bt.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return bt.SIMP_CHINESE_INFORMAL;case"tamil":return bt.TAMIL;case"telugu":return bt.TELUGU;case"thai":return bt.THAI;case"tibetan":return bt.TIBETAN;case"trad-chinese-formal":return bt.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return bt.TRAD_CHINESE_INFORMAL;case"upper-armenian":return bt.UPPER_ARMENIAN;case"disclosure-open":return bt.DISCLOSURE_OPEN;case"disclosure-closed":return bt.DISCLOSURE_CLOSED;case"none":default:return bt.NONE}}},Nt=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:oe.TOKEN_VALUE}},Ot=Nt("top"),Tt=Nt("right"),It=Nt("bottom"),Kt=Nt("left");!function(A){A[A.VISIBLE=0]="VISIBLE",A[A.HIDDEN=1]="HIDDEN",A[A.SCROLL=2]="SCROLL",A[A.AUTO=3]="AUTO"}(Ht||(Ht={}));var St,Lt={name:"overflow",initialValue:"visible",prefix:!1,type:oe.LIST,parse:function(A){return A.filter(IA).map((function(A){switch(A.value){case"hidden":return Ht.HIDDEN;case"scroll":return Ht.SCROLL;case"auto":return Ht.AUTO;case"visible":default:return Ht.VISIBLE}}))}};!function(A){A.NORMAL="normal",A.BREAK_WORD="break-word"}(St||(St={}));var Rt,Mt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return St.BREAK_WORD;case"normal":default:return St.NORMAL}}},xt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:oe.TYPE_VALUE,format:"length-percentage"}},Dt=xt("top"),kt=xt("right"),Pt=xt("bottom"),Vt=xt("left");!function(A){A[A.LEFT=0]="LEFT",A[A.CENTER=1]="CENTER",A[A.RIGHT=2]="RIGHT"}(Rt||(Rt={}));var zt,jt={name:"text-align",initialValue:"left",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"right":return Rt.RIGHT;case"center":case"justify":return Rt.CENTER;case"left":default:return Rt.LEFT}}};!function(A){A[A.STATIC=0]="STATIC",A[A.RELATIVE=1]="RELATIVE",A[A.ABSOLUTE=2]="ABSOLUTE",A[A.FIXED=3]="FIXED",A[A.STICKY=4]="STICKY"}(zt||(zt={}));var Xt,Gt={name:"position",initialValue:"static",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"relative":return zt.RELATIVE;case"absolute":return zt.ABSOLUTE;case"fixed":return zt.FIXED;case"sticky":return zt.STICKY}return zt.STATIC}},Jt={name:"text-shadow",initialValue:"none",type:oe.LIST,prefix:!1,parse:function(A){return 1===A.length&&SA(A[0],"none")?[]:MA(A).map((function(A){for(var e={color:ce.TRANSPARENT,offsetX:VA,offsetY:VA,blur:VA},t=0,n=0;n1?1:0],this.overflowWrap=yn(Mt,A.overflowWrap),this.paddingTop=yn(Dt,A.paddingTop),this.paddingRight=yn(kt,A.paddingRight),this.paddingBottom=yn(Pt,A.paddingBottom),this.paddingLeft=yn(Vt,A.paddingLeft),this.position=yn(Gt,A.position),this.textAlign=yn(jt,A.textAlign),this.textDecorationColor=yn(cn,A.textDecorationColor||A.color),this.textDecorationLine=yn(un,A.textDecorationLine),this.textShadow=yn(Jt,A.textShadow),this.textTransform=yn(Yt,A.textTransform),this.transform=yn(qt,A.transform),this.transformOrigin=yn(en,A.transformOrigin),this.visibility=yn(nn,A.visibility),this.wordBreak=yn(on,A.wordBreak),this.zIndex=yn(sn,A.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Wt.VISIBLE},A.prototype.isTransparent=function(){return $A(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return this.position!==zt.STATIC},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==ot.NONE},A.prototype.isInlineLevel=function(){return gn(this.display,4)||gn(this.display,33554432)||gn(this.display,268435456)||gn(this.display,536870912)||gn(this.display,67108864)||gn(this.display,134217728)},A}(),Fn=function(A){this.content=yn(wn,A.content),this.quotes=yn(En,A.quotes)},bn=function(A){this.counterIncrement=yn(Qn,A.counterIncrement),this.counterReset=yn(Cn,A.counterReset)},yn=function(A,e){var t=new _A,n=null!=e?e.toString():A.initialValue;t.write(n);var r=new NA(t.read());switch(A.type){case oe.IDENT_VALUE:var o=r.parseComponentValue();return A.parse(IA(o)?o.value:A.initialValue);case oe.VALUE:return A.parse(r.parseComponentValue());case oe.LIST:return A.parse(r.parseComponentValues());case oe.TOKEN_VALUE:return r.parseComponentValue();case oe.TYPE_VALUE:switch(A.format){case"angle":return JA(r.parseComponentValue());case"color":return ZA(r.parseComponentValue());case"image":return Me(r.parseComponentValue());case"length":var i=r.parseComponentValue();return DA(i)?i:VA;case"length-percentage":var s=r.parseComponentValue();return kA(s)?s:VA}}throw new Error("Attempting to parse unsupported css format type "+A.format)},Hn=function(A){this.styles=new vn(window.getComputedStyle(A,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&or(A)&&(A.style.transform="none"),this.bounds=i(A),this.flags=0},_n=function(A,e){this.text=A,this.bounds=e},Nn=function(A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var r=i(t);return t.firstChild&&n.replaceChild(t.firstChild,t),r}}return new o(0,0,0,0)},On=function(A,e,t){var n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),o.fromClientRect(r.getBoundingClientRect())},Tn=function(A,e){return 0!==e.letterSpacing?s(A).map((function(A){return a(A)})):In(A,e)},In=function(A,e){for(var t,n=function(A,e){var t=s(A),n=Y(t,e),r=n[0],o=n[1],i=n[2],a=t.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var A="×";u0)if(ve.SUPPORT_RANGE_BOUNDS)r.push(new _n(A,On(t,o,A.length)));else{var n=t.splitText(A.length);r.push(new _n(A,Nn(t))),t=n}else ve.SUPPORT_RANGE_BOUNDS||(t=t.splitText(A.length));o+=A.length})),r}(this.text,e,A)},Sn=function(A,e){switch(e){case Xt.LOWERCASE:return A.toLowerCase();case Xt.CAPITALIZE:return A.replace(Ln,Rn);case Xt.UPPERCASE:return A.toUpperCase();default:return A}},Ln=/(^|\s|:|-|\(|\))([a-z])/g,Rn=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Mn=function(A){function t(e){var t=A.call(this,e)||this;return t.src=e.currentSrc||e.src,t.intrinsicWidth=e.naturalWidth,t.intrinsicHeight=e.naturalHeight,be.getInstance().addImage(t.src),t}return e(t,A),t}(Hn),xn=function(A){function t(e){var t=A.call(this,e)||this;return t.canvas=e,t.intrinsicWidth=e.width,t.intrinsicHeight=e.height,t}return e(t,A),t}(Hn),Dn=function(A){function t(e){var t=A.call(this,e)||this,n=new XMLSerializer;return t.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,be.getInstance().addImage(t.svg),t}return e(t,A),t}(Hn),kn=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(Hn),Pn=function(A){function t(e){var t=A.call(this,e)||this;return t.start=e.start,t.reversed="boolean"==typeof e.reversed&&!0===e.reversed,t}return e(t,A),t}(Hn),Vn=[{type:B.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],zn=[{type:B.PERCENTAGE_TOKEN,flags:0,number:50}],jn="password",Xn=function(A){function t(e){var t,n,r,i=A.call(this,e)||this;switch(i.type=e.type.toLowerCase(),i.checked=e.checked,i.value=0===(n=(t=e).type===jn?new Array(t.value.length+1).join("•"):t.value).length?t.placeholder||"":n,"checkbox"!==i.type&&"radio"!==i.type||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=Xe.SOLID,i.styles.backgroundClip=[ie.BORDER_BOX],i.styles.backgroundOrigin=[0],i.bounds=(r=i.bounds).width>r.height?new o(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)e.textNodes.push(new Kn(n,e.styles));else if(rr(n)){var o=$n(n);o.styles.isVisible()&&(er(n,o,t)?o.flags|=4:tr(o.styles)&&(o.flags|=2),-1!==qn.indexOf(n.tagName)&&(o.flags|=8),e.elements.push(o),gr(n)||ur(n)||wr(n)||Zn(n,o,t))}},$n=function(A){return fr(A)?new Mn(A):Br(A)?new xn(A):ur(A)?new Dn(A):sr(A)?new kn(A):ar(A)?new Pn(A):cr(A)?new Xn(A):wr(A)?new Gn(A):gr(A)?new Jn(A):hr(A)?new Yn(A):new Hn(A)},Ar=function(A){var e=$n(A);return e.flags|=4,Zn(A,e,e),e},er=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||lr(A)&&t.styles.isTransparent()},tr=function(A){return A.isPositioned()||A.isFloating()},nr=function(A){return A.nodeType===Node.TEXT_NODE},rr=function(A){return A.nodeType===Node.ELEMENT_NODE},or=function(A){return rr(A)&&void 0!==A.style&&!ir(A)},ir=function(A){return"object"==typeof A.className},sr=function(A){return"LI"===A.tagName},ar=function(A){return"OL"===A.tagName},cr=function(A){return"INPUT"===A.tagName},ur=function(A){return"svg"===A.tagName},lr=function(A){return"BODY"===A.tagName},Br=function(A){return"CANVAS"===A.tagName},fr=function(A){return"IMG"===A.tagName},hr=function(A){return"IFRAME"===A.tagName},dr=function(A){return"STYLE"===A.tagName},pr=function(A){return"SCRIPT"===A.tagName},gr=function(A){return"TEXTAREA"===A.tagName},wr=function(A){return"SELECT"===A.tagName},Qr=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,r=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(r=!1,t[Math.max(0,t.length-1)]+=A.increment)}));var o=[];return r&&n.forEach((function(A){var t=e.counters[A.counter];o.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),o},A}(),Cr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Er={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},mr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ur={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},vr=function(A,e,t,n,r,o){return At?_r(A,r,o.length>0):n.integers.reduce((function(e,t,r){for(;A>=t;)A-=t,e+=n.values[r];return e}),"")+o},Fr=function(A,e,t,n){var r="";do{t||A--,r=n(A)+r,A/=e}while(A*e>=e);return r},br=function(A,e,t,n,r){var o=t-e+1;return(A<0?"-":"")+(Fr(Math.abs(A),o,n,(function(A){return a(Math.floor(A%o)+e)}))+r)},yr=function(A,e,t){void 0===t&&(t=". ");var n=e.length;return Fr(Math.abs(A),n,!1,(function(A){return e[Math.floor(A%n)]}))+t},Hr=function(A,e,t,n,r,o){if(A<-9999||A>9999)return _r(A,bt.CJK_DECIMAL,r.length>0);var i=Math.abs(A),s=r;if(0===i)return e[0]+s;for(var a=0;i>0&&a<=4;a++){var c=i%10;0===c&&gn(o,1)&&""!==s?s=e[c]+s:c>1||1===c&&0===a||1===c&&1===a&&gn(o,2)||1===c&&1===a&&gn(o,4)&&A>100||1===c&&a>1&&gn(o,8)?s=e[c]+(a>0?t[a-1]:"")+s:1===c&&a>0&&(s=t[a-1]+s),i=Math.floor(i/10)}return(A<0?n:"")+s},_r=function(A,e,t){var n=t?". ":"",r=t?"、":"",o=t?", ":"",i=t?" ":"";switch(e){case bt.DISC:return"•"+i;case bt.CIRCLE:return"◦"+i;case bt.SQUARE:return"◾"+i;case bt.DECIMAL_LEADING_ZERO:var s=br(A,48,57,!0,n);return s.length<4?"0"+s:s;case bt.CJK_DECIMAL:return yr(A,"〇一二三四五六七八九",r);case bt.LOWER_ROMAN:return vr(A,1,3999,Cr,bt.DECIMAL,n).toLowerCase();case bt.UPPER_ROMAN:return vr(A,1,3999,Cr,bt.DECIMAL,n);case bt.LOWER_GREEK:return br(A,945,969,!1,n);case bt.LOWER_ALPHA:return br(A,97,122,!1,n);case bt.UPPER_ALPHA:return br(A,65,90,!1,n);case bt.ARABIC_INDIC:return br(A,1632,1641,!0,n);case bt.ARMENIAN:case bt.UPPER_ARMENIAN:return vr(A,1,9999,Er,bt.DECIMAL,n);case bt.LOWER_ARMENIAN:return vr(A,1,9999,Er,bt.DECIMAL,n).toLowerCase();case bt.BENGALI:return br(A,2534,2543,!0,n);case bt.CAMBODIAN:case bt.KHMER:return br(A,6112,6121,!0,n);case bt.CJK_EARTHLY_BRANCH:return yr(A,"子丑寅卯辰巳午未申酉戌亥",r);case bt.CJK_HEAVENLY_STEM:return yr(A,"甲乙丙丁戊己庚辛壬癸",r);case bt.CJK_IDEOGRAPHIC:case bt.TRAD_CHINESE_INFORMAL:return Hr(A,"零一二三四五六七八九","十百千萬","負",r,14);case bt.TRAD_CHINESE_FORMAL:return Hr(A,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",r,15);case bt.SIMP_CHINESE_INFORMAL:return Hr(A,"零一二三四五六七八九","十百千萬","负",r,14);case bt.SIMP_CHINESE_FORMAL:return Hr(A,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",r,15);case bt.JAPANESE_INFORMAL:return Hr(A,"〇一二三四五六七八九","十百千万","マイナス",r,0);case bt.JAPANESE_FORMAL:return Hr(A,"零壱弐参四伍六七八九","拾百千万","マイナス",r,7);case bt.KOREAN_HANGUL_FORMAL:return Hr(A,"영일이삼사오육칠팔구","십백천만","마이너스",o,7);case bt.KOREAN_HANJA_INFORMAL:return Hr(A,"零一二三四五六七八九","十百千萬","마이너스",o,0);case bt.KOREAN_HANJA_FORMAL:return Hr(A,"零壹貳參四五六七八九","拾百千","마이너스",o,7);case bt.DEVANAGARI:return br(A,2406,2415,!0,n);case bt.GEORGIAN:return vr(A,1,19999,Ur,bt.DECIMAL,n);case bt.GUJARATI:return br(A,2790,2799,!0,n);case bt.GURMUKHI:return br(A,2662,2671,!0,n);case bt.HEBREW:return vr(A,1,10999,mr,bt.DECIMAL,n);case bt.HIRAGANA:return yr(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case bt.HIRAGANA_IROHA:return yr(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case bt.KANNADA:return br(A,3302,3311,!0,n);case bt.KATAKANA:return yr(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case bt.KATAKANA_IROHA:return yr(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case bt.LAO:return br(A,3792,3801,!0,n);case bt.MONGOLIAN:return br(A,6160,6169,!0,n);case bt.MYANMAR:return br(A,4160,4169,!0,n);case bt.ORIYA:return br(A,2918,2927,!0,n);case bt.PERSIAN:return br(A,1776,1785,!0,n);case bt.TAMIL:return br(A,3046,3055,!0,n);case bt.TELUGU:return br(A,3174,3183,!0,n);case bt.THAI:return br(A,3664,3673,!0,n);case bt.TIBETAN:return br(A,3872,3881,!0,n);case bt.DECIMAL:default:return br(A,48,57,!0,n)}},Nr=function(){function A(A,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=A,this.counters=new Qr,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}return A.prototype.toIFrame=function(A,e){var t=this,o=Tr(A,e);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=o.contentWindow,c=a.document,u=Ir(o).then((function(){return n(t,void 0,void 0,(function(){var A;return r(this,(function(t){switch(t.label){case 0:return this.scrolledElements.forEach(Rr),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(c.documentElement.style.top=-e.top+"px",c.documentElement.style.left=-e.left+"px",c.documentElement.style.position="absolute")),A=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:t.sent(),t.label=2;case 2:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(c)})).then((function(){return o}))]:[2,o]}}))}))}));return c.open(),c.write(Sr(document.doctype)+""),Lr(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},A.prototype.createElementClone=function(A){if(Br(A))return this.createCanvasClone(A);if(dr(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return fr(e)&&"lazy"===e.loading&&(e.loading="eager"),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(A){if(Fe.getInstance(this.options.id).error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(A){Fe.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var t=A.cloneNode(!1);try{t.width=A.width,t.height=A.height;var n=A.getContext("2d"),r=t.getContext("2d");return r&&(n?r.putImageData(n.getImageData(0,0,A.width,A.height),0,0):r.drawImage(A,0,0)),t}catch(A){}return t},A.prototype.cloneNode=function(A){if(nr(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&rr(A)&&(or(A)||ir(A))){var t=this.createElementClone(A),n=e.getComputedStyle(A),r=e.getComputedStyle(A,":before"),o=e.getComputedStyle(A,":after");this.referenceElement===A&&or(t)&&(this.clonedReferenceElement=t),lr(t)&&Dr(t);for(var i=this.counters.parse(new bn(n)),s=this.resolvePseudoContent(A,t,r,dn.BEFORE),a=A.firstChild;a;a=a.nextSibling)rr(a)&&(pr(a)||a.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(a))||this.options.copyStyles&&rr(a)&&dr(a)||t.appendChild(this.cloneNode(a));s&&t.insertBefore(s,t.firstChild);var c=this.resolvePseudoContent(A,t,o,dn.AFTER);return c&&t.appendChild(c),this.counters.pop(i),n&&(this.options.copyStyles||ir(A))&&!hr(A)&&Kr(n,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),(gr(A)||wr(A))&&(gr(t)||wr(t))&&(t.value=A.value),t}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,n){var r=this;if(t){var o=t.content,i=e.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==t.display){this.counters.parse(new bn(t));var s=new Fn(t),a=i.createElement("html2canvaspseudoelement");Kr(t,a),s.content.forEach((function(e){if(e.type===B.STRING_TOKEN)a.appendChild(i.createTextNode(e.value));else if(e.type===B.URL_TOKEN){var t=i.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(e.type===B.FUNCTION){if("attr"===e.name){var n=e.values.filter(IA);n.length&&a.appendChild(i.createTextNode(A.getAttribute(n[0].value)||""))}else if("counter"===e.name){var o=e.values.filter(RA),c=o[0],u=o[1];if(c&&IA(c)){var l=r.counters.getCounterValue(c.value),f=u&&IA(u)?_t.parse(u.value):bt.DECIMAL;a.appendChild(i.createTextNode(_r(l,f,!1)))}}else if("counters"===e.name){var h=e.values.filter(RA),d=(c=h[0],h[1]);if(u=h[2],c&&IA(c)){var p=r.counters.getCounterValues(c.value),g=u&&IA(u)?_t.parse(u.value):bt.DECIMAL,w=d&&d.type===B.STRING_TOKEN?d.value:"",Q=p.map((function(A){return _r(A,g,!1)})).join(w);a.appendChild(i.createTextNode(Q))}}}else if(e.type===B.IDENT_TOKEN)switch(e.value){case"open-quote":a.appendChild(i.createTextNode(mn(s.quotes,r.quoteDepth++,!0)));break;case"close-quote":a.appendChild(i.createTextNode(mn(s.quotes,--r.quoteDepth,!1)));break;default:a.appendChild(i.createTextNode(e.value))}})),a.className=Mr+" "+xr;var c=n===dn.BEFORE?" "+Mr:" "+xr;return ir(e)?e.className.baseValue+=c:e.className+=c,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(dn||(dn={}));var Or,Tr=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute("data-html2canvas-ignore","true"),A.body.appendChild(t),t},Ir=function(A){return new Promise((function(e,t){var n=A.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=A.onload=r.onreadystatechange=function(){n.onload=A.onload=r.onreadystatechange=null;var t=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),e(A))}),50)}}))},Kr=function(A,e){for(var t=A.length-1;t>=0;t--){var n=A.item(t);"content"!==n&&e.style.setProperty(n,A.getPropertyValue(n))}return e},Sr=function(A){var e="";return A&&(e+=""),e},Lr=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Rr=function(A){var e=A[0],t=A[1],n=A[2];e.scrollLeft=t,e.scrollTop=n},Mr="___html2canvas___pseudoelement_before",xr="___html2canvas___pseudoelement_after",Dr=function(A){kr(A,"."+Mr+':before{\n content: "" !important;\n display: none !important;\n}\n .'+xr+':after{\n content: "" !important;\n display: none !important;\n}')},kr=function(A,e){var t=A.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,A.appendChild(n)}};!function(A){A[A.VECTOR=0]="VECTOR",A[A.BEZIER_CURVE=1]="BEZIER_CURVE"}(Or||(Or={}));var Pr,Vr=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},zr=function(){function A(A,e){this.type=Or.VECTOR,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),jr=function(A,e,t){return new zr(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Xr=function(){function A(A,e,t,n){this.type=Or.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,t){var n=jr(this.start,this.startControl,e),r=jr(this.startControl,this.endControl,e),o=jr(this.endControl,this.end,e),i=jr(n,r,e),s=jr(r,o,e),a=jr(i,s,e);return t?new A(this.start,n,i,a):new A(a,s,o,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Gr=function(A){return A.type===Or.BEZIER_CURVE},Jr=function(A){var e=A.styles,t=A.bounds,n=XA(e.borderTopLeftRadius,t.width,t.height),r=n[0],o=n[1],i=XA(e.borderTopRightRadius,t.width,t.height),s=i[0],a=i[1],c=XA(e.borderBottomRightRadius,t.width,t.height),u=c[0],l=c[1],B=XA(e.borderBottomLeftRadius,t.width,t.height),f=B[0],h=B[1],d=[];d.push((r+s)/t.width),d.push((f+u)/t.width),d.push((o+h)/t.height),d.push((a+l)/t.height);var p=Math.max.apply(Math,d);p>1&&(r/=p,o/=p,s/=p,a/=p,u/=p,l/=p,f/=p,h/=p);var g=t.width-s,w=t.height-l,Q=t.width-u,C=t.height-h,E=e.borderTopWidth,m=e.borderRightWidth,U=e.borderBottomWidth,v=e.borderLeftWidth,F=GA(e.paddingTop,A.bounds.width),b=GA(e.paddingRight,A.bounds.width),y=GA(e.paddingBottom,A.bounds.width),H=GA(e.paddingLeft,A.bounds.width);this.topLeftBorderBox=r>0||o>0?Wr(t.left,t.top,r,o,Pr.TOP_LEFT):new zr(t.left,t.top),this.topRightBorderBox=s>0||a>0?Wr(t.left+g,t.top,s,a,Pr.TOP_RIGHT):new zr(t.left+t.width,t.top),this.bottomRightBorderBox=u>0||l>0?Wr(t.left+Q,t.top+w,u,l,Pr.BOTTOM_RIGHT):new zr(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=f>0||h>0?Wr(t.left,t.top+C,f,h,Pr.BOTTOM_LEFT):new zr(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||o>0?Wr(t.left+v,t.top+E,Math.max(0,r-v),Math.max(0,o-E),Pr.TOP_LEFT):new zr(t.left+v,t.top+E),this.topRightPaddingBox=s>0||a>0?Wr(t.left+Math.min(g,t.width+v),t.top+E,g>t.width+v?0:s-v,a-E,Pr.TOP_RIGHT):new zr(t.left+t.width-m,t.top+E),this.bottomRightPaddingBox=u>0||l>0?Wr(t.left+Math.min(Q,t.width-v),t.top+Math.min(w,t.height+E),Math.max(0,u-m),l-U,Pr.BOTTOM_RIGHT):new zr(t.left+t.width-m,t.top+t.height-U),this.bottomLeftPaddingBox=f>0||h>0?Wr(t.left+v,t.top+C,Math.max(0,f-v),h-U,Pr.BOTTOM_LEFT):new zr(t.left+v,t.top+t.height-U),this.topLeftContentBox=r>0||o>0?Wr(t.left+v+H,t.top+E+F,Math.max(0,r-(v+H)),Math.max(0,o-(E+F)),Pr.TOP_LEFT):new zr(t.left+v+H,t.top+E+F),this.topRightContentBox=s>0||a>0?Wr(t.left+Math.min(g,t.width+v+H),t.top+E+F,g>t.width+v+H?0:s-v+H,a-(E+F),Pr.TOP_RIGHT):new zr(t.left+t.width-(m+b),t.top+E+F),this.bottomRightContentBox=u>0||l>0?Wr(t.left+Math.min(Q,t.width-(v+H)),t.top+Math.min(w,t.height+E+F),Math.max(0,u-(m+b)),l-(U+y),Pr.BOTTOM_RIGHT):new zr(t.left+t.width-(m+b),t.top+t.height-(U+y)),this.bottomLeftContentBox=f>0||h>0?Wr(t.left+v+H,t.top+C,Math.max(0,f-(v+H)),h-(U+y),Pr.BOTTOM_LEFT):new zr(t.left+v+H,t.top+t.height-(U+y))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Pr||(Pr={}));var Wr=function(A,e,t,n,r){var o=(Math.sqrt(2)-1)/3*4,i=t*o,s=n*o,a=A+t,c=e+n;switch(r){case Pr.TOP_LEFT:return new Xr(new zr(A,c),new zr(A,c-s),new zr(a-i,e),new zr(a,e));case Pr.TOP_RIGHT:return new Xr(new zr(A,e),new zr(A+i,e),new zr(a,c-s),new zr(a,c));case Pr.BOTTOM_RIGHT:return new Xr(new zr(a,e),new zr(a,e+s),new zr(A+i,c),new zr(A,c));case Pr.BOTTOM_LEFT:default:return new Xr(new zr(a,c),new zr(a-i,c),new zr(A,e+s),new zr(A,e))}},Yr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},qr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Zr=function(A,e,t){this.type=0,this.offsetX=A,this.offsetY=e,this.matrix=t,this.target=6},$r=function(A,e){this.type=1,this.target=e,this.path=A},Ao=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},eo=function(){function A(A,e){if(this.container=A,this.effects=e.slice(0),this.curves=new Jr(A),null!==A.styles.transform){var t=A.bounds.left+A.styles.transformOrigin[0].number,n=A.bounds.top+A.styles.transformOrigin[1].number,r=A.styles.transform;this.effects.push(new Zr(t,n,r))}if(A.styles.overflowX!==Ht.VISIBLE){var o=Yr(this.curves),i=qr(this.curves);Vr(o,i)?this.effects.push(new $r(o,6)):(this.effects.push(new $r(o,2)),this.effects.push(new $r(i,4)))}}return A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==Ht.VISIBLE){var e=Yr(this.curves),t=qr(this.curves);Vr(e,t)||A.push(new $r(t,6))}return A},A}(),to=function(A,e,t,n){A.container.elements.forEach((function(r){var o=gn(r.flags,4),i=gn(r.flags,2),s=new eo(r,A.getParentEffects());gn(r.styles.display,2048)&&n.push(s);var a=gn(r.flags,8)?[]:n;if(o||i){var c=o||r.styles.isPositioned()?t:e,u=new Ao(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var l=r.styles.zIndex.order;if(l<0){var B=0;c.negativeZIndex.some((function(A,e){return l>A.element.container.styles.zIndex.order?(B=e,!1):B>0})),c.negativeZIndex.splice(B,0,u)}else if(l>0){var f=0;c.positiveZIndex.some((function(A,e){return l>=A.element.container.styles.zIndex.order?(f=e+1,!1):f>0})),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);to(s,u,o?u:t,a)}else r.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),to(s,e,t,a);gn(r.flags,8)&&no(r,a)}))},no=function(A,e){for(var t=A instanceof Pn?A.start:1,n=A instanceof Pn&&A.reversed,r=0;r0&&A.intrinsicHeight>0){var n=io(A),r=qr(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return n(this,void 0,void 0,(function(){var t,n,i,s,a,c,u,l,f,h,d,p,g,w;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(e.effects,4),t=e.container,n=e.curves,i=t.styles,s=0,a=t.textNodes,r.label=1;case 1:return s0&&v>0&&(w=n.ctx.createPattern(d,"repeat"),n.renderRepeat(C,w,b,y))):function(A){return A.type===ue.RADIAL_GRADIENT}(t)&&(Q=so(A,e,[null,null,null]),C=Q[0],E=Q[1],m=Q[2],U=Q[3],v=Q[4],F=0===t.position.length?[zA]:t.position,b=GA(F[0],U),y=GA(F[F.length-1],v),H=function(A,e,t,n,r){var o=0,i=0;switch(A.size){case Be.CLOSEST_SIDE:A.shape===le.CIRCLE?o=i=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===le.ELLIPSE&&(o=Math.min(Math.abs(e),Math.abs(e-n)),i=Math.min(Math.abs(t),Math.abs(t-r)));break;case Be.CLOSEST_CORNER:if(A.shape===le.CIRCLE)o=i=Math.min(we(e,t),we(e,t-r),we(e-n,t),we(e-n,t-r));else if(A.shape===le.ELLIPSE){var s=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),a=Qe(n,r,e,t,!0),c=a[0],u=a[1];i=s*(o=we(c-e,(u-t)/s))}break;case Be.FARTHEST_SIDE:A.shape===le.CIRCLE?o=i=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===le.ELLIPSE&&(o=Math.max(Math.abs(e),Math.abs(e-n)),i=Math.max(Math.abs(t),Math.abs(t-r)));break;case Be.FARTHEST_CORNER:if(A.shape===le.CIRCLE)o=i=Math.max(we(e,t),we(e,t-r),we(e-n,t),we(e-n,t-r));else if(A.shape===le.ELLIPSE){s=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n));var l=Qe(n,r,e,t,!1);c=l[0],u=l[1],i=s*(o=we(c-e,(u-t)/s))}}return Array.isArray(A.size)&&(o=GA(A.size[0],n),i=2===A.size.length?GA(A.size[1],r):o),[o,i]}(t,b,y,U,v),_=H[0],N=H[1],_>0&&_>0&&(O=n.ctx.createRadialGradient(E+b,m+y,0,E+b,m+y,_),pe(t.stops,2*_).forEach((function(A){return O.addColorStop(A.stop,Ae(A.color))})),n.path(C),n.ctx.fillStyle=O,_!==N?(T=A.bounds.left+.5*A.bounds.width,I=A.bounds.top+.5*A.bounds.height,S=1/(K=N/_),n.ctx.save(),n.ctx.translate(T,I),n.ctx.transform(1,0,0,K,0,0),n.ctx.translate(-T,-I),n.ctx.fillRect(E,S*(m-I)+I,U,v*S),n.ctx.restore()):n.ctx.fill())),r.label=6;case 6:return e--,[2]}}))},n=this,o=0,i=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return o0&&N===e||A<0&&!N){if(!K.loop)return q(i,""),void setTimeout(q,9,i,"animation:"+(A>0?"bpl":"bpf")+" .3s;transition:transform .35s");N=A>0?-1:e+1}if([(N=Math.max(0,Math.min(N+A,e)))-1,N,N+1].forEach((function(A){if(A=Math.max(0,Math.min(A,e)),!L[A]){var t=O[A].src,n=document[M]("IMG");n.addEventListener("load",G.bind(null,t)),n.src=t,L[A]=n}})),L[N].complete)return P(A);h=!0,q(p,"opacity:.4;"),r[R](p),L[N].onload=function(){m&&P(A)},L[N].onerror=function(){O[N]={error:"Error loading image"},m&&P(A)}}}function P(A){h&&(r[x](p),h=!1);var e=O[N];if(e.error)alert(e.error);else{var n=r.querySelector("img:last-of-type");q(i=o=L[N],"animation:"+(A>0?"bpfl":"bpfr")+" .35s;transition:transform .35s"),q(n,"animation:"+(A>0?"bpfol":"bpfor")+" .35s both"),r[R](i),e.el&&(t=e.el)}T.innerHTML=N+1+"/"+O.length,X(O[N].caption),y&&y([i,O[N]])}function V(){var A,e,t=.95*window.innerHeight,n=.95*window.innerWidth,r=t/n,o=K.dimensions||[1920,1080],i=o[0],s=o[1],a=s/i;a>r?e=(A=Math.min(s,t))/a:A=(e=Math.min(i,n))*a,c.style.cssText+="width:"+e+"px;height:"+A+"px;"}function z(A){~[1,4].indexOf(o.readyState)?(J(),setTimeout((function(){o.play()}),99)):o.error?J(A):d=setTimeout(z,35,A)}function j(A){K.noLoader||(A&&q(p,"top:"+t.offsetTop+"px;left:"+t.offsetLeft+"px;height:"+t.clientHeight+"px;width:"+t.clientWidth+"px"),t.parentElement[A?R:x](p),h=A)}function X(A){A&&(w.innerHTML=A),q(g,"opacity:"+(A?"1;pointer-events:auto":"0"))}function G(A){!~S.indexOf(A)&&S.push(A)}function J(A){if(h&&j(),F&&F(),"string"==typeof A)return Y(),K.onError?K.onError():alert("Error: The requested "+A+" could not be loaded.");v&&G(l),o.style.cssText+=D(),q(r,"opacity:1;pointer-events:auto"),b&&(b=setTimeout(b,410)),E=!0,m=!!O,setTimeout((function(){o.style.cssText+="transition:transform .35s;transform:none",Q&&setTimeout(X,250,Q)}),60)}function W(A){var e=A?A.target:r,t=[g,C,s,a,w,_,H,p];e.blur(),U||~t.indexOf(e)||(o.style.cssText+=D(),q(r,"pointer-events:auto"),setTimeout(Y,350),clearTimeout(b),E=!1,U=!0)}function Y(){if((o===c?u:o).removeAttribute("src"),document.body[x](r),r[x](o),q(r,""),q(o,""),X(!1),m){for(var A=r.querySelectorAll("img"),e=0;e',e}function t(A,e){var t=document[M]("button");return t.className="bp-lr",t.innerHTML='',q(t,e),t.onclick=function(e){e.stopPropagation(),k(A)},t}var l=document[M]("STYLE");l.innerHTML="#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,#bp_loader{position:absolute;right:0;z-index:10}#bp_container,#bp_caption,#bp_container svg{pointer-events:none}#bp_container{top:0;z-index:9999;background:rgba(0,0,0,.7);opacity:0;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:flex;align-items:center;cursor:wait;background:0;z-index:9}#bp_loader svg{width:50%;max-width:300px;max-height:50%;margin:auto;animation:bpturn 1s infinite linear}#bp_aud,#bp_container img,#bp_sv,#bp_vid{user-select:none;max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{background:#111}#bp_sv svg{width:66px}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}#bp_aud{width:650px;top:calc(50% - 20px);bottom:auto;box-shadow:none}#bp_count{left:0;right:auto;padding:14px;color:rgba(255,255,255,.7);font-size:22px;cursor:default}#bp_container button{position:absolute;border:0;outline:0;background:0;cursor:pointer;transition:all .1s}#bp_container>.bp-x{padding:0;height:41px;width:41px;border-radius:100%;top:8px;right:14px;opacity:.8;line-height:1}#bp_container>.bp-x:focus,#bp_container>.bp-x:hover{background:rgba(255,255,255,.2)}.bp-x svg,.bp-xc svg{height:21px;width:20px;fill:#fff;vertical-align:top;}.bp-xc svg{width:16px}#bp_container .bp-xc{left:2%;bottom:100%;padding:9px 20px 7px;background:#d04444;border-radius:2px 2px 0 0;opacity:.85}#bp_container .bp-xc:focus,#bp_container .bp-xc:hover{opacity:1}.bp-lr{top:50%;top:calc(50% - 130px);padding:99px 0;width:6%;background:0;border:0;opacity:.4;transition:opacity .1s}.bp-lr:focus,.bp-lr:hover{opacity:.8}@keyframes bpf{50%{transform:translatex(15px)}100%{transform:none}}@keyframes bpl{50%{transform:translatex(-15px)}100%{transform:none}}@keyframes bpfl{0%{opacity:0;transform:translatex(70px)}100%{opacity:1;transform:none}}@keyframes bpfr{0%{opacity:0;transform:translatex(-70px)}100%{opacity:1;transform:none}}@keyframes bpfol{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(-70px)}}@keyframes bpfor{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(70px)}}@keyframes bpturn{0%{transform:none}100%{transform:rotate(360deg)}}@media (max-width:600px){.bp-lr{font-size:15vw}}",document.head[R](l),(r=document[M]("DIV")).id="bp_container",r.onclick=W,B=e("bp-x"),r[R](B),"ontouchstart"in window&&(I=!0,r.ontouchstart=function(e){var t=e.changedTouches;A=t[0].pageX},r.ontouchmove=function(A){A.preventDefault()},r.ontouchend=function(e){var t=e.changedTouches;if(m){var n=t[0].pageX-A;n<-30&&k(1),n>30&&k(-1)}});i=document[M]("IMG"),(s=document[M]("VIDEO")).id="bp_vid",s.setAttribute("playsinline",!0),s.controls=!0,s.loop=!0,(a=document[M]("audio")).id="bp_aud",a.controls=!0,a.loop=!0,(T=document[M]("span")).id="bp_count",(g=document[M]("DIV")).id="bp_caption",(C=e("bp-xc")).onclick=X.bind(null,!1),g[R](C),w=document[M]("SPAN"),g[R](w),r[R](g),H=t(1,"transform:scalex(-1)"),_=t(-1,"left:0;right:auto"),(p=document[M]("DIV")).id="bp_loader",p.innerHTML='',(c=document[M]("DIV")).id="bp_sv",(u=document[M]("IFRAME")).setAttribute("allowfullscreen",!0),u.allow="autoplay; fullscreen",u.onload=function(){return c[x](p)},q(u,"border:0;position:absolute;height:100%;width:100%;left:0;top:0"),c[R](u),i.onload=J,i.onerror=J.bind(null,"image"),window.addEventListener("resize",(function(){m||h&&j(!0),o===c&&V()})),document.addEventListener("keyup",(function(A){var e=A.keyCode;27===e&&E&&W(),m&&(39===e&&k(1),37===e&&k(-1),38===e&&k(10),40===e&&k(-10))})),document.addEventListener("keydown",(function(A){m&&~[37,38,39,40].indexOf(A.keyCode)&&A.preventDefault()})),document.addEventListener("focus",(function(A){E&&!r.contains(A.target)&&(A.stopPropagation(),B.focus())}),!0),n=!0}(),h&&(clearTimeout(d),Y()),K=A,f=A.ytSrc||A.vimeoSrc,F=A.animationStart,b=A.animationEnd,y=A.onChangeImage,t=A.el,v=!1,Q=t.getAttribute("data-caption"),A.gallery?function(A,e){var n=K.galleryAttribute||"data-bp";if(Array.isArray(A))O=A,Q=A[N=e||0].caption;else{var s=(O=[].slice.call("string"==typeof A?document.querySelectorAll(A+" ["+n+"]"):A)).indexOf(t);N=0===e||e?e:-1!==s?s:0,O=O.map((function(A){return{el:A,src:A.getAttribute(n),caption:A.getAttribute("data-caption")}}))}v=!0,l=O[N].src,!~S.indexOf(l)&&j(!0),O.length>1?(r[R](T),T.innerHTML=N+1+"/"+O.length,I||(r[R](H),r[R](_))):O=!1;(o=i).src=l}(A.gallery,A.position):f||A.iframeSrc?(o=c,function(){var A;K.ytSrc?A="https://www.youtube"+(K.ytNoCookie?"-nocookie":"")+".com/embed/"+f+"?html5=1&rel=0&playsinline=1&autoplay=1":K.vimeoSrc?A="https://player.vimeo.com/video/"+f+"?autoplay=1":K.iframeSrc&&(A=K.iframeSrc);q(p,""),c[R](p),u.src=A,V(),setTimeout(J,9)}()):A.imgSrc?(v=!0,l=A.imgSrc,!~S.indexOf(l)&&j(!0),(o=i).src=l):A.audio?(j(!0),(o=a).src=A.audio,z("audio file")):A.vidSrc?(j(!0),A.dimensions&&q(s,"width:"+A.dimensions[0]+"px"),e=A.vidSrc,Array.isArray(e)?(o=s.cloneNode(),e.forEach((function(A){var e=document[M]("SOURCE");e.src=A,e.type="video/"+A.match(/.(\w+)$/)[1],o[R](e)}))):(o=s).src=e,z("video")):(o=i).src="IMG"===t.tagName?t.src:window.getComputedStyle(t).backgroundImage.replace(/^url|[(|)|'|"]/g,""),r[R](o),document.body[R](r),{close:W,next:function(){return k(1)},prev:function(){return k(-1)}}}},function(A,e){function t(){return A.exports=t=Object.assign||function(A){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(A,t)&&(o[t]=A[t])}return o}},function(A,e,t){"use strict";A.exports=t(39)},function(A,e,t){"use strict";(function(A){var t=function(){if("undefined"!=typeof Map)return Map;function A(A,e){var t=-1;return A.some((function(A,n){return A[0]===e&&(t=n,!0)})),t}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=A(this.__entries__,e),n=this.__entries__[t];return n&&n[1]},e.prototype.set=function(e,t){var n=A(this.__entries__,e);~n?this.__entries__[n][1]=t:this.__entries__.push([e,t])},e.prototype.delete=function(e){var t=this.__entries__,n=A(t,e);~n&&t.splice(n,1)},e.prototype.has=function(e){return!!~A(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(A,e){void 0===e&&(e=null);for(var t=0,n=this.__entries__;t0},A.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},A.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},A.prototype.onTransitionEnd_=function(A){var e=A.propertyName,t=void 0===e?"":e;i.some((function(A){return!!~t.indexOf(A)}))&&this.refresh()},A.getInstance=function(){return this.instance_||(this.instance_=new A),this.instance_},A.instance_=null,A}(),c=function(A,e){for(var t=0,n=Object.keys(e);t0},A}(),E="undefined"!=typeof WeakMap?new WeakMap:new t,m=function A(e){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=a.getInstance(),n=new C(e,t,this);E.set(this,n)};["observe","unobserve","disconnect"].forEach((function(A){m.prototype[A]=function(){var e;return(e=E.get(this))[A].apply(e,arguments)}}));var U=void 0!==r.ResizeObserver?r.ResizeObserver:m;e.a=U}).call(this,t(40))},function(A,e,t){},function(A,e,t){"use strict";var n,r=this&&this.__extends||(n=function(A,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)e.hasOwnProperty(t)&&(A[t]=e[t])})(A,e)},function(A,e){function t(){this.constructor=A}n(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),o=this&&this.__assign||function(){return(o=Object.assign||function(A){for(var e,t=1,n=arguments.length;t=0||(r[t]=A[t]);return r}},function(A,e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,B=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,w=n?Symbol.for("react.block"):60121,Q=n?Symbol.for("react.fundamental"):60117,C=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function m(A){if("object"==typeof A&&null!==A){var e=A.$$typeof;switch(e){case r:switch(A=A.type){case l:case B:case i:case a:case s:case h:return A;default:switch(A=A&&A.$$typeof){case u:case f:case g:case p:case c:return A;default:return e}}case o:return e}}}function U(A){return m(A)===B}e.AsyncMode=l,e.ConcurrentMode=B,e.ContextConsumer=u,e.ContextProvider=c,e.Element=r,e.ForwardRef=f,e.Fragment=i,e.Lazy=g,e.Memo=p,e.Portal=o,e.Profiler=a,e.StrictMode=s,e.Suspense=h,e.isAsyncMode=function(A){return U(A)||m(A)===l},e.isConcurrentMode=U,e.isContextConsumer=function(A){return m(A)===u},e.isContextProvider=function(A){return m(A)===c},e.isElement=function(A){return"object"==typeof A&&null!==A&&A.$$typeof===r},e.isForwardRef=function(A){return m(A)===f},e.isFragment=function(A){return m(A)===i},e.isLazy=function(A){return m(A)===g},e.isMemo=function(A){return m(A)===p},e.isPortal=function(A){return m(A)===o},e.isProfiler=function(A){return m(A)===a},e.isStrictMode=function(A){return m(A)===s},e.isSuspense=function(A){return m(A)===h},e.isValidElementType=function(A){return"string"==typeof A||"function"==typeof A||A===i||A===B||A===a||A===s||A===h||A===d||"object"==typeof A&&null!==A&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===c||A.$$typeof===u||A.$$typeof===f||A.$$typeof===Q||A.$$typeof===C||A.$$typeof===E||A.$$typeof===w)},e.typeOf=m},function(A,e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(A){"object"==typeof window&&(t=window)}A.exports=t},function(A,e,t){var n=function(A){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{s({},"")}catch(A){s=function(A,e,t){return A[e]=t}}function a(A,e,t,n){var r=e&&e.prototype instanceof l?e:l,o=Object.create(r.prototype),i=new U(n||[]);return o._invoke=function(A,e,t){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return F()}for(t.method=r,t.arg=o;;){var i=t.delegate;if(i){var s=C(i,t);if(s){if(s===u)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===n)throw n="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n="executing";var a=c(A,e,t);if("normal"===a.type){if(n=t.done?"completed":"suspendedYield",a.arg===u)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(n="completed",t.method="throw",t.arg=a.arg)}}}(A,t,i),o}function c(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}A.wrap=a;var u={};function l(){}function B(){}function f(){}var h={};h[r]=function(){return this};var d=Object.getPrototypeOf,p=d&&d(d(v([])));p&&p!==e&&t.call(p,r)&&(h=p);var g=f.prototype=l.prototype=Object.create(h);function w(A){["next","throw","return"].forEach((function(e){s(A,e,(function(A){return this._invoke(e,A)}))}))}function Q(A,e){var n;this._invoke=function(r,o){function i(){return new e((function(n,i){!function n(r,o,i,s){var a=c(A[r],A,o);if("throw"!==a.type){var u=a.arg,l=u.value;return l&&"object"==typeof l&&t.call(l,"__await")?e.resolve(l.__await).then((function(A){n("next",A,i,s)}),(function(A){n("throw",A,i,s)})):e.resolve(l).then((function(A){u.value=A,i(u)}),(function(A){return n("throw",A,i,s)}))}s(a.arg)}(r,o,n,i)}))}return n=n?n.then(i,i):i()}}function C(A,e){var t=A.iterator[e.method];if(void 0===t){if(e.delegate=null,"throw"===e.method){if(A.iterator.return&&(e.method="return",e.arg=void 0,C(A,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=c(t,A.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var r=n.arg;return r?r.done?(e[A.resultName]=r.value,e.next=A.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function E(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function m(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function U(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(E,this),this.reset(!0)}function v(A){if(A){var e=A[r];if(e)return e.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var n=-1,o=function e(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=t.call(o,"catchLoc"),a=t.call(o,"finallyLoc");if(s&&a){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&t.call(r,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),m(t),u}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var n=t.completion;if("throw"===n.type){var r=n.arg;m(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,e,t){return this.delegate={iterator:v(A),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},A}(A.exports);try{regeneratorRuntime=n}catch(A){Function("r","regeneratorRuntime = r")(n)}},function(A,e,t){},function(A,e,t){},function(A,e,t){A.exports={"run-lights":"_3ih"}},function(A,e,t){},function(A,e,t){},function(A,e,t){},function(A,e,t){A.exports={colorShow:"_1_x",plugInZoomIn:"_2OK"}},function(A,e,t){"use strict";var n=Array.isArray,r=Object.keys,o=Object.prototype.hasOwnProperty;A.exports=function A(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var i,s,a,c=n(e),u=n(t);if(c&&u){if((s=e.length)!=t.length)return!1;for(i=s;0!=i--;)if(!A(e[i],t[i]))return!1;return!0}if(c!=u)return!1;var l=e instanceof Date,B=t instanceof Date;if(l!=B)return!1;if(l&&B)return e.getTime()==t.getTime();var f=e instanceof RegExp,h=t instanceof RegExp;if(f!=h)return!1;if(f&&h)return e.toString()==t.toString();var d=r(e);if((s=d.length)!==r(t).length)return!1;for(i=s;0!=i--;)if(!o.call(t,d[i]))return!1;for(i=s;0!=i--;)if(!A(e[a=d[i]],t[a]))return!1;return!0}return e!=e&&t!=t}},function(A,e,t){A.exports=t(51)()},function(A,e,t){"use strict";var n=t(52);function r(){}function o(){}o.resetWarningCache=r,A.exports=function(){function A(A,e,t,r,o,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return A}A.isRequired=A;var t={array:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:e,element:A,elementType:A,instanceOf:e,node:A,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return t.PropTypes=t,t}},function(A,e,t){"use strict";A.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(A,e,t){"use strict";t.r(e);var n=t(13),r=t.n(n),o=t(15),i=t.n(o);function s(A){var e=((A||window.location.href).match(/\?(.*)/)||[])[1],t={},n=[];return e?(e.split("&").forEach((function(A){var e=A.split("=");e[0]&&(n.push(e[0]),t[e[0]]=e[1])})),{paramObj:t,paramKeys:n}):{paramObj:t,paramKeys:n}}function a(A){return btoa(encodeURI(JSON.stringify(A)))}function c(A){var e={};try{e=JSON.parse(decodeURI(atob(A)))}catch(A){}return e}function u(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,t=!0;return function(){var n=arguments,r=this;t&&(t=!1,setTimeout((function(){A.apply(r,n),t=!0}),e))}}function l(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,t=null;return function(){var n=arguments,r=this;clearTimeout(t),t=setTimeout((function(){A.apply(r,n)}),e)}}function B(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!A)return"#000000";var e=[],t=1;A.indexOf("rgb")>-1?(e=A.match(/\((.*)\)/)[1].split(","),void 0!==(e=[parseInt(e[0]),parseInt(e[1]),parseInt(e[2])])[3]&&(t=e[3])):(e=[(A=A.replace("#","")).substr(0,2),A.substr(2,2),A.substr(4,2),1],e=[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]);var n=e[0],r=e[1],o=e[2],i=(.3*n+.59*r+.11*o)*Math.min(t,1);return{rgb:e,textColor:i>=180?"#000000":"#ffffff"}}var f="ontouchstart"in window||window.innerWidth<600;function h(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,t=45,n=-2*Math.PI/360*t*A,r=Number.parseFloat(e*Math.sin(n)).toFixed(3),o=Number.parseFloat(e*Math.cos(n)).toFixed(3);return{x:-r,y:-o}}var d=t(14),p=t.n(d),g=t(19),w=t.n(g),Q=function(){var A,e,t=(A=document.createElement("canvas"),{canvas:!!(e=A.getContext("2d")),imageData:!!e.getImageData,dataURL:!!A.toDataURL,btoa:!!window.btoa});function n(A,e,t){var n=A.width,r=A.height;null==e&&(e=n),null==t&&(t=r);var o=document.createElement("canvas"),i=o.getContext("2d");return o.width=e,o.height=t,i.drawImage(A,0,0,n,r,0,0,e,t),o}function r(A,e,t,r){return(A=n(A,t,r)).toDataURL(e)}function o(A){document.location.href=A}function i(A){var e=document.createElement("img");return e.src=A,e}function s(A){return"image/"+(A=A.toLowerCase().replace(/jpg/i,"jpeg")).match(/png|jpeg|bmp|gif/)[0]}function a(A){if(!window.btoa)throw"btoa undefined";var e="";if("string"==typeof A)e=A;else for(var t=0;t>8&255,r>>16&255,r>>24&255,0,0,0,0,54,0,0,0],i=[40,0,0,0,255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,1,0,24,0,0,0,0,0,255&n,n>>8&255,n>>16&255,n>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=(4-3*e%4)%4,c=A.data,u="",l=e<<2,B=t,f=String.fromCharCode;do{for(var h=l*(B-1),d="",p=0;pdocument.documentElement.clientHeight/2&&A&&A.scrollIntoView)return A.scrollIntoView({block:"center",behavior:"smooth"}),void("function"==typeof n&&setTimeout((function(){return n()}),100));var r=setInterval((function(){var A,o,i=m(),s=i.x,a=i.y;A=s+(e-s)/6,o=a+(t-a)/6,E.scrollLeft=A,E.scrollTop=o,window.scrollTo(A,o);var c=m(),u=c.x;a===c.y&&s===u&&(clearInterval(r),"function"==typeof n&&n())}),30);return r},E=document.documentElement||document.body;function m(){return{x:window.pageXOffset||E.scrollLeft||E.scrollLeft,y:window.pageYOffset||E.scrollTop||E.scrollTop}}function U(){var A=document.querySelector("link[rel~=icon]");return A?A.href:window.location.origin+"/favicon.ico"}function v(A,e){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(A){var n="ontouchstart"in window;A.style.cursor="move";var r=!1,o=n?"touchstart":"mousedown";A.addEventListener(o,(function(e){!1===t&&e.target!==A||(e.stopPropagation(),setTimeout((function(){r=!0}),300))}),{capture:!0});var i=n?"touchend":"mouseup";document.addEventListener(i,(function(){r=!1,setTimeout((function(){r=!1,document.body.style.userSelect="auto"}),300)}),{capture:!0});var s=n?"touchmove":"mousemove";document.addEventListener(s,u((function(A){r&&(document.body.style.userSelect="none",e(n?A.touches[0]:A))}),1e3/60),{capture:!0})}}function F(A){return new Promise((function(e,t){w()(A,{useCORS:!0,ignoreElements:function(A){var e=A.tagName.toLowerCase().indexOf("pagenote")>-1,t=getComputedStyle(A).opacity<=0;return e||t}}).then((function(t){var n=Q.convertToImage(t,A.offsetWidth,A.scrollHeight).src;e(n)})).catch((function(A){t(A)}))}))}var b=function(A){var e=document.createElement("pagenote-camera");e.innerHTML="
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
已拍照完成并保存,你可以在管理页进行查看、编辑。
\n
\n
\n
\n
'),document.body.appendChild(e);var t=8,n=setInterval((function(){document.getElementById("count-down").innerText=t+"s",--t<=0&&r()}),1e3);function r(){e.parentNode.removeChild(e),clearInterval(n)}document.getElementById("close-camera").onclick=r},y=t(7),H=t.n(y),_=t(20),N=t.n(_),O=t(21),T="zh_CN",I=N()({},"zh_CN",O),K={setLang:function(A,e){I[A]=e},t:function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=I[T]||I.zh_CN||{},n=t[A].message||A;return n=n.replace(/\$\{.*?\}/,e[0])},setLangType:function(A){T=A},getLangType:function(){return T}};var S="fold",L="expand";function R(A,e,t,n,r,o,i){!function A(t,i){var s=e.exec(t.value);if(s&&s[i]){var a=s.index;if(0!==i)for(var c=1;ce){if(!r(i.node))return!1;var c=e-i.start,u=(t>i.end?i.end:t)-i.start,l=A.value.substr(0,i.start),B=A.value.substr(u+i.start);if(i.node=function(A,e,t){var r=A.splitText(e),o=r.splitText(t-e),i=n(r.textContent);return r.parentNode.replaceChild(i,r),o}(i.node,c,u),A.value=l+B,A.nodes.forEach((function(e,t){t>=s&&(A.nodes[t].start>0&&t!==s&&(A.nodes[t].start-=u),A.nodes[t].end-=u)})),t-=u,o(i.node.previousSibling,i.start),!(t>i.end))return!1;e=i.end}return!0}))}(t,a,a+s[i].length,(function(A){return r(s[i],A)}),(function(A,t){e.lastIndex=t,o(A)})),A(t,i)}}(A,0===t?0:t+1),i()}function M(A){for(var e,t=[],n={acceptNode:function(A){return 3===A.nodeType?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}},r=document.createNodeIterator(A,NodeFilter.SHOW_TEXT,n,!1),o="";e=r.nextNode();)t.push({node:e,start:o.length,end:(o+=e.textContent).length});return{nodes:t,value:o}}function x(A){return A.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(/[\s]+/gim,"[\\s]*")}var D=function(A){var e;if("string"==typeof A?e=document.querySelector(A):A instanceof HTMLElement&&(e=A),"img"===e.dataset.type)e.outerHTML=e.innerHTML;else{var t=[].find.call(e.childNodes,(function(A){return 3===A.nodeType||"#text"===A.nodeName}));e.outerHTML=t?t.textContent:e.textContent}},k=new H.a;function P(A,e){var t=this;e.CONSTANT.STORE_KEYS_VERSION_2_VALIDATE.forEach((function(e){t[e]=A[e]}));var n=B(A.bg),r=n.rgb;this.lightBg="rgb(".concat(r[0]+10,",").concat(r[1]+10,",").concat(r[2]+10,")"),this.darkBg="rgb(".concat(r[0]-30,",").concat(r[1]-30,",").concat(r[2]-30,")"),this.lightId=p()(A.id+A.text),this.isFocus=!1,this.relatedNode=[],this.isInview=!1,this.__proto__.pagenote=e}function V(A,e){this.option=A,this.__proto__.pagenote=e}P.prototype.delete=function(A){for(var e=this.pagenote,t=0;t1&&void 0!==arguments[1])||arguments[1],t=A,n=this.pagenote,r=0;r2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,i={match:0,lightsElement:[]};if(!A||!e)return i;r=r||function(A){var e=document.createElement("light");return e.dataset.highlight="1",e.style.color="red",e.textContent=A,e};var s=M(A),a=function(A,e,t){var n=x(A),a=x(e),c=x(t),u=new RegExp("("+a+")\\s*("+n+")\\s*("+c+")","gmi");R(s,u,1,r,(function(A,e){var t=o.some((function(A){return A.contains(e)})),n=!!(3===e.nodeType?e.parentNode:e).dataset.highlight;return!t&&!n&&"LIGHT"!==e.tagName}),(function(A){i.lightsElement.push(A)}),(function(){}))};return a(e,t,n),i}(A,e.text,e.pre,e.suffix,null,n,e.pagenote.blackNodes);e.warn=i.match?"":"未找到匹配内容",e.missParent=t,(o=e.relatedNode).push.apply(o,r()(i.lightsElement))}}},P.prototype.gotoView=function(A){var e=this,t=this.relatedNode?this.relatedNode[0]:null;if(!t)try{t=k.getTarget(this.id)}catch(A){}return C(t,this.x-window.innerWidth/2,this.y-window.innerHeight/3,(function(){e.isInview=!0,A()}))},P.prototype.changeColor=function(A){this.bg=A;var e=B(A),t=e.textColor,n=e.rgb,r="rgb(".concat(n[0]-30,",").concat(n[1]-30,",").concat(n[2]-30,")"),o="rgba(".concat(n.toString(),",1)");this.relatedNode.forEach((function(A){A.style="--bgcolor:".concat(o,";--color:").concat(t,";--bgbottomcolor:").concat(r)})),this.darkBg=r,this.lightBg="rgb(".concat(n[0]+10,",").concat(n[1]+10,",").concat(n[2]+10,")"),this.save()},P.prototype.save=function(A){this.pagenote.makelink((function(){"function"==typeof A&&A.apply(void 0,arguments)}))},P.prototype.checkInSign=function(){var A=this.relatedNode.some((function(A){var e=A.getBoundingClientRect();return e.top>0&&e.top=A.length?{done:!0}:{done:!1,value:A[n++]}},e:function(A){throw A},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){t=A[Symbol.iterator]()},n:function(){var A=t.next();return i=A.done,A},e:function(A){s=!0,o=A},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}function j(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:{};this.id=A||"pagenote-container",this.options=Object.assign({initType:"default",dura:100,saveInURL:!1,saveInLocal:!0,maxMarkNumber:50,enableMarkImg:!1,blacklist:[],autoLight:!1,colors:["rgba(114,208,255)","#ffbea9","#c8a6ff","#6fe2d5","rgba(255,222,93)","rgba(251, 181, 214)","rgba(0,0,0,0.5)"],shortCuts:"M",barInfo:{right:2,top:100,status:S},actionBarOffset:{offsetX:10,offsetY:20},showIconAnimation:!0,onShare:null,functionColors:[],sideBarActions:[],categories:[]},t),this.status=this.CONSTANT.UN_INIT,this.recordedSteps=new V({max:this.options.maxMarkNumber},this),this.snapshots=[],this.categories=new Set,this.note="",this.score=0,this.runindex=null;var n,o,u,B=JSON.parse(JSON.stringify(this.options.barInfo));B.status=B.status||"fold",this.runningSetting=Object.assign({},{initType:this.options.initType,dura:this.options.dura,autoLight:this.options.autoLight,barInfo:B}),this.target={},this.lastEvent=null,this.url=window.location.href,this.data="",this.plainData={},this.blackNodes=[],this.lastaction=this.CONSTANT.DIS_LIGHT;var f=null,h=[],d=null,p=this.CONSTANT,g=this.options,w=window.location,Q="",C="ontouchstart"in window,E=this.blackNodes,m=this;function v(A){var e=document.getSelection(),t=e.toString().trim(),n=this.status===p.WAITING&&t===this.target.text,r=this.status===this.CONSTANT.DESTROY;if(!n&&!r&&0!==e.rangeCount){var o=e.getRangeAt(0),i=e.anchorNode?o.commonAncestorContainer:null;if(i&&3===i.nodeType&&(i=i.parentNode),!(!i||!i.tagName)){var s,a=i.tagName.toLowerCase().indexOf("pagenote")>-1,c=z(E);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.contains(i)||u.contains(e.anchorNode)||u.contains(e.focusNode)){a=!1;break}}}catch(A){c.e(A)}finally{c.f()}if(!a){var l=!0;i&&"true"!==i.contentEditable||(l=!1);var B=[],f=o.cloneContents();if(m.options.enableMarkImg)for(var h=f.children,d=0;d1&&void 0!==arguments[1]&&arguments[1];!(A=A||s().paramObj[p.ID])&&this.options.saveInLocal&&(A=localStorage.getItem(this.id));var o=[],a={},u=1;if(A)try{var B={};"object"===i()(A)&&A.steps?(B=A,o=A.steps||[],a=A.setting||{}):"string"==typeof A&&(o=(B=c(A)).steps||[],a=B.setting||{}),this.snapshots=Array.isArray(B.snapshots)?B.snapshots:[],this.categories=new Set(B.categories||[B.category]),this.note=B.note,u=B.version||1}catch(e){console.error("解析step异常",e,A)}switch(this.recordedSteps.splice(0,this.recordedSteps.length),2===u?o.forEach((function(A){var t=new P(A,e);e.recordedSteps.add(t)})):o.forEach((function(A){var t={};e.CONSTANT.STORE_KEYS_VERSION_1.forEach((function(e,n){t[e]=A[n]}));var n=new P(t,e);e.recordedSteps.add(n)})),this.runningSetting=Object.assign(this.runningSetting,a),setTimeout((function(){[].concat(r()(g.blacklist),[".no-pagenote","*[data-pagenote]",'*[contenteditable="true"]']).forEach((function(A){[].forEach.call(document.querySelectorAll(A),(function(A){E.push(A)}))}))}),0),[].forEach.call(document.querySelectorAll("light[data-highlight]"),(function(A){A.outerHTML=A.innerHTML})),this.runningSetting.initType){case"light":this.replay(0,!1,!0,!0);break;case"default":this.replay(0,!1,!0,(function(A){return A.isActive}))}if(!y){var f=function(){var A=this,e=C?"touchstart":"mouseup";document.addEventListener(e,(function(e){setTimeout((function(){A.lastEvent=e,v.call(A,e)}),1)}),{capture:!0}),document.onselectionchange=l((function(e){A.lastEvent&&A.lastEvent.target&&"record"!==A.lastEvent.target.id&&v.call(A,e)}),400)};f.call(this),y=!0;var h={},d={},w={},Q={};this.options.functionColors.forEach((function(A,e){A.forEach((function(A,t){A.eventid=e+t+Math.random(),A.shortcut&&(h[A.shortcut]=A.onclick),d[A.eventid]=A.onclick,w[A.eventid]=A.onmouseover,Q[A.eventid]=A.ondbclick}))})),document.addEventListener("keyup",(function(A){if(e.status===p.WAITING){var t=A.key.toLowerCase();if(!0===e.target.canHighlight){var n=e.options.shortCuts.toLowerCase().indexOf(t),r=e.options.colors;n>-1&&r[n]?e.record({bg:r[n]},!0):"function"==typeof h[t]&&h[t](A,e.target)}}}),{capture:!0}),document.addEventListener("dblclick",(function(A){var t=A.target.dataset.eventid;t&&Q[t]&&Q[t](A,e.target)})),document.addEventListener("click",(function(A){switch((A.target.tagName||"").toLowerCase()){case"pagenote-action-button":var t=A.target.dataset.eventid;t&&"function"==typeof d[t]&&d[t](A,e.target);break;case"pagenote-color-button":var n=A.target.dataset.color;e.record({bg:n});break;default:var r=A.target.dataset?A.target.dataset.pagenotecolor:"";n&&e.record({bg:r})}}),{capture:!0}),document.documentElement.addEventListener("mouseover",(function(A){if("pagenote-action-button"===(A.target.tagName||"").toLowerCase()){var t=A.target.dataset.eventid;w[t]&&w[t](A,e.target)}}),{capture:!0}),window.addEventListener("hashchange",(function(){e.status=p.HASHCHANGED}),{capture:!0}),window.addEventListener("popstate",(function(){e.status=p.URLCHANGED}),{capture:!0});var m=window.history.pushState;window.history.pushState=function(){m.apply(e,t),e.status=p.URLCHANGED};var U=window.history.replaceState;window.history.replaceState=function(){U.apply(e,t),e.status=p.URLCHANGED}}this.status=p.READY,n&&this.makelink()},this.destroy=function(){this.status=p.DESTROY,document.querySelectorAll("light[data-highlight]").forEach((function(A){A.outerHTML=A.innerText}))},this.realive=function(){this.status=p.RE_ALIVE,this.replay(0,!1,!0,(function(A){return A.isActive}))},this.toggleAllLight=function(){var A=this.lastaction===this.CONSTANT.DIS_LIGHT;this.replay(0,!1,!0,A),!1===A&&(this.runningSetting.autoLight=!1)},this.addListener=function(A){"function"==typeof A&&h.push(A)},this.record=function(){var A=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=Object.assign(this.target,e);var n=g.maxMarkNumber;if(this.recordedSteps.length>=n)return alert(K.t("mark_limited",[n])),!1;if(!t&&this.status!==p.WAITING)return!1;this.status=p.RECORDING;var r=new P(e,this);X.getTarget(e.id);return this.recordedSteps.add(r),this.recordedSteps=this.recordedSteps.sort((function(A,e){return A.y-e.y})),window.getSelection().removeAllRanges(),this.target={},r.highlight(!0),this.makelink((function(e){if(!e)return alert(K.t("save_failed")),A.recordedSteps.splice(-1,1),console.error("记录失败"),A.status=p.RECORDFAIL,!1;A.status=p.RECORDED})),r},this.remove=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(-1===A){for(;this.recordedSteps.length>0;)this.recordedSteps.splice(0,1),this.replay(0,!1,!1);this.status=p.PAUSE,this.status=p.REMOVEDALL}else this.recordedSteps.splice(A,1),this.replay(A,!1,!1),this.status=p.REMOVED;this.makelink()},this.replay=function(){var A=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this.runningSetting.dura,s=this.recordedSteps[e];if(!s)return this.runindex=d,this.status=p.DONE,void this.makelink();var a="function"==typeof r?r(s):r;clearInterval(u),clearTimeout(o),u=o=d,this.runindex=e,this.status=p.REPLAYING,this.lastaction=a?p.LIGHT:p.DIS_LIGHT,s.highlight(a),n||this.makelink(),t?u=s.gotoView((function(){A.runindex=d,n?o=setTimeout((function(){return A.replay(e+1,t,n,r)}),i):(A.status=p.DONE,clearTimeout(o))})):n?o=setTimeout((function(){return A.replay(e+1,t,n,r)}),i):(this.runindex=d,this.status=p.DONE),this.makelink()},this.makelink=function(A){e.status=p.START_SYNC,H("function"==typeof A?A:function(){})},this.openModal=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md";f&&f.show?(f.changeTab(A),f.initData()):((f=document.createElement("pagenote-modal")).setAttribute("show",!0),f.setAttribute("activeTab",A),document.body.appendChild(f))},this._syncModal=function(){f&&f.initData()},this.generateMD=function(){var A="",t=e.recordedSteps,n=window.location.href,r=document.querySelector("title").innerText.trim()||"";return A+="## [".concat(r,"](").concat(n,")\n\n"),t.forEach((function(e){var t=e.text,n=e.tip;n!==t&&n&&(A+="".concat(n,"\n")),A+="> ".concat(t,"\n\n")})),A=(A+="\n").trim()},this.notification=function(A,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:"50%",y:"50%"},o=document.createElement("pagenote-notification");o.className=t||"success",o.innerHTML=A,o.style.left=r.x||e.target.clientX||window.innerWidth/2+"px",o.style.top=r.y||e.target.clientY||window.innerHeight/2+"px",document.body.appendChild(o);var i=null;function s(){o.classList.add("fade"),i=setTimeout((function(){o.remove()}),n)}s(),o.addEventListener("mouseover",(function(){o.classList.remove("fade"),clearTimeout(i)}),{capture:!0}),o.addEventListener("mouseout",(function(){s()}),{capture:!0})},this.capture=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement||document.body;return new Promise((function(t,n){F(A).then((function(A){e.snapshots.push(A),e.makelink(),b(A),t(A)})).catch((function(A){console.error(A),n(A),e.notification(K.t("capture_error"),"error")}))}))};var H=l((function(A){try{var t=[];e.recordedSteps.forEach((function(A){var n={};Object.keys(A).forEach((function(t){e.CONSTANT.STORE_KEYS_VERSION_2_VALIDATE.includes(t)&&(n[t]=A[t])})),t.push(n)}));var n={},r=0;Object.keys(e.runningSetting).forEach((function(A){e.runningSetting[A]!==g[A]&&(n[A]=e.runningSetting[A],r++)}));for(var o=document.getElementsByTagName("img"),i=[],c=0;c100&&B>100&&l/B<2&&B/l<2&&i.push(f)}var h=document.querySelector("title"),d=document.querySelector("meta[name=description]"),C={steps:t,setting:{},url:window.location.href,lastModified:(new Date).getTime(),icon:U(),title:h?h.innerText.trim():"",description:d?d.content:"",images:i,snapshots:e.snapshots,version:2,categories:e.categories.size>0?Array.from(e.categories):[],note:e.note};r?C.setting=n:delete C.setting;var E=s(),m=E.paramObj,v=E.paramKeys;v.includes(p.ID)||v.push(p.ID),m[p.ID]=t.length?a(C):"",e.data=m[p.ID],e.plainData=C;var F=t.length?JSON.parse(JSON.stringify(C)):{};e.options.saveInLocal&&localStorage.setItem(e.id,e.data);var b="";v.forEach((function(A,e){if(!(A===p.ID&&0===t.length)){var n=void 0===m[A]?"":"="+(m[A]||"");b=b+A+n+"&"}})),b=b?"?"+b:"",e.url=w.protocol+"//"+w.host+w.pathname+b+w.hash,e.options.saveInURL&&history.pushState(Q,p.ID,e.url),e.status=p.SYNCED,A(F,e.url)}catch(t){e.status=p.SYNCED_ERROR,console.error(t),A()}}),1e3);Object.defineProperty(this,"status",{get:function(){return n},set:function(A){var e=n;e===p.DESTROY&&A!==p.RE_ALIVE||(n=A)===e&&n!==p.WAITING||h.forEach((function(t){t(A,e)}))}}),this.triggerListener=function(){var A=this;h.forEach((function(e){e(A.status,A.status)}))}}G.prototype.decodeData=function(A){return c(A)},G.prototype.encryptData=function(A){return a(A)},G.prototype.i18n=K,G.prototype.CONSTANT={ID:"pagenote",UN_INIT:-1,DESTROY:-9,RE_ALIVE:99,WAITING:0,READY:1,RECORDING:2,PAUSE:3,RECORDED:4,REMOVED:-4,REMOVEDALL:-5,RECORDFAIL:5,FINNISHED:6,REPLAYING:7,PLAYANDWAIT:8,DONE:9,START_SYNC:100,SYNCED:10,SYNCED_ERROR:-10,URLCHANGED:11,HASHCHANGED:12,LIGHT:100,DIS_LIGHT:-100,SHARE_CONFIRM:"c",SHARE_ING:"i",SHARE_ERROR:"e",SHARE_SUCCESS:"s",STORE_KEYS_VERSION_1:["x","y","id","text","tip","bg","time","isActive","offsetX","offsetY","parentW","pre","suffix"],STORE_KEYS_VERSION_2_VALIDATE:["x","y","id","text","tip","bg","time","isActive","offsetX","offsetY","parentW","pre","suffix","images"]},G.prototype.version="4.3.1";var J=t(0),W=t(8),Y=t.n(W),q=t(9),Z=t.n(q),$=t(6),AA=t.n($),eA=t(10),tA=t.n(eA),nA=t(11),rA=t.n(nA),oA=t(5),iA=t.n(oA),sA=t(22),aA=t.n(sA),cA=(t(34),function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1599576075781",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2626","data-spm-anchor-id":"a313x.7781069.0.i2",width:"16",height:"16"},t),[Object(J.h)("path",{d:"M512 1024C229.229714 1024 0 794.770286 0 512 0 229.229714 229.229714 0 512 0 794.770286 0 1024 229.229714 1024 512 1024 794.770286 794.770286 1024 512 1024ZM768.146286 305.152 716.434286 253.366857 509.586286 460.288 302.665143 253.366857 250.953143 305.152 457.874286 512 250.953143 718.921143 302.665143 770.633143 509.586286 563.712 716.434286 770.633143 768.146286 718.921143 561.298286 512 768.146286 305.152Z",fill:"#666666","p-id":"2627"},[])])}),uA=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1605333982641",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"17137",width:"18",height:"18"},t),[Object(J.h)("path",{d:"M512 62.00000001a450 450 0 1 0 449.99999999 449.99999999 450.51428584 450.51428584 0 0 0-449.99999999-449.99999999z m0 843.42857167A393.75 393.75 0 1 1 905.75 512 393.81428584 393.81428584 0 0 1 512 905.42857168zM588.11428583 323.64285752a27.06428584 27.06428584 0 0 0-39.72857167 0 27.45 27.45 0 0 0 0 39.21428496l120.72857168 120.85714336L287 483.71428584a28.28571416 28.28571416 0 0 0 0 56.57142832L669.11428584 540.28571416l-120.72857168 120.85714336a27.45 27.45 0 0 0 0 39.21428496 27.77142833 27.77142833 0 0 0 39.72857167 0L756.86428584 531.92857167a28.22142832 28.22142832 0 0 0 0-39.85714334z",fill:"#666","p-id":"17138"},[])])},lA=t(12),BA=t.n(lA),fA=t(2),hA=t(23),dA=t.n(hA),pA=t(24),gA=t.n(pA);function wA(A){return(wA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function QA(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function CA(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function EA(A){for(var e=1;e=0||(r[t]=A[t]);return r}(A,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(A);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(A,t)&&(r[t]=A[t])}return r}var UA=t(1);function vA(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function FA(A,e){for(var t=0;tA.length)&&(e=A.length);for(var t=0,n=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:2;e();var o=SA((function(){r<=1?n({isCanceled:function(){return o!==A.current}}):t(n,r-1)}));A.current=o},e]}(),2),i=o[0],s=o[1];return le((function(){if("none"!==n&&"end"!==n){var A=Be.indexOf(n),t=Be[A+1],o=e(n);!1===o?r(t):i((function(A){function e(){A.isCanceled()||r(t)}!0===o?e():Promise.resolve(o).then(e)}))}}),[A,n]),UA.useEffect((function(){return function(){s()}}),[]),[function(){r("prepare")},n]};function de(A,e,t,n){var r=n.motionEnter,o=void 0===r||r,i=n.motionAppear,s=void 0===i||i,a=n.motionLeave,c=void 0===a||a,u=n.motionDeadline,l=n.motionLeaveImmediately,B=n.onAppearPrepare,f=n.onEnterPrepare,h=n.onLeavePrepare,d=n.onAppearStart,p=n.onEnterStart,g=n.onLeaveStart,w=n.onAppearActive,Q=n.onEnterActive,C=n.onLeaveActive,E=n.onAppearEnd,m=n.onEnterEnd,U=n.onLeaveEnd,v=n.onVisibleChanged,F=JA(ue(),2),b=F[0],y=F[1],H=JA(ue("none"),2),_=H[0],N=H[1],O=JA(ue(null),2),T=O[0],I=O[1],K=Object(UA.useRef)(!1),S=Object(UA.useRef)(null),L=Object(UA.useRef)(!1),R=Object(UA.useRef)(null);function M(){return t()||R.current}var x=Object(UA.useRef)(!1);function D(A){var e,t=M();A&&!A.deadline&&A.target!==t||("appear"===_&&x.current?e=null==E?void 0:E(t,A):"enter"===_&&x.current?e=null==m?void 0:m(t,A):"leave"===_&&x.current&&(e=null==U?void 0:U(t,A)),!1===e||L.current||(N("none"),I(null)))}var k=JA(function(A){var e=Object(UA.useRef)(),t=Object(UA.useRef)(A);t.current=A;var n=UA.useCallback((function(A){t.current(A)}),[]);function r(A){A&&(A.removeEventListener(ae,n),A.removeEventListener(se,n))}return UA.useEffect((function(){return function(){r(e.current)}}),[]),[function(A){e.current&&e.current!==A&&r(e.current),A&&A!==e.current&&(A.addEventListener(ae,n),A.addEventListener(se,n),e.current=A)},r]}(D),1)[0],P=UA.useMemo((function(){var A,e,t;switch(_){case"appear":return QA(A={},"prepare",B),QA(A,"start",d),QA(A,"active",w),A;case"enter":return QA(e={},"prepare",f),QA(e,"start",p),QA(e,"active",Q),e;case"leave":return QA(t={},"prepare",h),QA(t,"start",g),QA(t,"active",C),t;default:return{}}}),[_]),V=JA(he(_,(function(A){if("prepare"===A){var e=P.prepare;return!!e&&e(M())}var t;j in P&&I((null===(t=P[j])||void 0===t?void 0:t.call(P,M(),null))||null);return"active"===j&&(k(M()),u>0&&(clearTimeout(S.current),S.current=setTimeout((function(){D({deadline:!0})}),u))),!0})),2),z=V[0],j=V[1],X=fe(j);x.current=X,le((function(){if(y(e),A){var t,n=K.current;K.current=!0,!n&&e&&s&&(t="appear"),n&&e&&o&&(t="enter"),(n&&!e&&c||!n&&l&&!e&&c)&&(t="leave"),t&&(N(t),z())}}),[e]),Object(UA.useEffect)((function(){("appear"===_&&!s||"enter"===_&&!o||"leave"===_&&!c)&&N("none")}),[s,o,c]),Object(UA.useEffect)((function(){return function(){clearTimeout(S.current),L.current=!0}}),[]),Object(UA.useEffect)((function(){void 0!==b&&"none"===_&&(null==v||v(b))}),[b,_]);var G=T;return P.prepare&&"start"===j&&(G=EA({transition:"none"},G)),[_,j,G,null!=b?b:e]}var pe=function(A){_A(t,A);var e=TA(t);function t(){return vA(this,t),e.apply(this,arguments)}return bA(t,[{key:"render",value:function(){return this.props.children}}]),t}(UA.Component);var ge=function(A){var e=A;function t(A){return!(!A.motionName||!e)}"object"===wA(A)&&(e=A.transitionSupport);var n=UA.forwardRef((function(A,e){var n=A.visible,r=void 0===n||n,o=A.removeOnLeave,i=void 0===o||o,s=A.forceRender,a=A.children,c=A.motionName,u=A.leavedClassName,l=A.eventProps,B=t(A),f=Object(UA.useRef)(),h=Object(UA.useRef)();var d=JA(de(B,r,(function(){try{return RA(f.current||h.current)}catch(A){return null}}),A),4),p=d[0],g=d[1],w=d[2],Q=d[3],C=Object(UA.useRef)(e);C.current=e;var E,m=UA.useCallback((function(A){f.current=A,xA(C.current,A)}),[]),U=EA(EA({},l),{},{visible:r});if(a)if("none"!==p&&t(A)){var v,F;"prepare"===g?F="prepare":fe(g)?F="active":"start"===g&&(F="start"),E=a(EA(EA({},U),{},{className:jA()(ce(c,p),(v={},QA(v,ce(c,"".concat(p,"-").concat(F)),F),QA(v,c,"string"==typeof c),v)),style:w}),m)}else E=Q?a(EA({},U),m):i?s?a(EA(EA({},U),{},{style:{display:"none"}}),m):null:a(EA(EA({},U),{},{className:u}),m);else E=null;return UA.createElement(pe,{ref:h},E)}));return n.displayName="CSSMotion",n}(ie);function we(A){var e;return EA(EA({},e=A&&"object"===wA(A)&&"key"in A?A:{key:A}),{},{key:String(e.key)})}function Qe(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return A.map(we)}function Ce(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=[],n=0,r=e.length,o=Qe(A),i=Qe(e);o.forEach((function(A){for(var e=!1,o=n;o1}));return a.forEach((function(A){(t=t.filter((function(e){var t=e.key,n=e.status;return t!==A||"remove"!==n}))).forEach((function(e){e.key===A&&(e.status="keep")}))})),t}var Ee=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge,t=function(A){_A(n,A);var t=TA(n);function n(){var A;return vA(this,n),(A=t.apply(this,arguments)).state={keyEntities:[]},A.removeKey=function(e){A.setState((function(A){return{keyEntities:A.keyEntities.map((function(A){return A.key!==e?A:EA(EA({},A),{},{status:"removed"})}))}}))},A}return bA(n,[{key:"render",value:function(){var A=this,t=this.state.keyEntities,n=this.props,r=n.component,o=n.children,i=n.onVisibleChanged,s=mA(n,["component","children","onVisibleChanged"]),a=r||UA.Fragment,c={};return Ee.forEach((function(A){c[A]=s[A],delete s[A]})),delete s.keys,UA.createElement(a,Object.assign({},s),t.map((function(t){var n=t.status,r=mA(t,["status"]),s="add"===n||"keep"===n;return UA.createElement(e,Object.assign({},c,{key:r.key,visible:s,eventProps:r,onVisibleChanged:function(e){null==i||i(e,{key:r.key}),e||A.removeKey(r.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(A,e){var t=A.keys,n=e.keyEntities,r=Qe(t);return{keyEntities:Ce(n,r).filter((function(A){var e=n.find((function(e){var t=e.key;return A.key===t}));return!e||"removed"!==e.status||"remove"!==A.status}))}}}]),n}(UA.Component);t.defaultProps={component:"div"}}(ie);var me=ge;function Ue(A){var e=A.prefixCls,t=A.motion,n=A.animation,r=A.transitionName;return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function ve(A){var e=A.prefixCls,t=A.visible,n=A.zIndex,r=A.mask,o=A.maskMotion,i=A.maskAnimation,s=A.maskTransitionName;if(!r)return null;var a={};return(o||s||i)&&(a=EA({motionAppear:!0},Ue({motion:o,prefixCls:e,transitionName:s,animation:i}))),UA.createElement(me,Object.assign({},a,{visible:t,removeOnLeave:!0}),(function(A){var t=A.className;return UA.createElement("div",{style:{zIndex:n},className:jA()("".concat(e,"-mask"),t)})}))}var Fe;function be(A){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function ye(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function He(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}var _e={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Ne(){if(void 0!==Fe)return Fe;Fe="";var A=document.createElement("p").style;for(var e in _e)e+"Transform"in A&&(Fe=e);return Fe}function Oe(){return Ne()?"".concat(Ne(),"TransitionProperty"):"transitionProperty"}function Te(){return Ne()?"".concat(Ne(),"Transform"):"transform"}function Ie(A,e){var t=Oe();t&&(A.style[t]=e,"transitionProperty"!==t&&(A.style.transitionProperty=e))}function Ke(A,e){var t=Te();t&&(A.style[t]=e,"transform"!==t&&(A.style.transform=e))}var Se,Le=/matrix\((.*)\)/,Re=/matrix3d\((.*)\)/;function Me(A){var e=A.style.display;A.style.display="none",A.offsetHeight,A.style.display=e}function xe(A,e,t){var n=t;if("object"!==be(e))return void 0!==n?("number"==typeof n&&(n="".concat(n,"px")),void(A.style[e]=n)):Se(A,e);for(var r in e)e.hasOwnProperty(r)&&xe(A,r,e[r])}function De(A,e){var t=A["page".concat(e?"Y":"X","Offset")],n="scroll".concat(e?"Top":"Left");if("number"!=typeof t){var r=A.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}function ke(A){return De(A)}function Pe(A){return De(A,!0)}function Ve(A){var e=function(A){var e,t,n,r=A.ownerDocument,o=r.body,i=r&&r.documentElement;return t=(e=A.getBoundingClientRect()).left,n=e.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(A),t=A.ownerDocument,n=t.defaultView||t.parentWindow;return e.left+=ke(n),e.top+=Pe(n),e}function ze(A){return null!=A&&A==A.window}function je(A){return ze(A)?A.document:9===A.nodeType?A:A.ownerDocument}var Xe=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Ge=/^(top|right|bottom|left)$/,Je="left";function We(A,e){return"left"===A?e.useCssRight?"right":A:e.useCssBottom?"bottom":A}function Ye(A){return"left"===A?"right":"right"===A?"left":"top"===A?"bottom":"bottom"===A?"top":void 0}function qe(A,e,t){"static"===xe(A,"position")&&(A.style.position="relative");var n=-999,r=-999,o=We("left",t),i=We("top",t),s=Ye(o),a=Ye(i);"left"!==o&&(n=999),"top"!==i&&(r=999);var c,u="",l=Ve(A);("left"in e||"top"in e)&&(u=(c=A).style.transitionProperty||c.style[Oe()]||"",Ie(A,"none")),"left"in e&&(A.style[s]="",A.style[o]="".concat(n,"px")),"top"in e&&(A.style[a]="",A.style[i]="".concat(r,"px")),Me(A);var B=Ve(A),f={};for(var h in e)if(e.hasOwnProperty(h)){var d=We(h,t),p="left"===h?n:r,g=l[h]-B[h];f[d]=d===h?p+g:p-g}xe(A,f),Me(A),("left"in e||"top"in e)&&Ie(A,u);var w={};for(var Q in e)if(e.hasOwnProperty(Q)){var C=We(Q,t),E=e[Q]-l[Q];w[C]=Q===C?f[C]+E:f[C]-E}xe(A,w)}function Ze(A,e){var t=Ve(A),n=function(A){var e=window.getComputedStyle(A,null),t=e.getPropertyValue("transform")||e.getPropertyValue(Te());if(t&&"none"!==t){var n=t.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}(A),r={x:n.x,y:n.y};"left"in e&&(r.x=n.x+e.left-t.left),"top"in e&&(r.y=n.y+e.top-t.top),function(A,e){var t=window.getComputedStyle(A,null),n=t.getPropertyValue("transform")||t.getPropertyValue(Te());if(n&&"none"!==n){var r,o=n.match(Le);if(o)(r=(o=o[1]).split(",").map((function(A){return parseFloat(A,10)})))[4]=e.x,r[5]=e.y,Ke(A,"matrix(".concat(r.join(","),")"));else(r=n.match(Re)[1].split(",").map((function(A){return parseFloat(A,10)})))[12]=e.x,r[13]=e.y,Ke(A,"matrix3d(".concat(r.join(","),")"))}else Ke(A,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(A,r)}function $e(A,e){for(var t=0;t=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function ht(A){var e,t,n;if(ct.isWindow(A)||9===A.nodeType){var r=ct.getWindow(A);e={left:ct.getWindowScrollLeft(r),top:ct.getWindowScrollTop(r)},t=ct.viewportWidth(r),n=ct.viewportHeight(r)}else e=ct.offset(A),t=ct.outerWidth(A),n=ct.outerHeight(A);return e.width=t,e.height=n,e}function dt(A,e){var t=e.charAt(0),n=e.charAt(1),r=A.width,o=A.height,i=A.left,s=A.top;return"c"===t?s+=o/2:"b"===t&&(s+=o),"c"===n?i+=r/2:"r"===n&&(i+=r),{left:i,top:s}}function pt(A,e,t,n,r){var o=dt(e,t[1]),i=dt(A,t[0]),s=[i.left-o.left,i.top-o.top];return{left:Math.round(A.left-s[0]+n[0]-r[0]),top:Math.round(A.top-s[1]+n[1]-r[1])}}function gt(A,e,t){return A.leftt.right}function wt(A,e,t){return A.topt.bottom}function Qt(A,e,t){var n=[];return ct.each(A,(function(A){n.push(A.replace(e,(function(A){return t[A]})))})),n}function Ct(A,e){return A[e]=-A[e],A}function Et(A,e){return(/%$/.test(A)?parseInt(A.substring(0,A.length-1),10)/100*e:parseInt(A,10))||0}function mt(A,e){A[0]=Et(A[0],e.width),A[1]=Et(A[1],e.height)}function Ut(A,e,t,n){var r=t.points,o=t.offset||[0,0],i=t.targetOffset||[0,0],s=t.overflow,a=t.source||A;o=[].concat(o),i=[].concat(i);var c={},u=0,l=ft(a,!(!(s=s||{})||!s.alwaysByViewport)),B=ht(a);mt(o,B),mt(i,e);var f=pt(B,e,r,o,i),h=ct.merge(B,f);if(l&&(s.adjustX||s.adjustY)&&n){if(s.adjustX&>(f,B,l)){var d=Qt(r,/[lr]/gi,{l:"r",r:"l"}),p=Ct(o,0),g=Ct(i,0);(function(A,e,t){return A.left>t.right||A.left+e.widtht.bottom||A.top+e.height=t.left&&r.left+o.width>t.right&&(o.width-=r.left+o.width-t.right),n.adjustX&&r.left+o.width>t.right&&(r.left=Math.max(t.right-o.width,t.left)),n.adjustY&&r.top=t.top&&r.top+o.height>t.bottom&&(o.height-=r.top+o.height-t.bottom),n.adjustY&&r.top+o.height>t.bottom&&(r.top=Math.max(t.bottom-o.height,t.top)),ct.mix(r,o)}(f,B,l,c))}return h.width!==B.width&&ct.css(a,"width",ct.width(a)+h.width-B.width),h.height!==B.height&&ct.css(a,"height",ct.height(a)+h.height-B.height),ct.offset(a,{left:h.left,top:h.top},{useCssRight:t.useCssRight,useCssBottom:t.useCssBottom,useCssTransform:t.useCssTransform,ignoreShake:t.ignoreShake}),{points:r,offset:o,targetOffset:i,overflow:c}}function vt(A,e,t){var n=t.target||e;return Ut(A,ht(n),t,!function(A,e){var t=ft(A,e),n=ht(A);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}(n,t.overflow&&t.overflow.alwaysByViewport))}function Ft(A,e,t){var n,r,o=ct.getDocument(A),i=o.defaultView||o.parentWindow,s=ct.getWindowScrollLeft(i),a=ct.getWindowScrollTop(i),c=ct.viewportWidth(i),u=ct.viewportHeight(i);n="pageX"in e?e.pageX:s+e.clientX,r="pageY"in e?e.pageY:a+e.clientY;var l=n>=0&&n<=s+c&&r>=0&&r<=a+u;return Ut(A,{left:n,top:r,width:0,height:0},function(A){for(var e=1;e1&&(x=UA.createElement("div",{className:"".concat(n,"-content")},i)),UA.createElement(me,Object.assign({visible:t,ref:C,leavedClassName:"".concat(n,"-hidden")},S,{onAppearPrepare:L,onEnterPrepare:L,removeOnLeave:c}),(function(A,e){var t=A.className,o=A.style,i=jA()(n,r,m,t);return UA.createElement(Ot,{target:l||B,key:"popup",ref:Q,monitorWindowResize:!0,disabled:M,align:u,onAlign:K},UA.createElement("div",{ref:e,className:i,onMouseEnter:d,onMouseLeave:p,onMouseDown:g,onTouchStart:w,style:EA(EA({},o),R)},x))}))}));Rt.displayName="PopupInner";var Mt=Rt,xt=UA.forwardRef((function(A,e){var t=A.prefixCls,n=A.visible,r=A.zIndex,o=A.children,i=A.mobile,s=(i=void 0===i?{}:i).popupClassName,a=i.popupStyle,c=i.popupMotion,u=void 0===c?{}:c,l=i.popupRender,B=UA.useRef();UA.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return B.current}}}));var f=EA({zIndex:r},a),h=o;return UA.Children.count(o)>1&&(h=UA.createElement("div",{className:"".concat(t,"-content")},o)),l&&(h=l(h)),UA.createElement(me,Object.assign({visible:n,ref:B,removeOnLeave:!0},u),(function(A,e){var n=A.className,r=A.style,o=jA()(t,s,n);return UA.createElement("div",{ref:e,className:o,style:EA(EA({},r),f)},h)}))}));xt.displayName="MobilePopupInner";var Dt=xt,kt=UA.forwardRef((function(A,e){var t=A.visible,n=A.mobile,r=mA(A,["visible","mobile"]),o=JA(Object(UA.useState)(t),2),i=o[0],s=o[1],a=JA(Object(UA.useState)(!1),2),c=a[0],u=a[1],l=EA(EA({},r),{},{visible:i});Object(UA.useEffect)((function(){var A;s(t),t&&n&&u((A=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(A)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(A.substr(0,4)))))}),[t,!!n]);var B=c?UA.createElement(Dt,Object.assign({},l,{mobile:n,ref:e})):UA.createElement(Mt,Object.assign({},l,{ref:e}));return UA.createElement("div",null,UA.createElement(ve,Object.assign({},l)),B)}));kt.displayName="Popup";var Pt=kt,Vt=UA.createContext(null);function zt(){}function jt(){return""}function Xt(A){return A?A.ownerDocument:window.document}var Gt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Jt,Wt,Yt=(Jt=VA,(Wt=function(A){_A(t,A);var e=TA(t);function t(A){var n,r;return vA(this,t),(n=e.call(this,A)).popupRef=UA.createRef(),n.triggerRef=UA.createRef(),n.onMouseEnter=function(A){var e=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",A),n.delaySetPopupVisible(!0,e,e?null:A)},n.onMouseMove=function(A){n.fireEvents("onMouseMove",A),n.setPoint(A)},n.onMouseLeave=function(A){n.fireEvents("onMouseLeave",A),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(A){var e;A.relatedTarget&&!A.relatedTarget.setTimeout&&LA(null===(e=n.popupRef.current)||void 0===e?void 0:e.getElement(),A.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(A){n.fireEvents("onFocus",A),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(A){n.fireEvents("onMouseDown",A),n.preClickTime=Date.now()},n.onTouchStart=function(A){n.fireEvents("onTouchStart",A),n.preTouchTime=Date.now()},n.onBlur=function(A){n.fireEvents("onBlur",A),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(A){A.preventDefault(),n.fireEvents("onContextMenu",A),n.setPopupVisible(!0,A)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(A){if(n.fireEvents("onClick",A),n.focusTime){var e;if(n.preClickTime&&n.preTouchTime?e=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?e=n.preClickTime:n.preTouchTime&&(e=n.preTouchTime),Math.abs(e-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&A&&A.preventDefault&&A.preventDefault();var t=!n.state.popupVisible;(n.isClickToHide()&&!t||t&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,A)},n.onPopupMouseDown=function(){var A;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context&&(A=n.context).onPopupMouseDown.apply(A,arguments)},n.onDocumentClick=function(A){if(!n.props.mask||n.props.maskClosable){var e=A.target,t=n.getRootDomNode(),r=n.getPopupDomNode();LA(t,e)||LA(r,e)||n.hasPopupMouseDown||n.close()}},n.getRootDomNode=function(){var A=n.props.getTriggerDOMNode;if(A)return A(n.triggerRef.current);try{var e=RA(n.triggerRef.current);if(e)return e}catch(A){}return UA.default.findDOMNode(yA(n))},n.getPopupClassNameFromAlign=function(A){var e=[],t=n.props,r=t.popupPlacement,o=t.builtinPlacements,i=t.prefixCls,s=t.alignPoint,a=t.getPopupClassNameFromAlign;return r&&o&&e.push(function(A,e,t,n){for(var r=t.points,o=Object.keys(A),i=0;i1&&void 0!==arguments[1]?arguments[1]:"add";r(A,e)},l=t.filter((function(A){return!s||A.label.indexOf(s)>-1})),B=Array.from(n);return Object(J.h)("div",null,Object(J.h)(nn,{overlay:Object(J.h)("div",{className:"droplabel"},Object(J.h)("div",{className:"select-menu-header"},Object(J.h)("span",{className:"select-menu-title"},K.t("add_a_category"))),Object(J.h)("div",{className:"select-menu-filters"},Object(J.h)("div",{className:"select-menu-text-filter"},Object(J.h)("input",{ref:c,onKeyDown:function(A){13===A.which&&u(c.current.value.trim(),"add",!0),A.stopPropagation()},onChange:function(A){a(A.target.value.trim())},value:s,type:"text",placeholder:K.t("search_or_create_category"),autoComplete:"off",autoFocus:""}),s&&Object(J.h)("button",{onClick:function(A){u(s,"add",!0),A.stopPropagation()},className:"new-button"},K.t("create_and_apply")))),Object(J.h)("div",{className:"select-menu-list"},B.map((function(A){return Object(J.h)("label",{onClick:function(){return u(A,"delete",!0)},className:"select-menu-item label-select-menu-item"},Object(J.h)("svg",{className:"select-menu-item-icon",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16","aria-hidden":"true"},Object(J.h)("path",{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})),A)})),Object(J.h)("div",null,l.map((function(A){return!n.has(A.label)&&Object(J.h)("div",{onClick:function(){return u(A.label,"add",!0)},key:A.label,className:"select-menu-item"},Object(J.h)("label",null,A.label))})))))},Object(J.h)("div",{className:"category-title"},0===n.size?Object(J.h)("span",{className:"category-name"},K.t("add_a_category")):"",B.map((function(A){return Object(J.h)("span",{className:"category-name"},A)})))))}var on=t(27),sn=t.n(on);t(44);function an(A){var e=A.colors,t=A.run;return Object(J.h)("pagenote-toggle-all",{"data-run":t?"1":""},Object(J.h)("svg",{t:"1605017147684",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"24496",width:"16",height:"16",fill:"#fff"},Object(J.h)("path",{d:"M4.8 460.8C51.2 411.2 144 336 273.6 361.6 443.2 388.8 512 512 512 512s-172.8 8-270.4 156.8c-46.4 78.4-56 171.2-27.2 257.6-16-11.2-30.4-22.4-44.8-35.2C49.6 782.4-11.2 622.4 4.8 460.8z",fill:e[0]||"#fff","p-id":"24497","data-spm-anchor-id":"a313x.7781069.0.i46",className:"selected"}),Object(J.h)("path",{d:"M523.2 232c60.8 160-11.2 281.6-11.2 281.6s-94.4-145.6-272-155.2C150.4 358.4 64 395.2 4.8 464 22.4 281.6 134.4 123.2 300.8 48c65.6 14.4 177.6 57.6 222.4 184z",fill:e[1],"p-id":"24498","data-spm-anchor-id":"a313x.7781069.0.i45",className:"selected"}),Object(J.h)("path",{d:"M760 382.4C651.2 515.2 510.4 512 510.4 512s80-153.6-1.6-312C464 121.6 387.2 65.6 299.2 48 465.6-27.2 659.2-9.6 808 96c19.2 64 40 184-48 286.4z",fill:e[2],"p-id":"24499","data-spm-anchor-id":"a313x.7781069.0.i44",className:"selected"}),Object(J.h)("path",{d:"M748.8 660.8c-169.6-27.2-238.4-150.4-238.4-150.4s172.8-8 268.8-156.8c46.4-76.8 56-171.2 27.2-256 16 11.2 32 24 46.4 36.8C972.8 241.6 1033.6 400 1019.2 560c-44.8 48-139.2 124.8-270.4 100.8z",fill:e[3],"p-id":"24500","data-spm-anchor-id":"a313x.7781069.0.i43",className:"selected"}),Object(J.h)("path",{d:"M500.8 792c-60.8-160 11.2-281.6 11.2-281.6s92.8 142.4 270.4 152c91.2 1.6 177.6-36.8 238.4-104-16 182.4-129.6 342.4-297.6 419.2-65.6-16-179.2-57.6-222.4-185.6z",fill:e[4],"p-id":"24501","data-spm-anchor-id":"a313x.7781069.0.i48",className:"selected"}),Object(J.h)("path",{d:"M212.8 924.8c-20.8-64-40-180.8 46.4-281.6C368 510.4 512 512 512 512s-76.8 152 3.2 310.4c43.2 78.4 120 134.4 208 153.6a505.44 505.44 0 0 1-510.4-51.2z",fill:e[5]||"#fff","p-id":"24502","data-spm-anchor-id":"a313x.7781069.0.i47",className:"selected"})))}var cn=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1608973287213",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7635",width:"18",height:"18"},t),[Object(J.h)("path",{d:"M512 987.428571c263.314286 0 475.428571-212.114286 475.428571-475.428571S775.314286 36.571429 512 36.571429 36.571429 248.685714 36.571429 512s212.114286 475.428571 475.428571 475.428571z m0 36.571429C228.571429 1024 0 795.428571 0 512S228.571429 0 512 0s512 228.571429 512 512-228.571429 512-512 512z",fill:"#B3B3B3","p-id":"7636"},[]),Object(J.h)("path",{d:"M301.714286 493.714286h420.571428c14.628571 0 27.428571 12.8 27.428572 27.428571s-12.8 27.428571-27.428572 27.428572h-420.571428c-14.628571 0-27.428571-12.8-27.428572-27.428572s12.8-27.428571 27.428572-27.428571z",fill:"#7F7F7F","p-id":"7637"},[]),Object(J.h)("path",{d:"M539.428571 310.857143v420.571428c0 14.628571-12.8 27.428571-27.428571 27.428572s-27.428571-12.8-27.428571-27.428572V310.857143c0-14.628571 12.8-27.428571 27.428571-27.428572s27.428571 12.8 27.428571 27.428572z",fill:"#7F7F7F","p-id":"7638"},[])])},un=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1600872298803",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6051",width:"18",height:"18"},t),[Object(J.h)("path",{d:"M733.855 791.945c0 26.574-21.63 48.203-48.202 48.203H338.347c-26.573 0-48.202-21.63-48.202-48.203V280.257h443.71v511.688zM386.55 193.74c0-5.562 4.326-9.888 9.888-9.888H628.18c5.562 0 9.888 4.326 9.888 9.888v29.045H386.55V193.74z m491.913 29.045H695.54V193.74c0-37.08-30.28-67.36-67.36-67.36H396.438c-37.08 0-67.36 30.28-67.36 67.36v29.045h-183.54c-16.068 0-29.046 12.978-29.046 29.045s12.978 29.045 29.045 29.045h86.518v511.07c0 58.709 47.584 106.293 106.292 106.293h347.306c58.708 0 106.292-47.584 106.292-106.293V280.257h86.518c16.067 0 29.045-12.977 29.045-29.045s-12.978-28.427-29.045-28.427zM512 753.013c16.068 0 29.045-12.978 29.045-29.046v-308.99c0-16.068-12.977-29.045-29.045-29.045s-29.045 12.977-29.045 29.045v308.99c0 16.068 12.977 29.046 29.045 29.046m-135.338 0c16.068 0 29.045-12.978 29.045-29.046v-308.99c0-16.068-12.977-29.045-29.045-29.045s-29.045 12.977-29.045 29.045v308.99c0.618 16.068 13.596 29.046 29.045 29.046m270.676 0c16.067 0 29.045-12.978 29.045-29.046v-308.99c0-16.068-12.978-29.045-29.045-29.045s-29.045 12.977-29.045 29.045v308.99c0 16.068 12.977 29.046 29.045 29.046","p-id":"6052"},[])])},ln=(t(45),function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1610167219163",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3309",width:"16",height:"16"},t),[Object(J.h)("path",{d:"M224 480m-96 0a96 96 0 1 0 192 0 96 96 0 1 0-192 0Z",fill:"#768893","p-id":"3310"},[]),Object(J.h)("path",{d:"M544 480m-96 0a96 96 0 1 0 192 0 96 96 0 1 0-192 0Z",fill:"#768893","p-id":"3311"},[]),Object(J.h)("path",{d:"M864 480m-96 0a96 96 0 1 0 192 0 96 96 0 1 0-192 0Z",fill:"#768893","p-id":"3312"},[])])}),Bn=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1612099643041",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2342",width:"16",height:"16"},t),[Object(J.h)("path",{d:"M937.472 102.4H91.136c-46.08 0-83.456 37.376-83.456 83.456V841.728c0 46.08 37.376 83.456 83.456 83.456h846.336c46.08 0 83.456-37.376 83.456-83.456V185.856c0-46.08-37.376-83.456-83.456-83.456zM91.136 163.84h846.336c12.288 0 22.016 9.728 22.016 22.016v437.248L762.88 448.512c-10.752-9.728-27.136-10.24-38.912-1.536l-244.224 183.296-129.536-92.16c-10.24-7.68-24.576-7.68-35.328 0l-245.76 174.08V185.856c0-12.288 9.728-22.016 22.016-22.016z m846.336 699.904H91.136c-12.288 0-22.016-9.728-22.016-22.016v-54.272L332.8 601.088l247.808 176.64c13.824 9.728 33.28 6.656 43.008-7.168 9.728-13.824 6.656-33.28-7.168-43.008l-84.48-59.904 208.896-156.672 211.456 187.904c2.048 2.048 4.608 3.072 7.168 4.608v138.24c0 12.288-9.728 22.016-22.016 22.016z",fill:"#1296db","p-id":"2343"},[]),Object(J.h)("path",{d:"M312.32 471.04c70.656 0 128-57.344 128-128S382.976 215.04 312.32 215.04 184.32 272.384 184.32 343.04s57.344 128 128 128z m0-194.56c36.864 0 66.56 29.696 66.56 66.56s-29.696 66.56-66.56 66.56-66.56-29.696-66.56-66.56 29.696-66.56 66.56-66.56z",fill:"#1296db","p-id":"2344"},[])])};function fn(A){var e=A.step,t=e.text||e.tip,n=e.text!==e.tip?e.tip:"",r=e.images||[];return Object(J.h)("pagenote-ref-anotation",{"data-insign":e.isInview?"1":"",style:{"--fill-color":e.isActive&&e.isInview?e.bg:"#fff"}},Object(J.h)("pagenote-light-ref",null,Object(J.h)("span",null,t.substring(0,28),r.length?Object(J.h)(Bn,{style:{verticalAlign:"sub",margin:"0 4px"}}):"")),Object(J.h)("pagenote-light-anotation",null,e.isActive&&n&&Object(J.h)("pagenote-block",null,Object(J.h)("pagenote-block",null,new Date(e.time).toLocaleDateString()),Object(J.h)("pagenote-block",{dangerouslySetInnerHTML:{__html:n}}))),Object(J.h)("pagenote-light-actions",null,Object(J.h)(nn,{overlay:Object(J.h)("span",null,Object(J.h)(un,{onClick:function(A){return e.delete(A)}}))},Object(J.h)(ln,{onClick:function(A){A.stopPropagation()}}))))}t(46);function hn(A){var e=A.steps,t=void 0===e?[]:e,n=A.useDot,r=Object(fA.k)(0),o=BA()(r,2),i=o[0],s=o[1],a=u((function(A){var e=m().y,n=document.documentElement.scrollHeight-window.innerHeight;s(Math.min(Math.floor(e/n*100),100)),t.forEach((function(A){A.checkInSign()}))}),20);function c(){document.removeEventListener("scroll",a)}Object(fA.d)((function(){return document.addEventListener("scroll",a),c}),[]);var l=Math.min(Math.max(i,8),98);return Object(J.h)(tn,{destroyTooltipOnHide:{keepParent:!1},align:{offset:[10,0]},placement:"rightTop",trigger:["hover"],offsetX:10,overlay:Object(J.h)("span",null,K.t("has_read_percent",[i]))},n?Object(J.h)("pagenote-scroll-sign",{style:{top:"".concat(l,"%")}}):Object(J.h)("pagenote-progress",{"data-position":"bottom"},Object(J.h)("pagenote-progress-percent",{style:{width:"".concat(i,"%")}})))}t(47);function dn(A){var e=A.message,t=A.children;return Object(J.h)(tn,{destroyTooltipOnHide:{keepParent:!1},align:{offset:[0,-10]},overlayStyle:{zIndex:9999999},placement:"top",trigger:["hover"],offsetX:10,overlay:Object(J.h)("span",null,e)},t)}function pn(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,n=iA()(A);if(e){var r=iA()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return rA()(this,t)}}var gn=-1,wn=null;function Qn(A){var e,t,n,r=A.step,o=A.running,i=void 0!==o&&o,s=(A.index,A.barStatus,A.dot);return Object(J.h)(J.b,null,s?Object(J.h)("pagenote-dot-container",{"data-active":r.isActive?"1":"0","data-running":i,style:{top:(e=r.y,t=window.innerHeight-30-16,n=e/document.documentElement.scrollHeight*t+30+16,n=Math.min(e,n,t),gn>0&&Math.abs(n-gn)<24&&(n=gn+16),gn=n,n+"px"),"--color":r.bg,position:"absolute"},onClick:function(){return r.toggle()}},Object(J.h)("pagenote-light-ref-dot",null,Object(J.h)(fn,{step:r})),Object(J.h)("pagenote-dot",null)):Object(J.h)("pagenote-line-container",{"data-active":r.isActive?"1":"0",style:{"--color":r.bg},onClick:function(){return r.toggle()}},Object(J.h)(fn,{step:r})))}var Cn=function(A){tA()(t,A);var e=pn(t);function t(A){var n;return Y()(this,t),(n=e.call(this)).setCategories=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"add";if("add"===e){if(n.pagenote.categories.size>=5)return void n.pagenote.notification(K.t("most_cnt",[5]));n.pagenote.categories.add(A)}else"delete"===e&&n.pagenote.categories.delete(A);n.pagenote.makelink()},n.removeSnapshot=function(A){n.pagenote.snapshots.splice(A,1),n.pagenote.makelink()},n.capture=function(){n.pagenote.capture(),n.setState({capturing:!0},(function(){setTimeout((function(){n.setState({capturing:!1})}),3e3)}))},wn=n.pagenote=A.pagenote,n.toggleAllLight=n.toggleAllLight.bind(AA()(n)),n.toggleAutoLight=n.toggleAutoLight.bind(AA()(n)),n.replay=n.replay.bind(AA()(n)),n.toggleSideBar=n.toggleSideBar.bind(AA()(n)),n.state={barInfo:wn.runningSetting.barInfo,steps:wn.recordedSteps,snapshots:wn.snapshots||[],categories:wn.categories,note:wn.note,autoLight:wn.runningSetting.autoLight,highlightAll:wn.highlightAll,runindex:wn.runindex,capturing:!1,title:wn.plainData.title,run:!1},wn.addListener(n.refreshStatus.bind(AA()(n))),n}return Z()(t,[{key:"refreshStatus",value:function(){this.setState({barInfo:wn.runningSetting.barInfo,steps:wn.recordedSteps||[],categories:wn.categories,note:wn.note||"",snapshots:wn.snapshots||[],autoLight:wn.runningSetting.autoLight||!1,highlightAll:wn.highlightAll||!1,runindex:wn.runindex,status:wn.status,title:wn.plainData.title,run:[wn.CONSTANT.REPLAYING,wn.CONSTANT.START_SYNC].includes(wn.status)})}},{key:"toggleAllLight",value:function(){this.pagenote.toggleAllLight()}},{key:"toggleAutoLight",value:function(){var A=this.pagenote;A.runningSetting.autoLight=!A.runningSetting.autoLight,A.makelink()}},{key:"replay",value:function(){var A;(A=this.pagenote).replay.apply(A,arguments),this.refreshStatus()}},{key:"changeLightStatus",value:function(A){this.pagenote.replay(A,!0,!0,!1,!0),this.pagenote.recordedSteps[A].writing=!0,this.refreshStatus()}},{key:"toggleSideBar",value:function(){var A=this.state.barInfo.status||"",e=this.pagenote.runningSetting.barInfo;A=A===L?S:L,e.status=A,this.pagenote.makelink()}},{key:"setRef",value:function(A){var e=this,t=this.pagenote;if(!this.sideEl){this.sideEl=A;var n=null;v(A,(function(A){var r=A.clientX+50,o=A.clientY-10,i=t.runningSetting.barInfo;i.right=Math.max(1,document.documentElement.clientWidth-r-10),i.right=Math.min(i.right,document.documentElement.clientWidth-20),i.top=Math.max(Math.min(document.documentElement.clientHeight-200,o),0),clearTimeout(n),n=setTimeout((function(){t.makelink()}),600),e.setState({barInfo:t.runningSetting.barInfo})}),!1)}}},{key:"confirmShare",value:function(){this.pagenote.options.onShare(this.pagenote)}},{key:"toggleHideSideBar",value:function(){var A=this.state.barInfo.status||"";A=A.indexOf(L)>-1?S:L;var e=this.pagenote.runningSetting.barInfo;e.status=A,this.setState({barInfo:e}),this.pagenote.makelink()}},{key:"bigPicture",value:function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;aA()({el:A.target,gallery:t,position:n,animationEnd:function(){}})}},{key:"render",value:function(){var A=this,e=this.state,t=e.status,n=e.barInfo,r=e.steps,o=(e.autoLight,e.highlightAll,e.runindex),i=e.categories,s=(e.note,e.snapshots),a=(e.capturing,e.title),c=e.run,u=n.status||"",l=u===L,B=r.length>0||s.length>0,f=l?0:n.top;n.right=Math.min(document.documentElement.clientWidth-60,n.right);var h=Math.max(n.right,10),d=this.pagenote.options.sideBarActions,p=new Set;return r.forEach((function(A){p.add(A.lightBg||A.bg)})),t===this.pagenote.CONSTANT.DESTROY?"":Object(J.h)(J.b,null,B&&Object(J.h)("pagenote-aside",{"data-status":l?"expand":"fold",style:{right:h+"px",top:f+"px",position:"fixed"}},Object(J.h)("pagenote-actions",{ref:this.setRef.bind(this)},Object(J.h)(dn,{message:K.t("toggle_marks")},Object(J.h)("pagenote-action",{onClick:this.toggleAllLight},Object(J.h)(an,{run:c,colors:Array.from(p)}))),Object(J.h)("pagenote-action-group",null,d.map((function(A,e){return Object(J.h)(dn,{message:A.name},Object(J.h)("pagenote-action",{key:A.name+e,onClick:A.onclick,style:{backgroundImage:"url(data:image/svg+xml;base64,".concat(window.btoa(A.icon),")")}}))}))),Object(J.h)("pagenote-action",{"data-action":"toggle",onClick:this.toggleHideSideBar.bind(this)},l?Object(J.h)(cn,null):Object(J.h)(uA,null))),Object(J.h)(hn,{useDot:l,steps:r}),Object(J.h)("pagenote-description",null,Object(J.h)("pagenote-title",null,a),Object(J.h)("pagenote-content",null)),Object(J.h)("pagenote-lights",null,r.map((function(A,e){return Object(J.h)(Qn,{key:A.lightId,step:A,index:e,running:e===o,dot:l})}))),Object(J.h)("pagenote-infos",null,Object(J.h)(rn,{onSet:this.setCategories,categories:this.pagenote.options.categories,currentCategories:i}),Object(J.h)("pagenote-snapshots",null,s.map((function(e,t){return Object(J.h)("pagenote-snapshot",null,Object(J.h)("pagenote-icon",null,Object(J.h)(cA,{onClick:function(){return A.removeSnapshot(t)},className:sn.a.removeIcon})),Object(J.h)("img",{onClick:function(n){A.bigPicture(n,e,s.map((function(A){return{src:A}})),t)},src:e,alt:""}))}))))))}}]),t}(J.a),En=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1606536179078",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5142",width:"30",height:"30"},t),[Object(J.h)("path",{d:"M876.425846 400.817231l-268.169846 268.130461-185.107692 99.958154-56.241231 56.201846a35.446154 35.446154 0 0 1-42.929231 5.553231l-177.309538-103.424a35.446154 35.446154 0 0 1-7.207385-55.689846l93.105231-93.065846 99.997538-185.225846 268.169846-268.169847a35.446154 35.446154 0 0 1 50.097231 0l225.595077 225.595077a35.446154 35.446154 0 0 1 0 50.136616z",fill:"#FFFFFF","p-id":"5143"},[]),Object(J.h)("path",{d:"M876.425846 400.817231l-268.169846 268.130461-185.107692 99.958154-190.621539-190.424615 100.036923-185.225846 268.169846-268.169847a35.446154 35.446154 0 0 1 50.097231 0l225.595077 225.595077a35.446154 35.446154 0 0 1 0 50.136616z",fill:"#FAD97F","p-id":"5144"},[]),Object(J.h)("path",{d:"M876.425846 400.817231l-268.169846 268.130461-275.692308-275.692307 268.169846-268.169847a35.446154 35.446154 0 0 1 50.097231 0l225.595077 225.595077a35.446154 35.446154 0 0 1 0 50.136616z",fill:"#FAD97F","p-id":"5145"},[]),Object(J.h)("path",{d:"M888.950154 338.156308l-225.555692-225.595077a53.169231 53.169231 0 0 0-75.224616 0L320.039385 380.731077l-3.072 4.096-98.855385 183.020308-91.175385 91.175384a53.169231 53.169231 0 0 0 10.791385 83.534769L315.076923 845.981538l4.568615 2.363077a53.169231 53.169231 0 0 0 59.825231-10.712615l54.429539-54.390154 182.823384-98.697846 4.096-3.032615 268.209231-268.209231a53.169231 53.169231 0 0 0 0-75.145846z m-25.048616 25.048615l2.048 2.441846a17.723077 17.723077 0 0 1-2.048 22.606769l-266.24 266.24-182.980923 98.816-4.096 3.072-56.24123 56.201847a17.723077 17.723077 0 0 1-21.425231 2.756923L155.569231 711.995077a17.723077 17.723077 0 0 1-3.623385-27.844923l93.105231-93.105231 3.072-4.096 98.737231-182.941538 266.358154-266.358154a17.723077 17.723077 0 0 1 25.048615 0l225.595077 225.595077z",fill:"#000000","p-id":"5146"},[]),Object(J.h)("path",{d:"M888.950154 338.156308l-225.555692-225.595077a53.169231 53.169231 0 0 0-75.224616 0L320.039385 380.731077l-3.072 4.096-106.299077 196.844308 209.250461 209.092923 196.765539-106.220308 4.096-3.032615 268.20923-268.209231a53.169231 53.169231 0 0 0 0-75.145846z m-25.048616 25.048615l2.048 2.441846a17.723077 17.723077 0 0 1-2.048 22.606769L597.464615 654.572308l-171.204923 92.435692-171.874461-171.716923 92.553846-171.441231 266.24-266.24a17.723077 17.723077 0 0 1 25.088 0l225.595077 225.595077z",fill:"#000000","p-id":"5147"},[]),Object(J.h)("path",{d:"M888.950154 338.156308l-225.555692-225.595077a53.169231 53.169231 0 0 0-75.224616 0L307.475692 393.255385l300.780308 300.780307 280.694154-280.694154a53.169231 53.169231 0 0 0 0-75.224615z m-25.048616 25.048615l2.048 2.441846a17.723077 17.723077 0 0 1-2.048 22.606769l-255.645538 255.606154L357.612308 393.216l255.606154-255.606154a17.723077 17.723077 0 0 1 25.088 0l225.595076 225.595077z",fill:"#000000","p-id":"5148"},[])])};t(48);function mn(A){var e=A.pagenote,t=(f?0:e.target.x)+"px",n=(f?e.target.y+50:e.target.y)+"px",r=e.options.functionColors,o=e.options.colors,i=e.status===e.CONSTANT.WAITING||e.status===e.CONSTANT.PLAYANDWAIT,s=e.options.shortCuts,a=(f?o.length:h(o.length-1),e.target.canHighlight);function c(A){var t=A.currentTarget.dataset.color||o[0];e.record({bg:t})}var u=e.options.showIconAnimation;return Object(J.h)("div",{style:{position:"absolute",zIndex:2147483648,left:t,top:n,transition:".5s",userSelect:"none",textAlign:"left"}},i&&Object(J.h)("div",null,a&&Object(J.h)("pagenote-colors-container",null,o.map((function(A,e){var t=f||0===e?{x:-40*e,y:0}:h(e-1),n=t.x,r=t.y;return Object(J.h)("pagenote-color-button",{"data-color":A,"data-pagenotecolor":A,style:{"--color":A,transform:"translate(".concat(n,"px,").concat(r,"px)"),top:r/-1+"px",left:n/-1+"px",color:B(A).textColor,textShadow:"1px 1px 0px ".concat(B(B(A).textColor).textColor),animation:"".concat(u&&0!==e?"colorShow 3s ease-out":"")},onClick:c},0!==e?s[e]:Object(J.h)("span",null,Object(J.h)(En,{"data-pagenotecolor":A,style:{userSelect:"none"},fill:A})))}))),r.map((function(A,e){return Object(J.h)("pagenote-plugin-group",{style:{left:34*(e+1)+4+"px",animationDelay:.2*(e+1)+"s"}},A.map((function(A){var e=/^1&&void 0!==arguments[1]?arguments[1]:{},t=new G(A,e),n=document.body||document.documentElement||document.createElement("div"),r=document.createElement("pagenote-bar");r.dataset.pagenote="sidebar",n.appendChild(r),Object(J.k)(Object(J.h)(Cn,{pagenote:t}),r);var o=null;t.addListener(l((function(A,e){A===e&&A!==t.CONSTANT.WAITING||(A===t.CONSTANT.WAITING||A===t.CONSTANT.PLAYANDWAIT?setTimeout((function(){(o=o||document.createElement("pagenote-action")).dataset.pagenote="action",Object(J.k)(Object(J.h)(mn,{pagenote:t}),o),n.appendChild(o)}),10):o&&o.remove())}),16));var i=document.createElement("pagenote-tags");return i.className="no-pagenote",i.dataset.pagenote="tags",Object(J.k)(Object(J.h)(Rn,{pagenote:t}),i),n.appendChild(i),t}e.default=Mn;window.PageNote=Mn},function(A,e,t){"use strict";function n(A){var e=A.getBoundingClientRect(),t=document.body,n=document.documentElement,r=window.pageYOffset||n.scrollTop||t.scrollTop,o=window.pageXOffset||n.scrollLeft||t.scrollLeft,i=n.clientTop||t.clientTop||0,s=n.clientLeft||t.clientLeft||0,a=e.top+r-i,c=e.left+o-s;return{top:Math.round(a),left:Math.round(c)}}function r(A){if(!A)return A;var e=A;try{var t=A.split("."),n=t.slice(0,Math.fround(t.length/2)).join(".");if(!n)return A;document.querySelector(n)===document.querySelector(A)&&(e=n)}catch(A){}return e}t.r(e);var o,i=window.document,s=function(){},a=o=function(A){this.options=Object.assign({},{draw:!0,simpleId:!0},A),this.lastClick=document.body;var e=this;document.addEventListener("mousedown",(function(A){e.lastClick=A.target,e.focusedElement!==e.lastClick&&o.prototype.clean()}))},c=a.prototype;c.getUniqueId=function(A,e){if(!((A=A||this.lastClick)instanceof HTMLElement))return console.error("input is not a HTML element",A),{};var t={wid:"",type:""},n=A.id,o=A.name,s=A.tagName.toLowerCase(),u=A.type?A.type.toLowerCase():"",l="";if((A.classList||[]).forEach((function(A){/^[a-zA-Z]/.test(A)&&(l+="."+A)})),"body"!==s&&"html"!==s||(t.wid=s,t.type=s),n&&i.getElementById(n)===A){var B=new RegExp("^[a-zA-Z]+");!e&&this.options.simpleId?t.wid=n:B.test(n)&&(t.wid=s+"#"+n),t.type="document.getElementById()"}if(!t.wid&&o&&i.getElementsByName(o)[0]===A&&(t.wid=o,t.type="document.getElementsByName()"),!t.wid&&l&&i.querySelector(s+l)===A&&(t.wid=s+l,t.type="document.querySelector()"),!t.wid&&"radio"===u){var f=s+"[value='"+A.value+"']";o&&(f+="[name='"+o+"']"),i.querySelector(f)===A&&(t.wid=f,t.type="document.querySelector()")}if(!t.wid&&"a"===s){var h=A.attributes.href.value;if(h)f="a[href='"+h+"']",i.querySelector(f)===A&&(t.wid=f,t.type="document.querySelector()")}if(t.wid||(f=s,f=l?f+l:f,f=o?f+"[name='"+o+"']":f,i.querySelector(f)===A&&(t.wid=f,t.type="document.querySelector()")),!t.wid){f=s,f=l?f+l:f;var d=i.querySelectorAll(f);if(d&&d.length>0){for(var p=null,g=0;g"+C,i.querySelectorAll(f).length>1){f=null;p=null;for(var E=0;E=1)f=Q+">"+C+":nth-child("+p+")",i.querySelector(f)!==A&&(f=null)}t.wid=f,t.type="document.querySelector()"}return this.focusedElement=c.getTarget(t.wid),!e&&this.options.draw&&this.__proto__.draw(t),t.wid.length>"10"&&(t.warn=!0),t},c.getTarget=function(A,e){var t=null;try{switch(e){case"document.getElementById()":t=i.getElementById(A);break;case"document.getElementsByName()":t=i.getElementsByName(A)[0];break;case"document.querySelector()":t=i.querySelector(A);break;default:t=i.getElementById(A)||i.getElementsByName(A)[0]||i.querySelector(A)}}catch(A){console.error(A)}return t},c.compute=function(A){A=A||this.lastClick;var e=this.getUniqueId(A),t=A.getBoundingClientRect(),r=t.left>0&&t.left0&&t.top3)for(t=[t],o=3;o1&&N(r,e,t),e=F(t,r,r,A.__k,null,r.__e,e),"function"==typeof A.type&&(A.__d=e)))}function O(A,e,t,r,o,i,s,a,c){var u,l,f,h,d,p,Q,C,m,E,U,F=e.type;if(void 0!==e.constructor)return null;null!=t.__h&&(c=t.__h,a=e.__e=t.__e,e.__h=null,i=[a]),(u=n.__b)&&u(e);try{A:if("function"==typeof F){if(C=e.props,m=(u=F.contextType)&&r[u.__c],E=u?m?m.props.value:u.__:r,t.__c?Q=(l=e.__c=t.__c).__=l.__E:("prototype"in F&&F.prototype.render?e.__c=l=new F(C,E):(e.__c=l=new w(C,E),l.constructor=F,l.render=L),m&&m.sub(l),l.props=C,l.state||(l.state={}),l.context=E,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=F.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=B({},l.__s)),B(l.__s,F.getDerivedStateFromProps(C,l.__s))),h=l.props,d=l.state,f)null==F.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==F.getDerivedStateFromProps&&C!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(C,E),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(C,l.__s,E)||e.__v===t.__v){l.props=C,l.state=l.__s,e.__v!==t.__v&&(l.__d=!1),l.__v=e,e.__e=t.__e,e.__k=t.__k,l.__h.length&&s.push(l),N(e,a,A);break A}null!=l.componentWillUpdate&&l.componentWillUpdate(C,l.__s,E),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(h,d,p)}))}l.context=E,l.props=C,l.state=l.__s,(u=n.__r)&&u(e),l.__d=!1,l.__v=e,l.__P=A,u=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=B(B({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(p=l.getSnapshotBeforeUpdate(h,d)),U=null!=u&&u.type==g&&null==u.key?u.props.children:u,v(A,Array.isArray(U)?U:[U],e,t,r,o,i,s,a,c),l.base=e.__e,e.__h=null,l.__h.length&&s.push(l),Q&&(l.__E=l.__=null),l.__e=!1}else null==i&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=I(t.__e,e,t,r,o,i,s,c);(u=n.diffed)&&u(e)}catch(A){e.__v=null,(c||null!=i)&&(e.__e=a,e.__h=!!c,i[i.indexOf(a)]=null),n.__e(A,e,t)}return e.__e}function T(A,e){n.__c&&n.__c(e,A),A.some((function(e){try{A=e.__h,e.__h=[],A.some((function(A){A.call(e)}))}catch(A){n.__e(A,e.__v)}}))}function I(A,e,t,n,r,o,i,s){var a,l,B,f,h,d=t.props,p=e.props;if(r="svg"===e.type||r,null!=o)for(a=0;a3)for(t=[t],o=3;o3;)t.pop()();if(t[1]=t.__.length&&t.__.push({}),t.__[A]}function d(A){return s=1,p(O,A)}function p(A,e,t){var o=h(n++,2);return o.t=A,o.__c||(o.__=[t?t(e):O(void 0,e),function(A){var e=o.t(o.__[0],A);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=r),o.__}function g(A,e){var t=h(n++,3);!i.j.__s&&N(t.__H,e)&&(t.__=A,t.__H=e,r.__H.__h.push(t))}function w(A,e){var t=h(n++,4);!i.j.__s&&N(t.__H,e)&&(t.__=A,t.__H=e,r.__h.push(t))}function Q(A){return s=5,m((function(){return{current:A}}),[])}function C(A,e,t){s=6,w((function(){"function"==typeof A?A(e()):A&&(A.current=e())}),null==t?t:t.concat(A))}function m(A,e){var t=h(n++,7);return N(t.__H,e)&&(t.__=A(),t.__H=e,t.__h=A),t.__}function E(A,e){return s=8,m((function(){return A}),e)}function v(A){var e=r.context[A.__c],t=h(n++,9);return t.__c=A,e?(null==t.__&&(t.__=!0,e.sub(r)),e.props.value):A.__}function U(A,e){i.j.useDebugValue&&i.j.useDebugValue(e?e(A):A)}function F(A){var e=h(n++,10),t=d();return e.__=A,r.componentDidCatch||(r.componentDidCatch=function(A){e.__&&e.__(A),t[1](A)}),[t[0],function(){t[1](void 0)}]}function b(){a.forEach((function(A){if(A.__P)try{A.__H.__h.forEach(H),A.__H.__h.forEach(_),A.__H.__h=[]}catch(e){A.__H.__h=[],i.j.__e(e,A.__v)}})),a=[]}i.j.__b=function(A){r=null,c&&c(A)},i.j.__r=function(A){u&&u(A),n=0;var e=(r=A.__c).__H;e&&(e.__h.forEach(H),e.__h.forEach(_),e.__h=[])},i.j.diffed=function(A){l&&l(A);var e=A.__c;e&&e.__H&&e.__H.__h.length&&(1!==a.push(e)&&o===i.j.requestAnimationFrame||((o=i.j.requestAnimationFrame)||function(A){var e,t=function(){clearTimeout(n),y&&cancelAnimationFrame(e),setTimeout(A)},n=setTimeout(t,100);y&&(e=requestAnimationFrame(t))})(b)),r=void 0},i.j.__c=function(A,e){e.some((function(A){try{A.__h.forEach(H),A.__h=A.__h.filter((function(A){return!A.__||_(A)}))}catch(t){e.some((function(A){A.__h&&(A.__h=[])})),e=[],i.j.__e(t,A.__v)}})),B&&B(A,e)},i.j.unmount=function(A){f&&f(A);var e=A.__c;if(e&&e.__H)try{e.__H.__.forEach(H)}catch(A){i.j.__e(A,e.__v)}};var y="function"==typeof requestAnimationFrame;function H(A){var e=r;"function"==typeof A.__c&&A.__c(),r=e}function _(A){var e=r;A.__c=A.__(),r=e}function N(A,e){return!A||A.length!==e.length||e.some((function(e,t){return e!==A[t]}))}function O(A,e){return"function"==typeof e?e(A):e}},function(A,e,t){A.exports={lightAction:"_1iK",fadeInScale:"_3Zi",actions:"_1le",show:"_3X7",moreInfo:"Shc",actionIcon:"_2tt",deleteIcon:"_1L7",pinIcon:"kRL",pin:"h6Q",moreIcon:"_3Ls",dragIcon:"_1yB",colors:"_35Z",colorOptions:"_1Zr",colorItem:"BLR",active:"_1dQ",currentColor:"_37R",note:"_3vW",showNote:"_3I5"}},function(A,e,t){var n;!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var A=[],e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}function i(A,e,t,n,r,i){return o((s=o(o(e,A),o(n,i)))<<(a=r)|s>>>32-a,t);var s,a}function s(A,e,t,n,r,o,s){return i(e&t|~e&n,A,e,r,o,s)}function a(A,e,t,n,r,o,s){return i(e&n|t&~n,A,e,r,o,s)}function c(A,e,t,n,r,o,s){return i(e^t^n,A,e,r,o,s)}function u(A,e,t,n,r,o,s){return i(t^(e|~n),A,e,r,o,s)}function l(A,e){var t,n,r,i,l;A[e>>5]|=128<>>9<<4)]=e;var B=1732584193,f=-271733879,h=-1732584194,d=271733878;for(t=0;t>5]>>>e%32&255);return t}function f(A){var e,t=[];for(t[(A.length>>2)-1]=void 0,e=0;e>5]|=(255&A.charCodeAt(e/8))<>>4&15)+"0123456789abcdef".charAt(15&e);return n}function d(A){return unescape(encodeURIComponent(A))}function p(A){return function(A){return B(l(f(A),8*A.length))}(d(A))}function g(A,e){return function(A,e){var t,n,r=f(A),o=[],i=[];for(o[15]=i[15]=void 0,r.length>16&&(r=l(r,8*A.length)),t=0;t<16;t+=1)o[t]=909522486^r[t],i[t]=1549556828^r[t];return n=l(o.concat(f(e)),512+8*e.length),B(l(i.concat(n),640))}(d(A),d(e))}function w(A,e,t){return e?t?g(e,A):h(g(e,A)):t?p(A):h(p(A))}void 0===(n=function(){return w}.call(e,t,e,A))||(A.exports=n)}()},function(A,e){function t(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?A.exports=t=function(A){return typeof A}:A.exports=t=function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(e)}A.exports=t},function(A,e,t){A.exports=t(41)},function(A,e){A.exports=function(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=55296&&r<=56319&&t>10),i%1024+56320)),(r+1===t||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),l=0;l=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),d=10,p=13,g=15,w=17,Q=18,C=19,m=20,E=21,v=22,U=24,F=25,b=26,y=27,H=28,_=30,N=32,O=33,T=34,I=35,K=37,S=38,L=39,R=40,M=42,x=function(A){var e,t,n,r=function(A){var e,t,n,r,o,i=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(i--,"="===A[A.length-2]&&i--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e>4,l[a++]=(15&n)<<4|r>>2,l[a++]=(3&r)<<6|63&o;return c}(A),o=Array.isArray(r)?function(A){for(var e=A.length,t=[],n=0;n0;){var i=n[--o];if(Array.isArray(A)?-1!==A.indexOf(i):A===i)for(var s=t;s<=n.length;){var a;if((a=n[++s])===e)return!0;if(a!==d)break}if(i!==d)break}return!1},J=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n!==d)return n;t--}return 0},W=function(A,e,t,n,r){if(0===t[n])return"×";var o=n-1;if(Array.isArray(r)&&!0===r[o])return"×";var i=o-1,s=o+1,a=e[o],c=i>=0?e[i]:0,u=e[s];if(2===a&&3===u)return"×";if(-1!==k.indexOf(a))return"!";if(-1!==k.indexOf(u))return"×";if(-1!==P.indexOf(u))return"×";if(8===J(o,e))return"÷";if(11===x.get(A[o])&&(u===K||u===N||u===O))return"×";if(7===a||7===u)return"×";if(9===a)return"×";if(-1===[d,p,g].indexOf(a)&&9===u)return"×";if(-1!==[w,Q,C,U,H].indexOf(u))return"×";if(J(o,e)===v)return"×";if(G(23,v,o,e))return"×";if(G([w,Q],E,o,e))return"×";if(G(12,12,o,e))return"×";if(a===d)return"÷";if(23===a||23===u)return"×";if(16===u||16===a)return"÷";if(-1!==[p,g,E].indexOf(u)||14===a)return"×";if(36===c&&-1!==X.indexOf(a))return"×";if(a===H&&36===u)return"×";if(u===m&&-1!==D.concat(m,C,F,K,N,O).indexOf(a))return"×";if(-1!==D.indexOf(u)&&a===F||-1!==D.indexOf(a)&&u===F)return"×";if(a===y&&-1!==[K,N,O].indexOf(u)||-1!==[K,N,O].indexOf(a)&&u===b)return"×";if(-1!==D.indexOf(a)&&-1!==V.indexOf(u)||-1!==V.indexOf(a)&&-1!==D.indexOf(u))return"×";if(-1!==[y,b].indexOf(a)&&(u===F||-1!==[v,g].indexOf(u)&&e[s+1]===F)||-1!==[v,g].indexOf(a)&&u===F||a===F&&-1!==[F,H,U].indexOf(u))return"×";if(-1!==[F,H,U,w,Q].indexOf(u))for(var l=o;l>=0;){if((B=e[l])===F)return"×";if(-1===[H,U].indexOf(B))break;l--}if(-1!==[y,b].indexOf(u))for(l=-1!==[w,Q].indexOf(a)?i:o;l>=0;){var B;if((B=e[l])===F)return"×";if(-1===[H,U].indexOf(B))break;l--}if(S===a&&-1!==[S,L,T,I].indexOf(u)||-1!==[L,T].indexOf(a)&&-1!==[L,R].indexOf(u)||-1!==[R,I].indexOf(a)&&u===R)return"×";if(-1!==j.indexOf(a)&&-1!==[m,b].indexOf(u)||-1!==j.indexOf(u)&&a===y)return"×";if(-1!==D.indexOf(a)&&-1!==D.indexOf(u))return"×";if(a===U&&-1!==D.indexOf(u))return"×";if(-1!==D.concat(F).indexOf(a)&&u===v||-1!==D.concat(F).indexOf(u)&&a===Q)return"×";if(41===a&&41===u){for(var f=t[o],h=1;f>0&&41===e[--f];)h++;if(h%2!=0)return"×"}return a===N&&u===O?"×":"÷"},Y=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],n=[],r=[];return A.forEach((function(A,o){var i=x.get(A);if(i>50?(r.push(!0),i-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(o),t.push(16);if(4===i||11===i){if(0===o)return n.push(o),t.push(_);var s=t[o-1];return-1===z.indexOf(s)?(n.push(n[o-1]),t.push(s)):(n.push(o),t.push(_))}return n.push(o),31===i?t.push("strict"===e?E:K):i===M||29===i?t.push(_):43===i?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(K):t.push(_):void t.push(i)})),[n,t,r]}(A,e.lineBreak),n=t[0],r=t[1],o=t[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map((function(A){return-1!==[F,_,M].indexOf(A)?K:A}))),[n,r,"keep-all"===e.wordBreak?o.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0]},q=function(){function A(A,e,t,n){this.codePoints=A,this.required="!"===e,this.start=t,this.end=n}return A.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},A}();!function(A){A[A.STRING_TOKEN=0]="STRING_TOKEN",A[A.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",A[A.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",A[A.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",A[A.COMMA_TOKEN=4]="COMMA_TOKEN",A[A.HASH_TOKEN=5]="HASH_TOKEN",A[A.DELIM_TOKEN=6]="DELIM_TOKEN",A[A.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",A[A.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",A[A.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",A[A.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",A[A.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",A[A.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",A[A.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",A[A.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",A[A.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",A[A.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",A[A.NUMBER_TOKEN=17]="NUMBER_TOKEN",A[A.FUNCTION=18]="FUNCTION",A[A.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",A[A.IDENT_TOKEN=20]="IDENT_TOKEN",A[A.COLUMN_TOKEN=21]="COLUMN_TOKEN",A[A.URL_TOKEN=22]="URL_TOKEN",A[A.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",A[A.CDC_TOKEN=24]="CDC_TOKEN",A[A.CDO_TOKEN=25]="CDO_TOKEN",A[A.COLON_TOKEN=26]="COLON_TOKEN",A[A.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",A[A.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",A[A.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",A[A.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",A[A.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",A[A.EOF_TOKEN=32]="EOF_TOKEN"}(B||(B={}));var Z=function(A){return A>=48&&A<=57},$=function(A){return Z(A)||A>=65&&A<=70||A>=97&&A<=102},AA=function(A){return 10===A||9===A||32===A},eA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},tA=function(A){return eA(A)||Z(A)||45===A},nA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},rA=function(A,e){return 92===A&&10!==e},oA=function(A,e,t){return 45===A?eA(e)||rA(e,t):!!eA(A)||!(92!==A||!rA(A,e))},iA=function(A,e,t){return 43===A||45===A?!!Z(e)||46===e&&Z(t):Z(46===A?e:A)},sA=function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var n=[];Z(A[e]);)n.push(A[e++]);var r=n.length?parseInt(a.apply(void 0,n),10):0;46===A[e]&&e++;for(var o=[];Z(A[e]);)o.push(A[e++]);var i=o.length,s=i?parseInt(a.apply(void 0,o),10):0;69!==A[e]&&101!==A[e]||e++;var c=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(c=-1),e++);for(var u=[];Z(A[e]);)u.push(A[e++]);var l=u.length?parseInt(a.apply(void 0,u),10):0;return t*(r+s*Math.pow(10,-i))*Math.pow(10,c*l)},aA={type:B.LEFT_PARENTHESIS_TOKEN},cA={type:B.RIGHT_PARENTHESIS_TOKEN},uA={type:B.COMMA_TOKEN},lA={type:B.SUFFIX_MATCH_TOKEN},BA={type:B.PREFIX_MATCH_TOKEN},fA={type:B.COLUMN_TOKEN},hA={type:B.DASH_MATCH_TOKEN},dA={type:B.INCLUDE_MATCH_TOKEN},pA={type:B.LEFT_CURLY_BRACKET_TOKEN},gA={type:B.RIGHT_CURLY_BRACKET_TOKEN},wA={type:B.SUBSTRING_MATCH_TOKEN},QA={type:B.BAD_URL_TOKEN},CA={type:B.BAD_STRING_TOKEN},mA={type:B.CDO_TOKEN},EA={type:B.CDC_TOKEN},vA={type:B.COLON_TOKEN},UA={type:B.SEMICOLON_TOKEN},FA={type:B.LEFT_SQUARE_BRACKET_TOKEN},bA={type:B.RIGHT_SQUARE_BRACKET_TOKEN},yA={type:B.WHITESPACE_TOKEN},HA={type:B.EOF_TOKEN},_A=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(s(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==HA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(tA(e)||rA(t,n)){var r=oA(e,t,n)?2:1,o=this.consumeName();return{type:B.HASH_TOKEN,value:o,flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),lA;break;case 39:return this.consumeStringToken(39);case 40:return aA;case 41:return cA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),wA;break;case 43:if(iA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return uA;case 45:var i=A,s=this.peekCodePoint(0),c=this.peekCodePoint(1);if(iA(i,s,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(oA(i,s,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===s&&62===c)return this.consumeCodePoint(),this.consumeCodePoint(),EA;break;case 46:if(iA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(42===u&&47===(u=this.consumeCodePoint()))return this.consumeToken();if(-1===u)return this.consumeToken()}break;case 58:return vA;case 59:return UA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),mA;break;case 64:var l=this.peekCodePoint(0),f=this.peekCodePoint(1),h=this.peekCodePoint(2);if(oA(l,f,h))return o=this.consumeName(),{type:B.AT_KEYWORD_TOKEN,value:o};break;case 91:return FA;case 92:if(rA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return bA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),BA;break;case 123:return pA;case 125:return gA;case 117:case 85:var d=this.peekCodePoint(0),p=this.peekCodePoint(1);return 43!==d||!$(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),hA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),fA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),dA;break;case-1:return HA}return AA(A)?(this.consumeWhiteSpace(),yA):Z(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):eA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:B.DELIM_TOKEN,value:a(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();$(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(a.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),r=parseInt(a.apply(void 0,A.map((function(A){return 63===A?70:A}))),16);return{type:B.UNICODE_RANGE_TOKEN,start:n,end:r}}var o=parseInt(a.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&$(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];$(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return r=parseInt(a.apply(void 0,i),16),{type:B.UNICODE_RANGE_TOKEN,start:o,end:r}}return{type:B.UNICODE_RANGE_TOKEN,start:o,end:o}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:B.FUNCTION_TOKEN,value:A}):{type:B.IDENT_TOKEN,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:B.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===B.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:B.URL_TOKEN,value:t.value}):(this.consumeBadUrlRemnants(),QA)}for(;;){var n=this.consumeCodePoint();if(-1===n||41===n)return{type:B.URL_TOKEN,value:a.apply(void 0,A)};if(AA(n))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:B.URL_TOKEN,value:a.apply(void 0,A)}):(this.consumeBadUrlRemnants(),QA);if(34===n||39===n||40===n||nA(n))return this.consumeBadUrlRemnants(),QA;if(92===n){if(!rA(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),QA;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;AA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;rA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(6e4,A);e+=a.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var n=this._value[t];if(-1===n||void 0===n||n===A)return e+=this.consumeStringSlice(t),{type:B.STRING_TOKEN,value:e};if(10===n)return this._value.splice(0,t),CA;if(92===n){var r=this._value[t+1];-1!==r&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):rA(n,r)&&(e+=this.consumeStringSlice(t),e+=a(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(43!==t&&45!==t||A.push(this.consumeCodePoint());Z(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===t&&Z(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Z(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===t||101===t)&&((43===n||45===n)&&Z(r)||Z(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Z(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[sA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),o=this.peekCodePoint(2);if(oA(n,r,o)){var i=this.consumeName();return{type:B.DIMENSION_TOKEN,number:e,flags:t,unit:i}}return 37===n?(this.consumeCodePoint(),{type:B.PERCENTAGE_TOKEN,number:e,flags:t}):{type:B.NUMBER_TOKEN,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if($(A)){for(var e=a(A);$(this.peekCodePoint(0))&&e.length<6;)e+=a(this.consumeCodePoint());AA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return-1===A?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(tA(e))A+=a(e);else{if(!rA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=a(this.consumeEscapedCodePoint())}}},A}(),NA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new _A;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===B.WHITESPACE_TOKEN;)A=this.consumeToken();if(A.type===B.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(A.type===B.WHITESPACE_TOKEN);if(A.type===B.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===B.EOF_TOKEN)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case B.LEFT_CURLY_BRACKET_TOKEN:case B.LEFT_SQUARE_BRACKET_TOKEN:case B.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case B.FUNCTION_TOKEN:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(t.type===B.EOF_TOKEN||xA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:B.FUNCTION};;){var t=this.consumeToken();if(t.type===B.EOF_TOKEN||t.type===B.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?HA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),OA=function(A){return A.type===B.DIMENSION_TOKEN},TA=function(A){return A.type===B.NUMBER_TOKEN},IA=function(A){return A.type===B.IDENT_TOKEN},KA=function(A){return A.type===B.STRING_TOKEN},SA=function(A,e){return IA(A)&&A.value===e},LA=function(A){return A.type!==B.WHITESPACE_TOKEN},RA=function(A){return A.type!==B.WHITESPACE_TOKEN&&A.type!==B.COMMA_TOKEN},MA=function(A){var e=[],t=[];return A.forEach((function(A){if(A.type===B.COMMA_TOKEN){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}A.type!==B.WHITESPACE_TOKEN&&t.push(A)})),t.length&&e.push(t),e},xA=function(A,e){return e===B.LEFT_CURLY_BRACKET_TOKEN&&A.type===B.RIGHT_CURLY_BRACKET_TOKEN||e===B.LEFT_SQUARE_BRACKET_TOKEN&&A.type===B.RIGHT_SQUARE_BRACKET_TOKEN||e===B.LEFT_PARENTHESIS_TOKEN&&A.type===B.RIGHT_PARENTHESIS_TOKEN},DA=function(A){return A.type===B.NUMBER_TOKEN||A.type===B.DIMENSION_TOKEN},kA=function(A){return A.type===B.PERCENTAGE_TOKEN||DA(A)},PA=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},VA={type:B.NUMBER_TOKEN,number:0,flags:4},zA={type:B.PERCENTAGE_TOKEN,number:50,flags:4},jA={type:B.PERCENTAGE_TOKEN,number:100,flags:4},XA=function(A,e,t){var n=A[0],r=A[1];return[GA(n,e),GA(void 0!==r?r:n,t)]},GA=function(A,e){if(A.type===B.PERCENTAGE_TOKEN)return A.number/100*e;if(OA(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},JA=function(A){if(A.type===B.DIMENSION_TOKEN)switch(A.unit){case"deg":return Math.PI*A.number/180;case"grad":return Math.PI/200*A.number;case"rad":return A.number;case"turn":return 2*Math.PI*A.number}throw new Error("Unsupported angle type")},WA=function(A){return A.type===B.DIMENSION_TOKEN&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)},YA=function(A){switch(A.filter(IA).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[VA,VA];case"to top":case"bottom":return qA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[VA,jA];case"to right":case"left":return qA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[jA,jA];case"to bottom":case"top":return qA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[jA,VA];case"to left":case"right":return qA(270)}return 0},qA=function(A){return Math.PI*A/180},ZA=function(A){if(A.type===B.FUNCTION){var e=ae[A.name];if(void 0===e)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(A.values)}if(A.type===B.HASH_TOKEN){if(3===A.value.length){var t=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);return ee(parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16),1)}if(4===A.value.length){t=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);var o=A.value.substring(3,4);return ee(parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(o+o,16)/255)}if(6===A.value.length)return t=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6),ee(parseInt(t,16),parseInt(n,16),parseInt(r,16),1);if(8===A.value.length)return t=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6),o=A.value.substring(6,8),ee(parseInt(t,16),parseInt(n,16),parseInt(r,16),parseInt(o,16)/255)}if(A.type===B.IDENT_TOKEN){var i=ce[A.value.toUpperCase()];if(void 0!==i)return i}return ce.TRANSPARENT},$A=function(A){return 0==(255&A)},Ae=function(A){var e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?"rgba("+r+","+n+","+t+","+e/255+")":"rgb("+r+","+n+","+t+")"},ee=function(A,e,t,n){return(A<<24|e<<16|t<<8|Math.round(255*n)<<0)>>>0},te=function(A,e){if(A.type===B.NUMBER_TOKEN)return A.number;if(A.type===B.PERCENTAGE_TOKEN){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},ne=function(A){var e=A.filter(RA);if(3===e.length){var t=e.map(te),n=t[0],r=t[1],o=t[2];return ee(n,r,o,1)}if(4===e.length){var i=e.map(te),s=(n=i[0],r=i[1],o=i[2],i[3]);return ee(n,r,o,s)}return 0};function re(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var oe,ie,se=function(A){var e=A.filter(RA),t=e[0],n=e[1],r=e[2],o=e[3],i=(t.type===B.NUMBER_TOKEN?qA(t.number):JA(t))/(2*Math.PI),s=kA(n)?n.number/100:0,a=kA(r)?r.number/100:0,c=void 0!==o&&kA(o)?GA(o,1):1;if(0===s)return ee(255*a,255*a,255*a,1);var u=a<=.5?a*(s+1):a+s-a*s,l=2*a-u,f=re(l,u,i+1/3),h=re(l,u,i),d=re(l,u,i-1/3);return ee(255*f,255*h,255*d,c)},ae={hsl:se,hsla:se,rgb:ne,rgba:ne},ce={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(A){A[A.VALUE=0]="VALUE",A[A.LIST=1]="LIST",A[A.IDENT_VALUE=2]="IDENT_VALUE",A[A.TYPE_VALUE=3]="TYPE_VALUE",A[A.TOKEN_VALUE=4]="TOKEN_VALUE"})(oe||(oe={})),function(A){A[A.BORDER_BOX=0]="BORDER_BOX",A[A.PADDING_BOX=1]="PADDING_BOX",A[A.CONTENT_BOX=2]="CONTENT_BOX"}(ie||(ie={}));var ue,le,Be,fe={name:"background-clip",initialValue:"border-box",prefix:!1,type:oe.LIST,parse:function(A){return A.map((function(A){if(IA(A))switch(A.value){case"padding-box":return ie.PADDING_BOX;case"content-box":return ie.CONTENT_BOX}return ie.BORDER_BOX}))}},he={name:"background-color",initialValue:"transparent",prefix:!1,type:oe.TYPE_VALUE,format:"color"},de=function(A){var e=ZA(A[0]),t=A[1];return t&&kA(t)?{color:e,stop:t}:{color:e,stop:null}},pe=function(A,e){var t=A[0],n=A[A.length-1];null===t.stop&&(t.stop=VA),null===n.stop&&(n.stop=jA);for(var r=[],o=0,i=0;io?r.push(a):r.push(o),o=a}else r.push(null)}var c=null;for(i=0;iA.optimumDistance)?{optimumCorner:e,optimumDistance:s}:A}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Ce=function(A){var e=qA(180),t=[];return MA(A).forEach((function(A,n){if(0===n){var r=A[0];if(r.type===B.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(e=YA(A));if(WA(r))return void(e=(JA(r)+qA(270))%qA(360))}var o=de(A);t.push(o)})),{angle:e,stops:t,type:ue.LINEAR_GRADIENT}},me=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Ee=function(A,e,t,n,r){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",A.toString()),i.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(r),i},ve=function(A){return new Promise((function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Ue={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);var n=e.getBoundingClientRect(),r=Math.round(n.height);if(A.body.removeChild(t),123===r)return!0}}return!1}(document);return Object.defineProperty(Ue,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(Ue,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var n=new Image,r=e.toDataURL();n.src=r;var o=Ee(100,100,0,0,n);return t.fillStyle="red",t.fillRect(0,0,100,100),ve(o).then((function(e){t.drawImage(e,0,0);var n=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var o=A.createElement("div");return o.style.backgroundImage="url("+r+")",o.style.height="100px",me(n)?ve(Ee(100,100,0,0,o)):Promise.reject(!1)})).then((function(A){return t.drawImage(A,0,0),me(t.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Ue,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Ue,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Ue,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ue,"SUPPORT_CORS_XHR",{value:A}),A}},Fe=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e0&&setTimeout((function(){return e("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise((function(r,o){var i=Ue.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status)if("text"===i)r(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return r(A.result)}),!1),A.addEventListener("error",(function(A){return o(A)}),!1),A.readAsDataURL(s.response)}else o("Failed to proxy resource "+n+" with status code "+s.status)},s.onerror=o,s.open("GET",t+"?url="+encodeURIComponent(A)+"&responseType="+i),"text"!==i&&s instanceof XMLHttpRequest&&(s.responseType=i),e._options.imageTimeout){var a=e._options.imageTimeout;s.timeout=a,s.ontimeout=function(){return o("Timed out ("+a+"ms) proxying "+n)}}s.send()}))},A}(),He=/^data:image\/svg\+xml/i,_e=/^data:image\/.*;base64,/i,Ne=/^data:image\/.*/i,Oe=function(A){return Ue.SUPPORT_SVG_DRAWING||!Se(A)},Te=function(A){return Ne.test(A)},Ie=function(A){return _e.test(A)},Ke=function(A){return"blob"===A.substr(0,4)},Se=function(A){return"svg"===A.substr(-3).toLowerCase()||He.test(A)},Le=function(A){var e=le.CIRCLE,t=Be.FARTHEST_CORNER,n=[],r=[];return MA(A).forEach((function(A,o){var i=!0;if(0===o?i=A.reduce((function(A,e){if(IA(e))switch(e.value){case"center":return r.push(zA),!1;case"top":case"left":return r.push(VA),!1;case"right":case"bottom":return r.push(jA),!1}else if(kA(e)||DA(e))return r.push(e),!1;return A}),i):1===o&&(i=A.reduce((function(A,n){if(IA(n))switch(n.value){case"circle":return e=le.CIRCLE,!1;case"ellipse":return e=le.ELLIPSE,!1;case"contain":case"closest-side":return t=Be.CLOSEST_SIDE,!1;case"farthest-side":return t=Be.FARTHEST_SIDE,!1;case"closest-corner":return t=Be.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return t=Be.FARTHEST_CORNER,!1}else if(DA(n)||kA(n))return Array.isArray(t)||(t=[]),t.push(n),!1;return A}),i)),i){var s=de(A);n.push(s)}})),{size:t,shape:e,stops:n,position:r,type:ue.RADIAL_GRADIENT}};!function(A){A[A.URL=0]="URL",A[A.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",A[A.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(ue||(ue={})),function(A){A[A.CIRCLE=0]="CIRCLE",A[A.ELLIPSE=1]="ELLIPSE"}(le||(le={})),function(A){A[A.CLOSEST_SIDE=0]="CLOSEST_SIDE",A[A.FARTHEST_SIDE=1]="FARTHEST_SIDE",A[A.CLOSEST_CORNER=2]="CLOSEST_CORNER",A[A.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Be||(Be={}));var Re,Me=function(A){if(A.type===B.URL_TOKEN){var e={url:A.value,type:ue.URL};return be.getInstance().addImage(A.value),e}if(A.type===B.FUNCTION){var t=xe[A.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(A.values)}throw new Error("Unsupported image type")},xe={"linear-gradient":function(A){var e=qA(180),t=[];return MA(A).forEach((function(A,n){if(0===n){var r=A[0];if(r.type===B.IDENT_TOKEN&&"to"===r.value)return void(e=YA(A));if(WA(r))return void(e=JA(r))}var o=de(A);t.push(o)})),{angle:e,stops:t,type:ue.LINEAR_GRADIENT}},"-moz-linear-gradient":Ce,"-ms-linear-gradient":Ce,"-o-linear-gradient":Ce,"-webkit-linear-gradient":Ce,"radial-gradient":function(A){var e=le.CIRCLE,t=Be.FARTHEST_CORNER,n=[],r=[];return MA(A).forEach((function(A,o){var i=!0;if(0===o){var s=!1;i=A.reduce((function(A,n){if(s)if(IA(n))switch(n.value){case"center":return r.push(zA),A;case"top":case"left":return r.push(VA),A;case"right":case"bottom":return r.push(jA),A}else(kA(n)||DA(n))&&r.push(n);else if(IA(n))switch(n.value){case"circle":return e=le.CIRCLE,!1;case"ellipse":return e=le.ELLIPSE,!1;case"at":return s=!0,!1;case"closest-side":return t=Be.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return t=Be.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return t=Be.CLOSEST_CORNER,!1;case"farthest-corner":return t=Be.FARTHEST_CORNER,!1}else if(DA(n)||kA(n))return Array.isArray(t)||(t=[]),t.push(n),!1;return A}),i)}if(i){var a=de(A);n.push(a)}})),{size:t,shape:e,stops:n,position:r,type:ue.RADIAL_GRADIENT}},"-moz-radial-gradient":Le,"-ms-radial-gradient":Le,"-o-radial-gradient":Le,"-webkit-radial-gradient":Le,"-webkit-gradient":function(A){var e=qA(180),t=[],n=ue.LINEAR_GRADIENT,r=le.CIRCLE,o=Be.FARTHEST_CORNER;return MA(A).forEach((function(A,e){var r=A[0];if(0===e){if(IA(r)&&"linear"===r.value)return void(n=ue.LINEAR_GRADIENT);if(IA(r)&&"radial"===r.value)return void(n=ue.RADIAL_GRADIENT)}if(r.type===B.FUNCTION)if("from"===r.name){var o=ZA(r.values[0]);t.push({stop:VA,color:o})}else if("to"===r.name)o=ZA(r.values[0]),t.push({stop:jA,color:o});else if("color-stop"===r.name){var i=r.values.filter(RA);if(2===i.length){o=ZA(i[1]);var s=i[0];TA(s)&&t.push({stop:{type:B.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}})),n===ue.LINEAR_GRADIENT?{angle:(e+qA(180))%qA(360),stops:t,type:n}:{size:o,shape:r,stops:t,position:[],type:n}}},De={name:"background-image",initialValue:"none",type:oe.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===B.IDENT_TOKEN&&"none"===e.value?[]:A.filter((function(A){return RA(A)&&function(A){return A.type!==B.FUNCTION||xe[A.name]}(A)})).map(Me)}},ke={name:"background-origin",initialValue:"border-box",prefix:!1,type:oe.LIST,parse:function(A){return A.map((function(A){if(IA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Pe={name:"background-position",initialValue:"0% 0%",type:oe.LIST,prefix:!1,parse:function(A){return MA(A).map((function(A){return A.filter(kA)})).map(PA)}};!function(A){A[A.REPEAT=0]="REPEAT",A[A.NO_REPEAT=1]="NO_REPEAT",A[A.REPEAT_X=2]="REPEAT_X",A[A.REPEAT_Y=3]="REPEAT_Y"}(Re||(Re={}));var Ve,ze={name:"background-repeat",initialValue:"repeat",prefix:!1,type:oe.LIST,parse:function(A){return MA(A).map((function(A){return A.filter(IA).map((function(A){return A.value})).join(" ")})).map(je)}},je=function(A){switch(A){case"no-repeat":return Re.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Re.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Re.REPEAT_Y;case"repeat":default:return Re.REPEAT}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(Ve||(Ve={}));var Xe,Ge={name:"background-size",initialValue:"0",prefix:!1,type:oe.LIST,parse:function(A){return MA(A).map((function(A){return A.filter(Je)}))}},Je=function(A){return IA(A)||kA(A)},We=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:oe.TYPE_VALUE,format:"color"}},Ye=We("top"),qe=We("right"),Ze=We("bottom"),$e=We("left"),At=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:oe.LIST,parse:function(A){return PA(A.filter(kA))}}},et=At("top-left"),tt=At("top-right"),nt=At("bottom-right"),rt=At("bottom-left");!function(A){A[A.NONE=0]="NONE",A[A.SOLID=1]="SOLID"}(Xe||(Xe={}));var ot,it=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"none":return Xe.NONE}return Xe.SOLID}}},st=it("top"),at=it("right"),ct=it("bottom"),ut=it("left"),lt=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:oe.VALUE,prefix:!1,parse:function(A){return OA(A)?A.number:0}}},Bt=lt("top"),ft=lt("right"),ht=lt("bottom"),dt=lt("left"),pt={name:"color",initialValue:"transparent",prefix:!1,type:oe.TYPE_VALUE,format:"color"},gt={name:"display",initialValue:"inline-block",prefix:!1,type:oe.LIST,parse:function(A){return A.filter(IA).reduce((function(A,e){return A|wt(e.value)}),0)}},wt=function(A){switch(A){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(A){A[A.NONE=0]="NONE",A[A.LEFT=1]="LEFT",A[A.RIGHT=2]="RIGHT",A[A.INLINE_START=3]="INLINE_START",A[A.INLINE_END=4]="INLINE_END"}(ot||(ot={}));var Qt,Ct={name:"float",initialValue:"none",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"left":return ot.LEFT;case"right":return ot.RIGHT;case"inline-start":return ot.INLINE_START;case"inline-end":return ot.INLINE_END}return ot.NONE}},mt={name:"letter-spacing",initialValue:"0",prefix:!1,type:oe.VALUE,parse:function(A){return A.type===B.IDENT_TOKEN&&"normal"===A.value?0:A.type===B.NUMBER_TOKEN||A.type===B.DIMENSION_TOKEN?A.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Qt||(Qt={}));var Et,vt={name:"line-break",initialValue:"normal",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"strict":return Qt.STRICT;case"normal":default:return Qt.NORMAL}}},Ut={name:"line-height",initialValue:"normal",prefix:!1,type:oe.TOKEN_VALUE},Ft={name:"list-style-image",initialValue:"none",type:oe.VALUE,prefix:!1,parse:function(A){return A.type===B.IDENT_TOKEN&&"none"===A.value?null:Me(A)}};!function(A){A[A.INSIDE=0]="INSIDE",A[A.OUTSIDE=1]="OUTSIDE"}(Et||(Et={}));var bt,yt={name:"list-style-position",initialValue:"outside",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"inside":return Et.INSIDE;case"outside":default:return Et.OUTSIDE}}};!function(A){A[A.NONE=-1]="NONE",A[A.DISC=0]="DISC",A[A.CIRCLE=1]="CIRCLE",A[A.SQUARE=2]="SQUARE",A[A.DECIMAL=3]="DECIMAL",A[A.CJK_DECIMAL=4]="CJK_DECIMAL",A[A.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",A[A.LOWER_ROMAN=6]="LOWER_ROMAN",A[A.UPPER_ROMAN=7]="UPPER_ROMAN",A[A.LOWER_GREEK=8]="LOWER_GREEK",A[A.LOWER_ALPHA=9]="LOWER_ALPHA",A[A.UPPER_ALPHA=10]="UPPER_ALPHA",A[A.ARABIC_INDIC=11]="ARABIC_INDIC",A[A.ARMENIAN=12]="ARMENIAN",A[A.BENGALI=13]="BENGALI",A[A.CAMBODIAN=14]="CAMBODIAN",A[A.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",A[A.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",A[A.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",A[A.DEVANAGARI=18]="DEVANAGARI",A[A.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",A[A.GEORGIAN=20]="GEORGIAN",A[A.GUJARATI=21]="GUJARATI",A[A.GURMUKHI=22]="GURMUKHI",A[A.HEBREW=22]="HEBREW",A[A.HIRAGANA=23]="HIRAGANA",A[A.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",A[A.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",A[A.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",A[A.KANNADA=27]="KANNADA",A[A.KATAKANA=28]="KATAKANA",A[A.KATAKANA_IROHA=29]="KATAKANA_IROHA",A[A.KHMER=30]="KHMER",A[A.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",A[A.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",A[A.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",A[A.LAO=34]="LAO",A[A.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",A[A.MALAYALAM=36]="MALAYALAM",A[A.MONGOLIAN=37]="MONGOLIAN",A[A.MYANMAR=38]="MYANMAR",A[A.ORIYA=39]="ORIYA",A[A.PERSIAN=40]="PERSIAN",A[A.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",A[A.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",A[A.TAMIL=43]="TAMIL",A[A.TELUGU=44]="TELUGU",A[A.THAI=45]="THAI",A[A.TIBETAN=46]="TIBETAN",A[A.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",A[A.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",A[A.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",A[A.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",A[A.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(bt||(bt={}));var Ht,_t={name:"list-style-type",initialValue:"none",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"disc":return bt.DISC;case"circle":return bt.CIRCLE;case"square":return bt.SQUARE;case"decimal":return bt.DECIMAL;case"cjk-decimal":return bt.CJK_DECIMAL;case"decimal-leading-zero":return bt.DECIMAL_LEADING_ZERO;case"lower-roman":return bt.LOWER_ROMAN;case"upper-roman":return bt.UPPER_ROMAN;case"lower-greek":return bt.LOWER_GREEK;case"lower-alpha":return bt.LOWER_ALPHA;case"upper-alpha":return bt.UPPER_ALPHA;case"arabic-indic":return bt.ARABIC_INDIC;case"armenian":return bt.ARMENIAN;case"bengali":return bt.BENGALI;case"cambodian":return bt.CAMBODIAN;case"cjk-earthly-branch":return bt.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return bt.CJK_HEAVENLY_STEM;case"cjk-ideographic":return bt.CJK_IDEOGRAPHIC;case"devanagari":return bt.DEVANAGARI;case"ethiopic-numeric":return bt.ETHIOPIC_NUMERIC;case"georgian":return bt.GEORGIAN;case"gujarati":return bt.GUJARATI;case"gurmukhi":return bt.GURMUKHI;case"hebrew":return bt.HEBREW;case"hiragana":return bt.HIRAGANA;case"hiragana-iroha":return bt.HIRAGANA_IROHA;case"japanese-formal":return bt.JAPANESE_FORMAL;case"japanese-informal":return bt.JAPANESE_INFORMAL;case"kannada":return bt.KANNADA;case"katakana":return bt.KATAKANA;case"katakana-iroha":return bt.KATAKANA_IROHA;case"khmer":return bt.KHMER;case"korean-hangul-formal":return bt.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return bt.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return bt.KOREAN_HANJA_INFORMAL;case"lao":return bt.LAO;case"lower-armenian":return bt.LOWER_ARMENIAN;case"malayalam":return bt.MALAYALAM;case"mongolian":return bt.MONGOLIAN;case"myanmar":return bt.MYANMAR;case"oriya":return bt.ORIYA;case"persian":return bt.PERSIAN;case"simp-chinese-formal":return bt.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return bt.SIMP_CHINESE_INFORMAL;case"tamil":return bt.TAMIL;case"telugu":return bt.TELUGU;case"thai":return bt.THAI;case"tibetan":return bt.TIBETAN;case"trad-chinese-formal":return bt.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return bt.TRAD_CHINESE_INFORMAL;case"upper-armenian":return bt.UPPER_ARMENIAN;case"disclosure-open":return bt.DISCLOSURE_OPEN;case"disclosure-closed":return bt.DISCLOSURE_CLOSED;case"none":default:return bt.NONE}}},Nt=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:oe.TOKEN_VALUE}},Ot=Nt("top"),Tt=Nt("right"),It=Nt("bottom"),Kt=Nt("left");!function(A){A[A.VISIBLE=0]="VISIBLE",A[A.HIDDEN=1]="HIDDEN",A[A.SCROLL=2]="SCROLL",A[A.AUTO=3]="AUTO"}(Ht||(Ht={}));var St,Lt={name:"overflow",initialValue:"visible",prefix:!1,type:oe.LIST,parse:function(A){return A.filter(IA).map((function(A){switch(A.value){case"hidden":return Ht.HIDDEN;case"scroll":return Ht.SCROLL;case"auto":return Ht.AUTO;case"visible":default:return Ht.VISIBLE}}))}};!function(A){A.NORMAL="normal",A.BREAK_WORD="break-word"}(St||(St={}));var Rt,Mt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return St.BREAK_WORD;case"normal":default:return St.NORMAL}}},xt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:oe.TYPE_VALUE,format:"length-percentage"}},Dt=xt("top"),kt=xt("right"),Pt=xt("bottom"),Vt=xt("left");!function(A){A[A.LEFT=0]="LEFT",A[A.CENTER=1]="CENTER",A[A.RIGHT=2]="RIGHT"}(Rt||(Rt={}));var zt,jt={name:"text-align",initialValue:"left",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"right":return Rt.RIGHT;case"center":case"justify":return Rt.CENTER;case"left":default:return Rt.LEFT}}};!function(A){A[A.STATIC=0]="STATIC",A[A.RELATIVE=1]="RELATIVE",A[A.ABSOLUTE=2]="ABSOLUTE",A[A.FIXED=3]="FIXED",A[A.STICKY=4]="STICKY"}(zt||(zt={}));var Xt,Gt={name:"position",initialValue:"static",prefix:!1,type:oe.IDENT_VALUE,parse:function(A){switch(A){case"relative":return zt.RELATIVE;case"absolute":return zt.ABSOLUTE;case"fixed":return zt.FIXED;case"sticky":return zt.STICKY}return zt.STATIC}},Jt={name:"text-shadow",initialValue:"none",type:oe.LIST,prefix:!1,parse:function(A){return 1===A.length&&SA(A[0],"none")?[]:MA(A).map((function(A){for(var e={color:ce.TRANSPARENT,offsetX:VA,offsetY:VA,blur:VA},t=0,n=0;n1?1:0],this.overflowWrap=yn(Mt,A.overflowWrap),this.paddingTop=yn(Dt,A.paddingTop),this.paddingRight=yn(kt,A.paddingRight),this.paddingBottom=yn(Pt,A.paddingBottom),this.paddingLeft=yn(Vt,A.paddingLeft),this.position=yn(Gt,A.position),this.textAlign=yn(jt,A.textAlign),this.textDecorationColor=yn(cn,A.textDecorationColor||A.color),this.textDecorationLine=yn(un,A.textDecorationLine),this.textShadow=yn(Jt,A.textShadow),this.textTransform=yn(Yt,A.textTransform),this.transform=yn(qt,A.transform),this.transformOrigin=yn(en,A.transformOrigin),this.visibility=yn(nn,A.visibility),this.wordBreak=yn(on,A.wordBreak),this.zIndex=yn(sn,A.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Wt.VISIBLE},A.prototype.isTransparent=function(){return $A(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return this.position!==zt.STATIC},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==ot.NONE},A.prototype.isInlineLevel=function(){return gn(this.display,4)||gn(this.display,33554432)||gn(this.display,268435456)||gn(this.display,536870912)||gn(this.display,67108864)||gn(this.display,134217728)},A}(),Fn=function(A){this.content=yn(wn,A.content),this.quotes=yn(mn,A.quotes)},bn=function(A){this.counterIncrement=yn(Qn,A.counterIncrement),this.counterReset=yn(Cn,A.counterReset)},yn=function(A,e){var t=new _A,n=null!=e?e.toString():A.initialValue;t.write(n);var r=new NA(t.read());switch(A.type){case oe.IDENT_VALUE:var o=r.parseComponentValue();return A.parse(IA(o)?o.value:A.initialValue);case oe.VALUE:return A.parse(r.parseComponentValue());case oe.LIST:return A.parse(r.parseComponentValues());case oe.TOKEN_VALUE:return r.parseComponentValue();case oe.TYPE_VALUE:switch(A.format){case"angle":return JA(r.parseComponentValue());case"color":return ZA(r.parseComponentValue());case"image":return Me(r.parseComponentValue());case"length":var i=r.parseComponentValue();return DA(i)?i:VA;case"length-percentage":var s=r.parseComponentValue();return kA(s)?s:VA}}throw new Error("Attempting to parse unsupported css format type "+A.format)},Hn=function(A){this.styles=new Un(window.getComputedStyle(A,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&or(A)&&(A.style.transform="none"),this.bounds=i(A),this.flags=0},_n=function(A,e){this.text=A,this.bounds=e},Nn=function(A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var r=i(t);return t.firstChild&&n.replaceChild(t.firstChild,t),r}}return new o(0,0,0,0)},On=function(A,e,t){var n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),o.fromClientRect(r.getBoundingClientRect())},Tn=function(A,e){return 0!==e.letterSpacing?s(A).map((function(A){return a(A)})):In(A,e)},In=function(A,e){for(var t,n=function(A,e){var t=s(A),n=Y(t,e),r=n[0],o=n[1],i=n[2],a=t.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var A="×";u0)if(Ue.SUPPORT_RANGE_BOUNDS)r.push(new _n(A,On(t,o,A.length)));else{var n=t.splitText(A.length);r.push(new _n(A,Nn(t))),t=n}else Ue.SUPPORT_RANGE_BOUNDS||(t=t.splitText(A.length));o+=A.length})),r}(this.text,e,A)},Sn=function(A,e){switch(e){case Xt.LOWERCASE:return A.toLowerCase();case Xt.CAPITALIZE:return A.replace(Ln,Rn);case Xt.UPPERCASE:return A.toUpperCase();default:return A}},Ln=/(^|\s|:|-|\(|\))([a-z])/g,Rn=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Mn=function(A){function t(e){var t=A.call(this,e)||this;return t.src=e.currentSrc||e.src,t.intrinsicWidth=e.naturalWidth,t.intrinsicHeight=e.naturalHeight,be.getInstance().addImage(t.src),t}return e(t,A),t}(Hn),xn=function(A){function t(e){var t=A.call(this,e)||this;return t.canvas=e,t.intrinsicWidth=e.width,t.intrinsicHeight=e.height,t}return e(t,A),t}(Hn),Dn=function(A){function t(e){var t=A.call(this,e)||this,n=new XMLSerializer;return t.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,be.getInstance().addImage(t.svg),t}return e(t,A),t}(Hn),kn=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(Hn),Pn=function(A){function t(e){var t=A.call(this,e)||this;return t.start=e.start,t.reversed="boolean"==typeof e.reversed&&!0===e.reversed,t}return e(t,A),t}(Hn),Vn=[{type:B.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],zn=[{type:B.PERCENTAGE_TOKEN,flags:0,number:50}],jn="password",Xn=function(A){function t(e){var t,n,r,i=A.call(this,e)||this;switch(i.type=e.type.toLowerCase(),i.checked=e.checked,i.value=0===(n=(t=e).type===jn?new Array(t.value.length+1).join("•"):t.value).length?t.placeholder||"":n,"checkbox"!==i.type&&"radio"!==i.type||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=Xe.SOLID,i.styles.backgroundClip=[ie.BORDER_BOX],i.styles.backgroundOrigin=[0],i.bounds=(r=i.bounds).width>r.height?new o(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)e.textNodes.push(new Kn(n,e.styles));else if(rr(n)){var o=$n(n);o.styles.isVisible()&&(er(n,o,t)?o.flags|=4:tr(o.styles)&&(o.flags|=2),-1!==qn.indexOf(n.tagName)&&(o.flags|=8),e.elements.push(o),gr(n)||ur(n)||wr(n)||Zn(n,o,t))}},$n=function(A){return fr(A)?new Mn(A):Br(A)?new xn(A):ur(A)?new Dn(A):sr(A)?new kn(A):ar(A)?new Pn(A):cr(A)?new Xn(A):wr(A)?new Gn(A):gr(A)?new Jn(A):hr(A)?new Yn(A):new Hn(A)},Ar=function(A){var e=$n(A);return e.flags|=4,Zn(A,e,e),e},er=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||lr(A)&&t.styles.isTransparent()},tr=function(A){return A.isPositioned()||A.isFloating()},nr=function(A){return A.nodeType===Node.TEXT_NODE},rr=function(A){return A.nodeType===Node.ELEMENT_NODE},or=function(A){return rr(A)&&void 0!==A.style&&!ir(A)},ir=function(A){return"object"==typeof A.className},sr=function(A){return"LI"===A.tagName},ar=function(A){return"OL"===A.tagName},cr=function(A){return"INPUT"===A.tagName},ur=function(A){return"svg"===A.tagName},lr=function(A){return"BODY"===A.tagName},Br=function(A){return"CANVAS"===A.tagName},fr=function(A){return"IMG"===A.tagName},hr=function(A){return"IFRAME"===A.tagName},dr=function(A){return"STYLE"===A.tagName},pr=function(A){return"SCRIPT"===A.tagName},gr=function(A){return"TEXTAREA"===A.tagName},wr=function(A){return"SELECT"===A.tagName},Qr=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,r=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(r=!1,t[Math.max(0,t.length-1)]+=A.increment)}));var o=[];return r&&n.forEach((function(A){var t=e.counters[A.counter];o.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),o},A}(),Cr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},mr={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Er={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},vr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ur=function(A,e,t,n,r,o){return At?_r(A,r,o.length>0):n.integers.reduce((function(e,t,r){for(;A>=t;)A-=t,e+=n.values[r];return e}),"")+o},Fr=function(A,e,t,n){var r="";do{t||A--,r=n(A)+r,A/=e}while(A*e>=e);return r},br=function(A,e,t,n,r){var o=t-e+1;return(A<0?"-":"")+(Fr(Math.abs(A),o,n,(function(A){return a(Math.floor(A%o)+e)}))+r)},yr=function(A,e,t){void 0===t&&(t=". ");var n=e.length;return Fr(Math.abs(A),n,!1,(function(A){return e[Math.floor(A%n)]}))+t},Hr=function(A,e,t,n,r,o){if(A<-9999||A>9999)return _r(A,bt.CJK_DECIMAL,r.length>0);var i=Math.abs(A),s=r;if(0===i)return e[0]+s;for(var a=0;i>0&&a<=4;a++){var c=i%10;0===c&&gn(o,1)&&""!==s?s=e[c]+s:c>1||1===c&&0===a||1===c&&1===a&&gn(o,2)||1===c&&1===a&&gn(o,4)&&A>100||1===c&&a>1&&gn(o,8)?s=e[c]+(a>0?t[a-1]:"")+s:1===c&&a>0&&(s=t[a-1]+s),i=Math.floor(i/10)}return(A<0?n:"")+s},_r=function(A,e,t){var n=t?". ":"",r=t?"、":"",o=t?", ":"",i=t?" ":"";switch(e){case bt.DISC:return"•"+i;case bt.CIRCLE:return"◦"+i;case bt.SQUARE:return"◾"+i;case bt.DECIMAL_LEADING_ZERO:var s=br(A,48,57,!0,n);return s.length<4?"0"+s:s;case bt.CJK_DECIMAL:return yr(A,"〇一二三四五六七八九",r);case bt.LOWER_ROMAN:return Ur(A,1,3999,Cr,bt.DECIMAL,n).toLowerCase();case bt.UPPER_ROMAN:return Ur(A,1,3999,Cr,bt.DECIMAL,n);case bt.LOWER_GREEK:return br(A,945,969,!1,n);case bt.LOWER_ALPHA:return br(A,97,122,!1,n);case bt.UPPER_ALPHA:return br(A,65,90,!1,n);case bt.ARABIC_INDIC:return br(A,1632,1641,!0,n);case bt.ARMENIAN:case bt.UPPER_ARMENIAN:return Ur(A,1,9999,mr,bt.DECIMAL,n);case bt.LOWER_ARMENIAN:return Ur(A,1,9999,mr,bt.DECIMAL,n).toLowerCase();case bt.BENGALI:return br(A,2534,2543,!0,n);case bt.CAMBODIAN:case bt.KHMER:return br(A,6112,6121,!0,n);case bt.CJK_EARTHLY_BRANCH:return yr(A,"子丑寅卯辰巳午未申酉戌亥",r);case bt.CJK_HEAVENLY_STEM:return yr(A,"甲乙丙丁戊己庚辛壬癸",r);case bt.CJK_IDEOGRAPHIC:case bt.TRAD_CHINESE_INFORMAL:return Hr(A,"零一二三四五六七八九","十百千萬","負",r,14);case bt.TRAD_CHINESE_FORMAL:return Hr(A,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",r,15);case bt.SIMP_CHINESE_INFORMAL:return Hr(A,"零一二三四五六七八九","十百千萬","负",r,14);case bt.SIMP_CHINESE_FORMAL:return Hr(A,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",r,15);case bt.JAPANESE_INFORMAL:return Hr(A,"〇一二三四五六七八九","十百千万","マイナス",r,0);case bt.JAPANESE_FORMAL:return Hr(A,"零壱弐参四伍六七八九","拾百千万","マイナス",r,7);case bt.KOREAN_HANGUL_FORMAL:return Hr(A,"영일이삼사오육칠팔구","십백천만","마이너스",o,7);case bt.KOREAN_HANJA_INFORMAL:return Hr(A,"零一二三四五六七八九","十百千萬","마이너스",o,0);case bt.KOREAN_HANJA_FORMAL:return Hr(A,"零壹貳參四五六七八九","拾百千","마이너스",o,7);case bt.DEVANAGARI:return br(A,2406,2415,!0,n);case bt.GEORGIAN:return Ur(A,1,19999,vr,bt.DECIMAL,n);case bt.GUJARATI:return br(A,2790,2799,!0,n);case bt.GURMUKHI:return br(A,2662,2671,!0,n);case bt.HEBREW:return Ur(A,1,10999,Er,bt.DECIMAL,n);case bt.HIRAGANA:return yr(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case bt.HIRAGANA_IROHA:return yr(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case bt.KANNADA:return br(A,3302,3311,!0,n);case bt.KATAKANA:return yr(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case bt.KATAKANA_IROHA:return yr(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case bt.LAO:return br(A,3792,3801,!0,n);case bt.MONGOLIAN:return br(A,6160,6169,!0,n);case bt.MYANMAR:return br(A,4160,4169,!0,n);case bt.ORIYA:return br(A,2918,2927,!0,n);case bt.PERSIAN:return br(A,1776,1785,!0,n);case bt.TAMIL:return br(A,3046,3055,!0,n);case bt.TELUGU:return br(A,3174,3183,!0,n);case bt.THAI:return br(A,3664,3673,!0,n);case bt.TIBETAN:return br(A,3872,3881,!0,n);case bt.DECIMAL:default:return br(A,48,57,!0,n)}},Nr=function(){function A(A,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=A,this.counters=new Qr,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}return A.prototype.toIFrame=function(A,e){var t=this,o=Tr(A,e);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=o.contentWindow,c=a.document,u=Ir(o).then((function(){return n(t,void 0,void 0,(function(){var A;return r(this,(function(t){switch(t.label){case 0:return this.scrolledElements.forEach(Rr),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(c.documentElement.style.top=-e.top+"px",c.documentElement.style.left=-e.left+"px",c.documentElement.style.position="absolute")),A=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:t.sent(),t.label=2;case 2:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(c)})).then((function(){return o}))]:[2,o]}}))}))}));return c.open(),c.write(Sr(document.doctype)+""),Lr(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},A.prototype.createElementClone=function(A){if(Br(A))return this.createCanvasClone(A);if(dr(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return fr(e)&&"lazy"===e.loading&&(e.loading="eager"),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(A){if(Fe.getInstance(this.options.id).error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(A){Fe.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var t=A.cloneNode(!1);try{t.width=A.width,t.height=A.height;var n=A.getContext("2d"),r=t.getContext("2d");return r&&(n?r.putImageData(n.getImageData(0,0,A.width,A.height),0,0):r.drawImage(A,0,0)),t}catch(A){}return t},A.prototype.cloneNode=function(A){if(nr(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&rr(A)&&(or(A)||ir(A))){var t=this.createElementClone(A),n=e.getComputedStyle(A),r=e.getComputedStyle(A,":before"),o=e.getComputedStyle(A,":after");this.referenceElement===A&&or(t)&&(this.clonedReferenceElement=t),lr(t)&&Dr(t);for(var i=this.counters.parse(new bn(n)),s=this.resolvePseudoContent(A,t,r,dn.BEFORE),a=A.firstChild;a;a=a.nextSibling)rr(a)&&(pr(a)||a.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(a))||this.options.copyStyles&&rr(a)&&dr(a)||t.appendChild(this.cloneNode(a));s&&t.insertBefore(s,t.firstChild);var c=this.resolvePseudoContent(A,t,o,dn.AFTER);return c&&t.appendChild(c),this.counters.pop(i),n&&(this.options.copyStyles||ir(A))&&!hr(A)&&Kr(n,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),(gr(A)||wr(A))&&(gr(t)||wr(t))&&(t.value=A.value),t}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,n){var r=this;if(t){var o=t.content,i=e.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==t.display){this.counters.parse(new bn(t));var s=new Fn(t),a=i.createElement("html2canvaspseudoelement");Kr(t,a),s.content.forEach((function(e){if(e.type===B.STRING_TOKEN)a.appendChild(i.createTextNode(e.value));else if(e.type===B.URL_TOKEN){var t=i.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(e.type===B.FUNCTION){if("attr"===e.name){var n=e.values.filter(IA);n.length&&a.appendChild(i.createTextNode(A.getAttribute(n[0].value)||""))}else if("counter"===e.name){var o=e.values.filter(RA),c=o[0],u=o[1];if(c&&IA(c)){var l=r.counters.getCounterValue(c.value),f=u&&IA(u)?_t.parse(u.value):bt.DECIMAL;a.appendChild(i.createTextNode(_r(l,f,!1)))}}else if("counters"===e.name){var h=e.values.filter(RA),d=(c=h[0],h[1]);if(u=h[2],c&&IA(c)){var p=r.counters.getCounterValues(c.value),g=u&&IA(u)?_t.parse(u.value):bt.DECIMAL,w=d&&d.type===B.STRING_TOKEN?d.value:"",Q=p.map((function(A){return _r(A,g,!1)})).join(w);a.appendChild(i.createTextNode(Q))}}}else if(e.type===B.IDENT_TOKEN)switch(e.value){case"open-quote":a.appendChild(i.createTextNode(En(s.quotes,r.quoteDepth++,!0)));break;case"close-quote":a.appendChild(i.createTextNode(En(s.quotes,--r.quoteDepth,!1)));break;default:a.appendChild(i.createTextNode(e.value))}})),a.className=Mr+" "+xr;var c=n===dn.BEFORE?" "+Mr:" "+xr;return ir(e)?e.className.baseValue+=c:e.className+=c,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(dn||(dn={}));var Or,Tr=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute("data-html2canvas-ignore","true"),A.body.appendChild(t),t},Ir=function(A){return new Promise((function(e,t){var n=A.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=A.onload=r.onreadystatechange=function(){n.onload=A.onload=r.onreadystatechange=null;var t=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),e(A))}),50)}}))},Kr=function(A,e){for(var t=A.length-1;t>=0;t--){var n=A.item(t);"content"!==n&&e.style.setProperty(n,A.getPropertyValue(n))}return e},Sr=function(A){var e="";return A&&(e+=""),e},Lr=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Rr=function(A){var e=A[0],t=A[1],n=A[2];e.scrollLeft=t,e.scrollTop=n},Mr="___html2canvas___pseudoelement_before",xr="___html2canvas___pseudoelement_after",Dr=function(A){kr(A,"."+Mr+':before{\n content: "" !important;\n display: none !important;\n}\n .'+xr+':after{\n content: "" !important;\n display: none !important;\n}')},kr=function(A,e){var t=A.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,A.appendChild(n)}};!function(A){A[A.VECTOR=0]="VECTOR",A[A.BEZIER_CURVE=1]="BEZIER_CURVE"}(Or||(Or={}));var Pr,Vr=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},zr=function(){function A(A,e){this.type=Or.VECTOR,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),jr=function(A,e,t){return new zr(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Xr=function(){function A(A,e,t,n){this.type=Or.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,t){var n=jr(this.start,this.startControl,e),r=jr(this.startControl,this.endControl,e),o=jr(this.endControl,this.end,e),i=jr(n,r,e),s=jr(r,o,e),a=jr(i,s,e);return t?new A(this.start,n,i,a):new A(a,s,o,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Gr=function(A){return A.type===Or.BEZIER_CURVE},Jr=function(A){var e=A.styles,t=A.bounds,n=XA(e.borderTopLeftRadius,t.width,t.height),r=n[0],o=n[1],i=XA(e.borderTopRightRadius,t.width,t.height),s=i[0],a=i[1],c=XA(e.borderBottomRightRadius,t.width,t.height),u=c[0],l=c[1],B=XA(e.borderBottomLeftRadius,t.width,t.height),f=B[0],h=B[1],d=[];d.push((r+s)/t.width),d.push((f+u)/t.width),d.push((o+h)/t.height),d.push((a+l)/t.height);var p=Math.max.apply(Math,d);p>1&&(r/=p,o/=p,s/=p,a/=p,u/=p,l/=p,f/=p,h/=p);var g=t.width-s,w=t.height-l,Q=t.width-u,C=t.height-h,m=e.borderTopWidth,E=e.borderRightWidth,v=e.borderBottomWidth,U=e.borderLeftWidth,F=GA(e.paddingTop,A.bounds.width),b=GA(e.paddingRight,A.bounds.width),y=GA(e.paddingBottom,A.bounds.width),H=GA(e.paddingLeft,A.bounds.width);this.topLeftBorderBox=r>0||o>0?Wr(t.left,t.top,r,o,Pr.TOP_LEFT):new zr(t.left,t.top),this.topRightBorderBox=s>0||a>0?Wr(t.left+g,t.top,s,a,Pr.TOP_RIGHT):new zr(t.left+t.width,t.top),this.bottomRightBorderBox=u>0||l>0?Wr(t.left+Q,t.top+w,u,l,Pr.BOTTOM_RIGHT):new zr(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=f>0||h>0?Wr(t.left,t.top+C,f,h,Pr.BOTTOM_LEFT):new zr(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||o>0?Wr(t.left+U,t.top+m,Math.max(0,r-U),Math.max(0,o-m),Pr.TOP_LEFT):new zr(t.left+U,t.top+m),this.topRightPaddingBox=s>0||a>0?Wr(t.left+Math.min(g,t.width+U),t.top+m,g>t.width+U?0:s-U,a-m,Pr.TOP_RIGHT):new zr(t.left+t.width-E,t.top+m),this.bottomRightPaddingBox=u>0||l>0?Wr(t.left+Math.min(Q,t.width-U),t.top+Math.min(w,t.height+m),Math.max(0,u-E),l-v,Pr.BOTTOM_RIGHT):new zr(t.left+t.width-E,t.top+t.height-v),this.bottomLeftPaddingBox=f>0||h>0?Wr(t.left+U,t.top+C,Math.max(0,f-U),h-v,Pr.BOTTOM_LEFT):new zr(t.left+U,t.top+t.height-v),this.topLeftContentBox=r>0||o>0?Wr(t.left+U+H,t.top+m+F,Math.max(0,r-(U+H)),Math.max(0,o-(m+F)),Pr.TOP_LEFT):new zr(t.left+U+H,t.top+m+F),this.topRightContentBox=s>0||a>0?Wr(t.left+Math.min(g,t.width+U+H),t.top+m+F,g>t.width+U+H?0:s-U+H,a-(m+F),Pr.TOP_RIGHT):new zr(t.left+t.width-(E+b),t.top+m+F),this.bottomRightContentBox=u>0||l>0?Wr(t.left+Math.min(Q,t.width-(U+H)),t.top+Math.min(w,t.height+m+F),Math.max(0,u-(E+b)),l-(v+y),Pr.BOTTOM_RIGHT):new zr(t.left+t.width-(E+b),t.top+t.height-(v+y)),this.bottomLeftContentBox=f>0||h>0?Wr(t.left+U+H,t.top+C,Math.max(0,f-(U+H)),h-(v+y),Pr.BOTTOM_LEFT):new zr(t.left+U+H,t.top+t.height-(v+y))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Pr||(Pr={}));var Wr=function(A,e,t,n,r){var o=(Math.sqrt(2)-1)/3*4,i=t*o,s=n*o,a=A+t,c=e+n;switch(r){case Pr.TOP_LEFT:return new Xr(new zr(A,c),new zr(A,c-s),new zr(a-i,e),new zr(a,e));case Pr.TOP_RIGHT:return new Xr(new zr(A,e),new zr(A+i,e),new zr(a,c-s),new zr(a,c));case Pr.BOTTOM_RIGHT:return new Xr(new zr(a,e),new zr(a,e+s),new zr(A+i,c),new zr(A,c));case Pr.BOTTOM_LEFT:default:return new Xr(new zr(a,c),new zr(a-i,c),new zr(A,e+s),new zr(A,e))}},Yr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},qr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Zr=function(A,e,t){this.type=0,this.offsetX=A,this.offsetY=e,this.matrix=t,this.target=6},$r=function(A,e){this.type=1,this.target=e,this.path=A},Ao=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},eo=function(){function A(A,e){if(this.container=A,this.effects=e.slice(0),this.curves=new Jr(A),null!==A.styles.transform){var t=A.bounds.left+A.styles.transformOrigin[0].number,n=A.bounds.top+A.styles.transformOrigin[1].number,r=A.styles.transform;this.effects.push(new Zr(t,n,r))}if(A.styles.overflowX!==Ht.VISIBLE){var o=Yr(this.curves),i=qr(this.curves);Vr(o,i)?this.effects.push(new $r(o,6)):(this.effects.push(new $r(o,2)),this.effects.push(new $r(i,4)))}}return A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==Ht.VISIBLE){var e=Yr(this.curves),t=qr(this.curves);Vr(e,t)||A.push(new $r(t,6))}return A},A}(),to=function(A,e,t,n){A.container.elements.forEach((function(r){var o=gn(r.flags,4),i=gn(r.flags,2),s=new eo(r,A.getParentEffects());gn(r.styles.display,2048)&&n.push(s);var a=gn(r.flags,8)?[]:n;if(o||i){var c=o||r.styles.isPositioned()?t:e,u=new Ao(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var l=r.styles.zIndex.order;if(l<0){var B=0;c.negativeZIndex.some((function(A,e){return l>A.element.container.styles.zIndex.order?(B=e,!1):B>0})),c.negativeZIndex.splice(B,0,u)}else if(l>0){var f=0;c.positiveZIndex.some((function(A,e){return l>=A.element.container.styles.zIndex.order?(f=e+1,!1):f>0})),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);to(s,u,o?u:t,a)}else r.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),to(s,e,t,a);gn(r.flags,8)&&no(r,a)}))},no=function(A,e){for(var t=A instanceof Pn?A.start:1,n=A instanceof Pn&&A.reversed,r=0;r0&&A.intrinsicHeight>0){var n=io(A),r=qr(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return n(this,void 0,void 0,(function(){var t,n,i,s,a,c,u,l,f,h,d,p,g,w;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(e.effects,4),t=e.container,n=e.curves,i=t.styles,s=0,a=t.textNodes,r.label=1;case 1:return s0&&U>0&&(w=n.ctx.createPattern(d,"repeat"),n.renderRepeat(C,w,b,y))):function(A){return A.type===ue.RADIAL_GRADIENT}(t)&&(Q=so(A,e,[null,null,null]),C=Q[0],m=Q[1],E=Q[2],v=Q[3],U=Q[4],F=0===t.position.length?[zA]:t.position,b=GA(F[0],v),y=GA(F[F.length-1],U),H=function(A,e,t,n,r){var o=0,i=0;switch(A.size){case Be.CLOSEST_SIDE:A.shape===le.CIRCLE?o=i=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===le.ELLIPSE&&(o=Math.min(Math.abs(e),Math.abs(e-n)),i=Math.min(Math.abs(t),Math.abs(t-r)));break;case Be.CLOSEST_CORNER:if(A.shape===le.CIRCLE)o=i=Math.min(we(e,t),we(e,t-r),we(e-n,t),we(e-n,t-r));else if(A.shape===le.ELLIPSE){var s=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),a=Qe(n,r,e,t,!0),c=a[0],u=a[1];i=s*(o=we(c-e,(u-t)/s))}break;case Be.FARTHEST_SIDE:A.shape===le.CIRCLE?o=i=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===le.ELLIPSE&&(o=Math.max(Math.abs(e),Math.abs(e-n)),i=Math.max(Math.abs(t),Math.abs(t-r)));break;case Be.FARTHEST_CORNER:if(A.shape===le.CIRCLE)o=i=Math.max(we(e,t),we(e,t-r),we(e-n,t),we(e-n,t-r));else if(A.shape===le.ELLIPSE){s=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n));var l=Qe(n,r,e,t,!1);c=l[0],u=l[1],i=s*(o=we(c-e,(u-t)/s))}}return Array.isArray(A.size)&&(o=GA(A.size[0],n),i=2===A.size.length?GA(A.size[1],r):o),[o,i]}(t,b,y,v,U),_=H[0],N=H[1],_>0&&_>0&&(O=n.ctx.createRadialGradient(m+b,E+y,0,m+b,E+y,_),pe(t.stops,2*_).forEach((function(A){return O.addColorStop(A.stop,Ae(A.color))})),n.path(C),n.ctx.fillStyle=O,_!==N?(T=A.bounds.left+.5*A.bounds.width,I=A.bounds.top+.5*A.bounds.height,S=1/(K=N/_),n.ctx.save(),n.ctx.translate(T,I),n.ctx.transform(1,0,0,K,0,0),n.ctx.translate(-T,-I),n.ctx.fillRect(m,S*(E-I)+I,v,U*S),n.ctx.restore()):n.ctx.fill())),r.label=6;case 6:return e--,[2]}}))},n=this,o=0,i=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return o0&&N===e||A<0&&!N){if(!K.loop)return q(i,""),void setTimeout(q,9,i,"animation:"+(A>0?"bpl":"bpf")+" .3s;transition:transform .35s");N=A>0?-1:e+1}if([(N=Math.max(0,Math.min(N+A,e)))-1,N,N+1].forEach((function(A){if(A=Math.max(0,Math.min(A,e)),!L[A]){var t=O[A].src,n=document[M]("IMG");n.addEventListener("load",G.bind(null,t)),n.src=t,L[A]=n}})),L[N].complete)return P(A);h=!0,q(p,"opacity:.4;"),r[R](p),L[N].onload=function(){E&&P(A)},L[N].onerror=function(){O[N]={error:"Error loading image"},E&&P(A)}}}function P(A){h&&(r[x](p),h=!1);var e=O[N];if(e.error)alert(e.error);else{var n=r.querySelector("img:last-of-type");q(i=o=L[N],"animation:"+(A>0?"bpfl":"bpfr")+" .35s;transition:transform .35s"),q(n,"animation:"+(A>0?"bpfol":"bpfor")+" .35s both"),r[R](i),e.el&&(t=e.el)}T.innerHTML=N+1+"/"+O.length,X(O[N].caption),y&&y([i,O[N]])}function V(){var A,e,t=.95*window.innerHeight,n=.95*window.innerWidth,r=t/n,o=K.dimensions||[1920,1080],i=o[0],s=o[1],a=s/i;a>r?e=(A=Math.min(s,t))/a:A=(e=Math.min(i,n))*a,c.style.cssText+="width:"+e+"px;height:"+A+"px;"}function z(A){~[1,4].indexOf(o.readyState)?(J(),setTimeout((function(){o.play()}),99)):o.error?J(A):d=setTimeout(z,35,A)}function j(A){K.noLoader||(A&&q(p,"top:"+t.offsetTop+"px;left:"+t.offsetLeft+"px;height:"+t.clientHeight+"px;width:"+t.clientWidth+"px"),t.parentElement[A?R:x](p),h=A)}function X(A){A&&(w.innerHTML=A),q(g,"opacity:"+(A?"1;pointer-events:auto":"0"))}function G(A){!~S.indexOf(A)&&S.push(A)}function J(A){if(h&&j(),F&&F(),"string"==typeof A)return Y(),K.onError?K.onError():alert("Error: The requested "+A+" could not be loaded.");U&&G(l),o.style.cssText+=D(),q(r,"opacity:1;pointer-events:auto"),b&&(b=setTimeout(b,410)),m=!0,E=!!O,setTimeout((function(){o.style.cssText+="transition:transform .35s;transform:none",Q&&setTimeout(X,250,Q)}),60)}function W(A){var e=A?A.target:r,t=[g,C,s,a,w,_,H,p];e.blur(),v||~t.indexOf(e)||(o.style.cssText+=D(),q(r,"pointer-events:auto"),setTimeout(Y,350),clearTimeout(b),m=!1,v=!0)}function Y(){if((o===c?u:o).removeAttribute("src"),document.body[x](r),r[x](o),q(r,""),q(o,""),X(!1),E){for(var A=r.querySelectorAll("img"),e=0;e',e}function t(A,e){var t=document[M]("button");return t.className="bp-lr",t.innerHTML='',q(t,e),t.onclick=function(e){e.stopPropagation(),k(A)},t}var l=document[M]("STYLE");l.innerHTML="#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,#bp_loader{position:absolute;right:0;z-index:10}#bp_container,#bp_caption,#bp_container svg{pointer-events:none}#bp_container{top:0;z-index:9999;background:rgba(0,0,0,.7);opacity:0;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:flex;align-items:center;cursor:wait;background:0;z-index:9}#bp_loader svg{width:50%;max-width:300px;max-height:50%;margin:auto;animation:bpturn 1s infinite linear}#bp_aud,#bp_container img,#bp_sv,#bp_vid{user-select:none;max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{background:#111}#bp_sv svg{width:66px}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}#bp_aud{width:650px;top:calc(50% - 20px);bottom:auto;box-shadow:none}#bp_count{left:0;right:auto;padding:14px;color:rgba(255,255,255,.7);font-size:22px;cursor:default}#bp_container button{position:absolute;border:0;outline:0;background:0;cursor:pointer;transition:all .1s}#bp_container>.bp-x{padding:0;height:41px;width:41px;border-radius:100%;top:8px;right:14px;opacity:.8;line-height:1}#bp_container>.bp-x:focus,#bp_container>.bp-x:hover{background:rgba(255,255,255,.2)}.bp-x svg,.bp-xc svg{height:21px;width:20px;fill:#fff;vertical-align:top;}.bp-xc svg{width:16px}#bp_container .bp-xc{left:2%;bottom:100%;padding:9px 20px 7px;background:#d04444;border-radius:2px 2px 0 0;opacity:.85}#bp_container .bp-xc:focus,#bp_container .bp-xc:hover{opacity:1}.bp-lr{top:50%;top:calc(50% - 130px);padding:99px 0;width:6%;background:0;border:0;opacity:.4;transition:opacity .1s}.bp-lr:focus,.bp-lr:hover{opacity:.8}@keyframes bpf{50%{transform:translatex(15px)}100%{transform:none}}@keyframes bpl{50%{transform:translatex(-15px)}100%{transform:none}}@keyframes bpfl{0%{opacity:0;transform:translatex(70px)}100%{opacity:1;transform:none}}@keyframes bpfr{0%{opacity:0;transform:translatex(-70px)}100%{opacity:1;transform:none}}@keyframes bpfol{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(-70px)}}@keyframes bpfor{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(70px)}}@keyframes bpturn{0%{transform:none}100%{transform:rotate(360deg)}}@media (max-width:600px){.bp-lr{font-size:15vw}}",document.head[R](l),(r=document[M]("DIV")).id="bp_container",r.onclick=W,B=e("bp-x"),r[R](B),"ontouchstart"in window&&(I=!0,r.ontouchstart=function(e){var t=e.changedTouches;A=t[0].pageX},r.ontouchmove=function(A){A.preventDefault()},r.ontouchend=function(e){var t=e.changedTouches;if(E){var n=t[0].pageX-A;n<-30&&k(1),n>30&&k(-1)}});i=document[M]("IMG"),(s=document[M]("VIDEO")).id="bp_vid",s.setAttribute("playsinline",!0),s.controls=!0,s.loop=!0,(a=document[M]("audio")).id="bp_aud",a.controls=!0,a.loop=!0,(T=document[M]("span")).id="bp_count",(g=document[M]("DIV")).id="bp_caption",(C=e("bp-xc")).onclick=X.bind(null,!1),g[R](C),w=document[M]("SPAN"),g[R](w),r[R](g),H=t(1,"transform:scalex(-1)"),_=t(-1,"left:0;right:auto"),(p=document[M]("DIV")).id="bp_loader",p.innerHTML='',(c=document[M]("DIV")).id="bp_sv",(u=document[M]("IFRAME")).setAttribute("allowfullscreen",!0),u.allow="autoplay; fullscreen",u.onload=function(){return c[x](p)},q(u,"border:0;position:absolute;height:100%;width:100%;left:0;top:0"),c[R](u),i.onload=J,i.onerror=J.bind(null,"image"),window.addEventListener("resize",(function(){E||h&&j(!0),o===c&&V()})),document.addEventListener("keyup",(function(A){var e=A.keyCode;27===e&&m&&W(),E&&(39===e&&k(1),37===e&&k(-1),38===e&&k(10),40===e&&k(-10))})),document.addEventListener("keydown",(function(A){E&&~[37,38,39,40].indexOf(A.keyCode)&&A.preventDefault()})),document.addEventListener("focus",(function(A){m&&!r.contains(A.target)&&(A.stopPropagation(),B.focus())}),!0),n=!0}(),h&&(clearTimeout(d),Y()),K=A,f=A.ytSrc||A.vimeoSrc,F=A.animationStart,b=A.animationEnd,y=A.onChangeImage,t=A.el,U=!1,Q=t.getAttribute("data-caption"),A.gallery?function(A,e){var n=K.galleryAttribute||"data-bp";if(Array.isArray(A))O=A,Q=A[N=e||0].caption;else{var s=(O=[].slice.call("string"==typeof A?document.querySelectorAll(A+" ["+n+"]"):A)).indexOf(t);N=0===e||e?e:-1!==s?s:0,O=O.map((function(A){return{el:A,src:A.getAttribute(n),caption:A.getAttribute("data-caption")}}))}U=!0,l=O[N].src,!~S.indexOf(l)&&j(!0),O.length>1?(r[R](T),T.innerHTML=N+1+"/"+O.length,I||(r[R](H),r[R](_))):O=!1;(o=i).src=l}(A.gallery,A.position):f||A.iframeSrc?(o=c,function(){var A;K.ytSrc?A="https://www.youtube"+(K.ytNoCookie?"-nocookie":"")+".com/embed/"+f+"?html5=1&rel=0&playsinline=1&autoplay=1":K.vimeoSrc?A="https://player.vimeo.com/video/"+f+"?autoplay=1":K.iframeSrc&&(A=K.iframeSrc);q(p,""),c[R](p),u.src=A,V(),setTimeout(J,9)}()):A.imgSrc?(U=!0,l=A.imgSrc,!~S.indexOf(l)&&j(!0),(o=i).src=l):A.audio?(j(!0),(o=a).src=A.audio,z("audio file")):A.vidSrc?(j(!0),A.dimensions&&q(s,"width:"+A.dimensions[0]+"px"),e=A.vidSrc,Array.isArray(e)?(o=s.cloneNode(),e.forEach((function(A){var e=document[M]("SOURCE");e.src=A,e.type="video/"+A.match(/.(\w+)$/)[1],o[R](e)}))):(o=s).src=e,z("video")):(o=i).src="IMG"===t.tagName?t.src:window.getComputedStyle(t).backgroundImage.replace(/^url|[(|)|'|"]/g,""),r[R](o),document.body[R](r),{close:W,next:function(){return k(1)},prev:function(){return k(-1)}}}},function(A,e){function t(){return A.exports=t=Object.assign||function(A){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(A,t)&&(o[t]=A[t])}return o}},function(A,e,t){"use strict";A.exports=t(39)},function(A,e,t){"use strict";(function(A){var t=function(){if("undefined"!=typeof Map)return Map;function A(A,e){var t=-1;return A.some((function(A,n){return A[0]===e&&(t=n,!0)})),t}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=A(this.__entries__,e),n=this.__entries__[t];return n&&n[1]},e.prototype.set=function(e,t){var n=A(this.__entries__,e);~n?this.__entries__[n][1]=t:this.__entries__.push([e,t])},e.prototype.delete=function(e){var t=this.__entries__,n=A(t,e);~n&&t.splice(n,1)},e.prototype.has=function(e){return!!~A(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(A,e){void 0===e&&(e=null);for(var t=0,n=this.__entries__;t0},A.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},A.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},A.prototype.onTransitionEnd_=function(A){var e=A.propertyName,t=void 0===e?"":e;i.some((function(A){return!!~t.indexOf(A)}))&&this.refresh()},A.getInstance=function(){return this.instance_||(this.instance_=new A),this.instance_},A.instance_=null,A}(),c=function(A,e){for(var t=0,n=Object.keys(e);t0},A}(),m="undefined"!=typeof WeakMap?new WeakMap:new t,E=function A(e){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=a.getInstance(),n=new C(e,t,this);m.set(this,n)};["observe","unobserve","disconnect"].forEach((function(A){E.prototype[A]=function(){var e;return(e=m.get(this))[A].apply(e,arguments)}}));var v=void 0!==r.ResizeObserver?r.ResizeObserver:E;e.a=v}).call(this,t(40))},function(A,e,t){},function(A,e,t){"use strict";var n,r=this&&this.__extends||(n=function(A,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)e.hasOwnProperty(t)&&(A[t]=e[t])})(A,e)},function(A,e){function t(){this.constructor=A}n(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),o=this&&this.__assign||function(){return(o=Object.assign||function(A){for(var e,t=1,n=arguments.length;t=0||(r[t]=A[t]);return r}},function(A,e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,B=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,w=n?Symbol.for("react.block"):60121,Q=n?Symbol.for("react.fundamental"):60117,C=n?Symbol.for("react.responder"):60118,m=n?Symbol.for("react.scope"):60119;function E(A){if("object"==typeof A&&null!==A){var e=A.$$typeof;switch(e){case r:switch(A=A.type){case l:case B:case i:case a:case s:case h:return A;default:switch(A=A&&A.$$typeof){case u:case f:case g:case p:case c:return A;default:return e}}case o:return e}}}function v(A){return E(A)===B}e.AsyncMode=l,e.ConcurrentMode=B,e.ContextConsumer=u,e.ContextProvider=c,e.Element=r,e.ForwardRef=f,e.Fragment=i,e.Lazy=g,e.Memo=p,e.Portal=o,e.Profiler=a,e.StrictMode=s,e.Suspense=h,e.isAsyncMode=function(A){return v(A)||E(A)===l},e.isConcurrentMode=v,e.isContextConsumer=function(A){return E(A)===u},e.isContextProvider=function(A){return E(A)===c},e.isElement=function(A){return"object"==typeof A&&null!==A&&A.$$typeof===r},e.isForwardRef=function(A){return E(A)===f},e.isFragment=function(A){return E(A)===i},e.isLazy=function(A){return E(A)===g},e.isMemo=function(A){return E(A)===p},e.isPortal=function(A){return E(A)===o},e.isProfiler=function(A){return E(A)===a},e.isStrictMode=function(A){return E(A)===s},e.isSuspense=function(A){return E(A)===h},e.isValidElementType=function(A){return"string"==typeof A||"function"==typeof A||A===i||A===B||A===a||A===s||A===h||A===d||"object"==typeof A&&null!==A&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===c||A.$$typeof===u||A.$$typeof===f||A.$$typeof===Q||A.$$typeof===C||A.$$typeof===m||A.$$typeof===w)},e.typeOf=E},function(A,e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(A){"object"==typeof window&&(t=window)}A.exports=t},function(A,e,t){var n=function(A){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function s(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{s({},"")}catch(A){s=function(A,e,t){return A[e]=t}}function a(A,e,t,n){var r=e&&e.prototype instanceof l?e:l,o=Object.create(r.prototype),i=new v(n||[]);return o._invoke=function(A,e,t){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return F()}for(t.method=r,t.arg=o;;){var i=t.delegate;if(i){var s=C(i,t);if(s){if(s===u)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===n)throw n="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n="executing";var a=c(A,e,t);if("normal"===a.type){if(n=t.done?"completed":"suspendedYield",a.arg===u)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(n="completed",t.method="throw",t.arg=a.arg)}}}(A,t,i),o}function c(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}A.wrap=a;var u={};function l(){}function B(){}function f(){}var h={};h[r]=function(){return this};var d=Object.getPrototypeOf,p=d&&d(d(U([])));p&&p!==e&&t.call(p,r)&&(h=p);var g=f.prototype=l.prototype=Object.create(h);function w(A){["next","throw","return"].forEach((function(e){s(A,e,(function(A){return this._invoke(e,A)}))}))}function Q(A,e){var n;this._invoke=function(r,o){function i(){return new e((function(n,i){!function n(r,o,i,s){var a=c(A[r],A,o);if("throw"!==a.type){var u=a.arg,l=u.value;return l&&"object"==typeof l&&t.call(l,"__await")?e.resolve(l.__await).then((function(A){n("next",A,i,s)}),(function(A){n("throw",A,i,s)})):e.resolve(l).then((function(A){u.value=A,i(u)}),(function(A){return n("throw",A,i,s)}))}s(a.arg)}(r,o,n,i)}))}return n=n?n.then(i,i):i()}}function C(A,e){var t=A.iterator[e.method];if(void 0===t){if(e.delegate=null,"throw"===e.method){if(A.iterator.return&&(e.method="return",e.arg=void 0,C(A,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=c(t,A.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var r=n.arg;return r?r.done?(e[A.resultName]=r.value,e.next=A.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function m(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function E(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function v(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(m,this),this.reset(!0)}function U(A){if(A){var e=A[r];if(e)return e.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var n=-1,o=function e(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=t.call(o,"catchLoc"),a=t.call(o,"finallyLoc");if(s&&a){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&t.call(r,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),E(t),u}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var n=t.completion;if("throw"===n.type){var r=n.arg;E(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,e,t){return this.delegate={iterator:U(A),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},A}(A.exports);try{regeneratorRuntime=n}catch(A){Function("r","regeneratorRuntime = r")(n)}},function(A,e,t){},function(A,e,t){},function(A,e,t){A.exports={"run-lights":"_3ih"}},function(A,e,t){},function(A,e,t){},function(A,e,t){},function(A,e,t){A.exports={colorShow:"_1_x",plugInZoomIn:"_2OK"}},function(A,e,t){"use strict";var n=Array.isArray,r=Object.keys,o=Object.prototype.hasOwnProperty;A.exports=function A(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var i,s,a,c=n(e),u=n(t);if(c&&u){if((s=e.length)!=t.length)return!1;for(i=s;0!=i--;)if(!A(e[i],t[i]))return!1;return!0}if(c!=u)return!1;var l=e instanceof Date,B=t instanceof Date;if(l!=B)return!1;if(l&&B)return e.getTime()==t.getTime();var f=e instanceof RegExp,h=t instanceof RegExp;if(f!=h)return!1;if(f&&h)return e.toString()==t.toString();var d=r(e);if((s=d.length)!==r(t).length)return!1;for(i=s;0!=i--;)if(!o.call(t,d[i]))return!1;for(i=s;0!=i--;)if(!A(e[a=d[i]],t[a]))return!1;return!0}return e!=e&&t!=t}},function(A,e,t){A.exports=t(51)()},function(A,e,t){"use strict";var n=t(52);function r(){}function o(){}o.resetWarningCache=r,A.exports=function(){function A(A,e,t,r,o,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return A}A.isRequired=A;var t={array:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:e,element:A,elementType:A,instanceOf:e,node:A,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return t.PropTypes=t,t}},function(A,e,t){"use strict";A.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(A,e,t){"use strict";t.r(e);var n=t(13),r=t.n(n),o=t(15),i=t.n(o);function s(A){var e=((A||window.location.href).match(/\?(.*)/)||[])[1],t={},n=[];return e?(e.split("&").forEach((function(A){var e=A.split("=");e[0]&&(n.push(e[0]),t[e[0]]=e[1])})),{paramObj:t,paramKeys:n}):{paramObj:t,paramKeys:n}}function a(A){return btoa(encodeURI(JSON.stringify(A)))}function c(A){var e={};try{e=JSON.parse(decodeURI(atob(A)))}catch(A){}return e}function u(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,t=!0;return function(){var n=arguments,r=this;t&&(t=!1,setTimeout((function(){A.apply(r,n),t=!0}),e))}}function l(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,t=null;return function(){var n=arguments,r=this;clearTimeout(t),t=setTimeout((function(){A.apply(r,n)}),e)}}function B(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!A)return"#000000";var e=[],t=1;A.indexOf("rgb")>-1?(e=A.match(/\((.*)\)/)[1].split(","),void 0!==(e=[parseInt(e[0]),parseInt(e[1]),parseInt(e[2])])[3]&&(t=e[3])):(e=[(A=A.replace("#","")).substr(0,2),A.substr(2,2),A.substr(4,2),1],e=[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]);var n=e[0],r=e[1],o=e[2],i=(.3*n+.59*r+.11*o)*Math.min(t,1);return{rgb:e,textColor:i>=180?"#000000":"#ffffff"}}var f="ontouchstart"in window||window.innerWidth<600;function h(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,t=45,n=-2*Math.PI/360*t*A,r=Number.parseFloat(e*Math.sin(n)).toFixed(3),o=Number.parseFloat(e*Math.cos(n)).toFixed(3);return{x:-r,y:-o}}var d=t(14),p=t.n(d),g=t(19),w=t.n(g),Q=function(){var A,e,t=(A=document.createElement("canvas"),{canvas:!!(e=A.getContext("2d")),imageData:!!e.getImageData,dataURL:!!A.toDataURL,btoa:!!window.btoa});function n(A,e,t){var n=A.width,r=A.height;null==e&&(e=n),null==t&&(t=r);var o=document.createElement("canvas"),i=o.getContext("2d");return o.width=e,o.height=t,i.drawImage(A,0,0,n,r,0,0,e,t),o}function r(A,e,t,r){return(A=n(A,t,r)).toDataURL(e)}function o(A){document.location.href=A}function i(A){var e=document.createElement("img");return e.src=A,e}function s(A){return"image/"+(A=A.toLowerCase().replace(/jpg/i,"jpeg")).match(/png|jpeg|bmp|gif/)[0]}function a(A){if(!window.btoa)throw"btoa undefined";var e="";if("string"==typeof A)e=A;else for(var t=0;t>8&255,r>>16&255,r>>24&255,0,0,0,0,54,0,0,0],i=[40,0,0,0,255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,1,0,24,0,0,0,0,0,255&n,n>>8&255,n>>16&255,n>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=(4-3*e%4)%4,c=A.data,u="",l=e<<2,B=t,f=String.fromCharCode;do{for(var h=l*(B-1),d="",p=0;pdocument.documentElement.clientHeight/2&&A&&A.scrollIntoView)return A.scrollIntoView({block:"center",behavior:"smooth"}),void("function"==typeof n&&setTimeout((function(){return n()}),100));var r=setInterval((function(){var A,o,i=E(),s=i.x,a=i.y;A=s+(e-s)/6,o=a+(t-a)/6,m.scrollLeft=A,m.scrollTop=o,window.scrollTo(A,o);var c=E(),u=c.x;a===c.y&&s===u&&(clearInterval(r),"function"==typeof n&&n())}),30);return r},m=document.documentElement||document.body;function E(){return{x:window.pageXOffset||m.scrollLeft||m.scrollLeft,y:window.pageYOffset||m.scrollTop||m.scrollTop}}function v(){var A=document.querySelector("link[rel~=icon]");return A?A.href:window.location.origin+"/favicon.ico"}function U(A,e){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(A){var n="ontouchstart"in window;A.style.cursor="move";var r=!1,o=n?"touchstart":"mousedown";A.addEventListener(o,(function(e){!1===t&&e.target!==A||(e.stopPropagation(),setTimeout((function(){r=!0}),300))}),{capture:!0});var i=n?"touchend":"mouseup";document.addEventListener(i,(function(){r=!1,setTimeout((function(){r=!1,document.body.style.userSelect="auto"}),300)}),{capture:!0});var s=n?"touchmove":"mousemove";document.addEventListener(s,u((function(A){r&&(document.body.style.userSelect="none",e(n?A.touches[0]:A))}),1e3/60),{capture:!0})}}function F(A){return new Promise((function(e,t){w()(A,{useCORS:!0,ignoreElements:function(A){var e=A.tagName.toLowerCase().indexOf("pagenote")>-1,t=getComputedStyle(A).opacity<=0;return e||t}}).then((function(t){var n=Q.convertToImage(t,A.offsetWidth,A.scrollHeight).src;e(n)})).catch((function(A){t(A)}))}))}var b=function(A){var e=document.createElement("pagenote-camera");e.innerHTML="
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
已拍照完成并保存,你可以在管理页进行查看、编辑。
\n
\n
\n
\n
'),document.body.appendChild(e);var t=8,n=setInterval((function(){document.getElementById("count-down").innerText=t+"s",--t<=0&&r()}),1e3);function r(){e.parentNode.removeChild(e),clearInterval(n)}document.getElementById("close-camera").onclick=r},y=t(7),H=t.n(y),_=t(20),N=t.n(_),O=t(21),T="zh_CN",I=N()({},"zh_CN",O),K={setLang:function(A,e){I[A]=e},t:function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=I[T]||I.zh_CN||{},n=t[A].message||A;return n=n.replace(/\$\{.*?\}/,e[0])},setLangType:function(A){T=A},getLangType:function(){return T}};var S="fold",L="expand";function R(A,e,t,n,r,o,i){!function A(t,i){var s=e.exec(t.value);if(s&&s[i]){var a=s.index;if(0!==i)for(var c=1;ce){if(!r(i.node))return!1;var c=e-i.start,u=(t>i.end?i.end:t)-i.start,l=A.value.substr(0,i.start),B=A.value.substr(u+i.start);if(i.node=function(A,e,t){var r=A.splitText(e),o=r.splitText(t-e),i=n(r.textContent);return r.parentNode.replaceChild(i,r),o}(i.node,c,u),A.value=l+B,A.nodes.forEach((function(e,t){t>=s&&(A.nodes[t].start>0&&t!==s&&(A.nodes[t].start-=u),A.nodes[t].end-=u)})),t-=u,o(i.node.previousSibling,i.start),!(t>i.end))return!1;e=i.end}return!0}))}(t,a,a+s[i].length,(function(A){return r(s[i],A)}),(function(A,t){e.lastIndex=t,o(A)})),A(t,i)}}(A,0===t?0:t+1),i()}function M(A){for(var e,t=[],n={acceptNode:function(A){return 3===A.nodeType?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}},r=document.createNodeIterator(A,NodeFilter.SHOW_TEXT,n,!1),o="";e=r.nextNode();)t.push({node:e,start:o.length,end:(o+=e.textContent).length});return{nodes:t,value:o}}function x(A){return A.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(/[\s]+/gim,"[\\s]*")}var D=function(A){var e;if("string"==typeof A?e=document.querySelector(A):A instanceof HTMLElement&&(e=A),"img"===e.dataset.type)e.outerHTML=e.innerHTML;else{var t=[].find.call(e.childNodes,(function(A){return 3===A.nodeType||"#text"===A.nodeName}));e.outerHTML=t?t.textContent:e.textContent}},k=new H.a;function P(A,e){var t=this;e.CONSTANT.STORE_KEYS_VERSION_2_VALIDATE.forEach((function(e){t[e]=A[e]}));var n=B(A.bg),r=n.rgb;this.lightBg="rgb(".concat(r[0]+10,",").concat(r[1]+10,",").concat(r[2]+10,")"),this.darkBg="rgb(".concat(r[0]-30,",").concat(r[1]-30,",").concat(r[2]-30,")"),this.lightId=p()(A.id+A.text),this.isFocus=!1,this.relatedNode=[],this.isInview=!1,this.__proto__.pagenote=e}function V(A,e){this.option=A,this.__proto__.pagenote=e}P.prototype.delete=function(A){for(var e=this.pagenote,t=0;t1&&void 0!==arguments[1])||arguments[1],t=A,n=this.pagenote,r=0;r2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,i={match:0,lightsElement:[]};if(!A||!e)return i;r=r||function(A){var e=document.createElement("light");return e.dataset.highlight="1",e.style.color="red",e.textContent=A,e};var s=M(A),a=function(A,e,t){var n=x(A),a=x(e),c=x(t),u=new RegExp("("+a+")\\s*("+n+")\\s*("+c+")","gmi");R(s,u,1,r,(function(A,e){var t=o.some((function(A){return A.contains(e)})),n=!!(3===e.nodeType?e.parentNode:e).dataset.highlight;return!t&&!n&&"LIGHT"!==e.tagName}),(function(A){i.lightsElement.push(A)}),(function(){}))};return a(e,t,n),i}(A,e.text,e.pre,e.suffix,null,n,e.pagenote.blackNodes);e.warn=i.match?"":"未找到匹配内容",e.missParent=t,(o=e.relatedNode).push.apply(o,r()(i.lightsElement))}}},P.prototype.gotoView=function(A){var e=this,t=this.relatedNode?this.relatedNode[0]:null;if(!t)try{t=k.getTarget(this.id)}catch(A){}return C(t,this.x-window.innerWidth/2,this.y-window.innerHeight/3,(function(){e.isInview=!0,A()}))},P.prototype.changeColor=function(A){this.bg=A;var e=B(A),t=e.textColor,n=e.rgb,r="rgb(".concat(n[0]-30,",").concat(n[1]-30,",").concat(n[2]-30,")"),o="rgba(".concat(n.toString(),",1)");this.relatedNode.forEach((function(A){A.style="--bgcolor:".concat(o,";--color:").concat(t,";--bgbottomcolor:").concat(r)})),this.darkBg=r,this.lightBg="rgb(".concat(n[0]+10,",").concat(n[1]+10,",").concat(n[2]+10,")"),this.save()},P.prototype.save=function(A){this.pagenote.makelink((function(){"function"==typeof A&&A.apply(void 0,arguments)}))},P.prototype.checkInSign=function(){var A=this.relatedNode.some((function(A){var e=A.getBoundingClientRect();return e.top>0&&e.top=A.length?{done:!0}:{done:!1,value:A[n++]}},e:function(A){throw A},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){t=A[Symbol.iterator]()},n:function(){var A=t.next();return i=A.done,A},e:function(A){s=!0,o=A},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}function j(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:{};this.id=A||"pagenote-container",this.options=Object.assign({initType:"default",dura:100,saveInURL:!1,saveInLocal:!0,maxMarkNumber:50,enableMarkImg:!1,blacklist:[],autoLight:!1,colors:["rgba(114,208,255)","#ffbea9","#c8a6ff","#6fe2d5","rgba(255,222,93)","rgba(251, 181, 214)","rgba(0,0,0,0.5)"],shortCuts:"M",barInfo:{right:2,top:100,status:S},actionBarOffset:{offsetX:10,offsetY:20},showIconAnimation:!0,onShare:null,functionColors:[],sideBarActions:[],categories:[]},t),this.status=this.CONSTANT.UN_INIT,this.recordedSteps=new V({max:this.options.maxMarkNumber},this),this.snapshots=[],this.categories=new Set,this.note="",this.score=0,this.runindex=null;var n,o,u,B=JSON.parse(JSON.stringify(this.options.barInfo));B.status=B.status||"fold",this.runningSetting=Object.assign({},{initType:this.options.initType,dura:this.options.dura,autoLight:this.options.autoLight,barInfo:B}),this.target={},this.lastEvent=null,this.url=window.location.href,this.data="",this.plainData={},this.blackNodes=[],this.lastaction=this.CONSTANT.DIS_LIGHT;var f=null,h=[],d=null,p=this.CONSTANT,g=this.options,w=window.location,Q="",C="ontouchstart"in window,m=this.blackNodes,E=this;function U(A){var e=document.getSelection(),t=e.toString().trim(),n=this.status===p.WAITING&&t===this.target.text,r=this.status===this.CONSTANT.DESTROY;if(!n&&!r&&0!==e.rangeCount){var o=e.getRangeAt(0),i=e.anchorNode?o.commonAncestorContainer:null;if(i&&3===i.nodeType&&(i=i.parentNode),!(!i||!i.tagName)){var s,a=i.tagName.toLowerCase().indexOf("pagenote")>-1,c=z(m);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.contains(i)||u.contains(e.anchorNode)||u.contains(e.focusNode)){a=!1;break}}}catch(A){c.e(A)}finally{c.f()}if(!a){var l=!0;i&&"true"!==i.contentEditable||(l=!1);var B=[],f=o.cloneContents();if(E.options.enableMarkImg)for(var h=f.children,d=0;d1&&void 0!==arguments[1]&&arguments[1];!(A=A||s().paramObj[p.ID])&&this.options.saveInLocal&&(A=localStorage.getItem(this.id));var o=[],a={},u=1;if(A)try{var B={};"object"===i()(A)&&A.steps?(B=A,o=A.steps||[],a=A.setting||{}):"string"==typeof A&&(o=(B=c(A)).steps||[],a=B.setting||{}),this.snapshots=Array.isArray(B.snapshots)?B.snapshots:[],this.categories=new Set(B.categories||[B.category]),this.note=B.note,u=B.version||1}catch(e){console.error("解析step异常",e,A)}switch(this.recordedSteps.splice(0,this.recordedSteps.length),2===u?o.forEach((function(A){var t=new P(A,e);e.recordedSteps.add(t)})):o.forEach((function(A){var t={};e.CONSTANT.STORE_KEYS_VERSION_1.forEach((function(e,n){t[e]=A[n]}));var n=new P(t,e);e.recordedSteps.add(n)})),this.runningSetting=Object.assign(this.runningSetting,a),setTimeout((function(){[].concat(r()(g.blacklist),[".no-pagenote","*[data-pagenote]",'*[contenteditable="true"]']).forEach((function(A){[].forEach.call(document.querySelectorAll(A),(function(A){m.push(A)}))}))}),0),[].forEach.call(document.querySelectorAll("light[data-highlight]"),(function(A){A.outerHTML=A.innerHTML})),this.runningSetting.initType){case"light":this.replay(0,!1,!0,!0);break;case"default":this.replay(0,!1,!0,(function(A){return A.isActive}))}if(!y){var f=function(){var A=this,e=C?"touchstart":"mouseup";document.addEventListener(e,(function(e){setTimeout((function(){A.lastEvent=e,U.call(A,e)}),1)}),{capture:!0}),document.onselectionchange=l((function(e){A.lastEvent&&A.lastEvent.target&&"record"!==A.lastEvent.target.id&&U.call(A,e)}),400)};f.call(this),y=!0;var h={},d={},w={},Q={};this.options.functionColors.forEach((function(A,e){A.forEach((function(A,t){A.eventid=e+t+Math.random(),A.shortcut&&(h[A.shortcut]=A.onclick),d[A.eventid]=A.onclick,w[A.eventid]=A.onmouseover,Q[A.eventid]=A.ondbclick}))})),document.addEventListener("keyup",(function(A){if(e.status===p.WAITING){var t=A.key.toLowerCase();if(!0===e.target.canHighlight){var n=e.options.shortCuts.toLowerCase().indexOf(t),r=e.options.colors;n>-1&&r[n]?e.record({bg:r[n]},!0):"function"==typeof h[t]&&h[t](A,e.target)}}}),{capture:!0}),document.addEventListener("dblclick",(function(A){var t=A.target.dataset.eventid;t&&Q[t]&&Q[t](A,e.target)})),document.addEventListener("click",(function(A){switch((A.target.tagName||"").toLowerCase()){case"pagenote-action-button":var t=A.target.dataset.eventid;t&&"function"==typeof d[t]&&d[t](A,e.target);break;case"pagenote-color-button":var n=A.target.dataset.color;e.record({bg:n});break;default:var r=A.target.dataset?A.target.dataset.pagenotecolor:"";n&&e.record({bg:r})}}),{capture:!0}),document.documentElement.addEventListener("mouseover",(function(A){if("pagenote-action-button"===(A.target.tagName||"").toLowerCase()){var t=A.target.dataset.eventid;w[t]&&w[t](A,e.target)}}),{capture:!0}),window.addEventListener("hashchange",(function(){e.status=p.HASHCHANGED}),{capture:!0}),window.addEventListener("popstate",(function(){e.status=p.URLCHANGED}),{capture:!0});var E=window.history.pushState;window.history.pushState=function(){E.apply(e,t),e.status=p.URLCHANGED};var v=window.history.replaceState;window.history.replaceState=function(){v.apply(e,t),e.status=p.URLCHANGED}}this.status=p.READY,n&&this.makelink()},this.destroy=function(){this.status=p.DESTROY,document.querySelectorAll("light[data-highlight]").forEach((function(A){A.outerHTML=A.innerText}))},this.realive=function(){this.status=p.RE_ALIVE,this.replay(0,!1,!0,(function(A){return A.isActive}))},this.toggleAllLight=function(){var A=this.lastaction===this.CONSTANT.DIS_LIGHT;this.replay(0,!1,!0,A),!1===A&&(this.runningSetting.autoLight=!1)},this.addListener=function(A){"function"==typeof A&&h.push(A)},this.record=function(){var A=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e=Object.assign(this.target,e);var n=g.maxMarkNumber;if(this.recordedSteps.length>=n)return alert(K.t("mark_limited",[n])),!1;if(!t&&this.status!==p.WAITING)return!1;this.status=p.RECORDING;var r=new P(e,this);X.getTarget(e.id);return this.recordedSteps.add(r),this.recordedSteps=this.recordedSteps.sort((function(A,e){return A.y-e.y})),window.getSelection().removeAllRanges(),this.target={},r.highlight(!0),this.makelink((function(e){if(!e)return alert(K.t("save_failed")),A.recordedSteps.splice(-1,1),console.error("记录失败"),A.status=p.RECORDFAIL,!1;A.status=p.RECORDED})),r},this.remove=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(-1===A){for(;this.recordedSteps.length>0;)this.recordedSteps.splice(0,1),this.replay(0,!1,!1);this.status=p.PAUSE,this.status=p.REMOVEDALL}else this.recordedSteps.splice(A,1),this.replay(A,!1,!1),this.status=p.REMOVED;this.makelink()},this.replay=function(){var A=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=this.runningSetting.dura,s=this.recordedSteps[e];if(!s)return this.runindex=d,this.status=p.DONE,void this.makelink();var a="function"==typeof r?r(s):r;clearInterval(u),clearTimeout(o),u=o=d,this.runindex=e,this.status=p.REPLAYING,this.lastaction=a?p.LIGHT:p.DIS_LIGHT,s.highlight(a),n||this.makelink(),t?u=s.gotoView((function(){A.runindex=d,n?o=setTimeout((function(){return A.replay(e+1,t,n,r)}),i):(A.status=p.DONE,clearTimeout(o))})):n?o=setTimeout((function(){return A.replay(e+1,t,n,r)}),i):(this.runindex=d,this.status=p.DONE),this.makelink()},this.makelink=function(A){e.status=p.START_SYNC,H("function"==typeof A?A:function(){})},this.openModal=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md";f&&f.show?(f.changeTab(A),f.initData()):((f=document.createElement("pagenote-modal")).setAttribute("show",!0),f.setAttribute("activeTab",A),document.body.appendChild(f))},this._syncModal=function(){f&&f.initData()},this.generateMD=function(){var A="",t=e.recordedSteps,n=window.location.href,r=document.querySelector("title").innerText.trim()||"";return A+="## [".concat(r,"](").concat(n,")\n\n"),t.forEach((function(e){var t=e.text,n=e.tip;n!==t&&n&&(A+="".concat(n,"\n")),A+="> ".concat(t,"\n\n")})),A=(A+="\n").trim()},this.notification=function(A,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:"50%",y:"50%"},o=document.createElement("pagenote-notification");o.className=t||"success",o.innerHTML=A,o.style.left=r.x||e.target.clientX||window.innerWidth/2+"px",o.style.top=r.y||e.target.clientY||window.innerHeight/2+"px",document.body.appendChild(o);var i=null;function s(){o.classList.add("fade"),i=setTimeout((function(){o.remove()}),n)}s(),o.addEventListener("mouseover",(function(){o.classList.remove("fade"),clearTimeout(i)}),{capture:!0}),o.addEventListener("mouseout",(function(){s()}),{capture:!0})},this.capture=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement||document.body;return new Promise((function(t,n){F(A).then((function(A){e.snapshots.push(A),e.makelink(),b(A),t(A)})).catch((function(A){console.error(A),n(A),e.notification(K.t("capture_error"),"error")}))}))};var H=l((function(A){try{var t=[];e.recordedSteps.forEach((function(A){var n={};Object.keys(A).forEach((function(t){e.CONSTANT.STORE_KEYS_VERSION_2_VALIDATE.includes(t)&&(n[t]=A[t])})),t.push(n)}));var n={},r=0;Object.keys(e.runningSetting).forEach((function(A){e.runningSetting[A]!==g[A]&&(n[A]=e.runningSetting[A],r++)}));for(var o=document.getElementsByTagName("img"),i=[],c=0;c100&&B>100&&l/B<2&&B/l<2&&i.push(f)}var h=document.querySelector("title"),d=document.querySelector("meta[name=description]"),C={steps:t,setting:{},url:window.location.href,lastModified:(new Date).getTime(),icon:v(),title:h?h.innerText.trim():"",description:d?d.content:"",images:i,snapshots:e.snapshots,version:2,categories:e.categories.size>0?Array.from(e.categories):[],note:e.note};r?C.setting=n:delete C.setting;var m=s(),E=m.paramObj,U=m.paramKeys;U.includes(p.ID)||U.push(p.ID),E[p.ID]=t.length?a(C):"",e.data=E[p.ID],e.plainData=C;var F=t.length?JSON.parse(JSON.stringify(C)):{};e.options.saveInLocal&&localStorage.setItem(e.id,e.data);var b="";U.forEach((function(A,e){if(!(A===p.ID&&0===t.length)){var n=void 0===E[A]?"":"="+(E[A]||"");b=b+A+n+"&"}})),b=b?"?"+b:"",e.url=w.protocol+"//"+w.host+w.pathname+b+w.hash,e.options.saveInURL&&history.pushState(Q,p.ID,e.url),e.status=p.SYNCED,A(F,e.url)}catch(t){e.status=p.SYNCED_ERROR,console.error(t),A()}}),1e3);Object.defineProperty(this,"status",{get:function(){return n},set:function(A){var e=n;e===p.DESTROY&&A!==p.RE_ALIVE||(n=A)===e&&n!==p.WAITING||h.forEach((function(t){t(A,e)}))}}),this.triggerListener=function(){var A=this;h.forEach((function(e){e(A.status,A.status)}))}}G.prototype.decodeData=function(A){return c(A)},G.prototype.encryptData=function(A){return a(A)},G.prototype.i18n=K,G.prototype.CONSTANT={ID:"pagenote",UN_INIT:-1,DESTROY:-9,RE_ALIVE:99,WAITING:0,READY:1,RECORDING:2,PAUSE:3,RECORDED:4,REMOVED:-4,REMOVEDALL:-5,RECORDFAIL:5,FINNISHED:6,REPLAYING:7,PLAYANDWAIT:8,DONE:9,START_SYNC:100,SYNCED:10,SYNCED_ERROR:-10,URLCHANGED:11,HASHCHANGED:12,LIGHT:100,DIS_LIGHT:-100,SHARE_CONFIRM:"c",SHARE_ING:"i",SHARE_ERROR:"e",SHARE_SUCCESS:"s",STORE_KEYS_VERSION_1:["x","y","id","text","tip","bg","time","isActive","offsetX","offsetY","parentW","pre","suffix"],STORE_KEYS_VERSION_2_VALIDATE:["x","y","id","text","tip","bg","time","isActive","offsetX","offsetY","parentW","pre","suffix","images"]},G.prototype.version="4.3.1";var J=t(0),W=t(8),Y=t.n(W),q=t(9),Z=t.n(q),$=t(6),AA=t.n($),eA=t(10),tA=t.n(eA),nA=t(11),rA=t.n(nA),oA=t(5),iA=t.n(oA),sA=t(22),aA=t.n(sA),cA=(t(34),function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1599576075781",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2626","data-spm-anchor-id":"a313x.7781069.0.i2",width:"16",height:"16"},t),[Object(J.h)("path",{d:"M512 1024C229.229714 1024 0 794.770286 0 512 0 229.229714 229.229714 0 512 0 794.770286 0 1024 229.229714 1024 512 1024 794.770286 794.770286 1024 512 1024ZM768.146286 305.152 716.434286 253.366857 509.586286 460.288 302.665143 253.366857 250.953143 305.152 457.874286 512 250.953143 718.921143 302.665143 770.633143 509.586286 563.712 716.434286 770.633143 768.146286 718.921143 561.298286 512 768.146286 305.152Z",fill:"#666666","p-id":"2627"},[])])}),uA=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1605333982641",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"17137",width:"18",height:"18"},t),[Object(J.h)("path",{d:"M512 62.00000001a450 450 0 1 0 449.99999999 449.99999999 450.51428584 450.51428584 0 0 0-449.99999999-449.99999999z m0 843.42857167A393.75 393.75 0 1 1 905.75 512 393.81428584 393.81428584 0 0 1 512 905.42857168zM588.11428583 323.64285752a27.06428584 27.06428584 0 0 0-39.72857167 0 27.45 27.45 0 0 0 0 39.21428496l120.72857168 120.85714336L287 483.71428584a28.28571416 28.28571416 0 0 0 0 56.57142832L669.11428584 540.28571416l-120.72857168 120.85714336a27.45 27.45 0 0 0 0 39.21428496 27.77142833 27.77142833 0 0 0 39.72857167 0L756.86428584 531.92857167a28.22142832 28.22142832 0 0 0 0-39.85714334z",fill:"#666","p-id":"17138"},[])])},lA=t(12),BA=t.n(lA),fA=t(2),hA=t(23),dA=t.n(hA),pA=t(24),gA=t.n(pA);function wA(A){return(wA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function QA(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function CA(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function mA(A){for(var e=1;e=0||(r[t]=A[t]);return r}(A,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(A);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(A,t)&&(r[t]=A[t])}return r}var vA=t(1);function UA(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function FA(A,e){for(var t=0;tA.length)&&(e=A.length);for(var t=0,n=new Array(e);t1&&void 0!==arguments[1]?arguments[1]:2;e();var o=SA((function(){r<=1?n({isCanceled:function(){return o!==A.current}}):t(n,r-1)}));A.current=o},e]}(),2),i=o[0],s=o[1];return le((function(){if("none"!==n&&"end"!==n){var A=Be.indexOf(n),t=Be[A+1],o=e(n);!1===o?r(t):i((function(A){function e(){A.isCanceled()||r(t)}!0===o?e():Promise.resolve(o).then(e)}))}}),[A,n]),vA.useEffect((function(){return function(){s()}}),[]),[function(){r("prepare")},n]};function de(A,e,t,n){var r=n.motionEnter,o=void 0===r||r,i=n.motionAppear,s=void 0===i||i,a=n.motionLeave,c=void 0===a||a,u=n.motionDeadline,l=n.motionLeaveImmediately,B=n.onAppearPrepare,f=n.onEnterPrepare,h=n.onLeavePrepare,d=n.onAppearStart,p=n.onEnterStart,g=n.onLeaveStart,w=n.onAppearActive,Q=n.onEnterActive,C=n.onLeaveActive,m=n.onAppearEnd,E=n.onEnterEnd,v=n.onLeaveEnd,U=n.onVisibleChanged,F=JA(ue(),2),b=F[0],y=F[1],H=JA(ue("none"),2),_=H[0],N=H[1],O=JA(ue(null),2),T=O[0],I=O[1],K=Object(vA.useRef)(!1),S=Object(vA.useRef)(null),L=Object(vA.useRef)(!1),R=Object(vA.useRef)(null);function M(){return t()||R.current}var x=Object(vA.useRef)(!1);function D(A){var e,t=M();A&&!A.deadline&&A.target!==t||("appear"===_&&x.current?e=null==m?void 0:m(t,A):"enter"===_&&x.current?e=null==E?void 0:E(t,A):"leave"===_&&x.current&&(e=null==v?void 0:v(t,A)),!1===e||L.current||(N("none"),I(null)))}var k=JA(function(A){var e=Object(vA.useRef)(),t=Object(vA.useRef)(A);t.current=A;var n=vA.useCallback((function(A){t.current(A)}),[]);function r(A){A&&(A.removeEventListener(ae,n),A.removeEventListener(se,n))}return vA.useEffect((function(){return function(){r(e.current)}}),[]),[function(A){e.current&&e.current!==A&&r(e.current),A&&A!==e.current&&(A.addEventListener(ae,n),A.addEventListener(se,n),e.current=A)},r]}(D),1)[0],P=vA.useMemo((function(){var A,e,t;switch(_){case"appear":return QA(A={},"prepare",B),QA(A,"start",d),QA(A,"active",w),A;case"enter":return QA(e={},"prepare",f),QA(e,"start",p),QA(e,"active",Q),e;case"leave":return QA(t={},"prepare",h),QA(t,"start",g),QA(t,"active",C),t;default:return{}}}),[_]),V=JA(he(_,(function(A){if("prepare"===A){var e=P.prepare;return!!e&&e(M())}var t;j in P&&I((null===(t=P[j])||void 0===t?void 0:t.call(P,M(),null))||null);return"active"===j&&(k(M()),u>0&&(clearTimeout(S.current),S.current=setTimeout((function(){D({deadline:!0})}),u))),!0})),2),z=V[0],j=V[1],X=fe(j);x.current=X,le((function(){if(y(e),A){var t,n=K.current;K.current=!0,!n&&e&&s&&(t="appear"),n&&e&&o&&(t="enter"),(n&&!e&&c||!n&&l&&!e&&c)&&(t="leave"),t&&(N(t),z())}}),[e]),Object(vA.useEffect)((function(){("appear"===_&&!s||"enter"===_&&!o||"leave"===_&&!c)&&N("none")}),[s,o,c]),Object(vA.useEffect)((function(){return function(){clearTimeout(S.current),L.current=!0}}),[]),Object(vA.useEffect)((function(){void 0!==b&&"none"===_&&(null==U||U(b))}),[b,_]);var G=T;return P.prepare&&"start"===j&&(G=mA({transition:"none"},G)),[_,j,G,null!=b?b:e]}var pe=function(A){_A(t,A);var e=TA(t);function t(){return UA(this,t),e.apply(this,arguments)}return bA(t,[{key:"render",value:function(){return this.props.children}}]),t}(vA.Component);var ge=function(A){var e=A;function t(A){return!(!A.motionName||!e)}"object"===wA(A)&&(e=A.transitionSupport);var n=vA.forwardRef((function(A,e){var n=A.visible,r=void 0===n||n,o=A.removeOnLeave,i=void 0===o||o,s=A.forceRender,a=A.children,c=A.motionName,u=A.leavedClassName,l=A.eventProps,B=t(A),f=Object(vA.useRef)(),h=Object(vA.useRef)();var d=JA(de(B,r,(function(){try{return RA(f.current||h.current)}catch(A){return null}}),A),4),p=d[0],g=d[1],w=d[2],Q=d[3],C=Object(vA.useRef)(e);C.current=e;var m,E=vA.useCallback((function(A){f.current=A,xA(C.current,A)}),[]),v=mA(mA({},l),{},{visible:r});if(a)if("none"!==p&&t(A)){var U,F;"prepare"===g?F="prepare":fe(g)?F="active":"start"===g&&(F="start"),m=a(mA(mA({},v),{},{className:jA()(ce(c,p),(U={},QA(U,ce(c,"".concat(p,"-").concat(F)),F),QA(U,c,"string"==typeof c),U)),style:w}),E)}else m=Q?a(mA({},v),E):i?s?a(mA(mA({},v),{},{style:{display:"none"}}),E):null:a(mA(mA({},v),{},{className:u}),E);else m=null;return vA.createElement(pe,{ref:h},m)}));return n.displayName="CSSMotion",n}(ie);function we(A){var e;return mA(mA({},e=A&&"object"===wA(A)&&"key"in A?A:{key:A}),{},{key:String(e.key)})}function Qe(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return A.map(we)}function Ce(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=[],n=0,r=e.length,o=Qe(A),i=Qe(e);o.forEach((function(A){for(var e=!1,o=n;o1}));return a.forEach((function(A){(t=t.filter((function(e){var t=e.key,n=e.status;return t!==A||"remove"!==n}))).forEach((function(e){e.key===A&&(e.status="keep")}))})),t}var me=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge,t=function(A){_A(n,A);var t=TA(n);function n(){var A;return UA(this,n),(A=t.apply(this,arguments)).state={keyEntities:[]},A.removeKey=function(e){A.setState((function(A){return{keyEntities:A.keyEntities.map((function(A){return A.key!==e?A:mA(mA({},A),{},{status:"removed"})}))}}))},A}return bA(n,[{key:"render",value:function(){var A=this,t=this.state.keyEntities,n=this.props,r=n.component,o=n.children,i=n.onVisibleChanged,s=EA(n,["component","children","onVisibleChanged"]),a=r||vA.Fragment,c={};return me.forEach((function(A){c[A]=s[A],delete s[A]})),delete s.keys,vA.createElement(a,Object.assign({},s),t.map((function(t){var n=t.status,r=EA(t,["status"]),s="add"===n||"keep"===n;return vA.createElement(e,Object.assign({},c,{key:r.key,visible:s,eventProps:r,onVisibleChanged:function(e){null==i||i(e,{key:r.key}),e||A.removeKey(r.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(A,e){var t=A.keys,n=e.keyEntities,r=Qe(t);return{keyEntities:Ce(n,r).filter((function(A){var e=n.find((function(e){var t=e.key;return A.key===t}));return!e||"removed"!==e.status||"remove"!==A.status}))}}}]),n}(vA.Component);t.defaultProps={component:"div"}}(ie);var Ee=ge;function ve(A){var e=A.prefixCls,t=A.motion,n=A.animation,r=A.transitionName;return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ue(A){var e=A.prefixCls,t=A.visible,n=A.zIndex,r=A.mask,o=A.maskMotion,i=A.maskAnimation,s=A.maskTransitionName;if(!r)return null;var a={};return(o||s||i)&&(a=mA({motionAppear:!0},ve({motion:o,prefixCls:e,transitionName:s,animation:i}))),vA.createElement(Ee,Object.assign({},a,{visible:t,removeOnLeave:!0}),(function(A){var t=A.className;return vA.createElement("div",{style:{zIndex:n},className:jA()("".concat(e,"-mask"),t)})}))}var Fe;function be(A){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function ye(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function He(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}var _e={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Ne(){if(void 0!==Fe)return Fe;Fe="";var A=document.createElement("p").style;for(var e in _e)e+"Transform"in A&&(Fe=e);return Fe}function Oe(){return Ne()?"".concat(Ne(),"TransitionProperty"):"transitionProperty"}function Te(){return Ne()?"".concat(Ne(),"Transform"):"transform"}function Ie(A,e){var t=Oe();t&&(A.style[t]=e,"transitionProperty"!==t&&(A.style.transitionProperty=e))}function Ke(A,e){var t=Te();t&&(A.style[t]=e,"transform"!==t&&(A.style.transform=e))}var Se,Le=/matrix\((.*)\)/,Re=/matrix3d\((.*)\)/;function Me(A){var e=A.style.display;A.style.display="none",A.offsetHeight,A.style.display=e}function xe(A,e,t){var n=t;if("object"!==be(e))return void 0!==n?("number"==typeof n&&(n="".concat(n,"px")),void(A.style[e]=n)):Se(A,e);for(var r in e)e.hasOwnProperty(r)&&xe(A,r,e[r])}function De(A,e){var t=A["page".concat(e?"Y":"X","Offset")],n="scroll".concat(e?"Top":"Left");if("number"!=typeof t){var r=A.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}function ke(A){return De(A)}function Pe(A){return De(A,!0)}function Ve(A){var e=function(A){var e,t,n,r=A.ownerDocument,o=r.body,i=r&&r.documentElement;return t=(e=A.getBoundingClientRect()).left,n=e.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(A),t=A.ownerDocument,n=t.defaultView||t.parentWindow;return e.left+=ke(n),e.top+=Pe(n),e}function ze(A){return null!=A&&A==A.window}function je(A){return ze(A)?A.document:9===A.nodeType?A:A.ownerDocument}var Xe=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Ge=/^(top|right|bottom|left)$/,Je="left";function We(A,e){return"left"===A?e.useCssRight?"right":A:e.useCssBottom?"bottom":A}function Ye(A){return"left"===A?"right":"right"===A?"left":"top"===A?"bottom":"bottom"===A?"top":void 0}function qe(A,e,t){"static"===xe(A,"position")&&(A.style.position="relative");var n=-999,r=-999,o=We("left",t),i=We("top",t),s=Ye(o),a=Ye(i);"left"!==o&&(n=999),"top"!==i&&(r=999);var c,u="",l=Ve(A);("left"in e||"top"in e)&&(u=(c=A).style.transitionProperty||c.style[Oe()]||"",Ie(A,"none")),"left"in e&&(A.style[s]="",A.style[o]="".concat(n,"px")),"top"in e&&(A.style[a]="",A.style[i]="".concat(r,"px")),Me(A);var B=Ve(A),f={};for(var h in e)if(e.hasOwnProperty(h)){var d=We(h,t),p="left"===h?n:r,g=l[h]-B[h];f[d]=d===h?p+g:p-g}xe(A,f),Me(A),("left"in e||"top"in e)&&Ie(A,u);var w={};for(var Q in e)if(e.hasOwnProperty(Q)){var C=We(Q,t),m=e[Q]-l[Q];w[C]=Q===C?f[C]+m:f[C]-m}xe(A,w)}function Ze(A,e){var t=Ve(A),n=function(A){var e=window.getComputedStyle(A,null),t=e.getPropertyValue("transform")||e.getPropertyValue(Te());if(t&&"none"!==t){var n=t.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}(A),r={x:n.x,y:n.y};"left"in e&&(r.x=n.x+e.left-t.left),"top"in e&&(r.y=n.y+e.top-t.top),function(A,e){var t=window.getComputedStyle(A,null),n=t.getPropertyValue("transform")||t.getPropertyValue(Te());if(n&&"none"!==n){var r,o=n.match(Le);if(o)(r=(o=o[1]).split(",").map((function(A){return parseFloat(A,10)})))[4]=e.x,r[5]=e.y,Ke(A,"matrix(".concat(r.join(","),")"));else(r=n.match(Re)[1].split(",").map((function(A){return parseFloat(A,10)})))[12]=e.x,r[13]=e.y,Ke(A,"matrix3d(".concat(r.join(","),")"))}else Ke(A,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(A,r)}function $e(A,e){for(var t=0;t=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function ht(A){var e,t,n;if(ct.isWindow(A)||9===A.nodeType){var r=ct.getWindow(A);e={left:ct.getWindowScrollLeft(r),top:ct.getWindowScrollTop(r)},t=ct.viewportWidth(r),n=ct.viewportHeight(r)}else e=ct.offset(A),t=ct.outerWidth(A),n=ct.outerHeight(A);return e.width=t,e.height=n,e}function dt(A,e){var t=e.charAt(0),n=e.charAt(1),r=A.width,o=A.height,i=A.left,s=A.top;return"c"===t?s+=o/2:"b"===t&&(s+=o),"c"===n?i+=r/2:"r"===n&&(i+=r),{left:i,top:s}}function pt(A,e,t,n,r){var o=dt(e,t[1]),i=dt(A,t[0]),s=[i.left-o.left,i.top-o.top];return{left:Math.round(A.left-s[0]+n[0]-r[0]),top:Math.round(A.top-s[1]+n[1]-r[1])}}function gt(A,e,t){return A.leftt.right}function wt(A,e,t){return A.topt.bottom}function Qt(A,e,t){var n=[];return ct.each(A,(function(A){n.push(A.replace(e,(function(A){return t[A]})))})),n}function Ct(A,e){return A[e]=-A[e],A}function mt(A,e){return(/%$/.test(A)?parseInt(A.substring(0,A.length-1),10)/100*e:parseInt(A,10))||0}function Et(A,e){A[0]=mt(A[0],e.width),A[1]=mt(A[1],e.height)}function vt(A,e,t,n){var r=t.points,o=t.offset||[0,0],i=t.targetOffset||[0,0],s=t.overflow,a=t.source||A;o=[].concat(o),i=[].concat(i);var c={},u=0,l=ft(a,!(!(s=s||{})||!s.alwaysByViewport)),B=ht(a);Et(o,B),Et(i,e);var f=pt(B,e,r,o,i),h=ct.merge(B,f);if(l&&(s.adjustX||s.adjustY)&&n){if(s.adjustX&>(f,B,l)){var d=Qt(r,/[lr]/gi,{l:"r",r:"l"}),p=Ct(o,0),g=Ct(i,0);(function(A,e,t){return A.left>t.right||A.left+e.widtht.bottom||A.top+e.height=t.left&&r.left+o.width>t.right&&(o.width-=r.left+o.width-t.right),n.adjustX&&r.left+o.width>t.right&&(r.left=Math.max(t.right-o.width,t.left)),n.adjustY&&r.top=t.top&&r.top+o.height>t.bottom&&(o.height-=r.top+o.height-t.bottom),n.adjustY&&r.top+o.height>t.bottom&&(r.top=Math.max(t.bottom-o.height,t.top)),ct.mix(r,o)}(f,B,l,c))}return h.width!==B.width&&ct.css(a,"width",ct.width(a)+h.width-B.width),h.height!==B.height&&ct.css(a,"height",ct.height(a)+h.height-B.height),ct.offset(a,{left:h.left,top:h.top},{useCssRight:t.useCssRight,useCssBottom:t.useCssBottom,useCssTransform:t.useCssTransform,ignoreShake:t.ignoreShake}),{points:r,offset:o,targetOffset:i,overflow:c}}function Ut(A,e,t){var n=t.target||e;return vt(A,ht(n),t,!function(A,e){var t=ft(A,e),n=ht(A);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}(n,t.overflow&&t.overflow.alwaysByViewport))}function Ft(A,e,t){var n,r,o=ct.getDocument(A),i=o.defaultView||o.parentWindow,s=ct.getWindowScrollLeft(i),a=ct.getWindowScrollTop(i),c=ct.viewportWidth(i),u=ct.viewportHeight(i);n="pageX"in e?e.pageX:s+e.clientX,r="pageY"in e?e.pageY:a+e.clientY;var l=n>=0&&n<=s+c&&r>=0&&r<=a+u;return vt(A,{left:n,top:r,width:0,height:0},function(A){for(var e=1;e1&&(x=vA.createElement("div",{className:"".concat(n,"-content")},i)),vA.createElement(Ee,Object.assign({visible:t,ref:C,leavedClassName:"".concat(n,"-hidden")},S,{onAppearPrepare:L,onEnterPrepare:L,removeOnLeave:c}),(function(A,e){var t=A.className,o=A.style,i=jA()(n,r,E,t);return vA.createElement(Ot,{target:l||B,key:"popup",ref:Q,monitorWindowResize:!0,disabled:M,align:u,onAlign:K},vA.createElement("div",{ref:e,className:i,onMouseEnter:d,onMouseLeave:p,onMouseDown:g,onTouchStart:w,style:mA(mA({},o),R)},x))}))}));Rt.displayName="PopupInner";var Mt=Rt,xt=vA.forwardRef((function(A,e){var t=A.prefixCls,n=A.visible,r=A.zIndex,o=A.children,i=A.mobile,s=(i=void 0===i?{}:i).popupClassName,a=i.popupStyle,c=i.popupMotion,u=void 0===c?{}:c,l=i.popupRender,B=vA.useRef();vA.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return B.current}}}));var f=mA({zIndex:r},a),h=o;return vA.Children.count(o)>1&&(h=vA.createElement("div",{className:"".concat(t,"-content")},o)),l&&(h=l(h)),vA.createElement(Ee,Object.assign({visible:n,ref:B,removeOnLeave:!0},u),(function(A,e){var n=A.className,r=A.style,o=jA()(t,s,n);return vA.createElement("div",{ref:e,className:o,style:mA(mA({},r),f)},h)}))}));xt.displayName="MobilePopupInner";var Dt=xt,kt=vA.forwardRef((function(A,e){var t=A.visible,n=A.mobile,r=EA(A,["visible","mobile"]),o=JA(Object(vA.useState)(t),2),i=o[0],s=o[1],a=JA(Object(vA.useState)(!1),2),c=a[0],u=a[1],l=mA(mA({},r),{},{visible:i});Object(vA.useEffect)((function(){var A;s(t),t&&n&&u((A=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(A)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(A.substr(0,4)))))}),[t,!!n]);var B=c?vA.createElement(Dt,Object.assign({},l,{mobile:n,ref:e})):vA.createElement(Mt,Object.assign({},l,{ref:e}));return vA.createElement("div",null,vA.createElement(Ue,Object.assign({},l)),B)}));kt.displayName="Popup";var Pt=kt,Vt=vA.createContext(null);function zt(){}function jt(){return""}function Xt(A){return A?A.ownerDocument:window.document}var Gt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Jt,Wt,Yt=(Jt=VA,(Wt=function(A){_A(t,A);var e=TA(t);function t(A){var n,r;return UA(this,t),(n=e.call(this,A)).popupRef=vA.createRef(),n.triggerRef=vA.createRef(),n.onMouseEnter=function(A){var e=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",A),n.delaySetPopupVisible(!0,e,e?null:A)},n.onMouseMove=function(A){n.fireEvents("onMouseMove",A),n.setPoint(A)},n.onMouseLeave=function(A){n.fireEvents("onMouseLeave",A),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onPopupMouseEnter=function(){n.clearDelayTimer()},n.onPopupMouseLeave=function(A){var e;A.relatedTarget&&!A.relatedTarget.setTimeout&&LA(null===(e=n.popupRef.current)||void 0===e?void 0:e.getElement(),A.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)},n.onFocus=function(A){n.fireEvents("onFocus",A),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))},n.onMouseDown=function(A){n.fireEvents("onMouseDown",A),n.preClickTime=Date.now()},n.onTouchStart=function(A){n.fireEvents("onTouchStart",A),n.preTouchTime=Date.now()},n.onBlur=function(A){n.fireEvents("onBlur",A),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)},n.onContextMenu=function(A){A.preventDefault(),n.fireEvents("onContextMenu",A),n.setPopupVisible(!0,A)},n.onContextMenuClose=function(){n.isContextMenuToShow()&&n.close()},n.onClick=function(A){if(n.fireEvents("onClick",A),n.focusTime){var e;if(n.preClickTime&&n.preTouchTime?e=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?e=n.preClickTime:n.preTouchTime&&(e=n.preTouchTime),Math.abs(e-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&A&&A.preventDefault&&A.preventDefault();var t=!n.state.popupVisible;(n.isClickToHide()&&!t||t&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,A)},n.onPopupMouseDown=function(){var A;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context&&(A=n.context).onPopupMouseDown.apply(A,arguments)},n.onDocumentClick=function(A){if(!n.props.mask||n.props.maskClosable){var e=A.target,t=n.getRootDomNode(),r=n.getPopupDomNode();LA(t,e)||LA(r,e)||n.hasPopupMouseDown||n.close()}},n.getRootDomNode=function(){var A=n.props.getTriggerDOMNode;if(A)return A(n.triggerRef.current);try{var e=RA(n.triggerRef.current);if(e)return e}catch(A){}return vA.default.findDOMNode(yA(n))},n.getPopupClassNameFromAlign=function(A){var e=[],t=n.props,r=t.popupPlacement,o=t.builtinPlacements,i=t.prefixCls,s=t.alignPoint,a=t.getPopupClassNameFromAlign;return r&&o&&e.push(function(A,e,t,n){for(var r=t.points,o=Object.keys(A),i=0;i1&&void 0!==arguments[1]?arguments[1]:"add";r(A,e)},l=t.filter((function(A){return!s||A.label.indexOf(s)>-1})),B=Array.from(n);return Object(J.h)("div",null,Object(J.h)(nn,{overlay:Object(J.h)("div",{className:"droplabel"},Object(J.h)("div",{className:"select-menu-header"},Object(J.h)("span",{className:"select-menu-title"},K.t("add_a_category"))),Object(J.h)("div",{className:"select-menu-filters"},Object(J.h)("div",{className:"select-menu-text-filter"},Object(J.h)("input",{ref:c,onKeyDown:function(A){13===A.which&&u(c.current.value.trim(),"add",!0),A.stopPropagation()},onChange:function(A){a(A.target.value.trim())},value:s,type:"text",placeholder:K.t("search_or_create_category"),autoComplete:"off",autoFocus:""}),s&&Object(J.h)("button",{onClick:function(A){u(s,"add",!0),A.stopPropagation()},className:"new-button"},K.t("create_and_apply")))),Object(J.h)("div",{className:"select-menu-list"},B.map((function(A){return Object(J.h)("label",{onClick:function(){return u(A,"delete",!0)},className:"select-menu-item label-select-menu-item"},Object(J.h)("svg",{className:"select-menu-item-icon",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16","aria-hidden":"true"},Object(J.h)("path",{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})),A)})),Object(J.h)("div",null,l.map((function(A){return!n.has(A.label)&&Object(J.h)("div",{onClick:function(){return u(A.label,"add",!0)},key:A.label,className:"select-menu-item"},Object(J.h)("label",null,A.label))})))))},Object(J.h)("div",{className:"category-title"},Object(J.h)(rn,null),Object(J.h)("div",{className:"categories"},B.map((function(A){return Object(J.h)("span",{className:"category-name"},A)}))))))}var sn=t(27),an=t.n(sn);t(44);function cn(A){var e=A.colors,t=A.run;return Object(J.h)("pagenote-toggle-all",{"data-run":t?"1":""},Object(J.h)("svg",{t:"1605017147684",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"24496",width:"16",height:"16",fill:"#fff"},Object(J.h)("path",{d:"M4.8 460.8C51.2 411.2 144 336 273.6 361.6 443.2 388.8 512 512 512 512s-172.8 8-270.4 156.8c-46.4 78.4-56 171.2-27.2 257.6-16-11.2-30.4-22.4-44.8-35.2C49.6 782.4-11.2 622.4 4.8 460.8z",fill:e[0]||"#fff","p-id":"24497","data-spm-anchor-id":"a313x.7781069.0.i46",className:"selected"}),Object(J.h)("path",{d:"M523.2 232c60.8 160-11.2 281.6-11.2 281.6s-94.4-145.6-272-155.2C150.4 358.4 64 395.2 4.8 464 22.4 281.6 134.4 123.2 300.8 48c65.6 14.4 177.6 57.6 222.4 184z",fill:e[1],"p-id":"24498","data-spm-anchor-id":"a313x.7781069.0.i45",className:"selected"}),Object(J.h)("path",{d:"M760 382.4C651.2 515.2 510.4 512 510.4 512s80-153.6-1.6-312C464 121.6 387.2 65.6 299.2 48 465.6-27.2 659.2-9.6 808 96c19.2 64 40 184-48 286.4z",fill:e[2],"p-id":"24499","data-spm-anchor-id":"a313x.7781069.0.i44",className:"selected"}),Object(J.h)("path",{d:"M748.8 660.8c-169.6-27.2-238.4-150.4-238.4-150.4s172.8-8 268.8-156.8c46.4-76.8 56-171.2 27.2-256 16 11.2 32 24 46.4 36.8C972.8 241.6 1033.6 400 1019.2 560c-44.8 48-139.2 124.8-270.4 100.8z",fill:e[3],"p-id":"24500","data-spm-anchor-id":"a313x.7781069.0.i43",className:"selected"}),Object(J.h)("path",{d:"M500.8 792c-60.8-160 11.2-281.6 11.2-281.6s92.8 142.4 270.4 152c91.2 1.6 177.6-36.8 238.4-104-16 182.4-129.6 342.4-297.6 419.2-65.6-16-179.2-57.6-222.4-185.6z",fill:e[4],"p-id":"24501","data-spm-anchor-id":"a313x.7781069.0.i48",className:"selected"}),Object(J.h)("path",{d:"M212.8 924.8c-20.8-64-40-180.8 46.4-281.6C368 510.4 512 512 512 512s-76.8 152 3.2 310.4c43.2 78.4 120 134.4 208 153.6a505.44 505.44 0 0 1-510.4-51.2z",fill:e[5]||"#fff","p-id":"24502","data-spm-anchor-id":"a313x.7781069.0.i47",className:"selected"})))}var un=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1608973287213",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7635",width:"18",height:"18"},t),[Object(J.h)("path",{d:"M512 987.428571c263.314286 0 475.428571-212.114286 475.428571-475.428571S775.314286 36.571429 512 36.571429 36.571429 248.685714 36.571429 512s212.114286 475.428571 475.428571 475.428571z m0 36.571429C228.571429 1024 0 795.428571 0 512S228.571429 0 512 0s512 228.571429 512 512-228.571429 512-512 512z",fill:"#B3B3B3","p-id":"7636"},[]),Object(J.h)("path",{d:"M301.714286 493.714286h420.571428c14.628571 0 27.428571 12.8 27.428572 27.428571s-12.8 27.428571-27.428572 27.428572h-420.571428c-14.628571 0-27.428571-12.8-27.428572-27.428572s12.8-27.428571 27.428572-27.428571z",fill:"#7F7F7F","p-id":"7637"},[]),Object(J.h)("path",{d:"M539.428571 310.857143v420.571428c0 14.628571-12.8 27.428571-27.428571 27.428572s-27.428571-12.8-27.428571-27.428572V310.857143c0-14.628571 12.8-27.428571 27.428571-27.428572s27.428571 12.8 27.428571 27.428572z",fill:"#7F7F7F","p-id":"7638"},[])])},ln=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1600872298803",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6051",width:"18",height:"18"},t),[Object(J.h)("path",{d:"M733.855 791.945c0 26.574-21.63 48.203-48.202 48.203H338.347c-26.573 0-48.202-21.63-48.202-48.203V280.257h443.71v511.688zM386.55 193.74c0-5.562 4.326-9.888 9.888-9.888H628.18c5.562 0 9.888 4.326 9.888 9.888v29.045H386.55V193.74z m491.913 29.045H695.54V193.74c0-37.08-30.28-67.36-67.36-67.36H396.438c-37.08 0-67.36 30.28-67.36 67.36v29.045h-183.54c-16.068 0-29.046 12.978-29.046 29.045s12.978 29.045 29.045 29.045h86.518v511.07c0 58.709 47.584 106.293 106.292 106.293h347.306c58.708 0 106.292-47.584 106.292-106.293V280.257h86.518c16.067 0 29.045-12.977 29.045-29.045s-12.978-28.427-29.045-28.427zM512 753.013c16.068 0 29.045-12.978 29.045-29.046v-308.99c0-16.068-12.977-29.045-29.045-29.045s-29.045 12.977-29.045 29.045v308.99c0 16.068 12.977 29.046 29.045 29.046m-135.338 0c16.068 0 29.045-12.978 29.045-29.046v-308.99c0-16.068-12.977-29.045-29.045-29.045s-29.045 12.977-29.045 29.045v308.99c0.618 16.068 13.596 29.046 29.045 29.046m270.676 0c16.067 0 29.045-12.978 29.045-29.046v-308.99c0-16.068-12.978-29.045-29.045-29.045s-29.045 12.977-29.045 29.045v308.99c0 16.068 12.977 29.046 29.045 29.046","p-id":"6052"},[])])},Bn=(t(45),function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1610167219163",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3309",width:"16",height:"16"},t),[Object(J.h)("path",{d:"M224 480m-96 0a96 96 0 1 0 192 0 96 96 0 1 0-192 0Z",fill:"#768893","p-id":"3310"},[]),Object(J.h)("path",{d:"M544 480m-96 0a96 96 0 1 0 192 0 96 96 0 1 0-192 0Z",fill:"#768893","p-id":"3311"},[]),Object(J.h)("path",{d:"M864 480m-96 0a96 96 0 1 0 192 0 96 96 0 1 0-192 0Z",fill:"#768893","p-id":"3312"},[])])}),fn=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1612099643041",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2342",width:"16",height:"16"},t),[Object(J.h)("path",{d:"M937.472 102.4H91.136c-46.08 0-83.456 37.376-83.456 83.456V841.728c0 46.08 37.376 83.456 83.456 83.456h846.336c46.08 0 83.456-37.376 83.456-83.456V185.856c0-46.08-37.376-83.456-83.456-83.456zM91.136 163.84h846.336c12.288 0 22.016 9.728 22.016 22.016v437.248L762.88 448.512c-10.752-9.728-27.136-10.24-38.912-1.536l-244.224 183.296-129.536-92.16c-10.24-7.68-24.576-7.68-35.328 0l-245.76 174.08V185.856c0-12.288 9.728-22.016 22.016-22.016z m846.336 699.904H91.136c-12.288 0-22.016-9.728-22.016-22.016v-54.272L332.8 601.088l247.808 176.64c13.824 9.728 33.28 6.656 43.008-7.168 9.728-13.824 6.656-33.28-7.168-43.008l-84.48-59.904 208.896-156.672 211.456 187.904c2.048 2.048 4.608 3.072 7.168 4.608v138.24c0 12.288-9.728 22.016-22.016 22.016z",fill:"#1296db","p-id":"2343"},[]),Object(J.h)("path",{d:"M312.32 471.04c70.656 0 128-57.344 128-128S382.976 215.04 312.32 215.04 184.32 272.384 184.32 343.04s57.344 128 128 128z m0-194.56c36.864 0 66.56 29.696 66.56 66.56s-29.696 66.56-66.56 66.56-66.56-29.696-66.56-66.56 29.696-66.56 66.56-66.56z",fill:"#1296db","p-id":"2344"},[])])};function hn(A){var e=A.step,t=e.text||"",n=e.text!==e.tip?e.tip:"",r=e.images||[];return Object(J.h)("pagenote-ref-anotation",{"data-insign":e.isInview?"1":"",style:{"--fill-color":e.isActive&&e.isInview?e.bg:"#fff"}},Object(J.h)("pagenote-light-ref",null,Object(J.h)("span",null,t.substring(0,28),r.length?Object(J.h)(nn,{trigger:"hover",message:r.map((function(A){return Object(J.h)("div",null,Object(J.h)("img",{style:"max-width:100px",src:A.url,alt:A.alt}))}))},Object(J.h)(fn,{style:{verticalAlign:"sub",margin:"0 4px"}})):"")),Object(J.h)("pagenote-light-anotation",null,e.isActive&&n&&Object(J.h)("pagenote-block",null,Object(J.h)("pagenote-block",{dangerouslySetInnerHTML:{__html:n}}))),Object(J.h)("pagenote-light-actions",null,Object(J.h)(nn,{overlay:Object(J.h)("span",null,Object(J.h)(ln,{onClick:function(A){return e.delete(A)}}))},Object(J.h)(Bn,{onClick:function(A){A.stopPropagation()}}))))}t(46);function dn(A){var e=A.steps,t=void 0===e?[]:e,n=A.useDot,r=Object(fA.k)(0),o=BA()(r,2),i=o[0],s=o[1],a=u((function(A){var e=E().y,n=document.documentElement.scrollHeight-window.innerHeight;s(Math.min(Math.floor(e/n*100),100)),t.forEach((function(A){A.checkInSign()}))}),20);function c(){document.removeEventListener("scroll",a)}Object(fA.d)((function(){return document.addEventListener("scroll",a),c}),[]);var l=Math.min(Math.max(i,8),98);return Object(J.h)(tn,{destroyTooltipOnHide:{keepParent:!1},align:{offset:[10,0]},placement:"rightTop",trigger:["hover"],offsetX:10,overlay:Object(J.h)("span",null,K.t("has_read_percent",[i]))},n?Object(J.h)("pagenote-scroll-sign",{style:{top:"".concat(l,"%")}}):Object(J.h)("pagenote-progress",{"data-position":"bottom"},Object(J.h)("pagenote-progress-percent",{style:{width:"".concat(i,"%")}})))}t(47);function pn(A){var e=A.message,t=A.children;return Object(J.h)(tn,{destroyTooltipOnHide:{keepParent:!1},align:{offset:[0,-10]},overlayStyle:{zIndex:9999999},placement:"top",trigger:["hover"],offsetX:10,overlay:Object(J.h)("span",null,e)},t)}function gn(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,n=iA()(A);if(e){var r=iA()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return rA()(this,t)}}var wn=-1,Qn=null;function Cn(A){var e,t,n,r=A.step,o=A.running,i=void 0!==o&&o,s=(A.index,A.barStatus,A.dot);return Object(J.h)(J.b,null,s?Object(J.h)("pagenote-dot-container",{"data-active":r.isActive?"1":"0","data-running":i,style:{top:(e=r.y,t=window.innerHeight-30-16,n=e/document.documentElement.scrollHeight*t+30+16,n=Math.min(e,n,t),wn>0&&Math.abs(n-wn)<24&&(n=wn+16),wn=n,n+"px"),"--color":r.bg,position:"absolute"},onClick:function(){return r.toggle()}},Object(J.h)("pagenote-light-ref-dot",null,Object(J.h)(hn,{step:r})),Object(J.h)("pagenote-dot",null)):Object(J.h)("pagenote-line-container",{"data-active":r.isActive?"1":"0",style:{"--color":r.bg},onClick:function(){return r.toggle()}},Object(J.h)(hn,{step:r})))}var mn=function(A){tA()(t,A);var e=gn(t);function t(A){var n;return Y()(this,t),(n=e.call(this)).setCategories=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"add";if("add"===e){if(n.pagenote.categories.size>=5)return void n.pagenote.notification(K.t("most_cnt",[5]));n.pagenote.categories.add(A)}else"delete"===e&&n.pagenote.categories.delete(A);n.pagenote.makelink()},n.removeSnapshot=function(A){n.pagenote.snapshots.splice(A,1),n.pagenote.makelink()},n.capture=function(){n.pagenote.capture(),n.setState({capturing:!0},(function(){setTimeout((function(){n.setState({capturing:!1})}),3e3)}))},Qn=n.pagenote=A.pagenote,n.toggleAllLight=n.toggleAllLight.bind(AA()(n)),n.toggleAutoLight=n.toggleAutoLight.bind(AA()(n)),n.replay=n.replay.bind(AA()(n)),n.toggleSideBar=n.toggleSideBar.bind(AA()(n)),n.state={barInfo:Qn.runningSetting.barInfo,steps:Qn.recordedSteps,snapshots:Qn.snapshots||[],categories:Qn.categories,note:Qn.note,autoLight:Qn.runningSetting.autoLight,highlightAll:Qn.highlightAll,runindex:Qn.runindex,capturing:!1,title:Qn.plainData.title,run:!1},Qn.addListener(n.refreshStatus.bind(AA()(n))),n}return Z()(t,[{key:"refreshStatus",value:function(){this.setState({barInfo:Qn.runningSetting.barInfo,steps:Qn.recordedSteps||[],categories:Qn.categories,note:Qn.note||"",snapshots:Qn.snapshots||[],autoLight:Qn.runningSetting.autoLight||!1,highlightAll:Qn.highlightAll||!1,runindex:Qn.runindex,status:Qn.status,title:Qn.plainData.title,run:[Qn.CONSTANT.REPLAYING,Qn.CONSTANT.START_SYNC].includes(Qn.status)})}},{key:"toggleAllLight",value:function(){this.pagenote.toggleAllLight()}},{key:"toggleAutoLight",value:function(){var A=this.pagenote;A.runningSetting.autoLight=!A.runningSetting.autoLight,A.makelink()}},{key:"replay",value:function(){var A;(A=this.pagenote).replay.apply(A,arguments),this.refreshStatus()}},{key:"changeLightStatus",value:function(A){this.pagenote.replay(A,!0,!0,!1,!0),this.pagenote.recordedSteps[A].writing=!0,this.refreshStatus()}},{key:"toggleSideBar",value:function(){var A=this.state.barInfo.status||"",e=this.pagenote.runningSetting.barInfo;A=A===L?S:L,e.status=A,this.pagenote.makelink()}},{key:"setRef",value:function(A){var e=this,t=this.pagenote;if(!this.sideEl){this.sideEl=A;var n=null;U(A,(function(A){var r=A.clientX+50,o=A.clientY-10,i=t.runningSetting.barInfo;i.right=Math.max(1,document.documentElement.clientWidth-r-10),i.right=Math.min(i.right,document.documentElement.clientWidth-20),i.top=Math.max(Math.min(document.documentElement.clientHeight-200,o),0),clearTimeout(n),n=setTimeout((function(){t.makelink()}),600),e.setState({barInfo:t.runningSetting.barInfo})}),!1)}}},{key:"confirmShare",value:function(){this.pagenote.options.onShare(this.pagenote)}},{key:"toggleHideSideBar",value:function(){var A=this.state.barInfo.status||"";A=A.indexOf(L)>-1?S:L;var e=this.pagenote.runningSetting.barInfo;e.status=A,this.setState({barInfo:e}),this.pagenote.makelink()}},{key:"bigPicture",value:function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;aA()({el:A.target,gallery:t,position:n,animationEnd:function(){}})}},{key:"render",value:function(){var A=this,e=this.state,t=e.status,n=e.barInfo,r=e.steps,o=(e.autoLight,e.highlightAll,e.runindex),i=e.categories,s=(e.note,e.snapshots),a=(e.capturing,e.title),c=e.run,u=n.status||"",l=u===L,B=r.length>0||s.length>0,f=l?0:n.top;n.right=Math.min(document.documentElement.clientWidth-60,n.right);var h=Math.max(n.right,10),d=this.pagenote.options.sideBarActions,p=new Set;return r.forEach((function(A){p.add(A.lightBg||A.bg)})),t===this.pagenote.CONSTANT.DESTROY?"":Object(J.h)(J.b,null,B&&Object(J.h)("pagenote-aside",{"data-status":l?"expand":"fold",style:{right:h+"px",top:f+"px",position:"fixed"}},Object(J.h)("pagenote-actions",{ref:this.setRef.bind(this)},Object(J.h)(pn,{message:K.t("toggle_marks")},Object(J.h)("pagenote-action",{onClick:this.toggleAllLight},Object(J.h)(cn,{run:c,colors:Array.from(p)}))),Object(J.h)("pagenote-action-group",null,d.map((function(A,e){return Object(J.h)(pn,{message:A.name},Object(J.h)("pagenote-action",{key:A.name+e,onClick:A.onclick,style:{backgroundImage:"url(data:image/svg+xml;base64,".concat(window.btoa(A.icon),")")}}))}))),Object(J.h)("pagenote-action",{"data-action":"toggle",onClick:this.toggleHideSideBar.bind(this)},l?Object(J.h)(un,null):Object(J.h)(uA,null))),Object(J.h)(dn,{useDot:l,steps:r}),Object(J.h)("pagenote-description",null,Object(J.h)("pagenote-title",null,a),Object(J.h)("pagenote-content",null)),Object(J.h)("pagenote-lights",null,r.map((function(A,e){return Object(J.h)(Cn,{key:A.lightId,step:A,index:e,running:e===o,dot:l})}))),Object(J.h)("pagenote-infos",null,Object(J.h)(on,{onSet:this.setCategories,categories:this.pagenote.options.categories,currentCategories:i}),Object(J.h)("pagenote-snapshots",null,s.map((function(e,t){return Object(J.h)("pagenote-snapshot",null,Object(J.h)("pagenote-icon",null,Object(J.h)(cA,{onClick:function(){return A.removeSnapshot(t)},className:an.a.removeIcon})),Object(J.h)("img",{onClick:function(n){A.bigPicture(n,e,s.map((function(A){return{src:A}})),t)},src:e,alt:""}))}))))))}}]),t}(J.a),En=function(A){var e=A.styles,t=Object.assign({},A);return delete t.styles,Object(J.h)("svg",Object.assign({t:"1606536179078",class:[e&&e.icon||"icon"].join(" "),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5142",width:"30",height:"30"},t),[Object(J.h)("path",{d:"M876.425846 400.817231l-268.169846 268.130461-185.107692 99.958154-56.241231 56.201846a35.446154 35.446154 0 0 1-42.929231 5.553231l-177.309538-103.424a35.446154 35.446154 0 0 1-7.207385-55.689846l93.105231-93.065846 99.997538-185.225846 268.169846-268.169847a35.446154 35.446154 0 0 1 50.097231 0l225.595077 225.595077a35.446154 35.446154 0 0 1 0 50.136616z",fill:"#FFFFFF","p-id":"5143"},[]),Object(J.h)("path",{d:"M876.425846 400.817231l-268.169846 268.130461-185.107692 99.958154-190.621539-190.424615 100.036923-185.225846 268.169846-268.169847a35.446154 35.446154 0 0 1 50.097231 0l225.595077 225.595077a35.446154 35.446154 0 0 1 0 50.136616z",fill:"#FAD97F","p-id":"5144"},[]),Object(J.h)("path",{d:"M876.425846 400.817231l-268.169846 268.130461-275.692308-275.692307 268.169846-268.169847a35.446154 35.446154 0 0 1 50.097231 0l225.595077 225.595077a35.446154 35.446154 0 0 1 0 50.136616z",fill:"#FAD97F","p-id":"5145"},[]),Object(J.h)("path",{d:"M888.950154 338.156308l-225.555692-225.595077a53.169231 53.169231 0 0 0-75.224616 0L320.039385 380.731077l-3.072 4.096-98.855385 183.020308-91.175385 91.175384a53.169231 53.169231 0 0 0 10.791385 83.534769L315.076923 845.981538l4.568615 2.363077a53.169231 53.169231 0 0 0 59.825231-10.712615l54.429539-54.390154 182.823384-98.697846 4.096-3.032615 268.209231-268.209231a53.169231 53.169231 0 0 0 0-75.145846z m-25.048616 25.048615l2.048 2.441846a17.723077 17.723077 0 0 1-2.048 22.606769l-266.24 266.24-182.980923 98.816-4.096 3.072-56.24123 56.201847a17.723077 17.723077 0 0 1-21.425231 2.756923L155.569231 711.995077a17.723077 17.723077 0 0 1-3.623385-27.844923l93.105231-93.105231 3.072-4.096 98.737231-182.941538 266.358154-266.358154a17.723077 17.723077 0 0 1 25.048615 0l225.595077 225.595077z",fill:"#000000","p-id":"5146"},[]),Object(J.h)("path",{d:"M888.950154 338.156308l-225.555692-225.595077a53.169231 53.169231 0 0 0-75.224616 0L320.039385 380.731077l-3.072 4.096-106.299077 196.844308 209.250461 209.092923 196.765539-106.220308 4.096-3.032615 268.20923-268.209231a53.169231 53.169231 0 0 0 0-75.145846z m-25.048616 25.048615l2.048 2.441846a17.723077 17.723077 0 0 1-2.048 22.606769L597.464615 654.572308l-171.204923 92.435692-171.874461-171.716923 92.553846-171.441231 266.24-266.24a17.723077 17.723077 0 0 1 25.088 0l225.595077 225.595077z",fill:"#000000","p-id":"5147"},[]),Object(J.h)("path",{d:"M888.950154 338.156308l-225.555692-225.595077a53.169231 53.169231 0 0 0-75.224616 0L307.475692 393.255385l300.780308 300.780307 280.694154-280.694154a53.169231 53.169231 0 0 0 0-75.224615z m-25.048616 25.048615l2.048 2.441846a17.723077 17.723077 0 0 1-2.048 22.606769l-255.645538 255.606154L357.612308 393.216l255.606154-255.606154a17.723077 17.723077 0 0 1 25.088 0l225.595076 225.595077z",fill:"#000000","p-id":"5148"},[])])};t(48);function vn(A){var e=A.pagenote,t=(f?0:e.target.x)+"px",n=(f?e.target.y+50:e.target.y)+"px",r=e.options.functionColors,o=e.options.colors,i=e.status===e.CONSTANT.WAITING||e.status===e.CONSTANT.PLAYANDWAIT,s=e.options.shortCuts,a=(f?o.length:h(o.length-1),e.target.canHighlight);function c(A){var t=A.currentTarget.dataset.color||o[0];e.record({bg:t})}var u=e.options.showIconAnimation;return Object(J.h)("div",{style:{position:"absolute",zIndex:2147483648,left:t,top:n,transition:".5s",userSelect:"none",textAlign:"left"}},i&&Object(J.h)("div",null,a&&Object(J.h)("pagenote-colors-container",null,o.map((function(A,e){var t=f||0===e?{x:-40*e,y:0}:h(e-1),n=t.x,r=t.y;return Object(J.h)("pagenote-color-button",{"data-color":A,"data-pagenotecolor":A,style:{"--color":A,transform:"translate(".concat(n,"px,").concat(r,"px)"),top:r/-1+"px",left:n/-1+"px",color:B(A).textColor,textShadow:"1px 1px 0px ".concat(B(B(A).textColor).textColor),animation:"".concat(u&&0!==e?"colorShow 3s ease-out":"")},onClick:c},0!==e?s[e]:Object(J.h)("span",null,Object(J.h)(En,{"data-pagenotecolor":A,style:{userSelect:"none"},fill:A})))}))),r.map((function(A,e){return Object(J.h)("pagenote-plugin-group",{style:{left:34*(e+1)+4+"px",animationDelay:.2*(e+1)+"s"}},A.map((function(A){var e=/^1&&void 0!==arguments[1]?arguments[1]:{},t=new G(A,e),n=document.body||document.documentElement||document.createElement("div"),r=document.createElement("pagenote-bar");r.dataset.pagenote="sidebar",n.appendChild(r),Object(J.k)(Object(J.h)(mn,{pagenote:t}),r);var o=null;t.addListener(l((function(A,e){A===e&&A!==t.CONSTANT.WAITING||(A===t.CONSTANT.WAITING||A===t.CONSTANT.PLAYANDWAIT?setTimeout((function(){(o=o||document.createElement("pagenote-action")).dataset.pagenote="action",Object(J.k)(Object(J.h)(vn,{pagenote:t}),o),n.appendChild(o)}),10):o&&o.remove())}),16));var i=document.createElement("pagenote-tags");return i.className="no-pagenote",i.dataset.pagenote="tags",Object(J.k)(Object(J.h)(Mn,{pagenote:t}),i),n.appendChild(i),t}e.default=xn;window.PageNote=xn},function(A,e,t){"use strict";function n(A){var e=A.getBoundingClientRect(),t=document.body,n=document.documentElement,r=window.pageYOffset||n.scrollTop||t.scrollTop,o=window.pageXOffset||n.scrollLeft||t.scrollLeft,i=n.clientTop||t.clientTop||0,s=n.clientLeft||t.clientLeft||0,a=e.top+r-i,c=e.left+o-s;return{top:Math.round(a),left:Math.round(c)}}function r(A){if(!A)return A;var e=A;try{var t=A.split("."),n=t.slice(0,Math.fround(t.length/2)).join(".");if(!n)return A;document.querySelector(n)===document.querySelector(A)&&(e=n)}catch(A){}return e}t.r(e);var o,i=window.document,s=function(){},a=o=function(A){this.options=Object.assign({},{draw:!0,simpleId:!0},A),this.lastClick=document.body;var e=this;document.addEventListener("mousedown",(function(A){e.lastClick=A.target,e.focusedElement!==e.lastClick&&o.prototype.clean()}))},c=a.prototype;c.getUniqueId=function(A,e){if(!((A=A||this.lastClick)instanceof HTMLElement))return console.error("input is not a HTML element",A),{};var t={wid:"",type:""},n=A.id,o=A.name,s=A.tagName.toLowerCase(),u=A.type?A.type.toLowerCase():"",l="";if((A.classList||[]).forEach((function(A){/^[a-zA-Z]/.test(A)&&(l+="."+A)})),"body"!==s&&"html"!==s||(t.wid=s,t.type=s),n&&i.getElementById(n)===A){var B=new RegExp("^[a-zA-Z]+");!e&&this.options.simpleId?t.wid=n:B.test(n)&&(t.wid=s+"#"+n),t.type="document.getElementById()"}if(!t.wid&&o&&i.getElementsByName(o)[0]===A&&(t.wid=o,t.type="document.getElementsByName()"),!t.wid&&l&&i.querySelector(s+l)===A&&(t.wid=s+l,t.type="document.querySelector()"),!t.wid&&"radio"===u){var f=s+"[value='"+A.value+"']";o&&(f+="[name='"+o+"']"),i.querySelector(f)===A&&(t.wid=f,t.type="document.querySelector()")}if(!t.wid&&"a"===s){var h=A.attributes.href.value;if(h)f="a[href='"+h+"']",i.querySelector(f)===A&&(t.wid=f,t.type="document.querySelector()")}if(t.wid||(f=s,f=l?f+l:f,f=o?f+"[name='"+o+"']":f,i.querySelector(f)===A&&(t.wid=f,t.type="document.querySelector()")),!t.wid){f=s,f=l?f+l:f;var d=i.querySelectorAll(f);if(d&&d.length>0){for(var p=null,g=0;g"+C,i.querySelectorAll(f).length>1){f=null;p=null;for(var m=0;m=1)f=Q+">"+C+":nth-child("+p+")",i.querySelector(f)!==A&&(f=null)}t.wid=f,t.type="document.querySelector()"}return this.focusedElement=c.getTarget(t.wid),!e&&this.options.draw&&this.__proto__.draw(t),t.wid.length>"10"&&(t.warn=!0),t},c.getTarget=function(A,e){var t=null;try{switch(e){case"document.getElementById()":t=i.getElementById(A);break;case"document.getElementsByName()":t=i.getElementsByName(A)[0];break;case"document.querySelector()":t=i.querySelector(A);break;default:t=i.getElementById(A)||i.getElementsByName(A)[0]||i.querySelector(A)}}catch(A){console.error(A)}return t},c.compute=function(A){A=A||this.lastClick;var e=this.getUniqueId(A),t=A.getBoundingClientRect(),r=t.left>0&&t.left0&&t.top3)for(u=[u],o=3;o1&&T(t,l,u),l=x(u,t,t,n.__k,null,t.__e,l),\"function\"==typeof n.type&&(n.__d=l)))}function $(l,u,i,t,o,r,f,e,c){var a,v,h,y,_,w,k,g,b,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=n.__b)&&a(u);try{n:if(\"function\"==typeof P){if(g=u.props,b=(a=P.contextType)&&t[a.__c],x=a?b?b.props.value:a.__:t,i.__c?k=(v=u.__c=i.__c).__=v.__E:(\"prototype\"in P&&P.prototype.render?u.__c=v=new P(g,x):(u.__c=v=new d(g,x),v.constructor=P,v.render=M),b&&b.sub(v),v.props=g,v.state||(v.state={}),v.context=x,v.__n=t,h=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=P.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=s({},v.__s)),s(v.__s,P.getDerivedStateFromProps(g,v.__s))),y=v.props,_=v.state,h)null==P.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else{if(null==P.getDerivedStateFromProps&&g!==y&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(g,x),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(g,v.__s,x)||u.__v===i.__v){v.props=g,v.state=v.__s,u.__v!==i.__v&&(v.__d=!1),v.__v=u,u.__e=i.__e,u.__k=i.__k,v.__h.length&&f.push(v),T(u,e,l);break n}null!=v.componentWillUpdate&&v.componentWillUpdate(g,v.__s,x),null!=v.componentDidUpdate&&v.__h.push(function(){v.componentDidUpdate(y,_,w)})}v.context=x,v.props=g,v.state=v.__s,(a=n.__r)&&a(u),v.__d=!1,v.__v=u,v.__P=l,a=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(t=s(s({},t),v.getChildContext())),h||null==v.getSnapshotBeforeUpdate||(w=v.getSnapshotBeforeUpdate(y,_)),A=null!=a&&a.type==p&&null==a.key?a.props.children:a,m(l,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),v.base=u.__e,u.__h=null,v.__h.length&&f.push(v),k&&(v.__E=v.__=null),v.__e=!1}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=H(i.__e,u,i,t,o,r,f,c);(a=n.diffed)&&a(u)}catch(l){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),n.__e(l,u,i)}return u.__e}function j(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u)})}catch(l){n.__e(l,u.__v)}})}function H(n,l,u,i,t,o,r,c){var s,a,v,h,y,p=u.props,d=l.props;if(t=\"svg\"===l.type||t,null!=o)for(s=0;s3)for(u=[u],o=3;o3;)e.pop()();if(e[1]=i.__.length&&i.__.push({}),i.__[t]}function l(n){return o=1,p(w,n)}function p(n,r,o){var i=m(t++,2);return i.t=n,i.__c||(i.__=[o?o(r):w(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=u),i.__}function y(r,o){var i=m(t++,3);!n.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i))}function h(r,o){var i=m(t++,4);!n.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__h.push(i))}function s(n){return o=5,d(function(){return{current:n}},[])}function _(n,t,u){o=6,h(function(){\"function\"==typeof n?n(t()):n&&(n.current=t())},null==u?u:u.concat(n))}function d(n,u){var r=m(t++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A(n,t){return o=8,d(function(){return n},t)}function F(n){var r=u.context[n.__c],o=m(t++,9);return o.__c=n,r?(null==o.__&&(o.__=!0,r.sub(u)),r.props.value):n.__}function T(t,u){n.useDebugValue&&n.useDebugValue(u?u(t):t)}function q(n){var r=m(t++,10),o=l();return r.__=n,u.componentDidCatch||(u.componentDidCatch=function(n){r.__&&r.__(n),o[1](n)}),[o[0],function(){o[1](void 0)}]}function x(){i.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j),t.__H.__h=[]}catch(u){t.__H.__h=[],n.__e(u,t.__v)}}),i=[]}n.__b=function(n){u=null,c&&c(n)},n.__r=function(n){f&&f(n),t=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j),r.__h=[])},n.diffed=function(t){e&&e(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i.push(o)&&r===n.requestAnimationFrame||((r=n.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u))})(x)),u=void 0},n.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return!n.__||j(n)})}catch(r){u.some(function(n){n.__h&&(n.__h=[])}),u=[],n.__e(r,t.__v)}}),a&&a(t,u)},n.unmount=function(t){v&&v(t);var u=t.__c;if(u&&u.__H)try{u.__H.__.forEach(g)}catch(t){n.__e(t,u.__v)}};var b=\"function\"==typeof requestAnimationFrame;function g(n){var t=u;\"function\"==typeof n.__c&&n.__c(),u=t}function j(n){var t=u;n.__c=n.__(),u=t}function k(n,t){return!n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w(n,t){return\"function\"==typeof t?t(n):t}export{l as useState,p as useReducer,y as useEffect,h as useLayoutEffect,s as useRef,_ as useImperativeHandle,d as useMemo,A as useCallback,F as useContext,T as useDebugValue,q as useErrorBoundary};\n//# sourceMappingURL=hooks.module.js.map\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"lightAction\":\"_1iK\",\"fadeInScale\":\"_3Zi\",\"actions\":\"_1le\",\"show\":\"_3X7\",\"moreInfo\":\"Shc\",\"actionIcon\":\"_2tt\",\"deleteIcon\":\"_1L7\",\"pinIcon\":\"kRL\",\"pin\":\"h6Q\",\"moreIcon\":\"_3Ls\",\"dragIcon\":\"_1yB\",\"colors\":\"_35Z\",\"colorOptions\":\"_1Zr\",\"colorItem\":\"BLR\",\"active\":\"_1dQ\",\"currentColor\":\"_37R\",\"note\":\"_3vW\",\"showNote\":\"_3I5\"};","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","/**\n * Created by rowthan on 2017/11/19.\n */\nvar whatsElement= require('./src/whatsElementPure')\nmodule.exports = whatsElement.default;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","var _typeof = require(\"@babel/runtime/helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","/*\n * JavaScript MD5\n * https://github.com/blueimp/JavaScript-MD5\n *\n * Copyright 2011, Sebastian Tschan\n * https://blueimp.net\n *\n * Licensed under the MIT license:\n * https://opensource.org/licenses/MIT\n *\n * Based on\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\n\n/* global define */\n\n/* eslint-disable strict */\n\n;(function ($) {\n 'use strict'\n\n /**\n * Add integers, wrapping at 2^32.\n * This uses 16-bit operations internally to work around bugs in interpreters.\n *\n * @param {number} x First integer\n * @param {number} y Second integer\n * @returns {number} Sum\n */\n function safeAdd(x, y) {\n var lsw = (x & 0xffff) + (y & 0xffff)\n var msw = (x >> 16) + (y >> 16) + (lsw >> 16)\n return (msw << 16) | (lsw & 0xffff)\n }\n\n /**\n * Bitwise rotate a 32-bit number to the left.\n *\n * @param {number} num 32-bit number\n * @param {number} cnt Rotation count\n * @returns {number} Rotated number\n */\n function bitRotateLeft(num, cnt) {\n return (num << cnt) | (num >>> (32 - cnt))\n }\n\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} q q\n * @param {number} a a\n * @param {number} b b\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5cmn(q, a, b, x, s, t) {\n return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5ff(a, b, c, d, x, s, t) {\n return md5cmn((b & c) | (~b & d), a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5gg(a, b, c, d, x, s, t) {\n return md5cmn((b & d) | (c & ~d), a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5hh(a, b, c, d, x, s, t) {\n return md5cmn(b ^ c ^ d, a, b, x, s, t)\n }\n /**\n * Basic operation the algorithm uses.\n *\n * @param {number} a a\n * @param {number} b b\n * @param {number} c c\n * @param {number} d d\n * @param {number} x x\n * @param {number} s s\n * @param {number} t t\n * @returns {number} Result\n */\n function md5ii(a, b, c, d, x, s, t) {\n return md5cmn(c ^ (b | ~d), a, b, x, s, t)\n }\n\n /**\n * Calculate the MD5 of an array of little-endian words, and a bit length.\n *\n * @param {Array} x Array of little-endian words\n * @param {number} len Bit length\n * @returns {Array} MD5 Array\n */\n function binlMD5(x, len) {\n /* append padding */\n x[len >> 5] |= 0x80 << len % 32\n x[(((len + 64) >>> 9) << 4) + 14] = len\n\n var i\n var olda\n var oldb\n var oldc\n var oldd\n var a = 1732584193\n var b = -271733879\n var c = -1732584194\n var d = 271733878\n\n for (i = 0; i < x.length; i += 16) {\n olda = a\n oldb = b\n oldc = c\n oldd = d\n\n a = md5ff(a, b, c, d, x[i], 7, -680876936)\n d = md5ff(d, a, b, c, x[i + 1], 12, -389564586)\n c = md5ff(c, d, a, b, x[i + 2], 17, 606105819)\n b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330)\n a = md5ff(a, b, c, d, x[i + 4], 7, -176418897)\n d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426)\n c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341)\n b = md5ff(b, c, d, a, x[i + 7], 22, -45705983)\n a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416)\n d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417)\n c = md5ff(c, d, a, b, x[i + 10], 17, -42063)\n b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162)\n a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682)\n d = md5ff(d, a, b, c, x[i + 13], 12, -40341101)\n c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290)\n b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329)\n\n a = md5gg(a, b, c, d, x[i + 1], 5, -165796510)\n d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632)\n c = md5gg(c, d, a, b, x[i + 11], 14, 643717713)\n b = md5gg(b, c, d, a, x[i], 20, -373897302)\n a = md5gg(a, b, c, d, x[i + 5], 5, -701558691)\n d = md5gg(d, a, b, c, x[i + 10], 9, 38016083)\n c = md5gg(c, d, a, b, x[i + 15], 14, -660478335)\n b = md5gg(b, c, d, a, x[i + 4], 20, -405537848)\n a = md5gg(a, b, c, d, x[i + 9], 5, 568446438)\n d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690)\n c = md5gg(c, d, a, b, x[i + 3], 14, -187363961)\n b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501)\n a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467)\n d = md5gg(d, a, b, c, x[i + 2], 9, -51403784)\n c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473)\n b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734)\n\n a = md5hh(a, b, c, d, x[i + 5], 4, -378558)\n d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463)\n c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562)\n b = md5hh(b, c, d, a, x[i + 14], 23, -35309556)\n a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060)\n d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353)\n c = md5hh(c, d, a, b, x[i + 7], 16, -155497632)\n b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640)\n a = md5hh(a, b, c, d, x[i + 13], 4, 681279174)\n d = md5hh(d, a, b, c, x[i], 11, -358537222)\n c = md5hh(c, d, a, b, x[i + 3], 16, -722521979)\n b = md5hh(b, c, d, a, x[i + 6], 23, 76029189)\n a = md5hh(a, b, c, d, x[i + 9], 4, -640364487)\n d = md5hh(d, a, b, c, x[i + 12], 11, -421815835)\n c = md5hh(c, d, a, b, x[i + 15], 16, 530742520)\n b = md5hh(b, c, d, a, x[i + 2], 23, -995338651)\n\n a = md5ii(a, b, c, d, x[i], 6, -198630844)\n d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415)\n c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905)\n b = md5ii(b, c, d, a, x[i + 5], 21, -57434055)\n a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571)\n d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606)\n c = md5ii(c, d, a, b, x[i + 10], 15, -1051523)\n b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799)\n a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359)\n d = md5ii(d, a, b, c, x[i + 15], 10, -30611744)\n c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380)\n b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649)\n a = md5ii(a, b, c, d, x[i + 4], 6, -145523070)\n d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379)\n c = md5ii(c, d, a, b, x[i + 2], 15, 718787259)\n b = md5ii(b, c, d, a, x[i + 9], 21, -343485551)\n\n a = safeAdd(a, olda)\n b = safeAdd(b, oldb)\n c = safeAdd(c, oldc)\n d = safeAdd(d, oldd)\n }\n return [a, b, c, d]\n }\n\n /**\n * Convert an array of little-endian words to a string\n *\n * @param {Array} input MD5 Array\n * @returns {string} MD5 string\n */\n function binl2rstr(input) {\n var i\n var output = ''\n var length32 = input.length * 32\n for (i = 0; i < length32; i += 8) {\n output += String.fromCharCode((input[i >> 5] >>> i % 32) & 0xff)\n }\n return output\n }\n\n /**\n * Convert a raw string to an array of little-endian words\n * Characters >255 have their high-byte silently ignored.\n *\n * @param {string} input Raw input string\n * @returns {Array} Array of little-endian words\n */\n function rstr2binl(input) {\n var i\n var output = []\n output[(input.length >> 2) - 1] = undefined\n for (i = 0; i < output.length; i += 1) {\n output[i] = 0\n }\n var length8 = input.length * 8\n for (i = 0; i < length8; i += 8) {\n output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32\n }\n return output\n }\n\n /**\n * Calculate the MD5 of a raw string\n *\n * @param {string} s Input string\n * @returns {string} Raw MD5 string\n */\n function rstrMD5(s) {\n return binl2rstr(binlMD5(rstr2binl(s), s.length * 8))\n }\n\n /**\n * Calculates the HMAC-MD5 of a key and some data (raw strings)\n *\n * @param {string} key HMAC key\n * @param {string} data Raw input string\n * @returns {string} Raw MD5 string\n */\n function rstrHMACMD5(key, data) {\n var i\n var bkey = rstr2binl(key)\n var ipad = []\n var opad = []\n var hash\n ipad[15] = opad[15] = undefined\n if (bkey.length > 16) {\n bkey = binlMD5(bkey, key.length * 8)\n }\n for (i = 0; i < 16; i += 1) {\n ipad[i] = bkey[i] ^ 0x36363636\n opad[i] = bkey[i] ^ 0x5c5c5c5c\n }\n hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8)\n return binl2rstr(binlMD5(opad.concat(hash), 512 + 128))\n }\n\n /**\n * Convert a raw string to a hex string\n *\n * @param {string} input Raw input string\n * @returns {string} Hex encoded string\n */\n function rstr2hex(input) {\n var hexTab = '0123456789abcdef'\n var output = ''\n var x\n var i\n for (i = 0; i < input.length; i += 1) {\n x = input.charCodeAt(i)\n output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f)\n }\n return output\n }\n\n /**\n * Encode a string as UTF-8\n *\n * @param {string} input Input string\n * @returns {string} UTF8 string\n */\n function str2rstrUTF8(input) {\n return unescape(encodeURIComponent(input))\n }\n\n /**\n * Encodes input string as raw MD5 string\n *\n * @param {string} s Input string\n * @returns {string} Raw MD5 string\n */\n function rawMD5(s) {\n return rstrMD5(str2rstrUTF8(s))\n }\n /**\n * Encodes input string as Hex encoded string\n *\n * @param {string} s Input string\n * @returns {string} Hex encoded string\n */\n function hexMD5(s) {\n return rstr2hex(rawMD5(s))\n }\n /**\n * Calculates the raw HMAC-MD5 for the given key and data\n *\n * @param {string} k HMAC key\n * @param {string} d Input string\n * @returns {string} Raw MD5 string\n */\n function rawHMACMD5(k, d) {\n return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d))\n }\n /**\n * Calculates the Hex encoded HMAC-MD5 for the given key and data\n *\n * @param {string} k HMAC key\n * @param {string} d Input string\n * @returns {string} Raw MD5 string\n */\n function hexHMACMD5(k, d) {\n return rstr2hex(rawHMACMD5(k, d))\n }\n\n /**\n * Calculates MD5 value for a given string.\n * If a key is provided, calculates the HMAC-MD5 value.\n * Returns a Hex encoded string unless the raw argument is given.\n *\n * @param {string} string Input string\n * @param {string} [key] HMAC key\n * @param {boolean} [raw] Raw output switch\n * @returns {string} MD5 output\n */\n function md5(string, key, raw) {\n if (!key) {\n if (!raw) {\n return hexMD5(string)\n }\n return rawMD5(string)\n }\n if (!raw) {\n return hexHMACMD5(key, string)\n }\n return rawHMACMD5(key, string)\n }\n\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return md5\n })\n } else if (typeof module === 'object' && module.exports) {\n module.exports = md5\n } else {\n $.md5 = md5\n }\n})(this)\n","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","module.exports = require(\"regenerator-runtime\");\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","/*!\n * html2canvas 1.0.0-rc.7 \n * Copyright (c) 2020 Niklas von Hertzen \n * Released under MIT License\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.html2canvas = factory());\n}(this, function () { 'use strict';\n\n /*! *****************************************************************************\r\n Copyright (c) Microsoft Corporation. All rights reserved.\r\n Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\n this file except in compliance with the License. You may obtain a copy of the\r\n License at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\n WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\n MERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\n See the Apache Version 2.0 License for specific language governing permissions\r\n and limitations under the License.\r\n ***************************************************************************** */\r\n /* global Reflect, Promise */\r\n\r\n var extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n\r\n function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n }\r\n\r\n var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n };\r\n\r\n function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n }\r\n\r\n function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n }\n\n var Bounds = /** @class */ (function () {\r\n function Bounds(x, y, w, h) {\r\n this.left = x;\r\n this.top = y;\r\n this.width = w;\r\n this.height = h;\r\n }\r\n Bounds.prototype.add = function (x, y, w, h) {\r\n return new Bounds(this.left + x, this.top + y, this.width + w, this.height + h);\r\n };\r\n Bounds.fromClientRect = function (clientRect) {\r\n return new Bounds(clientRect.left, clientRect.top, clientRect.width, clientRect.height);\r\n };\r\n return Bounds;\r\n }());\r\n var parseBounds = function (node) {\r\n return Bounds.fromClientRect(node.getBoundingClientRect());\r\n };\r\n var parseDocumentSize = function (document) {\r\n var body = document.body;\r\n var documentElement = document.documentElement;\r\n if (!body || !documentElement) {\r\n throw new Error(\"Unable to get document size\");\r\n }\r\n var width = Math.max(Math.max(body.scrollWidth, documentElement.scrollWidth), Math.max(body.offsetWidth, documentElement.offsetWidth), Math.max(body.clientWidth, documentElement.clientWidth));\r\n var height = Math.max(Math.max(body.scrollHeight, documentElement.scrollHeight), Math.max(body.offsetHeight, documentElement.offsetHeight), Math.max(body.clientHeight, documentElement.clientHeight));\r\n return new Bounds(0, 0, width, height);\r\n };\n\n /*\n * css-line-break 1.1.1 \n * Copyright (c) 2019 Niklas von Hertzen \n * Released under MIT License\n */\n var toCodePoints = function (str) {\r\n var codePoints = [];\r\n var i = 0;\r\n var length = str.length;\r\n while (i < length) {\r\n var value = str.charCodeAt(i++);\r\n if (value >= 0xd800 && value <= 0xdbff && i < length) {\r\n var extra = str.charCodeAt(i++);\r\n if ((extra & 0xfc00) === 0xdc00) {\r\n codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);\r\n }\r\n else {\r\n codePoints.push(value);\r\n i--;\r\n }\r\n }\r\n else {\r\n codePoints.push(value);\r\n }\r\n }\r\n return codePoints;\r\n };\r\n var fromCodePoint = function () {\r\n var codePoints = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n codePoints[_i] = arguments[_i];\r\n }\r\n if (String.fromCodePoint) {\r\n return String.fromCodePoint.apply(String, codePoints);\r\n }\r\n var length = codePoints.length;\r\n if (!length) {\r\n return '';\r\n }\r\n var codeUnits = [];\r\n var index = -1;\r\n var result = '';\r\n while (++index < length) {\r\n var codePoint = codePoints[index];\r\n if (codePoint <= 0xffff) {\r\n codeUnits.push(codePoint);\r\n }\r\n else {\r\n codePoint -= 0x10000;\r\n codeUnits.push((codePoint >> 10) + 0xd800, codePoint % 0x400 + 0xdc00);\r\n }\r\n if (index + 1 === length || codeUnits.length > 0x4000) {\r\n result += String.fromCharCode.apply(String, codeUnits);\r\n codeUnits.length = 0;\r\n }\r\n }\r\n return result;\r\n };\r\n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\r\n // Use a lookup table to find the index.\r\n var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);\r\n for (var i = 0; i < chars.length; i++) {\r\n lookup[chars.charCodeAt(i)] = i;\r\n }\r\n var decode = function (base64) {\r\n var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;\r\n if (base64[base64.length - 1] === '=') {\r\n bufferLength--;\r\n if (base64[base64.length - 2] === '=') {\r\n bufferLength--;\r\n }\r\n }\r\n var buffer = typeof ArrayBuffer !== 'undefined' &&\r\n typeof Uint8Array !== 'undefined' &&\r\n typeof Uint8Array.prototype.slice !== 'undefined'\r\n ? new ArrayBuffer(bufferLength)\r\n : new Array(bufferLength);\r\n var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);\r\n for (i = 0; i < len; i += 4) {\r\n encoded1 = lookup[base64.charCodeAt(i)];\r\n encoded2 = lookup[base64.charCodeAt(i + 1)];\r\n encoded3 = lookup[base64.charCodeAt(i + 2)];\r\n encoded4 = lookup[base64.charCodeAt(i + 3)];\r\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\r\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\r\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\r\n }\r\n return buffer;\r\n };\r\n var polyUint16Array = function (buffer) {\r\n var length = buffer.length;\r\n var bytes = [];\r\n for (var i = 0; i < length; i += 2) {\r\n bytes.push((buffer[i + 1] << 8) | buffer[i]);\r\n }\r\n return bytes;\r\n };\r\n var polyUint32Array = function (buffer) {\r\n var length = buffer.length;\r\n var bytes = [];\r\n for (var i = 0; i < length; i += 4) {\r\n bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]);\r\n }\r\n return bytes;\r\n };\n\n /** Shift size for getting the index-2 table offset. */\r\n var UTRIE2_SHIFT_2 = 5;\r\n /** Shift size for getting the index-1 table offset. */\r\n var UTRIE2_SHIFT_1 = 6 + 5;\r\n /**\r\n * Shift size for shifting left the index array values.\r\n * Increases possible data size with 16-bit index values at the cost\r\n * of compactability.\r\n * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.\r\n */\r\n var UTRIE2_INDEX_SHIFT = 2;\r\n /**\r\n * Difference between the two shift sizes,\r\n * for getting an index-1 offset from an index-2 offset. 6=11-5\r\n */\r\n var UTRIE2_SHIFT_1_2 = UTRIE2_SHIFT_1 - UTRIE2_SHIFT_2;\r\n /**\r\n * The part of the index-2 table for U+D800..U+DBFF stores values for\r\n * lead surrogate code _units_ not code _points_.\r\n * Values for lead surrogate code _points_ are indexed with this portion of the table.\r\n * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)\r\n */\r\n var UTRIE2_LSCP_INDEX_2_OFFSET = 0x10000 >> UTRIE2_SHIFT_2;\r\n /** Number of entries in a data block. 32=0x20 */\r\n var UTRIE2_DATA_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_2;\r\n /** Mask for getting the lower bits for the in-data-block offset. */\r\n var UTRIE2_DATA_MASK = UTRIE2_DATA_BLOCK_LENGTH - 1;\r\n var UTRIE2_LSCP_INDEX_2_LENGTH = 0x400 >> UTRIE2_SHIFT_2;\r\n /** Count the lengths of both BMP pieces. 2080=0x820 */\r\n var UTRIE2_INDEX_2_BMP_LENGTH = UTRIE2_LSCP_INDEX_2_OFFSET + UTRIE2_LSCP_INDEX_2_LENGTH;\r\n /**\r\n * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.\r\n * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.\r\n */\r\n var UTRIE2_UTF8_2B_INDEX_2_OFFSET = UTRIE2_INDEX_2_BMP_LENGTH;\r\n var UTRIE2_UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */\r\n /**\r\n * The index-1 table, only used for supplementary code points, at offset 2112=0x840.\r\n * Variable length, for code points up to highStart, where the last single-value range starts.\r\n * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.\r\n * (For 0x100000 supplementary code points U+10000..U+10ffff.)\r\n *\r\n * The part of the index-2 table for supplementary code points starts\r\n * after this index-1 table.\r\n *\r\n * Both the index-1 table and the following part of the index-2 table\r\n * are omitted completely if there is only BMP data.\r\n */\r\n var UTRIE2_INDEX_1_OFFSET = UTRIE2_UTF8_2B_INDEX_2_OFFSET + UTRIE2_UTF8_2B_INDEX_2_LENGTH;\r\n /**\r\n * Number of index-1 entries for the BMP. 32=0x20\r\n * This part of the index-1 table is omitted from the serialized form.\r\n */\r\n var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> UTRIE2_SHIFT_1;\r\n /** Number of entries in an index-2 block. 64=0x40 */\r\n var UTRIE2_INDEX_2_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_1_2;\r\n /** Mask for getting the lower bits for the in-index-2-block offset. */\r\n var UTRIE2_INDEX_2_MASK = UTRIE2_INDEX_2_BLOCK_LENGTH - 1;\r\n var slice16 = function (view, start, end) {\r\n if (view.slice) {\r\n return view.slice(start, end);\r\n }\r\n return new Uint16Array(Array.prototype.slice.call(view, start, end));\r\n };\r\n var slice32 = function (view, start, end) {\r\n if (view.slice) {\r\n return view.slice(start, end);\r\n }\r\n return new Uint32Array(Array.prototype.slice.call(view, start, end));\r\n };\r\n var createTrieFromBase64 = function (base64) {\r\n var buffer = decode(base64);\r\n var view32 = Array.isArray(buffer) ? polyUint32Array(buffer) : new Uint32Array(buffer);\r\n var view16 = Array.isArray(buffer) ? polyUint16Array(buffer) : new Uint16Array(buffer);\r\n var headerLength = 24;\r\n var index = slice16(view16, headerLength / 2, view32[4] / 2);\r\n var data = view32[5] === 2\r\n ? slice16(view16, (headerLength + view32[4]) / 2)\r\n : slice32(view32, Math.ceil((headerLength + view32[4]) / 4));\r\n return new Trie(view32[0], view32[1], view32[2], view32[3], index, data);\r\n };\r\n var Trie = /** @class */ (function () {\r\n function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {\r\n this.initialValue = initialValue;\r\n this.errorValue = errorValue;\r\n this.highStart = highStart;\r\n this.highValueIndex = highValueIndex;\r\n this.index = index;\r\n this.data = data;\r\n }\r\n /**\r\n * Get the value for a code point as stored in the Trie.\r\n *\r\n * @param codePoint the code point\r\n * @return the value\r\n */\r\n Trie.prototype.get = function (codePoint) {\r\n var ix;\r\n if (codePoint >= 0) {\r\n if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) {\r\n // Ordinary BMP code point, excluding leading surrogates.\r\n // BMP uses a single level lookup. BMP index starts at offset 0 in the Trie2 index.\r\n // 16 bit data is stored in the index array itself.\r\n ix = this.index[codePoint >> UTRIE2_SHIFT_2];\r\n ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);\r\n return this.data[ix];\r\n }\r\n if (codePoint <= 0xffff) {\r\n // Lead Surrogate Code Point. A Separate index section is stored for\r\n // lead surrogate code units and code points.\r\n // The main index has the code unit data.\r\n // For this function, we need the code point data.\r\n // Note: this expression could be refactored for slightly improved efficiency, but\r\n // surrogate code points will be so rare in practice that it's not worth it.\r\n ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)];\r\n ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);\r\n return this.data[ix];\r\n }\r\n if (codePoint < this.highStart) {\r\n // Supplemental code point, use two-level lookup.\r\n ix = UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH + (codePoint >> UTRIE2_SHIFT_1);\r\n ix = this.index[ix];\r\n ix += (codePoint >> UTRIE2_SHIFT_2) & UTRIE2_INDEX_2_MASK;\r\n ix = this.index[ix];\r\n ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);\r\n return this.data[ix];\r\n }\r\n if (codePoint <= 0x10ffff) {\r\n return this.data[this.highValueIndex];\r\n }\r\n }\r\n // Fall through. The code point is outside of the legal range of 0..0x10ffff.\r\n return this.errorValue;\r\n };\r\n return Trie;\r\n }());\n\n var base64 = 'KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA';\n\n /* @flow */\r\n var LETTER_NUMBER_MODIFIER = 50;\r\n // Non-tailorable Line Breaking Classes\r\n var BK = 1; // Cause a line break (after)\r\n var CR = 2; // Cause a line break (after), except between CR and LF\r\n var LF = 3; // Cause a line break (after)\r\n var CM = 4; // Prohibit a line break between the character and the preceding character\r\n var NL = 5; // Cause a line break (after)\r\n var WJ = 7; // Prohibit line breaks before and after\r\n var ZW = 8; // Provide a break opportunity\r\n var GL = 9; // Prohibit line breaks before and after\r\n var SP = 10; // Enable indirect line breaks\r\n var ZWJ = 11; // Prohibit line breaks within joiner sequences\r\n // Break Opportunities\r\n var B2 = 12; // Provide a line break opportunity before and after the character\r\n var BA = 13; // Generally provide a line break opportunity after the character\r\n var BB = 14; // Generally provide a line break opportunity before the character\r\n var HY = 15; // Provide a line break opportunity after the character, except in numeric context\r\n var CB = 16; // Provide a line break opportunity contingent on additional information\r\n // Characters Prohibiting Certain Breaks\r\n var CL = 17; // Prohibit line breaks before\r\n var CP = 18; // Prohibit line breaks before\r\n var EX = 19; // Prohibit line breaks before\r\n var IN = 20; // Allow only indirect line breaks between pairs\r\n var NS = 21; // Allow only indirect line breaks before\r\n var OP = 22; // Prohibit line breaks after\r\n var QU = 23; // Act like they are both opening and closing\r\n // Numeric Context\r\n var IS = 24; // Prevent breaks after any and before numeric\r\n var NU = 25; // Form numeric expressions for line breaking purposes\r\n var PO = 26; // Do not break following a numeric expression\r\n var PR = 27; // Do not break in front of a numeric expression\r\n var SY = 28; // Prevent a break before; and allow a break after\r\n // Other Characters\r\n var AI = 29; // Act like AL when the resolvedEAW is N; otherwise; act as ID\r\n var AL = 30; // Are alphabetic characters or symbols that are used with alphabetic characters\r\n var CJ = 31; // Treat as NS or ID for strict or normal breaking.\r\n var EB = 32; // Do not break from following Emoji Modifier\r\n var EM = 33; // Do not break from preceding Emoji Base\r\n var H2 = 34; // Form Korean syllable blocks\r\n var H3 = 35; // Form Korean syllable blocks\r\n var HL = 36; // Do not break around a following hyphen; otherwise act as Alphabetic\r\n var ID = 37; // Break before or after; except in some numeric context\r\n var JL = 38; // Form Korean syllable blocks\r\n var JV = 39; // Form Korean syllable blocks\r\n var JT = 40; // Form Korean syllable blocks\r\n var RI = 41; // Keep pairs together. For pairs; break before and after other classes\r\n var SA = 42; // Provide a line break opportunity contingent on additional, language-specific context analysis\r\n var XX = 43; // Have as yet unknown line breaking behavior or unassigned code positions\r\n var BREAK_MANDATORY = '!';\r\n var BREAK_NOT_ALLOWED = '×';\r\n var BREAK_ALLOWED = '÷';\r\n var UnicodeTrie = createTrieFromBase64(base64);\r\n var ALPHABETICS = [AL, HL];\r\n var HARD_LINE_BREAKS = [BK, CR, LF, NL];\r\n var SPACE = [SP, ZW];\r\n var PREFIX_POSTFIX = [PR, PO];\r\n var LINE_BREAKS = HARD_LINE_BREAKS.concat(SPACE);\r\n var KOREAN_SYLLABLE_BLOCK = [JL, JV, JT, H2, H3];\r\n var HYPHEN = [HY, BA];\r\n var codePointsToCharacterClasses = function (codePoints, lineBreak) {\r\n if (lineBreak === void 0) { lineBreak = 'strict'; }\r\n var types = [];\r\n var indicies = [];\r\n var categories = [];\r\n codePoints.forEach(function (codePoint, index) {\r\n var classType = UnicodeTrie.get(codePoint);\r\n if (classType > LETTER_NUMBER_MODIFIER) {\r\n categories.push(true);\r\n classType -= LETTER_NUMBER_MODIFIER;\r\n }\r\n else {\r\n categories.push(false);\r\n }\r\n if (['normal', 'auto', 'loose'].indexOf(lineBreak) !== -1) {\r\n // U+2010, – U+2013, 〜 U+301C, ゠ U+30A0\r\n if ([0x2010, 0x2013, 0x301c, 0x30a0].indexOf(codePoint) !== -1) {\r\n indicies.push(index);\r\n return types.push(CB);\r\n }\r\n }\r\n if (classType === CM || classType === ZWJ) {\r\n // LB10 Treat any remaining combining mark or ZWJ as AL.\r\n if (index === 0) {\r\n indicies.push(index);\r\n return types.push(AL);\r\n }\r\n // LB9 Do not break a combining character sequence; treat it as if it has the line breaking class of\r\n // the base character in all of the following rules. Treat ZWJ as if it were CM.\r\n var prev = types[index - 1];\r\n if (LINE_BREAKS.indexOf(prev) === -1) {\r\n indicies.push(indicies[index - 1]);\r\n return types.push(prev);\r\n }\r\n indicies.push(index);\r\n return types.push(AL);\r\n }\r\n indicies.push(index);\r\n if (classType === CJ) {\r\n return types.push(lineBreak === 'strict' ? NS : ID);\r\n }\r\n if (classType === SA) {\r\n return types.push(AL);\r\n }\r\n if (classType === AI) {\r\n return types.push(AL);\r\n }\r\n // For supplementary characters, a useful default is to treat characters in the range 10000..1FFFD as AL\r\n // and characters in the ranges 20000..2FFFD and 30000..3FFFD as ID, until the implementation can be revised\r\n // to take into account the actual line breaking properties for these characters.\r\n if (classType === XX) {\r\n if ((codePoint >= 0x20000 && codePoint <= 0x2fffd) || (codePoint >= 0x30000 && codePoint <= 0x3fffd)) {\r\n return types.push(ID);\r\n }\r\n else {\r\n return types.push(AL);\r\n }\r\n }\r\n types.push(classType);\r\n });\r\n return [indicies, types, categories];\r\n };\r\n var isAdjacentWithSpaceIgnored = function (a, b, currentIndex, classTypes) {\r\n var current = classTypes[currentIndex];\r\n if (Array.isArray(a) ? a.indexOf(current) !== -1 : a === current) {\r\n var i = currentIndex;\r\n while (i <= classTypes.length) {\r\n i++;\r\n var next = classTypes[i];\r\n if (next === b) {\r\n return true;\r\n }\r\n if (next !== SP) {\r\n break;\r\n }\r\n }\r\n }\r\n if (current === SP) {\r\n var i = currentIndex;\r\n while (i > 0) {\r\n i--;\r\n var prev = classTypes[i];\r\n if (Array.isArray(a) ? a.indexOf(prev) !== -1 : a === prev) {\r\n var n = currentIndex;\r\n while (n <= classTypes.length) {\r\n n++;\r\n var next = classTypes[n];\r\n if (next === b) {\r\n return true;\r\n }\r\n if (next !== SP) {\r\n break;\r\n }\r\n }\r\n }\r\n if (prev !== SP) {\r\n break;\r\n }\r\n }\r\n }\r\n return false;\r\n };\r\n var previousNonSpaceClassType = function (currentIndex, classTypes) {\r\n var i = currentIndex;\r\n while (i >= 0) {\r\n var type = classTypes[i];\r\n if (type === SP) {\r\n i--;\r\n }\r\n else {\r\n return type;\r\n }\r\n }\r\n return 0;\r\n };\r\n var _lineBreakAtIndex = function (codePoints, classTypes, indicies, index, forbiddenBreaks) {\r\n if (indicies[index] === 0) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n var currentIndex = index - 1;\r\n if (Array.isArray(forbiddenBreaks) && forbiddenBreaks[currentIndex] === true) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n var beforeIndex = currentIndex - 1;\r\n var afterIndex = currentIndex + 1;\r\n var current = classTypes[currentIndex];\r\n // LB4 Always break after hard line breaks.\r\n // LB5 Treat CR followed by LF, as well as CR, LF, and NL as hard line breaks.\r\n var before = beforeIndex >= 0 ? classTypes[beforeIndex] : 0;\r\n var next = classTypes[afterIndex];\r\n if (current === CR && next === LF) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n if (HARD_LINE_BREAKS.indexOf(current) !== -1) {\r\n return BREAK_MANDATORY;\r\n }\r\n // LB6 Do not break before hard line breaks.\r\n if (HARD_LINE_BREAKS.indexOf(next) !== -1) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB7 Do not break before spaces or zero width space.\r\n if (SPACE.indexOf(next) !== -1) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB8 Break before any character following a zero-width space, even if one or more spaces intervene.\r\n if (previousNonSpaceClassType(currentIndex, classTypes) === ZW) {\r\n return BREAK_ALLOWED;\r\n }\r\n // LB8a Do not break between a zero width joiner and an ideograph, emoji base or emoji modifier.\r\n if (UnicodeTrie.get(codePoints[currentIndex]) === ZWJ && (next === ID || next === EB || next === EM)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB11 Do not break before or after Word joiner and related characters.\r\n if (current === WJ || next === WJ) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB12 Do not break after NBSP and related characters.\r\n if (current === GL) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB12a Do not break before NBSP and related characters, except after spaces and hyphens.\r\n if ([SP, BA, HY].indexOf(current) === -1 && next === GL) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB13 Do not break before ‘]’ or ‘!’ or ‘;’ or ‘/’, even after spaces.\r\n if ([CL, CP, EX, IS, SY].indexOf(next) !== -1) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB14 Do not break after ‘[’, even after spaces.\r\n if (previousNonSpaceClassType(currentIndex, classTypes) === OP) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB15 Do not break within ‘”[’, even with intervening spaces.\r\n if (isAdjacentWithSpaceIgnored(QU, OP, currentIndex, classTypes)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB16 Do not break between closing punctuation and a nonstarter (lb=NS), even with intervening spaces.\r\n if (isAdjacentWithSpaceIgnored([CL, CP], NS, currentIndex, classTypes)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB17 Do not break within ‘——’, even with intervening spaces.\r\n if (isAdjacentWithSpaceIgnored(B2, B2, currentIndex, classTypes)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB18 Break after spaces.\r\n if (current === SP) {\r\n return BREAK_ALLOWED;\r\n }\r\n // LB19 Do not break before or after quotation marks, such as ‘ ” ’.\r\n if (current === QU || next === QU) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB20 Break before and after unresolved CB.\r\n if (next === CB || current === CB) {\r\n return BREAK_ALLOWED;\r\n }\r\n // LB21 Do not break before hyphen-minus, other hyphens, fixed-width spaces, small kana, and other non-starters, or after acute accents.\r\n if ([BA, HY, NS].indexOf(next) !== -1 || current === BB) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB21a Don't break after Hebrew + Hyphen.\r\n if (before === HL && HYPHEN.indexOf(current) !== -1) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB21b Don’t break between Solidus and Hebrew letters.\r\n if (current === SY && next === HL) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB22 Do not break between two ellipses, or between letters, numbers or exclamations and ellipsis.\r\n if (next === IN && ALPHABETICS.concat(IN, EX, NU, ID, EB, EM).indexOf(current) !== -1) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB23 Do not break between digits and letters.\r\n if ((ALPHABETICS.indexOf(next) !== -1 && current === NU) || (ALPHABETICS.indexOf(current) !== -1 && next === NU)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB23a Do not break between numeric prefixes and ideographs, or between ideographs and numeric postfixes.\r\n if ((current === PR && [ID, EB, EM].indexOf(next) !== -1) ||\r\n ([ID, EB, EM].indexOf(current) !== -1 && next === PO)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB24 Do not break between numeric prefix/postfix and letters, or between letters and prefix/postfix.\r\n if ((ALPHABETICS.indexOf(current) !== -1 && PREFIX_POSTFIX.indexOf(next) !== -1) ||\r\n (PREFIX_POSTFIX.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB25 Do not break between the following pairs of classes relevant to numbers:\r\n if (\r\n // (PR | PO) × ( OP | HY )? NU\r\n ([PR, PO].indexOf(current) !== -1 &&\r\n (next === NU || ([OP, HY].indexOf(next) !== -1 && classTypes[afterIndex + 1] === NU))) ||\r\n // ( OP | HY ) × NU\r\n ([OP, HY].indexOf(current) !== -1 && next === NU) ||\r\n // NU ×\t(NU | SY | IS)\r\n (current === NU && [NU, SY, IS].indexOf(next) !== -1)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // NU (NU | SY | IS)* × (NU | SY | IS | CL | CP)\r\n if ([NU, SY, IS, CL, CP].indexOf(next) !== -1) {\r\n var prevIndex = currentIndex;\r\n while (prevIndex >= 0) {\r\n var type = classTypes[prevIndex];\r\n if (type === NU) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n else if ([SY, IS].indexOf(type) !== -1) {\r\n prevIndex--;\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n }\r\n // NU (NU | SY | IS)* (CL | CP)? × (PO | PR))\r\n if ([PR, PO].indexOf(next) !== -1) {\r\n var prevIndex = [CL, CP].indexOf(current) !== -1 ? beforeIndex : currentIndex;\r\n while (prevIndex >= 0) {\r\n var type = classTypes[prevIndex];\r\n if (type === NU) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n else if ([SY, IS].indexOf(type) !== -1) {\r\n prevIndex--;\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n }\r\n // LB26 Do not break a Korean syllable.\r\n if ((JL === current && [JL, JV, H2, H3].indexOf(next) !== -1) ||\r\n ([JV, H2].indexOf(current) !== -1 && [JV, JT].indexOf(next) !== -1) ||\r\n ([JT, H3].indexOf(current) !== -1 && next === JT)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB27 Treat a Korean Syllable Block the same as ID.\r\n if ((KOREAN_SYLLABLE_BLOCK.indexOf(current) !== -1 && [IN, PO].indexOf(next) !== -1) ||\r\n (KOREAN_SYLLABLE_BLOCK.indexOf(next) !== -1 && current === PR)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB28 Do not break between alphabetics (“at”).\r\n if (ALPHABETICS.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB29 Do not break between numeric punctuation and alphabetics (“e.g.”).\r\n if (current === IS && ALPHABETICS.indexOf(next) !== -1) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB30 Do not break between letters, numbers, or ordinary symbols and opening or closing parentheses.\r\n if ((ALPHABETICS.concat(NU).indexOf(current) !== -1 && next === OP) ||\r\n (ALPHABETICS.concat(NU).indexOf(next) !== -1 && current === CP)) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n // LB30a Break between two regional indicator symbols if and only if there are an even number of regional\r\n // indicators preceding the position of the break.\r\n if (current === RI && next === RI) {\r\n var i = indicies[currentIndex];\r\n var count = 1;\r\n while (i > 0) {\r\n i--;\r\n if (classTypes[i] === RI) {\r\n count++;\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n if (count % 2 !== 0) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n }\r\n // LB30b Do not break between an emoji base and an emoji modifier.\r\n if (current === EB && next === EM) {\r\n return BREAK_NOT_ALLOWED;\r\n }\r\n return BREAK_ALLOWED;\r\n };\r\n var cssFormattedClasses = function (codePoints, options) {\r\n if (!options) {\r\n options = { lineBreak: 'normal', wordBreak: 'normal' };\r\n }\r\n var _a = codePointsToCharacterClasses(codePoints, options.lineBreak), indicies = _a[0], classTypes = _a[1], isLetterNumber = _a[2];\r\n if (options.wordBreak === 'break-all' || options.wordBreak === 'break-word') {\r\n classTypes = classTypes.map(function (type) { return ([NU, AL, SA].indexOf(type) !== -1 ? ID : type); });\r\n }\r\n var forbiddenBreakpoints = options.wordBreak === 'keep-all'\r\n ? isLetterNumber.map(function (letterNumber, i) {\r\n return letterNumber && codePoints[i] >= 0x4e00 && codePoints[i] <= 0x9fff;\r\n })\r\n : undefined;\r\n return [indicies, classTypes, forbiddenBreakpoints];\r\n };\r\n var Break = /** @class */ (function () {\r\n function Break(codePoints, lineBreak, start, end) {\r\n this.codePoints = codePoints;\r\n this.required = lineBreak === BREAK_MANDATORY;\r\n this.start = start;\r\n this.end = end;\r\n }\r\n Break.prototype.slice = function () {\r\n return fromCodePoint.apply(void 0, this.codePoints.slice(this.start, this.end));\r\n };\r\n return Break;\r\n }());\r\n var LineBreaker = function (str, options) {\r\n var codePoints = toCodePoints(str);\r\n var _a = cssFormattedClasses(codePoints, options), indicies = _a[0], classTypes = _a[1], forbiddenBreakpoints = _a[2];\r\n var length = codePoints.length;\r\n var lastEnd = 0;\r\n var nextIndex = 0;\r\n return {\r\n next: function () {\r\n if (nextIndex >= length) {\r\n return { done: true, value: null };\r\n }\r\n var lineBreak = BREAK_NOT_ALLOWED;\r\n while (nextIndex < length &&\r\n (lineBreak = _lineBreakAtIndex(codePoints, classTypes, indicies, ++nextIndex, forbiddenBreakpoints)) ===\r\n BREAK_NOT_ALLOWED) { }\r\n if (lineBreak !== BREAK_NOT_ALLOWED || nextIndex === length) {\r\n var value = new Break(codePoints, lineBreak, lastEnd, nextIndex);\r\n lastEnd = nextIndex;\r\n return { value: value, done: false };\r\n }\r\n return { done: true, value: null };\r\n },\r\n };\r\n };\n\n // https://www.w3.org/TR/css-syntax-3\r\n var TokenType;\r\n (function (TokenType) {\r\n TokenType[TokenType[\"STRING_TOKEN\"] = 0] = \"STRING_TOKEN\";\r\n TokenType[TokenType[\"BAD_STRING_TOKEN\"] = 1] = \"BAD_STRING_TOKEN\";\r\n TokenType[TokenType[\"LEFT_PARENTHESIS_TOKEN\"] = 2] = \"LEFT_PARENTHESIS_TOKEN\";\r\n TokenType[TokenType[\"RIGHT_PARENTHESIS_TOKEN\"] = 3] = \"RIGHT_PARENTHESIS_TOKEN\";\r\n TokenType[TokenType[\"COMMA_TOKEN\"] = 4] = \"COMMA_TOKEN\";\r\n TokenType[TokenType[\"HASH_TOKEN\"] = 5] = \"HASH_TOKEN\";\r\n TokenType[TokenType[\"DELIM_TOKEN\"] = 6] = \"DELIM_TOKEN\";\r\n TokenType[TokenType[\"AT_KEYWORD_TOKEN\"] = 7] = \"AT_KEYWORD_TOKEN\";\r\n TokenType[TokenType[\"PREFIX_MATCH_TOKEN\"] = 8] = \"PREFIX_MATCH_TOKEN\";\r\n TokenType[TokenType[\"DASH_MATCH_TOKEN\"] = 9] = \"DASH_MATCH_TOKEN\";\r\n TokenType[TokenType[\"INCLUDE_MATCH_TOKEN\"] = 10] = \"INCLUDE_MATCH_TOKEN\";\r\n TokenType[TokenType[\"LEFT_CURLY_BRACKET_TOKEN\"] = 11] = \"LEFT_CURLY_BRACKET_TOKEN\";\r\n TokenType[TokenType[\"RIGHT_CURLY_BRACKET_TOKEN\"] = 12] = \"RIGHT_CURLY_BRACKET_TOKEN\";\r\n TokenType[TokenType[\"SUFFIX_MATCH_TOKEN\"] = 13] = \"SUFFIX_MATCH_TOKEN\";\r\n TokenType[TokenType[\"SUBSTRING_MATCH_TOKEN\"] = 14] = \"SUBSTRING_MATCH_TOKEN\";\r\n TokenType[TokenType[\"DIMENSION_TOKEN\"] = 15] = \"DIMENSION_TOKEN\";\r\n TokenType[TokenType[\"PERCENTAGE_TOKEN\"] = 16] = \"PERCENTAGE_TOKEN\";\r\n TokenType[TokenType[\"NUMBER_TOKEN\"] = 17] = \"NUMBER_TOKEN\";\r\n TokenType[TokenType[\"FUNCTION\"] = 18] = \"FUNCTION\";\r\n TokenType[TokenType[\"FUNCTION_TOKEN\"] = 19] = \"FUNCTION_TOKEN\";\r\n TokenType[TokenType[\"IDENT_TOKEN\"] = 20] = \"IDENT_TOKEN\";\r\n TokenType[TokenType[\"COLUMN_TOKEN\"] = 21] = \"COLUMN_TOKEN\";\r\n TokenType[TokenType[\"URL_TOKEN\"] = 22] = \"URL_TOKEN\";\r\n TokenType[TokenType[\"BAD_URL_TOKEN\"] = 23] = \"BAD_URL_TOKEN\";\r\n TokenType[TokenType[\"CDC_TOKEN\"] = 24] = \"CDC_TOKEN\";\r\n TokenType[TokenType[\"CDO_TOKEN\"] = 25] = \"CDO_TOKEN\";\r\n TokenType[TokenType[\"COLON_TOKEN\"] = 26] = \"COLON_TOKEN\";\r\n TokenType[TokenType[\"SEMICOLON_TOKEN\"] = 27] = \"SEMICOLON_TOKEN\";\r\n TokenType[TokenType[\"LEFT_SQUARE_BRACKET_TOKEN\"] = 28] = \"LEFT_SQUARE_BRACKET_TOKEN\";\r\n TokenType[TokenType[\"RIGHT_SQUARE_BRACKET_TOKEN\"] = 29] = \"RIGHT_SQUARE_BRACKET_TOKEN\";\r\n TokenType[TokenType[\"UNICODE_RANGE_TOKEN\"] = 30] = \"UNICODE_RANGE_TOKEN\";\r\n TokenType[TokenType[\"WHITESPACE_TOKEN\"] = 31] = \"WHITESPACE_TOKEN\";\r\n TokenType[TokenType[\"EOF_TOKEN\"] = 32] = \"EOF_TOKEN\";\r\n })(TokenType || (TokenType = {}));\r\n var FLAG_UNRESTRICTED = 1 << 0;\r\n var FLAG_ID = 1 << 1;\r\n var FLAG_INTEGER = 1 << 2;\r\n var FLAG_NUMBER = 1 << 3;\r\n var LINE_FEED = 0x000a;\r\n var SOLIDUS = 0x002f;\r\n var REVERSE_SOLIDUS = 0x005c;\r\n var CHARACTER_TABULATION = 0x0009;\r\n var SPACE$1 = 0x0020;\r\n var QUOTATION_MARK = 0x0022;\r\n var EQUALS_SIGN = 0x003d;\r\n var NUMBER_SIGN = 0x0023;\r\n var DOLLAR_SIGN = 0x0024;\r\n var PERCENTAGE_SIGN = 0x0025;\r\n var APOSTROPHE = 0x0027;\r\n var LEFT_PARENTHESIS = 0x0028;\r\n var RIGHT_PARENTHESIS = 0x0029;\r\n var LOW_LINE = 0x005f;\r\n var HYPHEN_MINUS = 0x002d;\r\n var EXCLAMATION_MARK = 0x0021;\r\n var LESS_THAN_SIGN = 0x003c;\r\n var GREATER_THAN_SIGN = 0x003e;\r\n var COMMERCIAL_AT = 0x0040;\r\n var LEFT_SQUARE_BRACKET = 0x005b;\r\n var RIGHT_SQUARE_BRACKET = 0x005d;\r\n var CIRCUMFLEX_ACCENT = 0x003d;\r\n var LEFT_CURLY_BRACKET = 0x007b;\r\n var QUESTION_MARK = 0x003f;\r\n var RIGHT_CURLY_BRACKET = 0x007d;\r\n var VERTICAL_LINE = 0x007c;\r\n var TILDE = 0x007e;\r\n var CONTROL = 0x0080;\r\n var REPLACEMENT_CHARACTER = 0xfffd;\r\n var ASTERISK = 0x002a;\r\n var PLUS_SIGN = 0x002b;\r\n var COMMA = 0x002c;\r\n var COLON = 0x003a;\r\n var SEMICOLON = 0x003b;\r\n var FULL_STOP = 0x002e;\r\n var NULL = 0x0000;\r\n var BACKSPACE = 0x0008;\r\n var LINE_TABULATION = 0x000b;\r\n var SHIFT_OUT = 0x000e;\r\n var INFORMATION_SEPARATOR_ONE = 0x001f;\r\n var DELETE = 0x007f;\r\n var EOF = -1;\r\n var ZERO = 0x0030;\r\n var a = 0x0061;\r\n var e = 0x0065;\r\n var f = 0x0066;\r\n var u = 0x0075;\r\n var z = 0x007a;\r\n var A = 0x0041;\r\n var E = 0x0045;\r\n var F = 0x0046;\r\n var U = 0x0055;\r\n var Z = 0x005a;\r\n var isDigit = function (codePoint) { return codePoint >= ZERO && codePoint <= 0x0039; };\r\n var isSurrogateCodePoint = function (codePoint) { return codePoint >= 0xd800 && codePoint <= 0xdfff; };\r\n var isHex = function (codePoint) {\r\n return isDigit(codePoint) || (codePoint >= A && codePoint <= F) || (codePoint >= a && codePoint <= f);\r\n };\r\n var isLowerCaseLetter = function (codePoint) { return codePoint >= a && codePoint <= z; };\r\n var isUpperCaseLetter = function (codePoint) { return codePoint >= A && codePoint <= Z; };\r\n var isLetter = function (codePoint) { return isLowerCaseLetter(codePoint) || isUpperCaseLetter(codePoint); };\r\n var isNonASCIICodePoint = function (codePoint) { return codePoint >= CONTROL; };\r\n var isWhiteSpace = function (codePoint) {\r\n return codePoint === LINE_FEED || codePoint === CHARACTER_TABULATION || codePoint === SPACE$1;\r\n };\r\n var isNameStartCodePoint = function (codePoint) {\r\n return isLetter(codePoint) || isNonASCIICodePoint(codePoint) || codePoint === LOW_LINE;\r\n };\r\n var isNameCodePoint = function (codePoint) {\r\n return isNameStartCodePoint(codePoint) || isDigit(codePoint) || codePoint === HYPHEN_MINUS;\r\n };\r\n var isNonPrintableCodePoint = function (codePoint) {\r\n return ((codePoint >= NULL && codePoint <= BACKSPACE) ||\r\n codePoint === LINE_TABULATION ||\r\n (codePoint >= SHIFT_OUT && codePoint <= INFORMATION_SEPARATOR_ONE) ||\r\n codePoint === DELETE);\r\n };\r\n var isValidEscape = function (c1, c2) {\r\n if (c1 !== REVERSE_SOLIDUS) {\r\n return false;\r\n }\r\n return c2 !== LINE_FEED;\r\n };\r\n var isIdentifierStart = function (c1, c2, c3) {\r\n if (c1 === HYPHEN_MINUS) {\r\n return isNameStartCodePoint(c2) || isValidEscape(c2, c3);\r\n }\r\n else if (isNameStartCodePoint(c1)) {\r\n return true;\r\n }\r\n else if (c1 === REVERSE_SOLIDUS && isValidEscape(c1, c2)) {\r\n return true;\r\n }\r\n return false;\r\n };\r\n var isNumberStart = function (c1, c2, c3) {\r\n if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) {\r\n if (isDigit(c2)) {\r\n return true;\r\n }\r\n return c2 === FULL_STOP && isDigit(c3);\r\n }\r\n if (c1 === FULL_STOP) {\r\n return isDigit(c2);\r\n }\r\n return isDigit(c1);\r\n };\r\n var stringToNumber = function (codePoints) {\r\n var c = 0;\r\n var sign = 1;\r\n if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) {\r\n if (codePoints[c] === HYPHEN_MINUS) {\r\n sign = -1;\r\n }\r\n c++;\r\n }\r\n var integers = [];\r\n while (isDigit(codePoints[c])) {\r\n integers.push(codePoints[c++]);\r\n }\r\n var int = integers.length ? parseInt(fromCodePoint.apply(void 0, integers), 10) : 0;\r\n if (codePoints[c] === FULL_STOP) {\r\n c++;\r\n }\r\n var fraction = [];\r\n while (isDigit(codePoints[c])) {\r\n fraction.push(codePoints[c++]);\r\n }\r\n var fracd = fraction.length;\r\n var frac = fracd ? parseInt(fromCodePoint.apply(void 0, fraction), 10) : 0;\r\n if (codePoints[c] === E || codePoints[c] === e) {\r\n c++;\r\n }\r\n var expsign = 1;\r\n if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) {\r\n if (codePoints[c] === HYPHEN_MINUS) {\r\n expsign = -1;\r\n }\r\n c++;\r\n }\r\n var exponent = [];\r\n while (isDigit(codePoints[c])) {\r\n exponent.push(codePoints[c++]);\r\n }\r\n var exp = exponent.length ? parseInt(fromCodePoint.apply(void 0, exponent), 10) : 0;\r\n return sign * (int + frac * Math.pow(10, -fracd)) * Math.pow(10, expsign * exp);\r\n };\r\n var LEFT_PARENTHESIS_TOKEN = {\r\n type: TokenType.LEFT_PARENTHESIS_TOKEN\r\n };\r\n var RIGHT_PARENTHESIS_TOKEN = {\r\n type: TokenType.RIGHT_PARENTHESIS_TOKEN\r\n };\r\n var COMMA_TOKEN = { type: TokenType.COMMA_TOKEN };\r\n var SUFFIX_MATCH_TOKEN = { type: TokenType.SUFFIX_MATCH_TOKEN };\r\n var PREFIX_MATCH_TOKEN = { type: TokenType.PREFIX_MATCH_TOKEN };\r\n var COLUMN_TOKEN = { type: TokenType.COLUMN_TOKEN };\r\n var DASH_MATCH_TOKEN = { type: TokenType.DASH_MATCH_TOKEN };\r\n var INCLUDE_MATCH_TOKEN = { type: TokenType.INCLUDE_MATCH_TOKEN };\r\n var LEFT_CURLY_BRACKET_TOKEN = {\r\n type: TokenType.LEFT_CURLY_BRACKET_TOKEN\r\n };\r\n var RIGHT_CURLY_BRACKET_TOKEN = {\r\n type: TokenType.RIGHT_CURLY_BRACKET_TOKEN\r\n };\r\n var SUBSTRING_MATCH_TOKEN = { type: TokenType.SUBSTRING_MATCH_TOKEN };\r\n var BAD_URL_TOKEN = { type: TokenType.BAD_URL_TOKEN };\r\n var BAD_STRING_TOKEN = { type: TokenType.BAD_STRING_TOKEN };\r\n var CDO_TOKEN = { type: TokenType.CDO_TOKEN };\r\n var CDC_TOKEN = { type: TokenType.CDC_TOKEN };\r\n var COLON_TOKEN = { type: TokenType.COLON_TOKEN };\r\n var SEMICOLON_TOKEN = { type: TokenType.SEMICOLON_TOKEN };\r\n var LEFT_SQUARE_BRACKET_TOKEN = {\r\n type: TokenType.LEFT_SQUARE_BRACKET_TOKEN\r\n };\r\n var RIGHT_SQUARE_BRACKET_TOKEN = {\r\n type: TokenType.RIGHT_SQUARE_BRACKET_TOKEN\r\n };\r\n var WHITESPACE_TOKEN = { type: TokenType.WHITESPACE_TOKEN };\r\n var EOF_TOKEN = { type: TokenType.EOF_TOKEN };\r\n var Tokenizer = /** @class */ (function () {\r\n function Tokenizer() {\r\n this._value = [];\r\n }\r\n Tokenizer.prototype.write = function (chunk) {\r\n this._value = this._value.concat(toCodePoints(chunk));\r\n };\r\n Tokenizer.prototype.read = function () {\r\n var tokens = [];\r\n var token = this.consumeToken();\r\n while (token !== EOF_TOKEN) {\r\n tokens.push(token);\r\n token = this.consumeToken();\r\n }\r\n return tokens;\r\n };\r\n Tokenizer.prototype.consumeToken = function () {\r\n var codePoint = this.consumeCodePoint();\r\n switch (codePoint) {\r\n case QUOTATION_MARK:\r\n return this.consumeStringToken(QUOTATION_MARK);\r\n case NUMBER_SIGN:\r\n var c1 = this.peekCodePoint(0);\r\n var c2 = this.peekCodePoint(1);\r\n var c3 = this.peekCodePoint(2);\r\n if (isNameCodePoint(c1) || isValidEscape(c2, c3)) {\r\n var flags = isIdentifierStart(c1, c2, c3) ? FLAG_ID : FLAG_UNRESTRICTED;\r\n var value = this.consumeName();\r\n return { type: TokenType.HASH_TOKEN, value: value, flags: flags };\r\n }\r\n break;\r\n case DOLLAR_SIGN:\r\n if (this.peekCodePoint(0) === EQUALS_SIGN) {\r\n this.consumeCodePoint();\r\n return SUFFIX_MATCH_TOKEN;\r\n }\r\n break;\r\n case APOSTROPHE:\r\n return this.consumeStringToken(APOSTROPHE);\r\n case LEFT_PARENTHESIS:\r\n return LEFT_PARENTHESIS_TOKEN;\r\n case RIGHT_PARENTHESIS:\r\n return RIGHT_PARENTHESIS_TOKEN;\r\n case ASTERISK:\r\n if (this.peekCodePoint(0) === EQUALS_SIGN) {\r\n this.consumeCodePoint();\r\n return SUBSTRING_MATCH_TOKEN;\r\n }\r\n break;\r\n case PLUS_SIGN:\r\n if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) {\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeNumericToken();\r\n }\r\n break;\r\n case COMMA:\r\n return COMMA_TOKEN;\r\n case HYPHEN_MINUS:\r\n var e1 = codePoint;\r\n var e2 = this.peekCodePoint(0);\r\n var e3 = this.peekCodePoint(1);\r\n if (isNumberStart(e1, e2, e3)) {\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeNumericToken();\r\n }\r\n if (isIdentifierStart(e1, e2, e3)) {\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeIdentLikeToken();\r\n }\r\n if (e2 === HYPHEN_MINUS && e3 === GREATER_THAN_SIGN) {\r\n this.consumeCodePoint();\r\n this.consumeCodePoint();\r\n return CDC_TOKEN;\r\n }\r\n break;\r\n case FULL_STOP:\r\n if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) {\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeNumericToken();\r\n }\r\n break;\r\n case SOLIDUS:\r\n if (this.peekCodePoint(0) === ASTERISK) {\r\n this.consumeCodePoint();\r\n while (true) {\r\n var c = this.consumeCodePoint();\r\n if (c === ASTERISK) {\r\n c = this.consumeCodePoint();\r\n if (c === SOLIDUS) {\r\n return this.consumeToken();\r\n }\r\n }\r\n if (c === EOF) {\r\n return this.consumeToken();\r\n }\r\n }\r\n }\r\n break;\r\n case COLON:\r\n return COLON_TOKEN;\r\n case SEMICOLON:\r\n return SEMICOLON_TOKEN;\r\n case LESS_THAN_SIGN:\r\n if (this.peekCodePoint(0) === EXCLAMATION_MARK &&\r\n this.peekCodePoint(1) === HYPHEN_MINUS &&\r\n this.peekCodePoint(2) === HYPHEN_MINUS) {\r\n this.consumeCodePoint();\r\n this.consumeCodePoint();\r\n return CDO_TOKEN;\r\n }\r\n break;\r\n case COMMERCIAL_AT:\r\n var a1 = this.peekCodePoint(0);\r\n var a2 = this.peekCodePoint(1);\r\n var a3 = this.peekCodePoint(2);\r\n if (isIdentifierStart(a1, a2, a3)) {\r\n var value = this.consumeName();\r\n return { type: TokenType.AT_KEYWORD_TOKEN, value: value };\r\n }\r\n break;\r\n case LEFT_SQUARE_BRACKET:\r\n return LEFT_SQUARE_BRACKET_TOKEN;\r\n case REVERSE_SOLIDUS:\r\n if (isValidEscape(codePoint, this.peekCodePoint(0))) {\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeIdentLikeToken();\r\n }\r\n break;\r\n case RIGHT_SQUARE_BRACKET:\r\n return RIGHT_SQUARE_BRACKET_TOKEN;\r\n case CIRCUMFLEX_ACCENT:\r\n if (this.peekCodePoint(0) === EQUALS_SIGN) {\r\n this.consumeCodePoint();\r\n return PREFIX_MATCH_TOKEN;\r\n }\r\n break;\r\n case LEFT_CURLY_BRACKET:\r\n return LEFT_CURLY_BRACKET_TOKEN;\r\n case RIGHT_CURLY_BRACKET:\r\n return RIGHT_CURLY_BRACKET_TOKEN;\r\n case u:\r\n case U:\r\n var u1 = this.peekCodePoint(0);\r\n var u2 = this.peekCodePoint(1);\r\n if (u1 === PLUS_SIGN && (isHex(u2) || u2 === QUESTION_MARK)) {\r\n this.consumeCodePoint();\r\n this.consumeUnicodeRangeToken();\r\n }\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeIdentLikeToken();\r\n case VERTICAL_LINE:\r\n if (this.peekCodePoint(0) === EQUALS_SIGN) {\r\n this.consumeCodePoint();\r\n return DASH_MATCH_TOKEN;\r\n }\r\n if (this.peekCodePoint(0) === VERTICAL_LINE) {\r\n this.consumeCodePoint();\r\n return COLUMN_TOKEN;\r\n }\r\n break;\r\n case TILDE:\r\n if (this.peekCodePoint(0) === EQUALS_SIGN) {\r\n this.consumeCodePoint();\r\n return INCLUDE_MATCH_TOKEN;\r\n }\r\n break;\r\n case EOF:\r\n return EOF_TOKEN;\r\n }\r\n if (isWhiteSpace(codePoint)) {\r\n this.consumeWhiteSpace();\r\n return WHITESPACE_TOKEN;\r\n }\r\n if (isDigit(codePoint)) {\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeNumericToken();\r\n }\r\n if (isNameStartCodePoint(codePoint)) {\r\n this.reconsumeCodePoint(codePoint);\r\n return this.consumeIdentLikeToken();\r\n }\r\n return { type: TokenType.DELIM_TOKEN, value: fromCodePoint(codePoint) };\r\n };\r\n Tokenizer.prototype.consumeCodePoint = function () {\r\n var value = this._value.shift();\r\n return typeof value === 'undefined' ? -1 : value;\r\n };\r\n Tokenizer.prototype.reconsumeCodePoint = function (codePoint) {\r\n this._value.unshift(codePoint);\r\n };\r\n Tokenizer.prototype.peekCodePoint = function (delta) {\r\n if (delta >= this._value.length) {\r\n return -1;\r\n }\r\n return this._value[delta];\r\n };\r\n Tokenizer.prototype.consumeUnicodeRangeToken = function () {\r\n var digits = [];\r\n var codePoint = this.consumeCodePoint();\r\n while (isHex(codePoint) && digits.length < 6) {\r\n digits.push(codePoint);\r\n codePoint = this.consumeCodePoint();\r\n }\r\n var questionMarks = false;\r\n while (codePoint === QUESTION_MARK && digits.length < 6) {\r\n digits.push(codePoint);\r\n codePoint = this.consumeCodePoint();\r\n questionMarks = true;\r\n }\r\n if (questionMarks) {\r\n var start_1 = parseInt(fromCodePoint.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? ZERO : digit); })), 16);\r\n var end = parseInt(fromCodePoint.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? F : digit); })), 16);\r\n return { type: TokenType.UNICODE_RANGE_TOKEN, start: start_1, end: end };\r\n }\r\n var start = parseInt(fromCodePoint.apply(void 0, digits), 16);\r\n if (this.peekCodePoint(0) === HYPHEN_MINUS && isHex(this.peekCodePoint(1))) {\r\n this.consumeCodePoint();\r\n codePoint = this.consumeCodePoint();\r\n var endDigits = [];\r\n while (isHex(codePoint) && endDigits.length < 6) {\r\n endDigits.push(codePoint);\r\n codePoint = this.consumeCodePoint();\r\n }\r\n var end = parseInt(fromCodePoint.apply(void 0, endDigits), 16);\r\n return { type: TokenType.UNICODE_RANGE_TOKEN, start: start, end: end };\r\n }\r\n else {\r\n return { type: TokenType.UNICODE_RANGE_TOKEN, start: start, end: start };\r\n }\r\n };\r\n Tokenizer.prototype.consumeIdentLikeToken = function () {\r\n var value = this.consumeName();\r\n if (value.toLowerCase() === 'url' && this.peekCodePoint(0) === LEFT_PARENTHESIS) {\r\n this.consumeCodePoint();\r\n return this.consumeUrlToken();\r\n }\r\n else if (this.peekCodePoint(0) === LEFT_PARENTHESIS) {\r\n this.consumeCodePoint();\r\n return { type: TokenType.FUNCTION_TOKEN, value: value };\r\n }\r\n return { type: TokenType.IDENT_TOKEN, value: value };\r\n };\r\n Tokenizer.prototype.consumeUrlToken = function () {\r\n var value = [];\r\n this.consumeWhiteSpace();\r\n if (this.peekCodePoint(0) === EOF) {\r\n return { type: TokenType.URL_TOKEN, value: '' };\r\n }\r\n var next = this.peekCodePoint(0);\r\n if (next === APOSTROPHE || next === QUOTATION_MARK) {\r\n var stringToken = this.consumeStringToken(this.consumeCodePoint());\r\n if (stringToken.type === TokenType.STRING_TOKEN) {\r\n this.consumeWhiteSpace();\r\n if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) {\r\n this.consumeCodePoint();\r\n return { type: TokenType.URL_TOKEN, value: stringToken.value };\r\n }\r\n }\r\n this.consumeBadUrlRemnants();\r\n return BAD_URL_TOKEN;\r\n }\r\n while (true) {\r\n var codePoint = this.consumeCodePoint();\r\n if (codePoint === EOF || codePoint === RIGHT_PARENTHESIS) {\r\n return { type: TokenType.URL_TOKEN, value: fromCodePoint.apply(void 0, value) };\r\n }\r\n else if (isWhiteSpace(codePoint)) {\r\n this.consumeWhiteSpace();\r\n if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) {\r\n this.consumeCodePoint();\r\n return { type: TokenType.URL_TOKEN, value: fromCodePoint.apply(void 0, value) };\r\n }\r\n this.consumeBadUrlRemnants();\r\n return BAD_URL_TOKEN;\r\n }\r\n else if (codePoint === QUOTATION_MARK ||\r\n codePoint === APOSTROPHE ||\r\n codePoint === LEFT_PARENTHESIS ||\r\n isNonPrintableCodePoint(codePoint)) {\r\n this.consumeBadUrlRemnants();\r\n return BAD_URL_TOKEN;\r\n }\r\n else if (codePoint === REVERSE_SOLIDUS) {\r\n if (isValidEscape(codePoint, this.peekCodePoint(0))) {\r\n value.push(this.consumeEscapedCodePoint());\r\n }\r\n else {\r\n this.consumeBadUrlRemnants();\r\n return BAD_URL_TOKEN;\r\n }\r\n }\r\n else {\r\n value.push(codePoint);\r\n }\r\n }\r\n };\r\n Tokenizer.prototype.consumeWhiteSpace = function () {\r\n while (isWhiteSpace(this.peekCodePoint(0))) {\r\n this.consumeCodePoint();\r\n }\r\n };\r\n Tokenizer.prototype.consumeBadUrlRemnants = function () {\r\n while (true) {\r\n var codePoint = this.consumeCodePoint();\r\n if (codePoint === RIGHT_PARENTHESIS || codePoint === EOF) {\r\n return;\r\n }\r\n if (isValidEscape(codePoint, this.peekCodePoint(0))) {\r\n this.consumeEscapedCodePoint();\r\n }\r\n }\r\n };\r\n Tokenizer.prototype.consumeStringSlice = function (count) {\r\n var SLICE_STACK_SIZE = 60000;\r\n var value = '';\r\n while (count > 0) {\r\n var amount = Math.min(SLICE_STACK_SIZE, count);\r\n value += fromCodePoint.apply(void 0, this._value.splice(0, amount));\r\n count -= amount;\r\n }\r\n this._value.shift();\r\n return value;\r\n };\r\n Tokenizer.prototype.consumeStringToken = function (endingCodePoint) {\r\n var value = '';\r\n var i = 0;\r\n do {\r\n var codePoint = this._value[i];\r\n if (codePoint === EOF || codePoint === undefined || codePoint === endingCodePoint) {\r\n value += this.consumeStringSlice(i);\r\n return { type: TokenType.STRING_TOKEN, value: value };\r\n }\r\n if (codePoint === LINE_FEED) {\r\n this._value.splice(0, i);\r\n return BAD_STRING_TOKEN;\r\n }\r\n if (codePoint === REVERSE_SOLIDUS) {\r\n var next = this._value[i + 1];\r\n if (next !== EOF && next !== undefined) {\r\n if (next === LINE_FEED) {\r\n value += this.consumeStringSlice(i);\r\n i = -1;\r\n this._value.shift();\r\n }\r\n else if (isValidEscape(codePoint, next)) {\r\n value += this.consumeStringSlice(i);\r\n value += fromCodePoint(this.consumeEscapedCodePoint());\r\n i = -1;\r\n }\r\n }\r\n }\r\n i++;\r\n } while (true);\r\n };\r\n Tokenizer.prototype.consumeNumber = function () {\r\n var repr = [];\r\n var type = FLAG_INTEGER;\r\n var c1 = this.peekCodePoint(0);\r\n if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) {\r\n repr.push(this.consumeCodePoint());\r\n }\r\n while (isDigit(this.peekCodePoint(0))) {\r\n repr.push(this.consumeCodePoint());\r\n }\r\n c1 = this.peekCodePoint(0);\r\n var c2 = this.peekCodePoint(1);\r\n if (c1 === FULL_STOP && isDigit(c2)) {\r\n repr.push(this.consumeCodePoint(), this.consumeCodePoint());\r\n type = FLAG_NUMBER;\r\n while (isDigit(this.peekCodePoint(0))) {\r\n repr.push(this.consumeCodePoint());\r\n }\r\n }\r\n c1 = this.peekCodePoint(0);\r\n c2 = this.peekCodePoint(1);\r\n var c3 = this.peekCodePoint(2);\r\n if ((c1 === E || c1 === e) && (((c2 === PLUS_SIGN || c2 === HYPHEN_MINUS) && isDigit(c3)) || isDigit(c2))) {\r\n repr.push(this.consumeCodePoint(), this.consumeCodePoint());\r\n type = FLAG_NUMBER;\r\n while (isDigit(this.peekCodePoint(0))) {\r\n repr.push(this.consumeCodePoint());\r\n }\r\n }\r\n return [stringToNumber(repr), type];\r\n };\r\n Tokenizer.prototype.consumeNumericToken = function () {\r\n var _a = this.consumeNumber(), number = _a[0], flags = _a[1];\r\n var c1 = this.peekCodePoint(0);\r\n var c2 = this.peekCodePoint(1);\r\n var c3 = this.peekCodePoint(2);\r\n if (isIdentifierStart(c1, c2, c3)) {\r\n var unit = this.consumeName();\r\n return { type: TokenType.DIMENSION_TOKEN, number: number, flags: flags, unit: unit };\r\n }\r\n if (c1 === PERCENTAGE_SIGN) {\r\n this.consumeCodePoint();\r\n return { type: TokenType.PERCENTAGE_TOKEN, number: number, flags: flags };\r\n }\r\n return { type: TokenType.NUMBER_TOKEN, number: number, flags: flags };\r\n };\r\n Tokenizer.prototype.consumeEscapedCodePoint = function () {\r\n var codePoint = this.consumeCodePoint();\r\n if (isHex(codePoint)) {\r\n var hex = fromCodePoint(codePoint);\r\n while (isHex(this.peekCodePoint(0)) && hex.length < 6) {\r\n hex += fromCodePoint(this.consumeCodePoint());\r\n }\r\n if (isWhiteSpace(this.peekCodePoint(0))) {\r\n this.consumeCodePoint();\r\n }\r\n var hexCodePoint = parseInt(hex, 16);\r\n if (hexCodePoint === 0 || isSurrogateCodePoint(hexCodePoint) || hexCodePoint > 0x10ffff) {\r\n return REPLACEMENT_CHARACTER;\r\n }\r\n return hexCodePoint;\r\n }\r\n if (codePoint === EOF) {\r\n return REPLACEMENT_CHARACTER;\r\n }\r\n return codePoint;\r\n };\r\n Tokenizer.prototype.consumeName = function () {\r\n var result = '';\r\n while (true) {\r\n var codePoint = this.consumeCodePoint();\r\n if (isNameCodePoint(codePoint)) {\r\n result += fromCodePoint(codePoint);\r\n }\r\n else if (isValidEscape(codePoint, this.peekCodePoint(0))) {\r\n result += fromCodePoint(this.consumeEscapedCodePoint());\r\n }\r\n else {\r\n this.reconsumeCodePoint(codePoint);\r\n return result;\r\n }\r\n }\r\n };\r\n return Tokenizer;\r\n }());\n\n var Parser = /** @class */ (function () {\r\n function Parser(tokens) {\r\n this._tokens = tokens;\r\n }\r\n Parser.create = function (value) {\r\n var tokenizer = new Tokenizer();\r\n tokenizer.write(value);\r\n return new Parser(tokenizer.read());\r\n };\r\n Parser.parseValue = function (value) {\r\n return Parser.create(value).parseComponentValue();\r\n };\r\n Parser.parseValues = function (value) {\r\n return Parser.create(value).parseComponentValues();\r\n };\r\n Parser.prototype.parseComponentValue = function () {\r\n var token = this.consumeToken();\r\n while (token.type === TokenType.WHITESPACE_TOKEN) {\r\n token = this.consumeToken();\r\n }\r\n if (token.type === TokenType.EOF_TOKEN) {\r\n throw new SyntaxError(\"Error parsing CSS component value, unexpected EOF\");\r\n }\r\n this.reconsumeToken(token);\r\n var value = this.consumeComponentValue();\r\n do {\r\n token = this.consumeToken();\r\n } while (token.type === TokenType.WHITESPACE_TOKEN);\r\n if (token.type === TokenType.EOF_TOKEN) {\r\n return value;\r\n }\r\n throw new SyntaxError(\"Error parsing CSS component value, multiple values found when expecting only one\");\r\n };\r\n Parser.prototype.parseComponentValues = function () {\r\n var values = [];\r\n while (true) {\r\n var value = this.consumeComponentValue();\r\n if (value.type === TokenType.EOF_TOKEN) {\r\n return values;\r\n }\r\n values.push(value);\r\n values.push();\r\n }\r\n };\r\n Parser.prototype.consumeComponentValue = function () {\r\n var token = this.consumeToken();\r\n switch (token.type) {\r\n case TokenType.LEFT_CURLY_BRACKET_TOKEN:\r\n case TokenType.LEFT_SQUARE_BRACKET_TOKEN:\r\n case TokenType.LEFT_PARENTHESIS_TOKEN:\r\n return this.consumeSimpleBlock(token.type);\r\n case TokenType.FUNCTION_TOKEN:\r\n return this.consumeFunction(token);\r\n }\r\n return token;\r\n };\r\n Parser.prototype.consumeSimpleBlock = function (type) {\r\n var block = { type: type, values: [] };\r\n var token = this.consumeToken();\r\n while (true) {\r\n if (token.type === TokenType.EOF_TOKEN || isEndingTokenFor(token, type)) {\r\n return block;\r\n }\r\n this.reconsumeToken(token);\r\n block.values.push(this.consumeComponentValue());\r\n token = this.consumeToken();\r\n }\r\n };\r\n Parser.prototype.consumeFunction = function (functionToken) {\r\n var cssFunction = {\r\n name: functionToken.value,\r\n values: [],\r\n type: TokenType.FUNCTION\r\n };\r\n while (true) {\r\n var token = this.consumeToken();\r\n if (token.type === TokenType.EOF_TOKEN || token.type === TokenType.RIGHT_PARENTHESIS_TOKEN) {\r\n return cssFunction;\r\n }\r\n this.reconsumeToken(token);\r\n cssFunction.values.push(this.consumeComponentValue());\r\n }\r\n };\r\n Parser.prototype.consumeToken = function () {\r\n var token = this._tokens.shift();\r\n return typeof token === 'undefined' ? EOF_TOKEN : token;\r\n };\r\n Parser.prototype.reconsumeToken = function (token) {\r\n this._tokens.unshift(token);\r\n };\r\n return Parser;\r\n }());\r\n var isDimensionToken = function (token) { return token.type === TokenType.DIMENSION_TOKEN; };\r\n var isNumberToken = function (token) { return token.type === TokenType.NUMBER_TOKEN; };\r\n var isIdentToken = function (token) { return token.type === TokenType.IDENT_TOKEN; };\r\n var isStringToken = function (token) { return token.type === TokenType.STRING_TOKEN; };\r\n var isIdentWithValue = function (token, value) {\r\n return isIdentToken(token) && token.value === value;\r\n };\r\n var nonWhiteSpace = function (token) { return token.type !== TokenType.WHITESPACE_TOKEN; };\r\n var nonFunctionArgSeparator = function (token) {\r\n return token.type !== TokenType.WHITESPACE_TOKEN && token.type !== TokenType.COMMA_TOKEN;\r\n };\r\n var parseFunctionArgs = function (tokens) {\r\n var args = [];\r\n var arg = [];\r\n tokens.forEach(function (token) {\r\n if (token.type === TokenType.COMMA_TOKEN) {\r\n if (arg.length === 0) {\r\n throw new Error(\"Error parsing function args, zero tokens for arg\");\r\n }\r\n args.push(arg);\r\n arg = [];\r\n return;\r\n }\r\n if (token.type !== TokenType.WHITESPACE_TOKEN) {\r\n arg.push(token);\r\n }\r\n });\r\n if (arg.length) {\r\n args.push(arg);\r\n }\r\n return args;\r\n };\r\n var isEndingTokenFor = function (token, type) {\r\n if (type === TokenType.LEFT_CURLY_BRACKET_TOKEN && token.type === TokenType.RIGHT_CURLY_BRACKET_TOKEN) {\r\n return true;\r\n }\r\n if (type === TokenType.LEFT_SQUARE_BRACKET_TOKEN && token.type === TokenType.RIGHT_SQUARE_BRACKET_TOKEN) {\r\n return true;\r\n }\r\n return type === TokenType.LEFT_PARENTHESIS_TOKEN && token.type === TokenType.RIGHT_PARENTHESIS_TOKEN;\r\n };\n\n var isLength = function (token) {\r\n return token.type === TokenType.NUMBER_TOKEN || token.type === TokenType.DIMENSION_TOKEN;\r\n };\n\n var isLengthPercentage = function (token) {\r\n return token.type === TokenType.PERCENTAGE_TOKEN || isLength(token);\r\n };\r\n var parseLengthPercentageTuple = function (tokens) {\r\n return tokens.length > 1 ? [tokens[0], tokens[1]] : [tokens[0]];\r\n };\r\n var ZERO_LENGTH = {\r\n type: TokenType.NUMBER_TOKEN,\r\n number: 0,\r\n flags: FLAG_INTEGER\r\n };\r\n var FIFTY_PERCENT = {\r\n type: TokenType.PERCENTAGE_TOKEN,\r\n number: 50,\r\n flags: FLAG_INTEGER\r\n };\r\n var HUNDRED_PERCENT = {\r\n type: TokenType.PERCENTAGE_TOKEN,\r\n number: 100,\r\n flags: FLAG_INTEGER\r\n };\r\n var getAbsoluteValueForTuple = function (tuple, width, height) {\r\n var x = tuple[0], y = tuple[1];\r\n return [getAbsoluteValue(x, width), getAbsoluteValue(typeof y !== 'undefined' ? y : x, height)];\r\n };\r\n var getAbsoluteValue = function (token, parent) {\r\n if (token.type === TokenType.PERCENTAGE_TOKEN) {\r\n return (token.number / 100) * parent;\r\n }\r\n if (isDimensionToken(token)) {\r\n switch (token.unit) {\r\n case 'rem':\r\n case 'em':\r\n return 16 * token.number; // TODO use correct font-size\r\n case 'px':\r\n default:\r\n return token.number;\r\n }\r\n }\r\n return token.number;\r\n };\n\n var DEG = 'deg';\r\n var GRAD = 'grad';\r\n var RAD = 'rad';\r\n var TURN = 'turn';\r\n var angle = {\r\n name: 'angle',\r\n parse: function (value) {\r\n if (value.type === TokenType.DIMENSION_TOKEN) {\r\n switch (value.unit) {\r\n case DEG:\r\n return (Math.PI * value.number) / 180;\r\n case GRAD:\r\n return (Math.PI / 200) * value.number;\r\n case RAD:\r\n return value.number;\r\n case TURN:\r\n return Math.PI * 2 * value.number;\r\n }\r\n }\r\n throw new Error(\"Unsupported angle type\");\r\n }\r\n };\r\n var isAngle = function (value) {\r\n if (value.type === TokenType.DIMENSION_TOKEN) {\r\n if (value.unit === DEG || value.unit === GRAD || value.unit === RAD || value.unit === TURN) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n };\r\n var parseNamedSide = function (tokens) {\r\n var sideOrCorner = tokens\r\n .filter(isIdentToken)\r\n .map(function (ident) { return ident.value; })\r\n .join(' ');\r\n switch (sideOrCorner) {\r\n case 'to bottom right':\r\n case 'to right bottom':\r\n case 'left top':\r\n case 'top left':\r\n return [ZERO_LENGTH, ZERO_LENGTH];\r\n case 'to top':\r\n case 'bottom':\r\n return deg(0);\r\n case 'to bottom left':\r\n case 'to left bottom':\r\n case 'right top':\r\n case 'top right':\r\n return [ZERO_LENGTH, HUNDRED_PERCENT];\r\n case 'to right':\r\n case 'left':\r\n return deg(90);\r\n case 'to top left':\r\n case 'to left top':\r\n case 'right bottom':\r\n case 'bottom right':\r\n return [HUNDRED_PERCENT, HUNDRED_PERCENT];\r\n case 'to bottom':\r\n case 'top':\r\n return deg(180);\r\n case 'to top right':\r\n case 'to right top':\r\n case 'left bottom':\r\n case 'bottom left':\r\n return [HUNDRED_PERCENT, ZERO_LENGTH];\r\n case 'to left':\r\n case 'right':\r\n return deg(270);\r\n }\r\n return 0;\r\n };\r\n var deg = function (deg) { return (Math.PI * deg) / 180; };\n\n var color = {\r\n name: 'color',\r\n parse: function (value) {\r\n if (value.type === TokenType.FUNCTION) {\r\n var colorFunction = SUPPORTED_COLOR_FUNCTIONS[value.name];\r\n if (typeof colorFunction === 'undefined') {\r\n throw new Error(\"Attempting to parse an unsupported color function \\\"\" + value.name + \"\\\"\");\r\n }\r\n return colorFunction(value.values);\r\n }\r\n if (value.type === TokenType.HASH_TOKEN) {\r\n if (value.value.length === 3) {\r\n var r = value.value.substring(0, 1);\r\n var g = value.value.substring(1, 2);\r\n var b = value.value.substring(2, 3);\r\n return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), 1);\r\n }\r\n if (value.value.length === 4) {\r\n var r = value.value.substring(0, 1);\r\n var g = value.value.substring(1, 2);\r\n var b = value.value.substring(2, 3);\r\n var a = value.value.substring(3, 4);\r\n return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), parseInt(a + a, 16) / 255);\r\n }\r\n if (value.value.length === 6) {\r\n var r = value.value.substring(0, 2);\r\n var g = value.value.substring(2, 4);\r\n var b = value.value.substring(4, 6);\r\n return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), 1);\r\n }\r\n if (value.value.length === 8) {\r\n var r = value.value.substring(0, 2);\r\n var g = value.value.substring(2, 4);\r\n var b = value.value.substring(4, 6);\r\n var a = value.value.substring(6, 8);\r\n return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), parseInt(a, 16) / 255);\r\n }\r\n }\r\n if (value.type === TokenType.IDENT_TOKEN) {\r\n var namedColor = COLORS[value.value.toUpperCase()];\r\n if (typeof namedColor !== 'undefined') {\r\n return namedColor;\r\n }\r\n }\r\n return COLORS.TRANSPARENT;\r\n }\r\n };\r\n var isTransparent = function (color) { return (0xff & color) === 0; };\r\n var asString = function (color) {\r\n var alpha = 0xff & color;\r\n var blue = 0xff & (color >> 8);\r\n var green = 0xff & (color >> 16);\r\n var red = 0xff & (color >> 24);\r\n return alpha < 255 ? \"rgba(\" + red + \",\" + green + \",\" + blue + \",\" + alpha / 255 + \")\" : \"rgb(\" + red + \",\" + green + \",\" + blue + \")\";\r\n };\r\n var pack = function (r, g, b, a) {\r\n return ((r << 24) | (g << 16) | (b << 8) | (Math.round(a * 255) << 0)) >>> 0;\r\n };\r\n var getTokenColorValue = function (token, i) {\r\n if (token.type === TokenType.NUMBER_TOKEN) {\r\n return token.number;\r\n }\r\n if (token.type === TokenType.PERCENTAGE_TOKEN) {\r\n var max = i === 3 ? 1 : 255;\r\n return i === 3 ? (token.number / 100) * max : Math.round((token.number / 100) * max);\r\n }\r\n return 0;\r\n };\r\n var rgb = function (args) {\r\n var tokens = args.filter(nonFunctionArgSeparator);\r\n if (tokens.length === 3) {\r\n var _a = tokens.map(getTokenColorValue), r = _a[0], g = _a[1], b = _a[2];\r\n return pack(r, g, b, 1);\r\n }\r\n if (tokens.length === 4) {\r\n var _b = tokens.map(getTokenColorValue), r = _b[0], g = _b[1], b = _b[2], a = _b[3];\r\n return pack(r, g, b, a);\r\n }\r\n return 0;\r\n };\r\n function hue2rgb(t1, t2, hue) {\r\n if (hue < 0) {\r\n hue += 1;\r\n }\r\n if (hue >= 1) {\r\n hue -= 1;\r\n }\r\n if (hue < 1 / 6) {\r\n return (t2 - t1) * hue * 6 + t1;\r\n }\r\n else if (hue < 1 / 2) {\r\n return t2;\r\n }\r\n else if (hue < 2 / 3) {\r\n return (t2 - t1) * 6 * (2 / 3 - hue) + t1;\r\n }\r\n else {\r\n return t1;\r\n }\r\n }\r\n var hsl = function (args) {\r\n var tokens = args.filter(nonFunctionArgSeparator);\r\n var hue = tokens[0], saturation = tokens[1], lightness = tokens[2], alpha = tokens[3];\r\n var h = (hue.type === TokenType.NUMBER_TOKEN ? deg(hue.number) : angle.parse(hue)) / (Math.PI * 2);\r\n var s = isLengthPercentage(saturation) ? saturation.number / 100 : 0;\r\n var l = isLengthPercentage(lightness) ? lightness.number / 100 : 0;\r\n var a = typeof alpha !== 'undefined' && isLengthPercentage(alpha) ? getAbsoluteValue(alpha, 1) : 1;\r\n if (s === 0) {\r\n return pack(l * 255, l * 255, l * 255, 1);\r\n }\r\n var t2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;\r\n var t1 = l * 2 - t2;\r\n var r = hue2rgb(t1, t2, h + 1 / 3);\r\n var g = hue2rgb(t1, t2, h);\r\n var b = hue2rgb(t1, t2, h - 1 / 3);\r\n return pack(r * 255, g * 255, b * 255, a);\r\n };\r\n var SUPPORTED_COLOR_FUNCTIONS = {\r\n hsl: hsl,\r\n hsla: hsl,\r\n rgb: rgb,\r\n rgba: rgb\r\n };\r\n var COLORS = {\r\n ALICEBLUE: 0xf0f8ffff,\r\n ANTIQUEWHITE: 0xfaebd7ff,\r\n AQUA: 0x00ffffff,\r\n AQUAMARINE: 0x7fffd4ff,\r\n AZURE: 0xf0ffffff,\r\n BEIGE: 0xf5f5dcff,\r\n BISQUE: 0xffe4c4ff,\r\n BLACK: 0x000000ff,\r\n BLANCHEDALMOND: 0xffebcdff,\r\n BLUE: 0x0000ffff,\r\n BLUEVIOLET: 0x8a2be2ff,\r\n BROWN: 0xa52a2aff,\r\n BURLYWOOD: 0xdeb887ff,\r\n CADETBLUE: 0x5f9ea0ff,\r\n CHARTREUSE: 0x7fff00ff,\r\n CHOCOLATE: 0xd2691eff,\r\n CORAL: 0xff7f50ff,\r\n CORNFLOWERBLUE: 0x6495edff,\r\n CORNSILK: 0xfff8dcff,\r\n CRIMSON: 0xdc143cff,\r\n CYAN: 0x00ffffff,\r\n DARKBLUE: 0x00008bff,\r\n DARKCYAN: 0x008b8bff,\r\n DARKGOLDENROD: 0xb886bbff,\r\n DARKGRAY: 0xa9a9a9ff,\r\n DARKGREEN: 0x006400ff,\r\n DARKGREY: 0xa9a9a9ff,\r\n DARKKHAKI: 0xbdb76bff,\r\n DARKMAGENTA: 0x8b008bff,\r\n DARKOLIVEGREEN: 0x556b2fff,\r\n DARKORANGE: 0xff8c00ff,\r\n DARKORCHID: 0x9932ccff,\r\n DARKRED: 0x8b0000ff,\r\n DARKSALMON: 0xe9967aff,\r\n DARKSEAGREEN: 0x8fbc8fff,\r\n DARKSLATEBLUE: 0x483d8bff,\r\n DARKSLATEGRAY: 0x2f4f4fff,\r\n DARKSLATEGREY: 0x2f4f4fff,\r\n DARKTURQUOISE: 0x00ced1ff,\r\n DARKVIOLET: 0x9400d3ff,\r\n DEEPPINK: 0xff1493ff,\r\n DEEPSKYBLUE: 0x00bfffff,\r\n DIMGRAY: 0x696969ff,\r\n DIMGREY: 0x696969ff,\r\n DODGERBLUE: 0x1e90ffff,\r\n FIREBRICK: 0xb22222ff,\r\n FLORALWHITE: 0xfffaf0ff,\r\n FORESTGREEN: 0x228b22ff,\r\n FUCHSIA: 0xff00ffff,\r\n GAINSBORO: 0xdcdcdcff,\r\n GHOSTWHITE: 0xf8f8ffff,\r\n GOLD: 0xffd700ff,\r\n GOLDENROD: 0xdaa520ff,\r\n GRAY: 0x808080ff,\r\n GREEN: 0x008000ff,\r\n GREENYELLOW: 0xadff2fff,\r\n GREY: 0x808080ff,\r\n HONEYDEW: 0xf0fff0ff,\r\n HOTPINK: 0xff69b4ff,\r\n INDIANRED: 0xcd5c5cff,\r\n INDIGO: 0x4b0082ff,\r\n IVORY: 0xfffff0ff,\r\n KHAKI: 0xf0e68cff,\r\n LAVENDER: 0xe6e6faff,\r\n LAVENDERBLUSH: 0xfff0f5ff,\r\n LAWNGREEN: 0x7cfc00ff,\r\n LEMONCHIFFON: 0xfffacdff,\r\n LIGHTBLUE: 0xadd8e6ff,\r\n LIGHTCORAL: 0xf08080ff,\r\n LIGHTCYAN: 0xe0ffffff,\r\n LIGHTGOLDENRODYELLOW: 0xfafad2ff,\r\n LIGHTGRAY: 0xd3d3d3ff,\r\n LIGHTGREEN: 0x90ee90ff,\r\n LIGHTGREY: 0xd3d3d3ff,\r\n LIGHTPINK: 0xffb6c1ff,\r\n LIGHTSALMON: 0xffa07aff,\r\n LIGHTSEAGREEN: 0x20b2aaff,\r\n LIGHTSKYBLUE: 0x87cefaff,\r\n LIGHTSLATEGRAY: 0x778899ff,\r\n LIGHTSLATEGREY: 0x778899ff,\r\n LIGHTSTEELBLUE: 0xb0c4deff,\r\n LIGHTYELLOW: 0xffffe0ff,\r\n LIME: 0x00ff00ff,\r\n LIMEGREEN: 0x32cd32ff,\r\n LINEN: 0xfaf0e6ff,\r\n MAGENTA: 0xff00ffff,\r\n MAROON: 0x800000ff,\r\n MEDIUMAQUAMARINE: 0x66cdaaff,\r\n MEDIUMBLUE: 0x0000cdff,\r\n MEDIUMORCHID: 0xba55d3ff,\r\n MEDIUMPURPLE: 0x9370dbff,\r\n MEDIUMSEAGREEN: 0x3cb371ff,\r\n MEDIUMSLATEBLUE: 0x7b68eeff,\r\n MEDIUMSPRINGGREEN: 0x00fa9aff,\r\n MEDIUMTURQUOISE: 0x48d1ccff,\r\n MEDIUMVIOLETRED: 0xc71585ff,\r\n MIDNIGHTBLUE: 0x191970ff,\r\n MINTCREAM: 0xf5fffaff,\r\n MISTYROSE: 0xffe4e1ff,\r\n MOCCASIN: 0xffe4b5ff,\r\n NAVAJOWHITE: 0xffdeadff,\r\n NAVY: 0x000080ff,\r\n OLDLACE: 0xfdf5e6ff,\r\n OLIVE: 0x808000ff,\r\n OLIVEDRAB: 0x6b8e23ff,\r\n ORANGE: 0xffa500ff,\r\n ORANGERED: 0xff4500ff,\r\n ORCHID: 0xda70d6ff,\r\n PALEGOLDENROD: 0xeee8aaff,\r\n PALEGREEN: 0x98fb98ff,\r\n PALETURQUOISE: 0xafeeeeff,\r\n PALEVIOLETRED: 0xdb7093ff,\r\n PAPAYAWHIP: 0xffefd5ff,\r\n PEACHPUFF: 0xffdab9ff,\r\n PERU: 0xcd853fff,\r\n PINK: 0xffc0cbff,\r\n PLUM: 0xdda0ddff,\r\n POWDERBLUE: 0xb0e0e6ff,\r\n PURPLE: 0x800080ff,\r\n REBECCAPURPLE: 0x663399ff,\r\n RED: 0xff0000ff,\r\n ROSYBROWN: 0xbc8f8fff,\r\n ROYALBLUE: 0x4169e1ff,\r\n SADDLEBROWN: 0x8b4513ff,\r\n SALMON: 0xfa8072ff,\r\n SANDYBROWN: 0xf4a460ff,\r\n SEAGREEN: 0x2e8b57ff,\r\n SEASHELL: 0xfff5eeff,\r\n SIENNA: 0xa0522dff,\r\n SILVER: 0xc0c0c0ff,\r\n SKYBLUE: 0x87ceebff,\r\n SLATEBLUE: 0x6a5acdff,\r\n SLATEGRAY: 0x708090ff,\r\n SLATEGREY: 0x708090ff,\r\n SNOW: 0xfffafaff,\r\n SPRINGGREEN: 0x00ff7fff,\r\n STEELBLUE: 0x4682b4ff,\r\n TAN: 0xd2b48cff,\r\n TEAL: 0x008080ff,\r\n THISTLE: 0xd8bfd8ff,\r\n TOMATO: 0xff6347ff,\r\n TRANSPARENT: 0x00000000,\r\n TURQUOISE: 0x40e0d0ff,\r\n VIOLET: 0xee82eeff,\r\n WHEAT: 0xf5deb3ff,\r\n WHITE: 0xffffffff,\r\n WHITESMOKE: 0xf5f5f5ff,\r\n YELLOW: 0xffff00ff,\r\n YELLOWGREEN: 0x9acd32ff\r\n };\n\n var PropertyDescriptorParsingType;\r\n (function (PropertyDescriptorParsingType) {\r\n PropertyDescriptorParsingType[PropertyDescriptorParsingType[\"VALUE\"] = 0] = \"VALUE\";\r\n PropertyDescriptorParsingType[PropertyDescriptorParsingType[\"LIST\"] = 1] = \"LIST\";\r\n PropertyDescriptorParsingType[PropertyDescriptorParsingType[\"IDENT_VALUE\"] = 2] = \"IDENT_VALUE\";\r\n PropertyDescriptorParsingType[PropertyDescriptorParsingType[\"TYPE_VALUE\"] = 3] = \"TYPE_VALUE\";\r\n PropertyDescriptorParsingType[PropertyDescriptorParsingType[\"TOKEN_VALUE\"] = 4] = \"TOKEN_VALUE\";\r\n })(PropertyDescriptorParsingType || (PropertyDescriptorParsingType = {}));\n\n var BACKGROUND_CLIP;\r\n (function (BACKGROUND_CLIP) {\r\n BACKGROUND_CLIP[BACKGROUND_CLIP[\"BORDER_BOX\"] = 0] = \"BORDER_BOX\";\r\n BACKGROUND_CLIP[BACKGROUND_CLIP[\"PADDING_BOX\"] = 1] = \"PADDING_BOX\";\r\n BACKGROUND_CLIP[BACKGROUND_CLIP[\"CONTENT_BOX\"] = 2] = \"CONTENT_BOX\";\r\n })(BACKGROUND_CLIP || (BACKGROUND_CLIP = {}));\r\n var backgroundClip = {\r\n name: 'background-clip',\r\n initialValue: 'border-box',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n return tokens.map(function (token) {\r\n if (isIdentToken(token)) {\r\n switch (token.value) {\r\n case 'padding-box':\r\n return BACKGROUND_CLIP.PADDING_BOX;\r\n case 'content-box':\r\n return BACKGROUND_CLIP.CONTENT_BOX;\r\n }\r\n }\r\n return BACKGROUND_CLIP.BORDER_BOX;\r\n });\r\n }\r\n };\n\n var backgroundColor = {\r\n name: \"background-color\",\r\n initialValue: 'transparent',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TYPE_VALUE,\r\n format: 'color'\r\n };\n\n var parseColorStop = function (args) {\r\n var color$1 = color.parse(args[0]);\r\n var stop = args[1];\r\n return stop && isLengthPercentage(stop) ? { color: color$1, stop: stop } : { color: color$1, stop: null };\r\n };\r\n var processColorStops = function (stops, lineLength) {\r\n var first = stops[0];\r\n var last = stops[stops.length - 1];\r\n if (first.stop === null) {\r\n first.stop = ZERO_LENGTH;\r\n }\r\n if (last.stop === null) {\r\n last.stop = HUNDRED_PERCENT;\r\n }\r\n var processStops = [];\r\n var previous = 0;\r\n for (var i = 0; i < stops.length; i++) {\r\n var stop_1 = stops[i].stop;\r\n if (stop_1 !== null) {\r\n var absoluteValue = getAbsoluteValue(stop_1, lineLength);\r\n if (absoluteValue > previous) {\r\n processStops.push(absoluteValue);\r\n }\r\n else {\r\n processStops.push(previous);\r\n }\r\n previous = absoluteValue;\r\n }\r\n else {\r\n processStops.push(null);\r\n }\r\n }\r\n var gapBegin = null;\r\n for (var i = 0; i < processStops.length; i++) {\r\n var stop_2 = processStops[i];\r\n if (stop_2 === null) {\r\n if (gapBegin === null) {\r\n gapBegin = i;\r\n }\r\n }\r\n else if (gapBegin !== null) {\r\n var gapLength = i - gapBegin;\r\n var beforeGap = processStops[gapBegin - 1];\r\n var gapValue = (stop_2 - beforeGap) / (gapLength + 1);\r\n for (var g = 1; g <= gapLength; g++) {\r\n processStops[gapBegin + g - 1] = gapValue * g;\r\n }\r\n gapBegin = null;\r\n }\r\n }\r\n return stops.map(function (_a, i) {\r\n var color = _a.color;\r\n return { color: color, stop: Math.max(Math.min(1, processStops[i] / lineLength), 0) };\r\n });\r\n };\r\n var getAngleFromCorner = function (corner, width, height) {\r\n var centerX = width / 2;\r\n var centerY = height / 2;\r\n var x = getAbsoluteValue(corner[0], width) - centerX;\r\n var y = centerY - getAbsoluteValue(corner[1], height);\r\n return (Math.atan2(y, x) + Math.PI * 2) % (Math.PI * 2);\r\n };\r\n var calculateGradientDirection = function (angle, width, height) {\r\n var radian = typeof angle === 'number' ? angle : getAngleFromCorner(angle, width, height);\r\n var lineLength = Math.abs(width * Math.sin(radian)) + Math.abs(height * Math.cos(radian));\r\n var halfWidth = width / 2;\r\n var halfHeight = height / 2;\r\n var halfLineLength = lineLength / 2;\r\n var yDiff = Math.sin(radian - Math.PI / 2) * halfLineLength;\r\n var xDiff = Math.cos(radian - Math.PI / 2) * halfLineLength;\r\n return [lineLength, halfWidth - xDiff, halfWidth + xDiff, halfHeight - yDiff, halfHeight + yDiff];\r\n };\r\n var distance = function (a, b) { return Math.sqrt(a * a + b * b); };\r\n var findCorner = function (width, height, x, y, closest) {\r\n var corners = [[0, 0], [0, height], [width, 0], [width, height]];\r\n return corners.reduce(function (stat, corner) {\r\n var cx = corner[0], cy = corner[1];\r\n var d = distance(x - cx, y - cy);\r\n if (closest ? d < stat.optimumDistance : d > stat.optimumDistance) {\r\n return {\r\n optimumCorner: corner,\r\n optimumDistance: d\r\n };\r\n }\r\n return stat;\r\n }, {\r\n optimumDistance: closest ? Infinity : -Infinity,\r\n optimumCorner: null\r\n }).optimumCorner;\r\n };\r\n var calculateRadius = function (gradient, x, y, width, height) {\r\n var rx = 0;\r\n var ry = 0;\r\n switch (gradient.size) {\r\n case CSSRadialExtent.CLOSEST_SIDE:\r\n // The ending shape is sized so that that it exactly meets the side of the gradient box closest to the gradient’s center.\r\n // If the shape is an ellipse, it exactly meets the closest side in each dimension.\r\n if (gradient.shape === CSSRadialShape.CIRCLE) {\r\n rx = ry = Math.min(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height));\r\n }\r\n else if (gradient.shape === CSSRadialShape.ELLIPSE) {\r\n rx = Math.min(Math.abs(x), Math.abs(x - width));\r\n ry = Math.min(Math.abs(y), Math.abs(y - height));\r\n }\r\n break;\r\n case CSSRadialExtent.CLOSEST_CORNER:\r\n // The ending shape is sized so that that it passes through the corner of the gradient box closest to the gradient’s center.\r\n // If the shape is an ellipse, the ending shape is given the same aspect-ratio it would have if closest-side were specified.\r\n if (gradient.shape === CSSRadialShape.CIRCLE) {\r\n rx = ry = Math.min(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height));\r\n }\r\n else if (gradient.shape === CSSRadialShape.ELLIPSE) {\r\n // Compute the ratio ry/rx (which is to be the same as for \"closest-side\")\r\n var c = Math.min(Math.abs(y), Math.abs(y - height)) / Math.min(Math.abs(x), Math.abs(x - width));\r\n var _a = findCorner(width, height, x, y, true), cx = _a[0], cy = _a[1];\r\n rx = distance(cx - x, (cy - y) / c);\r\n ry = c * rx;\r\n }\r\n break;\r\n case CSSRadialExtent.FARTHEST_SIDE:\r\n // Same as closest-side, except the ending shape is sized based on the farthest side(s)\r\n if (gradient.shape === CSSRadialShape.CIRCLE) {\r\n rx = ry = Math.max(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height));\r\n }\r\n else if (gradient.shape === CSSRadialShape.ELLIPSE) {\r\n rx = Math.max(Math.abs(x), Math.abs(x - width));\r\n ry = Math.max(Math.abs(y), Math.abs(y - height));\r\n }\r\n break;\r\n case CSSRadialExtent.FARTHEST_CORNER:\r\n // Same as closest-corner, except the ending shape is sized based on the farthest corner.\r\n // If the shape is an ellipse, the ending shape is given the same aspect ratio it would have if farthest-side were specified.\r\n if (gradient.shape === CSSRadialShape.CIRCLE) {\r\n rx = ry = Math.max(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height));\r\n }\r\n else if (gradient.shape === CSSRadialShape.ELLIPSE) {\r\n // Compute the ratio ry/rx (which is to be the same as for \"farthest-side\")\r\n var c = Math.max(Math.abs(y), Math.abs(y - height)) / Math.max(Math.abs(x), Math.abs(x - width));\r\n var _b = findCorner(width, height, x, y, false), cx = _b[0], cy = _b[1];\r\n rx = distance(cx - x, (cy - y) / c);\r\n ry = c * rx;\r\n }\r\n break;\r\n }\r\n if (Array.isArray(gradient.size)) {\r\n rx = getAbsoluteValue(gradient.size[0], width);\r\n ry = gradient.size.length === 2 ? getAbsoluteValue(gradient.size[1], height) : rx;\r\n }\r\n return [rx, ry];\r\n };\n\n var linearGradient = function (tokens) {\r\n var angle$1 = deg(180);\r\n var stops = [];\r\n parseFunctionArgs(tokens).forEach(function (arg, i) {\r\n if (i === 0) {\r\n var firstToken = arg[0];\r\n if (firstToken.type === TokenType.IDENT_TOKEN && firstToken.value === 'to') {\r\n angle$1 = parseNamedSide(arg);\r\n return;\r\n }\r\n else if (isAngle(firstToken)) {\r\n angle$1 = angle.parse(firstToken);\r\n return;\r\n }\r\n }\r\n var colorStop = parseColorStop(arg);\r\n stops.push(colorStop);\r\n });\r\n return { angle: angle$1, stops: stops, type: CSSImageType.LINEAR_GRADIENT };\r\n };\n\n var prefixLinearGradient = function (tokens) {\r\n var angle$1 = deg(180);\r\n var stops = [];\r\n parseFunctionArgs(tokens).forEach(function (arg, i) {\r\n if (i === 0) {\r\n var firstToken = arg[0];\r\n if (firstToken.type === TokenType.IDENT_TOKEN &&\r\n ['top', 'left', 'right', 'bottom'].indexOf(firstToken.value) !== -1) {\r\n angle$1 = parseNamedSide(arg);\r\n return;\r\n }\r\n else if (isAngle(firstToken)) {\r\n angle$1 = (angle.parse(firstToken) + deg(270)) % deg(360);\r\n return;\r\n }\r\n }\r\n var colorStop = parseColorStop(arg);\r\n stops.push(colorStop);\r\n });\r\n return {\r\n angle: angle$1,\r\n stops: stops,\r\n type: CSSImageType.LINEAR_GRADIENT\r\n };\r\n };\n\n var testRangeBounds = function (document) {\r\n var TEST_HEIGHT = 123;\r\n if (document.createRange) {\r\n var range = document.createRange();\r\n if (range.getBoundingClientRect) {\r\n var testElement = document.createElement('boundtest');\r\n testElement.style.height = TEST_HEIGHT + \"px\";\r\n testElement.style.display = 'block';\r\n document.body.appendChild(testElement);\r\n range.selectNode(testElement);\r\n var rangeBounds = range.getBoundingClientRect();\r\n var rangeHeight = Math.round(rangeBounds.height);\r\n document.body.removeChild(testElement);\r\n if (rangeHeight === TEST_HEIGHT) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n };\r\n var testCORS = function () { return typeof new Image().crossOrigin !== 'undefined'; };\r\n var testResponseType = function () { return typeof new XMLHttpRequest().responseType === 'string'; };\r\n var testSVG = function (document) {\r\n var img = new Image();\r\n var canvas = document.createElement('canvas');\r\n var ctx = canvas.getContext('2d');\r\n if (!ctx) {\r\n return false;\r\n }\r\n img.src = \"data:image/svg+xml,\";\r\n try {\r\n ctx.drawImage(img, 0, 0);\r\n canvas.toDataURL();\r\n }\r\n catch (e) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n var isGreenPixel = function (data) {\r\n return data[0] === 0 && data[1] === 255 && data[2] === 0 && data[3] === 255;\r\n };\r\n var testForeignObject = function (document) {\r\n var canvas = document.createElement('canvas');\r\n var size = 100;\r\n canvas.width = size;\r\n canvas.height = size;\r\n var ctx = canvas.getContext('2d');\r\n if (!ctx) {\r\n return Promise.reject(false);\r\n }\r\n ctx.fillStyle = 'rgb(0, 255, 0)';\r\n ctx.fillRect(0, 0, size, size);\r\n var img = new Image();\r\n var greenImageSrc = canvas.toDataURL();\r\n img.src = greenImageSrc;\r\n var svg = createForeignObjectSVG(size, size, 0, 0, img);\r\n ctx.fillStyle = 'red';\r\n ctx.fillRect(0, 0, size, size);\r\n return loadSerializedSVG(svg)\r\n .then(function (img) {\r\n ctx.drawImage(img, 0, 0);\r\n var data = ctx.getImageData(0, 0, size, size).data;\r\n ctx.fillStyle = 'red';\r\n ctx.fillRect(0, 0, size, size);\r\n var node = document.createElement('div');\r\n node.style.backgroundImage = \"url(\" + greenImageSrc + \")\";\r\n node.style.height = size + \"px\";\r\n // Firefox 55 does not render inline tags\r\n return isGreenPixel(data)\r\n ? loadSerializedSVG(createForeignObjectSVG(size, size, 0, 0, node))\r\n : Promise.reject(false);\r\n })\r\n .then(function (img) {\r\n ctx.drawImage(img, 0, 0);\r\n // Edge does not render background-images\r\n return isGreenPixel(ctx.getImageData(0, 0, size, size).data);\r\n })\r\n .catch(function () { return false; });\r\n };\r\n var createForeignObjectSVG = function (width, height, x, y, node) {\r\n var xmlns = 'http://www.w3.org/2000/svg';\r\n var svg = document.createElementNS(xmlns, 'svg');\r\n var foreignObject = document.createElementNS(xmlns, 'foreignObject');\r\n svg.setAttributeNS(null, 'width', width.toString());\r\n svg.setAttributeNS(null, 'height', height.toString());\r\n foreignObject.setAttributeNS(null, 'width', '100%');\r\n foreignObject.setAttributeNS(null, 'height', '100%');\r\n foreignObject.setAttributeNS(null, 'x', x.toString());\r\n foreignObject.setAttributeNS(null, 'y', y.toString());\r\n foreignObject.setAttributeNS(null, 'externalResourcesRequired', 'true');\r\n svg.appendChild(foreignObject);\r\n foreignObject.appendChild(node);\r\n return svg;\r\n };\r\n var loadSerializedSVG = function (svg) {\r\n return new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n img.onload = function () { return resolve(img); };\r\n img.onerror = reject;\r\n img.src = \"data:image/svg+xml;charset=utf-8,\" + encodeURIComponent(new XMLSerializer().serializeToString(svg));\r\n });\r\n };\r\n var FEATURES = {\r\n get SUPPORT_RANGE_BOUNDS() {\r\n var value = testRangeBounds(document);\r\n Object.defineProperty(FEATURES, 'SUPPORT_RANGE_BOUNDS', { value: value });\r\n return value;\r\n },\r\n get SUPPORT_SVG_DRAWING() {\r\n var value = testSVG(document);\r\n Object.defineProperty(FEATURES, 'SUPPORT_SVG_DRAWING', { value: value });\r\n return value;\r\n },\r\n get SUPPORT_FOREIGNOBJECT_DRAWING() {\r\n var value = typeof Array.from === 'function' && typeof window.fetch === 'function'\r\n ? testForeignObject(document)\r\n : Promise.resolve(false);\r\n Object.defineProperty(FEATURES, 'SUPPORT_FOREIGNOBJECT_DRAWING', { value: value });\r\n return value;\r\n },\r\n get SUPPORT_CORS_IMAGES() {\r\n var value = testCORS();\r\n Object.defineProperty(FEATURES, 'SUPPORT_CORS_IMAGES', { value: value });\r\n return value;\r\n },\r\n get SUPPORT_RESPONSE_TYPE() {\r\n var value = testResponseType();\r\n Object.defineProperty(FEATURES, 'SUPPORT_RESPONSE_TYPE', { value: value });\r\n return value;\r\n },\r\n get SUPPORT_CORS_XHR() {\r\n var value = 'withCredentials' in new XMLHttpRequest();\r\n Object.defineProperty(FEATURES, 'SUPPORT_CORS_XHR', { value: value });\r\n return value;\r\n }\r\n };\n\n var Logger = /** @class */ (function () {\r\n function Logger(_a) {\r\n var id = _a.id, enabled = _a.enabled;\r\n this.id = id;\r\n this.enabled = enabled;\r\n this.start = Date.now();\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n Logger.prototype.debug = function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n if (this.enabled) {\r\n // eslint-disable-next-line no-console\r\n if (typeof window !== 'undefined' && window.console && typeof console.debug === 'function') {\r\n // eslint-disable-next-line no-console\r\n console.debug.apply(console, [this.id, this.getTime() + \"ms\"].concat(args));\r\n }\r\n else {\r\n this.info.apply(this, args);\r\n }\r\n }\r\n };\r\n Logger.prototype.getTime = function () {\r\n return Date.now() - this.start;\r\n };\r\n Logger.create = function (options) {\r\n Logger.instances[options.id] = new Logger(options);\r\n };\r\n Logger.destroy = function (id) {\r\n delete Logger.instances[id];\r\n };\r\n Logger.getInstance = function (id) {\r\n var instance = Logger.instances[id];\r\n if (typeof instance === 'undefined') {\r\n throw new Error(\"No logger instance found with id \" + id);\r\n }\r\n return instance;\r\n };\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n Logger.prototype.info = function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n if (this.enabled) {\r\n // eslint-disable-next-line no-console\r\n if (typeof window !== 'undefined' && window.console && typeof console.info === 'function') {\r\n // eslint-disable-next-line no-console\r\n console.info.apply(console, [this.id, this.getTime() + \"ms\"].concat(args));\r\n }\r\n }\r\n };\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n Logger.prototype.error = function () {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i] = arguments[_i];\r\n }\r\n if (this.enabled) {\r\n // eslint-disable-next-line no-console\r\n if (typeof window !== 'undefined' && window.console && typeof console.error === 'function') {\r\n // eslint-disable-next-line no-console\r\n console.error.apply(console, [this.id, this.getTime() + \"ms\"].concat(args));\r\n }\r\n else {\r\n this.info.apply(this, args);\r\n }\r\n }\r\n };\r\n Logger.instances = {};\r\n return Logger;\r\n }());\n\n var CacheStorage = /** @class */ (function () {\r\n function CacheStorage() {\r\n }\r\n CacheStorage.create = function (name, options) {\r\n return (CacheStorage._caches[name] = new Cache(name, options));\r\n };\r\n CacheStorage.destroy = function (name) {\r\n delete CacheStorage._caches[name];\r\n };\r\n CacheStorage.open = function (name) {\r\n var cache = CacheStorage._caches[name];\r\n if (typeof cache !== 'undefined') {\r\n return cache;\r\n }\r\n throw new Error(\"Cache with key \\\"\" + name + \"\\\" not found\");\r\n };\r\n CacheStorage.getOrigin = function (url) {\r\n var link = CacheStorage._link;\r\n if (!link) {\r\n return 'about:blank';\r\n }\r\n link.href = url;\r\n link.href = link.href; // IE9, LOL! - http://jsfiddle.net/niklasvh/2e48b/\r\n return link.protocol + link.hostname + link.port;\r\n };\r\n CacheStorage.isSameOrigin = function (src) {\r\n return CacheStorage.getOrigin(src) === CacheStorage._origin;\r\n };\r\n CacheStorage.setContext = function (window) {\r\n CacheStorage._link = window.document.createElement('a');\r\n CacheStorage._origin = CacheStorage.getOrigin(window.location.href);\r\n };\r\n CacheStorage.getInstance = function () {\r\n var current = CacheStorage._current;\r\n if (current === null) {\r\n throw new Error(\"No cache instance attached\");\r\n }\r\n return current;\r\n };\r\n CacheStorage.attachInstance = function (cache) {\r\n CacheStorage._current = cache;\r\n };\r\n CacheStorage.detachInstance = function () {\r\n CacheStorage._current = null;\r\n };\r\n CacheStorage._caches = {};\r\n CacheStorage._origin = 'about:blank';\r\n CacheStorage._current = null;\r\n return CacheStorage;\r\n }());\r\n var Cache = /** @class */ (function () {\r\n function Cache(id, options) {\r\n this.id = id;\r\n this._options = options;\r\n this._cache = {};\r\n }\r\n Cache.prototype.addImage = function (src) {\r\n var result = Promise.resolve();\r\n if (this.has(src)) {\r\n return result;\r\n }\r\n if (isBlobImage(src) || isRenderable(src)) {\r\n this._cache[src] = this.loadImage(src);\r\n return result;\r\n }\r\n return result;\r\n };\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n Cache.prototype.match = function (src) {\r\n return this._cache[src];\r\n };\r\n Cache.prototype.loadImage = function (key) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var isSameOrigin, useCORS, useProxy, src;\r\n var _this = this;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n isSameOrigin = CacheStorage.isSameOrigin(key);\r\n useCORS = !isInlineImage(key) && this._options.useCORS === true && FEATURES.SUPPORT_CORS_IMAGES && !isSameOrigin;\r\n useProxy = !isInlineImage(key) &&\r\n !isSameOrigin &&\r\n typeof this._options.proxy === 'string' &&\r\n FEATURES.SUPPORT_CORS_XHR &&\r\n !useCORS;\r\n if (!isSameOrigin && this._options.allowTaint === false && !isInlineImage(key) && !useProxy && !useCORS) {\r\n return [2 /*return*/];\r\n }\r\n src = key;\r\n if (!useProxy) return [3 /*break*/, 2];\r\n return [4 /*yield*/, this.proxy(src)];\r\n case 1:\r\n src = _a.sent();\r\n _a.label = 2;\r\n case 2:\r\n Logger.getInstance(this.id).debug(\"Added image \" + key.substring(0, 256));\r\n return [4 /*yield*/, new Promise(function (resolve, reject) {\r\n var img = new Image();\r\n img.onload = function () { return resolve(img); };\r\n img.onerror = reject;\r\n //ios safari 10.3 taints canvas with data urls unless crossOrigin is set to anonymous\r\n if (isInlineBase64Image(src) || useCORS) {\r\n img.crossOrigin = 'anonymous';\r\n }\r\n img.src = src;\r\n if (img.complete === true) {\r\n // Inline XML images may fail to parse, throwing an Error later on\r\n setTimeout(function () { return resolve(img); }, 500);\r\n }\r\n if (_this._options.imageTimeout > 0) {\r\n setTimeout(function () { return reject(\"Timed out (\" + _this._options.imageTimeout + \"ms) loading image\"); }, _this._options.imageTimeout);\r\n }\r\n })];\r\n case 3: return [2 /*return*/, _a.sent()];\r\n }\r\n });\r\n });\r\n };\r\n Cache.prototype.has = function (key) {\r\n return typeof this._cache[key] !== 'undefined';\r\n };\r\n Cache.prototype.keys = function () {\r\n return Promise.resolve(Object.keys(this._cache));\r\n };\r\n Cache.prototype.proxy = function (src) {\r\n var _this = this;\r\n var proxy = this._options.proxy;\r\n if (!proxy) {\r\n throw new Error('No proxy defined');\r\n }\r\n var key = src.substring(0, 256);\r\n return new Promise(function (resolve, reject) {\r\n var responseType = FEATURES.SUPPORT_RESPONSE_TYPE ? 'blob' : 'text';\r\n var xhr = new XMLHttpRequest();\r\n xhr.onload = function () {\r\n if (xhr.status === 200) {\r\n if (responseType === 'text') {\r\n resolve(xhr.response);\r\n }\r\n else {\r\n var reader_1 = new FileReader();\r\n reader_1.addEventListener('load', function () { return resolve(reader_1.result); }, false);\r\n reader_1.addEventListener('error', function (e) { return reject(e); }, false);\r\n reader_1.readAsDataURL(xhr.response);\r\n }\r\n }\r\n else {\r\n reject(\"Failed to proxy resource \" + key + \" with status code \" + xhr.status);\r\n }\r\n };\r\n xhr.onerror = reject;\r\n xhr.open('GET', proxy + \"?url=\" + encodeURIComponent(src) + \"&responseType=\" + responseType);\r\n if (responseType !== 'text' && xhr instanceof XMLHttpRequest) {\r\n xhr.responseType = responseType;\r\n }\r\n if (_this._options.imageTimeout) {\r\n var timeout_1 = _this._options.imageTimeout;\r\n xhr.timeout = timeout_1;\r\n xhr.ontimeout = function () { return reject(\"Timed out (\" + timeout_1 + \"ms) proxying \" + key); };\r\n }\r\n xhr.send();\r\n });\r\n };\r\n return Cache;\r\n }());\r\n var INLINE_SVG = /^data:image\\/svg\\+xml/i;\r\n var INLINE_BASE64 = /^data:image\\/.*;base64,/i;\r\n var INLINE_IMG = /^data:image\\/.*/i;\r\n var isRenderable = function (src) { return FEATURES.SUPPORT_SVG_DRAWING || !isSVG(src); };\r\n var isInlineImage = function (src) { return INLINE_IMG.test(src); };\r\n var isInlineBase64Image = function (src) { return INLINE_BASE64.test(src); };\r\n var isBlobImage = function (src) { return src.substr(0, 4) === 'blob'; };\r\n var isSVG = function (src) { return src.substr(-3).toLowerCase() === 'svg' || INLINE_SVG.test(src); };\n\n var webkitGradient = function (tokens) {\r\n var angle = deg(180);\r\n var stops = [];\r\n var type = CSSImageType.LINEAR_GRADIENT;\r\n var shape = CSSRadialShape.CIRCLE;\r\n var size = CSSRadialExtent.FARTHEST_CORNER;\r\n var position = [];\r\n parseFunctionArgs(tokens).forEach(function (arg, i) {\r\n var firstToken = arg[0];\r\n if (i === 0) {\r\n if (isIdentToken(firstToken) && firstToken.value === 'linear') {\r\n type = CSSImageType.LINEAR_GRADIENT;\r\n return;\r\n }\r\n else if (isIdentToken(firstToken) && firstToken.value === 'radial') {\r\n type = CSSImageType.RADIAL_GRADIENT;\r\n return;\r\n }\r\n }\r\n if (firstToken.type === TokenType.FUNCTION) {\r\n if (firstToken.name === 'from') {\r\n var color$1 = color.parse(firstToken.values[0]);\r\n stops.push({ stop: ZERO_LENGTH, color: color$1 });\r\n }\r\n else if (firstToken.name === 'to') {\r\n var color$1 = color.parse(firstToken.values[0]);\r\n stops.push({ stop: HUNDRED_PERCENT, color: color$1 });\r\n }\r\n else if (firstToken.name === 'color-stop') {\r\n var values = firstToken.values.filter(nonFunctionArgSeparator);\r\n if (values.length === 2) {\r\n var color$1 = color.parse(values[1]);\r\n var stop_1 = values[0];\r\n if (isNumberToken(stop_1)) {\r\n stops.push({\r\n stop: { type: TokenType.PERCENTAGE_TOKEN, number: stop_1.number * 100, flags: stop_1.flags },\r\n color: color$1\r\n });\r\n }\r\n }\r\n }\r\n }\r\n });\r\n return type === CSSImageType.LINEAR_GRADIENT\r\n ? {\r\n angle: (angle + deg(180)) % deg(360),\r\n stops: stops,\r\n type: type\r\n }\r\n : { size: size, shape: shape, stops: stops, position: position, type: type };\r\n };\n\n var CLOSEST_SIDE = 'closest-side';\r\n var FARTHEST_SIDE = 'farthest-side';\r\n var CLOSEST_CORNER = 'closest-corner';\r\n var FARTHEST_CORNER = 'farthest-corner';\r\n var CIRCLE = 'circle';\r\n var ELLIPSE = 'ellipse';\r\n var COVER = 'cover';\r\n var CONTAIN = 'contain';\r\n var radialGradient = function (tokens) {\r\n var shape = CSSRadialShape.CIRCLE;\r\n var size = CSSRadialExtent.FARTHEST_CORNER;\r\n var stops = [];\r\n var position = [];\r\n parseFunctionArgs(tokens).forEach(function (arg, i) {\r\n var isColorStop = true;\r\n if (i === 0) {\r\n var isAtPosition_1 = false;\r\n isColorStop = arg.reduce(function (acc, token) {\r\n if (isAtPosition_1) {\r\n if (isIdentToken(token)) {\r\n switch (token.value) {\r\n case 'center':\r\n position.push(FIFTY_PERCENT);\r\n return acc;\r\n case 'top':\r\n case 'left':\r\n position.push(ZERO_LENGTH);\r\n return acc;\r\n case 'right':\r\n case 'bottom':\r\n position.push(HUNDRED_PERCENT);\r\n return acc;\r\n }\r\n }\r\n else if (isLengthPercentage(token) || isLength(token)) {\r\n position.push(token);\r\n }\r\n }\r\n else if (isIdentToken(token)) {\r\n switch (token.value) {\r\n case CIRCLE:\r\n shape = CSSRadialShape.CIRCLE;\r\n return false;\r\n case ELLIPSE:\r\n shape = CSSRadialShape.ELLIPSE;\r\n return false;\r\n case 'at':\r\n isAtPosition_1 = true;\r\n return false;\r\n case CLOSEST_SIDE:\r\n size = CSSRadialExtent.CLOSEST_SIDE;\r\n return false;\r\n case COVER:\r\n case FARTHEST_SIDE:\r\n size = CSSRadialExtent.FARTHEST_SIDE;\r\n return false;\r\n case CONTAIN:\r\n case CLOSEST_CORNER:\r\n size = CSSRadialExtent.CLOSEST_CORNER;\r\n return false;\r\n case FARTHEST_CORNER:\r\n size = CSSRadialExtent.FARTHEST_CORNER;\r\n return false;\r\n }\r\n }\r\n else if (isLength(token) || isLengthPercentage(token)) {\r\n if (!Array.isArray(size)) {\r\n size = [];\r\n }\r\n size.push(token);\r\n return false;\r\n }\r\n return acc;\r\n }, isColorStop);\r\n }\r\n if (isColorStop) {\r\n var colorStop = parseColorStop(arg);\r\n stops.push(colorStop);\r\n }\r\n });\r\n return { size: size, shape: shape, stops: stops, position: position, type: CSSImageType.RADIAL_GRADIENT };\r\n };\n\n var prefixRadialGradient = function (tokens) {\r\n var shape = CSSRadialShape.CIRCLE;\r\n var size = CSSRadialExtent.FARTHEST_CORNER;\r\n var stops = [];\r\n var position = [];\r\n parseFunctionArgs(tokens).forEach(function (arg, i) {\r\n var isColorStop = true;\r\n if (i === 0) {\r\n isColorStop = arg.reduce(function (acc, token) {\r\n if (isIdentToken(token)) {\r\n switch (token.value) {\r\n case 'center':\r\n position.push(FIFTY_PERCENT);\r\n return false;\r\n case 'top':\r\n case 'left':\r\n position.push(ZERO_LENGTH);\r\n return false;\r\n case 'right':\r\n case 'bottom':\r\n position.push(HUNDRED_PERCENT);\r\n return false;\r\n }\r\n }\r\n else if (isLengthPercentage(token) || isLength(token)) {\r\n position.push(token);\r\n return false;\r\n }\r\n return acc;\r\n }, isColorStop);\r\n }\r\n else if (i === 1) {\r\n isColorStop = arg.reduce(function (acc, token) {\r\n if (isIdentToken(token)) {\r\n switch (token.value) {\r\n case CIRCLE:\r\n shape = CSSRadialShape.CIRCLE;\r\n return false;\r\n case ELLIPSE:\r\n shape = CSSRadialShape.ELLIPSE;\r\n return false;\r\n case CONTAIN:\r\n case CLOSEST_SIDE:\r\n size = CSSRadialExtent.CLOSEST_SIDE;\r\n return false;\r\n case FARTHEST_SIDE:\r\n size = CSSRadialExtent.FARTHEST_SIDE;\r\n return false;\r\n case CLOSEST_CORNER:\r\n size = CSSRadialExtent.CLOSEST_CORNER;\r\n return false;\r\n case COVER:\r\n case FARTHEST_CORNER:\r\n size = CSSRadialExtent.FARTHEST_CORNER;\r\n return false;\r\n }\r\n }\r\n else if (isLength(token) || isLengthPercentage(token)) {\r\n if (!Array.isArray(size)) {\r\n size = [];\r\n }\r\n size.push(token);\r\n return false;\r\n }\r\n return acc;\r\n }, isColorStop);\r\n }\r\n if (isColorStop) {\r\n var colorStop = parseColorStop(arg);\r\n stops.push(colorStop);\r\n }\r\n });\r\n return { size: size, shape: shape, stops: stops, position: position, type: CSSImageType.RADIAL_GRADIENT };\r\n };\n\n var CSSImageType;\r\n (function (CSSImageType) {\r\n CSSImageType[CSSImageType[\"URL\"] = 0] = \"URL\";\r\n CSSImageType[CSSImageType[\"LINEAR_GRADIENT\"] = 1] = \"LINEAR_GRADIENT\";\r\n CSSImageType[CSSImageType[\"RADIAL_GRADIENT\"] = 2] = \"RADIAL_GRADIENT\";\r\n })(CSSImageType || (CSSImageType = {}));\r\n var isLinearGradient = function (background) {\r\n return background.type === CSSImageType.LINEAR_GRADIENT;\r\n };\r\n var isRadialGradient = function (background) {\r\n return background.type === CSSImageType.RADIAL_GRADIENT;\r\n };\r\n var CSSRadialShape;\r\n (function (CSSRadialShape) {\r\n CSSRadialShape[CSSRadialShape[\"CIRCLE\"] = 0] = \"CIRCLE\";\r\n CSSRadialShape[CSSRadialShape[\"ELLIPSE\"] = 1] = \"ELLIPSE\";\r\n })(CSSRadialShape || (CSSRadialShape = {}));\r\n var CSSRadialExtent;\r\n (function (CSSRadialExtent) {\r\n CSSRadialExtent[CSSRadialExtent[\"CLOSEST_SIDE\"] = 0] = \"CLOSEST_SIDE\";\r\n CSSRadialExtent[CSSRadialExtent[\"FARTHEST_SIDE\"] = 1] = \"FARTHEST_SIDE\";\r\n CSSRadialExtent[CSSRadialExtent[\"CLOSEST_CORNER\"] = 2] = \"CLOSEST_CORNER\";\r\n CSSRadialExtent[CSSRadialExtent[\"FARTHEST_CORNER\"] = 3] = \"FARTHEST_CORNER\";\r\n })(CSSRadialExtent || (CSSRadialExtent = {}));\r\n var image = {\r\n name: 'image',\r\n parse: function (value) {\r\n if (value.type === TokenType.URL_TOKEN) {\r\n var image_1 = { url: value.value, type: CSSImageType.URL };\r\n CacheStorage.getInstance().addImage(value.value);\r\n return image_1;\r\n }\r\n if (value.type === TokenType.FUNCTION) {\r\n var imageFunction = SUPPORTED_IMAGE_FUNCTIONS[value.name];\r\n if (typeof imageFunction === 'undefined') {\r\n throw new Error(\"Attempting to parse an unsupported image function \\\"\" + value.name + \"\\\"\");\r\n }\r\n return imageFunction(value.values);\r\n }\r\n throw new Error(\"Unsupported image type\");\r\n }\r\n };\r\n function isSupportedImage(value) {\r\n return value.type !== TokenType.FUNCTION || SUPPORTED_IMAGE_FUNCTIONS[value.name];\r\n }\r\n var SUPPORTED_IMAGE_FUNCTIONS = {\r\n 'linear-gradient': linearGradient,\r\n '-moz-linear-gradient': prefixLinearGradient,\r\n '-ms-linear-gradient': prefixLinearGradient,\r\n '-o-linear-gradient': prefixLinearGradient,\r\n '-webkit-linear-gradient': prefixLinearGradient,\r\n 'radial-gradient': radialGradient,\r\n '-moz-radial-gradient': prefixRadialGradient,\r\n '-ms-radial-gradient': prefixRadialGradient,\r\n '-o-radial-gradient': prefixRadialGradient,\r\n '-webkit-radial-gradient': prefixRadialGradient,\r\n '-webkit-gradient': webkitGradient\r\n };\n\n var backgroundImage = {\r\n name: 'background-image',\r\n initialValue: 'none',\r\n type: PropertyDescriptorParsingType.LIST,\r\n prefix: false,\r\n parse: function (tokens) {\r\n if (tokens.length === 0) {\r\n return [];\r\n }\r\n var first = tokens[0];\r\n if (first.type === TokenType.IDENT_TOKEN && first.value === 'none') {\r\n return [];\r\n }\r\n return tokens.filter(function (value) { return nonFunctionArgSeparator(value) && isSupportedImage(value); }).map(image.parse);\r\n }\r\n };\n\n var backgroundOrigin = {\r\n name: 'background-origin',\r\n initialValue: 'border-box',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n return tokens.map(function (token) {\r\n if (isIdentToken(token)) {\r\n switch (token.value) {\r\n case 'padding-box':\r\n return 1 /* PADDING_BOX */;\r\n case 'content-box':\r\n return 2 /* CONTENT_BOX */;\r\n }\r\n }\r\n return 0 /* BORDER_BOX */;\r\n });\r\n }\r\n };\n\n var backgroundPosition = {\r\n name: 'background-position',\r\n initialValue: '0% 0%',\r\n type: PropertyDescriptorParsingType.LIST,\r\n prefix: false,\r\n parse: function (tokens) {\r\n return parseFunctionArgs(tokens)\r\n .map(function (values) { return values.filter(isLengthPercentage); })\r\n .map(parseLengthPercentageTuple);\r\n }\r\n };\n\n var BACKGROUND_REPEAT;\r\n (function (BACKGROUND_REPEAT) {\r\n BACKGROUND_REPEAT[BACKGROUND_REPEAT[\"REPEAT\"] = 0] = \"REPEAT\";\r\n BACKGROUND_REPEAT[BACKGROUND_REPEAT[\"NO_REPEAT\"] = 1] = \"NO_REPEAT\";\r\n BACKGROUND_REPEAT[BACKGROUND_REPEAT[\"REPEAT_X\"] = 2] = \"REPEAT_X\";\r\n BACKGROUND_REPEAT[BACKGROUND_REPEAT[\"REPEAT_Y\"] = 3] = \"REPEAT_Y\";\r\n })(BACKGROUND_REPEAT || (BACKGROUND_REPEAT = {}));\r\n var backgroundRepeat = {\r\n name: 'background-repeat',\r\n initialValue: 'repeat',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n return parseFunctionArgs(tokens)\r\n .map(function (values) {\r\n return values\r\n .filter(isIdentToken)\r\n .map(function (token) { return token.value; })\r\n .join(' ');\r\n })\r\n .map(parseBackgroundRepeat);\r\n }\r\n };\r\n var parseBackgroundRepeat = function (value) {\r\n switch (value) {\r\n case 'no-repeat':\r\n return BACKGROUND_REPEAT.NO_REPEAT;\r\n case 'repeat-x':\r\n case 'repeat no-repeat':\r\n return BACKGROUND_REPEAT.REPEAT_X;\r\n case 'repeat-y':\r\n case 'no-repeat repeat':\r\n return BACKGROUND_REPEAT.REPEAT_Y;\r\n case 'repeat':\r\n default:\r\n return BACKGROUND_REPEAT.REPEAT;\r\n }\r\n };\n\n var BACKGROUND_SIZE;\r\n (function (BACKGROUND_SIZE) {\r\n BACKGROUND_SIZE[\"AUTO\"] = \"auto\";\r\n BACKGROUND_SIZE[\"CONTAIN\"] = \"contain\";\r\n BACKGROUND_SIZE[\"COVER\"] = \"cover\";\r\n })(BACKGROUND_SIZE || (BACKGROUND_SIZE = {}));\r\n var backgroundSize = {\r\n name: 'background-size',\r\n initialValue: '0',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n return parseFunctionArgs(tokens).map(function (values) { return values.filter(isBackgroundSizeInfoToken); });\r\n }\r\n };\r\n var isBackgroundSizeInfoToken = function (value) {\r\n return isIdentToken(value) || isLengthPercentage(value);\r\n };\n\n var borderColorForSide = function (side) { return ({\r\n name: \"border-\" + side + \"-color\",\r\n initialValue: 'transparent',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TYPE_VALUE,\r\n format: 'color'\r\n }); };\r\n var borderTopColor = borderColorForSide('top');\r\n var borderRightColor = borderColorForSide('right');\r\n var borderBottomColor = borderColorForSide('bottom');\r\n var borderLeftColor = borderColorForSide('left');\n\n var borderRadiusForSide = function (side) { return ({\r\n name: \"border-radius-\" + side,\r\n initialValue: '0 0',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) { return parseLengthPercentageTuple(tokens.filter(isLengthPercentage)); }\r\n }); };\r\n var borderTopLeftRadius = borderRadiusForSide('top-left');\r\n var borderTopRightRadius = borderRadiusForSide('top-right');\r\n var borderBottomRightRadius = borderRadiusForSide('bottom-right');\r\n var borderBottomLeftRadius = borderRadiusForSide('bottom-left');\n\n var BORDER_STYLE;\r\n (function (BORDER_STYLE) {\r\n BORDER_STYLE[BORDER_STYLE[\"NONE\"] = 0] = \"NONE\";\r\n BORDER_STYLE[BORDER_STYLE[\"SOLID\"] = 1] = \"SOLID\";\r\n })(BORDER_STYLE || (BORDER_STYLE = {}));\r\n var borderStyleForSide = function (side) { return ({\r\n name: \"border-\" + side + \"-style\",\r\n initialValue: 'solid',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (style) {\r\n switch (style) {\r\n case 'none':\r\n return BORDER_STYLE.NONE;\r\n }\r\n return BORDER_STYLE.SOLID;\r\n }\r\n }); };\r\n var borderTopStyle = borderStyleForSide('top');\r\n var borderRightStyle = borderStyleForSide('right');\r\n var borderBottomStyle = borderStyleForSide('bottom');\r\n var borderLeftStyle = borderStyleForSide('left');\n\n var borderWidthForSide = function (side) { return ({\r\n name: \"border-\" + side + \"-width\",\r\n initialValue: '0',\r\n type: PropertyDescriptorParsingType.VALUE,\r\n prefix: false,\r\n parse: function (token) {\r\n if (isDimensionToken(token)) {\r\n return token.number;\r\n }\r\n return 0;\r\n }\r\n }); };\r\n var borderTopWidth = borderWidthForSide('top');\r\n var borderRightWidth = borderWidthForSide('right');\r\n var borderBottomWidth = borderWidthForSide('bottom');\r\n var borderLeftWidth = borderWidthForSide('left');\n\n var color$1 = {\r\n name: \"color\",\r\n initialValue: 'transparent',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TYPE_VALUE,\r\n format: 'color'\r\n };\n\n var display = {\r\n name: 'display',\r\n initialValue: 'inline-block',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n return tokens.filter(isIdentToken).reduce(function (bit, token) {\r\n return bit | parseDisplayValue(token.value);\r\n }, 0 /* NONE */);\r\n }\r\n };\r\n var parseDisplayValue = function (display) {\r\n switch (display) {\r\n case 'block':\r\n return 2 /* BLOCK */;\r\n case 'inline':\r\n return 4 /* INLINE */;\r\n case 'run-in':\r\n return 8 /* RUN_IN */;\r\n case 'flow':\r\n return 16 /* FLOW */;\r\n case 'flow-root':\r\n return 32 /* FLOW_ROOT */;\r\n case 'table':\r\n return 64 /* TABLE */;\r\n case 'flex':\r\n case '-webkit-flex':\r\n return 128 /* FLEX */;\r\n case 'grid':\r\n case '-ms-grid':\r\n return 256 /* GRID */;\r\n case 'ruby':\r\n return 512 /* RUBY */;\r\n case 'subgrid':\r\n return 1024 /* SUBGRID */;\r\n case 'list-item':\r\n return 2048 /* LIST_ITEM */;\r\n case 'table-row-group':\r\n return 4096 /* TABLE_ROW_GROUP */;\r\n case 'table-header-group':\r\n return 8192 /* TABLE_HEADER_GROUP */;\r\n case 'table-footer-group':\r\n return 16384 /* TABLE_FOOTER_GROUP */;\r\n case 'table-row':\r\n return 32768 /* TABLE_ROW */;\r\n case 'table-cell':\r\n return 65536 /* TABLE_CELL */;\r\n case 'table-column-group':\r\n return 131072 /* TABLE_COLUMN_GROUP */;\r\n case 'table-column':\r\n return 262144 /* TABLE_COLUMN */;\r\n case 'table-caption':\r\n return 524288 /* TABLE_CAPTION */;\r\n case 'ruby-base':\r\n return 1048576 /* RUBY_BASE */;\r\n case 'ruby-text':\r\n return 2097152 /* RUBY_TEXT */;\r\n case 'ruby-base-container':\r\n return 4194304 /* RUBY_BASE_CONTAINER */;\r\n case 'ruby-text-container':\r\n return 8388608 /* RUBY_TEXT_CONTAINER */;\r\n case 'contents':\r\n return 16777216 /* CONTENTS */;\r\n case 'inline-block':\r\n return 33554432 /* INLINE_BLOCK */;\r\n case 'inline-list-item':\r\n return 67108864 /* INLINE_LIST_ITEM */;\r\n case 'inline-table':\r\n return 134217728 /* INLINE_TABLE */;\r\n case 'inline-flex':\r\n return 268435456 /* INLINE_FLEX */;\r\n case 'inline-grid':\r\n return 536870912 /* INLINE_GRID */;\r\n }\r\n return 0 /* NONE */;\r\n };\n\n var FLOAT;\r\n (function (FLOAT) {\r\n FLOAT[FLOAT[\"NONE\"] = 0] = \"NONE\";\r\n FLOAT[FLOAT[\"LEFT\"] = 1] = \"LEFT\";\r\n FLOAT[FLOAT[\"RIGHT\"] = 2] = \"RIGHT\";\r\n FLOAT[FLOAT[\"INLINE_START\"] = 3] = \"INLINE_START\";\r\n FLOAT[FLOAT[\"INLINE_END\"] = 4] = \"INLINE_END\";\r\n })(FLOAT || (FLOAT = {}));\r\n var float = {\r\n name: 'float',\r\n initialValue: 'none',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (float) {\r\n switch (float) {\r\n case 'left':\r\n return FLOAT.LEFT;\r\n case 'right':\r\n return FLOAT.RIGHT;\r\n case 'inline-start':\r\n return FLOAT.INLINE_START;\r\n case 'inline-end':\r\n return FLOAT.INLINE_END;\r\n }\r\n return FLOAT.NONE;\r\n }\r\n };\n\n var letterSpacing = {\r\n name: 'letter-spacing',\r\n initialValue: '0',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.VALUE,\r\n parse: function (token) {\r\n if (token.type === TokenType.IDENT_TOKEN && token.value === 'normal') {\r\n return 0;\r\n }\r\n if (token.type === TokenType.NUMBER_TOKEN) {\r\n return token.number;\r\n }\r\n if (token.type === TokenType.DIMENSION_TOKEN) {\r\n return token.number;\r\n }\r\n return 0;\r\n }\r\n };\n\n var LINE_BREAK;\r\n (function (LINE_BREAK) {\r\n LINE_BREAK[\"NORMAL\"] = \"normal\";\r\n LINE_BREAK[\"STRICT\"] = \"strict\";\r\n })(LINE_BREAK || (LINE_BREAK = {}));\r\n var lineBreak = {\r\n name: 'line-break',\r\n initialValue: 'normal',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (lineBreak) {\r\n switch (lineBreak) {\r\n case 'strict':\r\n return LINE_BREAK.STRICT;\r\n case 'normal':\r\n default:\r\n return LINE_BREAK.NORMAL;\r\n }\r\n }\r\n };\n\n var lineHeight = {\r\n name: 'line-height',\r\n initialValue: 'normal',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TOKEN_VALUE\r\n };\r\n var computeLineHeight = function (token, fontSize) {\r\n if (isIdentToken(token) && token.value === 'normal') {\r\n return 1.2 * fontSize;\r\n }\r\n else if (token.type === TokenType.NUMBER_TOKEN) {\r\n return fontSize * token.number;\r\n }\r\n else if (isLengthPercentage(token)) {\r\n return getAbsoluteValue(token, fontSize);\r\n }\r\n return fontSize;\r\n };\n\n var listStyleImage = {\r\n name: 'list-style-image',\r\n initialValue: 'none',\r\n type: PropertyDescriptorParsingType.VALUE,\r\n prefix: false,\r\n parse: function (token) {\r\n if (token.type === TokenType.IDENT_TOKEN && token.value === 'none') {\r\n return null;\r\n }\r\n return image.parse(token);\r\n }\r\n };\n\n var LIST_STYLE_POSITION;\r\n (function (LIST_STYLE_POSITION) {\r\n LIST_STYLE_POSITION[LIST_STYLE_POSITION[\"INSIDE\"] = 0] = \"INSIDE\";\r\n LIST_STYLE_POSITION[LIST_STYLE_POSITION[\"OUTSIDE\"] = 1] = \"OUTSIDE\";\r\n })(LIST_STYLE_POSITION || (LIST_STYLE_POSITION = {}));\r\n var listStylePosition = {\r\n name: 'list-style-position',\r\n initialValue: 'outside',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (position) {\r\n switch (position) {\r\n case 'inside':\r\n return LIST_STYLE_POSITION.INSIDE;\r\n case 'outside':\r\n default:\r\n return LIST_STYLE_POSITION.OUTSIDE;\r\n }\r\n }\r\n };\n\n var LIST_STYLE_TYPE;\r\n (function (LIST_STYLE_TYPE) {\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"NONE\"] = -1] = \"NONE\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"DISC\"] = 0] = \"DISC\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"CIRCLE\"] = 1] = \"CIRCLE\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"SQUARE\"] = 2] = \"SQUARE\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"DECIMAL\"] = 3] = \"DECIMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"CJK_DECIMAL\"] = 4] = \"CJK_DECIMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"DECIMAL_LEADING_ZERO\"] = 5] = \"DECIMAL_LEADING_ZERO\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"LOWER_ROMAN\"] = 6] = \"LOWER_ROMAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"UPPER_ROMAN\"] = 7] = \"UPPER_ROMAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"LOWER_GREEK\"] = 8] = \"LOWER_GREEK\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"LOWER_ALPHA\"] = 9] = \"LOWER_ALPHA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"UPPER_ALPHA\"] = 10] = \"UPPER_ALPHA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"ARABIC_INDIC\"] = 11] = \"ARABIC_INDIC\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"ARMENIAN\"] = 12] = \"ARMENIAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"BENGALI\"] = 13] = \"BENGALI\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"CAMBODIAN\"] = 14] = \"CAMBODIAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"CJK_EARTHLY_BRANCH\"] = 15] = \"CJK_EARTHLY_BRANCH\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"CJK_HEAVENLY_STEM\"] = 16] = \"CJK_HEAVENLY_STEM\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"CJK_IDEOGRAPHIC\"] = 17] = \"CJK_IDEOGRAPHIC\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"DEVANAGARI\"] = 18] = \"DEVANAGARI\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"ETHIOPIC_NUMERIC\"] = 19] = \"ETHIOPIC_NUMERIC\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"GEORGIAN\"] = 20] = \"GEORGIAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"GUJARATI\"] = 21] = \"GUJARATI\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"GURMUKHI\"] = 22] = \"GURMUKHI\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"HEBREW\"] = 22] = \"HEBREW\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"HIRAGANA\"] = 23] = \"HIRAGANA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"HIRAGANA_IROHA\"] = 24] = \"HIRAGANA_IROHA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"JAPANESE_FORMAL\"] = 25] = \"JAPANESE_FORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"JAPANESE_INFORMAL\"] = 26] = \"JAPANESE_INFORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"KANNADA\"] = 27] = \"KANNADA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"KATAKANA\"] = 28] = \"KATAKANA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"KATAKANA_IROHA\"] = 29] = \"KATAKANA_IROHA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"KHMER\"] = 30] = \"KHMER\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"KOREAN_HANGUL_FORMAL\"] = 31] = \"KOREAN_HANGUL_FORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"KOREAN_HANJA_FORMAL\"] = 32] = \"KOREAN_HANJA_FORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"KOREAN_HANJA_INFORMAL\"] = 33] = \"KOREAN_HANJA_INFORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"LAO\"] = 34] = \"LAO\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"LOWER_ARMENIAN\"] = 35] = \"LOWER_ARMENIAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"MALAYALAM\"] = 36] = \"MALAYALAM\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"MONGOLIAN\"] = 37] = \"MONGOLIAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"MYANMAR\"] = 38] = \"MYANMAR\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"ORIYA\"] = 39] = \"ORIYA\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"PERSIAN\"] = 40] = \"PERSIAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"SIMP_CHINESE_FORMAL\"] = 41] = \"SIMP_CHINESE_FORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"SIMP_CHINESE_INFORMAL\"] = 42] = \"SIMP_CHINESE_INFORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"TAMIL\"] = 43] = \"TAMIL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"TELUGU\"] = 44] = \"TELUGU\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"THAI\"] = 45] = \"THAI\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"TIBETAN\"] = 46] = \"TIBETAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"TRAD_CHINESE_FORMAL\"] = 47] = \"TRAD_CHINESE_FORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"TRAD_CHINESE_INFORMAL\"] = 48] = \"TRAD_CHINESE_INFORMAL\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"UPPER_ARMENIAN\"] = 49] = \"UPPER_ARMENIAN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"DISCLOSURE_OPEN\"] = 50] = \"DISCLOSURE_OPEN\";\r\n LIST_STYLE_TYPE[LIST_STYLE_TYPE[\"DISCLOSURE_CLOSED\"] = 51] = \"DISCLOSURE_CLOSED\";\r\n })(LIST_STYLE_TYPE || (LIST_STYLE_TYPE = {}));\r\n var listStyleType = {\r\n name: 'list-style-type',\r\n initialValue: 'none',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (type) {\r\n switch (type) {\r\n case 'disc':\r\n return LIST_STYLE_TYPE.DISC;\r\n case 'circle':\r\n return LIST_STYLE_TYPE.CIRCLE;\r\n case 'square':\r\n return LIST_STYLE_TYPE.SQUARE;\r\n case 'decimal':\r\n return LIST_STYLE_TYPE.DECIMAL;\r\n case 'cjk-decimal':\r\n return LIST_STYLE_TYPE.CJK_DECIMAL;\r\n case 'decimal-leading-zero':\r\n return LIST_STYLE_TYPE.DECIMAL_LEADING_ZERO;\r\n case 'lower-roman':\r\n return LIST_STYLE_TYPE.LOWER_ROMAN;\r\n case 'upper-roman':\r\n return LIST_STYLE_TYPE.UPPER_ROMAN;\r\n case 'lower-greek':\r\n return LIST_STYLE_TYPE.LOWER_GREEK;\r\n case 'lower-alpha':\r\n return LIST_STYLE_TYPE.LOWER_ALPHA;\r\n case 'upper-alpha':\r\n return LIST_STYLE_TYPE.UPPER_ALPHA;\r\n case 'arabic-indic':\r\n return LIST_STYLE_TYPE.ARABIC_INDIC;\r\n case 'armenian':\r\n return LIST_STYLE_TYPE.ARMENIAN;\r\n case 'bengali':\r\n return LIST_STYLE_TYPE.BENGALI;\r\n case 'cambodian':\r\n return LIST_STYLE_TYPE.CAMBODIAN;\r\n case 'cjk-earthly-branch':\r\n return LIST_STYLE_TYPE.CJK_EARTHLY_BRANCH;\r\n case 'cjk-heavenly-stem':\r\n return LIST_STYLE_TYPE.CJK_HEAVENLY_STEM;\r\n case 'cjk-ideographic':\r\n return LIST_STYLE_TYPE.CJK_IDEOGRAPHIC;\r\n case 'devanagari':\r\n return LIST_STYLE_TYPE.DEVANAGARI;\r\n case 'ethiopic-numeric':\r\n return LIST_STYLE_TYPE.ETHIOPIC_NUMERIC;\r\n case 'georgian':\r\n return LIST_STYLE_TYPE.GEORGIAN;\r\n case 'gujarati':\r\n return LIST_STYLE_TYPE.GUJARATI;\r\n case 'gurmukhi':\r\n return LIST_STYLE_TYPE.GURMUKHI;\r\n case 'hebrew':\r\n return LIST_STYLE_TYPE.HEBREW;\r\n case 'hiragana':\r\n return LIST_STYLE_TYPE.HIRAGANA;\r\n case 'hiragana-iroha':\r\n return LIST_STYLE_TYPE.HIRAGANA_IROHA;\r\n case 'japanese-formal':\r\n return LIST_STYLE_TYPE.JAPANESE_FORMAL;\r\n case 'japanese-informal':\r\n return LIST_STYLE_TYPE.JAPANESE_INFORMAL;\r\n case 'kannada':\r\n return LIST_STYLE_TYPE.KANNADA;\r\n case 'katakana':\r\n return LIST_STYLE_TYPE.KATAKANA;\r\n case 'katakana-iroha':\r\n return LIST_STYLE_TYPE.KATAKANA_IROHA;\r\n case 'khmer':\r\n return LIST_STYLE_TYPE.KHMER;\r\n case 'korean-hangul-formal':\r\n return LIST_STYLE_TYPE.KOREAN_HANGUL_FORMAL;\r\n case 'korean-hanja-formal':\r\n return LIST_STYLE_TYPE.KOREAN_HANJA_FORMAL;\r\n case 'korean-hanja-informal':\r\n return LIST_STYLE_TYPE.KOREAN_HANJA_INFORMAL;\r\n case 'lao':\r\n return LIST_STYLE_TYPE.LAO;\r\n case 'lower-armenian':\r\n return LIST_STYLE_TYPE.LOWER_ARMENIAN;\r\n case 'malayalam':\r\n return LIST_STYLE_TYPE.MALAYALAM;\r\n case 'mongolian':\r\n return LIST_STYLE_TYPE.MONGOLIAN;\r\n case 'myanmar':\r\n return LIST_STYLE_TYPE.MYANMAR;\r\n case 'oriya':\r\n return LIST_STYLE_TYPE.ORIYA;\r\n case 'persian':\r\n return LIST_STYLE_TYPE.PERSIAN;\r\n case 'simp-chinese-formal':\r\n return LIST_STYLE_TYPE.SIMP_CHINESE_FORMAL;\r\n case 'simp-chinese-informal':\r\n return LIST_STYLE_TYPE.SIMP_CHINESE_INFORMAL;\r\n case 'tamil':\r\n return LIST_STYLE_TYPE.TAMIL;\r\n case 'telugu':\r\n return LIST_STYLE_TYPE.TELUGU;\r\n case 'thai':\r\n return LIST_STYLE_TYPE.THAI;\r\n case 'tibetan':\r\n return LIST_STYLE_TYPE.TIBETAN;\r\n case 'trad-chinese-formal':\r\n return LIST_STYLE_TYPE.TRAD_CHINESE_FORMAL;\r\n case 'trad-chinese-informal':\r\n return LIST_STYLE_TYPE.TRAD_CHINESE_INFORMAL;\r\n case 'upper-armenian':\r\n return LIST_STYLE_TYPE.UPPER_ARMENIAN;\r\n case 'disclosure-open':\r\n return LIST_STYLE_TYPE.DISCLOSURE_OPEN;\r\n case 'disclosure-closed':\r\n return LIST_STYLE_TYPE.DISCLOSURE_CLOSED;\r\n case 'none':\r\n default:\r\n return LIST_STYLE_TYPE.NONE;\r\n }\r\n }\r\n };\n\n var marginForSide = function (side) { return ({\r\n name: \"margin-\" + side,\r\n initialValue: '0',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TOKEN_VALUE\r\n }); };\r\n var marginTop = marginForSide('top');\r\n var marginRight = marginForSide('right');\r\n var marginBottom = marginForSide('bottom');\r\n var marginLeft = marginForSide('left');\n\n var OVERFLOW;\r\n (function (OVERFLOW) {\r\n OVERFLOW[OVERFLOW[\"VISIBLE\"] = 0] = \"VISIBLE\";\r\n OVERFLOW[OVERFLOW[\"HIDDEN\"] = 1] = \"HIDDEN\";\r\n OVERFLOW[OVERFLOW[\"SCROLL\"] = 2] = \"SCROLL\";\r\n OVERFLOW[OVERFLOW[\"AUTO\"] = 3] = \"AUTO\";\r\n })(OVERFLOW || (OVERFLOW = {}));\r\n var overflow = {\r\n name: 'overflow',\r\n initialValue: 'visible',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n return tokens.filter(isIdentToken).map(function (overflow) {\r\n switch (overflow.value) {\r\n case 'hidden':\r\n return OVERFLOW.HIDDEN;\r\n case 'scroll':\r\n return OVERFLOW.SCROLL;\r\n case 'auto':\r\n return OVERFLOW.AUTO;\r\n case 'visible':\r\n default:\r\n return OVERFLOW.VISIBLE;\r\n }\r\n });\r\n }\r\n };\n\n var OVERFLOW_WRAP;\r\n (function (OVERFLOW_WRAP) {\r\n OVERFLOW_WRAP[\"NORMAL\"] = \"normal\";\r\n OVERFLOW_WRAP[\"BREAK_WORD\"] = \"break-word\";\r\n })(OVERFLOW_WRAP || (OVERFLOW_WRAP = {}));\r\n var overflowWrap = {\r\n name: 'overflow-wrap',\r\n initialValue: 'normal',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (overflow) {\r\n switch (overflow) {\r\n case 'break-word':\r\n return OVERFLOW_WRAP.BREAK_WORD;\r\n case 'normal':\r\n default:\r\n return OVERFLOW_WRAP.NORMAL;\r\n }\r\n }\r\n };\n\n var paddingForSide = function (side) { return ({\r\n name: \"padding-\" + side,\r\n initialValue: '0',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TYPE_VALUE,\r\n format: 'length-percentage'\r\n }); };\r\n var paddingTop = paddingForSide('top');\r\n var paddingRight = paddingForSide('right');\r\n var paddingBottom = paddingForSide('bottom');\r\n var paddingLeft = paddingForSide('left');\n\n var TEXT_ALIGN;\r\n (function (TEXT_ALIGN) {\r\n TEXT_ALIGN[TEXT_ALIGN[\"LEFT\"] = 0] = \"LEFT\";\r\n TEXT_ALIGN[TEXT_ALIGN[\"CENTER\"] = 1] = \"CENTER\";\r\n TEXT_ALIGN[TEXT_ALIGN[\"RIGHT\"] = 2] = \"RIGHT\";\r\n })(TEXT_ALIGN || (TEXT_ALIGN = {}));\r\n var textAlign = {\r\n name: 'text-align',\r\n initialValue: 'left',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (textAlign) {\r\n switch (textAlign) {\r\n case 'right':\r\n return TEXT_ALIGN.RIGHT;\r\n case 'center':\r\n case 'justify':\r\n return TEXT_ALIGN.CENTER;\r\n case 'left':\r\n default:\r\n return TEXT_ALIGN.LEFT;\r\n }\r\n }\r\n };\n\n var POSITION;\r\n (function (POSITION) {\r\n POSITION[POSITION[\"STATIC\"] = 0] = \"STATIC\";\r\n POSITION[POSITION[\"RELATIVE\"] = 1] = \"RELATIVE\";\r\n POSITION[POSITION[\"ABSOLUTE\"] = 2] = \"ABSOLUTE\";\r\n POSITION[POSITION[\"FIXED\"] = 3] = \"FIXED\";\r\n POSITION[POSITION[\"STICKY\"] = 4] = \"STICKY\";\r\n })(POSITION || (POSITION = {}));\r\n var position = {\r\n name: 'position',\r\n initialValue: 'static',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (position) {\r\n switch (position) {\r\n case 'relative':\r\n return POSITION.RELATIVE;\r\n case 'absolute':\r\n return POSITION.ABSOLUTE;\r\n case 'fixed':\r\n return POSITION.FIXED;\r\n case 'sticky':\r\n return POSITION.STICKY;\r\n }\r\n return POSITION.STATIC;\r\n }\r\n };\n\n var textShadow = {\r\n name: 'text-shadow',\r\n initialValue: 'none',\r\n type: PropertyDescriptorParsingType.LIST,\r\n prefix: false,\r\n parse: function (tokens) {\r\n if (tokens.length === 1 && isIdentWithValue(tokens[0], 'none')) {\r\n return [];\r\n }\r\n return parseFunctionArgs(tokens).map(function (values) {\r\n var shadow = {\r\n color: COLORS.TRANSPARENT,\r\n offsetX: ZERO_LENGTH,\r\n offsetY: ZERO_LENGTH,\r\n blur: ZERO_LENGTH\r\n };\r\n var c = 0;\r\n for (var i = 0; i < values.length; i++) {\r\n var token = values[i];\r\n if (isLength(token)) {\r\n if (c === 0) {\r\n shadow.offsetX = token;\r\n }\r\n else if (c === 1) {\r\n shadow.offsetY = token;\r\n }\r\n else {\r\n shadow.blur = token;\r\n }\r\n c++;\r\n }\r\n else {\r\n shadow.color = color.parse(token);\r\n }\r\n }\r\n return shadow;\r\n });\r\n }\r\n };\n\n var TEXT_TRANSFORM;\r\n (function (TEXT_TRANSFORM) {\r\n TEXT_TRANSFORM[TEXT_TRANSFORM[\"NONE\"] = 0] = \"NONE\";\r\n TEXT_TRANSFORM[TEXT_TRANSFORM[\"LOWERCASE\"] = 1] = \"LOWERCASE\";\r\n TEXT_TRANSFORM[TEXT_TRANSFORM[\"UPPERCASE\"] = 2] = \"UPPERCASE\";\r\n TEXT_TRANSFORM[TEXT_TRANSFORM[\"CAPITALIZE\"] = 3] = \"CAPITALIZE\";\r\n })(TEXT_TRANSFORM || (TEXT_TRANSFORM = {}));\r\n var textTransform = {\r\n name: 'text-transform',\r\n initialValue: 'none',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (textTransform) {\r\n switch (textTransform) {\r\n case 'uppercase':\r\n return TEXT_TRANSFORM.UPPERCASE;\r\n case 'lowercase':\r\n return TEXT_TRANSFORM.LOWERCASE;\r\n case 'capitalize':\r\n return TEXT_TRANSFORM.CAPITALIZE;\r\n }\r\n return TEXT_TRANSFORM.NONE;\r\n }\r\n };\n\n var transform = {\r\n name: 'transform',\r\n initialValue: 'none',\r\n prefix: true,\r\n type: PropertyDescriptorParsingType.VALUE,\r\n parse: function (token) {\r\n if (token.type === TokenType.IDENT_TOKEN && token.value === 'none') {\r\n return null;\r\n }\r\n if (token.type === TokenType.FUNCTION) {\r\n var transformFunction = SUPPORTED_TRANSFORM_FUNCTIONS[token.name];\r\n if (typeof transformFunction === 'undefined') {\r\n throw new Error(\"Attempting to parse an unsupported transform function \\\"\" + token.name + \"\\\"\");\r\n }\r\n return transformFunction(token.values);\r\n }\r\n return null;\r\n }\r\n };\r\n var matrix = function (args) {\r\n var values = args.filter(function (arg) { return arg.type === TokenType.NUMBER_TOKEN; }).map(function (arg) { return arg.number; });\r\n return values.length === 6 ? values : null;\r\n };\r\n // doesn't support 3D transforms at the moment\r\n var matrix3d = function (args) {\r\n var values = args.filter(function (arg) { return arg.type === TokenType.NUMBER_TOKEN; }).map(function (arg) { return arg.number; });\r\n var a1 = values[0], b1 = values[1], _a = values[2], _b = values[3], a2 = values[4], b2 = values[5], _c = values[6], _d = values[7], _e = values[8], _f = values[9], _g = values[10], _h = values[11], a4 = values[12], b4 = values[13], _j = values[14], _k = values[15];\r\n return values.length === 16 ? [a1, b1, a2, b2, a4, b4] : null;\r\n };\r\n var SUPPORTED_TRANSFORM_FUNCTIONS = {\r\n matrix: matrix,\r\n matrix3d: matrix3d\r\n };\n\n var DEFAULT_VALUE = {\r\n type: TokenType.PERCENTAGE_TOKEN,\r\n number: 50,\r\n flags: FLAG_INTEGER\r\n };\r\n var DEFAULT = [DEFAULT_VALUE, DEFAULT_VALUE];\r\n var transformOrigin = {\r\n name: 'transform-origin',\r\n initialValue: '50% 50%',\r\n prefix: true,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n var origins = tokens.filter(isLengthPercentage);\r\n if (origins.length !== 2) {\r\n return DEFAULT;\r\n }\r\n return [origins[0], origins[1]];\r\n }\r\n };\n\n var VISIBILITY;\r\n (function (VISIBILITY) {\r\n VISIBILITY[VISIBILITY[\"VISIBLE\"] = 0] = \"VISIBLE\";\r\n VISIBILITY[VISIBILITY[\"HIDDEN\"] = 1] = \"HIDDEN\";\r\n VISIBILITY[VISIBILITY[\"COLLAPSE\"] = 2] = \"COLLAPSE\";\r\n })(VISIBILITY || (VISIBILITY = {}));\r\n var visibility = {\r\n name: 'visible',\r\n initialValue: 'none',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (visibility) {\r\n switch (visibility) {\r\n case 'hidden':\r\n return VISIBILITY.HIDDEN;\r\n case 'collapse':\r\n return VISIBILITY.COLLAPSE;\r\n case 'visible':\r\n default:\r\n return VISIBILITY.VISIBLE;\r\n }\r\n }\r\n };\n\n var WORD_BREAK;\r\n (function (WORD_BREAK) {\r\n WORD_BREAK[\"NORMAL\"] = \"normal\";\r\n WORD_BREAK[\"BREAK_ALL\"] = \"break-all\";\r\n WORD_BREAK[\"KEEP_ALL\"] = \"keep-all\";\r\n })(WORD_BREAK || (WORD_BREAK = {}));\r\n var wordBreak = {\r\n name: 'word-break',\r\n initialValue: 'normal',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (wordBreak) {\r\n switch (wordBreak) {\r\n case 'break-all':\r\n return WORD_BREAK.BREAK_ALL;\r\n case 'keep-all':\r\n return WORD_BREAK.KEEP_ALL;\r\n case 'normal':\r\n default:\r\n return WORD_BREAK.NORMAL;\r\n }\r\n }\r\n };\n\n var zIndex = {\r\n name: 'z-index',\r\n initialValue: 'auto',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.VALUE,\r\n parse: function (token) {\r\n if (token.type === TokenType.IDENT_TOKEN) {\r\n return { auto: true, order: 0 };\r\n }\r\n if (isNumberToken(token)) {\r\n return { auto: false, order: token.number };\r\n }\r\n throw new Error(\"Invalid z-index number parsed\");\r\n }\r\n };\n\n var opacity = {\r\n name: 'opacity',\r\n initialValue: '1',\r\n type: PropertyDescriptorParsingType.VALUE,\r\n prefix: false,\r\n parse: function (token) {\r\n if (isNumberToken(token)) {\r\n return token.number;\r\n }\r\n return 1;\r\n }\r\n };\n\n var textDecorationColor = {\r\n name: \"text-decoration-color\",\r\n initialValue: 'transparent',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TYPE_VALUE,\r\n format: 'color'\r\n };\n\n var textDecorationLine = {\r\n name: 'text-decoration-line',\r\n initialValue: 'none',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n return tokens\r\n .filter(isIdentToken)\r\n .map(function (token) {\r\n switch (token.value) {\r\n case 'underline':\r\n return 1 /* UNDERLINE */;\r\n case 'overline':\r\n return 2 /* OVERLINE */;\r\n case 'line-through':\r\n return 3 /* LINE_THROUGH */;\r\n case 'none':\r\n return 4 /* BLINK */;\r\n }\r\n return 0 /* NONE */;\r\n })\r\n .filter(function (line) { return line !== 0 /* NONE */; });\r\n }\r\n };\n\n var fontFamily = {\r\n name: \"font-family\",\r\n initialValue: '',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n var accumulator = [];\r\n var results = [];\r\n tokens.forEach(function (token) {\r\n switch (token.type) {\r\n case TokenType.IDENT_TOKEN:\r\n case TokenType.STRING_TOKEN:\r\n accumulator.push(token.value);\r\n break;\r\n case TokenType.NUMBER_TOKEN:\r\n accumulator.push(token.number.toString());\r\n break;\r\n case TokenType.COMMA_TOKEN:\r\n results.push(accumulator.join(' '));\r\n accumulator.length = 0;\r\n break;\r\n }\r\n });\r\n if (accumulator.length) {\r\n results.push(accumulator.join(' '));\r\n }\r\n return results.map(function (result) { return (result.indexOf(' ') === -1 ? result : \"'\" + result + \"'\"); });\r\n }\r\n };\n\n var fontSize = {\r\n name: \"font-size\",\r\n initialValue: '0',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.TYPE_VALUE,\r\n format: 'length'\r\n };\n\n var fontWeight = {\r\n name: 'font-weight',\r\n initialValue: 'normal',\r\n type: PropertyDescriptorParsingType.VALUE,\r\n prefix: false,\r\n parse: function (token) {\r\n if (isNumberToken(token)) {\r\n return token.number;\r\n }\r\n if (isIdentToken(token)) {\r\n switch (token.value) {\r\n case 'bold':\r\n return 700;\r\n case 'normal':\r\n default:\r\n return 400;\r\n }\r\n }\r\n return 400;\r\n }\r\n };\n\n var fontVariant = {\r\n name: 'font-variant',\r\n initialValue: 'none',\r\n type: PropertyDescriptorParsingType.LIST,\r\n prefix: false,\r\n parse: function (tokens) {\r\n return tokens.filter(isIdentToken).map(function (token) { return token.value; });\r\n }\r\n };\n\n var FONT_STYLE;\r\n (function (FONT_STYLE) {\r\n FONT_STYLE[\"NORMAL\"] = \"normal\";\r\n FONT_STYLE[\"ITALIC\"] = \"italic\";\r\n FONT_STYLE[\"OBLIQUE\"] = \"oblique\";\r\n })(FONT_STYLE || (FONT_STYLE = {}));\r\n var fontStyle = {\r\n name: 'font-style',\r\n initialValue: 'normal',\r\n prefix: false,\r\n type: PropertyDescriptorParsingType.IDENT_VALUE,\r\n parse: function (overflow) {\r\n switch (overflow) {\r\n case 'oblique':\r\n return FONT_STYLE.OBLIQUE;\r\n case 'italic':\r\n return FONT_STYLE.ITALIC;\r\n case 'normal':\r\n default:\r\n return FONT_STYLE.NORMAL;\r\n }\r\n }\r\n };\n\n var contains = function (bit, value) { return (bit & value) !== 0; };\n\n var content = {\r\n name: 'content',\r\n initialValue: 'none',\r\n type: PropertyDescriptorParsingType.LIST,\r\n prefix: false,\r\n parse: function (tokens) {\r\n if (tokens.length === 0) {\r\n return [];\r\n }\r\n var first = tokens[0];\r\n if (first.type === TokenType.IDENT_TOKEN && first.value === 'none') {\r\n return [];\r\n }\r\n return tokens;\r\n }\r\n };\n\n var counterIncrement = {\r\n name: 'counter-increment',\r\n initialValue: 'none',\r\n prefix: true,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n if (tokens.length === 0) {\r\n return null;\r\n }\r\n var first = tokens[0];\r\n if (first.type === TokenType.IDENT_TOKEN && first.value === 'none') {\r\n return null;\r\n }\r\n var increments = [];\r\n var filtered = tokens.filter(nonWhiteSpace);\r\n for (var i = 0; i < filtered.length; i++) {\r\n var counter = filtered[i];\r\n var next = filtered[i + 1];\r\n if (counter.type === TokenType.IDENT_TOKEN) {\r\n var increment = next && isNumberToken(next) ? next.number : 1;\r\n increments.push({ counter: counter.value, increment: increment });\r\n }\r\n }\r\n return increments;\r\n }\r\n };\n\n var counterReset = {\r\n name: 'counter-reset',\r\n initialValue: 'none',\r\n prefix: true,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n if (tokens.length === 0) {\r\n return [];\r\n }\r\n var resets = [];\r\n var filtered = tokens.filter(nonWhiteSpace);\r\n for (var i = 0; i < filtered.length; i++) {\r\n var counter = filtered[i];\r\n var next = filtered[i + 1];\r\n if (isIdentToken(counter) && counter.value !== 'none') {\r\n var reset = next && isNumberToken(next) ? next.number : 0;\r\n resets.push({ counter: counter.value, reset: reset });\r\n }\r\n }\r\n return resets;\r\n }\r\n };\n\n var quotes = {\r\n name: 'quotes',\r\n initialValue: 'none',\r\n prefix: true,\r\n type: PropertyDescriptorParsingType.LIST,\r\n parse: function (tokens) {\r\n if (tokens.length === 0) {\r\n return null;\r\n }\r\n var first = tokens[0];\r\n if (first.type === TokenType.IDENT_TOKEN && first.value === 'none') {\r\n return null;\r\n }\r\n var quotes = [];\r\n var filtered = tokens.filter(isStringToken);\r\n if (filtered.length % 2 !== 0) {\r\n return null;\r\n }\r\n for (var i = 0; i < filtered.length; i += 2) {\r\n var open_1 = filtered[i].value;\r\n var close_1 = filtered[i + 1].value;\r\n quotes.push({ open: open_1, close: close_1 });\r\n }\r\n return quotes;\r\n }\r\n };\r\n var getQuote = function (quotes, depth, open) {\r\n if (!quotes) {\r\n return '';\r\n }\r\n var quote = quotes[Math.min(depth, quotes.length - 1)];\r\n if (!quote) {\r\n return '';\r\n }\r\n return open ? quote.open : quote.close;\r\n };\n\n var boxShadow = {\r\n name: 'box-shadow',\r\n initialValue: 'none',\r\n type: PropertyDescriptorParsingType.LIST,\r\n prefix: false,\r\n parse: function (tokens) {\r\n if (tokens.length === 1 && isIdentWithValue(tokens[0], 'none')) {\r\n return [];\r\n }\r\n return parseFunctionArgs(tokens).map(function (values) {\r\n var shadow = {\r\n color: 0x000000ff,\r\n offsetX: ZERO_LENGTH,\r\n offsetY: ZERO_LENGTH,\r\n blur: ZERO_LENGTH,\r\n spread: ZERO_LENGTH,\r\n inset: false\r\n };\r\n var c = 0;\r\n for (var i = 0; i < values.length; i++) {\r\n var token = values[i];\r\n if (isIdentWithValue(token, 'inset')) {\r\n shadow.inset = true;\r\n }\r\n else if (isLength(token)) {\r\n if (c === 0) {\r\n shadow.offsetX = token;\r\n }\r\n else if (c === 1) {\r\n shadow.offsetY = token;\r\n }\r\n else if (c === 2) {\r\n shadow.blur = token;\r\n }\r\n else {\r\n shadow.spread = token;\r\n }\r\n c++;\r\n }\r\n else {\r\n shadow.color = color.parse(token);\r\n }\r\n }\r\n return shadow;\r\n });\r\n }\r\n };\n\n var CSSParsedDeclaration = /** @class */ (function () {\r\n function CSSParsedDeclaration(declaration) {\r\n this.backgroundClip = parse(backgroundClip, declaration.backgroundClip);\r\n this.backgroundColor = parse(backgroundColor, declaration.backgroundColor);\r\n this.backgroundImage = parse(backgroundImage, declaration.backgroundImage);\r\n this.backgroundOrigin = parse(backgroundOrigin, declaration.backgroundOrigin);\r\n this.backgroundPosition = parse(backgroundPosition, declaration.backgroundPosition);\r\n this.backgroundRepeat = parse(backgroundRepeat, declaration.backgroundRepeat);\r\n this.backgroundSize = parse(backgroundSize, declaration.backgroundSize);\r\n this.borderTopColor = parse(borderTopColor, declaration.borderTopColor);\r\n this.borderRightColor = parse(borderRightColor, declaration.borderRightColor);\r\n this.borderBottomColor = parse(borderBottomColor, declaration.borderBottomColor);\r\n this.borderLeftColor = parse(borderLeftColor, declaration.borderLeftColor);\r\n this.borderTopLeftRadius = parse(borderTopLeftRadius, declaration.borderTopLeftRadius);\r\n this.borderTopRightRadius = parse(borderTopRightRadius, declaration.borderTopRightRadius);\r\n this.borderBottomRightRadius = parse(borderBottomRightRadius, declaration.borderBottomRightRadius);\r\n this.borderBottomLeftRadius = parse(borderBottomLeftRadius, declaration.borderBottomLeftRadius);\r\n this.borderTopStyle = parse(borderTopStyle, declaration.borderTopStyle);\r\n this.borderRightStyle = parse(borderRightStyle, declaration.borderRightStyle);\r\n this.borderBottomStyle = parse(borderBottomStyle, declaration.borderBottomStyle);\r\n this.borderLeftStyle = parse(borderLeftStyle, declaration.borderLeftStyle);\r\n this.borderTopWidth = parse(borderTopWidth, declaration.borderTopWidth);\r\n this.borderRightWidth = parse(borderRightWidth, declaration.borderRightWidth);\r\n this.borderBottomWidth = parse(borderBottomWidth, declaration.borderBottomWidth);\r\n this.borderLeftWidth = parse(borderLeftWidth, declaration.borderLeftWidth);\r\n this.boxShadow = parse(boxShadow, declaration.boxShadow);\r\n this.color = parse(color$1, declaration.color);\r\n this.display = parse(display, declaration.display);\r\n this.float = parse(float, declaration.cssFloat);\r\n this.fontFamily = parse(fontFamily, declaration.fontFamily);\r\n this.fontSize = parse(fontSize, declaration.fontSize);\r\n this.fontStyle = parse(fontStyle, declaration.fontStyle);\r\n this.fontVariant = parse(fontVariant, declaration.fontVariant);\r\n this.fontWeight = parse(fontWeight, declaration.fontWeight);\r\n this.letterSpacing = parse(letterSpacing, declaration.letterSpacing);\r\n this.lineBreak = parse(lineBreak, declaration.lineBreak);\r\n this.lineHeight = parse(lineHeight, declaration.lineHeight);\r\n this.listStyleImage = parse(listStyleImage, declaration.listStyleImage);\r\n this.listStylePosition = parse(listStylePosition, declaration.listStylePosition);\r\n this.listStyleType = parse(listStyleType, declaration.listStyleType);\r\n this.marginTop = parse(marginTop, declaration.marginTop);\r\n this.marginRight = parse(marginRight, declaration.marginRight);\r\n this.marginBottom = parse(marginBottom, declaration.marginBottom);\r\n this.marginLeft = parse(marginLeft, declaration.marginLeft);\r\n this.opacity = parse(opacity, declaration.opacity);\r\n var overflowTuple = parse(overflow, declaration.overflow);\r\n this.overflowX = overflowTuple[0];\r\n this.overflowY = overflowTuple[overflowTuple.length > 1 ? 1 : 0];\r\n this.overflowWrap = parse(overflowWrap, declaration.overflowWrap);\r\n this.paddingTop = parse(paddingTop, declaration.paddingTop);\r\n this.paddingRight = parse(paddingRight, declaration.paddingRight);\r\n this.paddingBottom = parse(paddingBottom, declaration.paddingBottom);\r\n this.paddingLeft = parse(paddingLeft, declaration.paddingLeft);\r\n this.position = parse(position, declaration.position);\r\n this.textAlign = parse(textAlign, declaration.textAlign);\r\n this.textDecorationColor = parse(textDecorationColor, declaration.textDecorationColor || declaration.color);\r\n this.textDecorationLine = parse(textDecorationLine, declaration.textDecorationLine);\r\n this.textShadow = parse(textShadow, declaration.textShadow);\r\n this.textTransform = parse(textTransform, declaration.textTransform);\r\n this.transform = parse(transform, declaration.transform);\r\n this.transformOrigin = parse(transformOrigin, declaration.transformOrigin);\r\n this.visibility = parse(visibility, declaration.visibility);\r\n this.wordBreak = parse(wordBreak, declaration.wordBreak);\r\n this.zIndex = parse(zIndex, declaration.zIndex);\r\n }\r\n CSSParsedDeclaration.prototype.isVisible = function () {\r\n return this.display > 0 && this.opacity > 0 && this.visibility === VISIBILITY.VISIBLE;\r\n };\r\n CSSParsedDeclaration.prototype.isTransparent = function () {\r\n return isTransparent(this.backgroundColor);\r\n };\r\n CSSParsedDeclaration.prototype.isTransformed = function () {\r\n return this.transform !== null;\r\n };\r\n CSSParsedDeclaration.prototype.isPositioned = function () {\r\n return this.position !== POSITION.STATIC;\r\n };\r\n CSSParsedDeclaration.prototype.isPositionedWithZIndex = function () {\r\n return this.isPositioned() && !this.zIndex.auto;\r\n };\r\n CSSParsedDeclaration.prototype.isFloating = function () {\r\n return this.float !== FLOAT.NONE;\r\n };\r\n CSSParsedDeclaration.prototype.isInlineLevel = function () {\r\n return (contains(this.display, 4 /* INLINE */) ||\r\n contains(this.display, 33554432 /* INLINE_BLOCK */) ||\r\n contains(this.display, 268435456 /* INLINE_FLEX */) ||\r\n contains(this.display, 536870912 /* INLINE_GRID */) ||\r\n contains(this.display, 67108864 /* INLINE_LIST_ITEM */) ||\r\n contains(this.display, 134217728 /* INLINE_TABLE */));\r\n };\r\n return CSSParsedDeclaration;\r\n }());\r\n var CSSParsedPseudoDeclaration = /** @class */ (function () {\r\n function CSSParsedPseudoDeclaration(declaration) {\r\n this.content = parse(content, declaration.content);\r\n this.quotes = parse(quotes, declaration.quotes);\r\n }\r\n return CSSParsedPseudoDeclaration;\r\n }());\r\n var CSSParsedCounterDeclaration = /** @class */ (function () {\r\n function CSSParsedCounterDeclaration(declaration) {\r\n this.counterIncrement = parse(counterIncrement, declaration.counterIncrement);\r\n this.counterReset = parse(counterReset, declaration.counterReset);\r\n }\r\n return CSSParsedCounterDeclaration;\r\n }());\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n var parse = function (descriptor, style) {\r\n var tokenizer = new Tokenizer();\r\n var value = style !== null && typeof style !== 'undefined' ? style.toString() : descriptor.initialValue;\r\n tokenizer.write(value);\r\n var parser = new Parser(tokenizer.read());\r\n switch (descriptor.type) {\r\n case PropertyDescriptorParsingType.IDENT_VALUE:\r\n var token = parser.parseComponentValue();\r\n return descriptor.parse(isIdentToken(token) ? token.value : descriptor.initialValue);\r\n case PropertyDescriptorParsingType.VALUE:\r\n return descriptor.parse(parser.parseComponentValue());\r\n case PropertyDescriptorParsingType.LIST:\r\n return descriptor.parse(parser.parseComponentValues());\r\n case PropertyDescriptorParsingType.TOKEN_VALUE:\r\n return parser.parseComponentValue();\r\n case PropertyDescriptorParsingType.TYPE_VALUE:\r\n switch (descriptor.format) {\r\n case 'angle':\r\n return angle.parse(parser.parseComponentValue());\r\n case 'color':\r\n return color.parse(parser.parseComponentValue());\r\n case 'image':\r\n return image.parse(parser.parseComponentValue());\r\n case 'length':\r\n var length_1 = parser.parseComponentValue();\r\n return isLength(length_1) ? length_1 : ZERO_LENGTH;\r\n case 'length-percentage':\r\n var value_1 = parser.parseComponentValue();\r\n return isLengthPercentage(value_1) ? value_1 : ZERO_LENGTH;\r\n }\r\n }\r\n throw new Error(\"Attempting to parse unsupported css format type \" + descriptor.format);\r\n };\n\n var ElementContainer = /** @class */ (function () {\r\n function ElementContainer(element) {\r\n this.styles = new CSSParsedDeclaration(window.getComputedStyle(element, null));\r\n this.textNodes = [];\r\n this.elements = [];\r\n if (this.styles.transform !== null && isHTMLElementNode(element)) {\r\n // getBoundingClientRect takes transforms into account\r\n element.style.transform = 'none';\r\n }\r\n this.bounds = parseBounds(element);\r\n this.flags = 0;\r\n }\r\n return ElementContainer;\r\n }());\n\n var TextBounds = /** @class */ (function () {\r\n function TextBounds(text, bounds) {\r\n this.text = text;\r\n this.bounds = bounds;\r\n }\r\n return TextBounds;\r\n }());\r\n var parseTextBounds = function (value, styles, node) {\r\n var textList = breakText(value, styles);\r\n var textBounds = [];\r\n var offset = 0;\r\n textList.forEach(function (text) {\r\n if (styles.textDecorationLine.length || text.trim().length > 0) {\r\n if (FEATURES.SUPPORT_RANGE_BOUNDS) {\r\n textBounds.push(new TextBounds(text, getRangeBounds(node, offset, text.length)));\r\n }\r\n else {\r\n var replacementNode = node.splitText(text.length);\r\n textBounds.push(new TextBounds(text, getWrapperBounds(node)));\r\n node = replacementNode;\r\n }\r\n }\r\n else if (!FEATURES.SUPPORT_RANGE_BOUNDS) {\r\n node = node.splitText(text.length);\r\n }\r\n offset += text.length;\r\n });\r\n return textBounds;\r\n };\r\n var getWrapperBounds = function (node) {\r\n var ownerDocument = node.ownerDocument;\r\n if (ownerDocument) {\r\n var wrapper = ownerDocument.createElement('html2canvaswrapper');\r\n wrapper.appendChild(node.cloneNode(true));\r\n var parentNode = node.parentNode;\r\n if (parentNode) {\r\n parentNode.replaceChild(wrapper, node);\r\n var bounds = parseBounds(wrapper);\r\n if (wrapper.firstChild) {\r\n parentNode.replaceChild(wrapper.firstChild, wrapper);\r\n }\r\n return bounds;\r\n }\r\n }\r\n return new Bounds(0, 0, 0, 0);\r\n };\r\n var getRangeBounds = function (node, offset, length) {\r\n var ownerDocument = node.ownerDocument;\r\n if (!ownerDocument) {\r\n throw new Error('Node has no owner document');\r\n }\r\n var range = ownerDocument.createRange();\r\n range.setStart(node, offset);\r\n range.setEnd(node, offset + length);\r\n return Bounds.fromClientRect(range.getBoundingClientRect());\r\n };\r\n var breakText = function (value, styles) {\r\n return styles.letterSpacing !== 0 ? toCodePoints(value).map(function (i) { return fromCodePoint(i); }) : breakWords(value, styles);\r\n };\r\n var breakWords = function (str, styles) {\r\n var breaker = LineBreaker(str, {\r\n lineBreak: styles.lineBreak,\r\n wordBreak: styles.overflowWrap === OVERFLOW_WRAP.BREAK_WORD ? 'break-word' : styles.wordBreak\r\n });\r\n var words = [];\r\n var bk;\r\n while (!(bk = breaker.next()).done) {\r\n if (bk.value) {\r\n words.push(bk.value.slice());\r\n }\r\n }\r\n return words;\r\n };\n\n var TextContainer = /** @class */ (function () {\r\n function TextContainer(node, styles) {\r\n this.text = transform$1(node.data, styles.textTransform);\r\n this.textBounds = parseTextBounds(this.text, styles, node);\r\n }\r\n return TextContainer;\r\n }());\r\n var transform$1 = function (text, transform) {\r\n switch (transform) {\r\n case TEXT_TRANSFORM.LOWERCASE:\r\n return text.toLowerCase();\r\n case TEXT_TRANSFORM.CAPITALIZE:\r\n return text.replace(CAPITALIZE, capitalize);\r\n case TEXT_TRANSFORM.UPPERCASE:\r\n return text.toUpperCase();\r\n default:\r\n return text;\r\n }\r\n };\r\n var CAPITALIZE = /(^|\\s|:|-|\\(|\\))([a-z])/g;\r\n var capitalize = function (m, p1, p2) {\r\n if (m.length > 0) {\r\n return p1 + p2.toUpperCase();\r\n }\r\n return m;\r\n };\n\n var ImageElementContainer = /** @class */ (function (_super) {\r\n __extends(ImageElementContainer, _super);\r\n function ImageElementContainer(img) {\r\n var _this = _super.call(this, img) || this;\r\n _this.src = img.currentSrc || img.src;\r\n _this.intrinsicWidth = img.naturalWidth;\r\n _this.intrinsicHeight = img.naturalHeight;\r\n CacheStorage.getInstance().addImage(_this.src);\r\n return _this;\r\n }\r\n return ImageElementContainer;\r\n }(ElementContainer));\n\n var CanvasElementContainer = /** @class */ (function (_super) {\r\n __extends(CanvasElementContainer, _super);\r\n function CanvasElementContainer(canvas) {\r\n var _this = _super.call(this, canvas) || this;\r\n _this.canvas = canvas;\r\n _this.intrinsicWidth = canvas.width;\r\n _this.intrinsicHeight = canvas.height;\r\n return _this;\r\n }\r\n return CanvasElementContainer;\r\n }(ElementContainer));\n\n var SVGElementContainer = /** @class */ (function (_super) {\r\n __extends(SVGElementContainer, _super);\r\n function SVGElementContainer(img) {\r\n var _this = _super.call(this, img) || this;\r\n var s = new XMLSerializer();\r\n _this.svg = \"data:image/svg+xml,\" + encodeURIComponent(s.serializeToString(img));\r\n _this.intrinsicWidth = img.width.baseVal.value;\r\n _this.intrinsicHeight = img.height.baseVal.value;\r\n CacheStorage.getInstance().addImage(_this.svg);\r\n return _this;\r\n }\r\n return SVGElementContainer;\r\n }(ElementContainer));\n\n var LIElementContainer = /** @class */ (function (_super) {\r\n __extends(LIElementContainer, _super);\r\n function LIElementContainer(element) {\r\n var _this = _super.call(this, element) || this;\r\n _this.value = element.value;\r\n return _this;\r\n }\r\n return LIElementContainer;\r\n }(ElementContainer));\n\n var OLElementContainer = /** @class */ (function (_super) {\r\n __extends(OLElementContainer, _super);\r\n function OLElementContainer(element) {\r\n var _this = _super.call(this, element) || this;\r\n _this.start = element.start;\r\n _this.reversed = typeof element.reversed === 'boolean' && element.reversed === true;\r\n return _this;\r\n }\r\n return OLElementContainer;\r\n }(ElementContainer));\n\n var CHECKBOX_BORDER_RADIUS = [\r\n {\r\n type: TokenType.DIMENSION_TOKEN,\r\n flags: 0,\r\n unit: 'px',\r\n number: 3\r\n }\r\n ];\r\n var RADIO_BORDER_RADIUS = [\r\n {\r\n type: TokenType.PERCENTAGE_TOKEN,\r\n flags: 0,\r\n number: 50\r\n }\r\n ];\r\n var reformatInputBounds = function (bounds) {\r\n if (bounds.width > bounds.height) {\r\n return new Bounds(bounds.left + (bounds.width - bounds.height) / 2, bounds.top, bounds.height, bounds.height);\r\n }\r\n else if (bounds.width < bounds.height) {\r\n return new Bounds(bounds.left, bounds.top + (bounds.height - bounds.width) / 2, bounds.width, bounds.width);\r\n }\r\n return bounds;\r\n };\r\n var getInputValue = function (node) {\r\n var value = node.type === PASSWORD ? new Array(node.value.length + 1).join('\\u2022') : node.value;\r\n return value.length === 0 ? node.placeholder || '' : value;\r\n };\r\n var CHECKBOX = 'checkbox';\r\n var RADIO = 'radio';\r\n var PASSWORD = 'password';\r\n var INPUT_COLOR = 0x2a2a2aff;\r\n var InputElementContainer = /** @class */ (function (_super) {\r\n __extends(InputElementContainer, _super);\r\n function InputElementContainer(input) {\r\n var _this = _super.call(this, input) || this;\r\n _this.type = input.type.toLowerCase();\r\n _this.checked = input.checked;\r\n _this.value = getInputValue(input);\r\n if (_this.type === CHECKBOX || _this.type === RADIO) {\r\n _this.styles.backgroundColor = 0xdededeff;\r\n _this.styles.borderTopColor = _this.styles.borderRightColor = _this.styles.borderBottomColor = _this.styles.borderLeftColor = 0xa5a5a5ff;\r\n _this.styles.borderTopWidth = _this.styles.borderRightWidth = _this.styles.borderBottomWidth = _this.styles.borderLeftWidth = 1;\r\n _this.styles.borderTopStyle = _this.styles.borderRightStyle = _this.styles.borderBottomStyle = _this.styles.borderLeftStyle =\r\n BORDER_STYLE.SOLID;\r\n _this.styles.backgroundClip = [BACKGROUND_CLIP.BORDER_BOX];\r\n _this.styles.backgroundOrigin = [0 /* BORDER_BOX */];\r\n _this.bounds = reformatInputBounds(_this.bounds);\r\n }\r\n switch (_this.type) {\r\n case CHECKBOX:\r\n _this.styles.borderTopRightRadius = _this.styles.borderTopLeftRadius = _this.styles.borderBottomRightRadius = _this.styles.borderBottomLeftRadius = CHECKBOX_BORDER_RADIUS;\r\n break;\r\n case RADIO:\r\n _this.styles.borderTopRightRadius = _this.styles.borderTopLeftRadius = _this.styles.borderBottomRightRadius = _this.styles.borderBottomLeftRadius = RADIO_BORDER_RADIUS;\r\n break;\r\n }\r\n return _this;\r\n }\r\n return InputElementContainer;\r\n }(ElementContainer));\n\n var SelectElementContainer = /** @class */ (function (_super) {\r\n __extends(SelectElementContainer, _super);\r\n function SelectElementContainer(element) {\r\n var _this = _super.call(this, element) || this;\r\n var option = element.options[element.selectedIndex || 0];\r\n _this.value = option ? option.text || '' : '';\r\n return _this;\r\n }\r\n return SelectElementContainer;\r\n }(ElementContainer));\n\n var TextareaElementContainer = /** @class */ (function (_super) {\r\n __extends(TextareaElementContainer, _super);\r\n function TextareaElementContainer(element) {\r\n var _this = _super.call(this, element) || this;\r\n _this.value = element.value;\r\n return _this;\r\n }\r\n return TextareaElementContainer;\r\n }(ElementContainer));\n\n var parseColor = function (value) { return color.parse(Parser.create(value).parseComponentValue()); };\r\n var IFrameElementContainer = /** @class */ (function (_super) {\r\n __extends(IFrameElementContainer, _super);\r\n function IFrameElementContainer(iframe) {\r\n var _this = _super.call(this, iframe) || this;\r\n _this.src = iframe.src;\r\n _this.width = parseInt(iframe.width, 10) || 0;\r\n _this.height = parseInt(iframe.height, 10) || 0;\r\n _this.backgroundColor = _this.styles.backgroundColor;\r\n try {\r\n if (iframe.contentWindow &&\r\n iframe.contentWindow.document &&\r\n iframe.contentWindow.document.documentElement) {\r\n _this.tree = parseTree(iframe.contentWindow.document.documentElement);\r\n // http://www.w3.org/TR/css3-background/#special-backgrounds\r\n var documentBackgroundColor = iframe.contentWindow.document.documentElement\r\n ? parseColor(getComputedStyle(iframe.contentWindow.document.documentElement)\r\n .backgroundColor)\r\n : COLORS.TRANSPARENT;\r\n var bodyBackgroundColor = iframe.contentWindow.document.body\r\n ? parseColor(getComputedStyle(iframe.contentWindow.document.body).backgroundColor)\r\n : COLORS.TRANSPARENT;\r\n _this.backgroundColor = isTransparent(documentBackgroundColor)\r\n ? isTransparent(bodyBackgroundColor)\r\n ? _this.styles.backgroundColor\r\n : bodyBackgroundColor\r\n : documentBackgroundColor;\r\n }\r\n }\r\n catch (e) { }\r\n return _this;\r\n }\r\n return IFrameElementContainer;\r\n }(ElementContainer));\n\n var LIST_OWNERS = ['OL', 'UL', 'MENU'];\r\n var parseNodeTree = function (node, parent, root) {\r\n for (var childNode = node.firstChild, nextNode = void 0; childNode; childNode = nextNode) {\r\n nextNode = childNode.nextSibling;\r\n if (isTextNode(childNode) && childNode.data.trim().length > 0) {\r\n parent.textNodes.push(new TextContainer(childNode, parent.styles));\r\n }\r\n else if (isElementNode(childNode)) {\r\n var container = createContainer(childNode);\r\n if (container.styles.isVisible()) {\r\n if (createsRealStackingContext(childNode, container, root)) {\r\n container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */;\r\n }\r\n else if (createsStackingContext(container.styles)) {\r\n container.flags |= 2 /* CREATES_STACKING_CONTEXT */;\r\n }\r\n if (LIST_OWNERS.indexOf(childNode.tagName) !== -1) {\r\n container.flags |= 8 /* IS_LIST_OWNER */;\r\n }\r\n parent.elements.push(container);\r\n if (!isTextareaElement(childNode) && !isSVGElement(childNode) && !isSelectElement(childNode)) {\r\n parseNodeTree(childNode, container, root);\r\n }\r\n }\r\n }\r\n }\r\n };\r\n var createContainer = function (element) {\r\n if (isImageElement(element)) {\r\n return new ImageElementContainer(element);\r\n }\r\n if (isCanvasElement(element)) {\r\n return new CanvasElementContainer(element);\r\n }\r\n if (isSVGElement(element)) {\r\n return new SVGElementContainer(element);\r\n }\r\n if (isLIElement(element)) {\r\n return new LIElementContainer(element);\r\n }\r\n if (isOLElement(element)) {\r\n return new OLElementContainer(element);\r\n }\r\n if (isInputElement(element)) {\r\n return new InputElementContainer(element);\r\n }\r\n if (isSelectElement(element)) {\r\n return new SelectElementContainer(element);\r\n }\r\n if (isTextareaElement(element)) {\r\n return new TextareaElementContainer(element);\r\n }\r\n if (isIFrameElement(element)) {\r\n return new IFrameElementContainer(element);\r\n }\r\n return new ElementContainer(element);\r\n };\r\n var parseTree = function (element) {\r\n var container = createContainer(element);\r\n container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */;\r\n parseNodeTree(element, container, container);\r\n return container;\r\n };\r\n var createsRealStackingContext = function (node, container, root) {\r\n return (container.styles.isPositionedWithZIndex() ||\r\n container.styles.opacity < 1 ||\r\n container.styles.isTransformed() ||\r\n (isBodyElement(node) && root.styles.isTransparent()));\r\n };\r\n var createsStackingContext = function (styles) { return styles.isPositioned() || styles.isFloating(); };\r\n var isTextNode = function (node) { return node.nodeType === Node.TEXT_NODE; };\r\n var isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; };\r\n var isHTMLElementNode = function (node) {\r\n return isElementNode(node) && typeof node.style !== 'undefined' && !isSVGElementNode(node);\r\n };\r\n var isSVGElementNode = function (element) {\r\n return typeof element.className === 'object';\r\n };\r\n var isLIElement = function (node) { return node.tagName === 'LI'; };\r\n var isOLElement = function (node) { return node.tagName === 'OL'; };\r\n var isInputElement = function (node) { return node.tagName === 'INPUT'; };\r\n var isHTMLElement = function (node) { return node.tagName === 'HTML'; };\r\n var isSVGElement = function (node) { return node.tagName === 'svg'; };\r\n var isBodyElement = function (node) { return node.tagName === 'BODY'; };\r\n var isCanvasElement = function (node) { return node.tagName === 'CANVAS'; };\r\n var isImageElement = function (node) { return node.tagName === 'IMG'; };\r\n var isIFrameElement = function (node) { return node.tagName === 'IFRAME'; };\r\n var isStyleElement = function (node) { return node.tagName === 'STYLE'; };\r\n var isScriptElement = function (node) { return node.tagName === 'SCRIPT'; };\r\n var isTextareaElement = function (node) { return node.tagName === 'TEXTAREA'; };\r\n var isSelectElement = function (node) { return node.tagName === 'SELECT'; };\n\n var CounterState = /** @class */ (function () {\r\n function CounterState() {\r\n this.counters = {};\r\n }\r\n CounterState.prototype.getCounterValue = function (name) {\r\n var counter = this.counters[name];\r\n if (counter && counter.length) {\r\n return counter[counter.length - 1];\r\n }\r\n return 1;\r\n };\r\n CounterState.prototype.getCounterValues = function (name) {\r\n var counter = this.counters[name];\r\n return counter ? counter : [];\r\n };\r\n CounterState.prototype.pop = function (counters) {\r\n var _this = this;\r\n counters.forEach(function (counter) { return _this.counters[counter].pop(); });\r\n };\r\n CounterState.prototype.parse = function (style) {\r\n var _this = this;\r\n var counterIncrement = style.counterIncrement;\r\n var counterReset = style.counterReset;\r\n var canReset = true;\r\n if (counterIncrement !== null) {\r\n counterIncrement.forEach(function (entry) {\r\n var counter = _this.counters[entry.counter];\r\n if (counter && entry.increment !== 0) {\r\n canReset = false;\r\n counter[Math.max(0, counter.length - 1)] += entry.increment;\r\n }\r\n });\r\n }\r\n var counterNames = [];\r\n if (canReset) {\r\n counterReset.forEach(function (entry) {\r\n var counter = _this.counters[entry.counter];\r\n counterNames.push(entry.counter);\r\n if (!counter) {\r\n counter = _this.counters[entry.counter] = [];\r\n }\r\n counter.push(entry.reset);\r\n });\r\n }\r\n return counterNames;\r\n };\r\n return CounterState;\r\n }());\r\n var ROMAN_UPPER = {\r\n integers: [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1],\r\n values: ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I']\r\n };\r\n var ARMENIAN = {\r\n integers: [\r\n 9000,\r\n 8000,\r\n 7000,\r\n 6000,\r\n 5000,\r\n 4000,\r\n 3000,\r\n 2000,\r\n 1000,\r\n 900,\r\n 800,\r\n 700,\r\n 600,\r\n 500,\r\n 400,\r\n 300,\r\n 200,\r\n 100,\r\n 90,\r\n 80,\r\n 70,\r\n 60,\r\n 50,\r\n 40,\r\n 30,\r\n 20,\r\n 10,\r\n 9,\r\n 8,\r\n 7,\r\n 6,\r\n 5,\r\n 4,\r\n 3,\r\n 2,\r\n 1\r\n ],\r\n values: [\r\n 'Ք',\r\n 'Փ',\r\n 'Ւ',\r\n 'Ց',\r\n 'Ր',\r\n 'Տ',\r\n 'Վ',\r\n 'Ս',\r\n 'Ռ',\r\n 'Ջ',\r\n 'Պ',\r\n 'Չ',\r\n 'Ո',\r\n 'Շ',\r\n 'Ն',\r\n 'Յ',\r\n 'Մ',\r\n 'Ճ',\r\n 'Ղ',\r\n 'Ձ',\r\n 'Հ',\r\n 'Կ',\r\n 'Ծ',\r\n 'Խ',\r\n 'Լ',\r\n 'Ի',\r\n 'Ժ',\r\n 'Թ',\r\n 'Ը',\r\n 'Է',\r\n 'Զ',\r\n 'Ե',\r\n 'Դ',\r\n 'Գ',\r\n 'Բ',\r\n 'Ա'\r\n ]\r\n };\r\n var HEBREW = {\r\n integers: [\r\n 10000,\r\n 9000,\r\n 8000,\r\n 7000,\r\n 6000,\r\n 5000,\r\n 4000,\r\n 3000,\r\n 2000,\r\n 1000,\r\n 400,\r\n 300,\r\n 200,\r\n 100,\r\n 90,\r\n 80,\r\n 70,\r\n 60,\r\n 50,\r\n 40,\r\n 30,\r\n 20,\r\n 19,\r\n 18,\r\n 17,\r\n 16,\r\n 15,\r\n 10,\r\n 9,\r\n 8,\r\n 7,\r\n 6,\r\n 5,\r\n 4,\r\n 3,\r\n 2,\r\n 1\r\n ],\r\n values: [\r\n 'י׳',\r\n 'ט׳',\r\n 'ח׳',\r\n 'ז׳',\r\n 'ו׳',\r\n 'ה׳',\r\n 'ד׳',\r\n 'ג׳',\r\n 'ב׳',\r\n 'א׳',\r\n 'ת',\r\n 'ש',\r\n 'ר',\r\n 'ק',\r\n 'צ',\r\n 'פ',\r\n 'ע',\r\n 'ס',\r\n 'נ',\r\n 'מ',\r\n 'ל',\r\n 'כ',\r\n 'יט',\r\n 'יח',\r\n 'יז',\r\n 'טז',\r\n 'טו',\r\n 'י',\r\n 'ט',\r\n 'ח',\r\n 'ז',\r\n 'ו',\r\n 'ה',\r\n 'ד',\r\n 'ג',\r\n 'ב',\r\n 'א'\r\n ]\r\n };\r\n var GEORGIAN = {\r\n integers: [\r\n 10000,\r\n 9000,\r\n 8000,\r\n 7000,\r\n 6000,\r\n 5000,\r\n 4000,\r\n 3000,\r\n 2000,\r\n 1000,\r\n 900,\r\n 800,\r\n 700,\r\n 600,\r\n 500,\r\n 400,\r\n 300,\r\n 200,\r\n 100,\r\n 90,\r\n 80,\r\n 70,\r\n 60,\r\n 50,\r\n 40,\r\n 30,\r\n 20,\r\n 10,\r\n 9,\r\n 8,\r\n 7,\r\n 6,\r\n 5,\r\n 4,\r\n 3,\r\n 2,\r\n 1\r\n ],\r\n values: [\r\n 'ჵ',\r\n 'ჰ',\r\n 'ჯ',\r\n 'ჴ',\r\n 'ხ',\r\n 'ჭ',\r\n 'წ',\r\n 'ძ',\r\n 'ც',\r\n 'ჩ',\r\n 'შ',\r\n 'ყ',\r\n 'ღ',\r\n 'ქ',\r\n 'ფ',\r\n 'ჳ',\r\n 'ტ',\r\n 'ს',\r\n 'რ',\r\n 'ჟ',\r\n 'პ',\r\n 'ო',\r\n 'ჲ',\r\n 'ნ',\r\n 'მ',\r\n 'ლ',\r\n 'კ',\r\n 'ი',\r\n 'თ',\r\n 'ჱ',\r\n 'ზ',\r\n 'ვ',\r\n 'ე',\r\n 'დ',\r\n 'გ',\r\n 'ბ',\r\n 'ა'\r\n ]\r\n };\r\n var createAdditiveCounter = function (value, min, max, symbols, fallback, suffix) {\r\n if (value < min || value > max) {\r\n return createCounterText(value, fallback, suffix.length > 0);\r\n }\r\n return (symbols.integers.reduce(function (string, integer, index) {\r\n while (value >= integer) {\r\n value -= integer;\r\n string += symbols.values[index];\r\n }\r\n return string;\r\n }, '') + suffix);\r\n };\r\n var createCounterStyleWithSymbolResolver = function (value, codePointRangeLength, isNumeric, resolver) {\r\n var string = '';\r\n do {\r\n if (!isNumeric) {\r\n value--;\r\n }\r\n string = resolver(value) + string;\r\n value /= codePointRangeLength;\r\n } while (value * codePointRangeLength >= codePointRangeLength);\r\n return string;\r\n };\r\n var createCounterStyleFromRange = function (value, codePointRangeStart, codePointRangeEnd, isNumeric, suffix) {\r\n var codePointRangeLength = codePointRangeEnd - codePointRangeStart + 1;\r\n return ((value < 0 ? '-' : '') +\r\n (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, isNumeric, function (codePoint) {\r\n return fromCodePoint(Math.floor(codePoint % codePointRangeLength) + codePointRangeStart);\r\n }) +\r\n suffix));\r\n };\r\n var createCounterStyleFromSymbols = function (value, symbols, suffix) {\r\n if (suffix === void 0) { suffix = '. '; }\r\n var codePointRangeLength = symbols.length;\r\n return (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, false, function (codePoint) { return symbols[Math.floor(codePoint % codePointRangeLength)]; }) + suffix);\r\n };\r\n var CJK_ZEROS = 1 << 0;\r\n var CJK_TEN_COEFFICIENTS = 1 << 1;\r\n var CJK_TEN_HIGH_COEFFICIENTS = 1 << 2;\r\n var CJK_HUNDRED_COEFFICIENTS = 1 << 3;\r\n var createCJKCounter = function (value, numbers, multipliers, negativeSign, suffix, flags) {\r\n if (value < -9999 || value > 9999) {\r\n return createCounterText(value, LIST_STYLE_TYPE.CJK_DECIMAL, suffix.length > 0);\r\n }\r\n var tmp = Math.abs(value);\r\n var string = suffix;\r\n if (tmp === 0) {\r\n return numbers[0] + string;\r\n }\r\n for (var digit = 0; tmp > 0 && digit <= 4; digit++) {\r\n var coefficient = tmp % 10;\r\n if (coefficient === 0 && contains(flags, CJK_ZEROS) && string !== '') {\r\n string = numbers[coefficient] + string;\r\n }\r\n else if (coefficient > 1 ||\r\n (coefficient === 1 && digit === 0) ||\r\n (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_COEFFICIENTS)) ||\r\n (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_HIGH_COEFFICIENTS) && value > 100) ||\r\n (coefficient === 1 && digit > 1 && contains(flags, CJK_HUNDRED_COEFFICIENTS))) {\r\n string = numbers[coefficient] + (digit > 0 ? multipliers[digit - 1] : '') + string;\r\n }\r\n else if (coefficient === 1 && digit > 0) {\r\n string = multipliers[digit - 1] + string;\r\n }\r\n tmp = Math.floor(tmp / 10);\r\n }\r\n return (value < 0 ? negativeSign : '') + string;\r\n };\r\n var CHINESE_INFORMAL_MULTIPLIERS = '十百千萬';\r\n var CHINESE_FORMAL_MULTIPLIERS = '拾佰仟萬';\r\n var JAPANESE_NEGATIVE = 'マイナス';\r\n var KOREAN_NEGATIVE = '마이너스';\r\n var createCounterText = function (value, type, appendSuffix) {\r\n var defaultSuffix = appendSuffix ? '. ' : '';\r\n var cjkSuffix = appendSuffix ? '、' : '';\r\n var koreanSuffix = appendSuffix ? ', ' : '';\r\n var spaceSuffix = appendSuffix ? ' ' : '';\r\n switch (type) {\r\n case LIST_STYLE_TYPE.DISC:\r\n return '•' + spaceSuffix;\r\n case LIST_STYLE_TYPE.CIRCLE:\r\n return '◦' + spaceSuffix;\r\n case LIST_STYLE_TYPE.SQUARE:\r\n return '◾' + spaceSuffix;\r\n case LIST_STYLE_TYPE.DECIMAL_LEADING_ZERO:\r\n var string = createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);\r\n return string.length < 4 ? \"0\" + string : string;\r\n case LIST_STYLE_TYPE.CJK_DECIMAL:\r\n return createCounterStyleFromSymbols(value, '〇一二三四五六七八九', cjkSuffix);\r\n case LIST_STYLE_TYPE.LOWER_ROMAN:\r\n return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, LIST_STYLE_TYPE.DECIMAL, defaultSuffix).toLowerCase();\r\n case LIST_STYLE_TYPE.UPPER_ROMAN:\r\n return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, LIST_STYLE_TYPE.DECIMAL, defaultSuffix);\r\n case LIST_STYLE_TYPE.LOWER_GREEK:\r\n return createCounterStyleFromRange(value, 945, 969, false, defaultSuffix);\r\n case LIST_STYLE_TYPE.LOWER_ALPHA:\r\n return createCounterStyleFromRange(value, 97, 122, false, defaultSuffix);\r\n case LIST_STYLE_TYPE.UPPER_ALPHA:\r\n return createCounterStyleFromRange(value, 65, 90, false, defaultSuffix);\r\n case LIST_STYLE_TYPE.ARABIC_INDIC:\r\n return createCounterStyleFromRange(value, 1632, 1641, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.ARMENIAN:\r\n case LIST_STYLE_TYPE.UPPER_ARMENIAN:\r\n return createAdditiveCounter(value, 1, 9999, ARMENIAN, LIST_STYLE_TYPE.DECIMAL, defaultSuffix);\r\n case LIST_STYLE_TYPE.LOWER_ARMENIAN:\r\n return createAdditiveCounter(value, 1, 9999, ARMENIAN, LIST_STYLE_TYPE.DECIMAL, defaultSuffix).toLowerCase();\r\n case LIST_STYLE_TYPE.BENGALI:\r\n return createCounterStyleFromRange(value, 2534, 2543, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.CAMBODIAN:\r\n case LIST_STYLE_TYPE.KHMER:\r\n return createCounterStyleFromRange(value, 6112, 6121, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.CJK_EARTHLY_BRANCH:\r\n return createCounterStyleFromSymbols(value, '子丑寅卯辰巳午未申酉戌亥', cjkSuffix);\r\n case LIST_STYLE_TYPE.CJK_HEAVENLY_STEM:\r\n return createCounterStyleFromSymbols(value, '甲乙丙丁戊己庚辛壬癸', cjkSuffix);\r\n case LIST_STYLE_TYPE.CJK_IDEOGRAPHIC:\r\n case LIST_STYLE_TYPE.TRAD_CHINESE_INFORMAL:\r\n return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\r\n case LIST_STYLE_TYPE.TRAD_CHINESE_FORMAL:\r\n return createCJKCounter(value, '零壹貳參肆伍陸柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\r\n case LIST_STYLE_TYPE.SIMP_CHINESE_INFORMAL:\r\n return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\r\n case LIST_STYLE_TYPE.SIMP_CHINESE_FORMAL:\r\n return createCJKCounter(value, '零壹贰叁肆伍陆柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\r\n case LIST_STYLE_TYPE.JAPANESE_INFORMAL:\r\n return createCJKCounter(value, '〇一二三四五六七八九', '十百千万', JAPANESE_NEGATIVE, cjkSuffix, 0);\r\n case LIST_STYLE_TYPE.JAPANESE_FORMAL:\r\n return createCJKCounter(value, '零壱弐参四伍六七八九', '拾百千万', JAPANESE_NEGATIVE, cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);\r\n case LIST_STYLE_TYPE.KOREAN_HANGUL_FORMAL:\r\n return createCJKCounter(value, '영일이삼사오육칠팔구', '십백천만', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);\r\n case LIST_STYLE_TYPE.KOREAN_HANJA_INFORMAL:\r\n return createCJKCounter(value, '零一二三四五六七八九', '十百千萬', KOREAN_NEGATIVE, koreanSuffix, 0);\r\n case LIST_STYLE_TYPE.KOREAN_HANJA_FORMAL:\r\n return createCJKCounter(value, '零壹貳參四五六七八九', '拾百千', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);\r\n case LIST_STYLE_TYPE.DEVANAGARI:\r\n return createCounterStyleFromRange(value, 0x966, 0x96f, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.GEORGIAN:\r\n return createAdditiveCounter(value, 1, 19999, GEORGIAN, LIST_STYLE_TYPE.DECIMAL, defaultSuffix);\r\n case LIST_STYLE_TYPE.GUJARATI:\r\n return createCounterStyleFromRange(value, 0xae6, 0xaef, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.GURMUKHI:\r\n return createCounterStyleFromRange(value, 0xa66, 0xa6f, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.HEBREW:\r\n return createAdditiveCounter(value, 1, 10999, HEBREW, LIST_STYLE_TYPE.DECIMAL, defaultSuffix);\r\n case LIST_STYLE_TYPE.HIRAGANA:\r\n return createCounterStyleFromSymbols(value, 'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん');\r\n case LIST_STYLE_TYPE.HIRAGANA_IROHA:\r\n return createCounterStyleFromSymbols(value, 'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす');\r\n case LIST_STYLE_TYPE.KANNADA:\r\n return createCounterStyleFromRange(value, 0xce6, 0xcef, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.KATAKANA:\r\n return createCounterStyleFromSymbols(value, 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン', cjkSuffix);\r\n case LIST_STYLE_TYPE.KATAKANA_IROHA:\r\n return createCounterStyleFromSymbols(value, 'イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス', cjkSuffix);\r\n case LIST_STYLE_TYPE.LAO:\r\n return createCounterStyleFromRange(value, 0xed0, 0xed9, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.MONGOLIAN:\r\n return createCounterStyleFromRange(value, 0x1810, 0x1819, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.MYANMAR:\r\n return createCounterStyleFromRange(value, 0x1040, 0x1049, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.ORIYA:\r\n return createCounterStyleFromRange(value, 0xb66, 0xb6f, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.PERSIAN:\r\n return createCounterStyleFromRange(value, 0x6f0, 0x6f9, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.TAMIL:\r\n return createCounterStyleFromRange(value, 0xbe6, 0xbef, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.TELUGU:\r\n return createCounterStyleFromRange(value, 0xc66, 0xc6f, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.THAI:\r\n return createCounterStyleFromRange(value, 0xe50, 0xe59, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.TIBETAN:\r\n return createCounterStyleFromRange(value, 0xf20, 0xf29, true, defaultSuffix);\r\n case LIST_STYLE_TYPE.DECIMAL:\r\n default:\r\n return createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);\r\n }\r\n };\n\n var IGNORE_ATTRIBUTE = 'data-html2canvas-ignore';\r\n var DocumentCloner = /** @class */ (function () {\r\n function DocumentCloner(element, options) {\r\n this.options = options;\r\n this.scrolledElements = [];\r\n this.referenceElement = element;\r\n this.counters = new CounterState();\r\n this.quoteDepth = 0;\r\n if (!element.ownerDocument) {\r\n throw new Error('Cloned element does not have an owner document');\r\n }\r\n this.documentElement = this.cloneNode(element.ownerDocument.documentElement);\r\n }\r\n DocumentCloner.prototype.toIFrame = function (ownerDocument, windowSize) {\r\n var _this = this;\r\n var iframe = createIFrameContainer(ownerDocument, windowSize);\r\n if (!iframe.contentWindow) {\r\n return Promise.reject(\"Unable to find iframe window\");\r\n }\r\n var scrollX = ownerDocument.defaultView.pageXOffset;\r\n var scrollY = ownerDocument.defaultView.pageYOffset;\r\n var cloneWindow = iframe.contentWindow;\r\n var documentClone = cloneWindow.document;\r\n /* Chrome doesn't detect relative background-images assigned in inline