commit f0df0a54268a57649b1b50a512b3f60b2e39bf82 Author: PJ568 Date: Thu Jun 15 13:59:50 2023 +0800 commit message diff --git a/README.md b/README.md new file mode 100644 index 00000000..1ba11b1f --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Tools + +> 简体中文 | [English](./README_EN.md) + +此分支存储所有的在线工具。 + +## 📖其他说明 + +[见主 README 文件](https://github.com/PJ-568/568tools#%E5%BE%85%E5%AE%8C%E6%88%90) + +## 🏆贡献者们 + +> 感谢所有让这个项目变得更好的贡献者们! + +[![Contributors Chart](https://contrib.rocks/image?repo=PJ-568/568tools)](https://github.com/PJ-568/568tools/graphs/contributors) + +## ⭐Star 历史 + +![Star History Chart](https://api.star-history.com/svg?repos=PJ-568/568tools&type=Date) \ No newline at end of file diff --git a/README_EN.md b/README_EN.md new file mode 100644 index 00000000..035ac9e0 --- /dev/null +++ b/README_EN.md @@ -0,0 +1,19 @@ +# 568Tools Online Toolbox + +> [简体中文](./README.md) | English + +This branch stores all online tools. + +## 📖Infomation + +[See in Main README](https://github.com/PJ-568/568tools/blob/main/README_EN.md#to-do-list) + +## 🏆Contributors + +> Thanks to all the contributors who made this project better! + +[![Contributors Chart](https://contrib.rocks/image?repo=PJ-568/568tools)](https://github.com/PJ-568/568tools/graphs/contributors) + +## ⭐Star History + +![Star History Chart](https://api.star-history.com/svg?repos=PJ-568/568tools&type=Date) \ No newline at end of file diff --git a/app/568Tools_在线工具箱_First_Release.apk b/app/568Tools_在线工具箱_First_Release.apk new file mode 100644 index 00000000..e6a2b32c Binary files /dev/null and b/app/568Tools_在线工具箱_First_Release.apk differ diff --git a/data.json b/data.json new file mode 100644 index 00000000..4c35a507 --- /dev/null +++ b/data.json @@ -0,0 +1,42 @@ +[ + { + "name":"PJ568的博客", + "url":"https://PJ568.eu.org/", + "type":"568服务" + }, + { + "name":"568Tools 在线工具箱", + "url":"https://Tools.PJ568.eu.org/", + "type":"568服务" + }, + { + "name":"转转雀 - Github 文件加速", + "url":"https://proxy.PJ568.eu.org/", + "type":"568服务" + }, + { + "name":"Chat.pj568.eu.org", + "url":"https://Chat.pj568.eu.org/", + "type":"568服务" + }, + { + "name":"黑色全屏", + "url":"/568tools/tools/黑色全屏/", + "type":"屏幕工具" + }, + { + "name":"字符生成图片", + "url":"/568tools/tools/geopattern/", + "type":"图像处理" + }, + { + "name":"思维导图", + "url":"/incert/?link=568tools/tools/mind-map/", + "type":"图像处理" + }, + { + "name":"32 位 x86 虚拟机", + "url":"/568tools/tools/v86/", + "type":"软件模拟" + } +] diff --git a/js/api.js b/js/api.js new file mode 100644 index 00000000..3f40058e --- /dev/null +++ b/js/api.js @@ -0,0 +1,57 @@ +var classify = [{ + "id": 1, + "name": "568服务", + "list": [{ + "name": "PJ568的博客", + "url": "https://PJ568.eu.org/", + "hot": 0, + "img": "" + }, { + "name": "568Tools 在线工具箱", + "url": "https://Tools.PJ568.eu.org/", + "hot": 1, + "img": "" + }, { + "name": "转转雀 - Github 文件加速", + "url": "https://Proxy.PJ568.eu.org/", + "hot": 1, + "img": "" + }, { + "name": "Chat.pj568.eu.org", + "url": "https://Chat.PJ568.eu.org/", + "hot": 0, + "img": "" + }] +}, { + "id": 2, + "name": "图像处理", + "list": [{ + "name": "字符生成图片", + "url": "/568tools/tools/geopattern/", + "hot": 0, + "img": "" + }, { + "name": "思维导图", + "url": "/incert/?link=568tools/tools/mind-map/", + "hot": 1, + "img": "" + }] +}, { + "id": 3, + "name": "软件模拟", + "list": [{ + "name": "32 位 x86 虚拟机", + "url": "/568tools/tools/v86/", + "hot": 0, + "img": "" + }] +}, { + "id": 4, + "name": "屏幕工具", + "list": [{ + "name": "黑色全屏", + "url": "/568tools/tools/黑色全屏/", + "hot": 0, + "img": "" + }] +}] diff --git a/tools/geopattern/LICENSE b/tools/geopattern/LICENSE new file mode 100644 index 00000000..cff0afe9 --- /dev/null +++ b/tools/geopattern/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2014 Jason Long, Brandon Mills + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/tools/geopattern/css/demo.css b/tools/geopattern/css/demo.css new file mode 100644 index 00000000..3c3e59e3 --- /dev/null +++ b/tools/geopattern/css/demo.css @@ -0,0 +1,51 @@ +body, html { + margin: 0; + padding: 0; + width: 100%; + height: calc(100%-42px); + font-family: sans-serif; + background: #7f7f7f; +} + +.js-geopattern, +#string { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + margin: 0; + padding: 0; +} + +input { + text-align: center; + color: #f7f7f7; + background: rgba(0, 0, 0, 0); + border: 0; + outline: 0; + text-shadow: 0 0 5px rgba(255, 255, 255, 0.75); + font-size: 30pt; +} + +input::-ms-clear { + display: none; +} + +#save { + position: absolute; + bottom: 0; + width: 100%; + text-align: center; + text-decoration: none; + color: white; + font-size: 18px; + line-height: 36px; + font-weight: 200; + background: rgba(255, 255, 255, 0.1); +} + +#save:hover { + background: rgba(255, 255, 255, 0.75); + color: black; +} diff --git a/tools/geopattern/index.html b/tools/geopattern/index.html new file mode 100644 index 00000000..1cb71434 --- /dev/null +++ b/tools/geopattern/index.html @@ -0,0 +1,38 @@ + + + + + + GeoPattern - 字符生成图片 + + + + + + +
+
+ + 保存图案 + + + + + + + + + \ No newline at end of file diff --git a/tools/geopattern/js/base64.min.js b/tools/geopattern/js/base64.min.js new file mode 100644 index 00000000..f4fec5f5 --- /dev/null +++ b/tools/geopattern/js/base64.min.js @@ -0,0 +1 @@ +!function(){function t(t){this.message=t}var r="undefined"!=typeof exports?exports:this,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.btoa||(r.btoa=function(r){for(var o,n,a=String(r),i=0,c=e,d="";a.charAt(0|i)||(c="=",i%1);d+=c.charAt(63&o>>8-i%1*8)){if(n=a.charCodeAt(i+=.75),n>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");o=o<<8|n}return d}),r.atob||(r.atob=function(r){var o=String(r).replace(/=+$/,"");if(o.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,a,i=0,c=0,d="";a=o.charAt(c++);~a&&(n=i%4?64*n+a:a,i++%4)?d+=String.fromCharCode(255&n>>(-2*i&6)):0)a=e.indexOf(a);return d})}(); diff --git a/tools/geopattern/js/demo.js b/tools/geopattern/js/demo.js new file mode 100644 index 00000000..c4138c02 --- /dev/null +++ b/tools/geopattern/js/demo.js @@ -0,0 +1,84 @@ +var next = (function () { + var which = 0; + return function () { + return { + prev: which, + next: which = (which + 1) % 2 + }; + }; +}()); + +// Hook and debounce input event +function onChange($el, cb) { + var last = $el.val(); + $el.on('input', function () { + var val = $el.val(); + var oldVal; + if (last !== val) { + oldVal = last; + last = val; + typeof cb === 'function' && cb.call($el, val, oldVal); + } + }); + + return { + trigger: function () { + typeof cb === 'function' && cb.call($el, $el.val(), last); + } + }; +} + +var fadeOptions = { + duration: 100, + queue: false +}; + +var canvas = document.createElement('canvas'); +var saveButton = document.getElementById('save'); + +function prepareDownload(string, pattern) { + if (!canvas) { + canvas = document.createElement('canvas'); + } + + var ctx = canvas.getContext('2d'); + var img = new Image(); + + img.onload = function() { + canvas.width = this.width; + canvas.height = this.height; + ctx.drawImage(img, 0, 0); + saveButton.download = string + '.png'; + try { + saveButton.href = canvas.toDataURL('image/png'); + } catch (err) { + // The above is a security error in IE, so hide the save button + saveButton.style.display = 'none'; + } + }; + + img.src = pattern.toDataUri(); +} + +var changeEvent = onChange($('#string'), function (val) { + var pattern = GeoPattern.generate(val); + + var bg = next(); + $('#bg-' + bg.next) + .css('background-image', pattern.toDataUrl()) + .stop() + .fadeIn(fadeOptions); + $('#bg-' + bg.prev) + .stop() + .fadeOut(fadeOptions); + + prepareDownload(val, pattern); +}); + +// Some browsers persist field values between refresh +$(function () { + $('#string') + .val(' 请键入内容 ') + .focus(); + changeEvent.trigger(); +}); diff --git a/tools/geopattern/js/geopattern.min.js b/tools/geopattern/js/geopattern.min.js new file mode 100644 index 00000000..50332f6f --- /dev/null +++ b/tools/geopattern/js/geopattern.min.js @@ -0,0 +1 @@ +!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var r;"undefined"!=typeof window?r=window:"undefined"!=typeof global?r=global:"undefined"!=typeof self&&(r=self),r.GeoPattern=t()}}(function(){return function t(r,s,e){function i(n,a){if(!s[n]){if(!r[n]){var h="function"==typeof require&&require;if(!a&&h)return h(n,!0);if(o)return o(n,!0);throw new Error("Cannot find module '"+n+"'")}var l=s[n]={exports:{}};r[n][0].call(l.exports,function(t){var s=r[n][1][t];return i(s?s:t)},l,l.exports,t,r,s,e)}return s[n].exports}for(var o="function"==typeof require&&require,n=0;n.5?l/(2-n-a):l/(n+a),n){case r:i=(s-e)/l+(e>s?6:0);break;case s:i=(e-r)/l+2;break;case e:i=(r-s)/l+4}i/=6}return{h:i,s:o,l:h}}function o(t){function r(t,r,s){return 0>s&&(s+=1),s>1&&(s-=1),1/6>s?t+6*(r-t)*s:.5>s?r:2/3>s?t+(r-t)*(2/3-s)*6:t}var s,e,i,o=t.h,n=t.s,a=t.l;if(0===n)s=e=i=a;else{var h=.5>a?a*(1+n):a+n-a*n,l=2*a-h;s=r(l,h,o+1/3),e=r(l,h,o),i=r(l,h,o-1/3)}return{r:Math.round(255*s),g:Math.round(255*e),b:Math.round(255*i)}}r.exports={hex2rgb:s,rgb2hex:e,rgb2hsl:i,hsl2rgb:o,rgb2rgbString:function(t){return"rgb("+[t.r,t.g,t.b].join(",")+")"}}},{}],3:[function(t,r){(function(s){"use strict";function e(t,r,s){return parseInt(t.substr(r,s||1),16)}function i(t,r,s,e,i){var o=parseFloat(t),n=s-r,a=i-e;return(o-r)*a/n+e}function o(t){return t%2===0?C:j}function n(t){return i(t,0,15,M,W)}function a(t){var r=t,s=r/2,e=Math.sin(60*Math.PI/180)*r;return[0,e,s,0,s+r,0,2*r,e,s+r,2*e,s,2*e,0,e].join(",")}function h(t,r){var s=.66*r;return[[0,0,t/2,r-s,t/2,r,0,s,0,0],[t/2,r-s,t,0,t,s,t/2,r,t/2,r-s]].map(function(t){return t.join(",")})}function l(t){return[[t,0,t,3*t],[0,t,3*t,t]]}function c(t){var r=t,s=.33*r;return[s,0,r-s,0,r,s,r,r-s,r-s,r,s,r,0,r-s,0,s,s,0].join(",")}function f(t,r){var s=t/2;return[s,0,t,r,0,r,s,0].join(",")}function u(t,r){return[t/2,0,t,r/2,t/2,r,0,r/2].join(",")}function p(t){return[0,0,t,t,0,t,0,0].join(",")}function g(t,r,s,e,i){var a=p(e),h=n(i[0]),l=o(i[0]),c={stroke:S,"stroke-opacity":A,"fill-opacity":h,fill:l};t.polyline(a,c).transform({translate:[r+e,s],scale:[-1,1]}),t.polyline(a,c).transform({translate:[r+e,s+2*e],scale:[1,-1]}),h=n(i[1]),l=o(i[1]),c={stroke:S,"stroke-opacity":A,"fill-opacity":h,fill:l},t.polyline(a,c).transform({translate:[r+e,s+2*e],scale:[-1,-1]}),t.polyline(a,c).transform({translate:[r+e,s],scale:[1,1]})}function v(t,r,s,e,i){var a=n(i),h=o(i),l=p(e),c={stroke:S,"stroke-opacity":A,"fill-opacity":a,fill:h};t.polyline(l,c).transform({translate:[r,s+e],scale:[1,-1]}),t.polyline(l,c).transform({translate:[r+2*e,s+e],scale:[-1,-1]}),t.polyline(l,c).transform({translate:[r,s+e],scale:[1,1]}),t.polyline(l,c).transform({translate:[r+2*e,s+e],scale:[-1,1]})}function y(t,r){var s=t/2;return[0,0,r,s,0,t,0,0].join(",")}var d=t("extend"),b=t("./color"),m=t("./sha1"),k=t("./svg"),x={baseColor:"#933c3c"},w=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],j="#222",C="#ddd",S="#000",A=.02,M=.02,W=.15,H=r.exports=function(t,r){return this.opts=d({},x,r),this.hash=r.hash||m(t),this.svg=new k,this.generateBackground(),this.generatePattern(),this};H.prototype.toSvg=function(){return this.svg.toString()},H.prototype.toString=function(){return this.toSvg()},H.prototype.toBase64=function(){var t,r=this.toSvg();return t="undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(r):new s(r).toString("base64")},H.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},H.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},H.prototype.generateBackground=function(){var t,r,s,o;this.opts.color?s=b.hex2rgb(this.opts.color):(r=i(e(this.hash,14,3),0,4095,0,359),o=e(this.hash,17),t=b.rgb2hsl(b.hex2rgb(this.opts.baseColor)),t.h=(360*t.h-r+360)%360/360,t.s=o%2===0?Math.min(1,(100*t.s+o)/100):Math.max(0,(100*t.s-o)/100),s=b.hsl2rgb(t)),this.color=b.rgb2hex(s),this.svg.rect(0,0,"100%","100%",{fill:b.rgb2rgbString(s)})},H.prototype.generatePattern=function(){var t=this.opts.generator;if(t){if(w.indexOf(t)<0)throw new Error("The generator "+t+" does not exist.")}else t=w[e(this.hash,20)];return this["geo"+t.slice(0,1).toUpperCase()+t.slice(1)]()},H.prototype.geoHexagons=function(){var t,r,s,h,l,c,f,u,p=e(this.hash,0),g=i(p,0,15,8,60),v=g*Math.sqrt(3),y=2*g,d=a(g);for(this.svg.setWidth(3*y+3*g),this.svg.setHeight(6*v),s=0,u=0;6>u;u++)for(f=0;6>f;f++)c=e(this.hash,s),t=f%2===0?u*v:u*v+v/2,h=n(c),r=o(c),l={fill:r,"fill-opacity":h,stroke:S,"stroke-opacity":A},this.svg.polyline(d,l).transform({translate:[f*g*1.5-y/2,t-v/2]}),0===f&&this.svg.polyline(d,l).transform({translate:[6*g*1.5-y/2,t-v/2]}),0===u&&(t=f%2===0?6*v:6*v+v/2,this.svg.polyline(d,l).transform({translate:[f*g*1.5-y/2,t-v/2]})),0===f&&0===u&&this.svg.polyline(d,l).transform({translate:[6*g*1.5-y/2,5*v+v/2]}),s++},H.prototype.geoSineWaves=function(){var t,r,s,a,h,l,c,f=Math.floor(i(e(this.hash,0),0,15,100,400)),u=Math.floor(i(e(this.hash,1),0,15,30,100)),p=Math.floor(i(e(this.hash,2),0,15,3,30));for(this.svg.setWidth(f),this.svg.setHeight(36*p),r=0;36>r;r++)l=e(this.hash,r),s=n(l),t=o(l),c=f/4*.7,h={fill:"none",stroke:t,opacity:s,"stroke-width":""+p+"px"},a="M0 "+u+" C "+c+" 0, "+(f/2-c)+" 0, "+f/2+" "+u+" S "+(f-c)+" "+2*u+", "+f+" "+u+" S "+(1.5*f-c)+" 0, "+1.5*f+", "+u,this.svg.path(a,h).transform({translate:[-f/4,p*r-1.5*u]}),this.svg.path(a,h).transform({translate:[-f/4,p*r-1.5*u+36*p]})},H.prototype.geoChevrons=function(){var t,r,s,a,l,c,f,u=i(e(this.hash,0),0,15,30,80),p=i(e(this.hash,0),0,15,30,80),g=h(u,p);for(this.svg.setWidth(6*u),this.svg.setHeight(6*p*.66),r=0,f=0;6>f;f++)for(c=0;6>c;c++)l=e(this.hash,r),s=n(l),t=o(l),a={stroke:S,"stroke-opacity":A,fill:t,"fill-opacity":s,"stroke-width":1},this.svg.group(a).transform({translate:[c*u,f*p*.66-p/2]}).polyline(g).end(),0===f&&this.svg.group(a).transform({translate:[c*u,6*p*.66-p/2]}).polyline(g).end(),r+=1},H.prototype.geoPlusSigns=function(){var t,r,s,a,h,c,f,u,p=i(e(this.hash,0),0,15,10,25),g=3*p,v=l(p);for(this.svg.setWidth(12*p),this.svg.setHeight(12*p),s=0,u=0;6>u;u++)for(f=0;6>f;f++)c=e(this.hash,s),a=n(c),r=o(c),t=u%2===0?0:1,h={fill:r,stroke:S,"stroke-opacity":A,"fill-opacity":a},this.svg.group(h).transform({translate:[f*g-f*p+t*p-p,u*g-u*p-g/2]}).rect(v).end(),0===f&&this.svg.group(h).transform({translate:[4*g-f*p+t*p-p,u*g-u*p-g/2]}).rect(v).end(),0===u&&this.svg.group(h).transform({translate:[f*g-f*p+t*p-p,4*g-u*p-g/2]}).rect(v).end(),0===f&&0===u&&this.svg.group(h).transform({translate:[4*g-f*p+t*p-p,4*g-u*p-g/2]}).rect(v).end(),s++},H.prototype.geoXes=function(){var t,r,s,a,h,c,f,u,p=i(e(this.hash,0),0,15,10,25),g=l(p),v=3*p*.943;for(this.svg.setWidth(3*v),this.svg.setHeight(3*v),s=0,u=0;6>u;u++)for(f=0;6>f;f++)c=e(this.hash,s),a=n(c),t=f%2===0?u*v-.5*v:u*v-.5*v+v/4,r=o(c),h={fill:r,opacity:a},this.svg.group(h).transform({translate:[f*v/2-v/2,t-u*v/2],rotate:[45,v/2,v/2]}).rect(g).end(),0===f&&this.svg.group(h).transform({translate:[6*v/2-v/2,t-u*v/2],rotate:[45,v/2,v/2]}).rect(g).end(),0===u&&(t=f%2===0?6*v-v/2:6*v-v/2+v/4,this.svg.group(h).transform({translate:[f*v/2-v/2,t-6*v/2],rotate:[45,v/2,v/2]}).rect(g).end()),5===u&&this.svg.group(h).transform({translate:[f*v/2-v/2,t-11*v/2],rotate:[45,v/2,v/2]}).rect(g).end(),0===f&&0===u&&this.svg.group(h).transform({translate:[6*v/2-v/2,t-6*v/2],rotate:[45,v/2,v/2]}).rect(g).end(),s++},H.prototype.geoOverlappingCircles=function(){var t,r,s,a,h,l,c,f=e(this.hash,0),u=i(f,0,15,25,200),p=u/2;for(this.svg.setWidth(6*p),this.svg.setHeight(6*p),r=0,c=0;6>c;c++)for(l=0;6>l;l++)h=e(this.hash,r),s=n(h),t=o(h),a={fill:t,opacity:s},this.svg.circle(l*p,c*p,p,a),0===l&&this.svg.circle(6*p,c*p,p,a),0===c&&this.svg.circle(l*p,6*p,p,a),0===l&&0===c&&this.svg.circle(6*p,6*p,p,a),r++},H.prototype.geoOctogons=function(){var t,r,s,a,h,l,f=i(e(this.hash,0),0,15,10,60),u=c(f);for(this.svg.setWidth(6*f),this.svg.setHeight(6*f),r=0,l=0;6>l;l++)for(h=0;6>h;h++)a=e(this.hash,r),s=n(a),t=o(a),this.svg.polyline(u,{fill:t,"fill-opacity":s,stroke:S,"stroke-opacity":A}).transform({translate:[h*f,l*f]}),r+=1},H.prototype.geoSquares=function(){var t,r,s,a,h,l,c=i(e(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*c),this.svg.setHeight(6*c),r=0,l=0;6>l;l++)for(h=0;6>h;h++)a=e(this.hash,r),s=n(a),t=o(a),this.svg.rect(h*c,l*c,c,c,{fill:t,"fill-opacity":s,stroke:S,"stroke-opacity":A}),r+=1},H.prototype.geoConcentricCircles=function(){var t,r,s,a,h,l,c=e(this.hash,0),f=i(c,0,15,10,60),u=f/5;for(this.svg.setWidth(6*(f+u)),this.svg.setHeight(6*(f+u)),r=0,l=0;6>l;l++)for(h=0;6>h;h++)a=e(this.hash,r),s=n(a),t=o(a),this.svg.circle(h*f+h*u+(f+u)/2,l*f+l*u+(f+u)/2,f/2,{fill:"none",stroke:t,opacity:s,"stroke-width":u+"px"}),a=e(this.hash,39-r),s=n(a),t=o(a),this.svg.circle(h*f+h*u+(f+u)/2,l*f+l*u+(f+u)/2,f/4,{fill:t,"fill-opacity":s}),r+=1},H.prototype.geoOverlappingRings=function(){var t,r,s,a,h,l,c,f=e(this.hash,0),u=i(f,0,15,10,60),p=u/4;for(this.svg.setWidth(6*u),this.svg.setHeight(6*u),r=0,c=0;6>c;c++)for(l=0;6>l;l++)h=e(this.hash,r),s=n(h),t=o(h),a={fill:"none",stroke:t,opacity:s,"stroke-width":p+"px"},this.svg.circle(l*u,c*u,u-p/2,a),0===l&&this.svg.circle(6*u,c*u,u-p/2,a),0===c&&this.svg.circle(l*u,6*u,u-p/2,a),0===l&&0===c&&this.svg.circle(6*u,6*u,u-p/2,a),r+=1},H.prototype.geoTriangles=function(){var t,r,s,a,h,l,c,u,p=e(this.hash,0),g=i(p,0,15,15,80),v=g/2*Math.sqrt(3),y=f(g,v);for(this.svg.setWidth(3*g),this.svg.setHeight(6*v),r=0,u=0;6>u;u++)for(c=0;6>c;c++)l=e(this.hash,r),s=n(l),t=o(l),h={fill:t,"fill-opacity":s,stroke:S,"stroke-opacity":A},a=u%2===0?c%2===0?180:0:c%2!==0?180:0,this.svg.polyline(y,h).transform({translate:[c*g*.5-g/2,v*u],rotate:[a,g/2,v/2]}),0===c&&this.svg.polyline(y,h).transform({translate:[6*g*.5-g/2,v*u],rotate:[a,g/2,v/2]}),r+=1},H.prototype.geoDiamonds=function(){var t,r,s,a,h,l,c,f,p=i(e(this.hash,0),0,15,10,50),g=i(e(this.hash,1),0,15,10,50),v=u(p,g);for(this.svg.setWidth(6*p),this.svg.setHeight(3*g),s=0,f=0;6>f;f++)for(c=0;6>c;c++)l=e(this.hash,s),a=n(l),r=o(l),h={fill:r,"fill-opacity":a,stroke:S,"stroke-opacity":A},t=f%2===0?0:p/2,this.svg.polyline(v,h).transform({translate:[c*p-p/2+t,g/2*f-g/2]}),0===c&&this.svg.polyline(v,h).transform({translate:[6*p-p/2+t,g/2*f-g/2]}),0===f&&this.svg.polyline(v,h).transform({translate:[c*p-p/2+t,g/2*6-g/2]}),0===c&&0===f&&this.svg.polyline(v,h).transform({translate:[6*p-p/2+t,g/2*6-g/2]}),s+=1},H.prototype.geoNestedSquares=function(){var t,r,s,a,h,l,c,f=i(e(this.hash,0),0,15,4,12),u=7*f;for(this.svg.setWidth(6*(u+f)+6*f),this.svg.setHeight(6*(u+f)+6*f),r=0,c=0;6>c;c++)for(l=0;6>l;l++)h=e(this.hash,r),s=n(h),t=o(h),a={fill:"none",stroke:t,opacity:s,"stroke-width":f+"px"},this.svg.rect(l*u+l*f*2+f/2,c*u+c*f*2+f/2,u,u,a),h=e(this.hash,39-r),s=n(h),t=o(h),a={fill:"none",stroke:t,opacity:s,"stroke-width":f+"px"},this.svg.rect(l*u+l*f*2+f/2+2*f,c*u+c*f*2+f/2+2*f,3*f,3*f,a),r+=1},H.prototype.geoMosaicSquares=function(){var t,r,s,o=i(e(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*o),this.svg.setHeight(8*o),t=0,s=0;4>s;s++)for(r=0;4>r;r++)r%2===0?s%2===0?v(this.svg,r*o*2,s*o*2,o,e(this.hash,t)):g(this.svg,r*o*2,s*o*2,o,[e(this.hash,t),e(this.hash,t+1)]):s%2===0?g(this.svg,r*o*2,s*o*2,o,[e(this.hash,t),e(this.hash,t+1)]):v(this.svg,r*o*2,s*o*2,o,e(this.hash,t)),t+=1},H.prototype.geoPlaid=function(){var t,r,s,i,a,h,l,c=0,f=0;for(r=0;36>r;)i=e(this.hash,r),c+=i+5,l=e(this.hash,r+1),s=n(l),t=o(l),a=l+5,this.svg.rect(0,c,"100%",a,{opacity:s,fill:t}),c+=a,r+=2;for(r=0;36>r;)i=e(this.hash,r),f+=i+5,l=e(this.hash,r+1),s=n(l),t=o(l),h=l+5,this.svg.rect(f,0,h,"100%",{opacity:s,fill:t}),f+=h,r+=2;this.svg.setWidth(f),this.svg.setHeight(c)},H.prototype.geoTessellation=function(){var t,r,s,a,h,l=i(e(this.hash,0),0,15,5,40),c=l*Math.sqrt(3),f=2*l,u=l/2*Math.sqrt(3),p=y(l,u),g=3*l+2*u,v=2*c+2*l;for(this.svg.setWidth(g),this.svg.setHeight(v),r=0;20>r;r++)switch(h=e(this.hash,r),s=n(h),t=o(h),a={stroke:S,"stroke-opacity":A,fill:t,"fill-opacity":s,"stroke-width":1},r){case 0:this.svg.rect(-l/2,-l/2,l,l,a),this.svg.rect(g-l/2,-l/2,l,l,a),this.svg.rect(-l/2,v-l/2,l,l,a),this.svg.rect(g-l/2,v-l/2,l,l,a);break;case 1:this.svg.rect(f/2+u,c/2,l,l,a);break;case 2:this.svg.rect(-l/2,v/2-l/2,l,l,a),this.svg.rect(g-l/2,v/2-l/2,l,l,a);break;case 3:this.svg.rect(f/2+u,1.5*c+l,l,l,a);break;case 4:this.svg.polyline(p,a).transform({translate:[l/2,-l/2],rotate:[0,l/2,u/2]}),this.svg.polyline(p,a).transform({translate:[l/2,v- -l/2],rotate:[0,l/2,u/2],scale:[1,-1]});break;case 5:this.svg.polyline(p,a).transform({translate:[g-l/2,-l/2],rotate:[0,l/2,u/2],scale:[-1,1]}),this.svg.polyline(p,a).transform({translate:[g-l/2,v+l/2],rotate:[0,l/2,u/2],scale:[-1,-1]});break;case 6:this.svg.polyline(p,a).transform({translate:[g/2+l/2,c/2]});break;case 7:this.svg.polyline(p,a).transform({translate:[g-g/2-l/2,c/2],scale:[-1,1]});break;case 8:this.svg.polyline(p,a).transform({translate:[g/2+l/2,v-c/2],scale:[1,-1]});break;case 9:this.svg.polyline(p,a).transform({translate:[g-g/2-l/2,v-c/2],scale:[-1,-1]});break;case 10:this.svg.polyline(p,a).transform({translate:[l/2,v/2-l/2]});break;case 11:this.svg.polyline(p,a).transform({translate:[g-l/2,v/2-l/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,l,l,a).transform({translate:[l/2,l/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,l,l,a).transform({scale:[-1,1],translate:[-g+l/2,l/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,l,l,a).transform({translate:[l/2,v/2-l/2-l],rotate:[30,0,l]});break;case 15:this.svg.rect(0,0,l,l,a).transform({scale:[-1,1],translate:[-g+l/2,v/2-l/2-l],rotate:[30,0,l]});break;case 16:this.svg.rect(0,0,l,l,a).transform({scale:[1,-1],translate:[l/2,-v+v/2-l/2-l],rotate:[30,0,l]});break;case 17:this.svg.rect(0,0,l,l,a).transform({scale:[-1,-1],translate:[-g+l/2,-v+v/2-l/2-l],rotate:[30,0,l]});break;case 18:this.svg.rect(0,0,l,l,a).transform({scale:[1,-1],translate:[l/2,-v+l/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,l,l,a).transform({scale:[-1,-1],translate:[-g+l/2,-v+l/2],rotate:[-30,0,0]})}}}).call(this,t("buffer").Buffer)},{"./color":2,"./sha1":4,"./svg":5,buffer:7,extend:8}],4:[function(t,r){"use strict";function s(){function t(){for(var t=16;80>t;t++){var r=f[t-3]^f[t-8]^f[t-14]^f[t-16];f[t]=r<<1|r>>>31}var s,e,i=n,o=a,p=h,g=l,v=c;for(t=0;80>t;t++){20>t?(s=g^o&(p^g),e=1518500249):40>t?(s=o^p^g,e=1859775393):60>t?(s=o&p|g&(o|p),e=2400959708):(s=o^p^g,e=3395469782);var y=(i<<5|i>>>27)+s+v+e+(0|f[t]);v=g,g=p,p=o<<30|o>>>2,o=i,i=y}for(n=n+i|0,a=a+o|0,h=h+p|0,l=l+g|0,c=c+v|0,u=0,t=0;16>t;t++)f[t]=0}function r(r){f[u]|=(255&r)<e;e++)r(t.charCodeAt(e))}function e(t){if("string"==typeof t)return s(t);var e=t.length;g+=8*e;for(var i=0;e>i;i++)r(t[i])}function i(t){for(var r="",s=28;s>=0;s-=4)r+=(t>>s&15).toString(16);return r}function o(){r(128),(u>14||14===u&&24>p)&&t(),u=14,p=24,r(0),r(0),r(g>0xffffffffff?g/1099511627776:0),r(g>4294967295?g/4294967296:0);for(var s=24;s>=0;s-=8)r(g>>s);return i(n)+i(a)+i(h)+i(l)+i(c)}var n=1732584193,a=4023233417,h=2562383102,l=271733878,c=3285377520,f=new Uint32Array(80),u=0,p=24,g=0;return{update:e,digest:o}}r.exports=function(t){if(void 0===t)return s();var r=s();return r.update(t),r.digest()}},{}],5:[function(t,r){"use strict";function s(){return this.width=100,this.height=100,this.svg=i("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}var e=t("extend"),i=t("./xml");r.exports=s,s.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},s.prototype.end=function(){return this.context.pop(),this},s.prototype.currentNode=function(){var t=this.currentContext();return t.lastChild||t},s.prototype.transform=function(t){return this.currentNode().setAttribute("transform",Object.keys(t).map(function(r){return r+"("+t[r].join(",")+")"}).join(" ")),this},s.prototype.setAttributes=function(t,r){Object.keys(r).forEach(function(s){t.setAttribute(s,r[s])})},s.prototype.setWidth=function(t){this.svg.setAttribute("width",Math.floor(t))},s.prototype.setHeight=function(t){this.svg.setAttribute("height",Math.floor(t))},s.prototype.toString=function(){return this.svg.toString()},s.prototype.rect=function(t,r,s,o,n){var a=this;if(Array.isArray(t))return t.forEach(function(t){a.rect.apply(a,t.concat(n))}),this;var h=i("rect");return this.currentContext().appendChild(h),this.setAttributes(h,e({x:t,y:r,width:s,height:o},n)),this},s.prototype.circle=function(t,r,s,o){var n=i("circle");return this.currentContext().appendChild(n),this.setAttributes(n,e({cx:t,cy:r,r:s},o)),this},s.prototype.path=function(t,r){var s=i("path");return this.currentContext().appendChild(s),this.setAttributes(s,e({d:t},r)),this},s.prototype.polyline=function(t,r){var s=this;if(Array.isArray(t))return t.forEach(function(t){s.polyline(t,r)}),this;var o=i("polyline");return this.currentContext().appendChild(o),this.setAttributes(o,e({points:t},r)),this},s.prototype.group=function(t){var r=i("g");return this.currentContext().appendChild(r),this.context.push(r),this.setAttributes(r,e({},t)),this}},{"./xml":6,extend:8}],6:[function(t,r){"use strict";var s=r.exports=function(t){return this instanceof s?(this.tagName=t,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new s(t)};s.prototype.appendChild=function(t){return this.children.push(t),this.lastChild=t,this},s.prototype.setAttribute=function(t,r){return this.attributes[t]=r,this},s.prototype.toString=function(){var t=this;return["<",t.tagName,Object.keys(t.attributes).map(function(r){return[" ",r,'="',t.attributes[r],'"'].join("")}).join(""),">",t.children.map(function(t){return t.toString()}).join(""),""].join("")}},{}],7:[function(){},{}],8:[function(t,r){function s(t){if(!t||"[object Object]"!==i.call(t)||t.nodeType||t.setInterval)return!1;var r=e.call(t,"constructor"),s=e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!s)return!1;var o;for(o in t);return void 0===o||e.call(t,o)}var e=Object.prototype.hasOwnProperty,i=Object.prototype.toString;r.exports=function o(){var t,r,e,i,n,a,h=arguments[0]||{},l=1,c=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},l=2),"object"!=typeof h&&"function"!=typeof h&&(h={});c>l;l++)if(null!=(t=arguments[l]))for(r in t)e=h[r],i=t[r],h!==i&&(f&&i&&(s(i)||(n=Array.isArray(i)))?(n?(n=!1,a=e&&Array.isArray(e)?e:[]):a=e&&s(e)?e:{},h[r]=o(f,a,i)):void 0!==i&&(h[r]=i));return h}},{}]},{},[1])(1)}); \ No newline at end of file diff --git a/tools/geopattern/js/jquery.min.js b/tools/geopattern/js/jquery.min.js new file mode 100644 index 00000000..cbe6abe5 --- /dev/null +++ b/tools/geopattern/js/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.1.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m=a.document,n="2.1.0",o=function(a,b){return new o.fn.init(a,b)},p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};o.fn=o.prototype={jquery:n,constructor:o,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=o.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return o.each(this,a,b)},map:function(a){return this.pushStack(o.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},o.extend=o.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||o.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(o.isPlainObject(d)||(e=o.isArray(d)))?(e?(e=!1,f=c&&o.isArray(c)?c:[]):f=c&&o.isPlainObject(c)?c:{},g[b]=o.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},o.extend({expando:"jQuery"+(n+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===o.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isPlainObject:function(a){if("object"!==o.type(a)||a.nodeType||o.isWindow(a))return!1;try{if(a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}return!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=o.trim(a),a&&(1===a.indexOf("use strict")?(b=m.createElement("script"),b.text=a,m.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":k.call(a)},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?o.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),o.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||o.guid++,f):void 0},now:Date.now,support:l}),o.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=o.type(a);return"function"===c||o.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);o.find=t,o.expr=t.selectors,o.expr[":"]=o.expr.pseudos,o.unique=t.uniqueSort,o.text=t.getText,o.isXMLDoc=t.isXML,o.contains=t.contains;var u=o.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(o.isFunction(b))return o.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return o.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return o.filter(b,a,c);b=o.filter(b,a)}return o.grep(a,function(a){return g.call(b,a)>=0!==c})}o.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?o.find.matchesSelector(d,a)?[d]:[]:o.find.matches(a,o.grep(b,function(a){return 1===a.nodeType}))},o.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(o(a).filter(function(){for(b=0;c>b;b++)if(o.contains(e[b],this))return!0}));for(b=0;c>b;b++)o.find(a,e[b],d);return d=this.pushStack(c>1?o.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?o(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=o.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof o?b[0]:b,o.merge(this,o.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:m,!0)),v.test(c[1])&&o.isPlainObject(b))for(c in b)o.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=m.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=m,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):o.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(o):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),o.makeArray(a,this))};A.prototype=o.fn,y=o(m);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};o.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&o(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),o.fn.extend({has:function(a){var b=o(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(o.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?o(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&o.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?o.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(o(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(o.unique(o.merge(this.get(),o(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}o.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return o.dir(a,"parentNode")},parentsUntil:function(a,b,c){return o.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return o.dir(a,"nextSibling")},prevAll:function(a){return o.dir(a,"previousSibling")},nextUntil:function(a,b,c){return o.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return o.dir(a,"previousSibling",c)},siblings:function(a){return o.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return o.sibling(a.firstChild)},contents:function(a){return a.contentDocument||o.merge([],a.childNodes)}},function(a,b){o.fn[a]=function(c,d){var e=o.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=o.filter(d,e)),this.length>1&&(C[a]||o.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return o.each(a.match(E)||[],function(a,c){b[c]=!0}),b}o.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):o.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){o.each(b,function(b,c){var d=o.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&o.each(arguments,function(a,b){var c;while((c=o.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?o.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},o.extend({Deferred:function(a){var b=[["resolve","done",o.Callbacks("once memory"),"resolved"],["reject","fail",o.Callbacks("once memory"),"rejected"],["notify","progress",o.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return o.Deferred(function(c){o.each(b,function(b,f){var g=o.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&o.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?o.extend(a,d):d}},e={};return d.pipe=d.then,o.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&o.isFunction(a.promise)?e:0,g=1===f?a:o.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&o.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;o.fn.ready=function(a){return o.ready.promise().done(a),this},o.extend({isReady:!1,readyWait:1,holdReady:function(a){a?o.readyWait++:o.ready(!0)},ready:function(a){(a===!0?--o.readyWait:o.isReady)||(o.isReady=!0,a!==!0&&--o.readyWait>0||(H.resolveWith(m,[o]),o.fn.trigger&&o(m).trigger("ready").off("ready")))}});function I(){m.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),o.ready()}o.ready.promise=function(b){return H||(H=o.Deferred(),"complete"===m.readyState?setTimeout(o.ready):(m.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},o.ready.promise();var J=o.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===o.type(c)){e=!0;for(h in c)o.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,o.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(o(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};o.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=o.expando+Math.random()}K.uid=1,K.accepts=o.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,o.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(o.isEmptyObject(f))o.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,o.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{o.isArray(b)?d=b.concat(b.map(o.camelCase)):(e=o.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!o.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?o.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}o.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),o.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length; +while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=o.camelCase(d.slice(5)),P(f,d,e[d]));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=o.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),o.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||o.isArray(c)?d=L.access(a,b,o.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=o.queue(a,b),d=c.length,e=c.shift(),f=o._queueHooks(a,b),g=function(){o.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:o.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),o.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";l.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return m.activeElement}catch(a){}}o.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=o.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof o!==U&&o.event.triggered!==b.type?o.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n&&(l=o.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=o.event.special[n]||{},k=o.extend({type:n,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&o.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),o.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n){l=o.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||o.removeEvent(a,n,r.handle),delete i[n])}else for(n in i)o.event.remove(a,n+b[j],c,d,!0);o.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,p=[d||m],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||m,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+o.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[o.expando]?b:new o.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:o.makeArray(c,[b]),n=o.event.special[q]||{},e||!n.trigger||n.trigger.apply(d,c)!==!1)){if(!e&&!n.noBubble&&!o.isWindow(d)){for(i=n.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||m)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:n.bindType||q,l=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),l&&l.apply(g,c),l=k&&g[k],l&&l.apply&&o.acceptData(g)&&(b.result=l.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||n._default&&n._default.apply(p.pop(),c)!==!1||!o.acceptData(d)||k&&o.isFunction(d[q])&&!o.isWindow(d)&&(h=d[k],h&&(d[k]=null),o.event.triggered=q,d[q](),o.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=o.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=o.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=o.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((o.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?o(e,this).index(i)>=0:o.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return o.nodeName(a,"table")&&o.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)o.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=o.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&o.nodeName(a,b)?o.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}o.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=o.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||o.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===o.type(e))o.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;o.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===o.inArray(e,d))&&(i=o.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f,g,h=o.event.special,i=0;void 0!==(c=a[i]);i++){if(o.acceptData(c)&&(f=c[L.expando],f&&(b=L.cache[f]))){if(d=Object.keys(b.events||{}),d.length)for(g=0;void 0!==(e=d[g]);g++)h[e]?o.event.remove(c,e):o.removeEvent(c,e,b.handle);L.cache[f]&&delete L.cache[f]}delete M.cache[c[M.expando]]}}}),o.fn.extend({text:function(a){return J(this,function(a){return void 0===a?o.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?o.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||o.cleanData(ob(c)),c.parentNode&&(b&&o.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(o.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return o.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(o.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,o.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,n=k-1,p=a[0],q=o.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(c=o.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=o.map(ob(c,"script"),kb),g=f.length;k>j;j++)h=c,j!==n&&(h=o.clone(h,!0,!0),g&&o.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,o.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&o.contains(i,h)&&(h.src?o._evalUrl&&o._evalUrl(h.src):o.globalEval(h.textContent.replace(hb,"")))}return this}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){o.fn[a]=function(a){for(var c,d=[],e=o(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),o(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d=o(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:o.css(d[0],"display");return d.detach(),e}function tb(a){var b=m,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||o("',p=a.open();if(null!==p&&(p.document.write(A),p.document.title=t.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return a.document.location.href=this.output("datauristring",t);default:return null}})),qt=function(e){return!0===Array.isArray(Qe)&&Qe.indexOf(e)>-1};switch(r){case"pt":Ee=1;break;case"mm":Ee=72/25.4;break;case"cm":Ee=72/2.54;break;case"in":Ee=72;break;case"px":Ee=1==qt("px_scaling")?.75:96/72;break;case"pc":case"em":Ee=12;break;case"ex":Ee=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);Ee=r}var Kt=null;Y(),K();var Wt=function(e){return null!==m?Kt.encryptor(e,0):function(e){return e}},Gt=b.__private__.getPageInfo=b.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Re[e].objId,pageNumber:e,pageContext:Re[e]}},Yt=b.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Re)if(Re[t].objId===e)break;return Gt(t)},Xt=b.__private__.getCurrentPageInfo=b.getCurrentPageInfo=function(){return{objId:Re[J].objId,pageNumber:J,pageContext:Re[J]}};b.addPage=function(){return Lt.apply(this,arguments),this},b.setPage=function(){return Dt.apply(this,arguments),ue.call(this,ae[J]),this},b.insertPage=function(e){return this.addPage(),this.movePage(J,e),this},b.movePage=function(e,t){var n,r;if(e>t){n=ae[e],r=Re[e];for(var i=e;i>t;i--)ae[i]=ae[i-1],Re[i]=Re[i-1];ae[t]=n,Re[t]=r,this.setPage(t)}else if(e0&&("string"==typeof e?e=p.splitTextToSize(e,h):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(p.splitTextToSize(t,h))}),[]))),a={text:e,x:t,y:n,options:r,mutex:{pdfEscape:Ft,activeFontKey:_e,fonts:Oe,activeFontSize:pe}},je.publish("preProcessText",a),e=a.text,l=(r=a.options).angle,A instanceof Ve==0&&l&&"number"==typeof l){l*=Math.PI/180,0===r.rotationDirection&&(l=-l),_===k.ADVANCED&&(l=-l);var M=Math.cos(l),P=Math.sin(l);A=new Ve(M,P,-P,M,0,0)}else l&&l instanceof Ve&&(A=l);_!==k.ADVANCED||A||(A=Ke),void 0!==(u=r.charSpace||Bn)&&(g+=T(Q(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=r.horizontalScale)&&(g+=T(100*d)+" Tz\n"),r.lang;var U=-1,R=void 0!==r.renderingMode?r.renderingMode:r.stroke,j=p.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":U=0;break;case 1:case!0:case"stroke":U=1;break;case 2:case"fillThenStroke":U=2;break;case 3:case"invisible":U=3;break;case 4:case"fillAndAddForClipping":U=4;break;case 5:case"strokeAndAddPathForClipping":U=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":U=6;break;case 7:case"addToPathForClipping":U=7}var H=void 0!==j.usedRenderingMode?j.usedRenderingMode:-1;-1!==U?g+=U+" Tr\n":-1!==H&&(g+="0 Tr\n"),-1!==U&&(j.usedRenderingMode=U),c=r.align||"left";var $,z=pe*y,V=p.internal.pageSize.getWidth(),q=Oe[_e];u=r.charSpace||Bn,h=r.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},r.flags);var K=[];if("[object Array]"===Object.prototype.toString.call(e)){var W;s=C(e),"left"!==c&&($=s.map((function(e){return p.getStringUnitWidth(e,{font:q,charSpace:u,fontSize:pe,doKerning:!1})*pe/w})));var G,Y=0;if("right"===c){t-=$[0],e=[],L=s.length;for(var X=0;X":")"),re=parseFloat(s[fe][1]),ie=parseFloat(s[fe][2]);break;case ae:oe=(b?"<":"(")+s[fe]+(b?">":")"),re=bn(t),ie=yn(n)}void 0!==K&&void 0!==K[fe]&&(ce=K[fe]+" Tw\n"),0===fe?e.push(ce+ue(re,ie,A)+oe):le===ae?e.push(ce+oe):le===se&&e.push(ce+ue(re,ie,A)+oe)}e=le===ae?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var de="BT\n/";return de+=_e+" "+pe+" Tf\n",de+=T(pe*y)+" TL\n",de+=_n+"\n",de+=g,de+=e,he(de+="ET"),v[_e]=!0,p};var Jt=b.__private__.clip=b.clip=function(e){return he("evenodd"===e?"W*":"W"),this};b.clipEvenOdd=function(){return Jt("evenodd")},b.__private__.discardPath=b.discardPath=function(){return he("n"),this};var Zt=b.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};b.__private__.setDefaultPathOperation=b.setDefaultPathOperation=function(e){return Zt(e)&&(f=e),this};var en=b.__private__.getStyle=b.getStyle=function(e){var t=f;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},tn=b.close=function(){return he("h"),this};b.stroke=function(){return he("S"),this},b.fill=function(e){return nn("f",e),this},b.fillEvenOdd=function(e){return nn("f*",e),this},b.fillStroke=function(e){return nn("B",e),this},b.fillStrokeEvenOdd=function(e){return nn("B*",e),this};var nn=function(e,t){"object"===i()(t)?an(t,e):he(e)},rn=function(e){null===e||_===k.ADVANCED&&void 0===e||(e=en(e),he(e))};function on(e,t,n,r,i){var o=new U(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var a=e+"$$"+this.cloneIndex+++"$$";return We(a,o),o}var an=function(e,t){var n=Ie[e.key],r=Le[n];if(r instanceof P)he("q"),he(sn(t)),r.gState&&b.setGState(r.gState),he(e.matrix.toString()+" cm"),he("/"+n+" sh"),he("Q");else if(r instanceof U){var i=new Ve(1,0,0,-1,0,jn());e.matrix&&(i=i.multiply(e.matrix||Ke),n=on.call(r,e.key,e.boundingBox,e.xStep,e.yStep,i).id),he("q"),he("/Pattern cs"),he("/"+n+" scn"),r.gState&&b.setGState(r.gState),he(t),he("Q")}},sn=function(e){switch(e){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ln=b.moveTo=function(e,t){return he(T(Q(e))+" "+T($(t))+" m"),this},cn=b.lineTo=function(e,t){return he(T(Q(e))+" "+T($(t))+" l"),this},un=b.curveTo=function(e,t,n,r,i,o){return he([T(Q(e)),T($(t)),T(Q(n)),T($(r)),T(Q(i)),T($(o)),"c"].join(" ")),this};b.__private__.line=b.line=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Zt(i))throw new Error("Invalid arguments passed to jsPDF.line");return _===k.COMPAT?this.lines([[n-e,r-t]],e,t,[1,1],i||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},b.__private__.lines=b.lines=function(e,t,n,r,i,o){var a,s,l,c,u,h,f,d,A,p,m,g;if("number"==typeof e&&(g=n,n=t,t=e,e=g),r=r||[1,1],o=o||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Zt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(ln(t,n),a=r[0],s=r[1],c=e.length,p=t,m=n,l=0;l>0&255,e>>8&255,e>>16&255,e>>24&255)},N.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},N.prototype.hexToBytes=function(e){for(var t=[],n=0;n>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return O(n,e)}},D.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||i()(e)!==i()(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return 0===r},R.API={events:[]},R.version="2.5.1";var j=R.API,Q=1,H=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},z=function(e){return e.toFixed(2)},V=function(e){return e.toFixed(5)};j.__acroform__={};var q=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},K=function(e){return e*Q},W=function(e){var t=new fe,n=Ee.internal.getHeight(e)||0,r=Ee.internal.getWidth(e)||0;return t.BBox=[0,0,Number(z(r)),Number(z(n))],t},G=j.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<0;){t="",o--;var c,u,h=ie("3",e,o).height,f=e.multiline?a-o:(a-h)/2,d=f+=2,A=0,p=0,m=0;if(o<=0){t="(...) Tj\n",t+="% Width of Text: "+ie(t,e,o=12).width+", FieldWidth:"+s+"\n";break}for(var g="",v=0,b=0;ba)continue e;g+=i[b][m],y=!0,p=b,b--}else{g=" "==(g+=i[b][m]+" ").substr(g.length-1)?g.substr(0,g.length-1):g;var w=parseInt(b),x=l(w,g,o),C=b>=i.length-1;if(x&&!C){g+=" ",m=0;continue}if(x||C){if(C)p=w;else if(e.multiline&&(h+2)*(v+2)+2>a)continue e}else{if(!e.multiline)continue e;if((h+2)*(v+2)+2>a)continue e;p=w}}for(var k="",_=A;_<=p;_++){var E=i[_];if(e.multiline){if(_===p){k+=E[m]+" ",m=(m+1)%E.length;continue}if(_===A){k+=E[E.length-1]+" ";continue}}k+=E[0]+" "}switch(k=" "==k.substr(k.length-1)?k.substr(0,k.length-1):k,u=ie(k,e,o).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}t+=z(c)+" "+z(d)+" Td\n",t+="("+H(k)+") Tj\n",t+=-z(c)+" 0 Td\n",d=-(o+2),u=0,A=y?p:p+1,v++,g=""}break}return r.text=t,r.fontSize=o,r},ie=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},oe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ae=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===n.type&&e.object===n.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},se=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=n,o=e[n];t.internal.newObjectDeferredBegin(o.objId,!0),"object"===i()(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[r]}},le=function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(Ae.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(oe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new de,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&ae(r,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var n=!e;for(var r in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(r)){var o=e[r],a=[],s=o.Rect;if(o.Rect&&(o.Rect=te(o.Rect,t)),t.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Ee.createDefaultAppearanceStream(o),"object"===i()(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var l=ne(o);a.push({key:"AP",value:"<>"}),t.internal.acroformPlugin.xForms.push(l)}if(o.appearanceStreamContent){var c="";for(var u in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(u)){var h=o.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var r in h)if(h.hasOwnProperty(r)){var f=h[r];"function"==typeof f&&(f=f.call(t,o)),c+="/"+r+" "+f+" ",t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=h)&&(f=f.call(t,o)),c+="/"+r+" "+f,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f);c+=">>"}a.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:a,objectId:o.objId}),t.internal.out("endobj")}n&&se(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},ce=j.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(e){return e};if(Array.isArray(e)){for(var o="[",a=0;a0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+H(t(e))+")"}},set:function(t){e=t}})};q(de,he);var Ae=function e(){he.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(t,3))},set:function(e){!0===Boolean(e)?this.F=Z(t,3):this.F=ee(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof xe)return;o="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+H(t(o))+")"},set:function(e){o=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/Q:c},set:function(e){c=e}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof xe||this instanceof ke))return ue(h,this.objId,this.scope)},set:function(e){e=e.toString(),h=e}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof be==0?ue(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof be==0?"("===e.substr(0,1)?$(e.substr(1,e.length-2)):$(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof be==1?$(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof be==1?"/"+e:e}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof be==0?ue(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof be==0?"("===e.substr(0,1)?$(e.substr(1,e.length-2)):$(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof be==1?$(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof be==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var A,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(e){e=Boolean(e),p=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(A)return A},set:function(e){A=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,1):this.Ff=ee(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,2):this.Ff=ee(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,3):this.Ff=ee(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');m=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(m){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};q(Ae,he);var pe=function(){Ae.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ce(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,i=[];r=t.exec(e);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,18):this.Ff=ee(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=Z(this.Ff,19):this.Ff=ee(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=Z(this.Ff,20),t.sort()):this.Ff=ee(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,22):this.Ff=ee(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,27):this.Ff=ee(this.Ff,27)}}),this.hasAppearanceStream=!1};q(pe,Ae);var me=function(){pe.call(this),this.fontName="helvetica",this.combo=!1};q(me,pe);var ge=function(){me.call(this),this.combo=!0};q(ge,me);var ve=function(){ge.call(this),this.edit=!0};q(ve,ge);var be=function(){Ae.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,15):this.Ff=ee(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,16):this.Ff=ee(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,17):this.Ff=ee(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,26):this.Ff=ee(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+H(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===i()(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};q(be,Ae);var ye=function(){be.call(this),this.pushButton=!0};q(ye,be);var we=function(){be.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};q(we,be);var xe=function(){var e,t;Ae.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),r)n.push("/"+t+" ("+H(e(r[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===i()(e)&&(r=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(e){"string"==typeof e&&(r.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ee.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};q(xe,Ae),we.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},we.prototype.createOption=function(e){var t=new xe;return t.Parent=this,t.optionName=e,this.Kids.push(t),Be.call(this.scope,t),t};var Ce=function(){be.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ee.CheckBox.createAppearanceStream()};q(Ce,be);var ke=function(){Ae.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,13):this.Ff=ee(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,21):this.Ff=ee(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,23):this.Ff=ee(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,24):this.Ff=ee(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,25):this.Ff=ee(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,26):this.Ff=ee(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};q(ke,Ae);var _e=function(){ke.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=Z(this.Ff,14):this.Ff=ee(this.Ff,14)}}),this.password=!0};q(_e,ke);var Ee={CheckBox:{createAppearanceStream:function(){return{N:{On:Ee.CheckBox.YesNormal},D:{On:Ee.CheckBox.YesPushDown,Off:Ee.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=W(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=re(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+z(Ee.internal.getWidth(e))+" "+z(Ee.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+z(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=W(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],o=Ee.internal.getHeight(e),a=Ee.internal.getWidth(e),s=re(e,e.caption);return i.push("1 g"),i.push("0 0 "+z(a)+" "+z(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+z(a-1)+" "+z(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+z(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=W(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+z(Ee.internal.getWidth(e))+" "+z(Ee.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Ee.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Ee.RadioButton.Circle.YesNormal,t.D[e]=Ee.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=W(e);t.scope=e.scope;var n=[],r=Ee.internal.getWidth(e)<=Ee.internal.getHeight(e)?Ee.internal.getWidth(e)/4:Ee.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Ee.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+V(Ee.internal.getWidth(e)/2)+" "+V(Ee.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=W(e);t.scope=e.scope;var n=[],r=Ee.internal.getWidth(e)<=Ee.internal.getHeight(e)?Ee.internal.getWidth(e)/4:Ee.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ee.internal.Bezier_C).toFixed(5)),a=Number((r*Ee.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+V(Ee.internal.getWidth(e)/2)+" "+V(Ee.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+V(Ee.internal.getWidth(e)/2)+" "+V(Ee.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=W(e);t.scope=e.scope;var n=[],r=Ee.internal.getWidth(e)<=Ee.internal.getHeight(e)?Ee.internal.getWidth(e)/4:Ee.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*Ee.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+V(Ee.internal.getWidth(e)/2)+" "+V(Ee.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Ee.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Ee.RadioButton.Cross.YesNormal,t.D[e]=Ee.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=W(e);t.scope=e.scope;var n=[],r=Ee.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+z(Ee.internal.getWidth(e)-2)+" "+z(Ee.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(z(r.x1.x)+" "+z(r.x1.y)+" m"),n.push(z(r.x2.x)+" "+z(r.x2.y)+" l"),n.push(z(r.x4.x)+" "+z(r.x4.y)+" m"),n.push(z(r.x3.x)+" "+z(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=W(e);t.scope=e.scope;var n=Ee.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+z(Ee.internal.getWidth(e))+" "+z(Ee.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+z(Ee.internal.getWidth(e)-2)+" "+z(Ee.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(z(n.x1.x)+" "+z(n.x1.y)+" m"),r.push(z(n.x2.x)+" "+z(n.x2.y)+" l"),r.push(z(n.x4.x)+" "+z(n.x4.y)+" m"),r.push(z(n.x3.x)+" "+z(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=W(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+z(Ee.internal.getWidth(e))+" "+z(Ee.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};Ee.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Ee.internal.getWidth(e),n=Ee.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},Ee.internal.getWidth=function(e){var t=0;return"object"===i()(e)&&(t=K(e.Rect[2])),t},Ee.internal.getHeight=function(e){var t=0;return"object"===i()(e)&&(t=K(e.Rect[3])),t};var Be=j.addField=function(e){if(le(this,e),!(e instanceof Ae))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};j.AcroFormChoiceField=pe,j.AcroFormListBox=me,j.AcroFormComboBox=ge,j.AcroFormEditBox=ve,j.AcroFormButton=be,j.AcroFormPushButton=ye,j.AcroFormRadioButton=we,j.AcroFormCheckBox=Ce,j.AcroFormTextField=ke,j.AcroFormPasswordField=_e,j.AcroFormAppearance=Ee,j.AcroForm={ChoiceField:pe,ListBox:me,ComboBox:ge,EditBox:ve,Button:be,PushButton:ye,RadioButton:we,CheckBox:Ce,TextField:ke,PasswordField:_e,Appearance:Ee},R.AcroForm={ChoiceField:pe,ListBox:me,ComboBox:ge,EditBox:ve,Button:be,PushButton:ye,RadioButton:we,CheckBox:Ce,TextField:ke,PasswordField:_e,Appearance:Ee};R.AcroForm;function Se(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(e,r){var i,o,a,s,l,c=t;if("RGBA"===(r=r||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(k(e))for(l in n)for(a=n[l],i=0;i>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var a="",s=0,l=t.transparency.length;s>",A.content=i;var v=A.objId+" 0 R";i="<>";else if(n.options.pageNumber)switch(i="<>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,i){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(e),y:s(t),w:a(e+n),h:s(t+r)},options:i,type:"link"})},e.textWithLink=function(e,t,n,r){var i,o,a=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){o=r.maxWidth;var l=this.splitTextToSize(e,o).length;i=Math.ceil(s*l)}else o=a,i=s;return this.text(e,t,n,r),n+=.2*s,"center"===r.align&&(t-=a/2),"right"===r.align&&(t-=a),this.link(t,n-s,o,i,r),a},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(R.API), +/** + * @license + * Copyright (c) 2017 Aras Abbasi + * + * Licensed under the MIT License. + * http://opensource.org/licenses/mit-license + */ +function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},a=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return a(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return a(e)&&o(e)&&4==t[e.charCodeAt(0)].length},h=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,i="",o=0;for(t=0;t>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this}, +/** + * @license + * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv + * + * Licensed under the MIT License. + * http://opensource.org/licenses/mit-license + */ +function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(R.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(e){a=e}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){r.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),i=t.font||this.getFont(),o=t.scaleFactor||this.internal.scaleFactor,a=0,s=0,l=0,c=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(c.splitTextToSize(t,u))}),[])):e=Array.isArray(e)?e:[e];for(var h=0;hthis.getPageHeight()?(this.cellAddPage(),e.y=s.top,c&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=i.y+i.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-o,e.y+o,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+o,{align:"center",baseline:"top",maxWidth:e.width-o-o}):this.text(e.text,e.x+o,e.y+o,{align:"left",baseline:"top",maxWidth:e.width-o-o})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,c,u,h){if(r.call(this),!c)throw new Error("No data for PDF table.");var f,d,A,p,m=[],g=[],v=[],b={},y={},w=[],x=[],C=(h=h||{}).autoSize||!1,k=!1!==h.printHeaders,_=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,E=h.margins||Object.assign({width:this.getPageWidth()},t),B="number"==typeof h.padding?h.padding:3,S=h.headerBackgroundColor||"#c8c8c8",T=h.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=_,this.internal.__cell__.padding=B,this.internal.__cell__.headerBackgroundColor=S,this.internal.__cell__.headerTextColor=T,this.setFontSize(_),null==u)g=m=Object.keys(c[0]),v=m.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===i()(u[0]))for(m=u.map((function(e){return e.name})),g=u.map((function(e){return e.prompt||e.name||""})),v=u.map((function(e){return e.align||"left"})),f=0;f0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(R.API);var Te={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Oe=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Fe=Se(Oe),Ne=[100,200,300,400,500,600,700,800,900],Le=Se(Ne);function Ie(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return Te[e=e||"normal"]?e:"normal"}(e.style),r=function(e){if(!e)return 400;if("number"==typeof e)return e>=100&&e<=900&&e%100==0?e:400;if(/^\d00$/.test(e))return parseInt(e);switch(e){case"bold":return 700;case"normal":default:return 400}}(e.weight),i=function(e){return"number"==typeof Fe[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function De(e,t,n,r){var i;for(i=n;i>=0&&i=0&&i=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),h.margin=t}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(e){a=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(e){e instanceof f&&(h=e)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(e){h.path=e}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=A(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=A(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var u=null;function d(e,t){if(null===u){var n=function(e){var t=[];return Object.keys(e).forEach((function(n){e[n].forEach((function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))}))})),t}(e.getFontList());u=function(e){for(var t={},n=0;n=700||"bold"===n)&&(c="bold"),"italic"===n&&(c+="italic"),0===c.length&&(c="normal");for(var u="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},f=0;f=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},d.prototype.arcTo=function(e,t,n,r,i){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},d.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw l.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,n,r,i,o,a,s,l){var h=this.pdf.getImageProperties(e),f=1,d=1,A=1,p=1;void 0!==r&&void 0!==s&&(A=s/r,p=l/i,f=h.width/r*s/r,d=h.height/i*l/i),void 0===o&&(o=t,a=n,t=0,n=0),void 0!==r&&void 0===s&&(s=r,l=i),void 0===r&&void 0===s&&(s=h.width,l=h.height);for(var m,g=this.ctx.transform.decompose(),y=P(g.rotate.shx),C=new u,_=(C=(C=(C=C.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new c(o-t*A,a-n*p,r*f,i*d)),E=b.call(this,_),B=[],S=0;ST||Fg||_0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(s);break}break;case"bct":n=[s.x1-o[a-1].x,s.y1-o[a-1].y,s.x2-o[a-1].x,s.y2-o[a-1].y,s.x-o[a-1].x,s.y-o[a-1].y],i[i.length-1].deltas.push(n);break;case"qct":var c=o[a-1].x+2/3*(s.x1-o[a-1].x),u=o[a-1].y+2/3*(s.y1-o[a-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,A=s.y;n=[c-o[a-1].x,u-o[a-1].y,h-o[a-1].x,f-o[a-1].y,d-o[a-1].x,A-o[a-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=t?null:"stroke"===e?"stroke":"fill";for(var p=!1,v=0;v=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*e.scale),d=this.lineWidth,this.lineWidth=d*e.scale);var U="text"!==this.autoPaging;if(U||P.y+P.h<=F){if(U||P.y>=T&&P.x<=L){var R=U?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||L-P.x)[0],j=w([JSON.parse(JSON.stringify(A))],this.posX+this.margin[3],-D+T+this.ctx.prevPageLastElemOffset)[0],Q=U&&(S>C||S=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else e.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*e.scale),d=this.lineWidth,this.lineWidth=d*e.scale),this.pdf.text(e.text,o.x+this.posX,o.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},N=function(e,t,i,o){i=i||0,o=o||0,this.pdf.internal.out(n(e+i)+" "+r(t+o)+" l")},L=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},I=function(e,n,r,i,s,l,c,u){this.pdf.internal.out([t(o(r+e)),t(a(i+n)),t(o(s+e)),t(a(l+n)),t(o(c+e)),t(a(u+n)),"c"].join(" "))},D=function(e,t,n,r){for(var i=2*Math.PI,o=Math.PI/2;t>n;)t-=i;var a=Math.abs(n-t);a1e-5;){var u=c+l*Math.min(a,o);s.push(M.call(this,e,c,u)),a-=Math.abs(u-c),c=u}return s},M=function(e,t,n){var r=(n-t)/2,i=e*Math.cos(r),o=e*Math.sin(r),a=i,s=-o,l=a*a+s*s,c=l+a*i+s*o,u=4/3*(Math.sqrt(2*l*c)-c)/(a*o-s*i),h=a-u*s,f=s+u*a,d=h,A=-f,p=r+t,m=Math.cos(p),g=Math.sin(p);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:h*m-f*g,y2:h*g+f*m,x3:d*m-A*g,y3:d*g+A*m,x4:e*Math.cos(n),y4:e*Math.sin(n)}},P=function(e){return 180*e/Math.PI},U=function(e,t,n,r,i,o){var a=e+.5*(n-e),s=t+.5*(r-t),l=i+.5*(n-i),u=o+.5*(r-o),h=Math.min(e,i,a,l),f=Math.max(e,i,a,l),d=Math.min(t,o,s,u),A=Math.max(t,o,s,u);return new c(h,d,f-h,A-d)},R=function(e,t,n,r,i,o,a,s){var l,u,h,f,d,A,p,m,g,v,b,y,w,x,C=n-e,k=r-t,_=i-n,E=o-r,B=a-i,S=s-o;for(u=0;u<41;u++)g=(p=(h=e+(l=u/40)*C)+l*((d=n+l*_)-h))+l*(d+l*(i+l*B-d)-p),v=(m=(f=t+l*k)+l*((A=r+l*E)-f))+l*(A+l*(o+l*S-A)-m),0==u?(b=g,y=v,w=g,x=v):(b=Math.min(b,g),y=Math.min(y,v),w=Math.max(w,g),x=Math.max(x,v));return new c(Math.round(b),Math.round(y),Math.round(w-b),Math.round(x-y))},j=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(R.API), +/** + * @license + * jsPDF filters PlugIn + * Copyright (c) 2014 Aras Abbasi + * + * Licensed under the MIT License. + * http://opensource.org/licenses/mit-license + */ +function(e){var t=function(e){var t,n,r,i,o,a,s,l,c,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,i=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;i>r;r+=4)0!==(o=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(u=o%85))/85)-(c=o%85))/85)-(l=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,l+33,c+33,u+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,i,o,a=String,s="length",l=255,c="charCodeAt",u="slice",h="replace";for(e[u](-2),e=e[u](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,o=(e+=t="uuuuu"[u](e[s]%5||5))[s];o>i;i+=5)n=52200625*(e[c](i)-33)+614125*(e[c](i+1)-33)+7225*(e[c](i+2)-33)+85*(e[c](i+3)-33)+(e[c](i+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[s]),a.fromCharCode.apply(a,r)},r=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[a]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(R.API), +/** + * @license + * jsPDF fileloading PlugIn + * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com) + * + * Licensed under the MIT License. + * http://opensource.org/licenses/mit-license + */ +function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,i=0,o=function(e){var t=e.length,n=[],r=String.fromCharCode;for(i=0;ic&&(l=u,u=c,c=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",c>u&&(l=u,u=c,c=l)}return{width:u,height:c,unit:t,k:o,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Ie):null;var n=new l(t);return t.worker?n:n.from(e).doCallback()}}(R.API),R.API.addJS=function(e){return Ve=e,this.internal.events.subscribe("postPutResources",(function(){$e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+($e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ze=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ve+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==$e&&void 0!==ze&&this.internal.out("/Names <>")})),this +/** + * @license + * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv + * + * Licensed under the MIT License. + * http://opensource.org/licenses/mit-license + */},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),i=0;i> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;nt;0<=t?++f:--f)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((u=r-this.transparency.indexed.length)>0)for(d=0;0<=u?du;0<=u?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(h=this.read(t)).indexOf(0),l=String.fromCharCode.apply(String,h.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(A=this.colorType)||6===A,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?te;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),r=0,i=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function a(o,a,s,l){var c,u,h,f,d,A,p,m,g,v,b,y,w,x,C,k,_,E,B,S,T,O=Math.ceil((i.width-o)/s),F=Math.ceil((i.height-a)/l),N=i.width==O&&i.height==F;for(x=t*O,y=N?n:new Uint8Array(x*F),A=e.length,w=0,u=0;w1&&n/i, 2013. + * + * https://github.com/deanm/omggif + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + * + * omggif is a JavaScript implementation of a GIF 89a encoder and decoder, + * including animation and compression. It does not rely on any specific + * underlying system, so should run in the browser, Node, or Plask. + */function Ze(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],o=i>>7,a=1<<1+(7&i);e[t++],e[t++];var s=null,l=null;o&&(s=t,l=a,t+=3*a);var c=!0,u=[],h=0,f=null,d=0,A=null;for(this.width=n,this.height=r;c&&t=0))throw Error("Invalid block size");if(0===B)break;t+=B}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var p=e[t++];h=e[t++]|e[t++]<<8,f=e[t++],0==(1&p)&&(f=null),d=p>>2&7,t++;break;case 254:for(;;){if(!((B=e[t++])>=0))throw Error("Invalid block size");if(0===B)break;t+=B}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,y=e[t++],w=y>>6&1,x=1<<1+(7&y),C=s,k=l,_=!1;y>>7&&(_=!0,C=t,k=x,t+=3*x);var E=t;for(t++;;){var B;if(!((B=e[t++])>=0))throw Error("Invalid block size");if(0===B)break;t+=B}u.push({x:m,y:g,width:v,height:b,has_local_palette:_,palette_offset:C,palette_size:k,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!w,delay:h,disposal:d});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return A},this.frameInfo=function(e){if(e<0||e>=u.length)throw new Error("Frame index out of range.");return u[e]},this.decodeAndBlitFrameBGRA=function(t,r){var i=this.frameInfo(t),o=i.width*i.height,a=new Uint8Array(o);et(e,i.data_offset,a,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=n-c,h=c,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),A=f,p=4*u;!0===i.interlaced&&(p+=4*n*7);for(var m=8,g=0,v=a.length;g=d&&(p=4*u+4*n*(m-1),A=f+(c+u)*(m<<1),m>>=1)),b===l)A+=4;else{var y=e[s+3*b],w=e[s+3*b+1],x=e[s+3*b+2];r[A++]=x,r[A++]=w,r[A++]=y,r[A++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,r){var i=this.frameInfo(t),o=i.width*i.height,a=new Uint8Array(o);et(e,i.data_offset,a,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=n-c,h=c,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),A=f,p=4*u;!0===i.interlaced&&(p+=4*n*7);for(var m=8,g=0,v=a.length;g=d&&(p=4*u+4*n*(m-1),A=f+(c+u)*(m<<1),m>>=1)),b===l)A+=4;else{var y=e[s+3*b],w=e[s+3*b+1],x=e[s+3*b+2];r[A++]=y,r[A++]=w,r[A++]=x,r[A++]=255}--h}}}function et(e,t,n,r){for(var i=e[t++],o=1<>=c,h-=c,g!==o){if(g===a)break;for(var v=go;)y=p[y]>>8,++b;var w=y;if(d+b+(v!==g?1:0)>r)return void l.log("Warning, gif stream longer than expected.");n[d++]=w;var x=d+=b;for(v!==g&&(n[d++]=w),y=v;b--;)y=p[y],n[--x]=255&y,y>>=8;null!==m&&s<4096&&(p[s++]=m<<8|w,s>=u+1&&c<12&&(++c,u=u<<1|1)),m=g}else s=a+1,u=(1<<(c=i+1))-1,m=null}return d!==r&&l.log("Warning, gif stream shorter than expected."),n} +/** + * @license + Copyright (c) 2008, Adobe Systems Incorporated + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of Adobe Systems Incorporated nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/function tt(e){var t,n,r,i,o,a=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),h=new Array(65535),f=new Array(65535),d=new Array(64),A=new Array(64),p=[],m=0,g=7,v=new Array(64),b=new Array(64),y=new Array(64),w=new Array(256),x=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],B=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],S=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],O=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],F=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function N(e,t){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=e[o];a++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=o,r++,n++;n*=2}return i}function L(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<>8&255),I(255&e)}function M(e,t,n,r,i){for(var o,a=i[0],s=i[240],l=function(e,t){var n,r,i,o,a,s,l,c,u,h,f=0;for(u=0;u<8;++u){n=e[f],r=e[f+1],i=e[f+2],o=e[f+3],a=e[f+4],s=e[f+5],l=e[f+6];var A=n+(c=e[f+7]),p=n-c,m=r+l,g=r-l,v=i+s,b=i-s,y=o+a,w=o-a,x=A+y,C=A-y,k=m+v,_=m-v;e[f]=x+k,e[f+4]=x-k;var E=.707106781*(_+C);e[f+2]=C+E,e[f+6]=C-E;var B=.382683433*((x=w+b)-(_=g+p)),S=.5411961*x+B,T=1.306562965*_+B,O=.707106781*(k=b+g),F=p+O,N=p-O;e[f+5]=N+S,e[f+3]=N-S,e[f+1]=F+T,e[f+7]=F-T,f+=8}for(f=0,u=0;u<8;++u){n=e[f],r=e[f+8],i=e[f+16],o=e[f+24],a=e[f+32],s=e[f+40],l=e[f+48];var L=n+(c=e[f+56]),I=n-c,D=r+l,M=r-l,P=i+s,U=i-s,R=o+a,j=o-a,Q=L+R,H=L-R,$=D+P,z=D-P;e[f]=Q+$,e[f+32]=Q-$;var V=.707106781*(z+H);e[f+16]=H+V,e[f+48]=H-V;var q=.382683433*((Q=j+U)-(z=M+I)),K=.5411961*Q+q,W=1.306562965*z+q,G=.707106781*($=U+M),Y=I+G,X=I-G;e[f+40]=X+K,e[f+24]=X-K,e[f+8]=Y+W,e[f+56]=Y-W,f++}for(u=0;u<64;++u)h=e[u]*t[u],d[u]=h>0?h+.5|0:h-.5|0;return d}(e,t),c=0;c<64;++c)A[C[c]]=l[c];var u=A[0]-n;n=A[0],0==u?L(r[0]):(L(r[f[o=32767+u]]),L(h[o]));for(var p=63;p>0&&0==A[p];)p--;if(0==p)return L(a),n;for(var m,g=1;g<=p;){for(var v=g;0==A[g]&&g<=p;)++g;var b=g-v;if(b>=16){m=b>>4;for(var y=1;y<=m;++y)L(s);b&=15}o=32767+A[g],L(i[(b<<4)+f[o]]),L(h[o]),g++}return 63!=p&&L(a),n}function P(e){e=Math.min(Math.max(e,1),100),o!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),s[C[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var h=a((i[o]*e+50)/100);h=Math.min(Math.max(h,1),255),l[C[o]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,A=0;A<8;A++)for(var p=0;p<8;p++)c[d]=1/(s[C[d]]*f[A]*f[p]*8),u[d]=1/(l[C[d]]*f[A]*f[p]*8),d++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e)}this.encode=function(e,o){o&&P(o),p=new Array,m=0,g=7,D(65496),D(65504),D(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),D(1),D(1),I(0),I(0),function(){D(65499),D(132),I(0);for(var e=0;e<64;e++)I(s[e]);I(1);for(var t=0;t<64;t++)I(l[t])}(),function(e,t){D(65472),D(17),I(8),D(t),D(e),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(e.width,e.height),function(){D(65476),D(418),I(0);for(var e=0;e<16;e++)I(k[e+1]);for(var t=0;t<=11;t++)I(_[t]);I(16);for(var n=0;n<16;n++)I(E[n+1]);for(var r=0;r<=161;r++)I(B[r]);I(1);for(var i=0;i<16;i++)I(S[i+1]);for(var o=0;o<=11;o++)I(T[o]);I(17);for(var a=0;a<16;a++)I(O[a+1]);for(var s=0;s<=161;s++)I(F[s])}(),D(65498),D(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var a=0,h=0,f=0;m=0,g=7,this.encode.displayName="_encode_";for(var d,A,w,C,N,U,R,j,Q,H=e.data,$=e.width,z=e.height,V=4*$,q=0;q>3)*V+(R=4*(7&Q)),q+j>=z&&(U-=V*(q+1+j-z)),d+R>=V&&(U-=d+R-V+4),A=H[U++],w=H[U++],C=H[U++],v[Q]=(x[A]+x[w+256>>0]+x[C+512>>0]>>16)-128,b[Q]=(x[A+768>>0]+x[w+1024>>0]+x[C+1280>>0]>>16)-128,y[Q]=(x[A+1280>>0]+x[w+1536>>0]+x[C+1792>>0]>>16)-128;a=M(v,c,a,t,r),h=M(b,u,h,n,i),f=M(y,u,f,n,i),d+=32}q+=8}if(g>=0){var K=[];K[1]=g+1,K[0]=(1<>0]=38470*e,x[e+512>>0]=7471*e+32768,x[e+768>>0]=-11059*e,x[e+1024>>0]=-21709*e,x[e+1280>>0]=32768*e+8421375,x[e+1536>>0]=-27439*e,x[e+1792>>0]=-5329*e}(),P(e)} +/** + * @license + * Copyright (c) 2017 Aras Abbasi + * + * Licensed under the MIT License. + * http://opensource.org/licenses/mit-license + */function nt(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function rt(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,i){for(var o=0;or+1?[]:new t),!(i.length>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function c(e,n,r,i,o){t(!(i%r));do{e[n+(i-=r)]=o}while(0=a),512>=a)var s=o(512);else if(null==(s=o(a)))return 0;return function(e,n,r,i,a,s){var u,f,d=n,A=1<u;++u){if(p[u]>1<(x-=p[u]))return 0;for(;0=u;++u,a<<=1){if(w+=x<<=1,0>(x-=p[u]))return 0;for(;0v&&!(0>=(g-=p[v]));)++v,g<<=1;A+=C=1<<(g=v-r),e[n+(v=y&b)].g=g+r,e[n+v].value=d-n-v}i.g=u-r,i.value=s[f++],c(e,d+(y>>r),a,C,i),y=l(y,u)}}return w!=2*m[15]-1?0:A}(e,n,r,i,a,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=a(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Rn,f)}function A(e,n,r,i){t(null!=e),t(null!=n),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+i,e.Zc=4<=i?r+i-4+1:r,E(e)}function p(e,t){for(var n=0;0i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4>>=8,e.Ra+=e.oa[e.pa+e.bb]<>>0,++e.bb,e.u-=8;C(e)&&(e.h=1,e.u=0)}function b(e,n){if(t(0<=n),!e.h&&n<=Qn){var r=x(e)&jn[n];return e.u+=n,v(e),r}return e.h=1,e.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(e){return e.Ra>>>(e.u&Hn-1)>>>0}function C(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Hn}function k(e,t){e.u=t,e.h=C(e)}function _(e){e.u>=$n&&(t(e.u>=$n),v(e))}function E(e){t(null!=e&&null!=e.oa),e.pa>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pae.b&&E(e);var r=e.b,i=n*t>>>8,o=(e.I>>>r>i)+0;for(o?(n-=i,e.I-=i+1<>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+zn[r],e.b-=r,e.Ca=(n<>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n>>0&255}function O(e,t){return e[t+0]<<0|e[t+1]<<8}function F(e,t){return O(e,t)|e[t+2]<<16}function N(e,t){return O(e,t)|O(e,t+2)<<16}function L(e,n){var r=1<=o||0>=a?0:(r[0]=o,i[0]=a,1)}function P(e,t){return e+(1<>>t}function U(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function R(t,n){e[n]=function(n,r,i,o,a,s,l){var c;for(c=0;c>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255>1))}function z(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function V(e,t,n,r,i,o,a){for(r=o[a-1],n=0;n>8&255,l=16711935&(l=(l=16711935&a)+((s<<16)+s));r[i+o]=(4278255360&a)+l>>>0}}function K(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function W(e,t,n,r,i,o){var a;for(a=0;a>>8,c=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),i[o+a]=(4278255360&s)+(u<<16)+c}}function G(t,n,r,i,o){e[n]=function(e,t,n,r,a,s,l,c,u){for(r=l;r>t.b,f=t.Ea,d=t.K[0],A=t.w;if(8>h)for(t=(1<>=h}else e["VP8LMapColor"+r](s,l,d,A,c,u,n,a,f)}}function Y(e,t,n,r,i){for(n=t+n;t>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255}}function X(e,t,n,r,i){for(n=t+n;t>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255,r[i++]=o>>24&255}}function J(e,t,n,r,i){for(n=t+n;t>16&240|a>>12&15,a=a>>0&240|a>>28&15;r[i++]=o,r[i++]=a}}function Z(e,t,n,r,i){for(n=t+n;t>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[i++]=o,r[i++]=a}}function ee(e,t,n,r,i){for(n=t+n;t>0&255,r[i++]=o>>8&255,r[i++]=o>>16&255}}function te(e,t,n,i,o,a){if(0==a)for(n=t+n;t>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),o+=32;else r(i,o,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function re(e){return e==$r||e==zr||e==Vr||e==qr}function ie(){this.eb=[],this.size=this.A=this.fb=0}function oe(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ae(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ie,this.f.kb=new oe,this.sd=null}function se(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ce(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var n=e.T,i=t.ba.f.RGBA,o=i.eb,a=i.fb+e.ka*i.A,s=gi[t.ba.S],l=e.y,c=e.O,u=e.f,h=e.N,f=e.ea,d=e.W,A=t.cc,p=t.dc,m=t.Mc,g=t.Nc,v=e.ka,b=e.ka+e.T,y=e.U,w=y+1>>1;for(0==v?s(l,c,null,null,u,h,f,d,u,h,f,d,o,a,null,null,y):(s(t.ec,t.fc,l,c,A,p,m,g,u,h,f,d,o,a-i.A,o,a,y),++n);v+2n,i=n==Pr||n==Rr||n==jr||n==Qr||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Mn(t.Oa,e,i?11:12))return 0;if(i&&re(n)&&bn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ce,e.Kb){if(n=e.U+1>>1,t.memory=o(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ue,bn()}}else alert("todo:EmitYUV");i&&(t.Jb=he,r&&gn())}if(r&&!Fi){for(e=0;256>e;++e)Ni[e]=89858*(e-128)+Ei>>_i,Di[e]=-22014*(e-128)+Ei,Ii[e]=-45773*(e-128),Li[e]=113618*(e-128)+Ei>>_i;for(e=Bi;e>_i,Mi[e-Bi]=Ve(t,255),Pi[e-Bi]=Ve(t+8>>4,15);Fi=1}return 1}function de(e){var n=e.ma,r=e.U,i=e.T;return t(!(1&e.ka)),0>=r||0>=i?0:(r=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,r),n.Dc+=r,1)}function Ae(e){e.ma.memory=null}function pe(e,t,n,r){return 47!=b(e,8)?0:(t[0]=b(e,14)+1,n[0]=b(e,14)+1,r[0]=b(e,1),0!=b(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<>4)*e+(8-(15&n)))?n:1;var n}function ve(e,t,n){var r=x(n),i=e[t+=255&r].g-8;return 0>>0,t(8>=r.g),e.g}function ye(e,n,r){var i=e.xc;return t((n=0==i?0:e.vc[e.md*(r>>i)+(n>>i)])>E.b)*k;gw&&(O=w),(0,Jn[B[S++]>>8&15])(A,p+ +T,b,y+T-w,O-T,b,y+T),T=O}p+=w,y+=w,++g&C||(E+=k)}d!=h.nc&&r(u,c-m,u,c+(d-f-1)*m,m);break;case 1:for(m=A,v=p,w=(A=h.Ea)-(y=A&~(b=(p=1<>h.b)*g;f=o),0a.o&&(i=a.o),r=i?r=0:(o[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=i-r,r=1),r){if(l=l[0],11>(r=e.ca).S){var h=r.f.RGBA,f=(i=r.S,o=a.U,a=a.T,u=h.eb,h.A),d=a;for(h=h.fb+e.Ma*h.A;0i){var o=e.l.width,a=r.ca,s=r.tb+o*i,l=e.V,c=e.Ba+e.c*i,u=e.gc;t(1==e.ab),t(3==u[0].hc),Yn(u[0],i,n,l,c,a,s),ke(r,i,n,a,s,o)}e.C=e.Ma=n}function Ee(e,n,r,i,o,a,s){var l=e.$/i,c=e.$%i,u=e.m,h=e.s,f=r+e.$,d=f;o=r+i*o;var A=r+i*a,p=280+h.ua,m=e.Pb?l:16777216,g=0=m){var E=f-r;t((m=e).Pb),m.wd=m.m,m.xd=E,0S.g?(k(w,w.u+S.g),E[B]=S.value,w=0):(k(w,w.u+S.g-256),t(256<=S.value),w=S.value),0==w&&(y=!0)}else w=ve(b.G[0],b.H[0],u);if(u.h)break;if(y||256>w){if(!y)if(b.nd)n[f]=(b.qb|w<<8)>>>0;else{if(_(u),y=ve(b.G[1],b.H[1],u),_(u),E=ve(b.G[2],b.H[2],u),B=ve(b.G[3],b.H[3],u),u.h)break;n[f]=(B<<24|y<<16|w<<8|E)>>>0}if(y=!1,++f,++c>=i&&(c=0,++l,null!=s&&l<=a&&!(l%16)&&s(e,l),null!=g))for(;d>>g.Mb]=w}else if(280>w){if(w=me(w-256,u),E=ve(b.G[4],b.H[4],u),_(u),E=ge(i,E=me(E,u)),u.h)break;if(f-r=i;)c-=i,++l,null!=s&&l<=a&&!(l%16)&&s(e,l);if(t(f<=o),c&v&&(b=ye(h,c,l)),null!=g)for(;d>>g.Mb]=w}else{if(!(w>>g.Mb]=w;w=f,t(!(y>>>(E=g).Xa)),n[w]=E.X[y],y=!0}y||t(u.h==C(u))}if(e.Pb&&u.h&&fa?a:l),e.a=0,e.$=f-r}return 1}return e.a=3,0}function Be(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Se(){var t=new sn;return null==t?null:(t.a=0,t.xb=pi,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Kn=q,Zn=W,er=Y,tr=X,nr=J,rr=Z,ir=ee,e.VP8LMapColor32b=Gn,e.VP8LMapColor8b=Xn,t)}function Te(e,n,r,s,l){var c=1,f=[e],A=[n],p=s.m,m=s.s,g=null,v=0;e:for(;;){if(r)for(;c&&b(p,1);){var y=f,w=A,C=s,E=1,B=C.m,S=C.gc[C.ab],T=b(B,2);if(C.Oc&1<=C.ab),T){case 0:case 1:S.b=b(B,3)+2,E=Te(P(S.Ea,S.b),P(S.nc,S.b),0,C,S.K),S.K=S.K[0];break;case 3:var O,F=b(B,8)+1,N=16>M.b),j=o(R);if(null==j)O=0;else{var Q=M.K[0],H=M.w;for(j[0]=M.K[0][0],I=1;I<1*D;++I)j[I]=U(Q[H+I],j[I-1]);for(;I<4*R;++I)j[I]=0;M.K[0]=null,M.K[0]=j,O=1}}E=O;break;case 2:break;default:t(0)}c=E}}if(f=f[0],A=A[0],c&&b(p,1)&&!(c=1<=(v=b(p,4))&&11>=v)){s.a=3;break e}var $;if($=c)t:{var z,V,q,K=s,W=f,G=A,Y=v,X=r,J=K.m,Z=K.s,ee=[null],te=1,ne=0,re=Zr[Y];n:for(;;){if(X&&b(J,1)){var ie=b(J,3)+2,oe=P(W,ie),ae=P(G,ie),se=oe*ae;if(!Te(oe,ae,0,K,ee))break n;for(ee=ee[0],Z.xc=ie,z=0;z>8&65535;ee[z]=le,le>=te&&(te=le+1)}}if(J.h)break n;for(V=0;5>V;++V){var ce=Gr[V];!V&&0=he),de=fe;var Ae=o(ne);if(null==de||null==Ae||null==ue){K.a=1;break n}var pe=ue;for(z=q=0;zV;++V){ce=Gr[V],ge[V]=pe,ve[V]=q,!V&&0qe)break i}else He=qe;for($e=0;$eet)Ke[$e++]=et,0!=et&&(Ye=et);else{var tt=16==et,nt=et-16,rt=Wr[nt],it=b(Ge,Kr[nt])+rt;if($e+it>qe)break i;for(var ot=tt?Ye:0;0=V){var at,st=Ae[0];for(at=1;atst&&(st=Ae[at]);xe+=st}}if(me.nd=we,me.Qb=0,we&&(me.qb=(ge[3][ve[3]+0].value<<24|ge[1][ve[1]+0].value<<16|ge[2][ve[2]+0].value)>>>0,0==ye&&256>ge[0][ve[0]+0].value&&(me.Qb=1,me.qb+=ge[0][ve[0]+0].value<<8)),me.jc=!me.Qb&&6>xe,me.jc){var lt,ct=me;for(lt=0;lt>=be(ft,8,ht),ut>>=be(ct.G[1][ct.H[1]+ut],16,ht),ut>>=be(ct.G[2][ct.H[2]+ut],0,ht),be(ct.G[3][ct.H[3]+ut],24,ht))}}}Z.vc=ee,Z.Wb=te,Z.Ya=de,Z.yc=ue,$=1;break t}$=0}if(!(c=$)){s.a=3;break e}if(0n+1?[]:0),!(r.lengthe?0:e>t?t:e}function qe(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ke(){var e=new ze;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ri||(ri=Xe)),e}function We(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Ge(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ye(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return We(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,a=n.ha;if(4>a)return We(e,7,"Truncated header.");var s=r[o+0]|r[o+1]<<8|r[o+2]<<16,l=e.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3a)return We(e,7,"cannot parse picture header");if(!Ge(r,o,a))return We(e,3,"Bad code word");c.c=16383&(r[o+4]<<8|r[o+3]),c.Td=r[o+4]>>6,c.i=16383&(r[o+6]<<8|r[o+5]),c.Ud=r[o+6]>>6,o+=7,a-=7,e.za=c.c+15>>4,e.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=e.Pa).jb,0,255,s.jb.length),t(null!=(s=e.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(l.ub>a)return We(e,7,"bad partition length");A(s=e.m,r,o,l.ub),o+=l.ub,a-=l.ub,l.Rb&&(c.Ld=B(s),c.Kd=B(s)),c=e.Qa;var u,h=e.Pa;if(t(null!=s),t(null!=c),c.Cb=B(s),c.Cb){if(c.Bb=B(s),B(s)){for(c.Fb=B(s),u=0;4>u;++u)c.Zb[u]=B(s)?m(s,7):0;for(u=0;4>u;++u)c.Lb[u]=B(s)?m(s,6):0}if(c.Bb)for(u=0;3>u;++u)h.jb[u]=B(s)?p(s,8):255}else c.Bb=0;if(s.Ka)return We(e,3,"cannot parse segment header");if((c=e.ed).zd=B(s),c.Tb=p(s,6),c.wb=p(s,3),c.Pc=B(s),c.Pc&&B(s)){for(h=0;4>h;++h)B(s)&&(c.vd[h]=m(s,6));for(h=0;4>h;++h)B(s)&&(c.od[h]=m(s,6))}if(e.L=0==c.Tb?0:c.zd?1:2,s.Ka)return We(e,3,"cannot parse filter header");var f=a;if(a=u=o,o=u+f,c=f,e.Xb=(1<c&&(d=c),A(e.Jc[+f],r,u,d),u+=d,c-=d,a+=3}A(e.Jc[+h],r,u,c),r=ud;++d){if(f.Cb){var g=f.Zb[d];f.Fb||(g+=r)}else{if(0>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=ti[Ve(g+h,117)],v.Qc[1]=ni[Ve(g+u,127)],v.lc=g+u}if(!l.Rb)return We(e,4,"Not a key frame.");for(B(s),l=e.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(o=0;3>o;++o)for(c=0;11>c;++c)h=S(s,ci[r][a][o][c])?p(s,8):si[r][a][o][c],l.Wc[r][a].Yb[o][c]=h;for(a=0;17>a;++a)l.Xc[r][a]=l.Wc[r][ui[a]]}return e.kc=B(s),e.kc&&(e.Bd=p(s,8)),e.cb=1}function Xe(e,t,n,r,i,o,a){var s=t[i].Yb[n];for(n=0;16>i;++i){if(!S(e,s[n+0]))return i;for(;!S(e,s[n+1]);)if(s=t[++i].Yb[0],n=0,16==i)return 16;var l=t[i+1].Yb;if(S(e,s[n+2])){var c=e,u=0;if(S(c,(f=s)[(h=n)+3]))if(S(c,f[h+6])){for(s=0,h=2*(u=S(c,f[h+8]))+(f=S(c,f[h+9+u])),u=0,f=ii[h];f[s];++s)u+=u+S(c,f[s]);u+=3+(8<(c=e).b&&E(c);var h,f=c.b,d=(h=c.Ca>>1)-(c.I>>f)>>31;--c.b,c.Ca+=d,c.Ca|=1,c.I-=(h+1&d)<>4,e.zb=n.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+s>>4,e.Hb=n.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0s;++s){var c;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var h=e.gd[s][c],f=u;if(l.Pc&&(f+=l.vd[0],c&&(f+=l.od[0])),0<(f=0>f?0:63>2:d>>1)>9-l.wb&&(d=9-l.wb),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:15<=f?1:0}else h.tc=0;h.La=c}}}s=0}else We(e,6,"Frame setup failed"),s=e.a;if(s=0==s){if(s){e.$c=0,0e.Vb){if(e.Vb=0,e.Ec=o(h),e.Fc=0,null==e.Ec){s=We(e,1,"no memory during frame initialization.");break e}e.Vb=h}h=e.Ec,f=e.Fc,e.Ac=h,e.Bc=f,f+=l,e.Gd=a(A,$e),e.Hd=0,e.rb=a(p+1,Re),e.sb=1,e.wa=m?a(m,Ue):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0=s;++s)Br[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Sr[1020+s]=-128>s?-128:127=s;++s)Tr[112+s]=-16>s?-16:15=s;++s)Or[255+s]=0>s?0:255h;++h){var v,b=A[0+h];for(v=0;4>v;++v){b=li[f[d+v]][b];for(var y=ai[S(u,b[0])];0>3;for(y=0;256>y;y+=16)h[m+y]=E}C=1,k=d[0]}var B=15&u.la,T=15&g.la;for(y=0;4>y;++y){var O=1&T;for(E=x=0;4>E;++E)B=B>>1|(O=(_=ri(f,k,_=O+(1&B),p.Sc,C,h,m))>C)<<7,x=x<<2|(3<_?3:1<_?2:0!=h[m+0]),m+=16;B>>=4,T=T>>1|O<<7,v=(v<<8|x)>>>0}for(k=B,C=T>>4,w=0;4>w;w+=2){for(x=0,B=u.la>>4+w,T=g.la>>4+w,y=0;2>y;++y){for(O=1&T,E=0;2>E;++E)_=O+(1&B),B=B>>1|(O=0<(_=ri(f,d[2],_,p.Qc,0,h,m)))<<3,x=x<<2|(3<_?3:1<_?2:0!=h[m+0]),m+=16;B>>=2,T=T>>1|O<<5}b|=x<<4*w,k|=B<<4<=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(a.M=s.M,a.uc=u,In(s,a),c=1,a=(x=s.D).Nb,u=(b=Ri[s.L])*s.R,f=b/2*s.B,y=16*a*s.R,E=8*a*s.B,d=s.sa,A=s.ta-u+y,p=s.qa,h=s.ra-f+E,m=s.Ha,g=s.Ia-f+E,T=0==(B=x.M),v=B>=s.Va-1,2==s.Aa&&In(s,x),x.uc)for(O=(_=s).D.M,t(_.D.uc),x=_.yb;x<_.Hb;++x){C=x,k=O;var F=(N=(Q=_).D).Nb;w=Q.R;var N=N.wa[N.Y+C],L=Q.sa,I=Q.ta+16*F*w+16*C,D=N.dd,M=N.tc;if(0!=M)if(t(3<=M),1==Q.L)0l.o&&(B=l.o),l.F=null,l.J=null,null!=s.Fa&&0>1),l.W+=s.B*(b>>1),null!=l.F&&(l.J+=l.width*b)),x>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=B-x,c=l.put(l))}a+1!=s.Ic||v||(r(s.sa,s.ta-u,d,A+16*s.R,u),r(s.qa,s.ra-f,p,h+8*s.B,f),r(s.Ha,s.Ia-f,m,g+8*s.B,f))}if(!c)return We(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),s&=1}return s?(e.cb=0,s):0}function et(e,t,n,r,i){i=e[t+n+32*r]+(i>>3),e[t+n+32*r]=-256&i?0>i?0:255:i}function tt(e,t,n,r,i,o){et(e,t,0,n,r+i),et(e,t,1,n,r+o),et(e,t,2,n,r-o),et(e,t,3,n,r-i)}function nt(e){return(20091*e>>16)+e}function rt(e,t,n,r){var i,a=0,s=o(16);for(i=0;4>i;++i){var l=e[t+0]+e[t+8],c=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-nt(e[t+12]),h=nt(e[t+4])+(35468*e[t+12]>>16);s[a+0]=l+h,s[a+1]=c+u,s[a+2]=c-u,s[a+3]=l-h,a+=4,t++}for(i=a=0;4>i;++i)l=(e=s[a+0]+4)+s[a+8],c=e-s[a+8],u=(35468*s[a+4]>>16)-nt(s[a+12]),et(n,r,0,0,l+(h=nt(s[a+4])+(35468*s[a+12]>>16))),et(n,r,1,0,c+u),et(n,r,2,0,c-u),et(n,r,3,0,l-h),a++,r+=32}function it(e,t,n,r){var i=e[t+0]+4,o=35468*e[t+4]>>16,a=nt(e[t+4]),s=35468*e[t+1]>>16;tt(n,r,0,i+a,e=nt(e[t+1]),s),tt(n,r,1,i+o,e,s),tt(n,r,2,i-o,e,s),tt(n,r,3,i-a,e,s)}function ot(e,t,n,r,i){rt(e,t,n,r),i&&rt(e,t+16,n,r+4)}function at(e,t,n,r){ar(e,t+0,n,r,1),ar(e,t+32,n,r+128,1)}function st(e,t,n,r){var i;for(e=e[t+0]+4,i=0;4>i;++i)for(t=0;4>t;++t)et(n,r,t,i,e)}function lt(e,t,n,r){e[t+0]&&cr(e,t+0,n,r),e[t+16]&&cr(e,t+16,n,r+4),e[t+32]&&cr(e,t+32,n,r+128),e[t+48]&&cr(e,t+48,n,r+128+4)}function ct(e,t,n,r){var i,a=o(16);for(i=0;4>i;++i){var s=e[t+0+i]+e[t+12+i],l=e[t+4+i]+e[t+8+i],c=e[t+4+i]-e[t+8+i],u=e[t+0+i]-e[t+12+i];a[0+i]=s+l,a[8+i]=s-l,a[4+i]=u+c,a[12+i]=u-c}for(i=0;4>i;++i)s=(e=a[0+4*i]+3)+a[3+4*i],l=a[1+4*i]+a[2+4*i],c=a[1+4*i]-a[2+4*i],u=e-a[3+4*i],n[r+0]=s+l>>3,n[r+16]=u+c>>3,n[r+32]=s-l>>3,n[r+48]=u-c>>3,r+=64}function ut(e,t,n){var r,i=t-32,o=Ir,a=255-e[i-1];for(r=0;rn;++n)r(e,t+32*n,e,t-32,16)}function pt(e,t){var n;for(n=16;0r;++r)i(t,n+32*r,e,16)}function gt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];mt(r>>5,e,t)}function vt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];mt(r>>4,e,t)}function bt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];mt(r>>4,e,t)}function yt(e,t){mt(128,e,t)}function wt(e,t,n){return e+2*t+n+2>>2}function xt(e,t){var n,i=t-32;for(i=new Uint8Array([wt(e[i-1],e[i+0],e[i+1]),wt(e[i+0],e[i+1],e[i+2]),wt(e[i+1],e[i+2],e[i+3]),wt(e[i+2],e[i+3],e[i+4])]),n=0;4>n;++n)r(e,t+32*n,i,0,i.length)}function Ct(e,t){var n=e[t-1],r=e[t-1+32],i=e[t-1+64],o=e[t-1+96];T(e,t+0,16843009*wt(e[t-1-32],n,r)),T(e,t+32,16843009*wt(n,r,i)),T(e,t+64,16843009*wt(r,i,o)),T(e,t+96,16843009*wt(i,o,o))}function kt(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)i(e,t+32*n,r,4)}function _t(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1-32],a=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+96]=wt(r,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=wt(n,r,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=wt(o,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=wt(a,o,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=wt(s,a,o),e[t+3+32]=e[t+2+0]=wt(l,s,a),e[t+3+0]=wt(c,l,s)}function Et(e,t){var n=e[t+1-32],r=e[t+2-32],i=e[t+3-32],o=e[t+4-32],a=e[t+5-32],s=e[t+6-32],l=e[t+7-32];e[t+0+0]=wt(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=wt(n,r,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=wt(r,i,o),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=wt(i,o,a),e[t+3+32]=e[t+2+64]=e[t+1+96]=wt(o,a,s),e[t+3+64]=e[t+2+96]=wt(a,s,l),e[t+3+96]=wt(s,l,l)}function Bt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1-32],a=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+0]=e[t+1+64]=o+a+1>>1,e[t+1+0]=e[t+2+64]=a+s+1>>1,e[t+2+0]=e[t+3+64]=s+l+1>>1,e[t+3+0]=l+c+1>>1,e[t+0+96]=wt(i,r,n),e[t+0+64]=wt(r,n,o),e[t+0+32]=e[t+1+96]=wt(n,o,a),e[t+1+32]=e[t+2+96]=wt(o,a,s),e[t+2+32]=e[t+3+96]=wt(a,s,l),e[t+3+32]=wt(s,l,c)}function St(e,t){var n=e[t+0-32],r=e[t+1-32],i=e[t+2-32],o=e[t+3-32],a=e[t+4-32],s=e[t+5-32],l=e[t+6-32],c=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+i+1>>1,e[t+2+0]=e[t+1+64]=i+o+1>>1,e[t+3+0]=e[t+2+64]=o+a+1>>1,e[t+0+32]=wt(n,r,i),e[t+1+32]=e[t+0+96]=wt(r,i,o),e[t+2+32]=e[t+1+96]=wt(i,o,a),e[t+3+32]=e[t+2+96]=wt(o,a,s),e[t+3+64]=wt(a,s,l),e[t+3+96]=wt(s,l,c)}function Tt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+i+1>>1,e[t+2+32]=e[t+0+64]=i+o+1>>1,e[t+1+0]=wt(n,r,i),e[t+3+0]=e[t+1+32]=wt(r,i,o),e[t+3+32]=e[t+1+64]=wt(i,o,o),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=o}function Ot(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1+96],a=e[t-1-32],s=e[t+0-32],l=e[t+1-32],c=e[t+2-32];e[t+0+0]=e[t+2+32]=n+a+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=i+r+1>>1,e[t+0+96]=o+i+1>>1,e[t+3+0]=wt(s,l,c),e[t+2+0]=wt(a,s,l),e[t+1+0]=e[t+3+32]=wt(n,a,s),e[t+1+32]=e[t+3+64]=wt(r,n,a),e[t+1+64]=e[t+3+96]=wt(i,r,n),e[t+1+96]=wt(o,i,r)}function Ft(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Nt(e,t){var n;for(n=0;8>n;++n)i(e,t,e[t-1],8),t+=32}function Lt(e,t,n){var r;for(r=0;8>r;++r)i(t,n+32*r,e,8)}function It(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Lt(r>>4,e,t)}function Dt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Lt(r>>3,e,t)}function Mt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Lt(r>>3,e,t)}function Pt(e,t){Lt(128,e,t)}function Ut(e,t,n){var r=e[t-n],i=e[t+0],o=3*(i-r)+Nr[1020+e[t-2*n]-e[t+n]],a=Lr[112+(o+4>>3)];e[t-n]=Ir[255+r+Lr[112+(o+3>>3)]],e[t+0]=Ir[255+i-a]}function Rt(e,t,n,r){var i=e[t+0],o=e[t+n];return Dr[255+e[t-2*n]-e[t-n]]>r||Dr[255+o-i]>r}function jt(e,t,n,r){return 4*Dr[255+e[t-n]-e[t+0]]+Dr[255+e[t-2*n]-e[t+n]]<=r}function Qt(e,t,n,r,i){var o=e[t-3*n],a=e[t-2*n],s=e[t-n],l=e[t+0],c=e[t+n],u=e[t+2*n],h=e[t+3*n];return 4*Dr[255+s-l]+Dr[255+a-c]>r?0:Dr[255+e[t-4*n]-o]<=i&&Dr[255+o-a]<=i&&Dr[255+a-s]<=i&&Dr[255+h-u]<=i&&Dr[255+u-c]<=i&&Dr[255+c-l]<=i}function Ht(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)jt(e,t+r,n,i)&&Ut(e,t+r,n)}function $t(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)jt(e,t+r*n,1,i)&&Ut(e,t+r*n,1)}function zt(e,t,n,r){var i;for(i=3;0>7,g=18*v+63>>7,v=9*v+63>>7;l[c-3*u]=Ir[255+l[c-3*u]+v],l[c-2*u]=Ir[255+h+g],l[c-u]=Ir[255+f+m],l[c+0]=Ir[255+d-m],l[c+u]=Ir[255+A-g],l[c+2*u]=Ir[255+p-v]}t+=r}}function Kt(e,t,n,r,i,o,a,s){for(o=2*o+1;0>3)],p=Lr[112+(p+3>>3)],m=A+1>>1;l[c-2*u]=Ir[255+l[c-2*u]+m],l[c-u]=Ir[255+h+p],l[c+0]=Ir[255+f-A],l[c+u]=Ir[255+d-m]}t+=r}}function Wt(e,t,n,r,i,o){qt(e,t,n,1,16,r,i,o)}function Gt(e,t,n,r,i,o){qt(e,t,1,n,16,r,i,o)}function Yt(e,t,n,r,i,o){var a;for(a=3;0c?0:255:c)&255,c=l,i[o+s]=u}}function fn(e,n,i,a){var s=n.width,l=n.o;if(t(null!=e&&null!=n),0>i||0>=a||i+a>l)return null;if(!e.Cc){if(null==e.ga){var c;if(e.ga=new ln,(c=null==e.ga)||(c=n.width*n.o,t(0==e.Gb.length),e.Gb=o(c),e.Uc=0,null==e.Gb?c=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,c=1),c=!c),!c){c=e.ga;var u=e.Fa,h=e.P,f=e.qc,d=e.mb,A=e.nb,p=h+1,m=f-1,v=c.l;if(t(null!=u&&null!=d&&null!=n),mi[0]=null,mi[1]=cn,mi[2]=un,mi[3]=hn,c.ca=d,c.tb=A,c.c=n.width,c.i=n.height,t(0=f)n=0;else if(c.$a=u[h+0]>>0&3,c.Z=u[h+0]>>2&3,c.Lc=u[h+0]>>4&3,h=u[h+0]>>6&3,0>c.$a||1=c.c*c.i;c=!n}if(c)return null;1!=e.ga.Lc?e.Ga=0:a=l-i}t(null!=e.ga),t(i+a<=l);e:{if(n=(u=e.ga).c,l=u.l.o,0==u.$a){if(p=e.rc,m=e.Vc,v=e.Fa,h=e.P+1+i*n,f=e.mb,d=e.nb+i*n,t(h<=e.P+e.qc),0!=u.Z)for(t(null!=mi[u.Z]),c=0;c=n)n=1;else if(u.ic||gn(),u.ic){u=c.V,p=c.Ba,m=c.c;var b=c.i,y=(v=1,h=c.$/m,f=c.$%m,d=c.m,A=c.s,c.$),w=m*b,x=m*n,k=A.wc,E=y(b=ve(E.G[0],E.H[0],d)))u[p+y]=b,++y,++f>=m&&(f=0,++h<=n&&!(h%16)&&_e(c,h));else{if(!(280>b)){v=0;break t}b=me(b-256,d);var B,S=ve(E.G[4],E.H[4],d);if(_(d),!(y>=(S=ge(m,S=me(S,d)))&&w-y>=b)){v=0;break t}for(B=0;B=m;)f-=m,++h<=n&&!(h%16)&&_e(c,h);yn?n:h);break t}!v||d.h&&y=l&&(e.Cc=1),a=1}if(!a)return null;if(e.Cc&&(null!=(a=e.ga)&&(a.mc=null),e.ga=null,0>23,s[l+4*a+1]=s[l+4*a+1]*h>>23,s[l+4*a+2]=s[l+4*a+2]*h>>23)}t+=o}}function An(e,t,n,r,i){for(;0>4)*l>>16;e[t+2*o+0]=(240&a|a>>4)*l>>16&240|(15&a|a<<4)*l>>16>>4&15,e[t+2*o+1]=240&c|s}t+=i}}function pn(e,t,n,r,i,o,a,s){var l,c,u=255;for(c=0;c>8}function gn(){Cr=dn,kr=An,_r=pn,Er=mn}function vn(n,r,i){e[n]=function(e,n,o,a,s,l,c,u,h,f,d,A,p,m,g,v,b){var y,w=b-1>>1,x=s[l+0]|c[u+0]<<16,C=h[f+0]|d[A+0]<<16;t(null!=e);var k=3*x+C+131074>>2;for(r(e[n+0],255&k,k>>16,p,m),null!=o&&(k=3*C+x+131074>>2,r(o[a+0],255&k,k>>16,g,v)),y=1;y<=w;++y){var _=s[l+y]|c[u+y]<<16,E=h[f+y]|d[A+y]<<16,B=x+_+C+E+524296,S=B+2*(_+C)>>3;k=S+x>>1,x=(B=B+2*(x+E)>>3)+_>>1,r(e[n+2*y-1],255&k,k>>16,p,m+(2*y-1)*i),r(e[n+2*y-0],255&x,x>>16,p,m+(2*y-0)*i),null!=o&&(k=B+C>>1,x=S+E>>1,r(o[a+2*y-1],255&k,k>>16,g,v+(2*y-1)*i),r(o[a+2*y+0],255&x,x>>16,g,v+(2*y+0)*i)),x=_,C=E}1&b||(k=3*x+C+131074>>2,r(e[n+b-1],255&k,k>>16,p,m+(b-1)*i),null!=o&&(k=3*C+x+131074>>2,r(o[a+b-1],255&k,k>>16,g,v+(b-1)*i)))}}function bn(){gi[Mr]=vi,gi[Pr]=yi,gi[Ur]=bi,gi[Rr]=wi,gi[jr]=xi,gi[Qr]=Ci,gi[Hr]=ki,gi[$r]=yi,gi[zr]=wi,gi[Vr]=xi,gi[qr]=Ci}function yn(e){return e&~Oi?0>e?0:255:e>>Ti}function wn(e,t){return yn((19077*e>>8)+(26149*t>>8)-14234)}function xn(e,t,n){return yn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Cn(e,t){return yn((19077*e>>8)+(33050*t>>8)-17685)}function kn(e,t,n,r,i){r[i+0]=wn(e,n),r[i+1]=xn(e,t,n),r[i+2]=Cn(e,t)}function _n(e,t,n,r,i){r[i+0]=Cn(e,t),r[i+1]=xn(e,t,n),r[i+2]=wn(e,n)}function En(e,t,n,r,i){var o=xn(e,t,n);t=o<<3&224|Cn(e,t)>>3,r[i+0]=248&wn(e,n)|o>>5,r[i+1]=t}function Bn(e,t,n,r,i){var o=240&Cn(e,t)|15;r[i+0]=240&wn(e,n)|xn(e,t,n)>>4,r[i+1]=o}function Sn(e,t,n,r,i){r[i+0]=255,kn(e,t,n,r,i+1)}function Tn(e,t,n,r,i){_n(e,t,n,r,i),r[i+3]=255}function On(e,t,n,r,i){kn(e,t,n,r,i),r[i+3]=255}function Ve(e,t){return 0>e?0:e>t?t:e}function Fn(t,n,r){e[t]=function(e,t,i,o,a,s,l,c,u){for(var h=c+(-2&u)*r;c!=h;)n(e[t+0],i[o+0],a[s+0],l,c),n(e[t+1],i[o+0],a[s+0],l,c+r),t+=2,++o,++s,c+=2*r;1&u&&n(e[t+0],i[o+0],a[s+0],l,c)}}function Nn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Ln(e,t,n,r,i){switch(e>>>30){case 3:ar(t,n,r,i,0);break;case 2:sr(t,n,r,i);break;case 1:cr(t,n,r,i)}}function In(e,t){var n,o,a=t.M,s=t.Nb,l=e.oc,c=e.pc+40,u=e.oc,h=e.pc+584,f=e.oc,d=e.pc+600;for(n=0;16>n;++n)l[c+32*n-1]=129;for(n=0;8>n;++n)u[h+32*n-1]=129,f[d+32*n-1]=129;for(0n;++n)r(l,c+32*n-4,l,c+32*n+12,4);for(n=-1;8>n;++n)r(u,h+32*n-4,u,h+32*n+4,4),r(f,d+32*n-4,f,d+32*n+4,4)}var p=e.Gd,m=e.Hd+o,g=A.ad,v=A.Hc;if(0=e.za-1?i(b,y,p[m].y[15],4):r(b,y,p[m+1].y,0,4)),n=0;4>n;n++)b[y+128+n]=b[y+256+n]=b[y+384+n]=b[y+0+n];for(n=0;16>n;++n,v<<=2)b=l,y=c+Ui[n],fi[A.Ob[n]](b,y),Ln(v,g,16*+n,b,y)}else if(b=Nn(o,a,A.Ob[0]),hi[b](l,c),0!=v)for(n=0;16>n;++n,v<<=2)Ln(v,g,16*+n,l,c+Ui[n]);for(n=A.Gc,b=Nn(o,a,A.Dd),di[b](u,h),di[b](f,d),v=g,b=u,y=h,255&(A=n>>0)&&(170&A?lr(v,256,b,y):ur(v,256,b,y)),A=f,v=d,255&(n>>=8)&&(170&n?lr(g,320,A,v):ur(g,320,A,v)),an;++n)r(p,m+n*e.R,l,c+32*n,16);for(n=0;8>n;++n)r(g,A+n*e.B,u,h+32*n,8),r(v,b+n*e.B,f,d+32*n,8)}}function Dn(e,r,i,o,a,s,l,c,u){var h=[0],f=[0],d=0,A=null!=u?u.kd:0,p=null!=u?u:new rn;if(null==e||12>i)return 7;p.data=e,p.w=r,p.ha=i,r=[r],i=[i],p.gb=[p.gb];e:{var m=r,v=i,b=p.gb;if(t(null!=e),t(null!=v),t(null!=b),b[0]=0,12<=v[0]&&!n(e,m[0],"RIFF")){if(n(e,m[0]+8,"WEBP")){b=3;break e}var y=N(e,m[0]+4);if(12>y||4294967286v[0]-8){b=7;break e}b[0]=y,m[0]+=12,v[0]-=12}b=0}if(0!=b)return b;for(y=0b[0])b=7;else{if(!n(x,v[0],"VP8X")){if(10!=N(x,v[0]+4)){b=3;break e}if(18>b[0]){b=7;break e}var E=N(x,v[0]+8),B=1+F(x,v[0]+12);if(2147483648<=B*(x=1+F(x,v[0]+15))){b=3;break e}null!=_&&(_[0]=E),null!=C&&(C[0]=B),null!=k&&(k[0]=x),v[0]+=18,b[0]-=18,S[0]=1}b=0}}if(d=d[0],m=m[0],0!=b)return b;if(v=!!(2&m),!y&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=v),null!=c&&(c[0]=0),l=h[0],m=f[0],d&&v&&null==u){b=0;break}if(4>i){b=7;break}if(y&&d||!y&&!d&&!n(e,r[0],"ALPH")){i=[i],p.na=[p.na],p.P=[p.P],p.Sa=[p.Sa];e:{E=e,b=r,y=i;var S=p.gb;C=p.na,k=p.P,_=p.Sa,B=22,t(null!=E),t(null!=y),x=b[0];var T=y[0];for(t(null!=C),t(null!=_),C[0]=null,k[0]=null,_[0]=0;;){if(b[0]=x,y[0]=T,8>T){b=7;break e}var O=N(E,x+4);if(4294967286S){b=3;break e}if(!n(E,x,"VP8 ")||!n(E,x,"VP8L")){b=0;break e}if(T[0]y[0])b=7;else{if(x||B){if(S=N(S,E+4),12<=C&&S>C-12){b=3;break e}if(A&&S>y[0]-8){b=7;break e}k[0]=S,b[0]+=8,y[0]-=8,_[0]=B}else _[0]=5<=y[0]&&47==S[E+0]&&!(S[E+4]>>5),k[0]=y[0];b=0}if(i=i[0],p.Ja=p.Ja[0],p.xa=p.xa[0],r=r[0],0!=b)break;if(4294967286i){b=7;break}c=l,A=m,v=s,null==e||5>i?e=0:5<=i&&47==e[r+0]&&!(e[r+4]>>5)?(y=[0],S=[0],C=[0],g(k=new w,e,r,i),pe(k,y,S,C)?(null!=c&&(c[0]=y[0]),null!=A&&(A[0]=S[0]),null!=v&&(v[0]=C[0]),e=1):e=0):e=0}else{if(10>i){b=7;break}c=m,null==e||10>i||!Ge(e,r+3,i-3)?e=0:(A=e[r+0]|e[r+1]<<8|e[r+2]<<16,v=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&A||3<(A>>1&7)||!(A>>4&1)||A>>5>=p.Ja||!v||!e?e=0:(l&&(l[0]=v),c&&(c[0]=e),e=1))}if(!e)return 3;if(l=l[0],m=m[0],d&&(h[0]!=l||f[0]!=m))return 3;null!=u&&(u[0]=p,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-i));break}return 0==b||7==b&&d&&null==u?(null!=s&&(s[0]|=null!=p.na&&0n||(o&=-2,a&=-2),0>o||0>a||0>=s||0>=l||o+s>r||a+l>i))return 0;if(t.v=o,t.j=a,t.va=o+s,t.o=a+l,t.U=s,t.T=l,t.da=null!=e&&0e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Un(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var i=n.cd,a=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=i||0>=a||s+i>e||l+a>t)return 2;e=i,t=a}if(n.da){if(!M(e,t,i=[n.ib],a=[n.hb]))return 2;e=i[0],t=a[0]}}r.width=e,r.height=t;e:{var c=r.width,u=r.height;if(e=r.S,0>=c||0>=u||!(e>=Mr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){s=a=i=t=0;var h=(l=c*Hi[e])*u;if(11>e||(a=(u+1)/2*(t=(c+1)/2),12==e&&(s=(i=c)*u)),null==(u=o(h+2*a+s))){e=1;break e}r.sd=u,11>e?((c=r.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=h):((c=r.f.kb).y=u,c.O=0,c.fa=l,c.Fd=h,c.f=u,c.N=0+h,c.Ab=t,c.Cd=a,c.ea=u,c.W=0+h+a,c.Db=t,c.Ed=a,12==e&&(c.F=u,c.J=0+h+2*a),c.Tc=s,c.lb=i)}if(t=1,i=r.S,a=r.width,s=r.height,i>=Mr&&13>i)if(11>i)e=r.f.RGBA,t&=(l=Math.abs(e.A))*(s-1)+a<=e.size,t&=l>=a*Hi[i],t&=null!=e.eb;else{e=r.f.kb,l=(a+1)/2,h=(s+1)/2,c=Math.abs(e.fa),u=Math.abs(e.Ab);var f=Math.abs(e.Db),d=Math.abs(e.lb),A=d*(s-1)+a;t&=c*(s-1)+a<=e.Fd,t&=u*(h-1)+l<=e.Cd,t=(t&=f*(h-1)+l<=e.Ed)&c>=a&u>=l&f>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==i&&(t&=d>=a,t&=A<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Pn(r)),e}var Rn=64,jn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Qn=24,Hn=32,$n=8,zn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];R("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return Q(Q(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return Q(e,t[n-1])},e.Predictor7=function(e,t,n){return Q(e,t[n+0])},e.Predictor8=function(e,t,n){return Q(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return Q(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return Q(Q(e,t[n-1]),Q(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=z(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+z(r>>16&255,e>>16&255,t>>16&255)+z(r>>8&255,e>>8&255,t>>8&255)+z(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(H((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|H((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|H((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return($((e=Q(e,t[n+0]))>>24&255,r>>24&255)<<24|$(e>>16&255,r>>16&255)<<16|$(e>>8&255,r>>8&255)<<8|$(e>>0&255,r>>0&255))>>>0};var Vn=e.PredictorAdd0;e.PredictorAdd1=V,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var qn=e.PredictorAdd2;G("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),G("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Kn,Wn=e.ColorIndexInverseTransform,Gn=e.MapARGB,Yn=e.VP8LColorIndexInverseTransformAlpha,Xn=e.MapAlpha,Jn=e.VP8LPredictorsAdd=[];Jn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zn,er,tr,nr,rr,ir,or,ar,sr,lr,cr,ur,hr,fr,dr,Ar,pr,mr,gr,vr,br,yr,wr,xr,Cr,kr,_r,Er,Br=o(511),Sr=o(2041),Tr=o(225),Or=o(767),Fr=0,Nr=Sr,Lr=Tr,Ir=Or,Dr=Br,Mr=0,Pr=1,Ur=2,Rr=3,jr=4,Qr=5,Hr=6,$r=7,zr=8,Vr=9,qr=10,Kr=[2,3,7],Wr=[3,3,11],Gr=[280,256,256,256,40],Yr=[0,1,1,1,0],Xr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Jr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Zr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ei=8,ti=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ni=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ri=null,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],oi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ai=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],li=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ci=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ui=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hi=[],fi=[],di=[],Ai=1,pi=2,mi=[],gi=[];vn("UpsampleRgbLinePair",kn,3),vn("UpsampleBgrLinePair",_n,3),vn("UpsampleRgbaLinePair",On,4),vn("UpsampleBgraLinePair",Tn,4),vn("UpsampleArgbLinePair",Sn,4),vn("UpsampleRgba4444LinePair",Bn,2),vn("UpsampleRgb565LinePair",En,2);var vi=e.UpsampleRgbLinePair,bi=e.UpsampleBgrLinePair,yi=e.UpsampleRgbaLinePair,wi=e.UpsampleBgraLinePair,xi=e.UpsampleArgbLinePair,Ci=e.UpsampleRgba4444LinePair,ki=e.UpsampleRgb565LinePair,_i=16,Ei=1<<_i-1,Bi=-227,Si=482,Ti=6,Oi=(256<i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&gn()),i.Pb&&0(c=r.Md)?0:100u;++u)12>(f=o.pb[u]).lc&&(f.ia=c*ji[0>f.lc?0:f.lc]>>3),h|=f.ia;h&&(alert("todo:VP8InitRandom"),o.ia=1)}o.Ga=r.Id,100o.Ga&&(o.Ga=0)}Ze(e,i)||(n=e.a)}}else n=e.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=Pn(s.ba))}s=n}a=0!=s?null:11>a?l.f.RGBA.eb:l.f.kb.y}else a=null;return a};var Hi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16)>>>0}function h(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var f=[0],d=[0],A=[],p=new l,m=e,g=function(e,t){var n={},r=0,i=!1,o=0,a=0;if(n.frames=[],! +/** @license + * Copyright (c) 2017 Dominik Homberger + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + https://webpjs.appspot.com + WebPRiffParser dominikhlbg@gmail.com + */ +function(e,t,n,r){for(var i=0;i>1&1}"ANMF"!=f&&(t+=A)}return n}}(m,0);g.response=m,g.rgbaoutput=!0,g.dataurl=!1;var v=g.header?g.header:null,b=g.frames?g.frames:null;if(v){v.loop_counter=v.loop_count,f=[v.canvas_height],d=[v.canvas_width];for(var y=0;y>>1)&255;return o},c=function(e,t,n){var r,i,o,a,s=[],l=e.length;s[0]=4;for(var c=0;c>>k&255,k+=c.bits;m[y]=b>>>k&255}}if(16===c.bits){p=(A=new Uint32Array(c.decodePixels().buffer)).length,g=new Uint8Array(p*(32/c.pixelBitlength)*c.colors),m=new Uint8Array(p*(32/c.pixelBitlength)),v=c.colors>1,y=0,w=0;for(var E=0;y>>0&255,v&&(g[w++]=b>>>16&255,b=A[y++],g[w++]=b>>>0&255),m[E++]=b>>>16&255;l=8}a!==e.image_compression.NONE&&t()?(r=n(g,c.width*c.colors,c.colors,a),d=n(m,c.width,1,a)):(r=g,d=m,x=void 0)}if(3===c.colorType&&(s=this.color_spaces.INDEXED,f=c.palette,c.transparency.indexed)){var B=c.transparency.indexed,S=0;for(y=0,p=B.length;y=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}0!==n&&(this.pos+=4-n)}},nt.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>4,l=15&o,c=this.palette[s];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}0!==t&&(this.pos+=4-t)}},nt.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&t)/t*255|0,l=(o>>10&t)/t*255|0,c=o>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=c}this.pos+=e}},nt.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>5&n)/n*255|0,c=(a>>11)/t*255|0,u=i*this.width*4+4*o;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},nt.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;nr&&(i.push(e.slice(l,o)),s=0,l=o),s+=t[o],o++;return l!==o&&i.push(e.slice(l,o)),i},Xe=function(e,t,n){n||(n={});var r,i,o,a,s,l,c,u=[],h=[u],f=n.textIndent||0,d=0,A=0,p=e.split(" "),m=We.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var g=Array(l).join(" "),v=[];p.map((function(e){(e=e.split(/\s*\n/)).length>1?v=v.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):v.push(e[0])})),p=v,l=Ge.apply(this,[g,n])}for(o=0,a=p.length;ot||b){if(A>t){for(s=Ye.apply(this,[r,i,t-(f+d),t]),u.push(s.shift()),u=[s.pop()];s.length;)h.push([s.shift()]);A=i.slice(r.length-(u[0]?u[0].length:0)).reduce((function(e,t){return e+t}),0)}else u=[r];h.push(u),f=A+l,d=m}else u.push(r),f+=d+A,d=m}return c=l?function(e,t){return(t?g:"")+e.join(" ")}:function(e){return e.join(" ")},h.map(c)},Ke.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s1){for(h=0;h>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this +/** ==================================================================== + * @license + * jsPDF XMP metadata plugin + * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * ==================================================================== + */},function(e){var t=function(){var e='',t=unescape(encodeURIComponent('')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("")),o=unescape(encodeURIComponent("")),a=n.length+r.length+i.length+t.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(R.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=e.length;a=100&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(i=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+i+">"));return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,i=t.out,o=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",u=0;u>"),i("endobj");var A=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+L(n.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+e.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+f+" 0 R"),i("/BaseFont /"+L(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+A+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,i=t.out,o=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",c=0;c>"),i("endobj"),n.objectNumber=o();for(var d=0;d>"),i("endobj"),n.isAlreadyPutted=!0}}(t)}]);var i=function(e){var t,r=e.text||"",i=e.x,o=e.y,a=e.options||{},s=e.mutex||{},l=s.pdfEscape,c=s.activeFontKey,u=s.fonts,h=c,f="",d=0,A="",p=u[h].encoding;if("Identity-H"!==u[h].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(A=r,h=c,Array.isArray(r)&&(A=r[0]),d=0;d","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],p=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,g=0;this.__bidiEngine__={};var v=function(e){var t=e.charCodeAt(),n=t>>8,r=d[n];return void 0!==r?c[256*r+(255&t)]:252===n||253===n?"AL":p.test(n)?"L":8===n?"R":"N"},b=function(e){for(var t,n=0;n=t.length||"EN"!==(l=a[s-1])&&"AN"!==l||"EN"!==(c=t[s+1])&&"AN"!==c?f="N":m&&(c="AN"),f=c===l?c:"N";break;case"ES":f="EN"===(l=s>0?a[s-1]:"B")&&s+10&&"EN"===a[s-1]){f="EN";break}if(m){f="N";break}for(u=s+1,h=t.length;u=1425&&d<=2303||64286===d;if(l=t[u],A&&("R"===l||"AL"===l)){f="R";break}}}f=s<1||"B"===(l=t[s-1])?"N":a[s-1];break;case"B":m=!1,n=!0,f=g;break;case"S":r=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":f="N"}return f},w=function(e,t,n){var r=e.split("");return n&&x(r,n,{hiLevel:g}),r.reverse(),t&&t.reverse(),r.join("")},x=function(e,t,i){var o,a,s,l,c,d=-1,A=e.length,p=0,b=[],w=g?h:u,x=[];for(m=!1,n=!1,r=!1,a=0;a0)if(16===o){for(a=d;a-1){for(a=d;a=0&&"WS"===e[i];i--)t[i]=g}}(x,t,A)},C=function(e,t,r,i,o){if(!(o.hiLevel=e){for(l=h+1;l=e;)l++;for(c=h,s=l-1;c=0&&(e[i]=A[r+1])}(r,n,i),C(2,r,t,n,i),C(1,r,t,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,i,o,a;for(o=0,i=0,a=(e=""+e).length;0<=a?ia;i=0<=a?++i:--i)r=e.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return o*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var it,ot=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?te;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?tn;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,i,o,a,s;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?ne;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;nr;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,i,o,a,s,l,c,u,h,f,d,A;for(A in f=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(f)/s),o=Math.floor(u/s),c=16*f-u,(r=new ot).writeInt(this.scalarType),r.writeShort(f),r.writeShort(u),r.writeShort(o),r.writeShort(c),i=16*f,l=r.pos+i,a=null,d=[],t)for(h=t[A],r.writeString(A),r.writeInt(e(h)),r.writeInt(l),r.writeInt(h.length),d=d.concat(h),"head"===A&&(a=l),l+=h.length;l%4;)d.push(0),l++;return r.write(d),n=2981146554-e(r.data),r.pos=a+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,i;for(e=bt.call(e);e.length%4;)e.push(0);for(r=new ot(e),n=0,t=0,i=e.length;th;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,A=function(){var t,n;for(n=[],s=t=0;0<=h?th;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],s=t=0;0<=h?th;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],s=t=0;0<=h?th;s=0<=h?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,a=function(){var t,n;for(n=[],s=t=0;0<=r?tr;s=0<=r?++t:--t)n.push(e.readUInt16());return n}(),s=m=0,v=i.length;m=p;n=d<=p?++g:--g)0===c[s]?o=n+l[s]:0!==(o=a[c[s]/2+(n-d)-(h-s)]||0)&&(o+=l[s]),this.codeMap[n]=65535&o}e.pos=u}return e.encode=function(e,t){var n,r,i,o,a,s,l,c,u,h,f,d,A,p,m,g,v,b,y,w,x,C,k,_,E,B,S,T,O,F,N,L,I,D,M,P,U,R,j,Q,H,$,z,V,q,K;switch(T=new ot,o=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(A=0,p=function(){var e=[];for(d=0;d<256;++d)e.push(0);return e}(),g={0:0},i={},O=0,I=o.length;O=32768)for(s.push(0),w.push(2*(f.length+k-d)),r=L=E;E<=c?L<=c:L>=c;r=E<=c?++L:--L)f.push(n[r].new);else s.push(S-E),w.push(0)}for(T.writeUInt16(3),T.writeUInt16(1),T.writeUInt32(12),T.writeUInt16(4),T.writeUInt16(16+8*k+2*f.length),T.writeUInt16(0),T.writeUInt16(_),T.writeUInt16(C),T.writeUInt16(h),T.writeUInt16(x),H=0,P=u.length;Hr;n=0<=r?++n:--n)t=new ut(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=ut.encode(e,t),(r=new ot).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},t}(),ft=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return lt(t,it),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),dt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return lt(t,it),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),At=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return lt(t,it),t.prototype.tag="post",t.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?in;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.posn;i=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},t}(),pt=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},mt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return lt(t,it),t.prototype.tag="name",t.prototype.parse=function(e){var t,n,r,i,o,a,s,l,c,u,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),a=e.readShort(),n=[],i=0;0<=t?it;i=0<=t?++i:--i)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(s={},i=c=0,u=n.length;ca;t=0<=a?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],t=n=0;0<=r?nr;t=0<=r?++n:--n)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;er;t=0<=r?++o:--o)s.push(this.widths.push(n));return s},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),bt=[].slice,yt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return lt(t,it),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var t,n,r,i,o,a,s,l,c,u;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,n=i.indexOf(e),0===(r=i.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,o=(a=new ot(t.read(r))).readShort(),l=a.readShort(),u=a.readShort(),s=a.readShort(),c=a.readShort(),this.cache[e]=-1===o?new xt(a,l,u,s,c):new wt(a,o,l,u,s,c),this.cache[e]))},t.prototype.encode=function(e,t,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=t.length;a0&&(r+=s)}for(var l=new Array(4*n.length),c=0;c>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},t}(),kt=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,i;for(t in r=this.font.cmap.tables[0].codeMap,e={},i=this.subset)n=i[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,i,o,a,s;for(r={},o=0,a=e.length;o0)for(i in s=this.glyphsFor(t))n=s[i],r[i]=n;return r},e.prototype.encode=function(e,t){var n,r,i,o,a,s,l,c,u,h,f,d,A,p,m;for(r in n=ht.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),f={0:0},m=n.charMap)f[(s=m[r]).old]=s.new;for(d in h=n.maxGlyphID,o)d in f||(f[d]=h++);return c=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(f),u=Object.keys(c).sort((function(e,t){return e-t})),A=function(){var e,t,n;for(n=[],e=0,t=u.length;e>"),o.join("\n")}return""+n},t}(),t["a"]=R}).call(this,n("c8ba"))},"780f":function(e,t,n){"use strict";e.exports=o;var r=n("27bf"),i=Object.create(n("3a7c"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n("3fb5"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a41":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"7b0b":function(e,t,n){var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de"); +/** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @param {?boolean} capture Check if the capture phase is supported. + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */ +function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7d72":function(e,t,n){"use strict";var r=n("8707").Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=A,this.end=p,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=m,this.end=g,t=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function A(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function m(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var A=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},p=(t.arrayFind=function(e,t){var n=A(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":r(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var r=e[t];t&&r&&n.forEach((function(n){e[n+t]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,a.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,a.isObject)(e),r=(0,a.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),m=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;nl)r.f(e,n=a[l++],t[n]);return e}},"861d":function(e,t,n){var r=n("1626"),i=n("8ea1"),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},8707:function(e,t,n){var r=n("b639"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},8925:function(e,t,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},"899a":function(e,t,n){var r=n("b2d1");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},"8a0d":function(e,t){e.exports={}},"8a19":function(e,t,n){"use strict";n.d(t,"a",(function(){return _r})),n.d(t,"b",(function(){return hr})),n.d(t,"c",(function(){return dr})),n.d(t,"d",(function(){return kr})),n.d(t,"e",(function(){return Rt})),n.d(t,"f",(function(){return En})),n.d(t,"g",(function(){return Ln})),n.d(t,"h",(function(){return Dn})),n.d(t,"i",(function(){return Nr})),n.d(t,"j",(function(){return cr}));const r={},i=[];function o(e,t){if(Array.isArray(e))for(const n of e)o(n,t);else if("object"!==typeof e)l(Object.getOwnPropertyNames(t)),r[e]=Object.assign(r[e]||{},t);else for(const n in e)o(n,e[n])}function a(e){return r[e]||{}}function s(){return[...new Set(i)]}function l(e){i.push(...e)}function c(e,t){let n;const r=e.length,i=[];for(n=0;n=0;t--)D(e.children[t]);return e.id?(e.id=I(e.nodeName),e):e}function M(e,t){let n,r;for(e=Array.isArray(e)?e:[e],r=e.length-1;r>=0;r--)for(n in t)e[r].prototype[n]=t[n]}function P(e){return function(...t){const n=t[t.length-1];return!n||n.constructor!==Object||n instanceof Array?e.apply(this,t):e.apply(this,t.slice(0,-1)).attr(n)}}function U(){return this.parent().children()}function R(){return this.parent().index(this)}function j(){return this.siblings()[this.position()+1]}function Q(){return this.siblings()[this.position()-1]}function H(){const e=this.position(),t=this.parent();return t.add(this.remove(),e+1),this}function $(){const e=this.position(),t=this.parent();return t.add(this.remove(),e?e-1:0),this}function z(){const e=this.parent();return e.add(this.remove()),this}function V(){const e=this.parent();return e.add(this.remove(),0),this}function q(e){e=B(e),e.remove();const t=this.position();return this.parent().add(e,t),this}function K(e){e=B(e),e.remove();const t=this.position();return this.parent().add(e,t+1),this}function W(e){return e=B(e),e.before(this),this}function G(e){return e=B(e),e.after(this),this}o("Dom",{siblings:U,position:R,next:j,prev:Q,forward:H,backward:$,front:z,back:V,before:q,after:K,insertBefore:W,insertAfter:G});const Y=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,X=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,J=/rgb\((\d+),(\d+),(\d+)\)/,Z=/(#[a-z_][a-z0-9\-_]*)/i,ee=/\)\s*,?\s*/,te=/\s/g,ne=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,re=/^rgb\(/,ie=/^(\s+)?$/,oe=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ae=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,se=/[\s,]+/,le=/[MLHVCSQTAZ]/i;function ce(){const e=this.attr("class");return null==e?[]:e.trim().split(se)}function ue(e){return-1!==this.classes().indexOf(e)}function he(e){if(!this.hasClass(e)){const t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this}function fe(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!==e})).join(" ")),this}function de(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)}function Ae(e,t){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(e){return!!e.length})).forEach((function(e){const t=e.split(/\s*:\s*/);n[t[0]]=t[1]})),n;if(arguments.length<2){if(Array.isArray(e)){for(const t of e){const e=f(t);n[t]=this.node.style[e]}return n}if("string"===typeof e)return this.node.style[f(e)];if("object"===typeof e)for(const t in e)this.node.style[f(t)]=null==e[t]||ie.test(e[t])?"":e[t]}return 2===arguments.length&&(this.node.style[f(e)]=null==t||ie.test(t)?"":t),this}function pe(){return this.css("display","")}function me(){return this.css("display","none")}function ge(){return"none"!==this.css("display")}function ve(e,t,n){if(null==e)return this.data(c(u(this.node.attributes,e=>0===e.nodeName.indexOf("data-")),e=>e.nodeName.slice(5)));if(e instanceof Array){const t={};for(const n of e)t[n]=this.data(n);return t}if("object"===typeof e)for(t in e)this.data(t,e[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+e))}catch(r){return this.attr("data-"+e)}else this.attr("data-"+e,null===t?null:!0===n||"string"===typeof t||"number"===typeof t?t:JSON.stringify(t));return this}function be(e,t){if("object"===typeof arguments[0])for(const n in e)this.remember(n,e[n]);else{if(1===arguments.length)return this.memory()[e];this.memory()[e]=t}return this}function ye(){if(0===arguments.length)this._memory={};else for(let e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this}function we(){return this._memory=this._memory||{}}function xe(e){return 4===e.length?["#",e.substring(1,2),e.substring(1,2),e.substring(2,3),e.substring(2,3),e.substring(3,4),e.substring(3,4)].join(""):e}function Ce(e){const t=Math.round(e),n=Math.max(0,Math.min(255,t)),r=n.toString(16);return 1===r.length?"0"+r:r}function ke(e,t){for(let n=t.length;n--;)if(null==e[t[n]])return!1;return!0}function _e(e,t){const n=ke(e,"rgb")?{_a:e.r,_b:e.g,_c:e.b,_d:0,space:"rgb"}:ke(e,"xyz")?{_a:e.x,_b:e.y,_c:e.z,_d:0,space:"xyz"}:ke(e,"hsl")?{_a:e.h,_b:e.s,_c:e.l,_d:0,space:"hsl"}:ke(e,"lab")?{_a:e.l,_b:e.a,_c:e.b,_d:0,space:"lab"}:ke(e,"lch")?{_a:e.l,_b:e.c,_c:e.h,_d:0,space:"lch"}:ke(e,"cmyk")?{_a:e.c,_b:e.m,_c:e.y,_d:e.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=t||n.space,n}function Ee(e){return"lab"===e||"xyz"===e||"lch"===e}function Be(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}o("Dom",{classes:ce,hasClass:ue,addClass:he,removeClass:fe,toggleClass:de}),o("Dom",{css:Ae,show:pe,hide:me,visible:ge}),o("Dom",{data:ve}),o("Dom",{remember:be,forget:ye,memory:we});class Se{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof Se||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&"number"===typeof e.r&&"number"===typeof e.g&&"number"===typeof e.b}static random(e="vibrant",t,n){const{random:r,round:i,sin:o,PI:a}=Math;if("vibrant"===e){const e=24*r()+57,t=38*r()+45,n=360*r(),i=new Se(e,t,n,"lch");return i}if("sine"===e){t=null==t?r():t;const e=i(80*o(2*a*t/.5+.01)+150),n=i(50*o(2*a*t/.5+4.6)+200),s=i(100*o(2*a*t/.5+2.3)+150),l=new Se(e,n,s);return l}if("pastel"===e){const e=8*r()+86,t=17*r()+9,n=360*r(),i=new Se(e,t,n,"lch");return i}if("dark"===e){const e=10+10*r(),t=50*r()+86,n=360*r(),i=new Se(e,t,n,"lch");return i}if("rgb"===e){const e=255*r(),t=255*r(),n=255*r(),i=new Se(e,t,n);return i}if("lab"===e){const e=100*r(),t=256*r()-128,n=256*r()-128,i=new Se(e,t,n,"lab");return i}if("grey"===e){const e=255*r(),t=new Se(e,e,e);return t}throw new Error("Unsupported random color mode")}static test(e){return"string"===typeof e&&(ne.test(e)||re.test(e))}cmyk(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=Math.min(1-r,1-i,1-o);if(1===a)return new Se(0,0,0,1,"cmyk");const s=(1-r-a)/(1-a),l=(1-i-a)/(1-a),c=(1-o-a)/(1-a),u=new Se(s,l,c,a,"cmyk");return u}hsl(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=Math.max(r,i,o),s=Math.min(r,i,o),l=(a+s)/2,c=a===s,u=a-s,h=c?0:l>.5?u/(2-a-s):u/(a+s),f=c?0:a===r?((i-o)/u+(iparseInt(e));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!ne.test(e))throw Error("Unsupported string format, can't construct Color");{const t=e=>parseInt(e,16),[,n,r,i]=X.exec(xe(e)).map(t);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:o,_b:a,_c:s,_d:l}=this,c="rgb"===this.space?{r:o,g:a,b:s}:"xyz"===this.space?{x:o,y:a,z:s}:"hsl"===this.space?{h:o,s:a,l:s}:"lab"===this.space?{l:o,a:a,b:s}:"lch"===this.space?{l:o,c:a,h:s}:"cmyk"===this.space?{c:o,m:a,y:s,k:l}:{};Object.assign(this,c)}lab(){const{x:e,y:t,z:n}=this.xyz(),r=116*t-16,i=500*(e-t),o=200*(t-n),a=new Se(r,i,o,"lab");return a}lch(){const{l:e,a:t,b:n}=this.lab(),r=Math.sqrt(t**2+n**2);let i=180*Math.atan2(n,t)/Math.PI;i<0&&(i*=-1,i=360-i);const o=new Se(e,r,i,"lch");return o}rgb(){if("rgb"===this.space)return this;if(Ee(this.space)){let{x:e,y:t,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a:i,b:o}=this;if("lch"===this.space){const{c:e,h:t}=this,n=Math.PI/180;i=e*Math.cos(n*t),o=e*Math.sin(n*t)}const a=(r+16)/116,s=i/500+a,l=a-o/200,c=16/116,u=.008856,h=7.787;e=.95047*(s**3>u?s**3:(s-c)/h),t=1*(a**3>u?a**3:(a-c)/h),n=1.08883*(l**3>u?l**3:(l-c)/h)}const r=3.2406*e+-1.5372*t+-.4986*n,i=-.9689*e+1.8758*t+.0415*n,o=.0557*e+-.204*t+1.057*n,a=Math.pow,s=.0031308,l=r>s?1.055*a(r,1/2.4)-.055:12.92*r,c=i>s?1.055*a(i,1/2.4)-.055:12.92*i,u=o>s?1.055*a(o,1/2.4)-.055:12.92*o,h=new Se(255*l,255*c,255*u);return h}if("hsl"===this.space){let{h:e,s:t,l:n}=this;if(e/=360,t/=100,n/=100,0===t){n*=255;const e=new Se(n,n,n);return e}const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=255*Be(i,r,e+1/3),a=255*Be(i,r,e),s=255*Be(i,r,e-1/3),l=new Se(o,a,s);return l}if("cmyk"===this.space){const{c:e,m:t,y:n,k:r}=this,i=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,t*(1-r)+r)),a=255*(1-Math.min(1,n*(1-r)+r)),s=new Se(i,o,a);return s}return this}toArray(){const{_a:e,_b:t,_c:n,_d:r,space:i}=this;return[e,t,n,r,i]}toHex(){const[e,t,n]=this._clamped().map(Ce);return`#${e}${t}${n}`}toRgb(){const[e,t,n]=this._clamped(),r=`rgb(${e},${t},${n})`;return r}toString(){return this.toHex()}xyz(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,s=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,l=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,c=(.4124*a+.3576*s+.1805*l)/.95047,u=(.2126*a+.7152*s+.0722*l)/1,h=(.0193*a+.1192*s+.9505*l)/1.08883,f=c>.008856?Math.pow(c,1/3):7.787*c+16/116,d=u>.008856?Math.pow(u,1/3):7.787*u+16/116,A=h>.008856?Math.pow(h,1/3):7.787*h+16/116,p=new Se(f,d,A,"xyz");return p}_clamped(){const{_a:e,_b:t,_c:n}=this.rgb(),{max:r,min:i,round:o}=Math,a=e=>r(0,i(o(e),255));return[e,t,n].map(a)}}class Te{constructor(...e){this.init(...e)}clone(){return new Te(this)}init(e,t){const n={x:0,y:0},r=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===typeof e?{x:e.x,y:e.y}:{x:e,y:t};return this.x=null==r.x?n.x:r.x,this.y=null==r.y?n.y:r.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){Ne.isMatrixLike(e)||(e=new Ne(e));const{x:t,y:n}=this;return this.x=e.a*t+e.c*n+e.e,this.y=e.b*t+e.d*n+e.f,this}}function Oe(e,t){return new Te(e,t).transform(this.screenCTM().inverse())}function Fe(e,t,n){return Math.abs(t-e)<(n||1e-6)}class Ne{constructor(...e){this.init(...e)}static formatTransforms(e){const t="both"===e.flip||!0===e.flip,n=e.flip&&(t||"x"===e.flip)?-1:1,r=e.flip&&(t||"y"===e.flip)?-1:1,i=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,o=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,a=e.scale&&e.scale.length?e.scale[0]*n:isFinite(e.scale)?e.scale*n:isFinite(e.scaleX)?e.scaleX*n:n,s=e.scale&&e.scale.length?e.scale[1]*r:isFinite(e.scale)?e.scale*r:isFinite(e.scaleY)?e.scaleY*r:r,l=e.shear||0,c=e.rotate||e.theta||0,u=new Te(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),h=u.x,f=u.y,d=new Te(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),A=d.x,p=d.y,m=new Te(e.translate||e.tx||e.translateX,e.ty||e.translateY),g=m.x,v=m.y,b=new Te(e.relative||e.rx||e.relativeX,e.ry||e.relativeY),y=b.x,w=b.y;return{scaleX:a,scaleY:s,skewX:i,skewY:o,shear:l,theta:c,rx:y,ry:w,tx:g,ty:v,ox:h,oy:f,px:A,py:p}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return null!=e.a||null!=e.b||null!=e.c||null!=e.d||null!=e.e||null!=e.f}static matrixMultiply(e,t,n){const r=e.a*t.a+e.c*t.b,i=e.b*t.a+e.d*t.b,o=e.a*t.c+e.c*t.d,a=e.b*t.c+e.d*t.d,s=e.e+e.a*t.e+e.c*t.f,l=e.f+e.b*t.e+e.d*t.f;return n.a=r,n.b=i,n.c=o,n.d=a,n.e=s,n.f=l,n}around(e,t,n){return this.clone().aroundO(e,t,n)}aroundO(e,t,n){const r=e||0,i=t||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Ne(this)}decompose(e=0,t=0){const n=this.a,r=this.b,i=this.c,o=this.d,a=this.e,s=this.f,l=n*o-r*i,c=l>0?1:-1,u=c*Math.sqrt(n*n+r*r),h=Math.atan2(c*r,c*n),f=180/Math.PI*h,d=Math.cos(h),A=Math.sin(h),p=(n*i+r*o)/l,m=i*u/(p*n-r)||o*u/(p*r+n),g=a-e+e*d*u+t*(p*d*u-A*m),v=s-t+e*A*u+t*(p*A*u+d*m);return{scaleX:u,scaleY:m,shear:p,rotate:f,translateX:g,translateY:v,originX:e,originY:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;const t=new Ne(e);return Fe(this.a,t.a)&&Fe(this.b,t.b)&&Fe(this.c,t.c)&&Fe(this.d,t.d)&&Fe(this.e,t.e)&&Fe(this.f,t.f)}flip(e,t){return this.clone().flipO(e,t)}flipO(e,t){return"x"===e?this.scaleO(-1,1,t,0):"y"===e?this.scaleO(1,-1,0,t):this.scaleO(-1,-1,e,t||e)}init(e){const t=Ne.fromArray([1,0,0,1,0,0]);return e=e instanceof ft?e.matrixify():"string"===typeof e?Ne.fromArray(e.split(se).map(parseFloat)):Array.isArray(e)?Ne.fromArray(e):"object"===typeof e&&Ne.isMatrixLike(e)?e:"object"===typeof e?(new Ne).transform(e):6===arguments.length?Ne.fromArray([].slice.call(arguments)):t,this.a=null!=e.a?e.a:t.a,this.b=null!=e.b?e.b:t.b,this.c=null!=e.c?e.c:t.c,this.d=null!=e.d?e.d:t.d,this.e=null!=e.e?e.e:t.e,this.f=null!=e.f?e.f:t.f,this}inverse(){return this.clone().inverseO()}inverseO(){const e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,o=this.f,a=e*r-t*n;if(!a)throw new Error("Cannot invert "+this);const s=r/a,l=-t/a,c=-n/a,u=e/a,h=-(s*i+c*o),f=-(l*i+u*o);return this.a=s,this.b=l,this.c=c,this.d=u,this.e=h,this.f=f,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){const t=this,n=e instanceof Ne?e:new Ne(e);return Ne.matrixMultiply(n,t,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){const t=this,n=e instanceof Ne?e:new Ne(e);return Ne.matrixMultiply(t,n,this)}rotate(e,t,n){return this.clone().rotateO(e,t,n)}rotateO(e,t=0,n=0){e=h(e);const r=Math.cos(e),i=Math.sin(e),{a:o,b:a,c:s,d:l,e:c,f:u}=this;return this.a=o*r-a*i,this.b=a*r+o*i,this.c=s*r-l*i,this.d=l*r+s*i,this.e=c*r-u*i+n*i-t*r+t,this.f=u*r+c*i-t*i-n*r+n,this}scale(e,t,n,r){return this.clone().scaleO(...arguments)}scaleO(e,t=e,n=0,r=0){3===arguments.length&&(r=n,n=t,t=e);const{a:i,b:o,c:a,d:s,e:l,f:c}=this;return this.a=i*e,this.b=o*t,this.c=a*e,this.d=s*t,this.e=l*e-n*e+n,this.f=c*t-r*t+r,this}shear(e,t,n){return this.clone().shearO(e,t,n)}shearO(e,t=0,n=0){const{a:r,b:i,c:o,d:a,e:s,f:l}=this;return this.a=r+i*e,this.c=o+a*e,this.e=s+l*e-n*e,this}skew(e,t,n,r){return this.clone().skewO(...arguments)}skewO(e,t=e,n=0,r=0){3===arguments.length&&(r=n,n=t,t=e),e=h(e),t=h(t);const i=Math.tan(e),o=Math.tan(t),{a:a,b:s,c:l,d:c,e:u,f:f}=this;return this.a=a+s*i,this.b=s+a*o,this.c=l+c*i,this.d=c+l*o,this.e=u+f*i-r*i,this.f=f+u*o-n*o,this}skewX(e,t,n){return this.skew(e,0,t,n)}skewY(e,t,n){return this.skew(0,e,t,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(Ne.isMatrixLike(e)){const t=new Ne(e);return t.multiplyO(this)}const t=Ne.formatTransforms(e),n=this,{x:r,y:i}=new Te(t.ox,t.oy).transform(n),o=(new Ne).translateO(t.rx,t.ry).lmultiplyO(n).translateO(-r,-i).scaleO(t.scaleX,t.scaleY).skewO(t.skewX,t.skewY).shearO(t.shear).rotateO(t.theta).translateO(r,i);if(isFinite(t.px)||isFinite(t.py)){const e=new Te(r,i).transform(o),n=isFinite(t.px)?t.px-e.x:0,a=isFinite(t.py)?t.py-e.y:0;o.translateO(n,a)}return o.translateO(t.tx,t.ty),o}translate(e,t){return this.clone().translateO(e,t)}translateO(e,t){return this.e+=e||0,this.f+=t||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function Le(){return new Ne(this.node.getCTM())}function Ie(){if("function"===typeof this.isRoot&&!this.isRoot()){const e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new Ne(t)}return new Ne(this.node.getScreenCTM())}function De(){if(!De.nodes){const e=B().size(2,0);e.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),e.attr("focusable","false"),e.attr("aria-hidden","true");const t=e.path().node;De.nodes={svg:e,path:t}}if(!De.nodes.svg.node.parentNode){const e=x.document.body||x.document.documentElement;De.nodes.svg.addTo(e)}return De.nodes}function Me(e){return!e.width&&!e.height&&!e.x&&!e.y}function Pe(e){return e===x.document||(x.document.documentElement.contains||function(e){while(e.parentNode)e=e.parentNode;return e===x.document}).call(x.document.documentElement,e)}F(Ne,"Matrix");class Ue{constructor(...e){this.init(...e)}addOffset(){return this.x+=x.window.pageXOffset,this.y+=x.window.pageYOffset,new Ue(this)}init(e){const t=[0,0,0,0];return e="string"===typeof e?e.split(se).map(parseFloat):Array.isArray(e)?e:"object"===typeof e?[null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height]:4===arguments.length?[].slice.call(arguments):t,this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Me(this)}merge(e){const t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x+e.width)-t,i=Math.max(this.y+this.height,e.y+e.height)-n;return new Ue(t,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof Ne||(e=new Ne(e));let t=1/0,n=-1/0,r=1/0,i=-1/0;const o=[new Te(this.x,this.y),new Te(this.x2,this.y),new Te(this.x,this.y2),new Te(this.x2,this.y2)];return o.forEach((function(o){o=o.transform(e),t=Math.min(t,o.x),n=Math.max(n,o.x),r=Math.min(r,o.y),i=Math.max(i,o.y)})),new Ue(t,r,n-t,i-r)}}function Re(e,t,n){let r;try{if(r=t(e.node),Me(r)&&!Pe(e.node))throw new Error("Element not in the dom")}catch(i){r=n(e)}return r}function je(){const e=e=>e.getBBox(),t=e=>{try{const t=e.clone().addTo(De().svg).show(),n=t.node.getBBox();return t.remove(),n}catch(t){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${t.toString()}`)}},n=Re(this,e,t),r=new Ue(n);return r}function Qe(e){const t=e=>e.getBoundingClientRect(),n=e=>{throw new Error(`Getting rbox of element "${e.node.nodeName}" is not possible`)},r=Re(this,t,n),i=new Ue(r);return e?i.transform(e.screenCTM().inverseO()):i.addOffset()}function He(e,t){const n=this.bbox();return e>n.x&&t>n.y&&ee.call(t,t,n,r)):this.map(n=>n[e](...t))},toArray(){return Array.prototype.concat.apply([],this)}});const ze=["toArray","constructor","each"];function Ve(e,t){return new $e(c((t||x.document).querySelectorAll(e),(function(e){return T(e)})))}function qe(e){return Ve(e,this.node)}function Ke(e){return T(this.node.querySelector(e))}$e.extend=function(e){e=e.reduce((e,t)=>(ze.includes(t)||"_"===t[0]||(e[t]=function(...e){return this.each(t,...e)}),e),{}),M([$e],e)};let We=0;const Ge={};function Ye(e){let t=e.getEventHolder();return t===x.window&&(t=Ge),t.events||(t.events={}),t.events}function Xe(e){return e.getEventTarget()}function Je(e){let t=e.getEventHolder();t===x.window&&(t=Ge),t.events&&(t.events={})}function Ze(e,t,n,r,i){const o=n.bind(r||e),a=B(e),s=Ye(a),l=Xe(a);t=Array.isArray(t)?t:t.split(se),n._svgjsListenerId||(n._svgjsListenerId=++We),t.forEach((function(e){const t=e.split(".")[0],r=e.split(".")[1]||"*";s[t]=s[t]||{},s[t][r]=s[t][r]||{},s[t][r][n._svgjsListenerId]=o,l.addEventListener(t,o,i||!1)}))}function et(e,t,n,r){const i=B(e),o=Ye(i),a=Xe(i);("function"!==typeof n||(n=n._svgjsListenerId,n))&&(t=Array.isArray(t)?t:(t||"").split(se),t.forEach((function(e){const t=e&&e.split(".")[0],s=e&&e.split(".")[1];let l,c;if(n)o[t]&&o[t][s||"*"]&&(a.removeEventListener(t,o[t][s||"*"][n],r||!1),delete o[t][s||"*"][n]);else if(t&&s){if(o[t]&&o[t][s]){for(c in o[t][s])et(a,[t,s].join("."),c);delete o[t][s]}}else if(s)for(e in o)for(l in o[e])s===l&&et(a,[e,s].join("."));else if(t){if(o[t]){for(l in o[t])et(a,[t,l].join("."));delete o[t]}}else{for(e in o)et(a,e);Je(i)}})))}function tt(e,t,n,r){const i=Xe(e);return t instanceof x.window.Event||(t=new x.window.CustomEvent(t,{detail:n,cancelable:!0,...r})),i.dispatchEvent(t),t}class nt extends C{addEventListener(){}dispatch(e,t,n){return tt(this,e,t,n)}dispatchEvent(e){const t=this.getEventHolder().events;if(!t)return!0;const n=t[e.type];for(const r in n)for(const t in n[r])n[r][t](e);return!e.defaultPrevented}fire(e,t,n){return this.dispatch(e,t,n),this}getEventHolder(){return this}getEventTarget(){return this}off(e,t,n){return et(this,e,t,n),this}on(e,t,n,r){return Ze(this,e,t,n,r),this}removeEventListener(){}}function rt(){}F(nt,"EventTarget");const it={duration:400,ease:">",delay:0},ot={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class at extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return"number"===typeof e||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(se).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const e=[];return e.push(...this),e}}class st{constructor(...e){this.init(...e)}convert(e){return new st(this.value,e)}divide(e){return e=new st(e),new st(this/e,this.unit||e.unit)}init(e,t){return t=Array.isArray(e)?e[1]:t,e=Array.isArray(e)?e[0]:e,this.value=0,this.unit=t||"","number"===typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"===typeof e?(t=e.match(Y),t&&(this.value=parseFloat(t[1]),"%"===t[5]?this.value/=100:"s"===t[5]&&(this.value*=1e3),this.unit=t[5])):e instanceof st&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new st(e),new st(this-e,this.unit||e.unit)}plus(e){return e=new st(e),new st(this+e,this.unit||e.unit)}times(e){return e=new st(e),new st(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const lt=[];function ct(e){lt.push(e)}function ut(e,t,n){if(null==e){e={},t=this.node.attributes;for(const n of t)e[n.nodeName]=oe.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return e}if(e instanceof Array)return e.reduce((e,t)=>(e[t]=this.attr(t),e),{});if("object"===typeof e&&e.constructor===Object)for(t in e)this.attr(t,e[t]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return t=this.node.getAttribute(e),null==t?ot[e]:oe.test(t)?parseFloat(t):t;t=lt.reduce((t,n)=>n(e,t,this),t),"number"===typeof t?t=new st(t):Se.isColor(t)?t=new Se(t):t.constructor===Array&&(t=new at(t)),"leading"===e?this.leading&&this.leading(t):"string"===typeof n?this.node.setAttributeNS(n,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!==e&&"x"!==e||this.rebuild()}return this}class ht extends nt{constructor(e,t){super(),this.node=e,this.type=e.nodeName,t&&e!==t&&this.attr(t)}add(e,t){return e=B(e),e.removeNamespace&&this.node instanceof x.window.SVGElement&&e.removeNamespace(),null==t?this.node.appendChild(e.node):e.node!==this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this}addTo(e,t){return B(e).put(this,t)}children(){return new $e(c(this.node.children,(function(e){return T(e)})))}clear(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return this}clone(e=!0){return this.writeDataToDom(),new this.constructor(D(this.node.cloneNode(e)))}each(e,t){const n=this.children();let r,i;for(r=0,i=n.length;r=0}html(e,t){return this.xml(e,t,v)}id(e){return"undefined"!==typeof e||this.node.id||(this.node.id=I(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return T(this.node.lastChild)}matches(e){const t=this.node,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return n&&n.call(t,e)}parent(e){let t=this;if(!t.node.parentNode)return null;if(t=T(t.node.parentNode),!e)return t;do{if("string"===typeof e?t.matches(e):t instanceof e)return t}while(t=T(t.node.parentNode));return t}put(e,t){return e=B(e),this.add(e,t),e}putIn(e,t){return B(e).add(this,t)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=B(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,t=null){const n=10**e,r=this.attr(t);for(const i in r)"number"===typeof r[i]&&(r[i]=Math.round(r[i]*n)/n);return this.attr(r),this}svg(e,t){return this.xml(e,t,g)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){const t=this.parent();if(!t)return this.addTo(e);const n=t.index(this);return t.put(e,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(e,t,n){if("boolean"===typeof e&&(n=t,t=e,e=null),null==e||"function"===typeof e){t=null==t||t,this.writeDataToDom();let n=this;if(null!=e){if(n=T(n.node.cloneNode(!0)),t){const t=e(n);if(n=t||n,!1===t)return""}n.each((function(){const t=e(this),n=t||this;!1===t?this.remove():t&&this!==n&&this.replace(n)}),!0)}return t?n.node.outerHTML:n.node.innerHTML}t=null!=t&&t;const r=E("wrapper",n),i=x.document.createDocumentFragment();r.innerHTML=e;for(let a=r.children.length;a--;)i.appendChild(r.firstElementChild);const o=this.parent();return t?this.replace(i)&&o:this.add(i)}}M(ht,{attr:ut,find:qe,findOne:Ke}),F(ht,"Dom");class ft extends ht{constructor(e,t){super(e,t),this.dom={},this.node.instance=this,e.hasAttribute("svgjs:data")&&this.setData(JSON.parse(e.getAttribute("svgjs:data"))||{})}center(e,t){return this.cx(e).cy(t)}cx(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)}cy(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)}defs(){const e=this.root();return e&&e.defs()}dmove(e,t){return this.dx(e).dy(t)}dx(e=0){return this.x(new st(e).plus(this.x()))}dy(e=0){return this.y(new st(e).plus(this.y()))}getEventHolder(){return this}height(e){return this.attr("height",e)}move(e,t){return this.x(e).y(t)}parents(e=this.root()){const t="string"===typeof e;t||(e=B(e));const n=new $e;let r=this;while((r=r.parent())&&r.node!==x.document&&"#document-fragment"!==r.nodeName){if(n.push(r),!t&&r.node===e.node)break;if(t&&r.matches(e))break;if(r.node===this.root().node)return null}return n}reference(e){if(e=this.attr(e),!e)return null;const t=(e+"").match(Z);return t?B(t[1]):null}root(){const e=this.parent(N(_));return e&&e.root()}setData(e){return this.dom=e,this}size(e,t){const n=p(this,e,t);return this.width(new st(n.width)).height(new st(n.height))}width(e){return this.attr("width",e)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(e){return this.attr("x",e)}y(e){return this.attr("y",e)}}M(ft,{bbox:je,rbox:Qe,inside:He,point:Oe,ctm:Le,screenCTM:Ie}),F(ft,"Element");const dt={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"===t?e:e+"-"+t}};["fill","stroke"].forEach((function(e){const t={};let n;t[e]=function(t){if("undefined"===typeof t)return this.attr(e);if("string"===typeof t||t instanceof Se||Se.isRgb(t)||t instanceof ft)this.attr(e,t);else for(n=dt[e].length-1;n>=0;n--)null!=t[dt[e][n]]&&this.attr(dt.prefix(e,dt[e][n]),t[dt[e][n]]);return this},o(["Element","Runner"],t)})),o(["Element","Runner"],{matrix:function(e,t,n,r,i,o){return null==e?new Ne(this):this.attr("transform",new Ne(e,t,n,r,i,o))},rotate:function(e,t,n){return this.transform({rotate:e,ox:t,oy:n},!0)},skew:function(e,t,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:e,ox:t,oy:n},!0):this.transform({skew:[e,t],ox:n,oy:r},!0)},shear:function(e,t,n){return this.transform({shear:e,ox:t,oy:n},!0)},scale:function(e,t,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:e,ox:t,oy:n},!0):this.transform({scale:[e,t],ox:n,oy:r},!0)},translate:function(e,t){return this.transform({translate:[e,t]},!0)},relative:function(e,t){return this.transform({relative:[e,t]},!0)},flip:function(e="both",t="center"){return-1==="xybothtrue".indexOf(e)&&(t=e,e="both"),this.transform({flip:e,origin:t},!0)},opacity:function(e){return this.attr("opacity",e)}}),o("radius",{radius:function(e,t=e){const n=(this._element||this).type;return"radialGradient"===n?this.attr("r",new st(e)):this.rx(e).ry(t)}}),o("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(e){return new Te(this.node.getPointAtLength(e))}}),o(["Element","Runner"],{font:function(e,t){if("object"===typeof e){for(t in e)this.font(t,e[t]);return this}return"leading"===e?this.leading(t):"anchor"===e?this.attr("text-anchor",t):"size"===e||"family"===e||"weight"===e||"stretch"===e||"variant"===e||"style"===e?this.attr("font-"+e,t):this.attr(e,t)}});const At=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(e,t){const n=function(e){return null===e?this.off(t):this.on(t,e),this};return e[t]=n,e}),{});function pt(){return this.attr("transform",null)}function mt(){const e=(this.attr("transform")||"").split(ee).slice(0,-1).map((function(e){const t=e.trim().split("(");return[t[0],t[1].split(se).map((function(e){return parseFloat(e)}))]})).reverse().reduce((function(e,t){return"matrix"===t[0]?e.lmultiply(Ne.fromArray(t[1])):e[t[0]].apply(e,t[1])}),new Ne);return e}function gt(e,t){if(this===e)return this;const n=this.screenCTM(),r=e.screenCTM().inverse();return this.addTo(e,t).untransform().transform(r.multiply(n)),this}function vt(e){return this.toParent(this.root(),e)}function bt(e,t){if(null==e||"string"===typeof e){const t=new Ne(this).decompose();return null==e?t:t[e]}Ne.isMatrixLike(e)||(e={...e,origin:m(e,this)});const n=!0===t?this:t||!1,r=new Ne(n).transform(e);return this.attr("transform",r)}o("Element",At),o("Element",{untransform:pt,matrixify:mt,toParent:gt,toRoot:vt,transform:bt});class yt extends ft{flatten(e=this,t){return this.each((function(){if(this instanceof yt)return this.flatten().ungroup()})),this}ungroup(e=this.parent(),t=e.index(this)){return t=-1===t?e.children().length:t,this.each((function(n,r){return r[r.length-n-1].toParent(e,t)})),this.remove()}}F(yt,"Container");class wt extends yt{constructor(e,t=e){super(S("defs",e),t)}flatten(){return this}ungroup(){return this}}F(wt,"Defs");class xt extends ft{}function Ct(e){return this.attr("rx",e)}function kt(e){return this.attr("ry",e)}function _t(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())}function Et(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())}function Bt(e){return this.attr("cx",e)}function St(e){return this.attr("cy",e)}function Tt(e){return null==e?2*this.rx():this.rx(new st(e).divide(2))}function Ot(e){return null==e?2*this.ry():this.ry(new st(e).divide(2))}F(xt,"Shape");var Ft={__proto__:null,rx:Ct,ry:kt,x:_t,y:Et,cx:Bt,cy:St,width:Tt,height:Ot};class Nt extends xt{constructor(e,t=e){super(S("ellipse",e),t)}size(e,t){const n=p(this,e,t);return this.rx(new st(n.width).divide(2)).ry(new st(n.height).divide(2))}}M(Nt,Ft),o("Container",{ellipse:P((function(e=0,t=e){return this.put(new Nt).size(e,t).move(0,0)}))}),F(Nt,"Ellipse");class Lt extends ht{constructor(e=x.document.createDocumentFragment()){super(e)}xml(e,t,n){if("boolean"===typeof e&&(n=t,t=e,e=null),null==e||"function"===typeof e){const e=new ht(E("wrapper",n));return e.add(this.node.cloneNode(!0)),e.xml(!1,n)}return super.xml(e,!1,n)}}function It(e,t){return"radialGradient"===(this._element||this).type?this.attr({fx:new st(e),fy:new st(t)}):this.attr({x1:new st(e),y1:new st(t)})}function Dt(e,t){return"radialGradient"===(this._element||this).type?this.attr({cx:new st(e),cy:new st(t)}):this.attr({x2:new st(e),y2:new st(t)})}F(Lt,"Fragment");var Mt={__proto__:null,from:It,to:Dt};class Pt extends yt{constructor(e,t){super(S(e+"Gradient","string"===typeof e?null:e),t)}attr(e,t,n){return"transform"===e&&(e="gradientTransform"),super.attr(e,t,n)}bbox(){return new Ue}targets(){return Ve('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(e){return this.clear(),"function"===typeof e&&e.call(this,this),this}url(){return'url("#'+this.id()+'")'}}M(Pt,Mt),o({Container:{gradient(...e){return this.defs().gradient(...e)}},Defs:{gradient:P((function(e,t){return this.put(new Pt(e)).update(t)}))}}),F(Pt,"Gradient");class Ut extends yt{constructor(e,t=e){super(S("pattern",e),t)}attr(e,t,n){return"transform"===e&&(e="patternTransform"),super.attr(e,t,n)}bbox(){return new Ue}targets(){return Ve('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(e){return this.clear(),"function"===typeof e&&e.call(this,this),this}url(){return'url("#'+this.id()+'")'}}o({Container:{pattern(...e){return this.defs().pattern(...e)}},Defs:{pattern:P((function(e,t,n){return this.put(new Ut).update(n).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}))}}),F(Ut,"Pattern");class Rt extends xt{constructor(e,t=e){super(S("image",e),t)}load(e,t){if(!e)return this;const n=new x.window.Image;return Ze(n,"load",(function(e){const r=this.parent(Ut);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ut&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"===typeof t&&t.call(this,e)}),this),Ze(n,"load error",(function(){et(n)})),this.attr("href",n.src=e,y)}}ct((function(e,t,n){return"fill"!==e&&"stroke"!==e||ae.test(t)&&(t=n.root().defs().image(t)),t instanceof Rt&&(t=n.root().defs().pattern(0,0,e=>{e.add(t)})),t})),o({Container:{image:P((function(e,t){return this.put(new Rt).size(0,0).load(e,t)}))}}),F(Rt,"Image");class jt extends at{bbox(){let e=-1/0,t=-1/0,n=1/0,r=1/0;return this.forEach((function(i){e=Math.max(i[0],e),t=Math.max(i[1],t),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new Ue(n,r,e-n,t-r)}move(e,t){const n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(let r=this.length-1;r>=0;r--)this[r]=[this[r][0]+e,this[r][1]+t];return this}parse(e=[0,0]){const t=[];e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(se).map(parseFloat),e.length%2!==0&&e.pop();for(let n=0,r=e.length;n=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*e/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*t/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const e=[];for(let t=0,n=this.length;t":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)},bezier:function(e,t,n,r){return function(i){return i<0?e>0?t/e*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):e<1?(1-t)/(1-e)*i+(t-e)/(1-e):1:3*i*(1-i)**2*t+3*i**2*(1-i)*r+i**3}},steps:function(e,t="end"){t=t.split("-").reverse()[0];let n=e;return"none"===t?--n:"both"===t&&++n,(r,i=!1)=>{let o=Math.floor(r*e);const a=r*o%1===0;return"start"!==t&&"both"!==t||++o,i&&a&&--o,r>=0&&o<0&&(o=0),r<=1&&o>n&&(o=n),o/n}}};class Xt{done(){return!1}}class Jt extends Xt{constructor(e=it.ease){super(),this.ease=Yt[e]||e}step(e,t,n){return"number"!==typeof e?n<1?e:t:e+(t-e)*this.ease(n)}}class Zt extends Xt{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,t,n,r){return this.stepper(e,t,n,r)}}function en(){const e=(this._duration||500)/1e3,t=this._overshoot||0,n=1e-10,r=Math.PI,i=Math.log(t/100+n),o=-i/Math.sqrt(r*r+i*i),a=3.9/(o*e);this.d=2*o*a,this.k=a*a}class tn extends Zt{constructor(e=500,t=0){super(),this.duration(e).overshoot(t)}step(e,t,n,r){if("string"===typeof e)return e;if(r.done=n===1/0,n===1/0)return t;if(0===n)return e;n>100&&(n=16),n/=1e3;const i=r.velocity||0,o=-this.d*i-this.k*(e-t),a=e+i*n+o*n*n/2;return r.velocity=i+o*n,r.done=Math.abs(t-a)+Math.abs(i)<.002,r.done?t:a}}M(tn,{duration:Gt("_duration",en),overshoot:Gt("_overshoot",en)});class nn extends Zt{constructor(e=.1,t=.01,n=0,r=1e3){super(),this.p(e).i(t).d(n).windup(r)}step(e,t,n,r){if("string"===typeof e)return e;if(r.done=n===1/0,n===1/0)return t;if(0===n)return e;const i=t-e;let o=(r.integral||0)+i*n;const a=(i-(r.error||0))/n,s=this._windup;return!1!==s&&(o=Math.max(-s,Math.min(o,s))),r.error=i,r.integral=o,r.done=Math.abs(i)<.001,r.done?t:e+(this.P*i+this.I*o+this.D*a)}}M(nn,{windup:Gt("_windup"),p:Gt("P"),i:Gt("I"),d:Gt("D")});const rn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},on={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},T:function(e,t){return t.x=e[0],t.y=e[1],["T",e[0],e[1]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]},A:function(e,t){return t.x=e[5],t.y=e[6],["A",e[0],e[1],e[2],e[3],e[4],e[5],e[6]]}},an="mlhvqtcsaz".split("");for(let Lr=0,Ir=an.length;Lr=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]+=e,this[i][2]+=t):"H"===r?this[i][1]+=e:"V"===r?this[i][1]+=t:"C"===r||"S"===r||"Q"===r?(this[i][1]+=e,this[i][2]+=t,this[i][3]+=e,this[i][4]+=t,"C"===r&&(this[i][5]+=e,this[i][6]+=t)):"A"===r&&(this[i][6]+=e,this[i][7]+=t);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),An(e)}size(e,t){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*e/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*t/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y,this[r][3]=(this[r][3]-n.x)*e/n.width+n.x,this[r][4]=(this[r][4]-n.y)*t/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*e/n.width+n.x,this[r][6]=(this[r][6]-n.y)*t/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*e/n.width,this[r][2]=this[r][2]*t/n.height,this[r][6]=(this[r][6]-n.x)*e/n.width+n.x,this[r][7]=(this[r][7]-n.y)*t/n.height+n.y);return this}toString(){return pn(this)}}const gn=e=>{const t=typeof e;return"number"===t?st:"string"===t?Se.isColor(e)?Se:se.test(e)?le.test(e)?mn:at:Y.test(e)?st:bn:Cn.indexOf(e.constructor)>-1?e.constructor:Array.isArray(e)?at:"object"===t?xn:bn};class vn{constructor(e){this._stepper=e||new Jt("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){const e=this._context.map(this._stepper.done).reduce((function(e,t){return e&&t}),!0);return e}from(e){return null==e?this._from:(this._from=this._set(e),this)}stepper(e){return null==e?this._stepper:(this._stepper=e,this)}to(e){return null==e?this._to:(this._to=this._set(e),this)}type(e){return null==e?this._type:(this._type=e,this)}_set(e){this._type||this.type(gn(e));let t=new this._type(e);return this._type===Se&&(t=this._to?t[this._to[4]]():this._from?t[this._from[4]]():t),this._type===xn&&(t=this._to?t.align(this._to):this._from?t.align(this._from):t),t=t.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(t.length)).map(Object).map((function(e){return e.done=!0,e})),t}}class bn{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}}class yn{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,yn.defaults,e),this}toArray(){const e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}}yn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const wn=(e,t)=>e[0]t[0]?1:0;class xn{constructor(...e){this.init(...e)}align(e){const t=this.values;for(let n=0,r=t.length;ne.concat(t),[]),this}toArray(){return this.values}valueOf(){const e={},t=this.values;while(t.length){const n=t.shift(),r=t.shift(),i=t.shift(),o=t.splice(0,i);e[n]=new r(o)}return e}}const Cn=[bn,yn,xn];function kn(e=[]){Cn.push(...[].concat(e))}function _n(){M(Cn,{to(e){return(new vn).type(this.constructor).from(this.toArray()).to(e)},fromArray(e){return this.init(e),this},toConsumable(){return this.toArray()},morph(e,t,n,r,i){const o=function(e,o){return r.step(e,t[o],n,i[o],i)};return this.fromArray(e.map(o))}})}class En extends xt{constructor(e,t=e){super(S("path",e),t)}array(){return this._array||(this._array=new mn(this.attr("d")))}clear(){return delete this._array,this}height(e){return null==e?this.bbox().height:this.size(this.bbox().width,e)}move(e,t){return this.attr("d",this.array().move(e,t))}plot(e){return null==e?this.array():this.clear().attr("d","string"===typeof e?e:this._array=new mn(e))}size(e,t){const n=p(this,e,t);return this.attr("d",this.array().size(n.width,n.height))}width(e){return null==e?this.bbox().width:this.size(e,this.bbox().height)}x(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)}y(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)}}function Bn(){return this._array||(this._array=new jt(this.attr("points")))}function Sn(){return delete this._array,this}function Tn(e,t){return this.attr("points",this.array().move(e,t))}function On(e){return null==e?this.array():this.clear().attr("points","string"===typeof e?e:this._array=new jt(e))}function Fn(e,t){const n=p(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}En.prototype.MorphArray=mn,o({Container:{path:P((function(e){return this.put(new En).plot(e||new mn)}))}}),F(En,"Path");var Nn={__proto__:null,array:Bn,clear:Sn,move:Tn,plot:On,size:Fn};class Ln extends xt{constructor(e,t=e){super(S("polygon",e),t)}}o({Container:{polygon:P((function(e){return this.put(new Ln).plot(e||new jt)}))}}),M(Ln,qt),M(Ln,Nn),F(Ln,"Polygon");class In extends xt{constructor(e,t=e){super(S("polyline",e),t)}}o({Container:{polyline:P((function(e){return this.put(new In).plot(e||new jt)}))}}),M(In,qt),M(In,Nn),F(In,"Polyline");class Dn extends xt{constructor(e,t=e){super(S("rect",e),t)}}M(Dn,{rx:Ct,ry:kt}),o({Container:{rect:P((function(e,t){return this.put(new Dn).size(e,t)}))}}),F(Dn,"Rect");class Mn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){const t="undefined"!==typeof e.next?e:{value:e,next:null,prev:null};return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._last=t,this._first=t),t}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){const e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}}const Pn={nextDraw:null,frames:new Mn,timeouts:new Mn,immediates:new Mn,timer:()=>x.window.performance||x.window.Date,transforms:[],frame(e){const t=Pn.frames.push({run:e});return null===Pn.nextDraw&&(Pn.nextDraw=x.window.requestAnimationFrame(Pn._draw)),t},timeout(e,t){t=t||0;const n=Pn.timer().now()+t,r=Pn.timeouts.push({run:e,time:n});return null===Pn.nextDraw&&(Pn.nextDraw=x.window.requestAnimationFrame(Pn._draw)),r},immediate(e){const t=Pn.immediates.push(e);return null===Pn.nextDraw&&(Pn.nextDraw=x.window.requestAnimationFrame(Pn._draw)),t},cancelFrame(e){null!=e&&Pn.frames.remove(e)},clearTimeout(e){null!=e&&Pn.timeouts.remove(e)},cancelImmediate(e){null!=e&&Pn.immediates.remove(e)},_draw(e){let t=null;const n=Pn.timeouts.last();while(t=Pn.timeouts.shift())if(e>=t.time?t.run():Pn.timeouts.push(t),t===n)break;let r=null;const i=Pn.frames.last();while(r!==i&&(r=Pn.frames.shift()))r.run(e);let o=null;while(o=Pn.immediates.shift())o();Pn.nextDraw=Pn.timeouts.first()||Pn.frames.first()?x.window.requestAnimationFrame(Pn._draw):null}},Un=function(e){const t=e.start,n=e.runner.duration(),r=t+n;return{start:t,duration:n,end:r,runner:e.runner}},Rn=function(){const e=x.window;return(e.performance||e.Date).now()};class jn extends nt{constructor(e=Rn){super(),this._timeSource=e,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const e=this.getLastRunnerInfo(),t=e?e.runner.duration():0,n=e?e.start:this._time;return n+t}getEndTimeOfTimeline(){const e=this._runners.map(e=>e.start+e.runner.duration());return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return null==e?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){const t=this.speed();if(null==e)return this.speed(-t);const n=Math.abs(t);return this.speed(e?-n:n)}schedule(e,t,n){if(null==e)return this._runners.map(Un);let r=0;const i=this.getEndTime();if(t=t||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=t,t=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(e.id);n&&(r=n.start+t,t=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const e=this.getLastRunnerInfo(),t=e?e.start:this._time;r=t}}e.unschedule(),e.timeline(this);const o=e.persist(),a={persist:null===o?this._persist:o,start:r+t,runner:e};return this._lastRunnerId=e.id,this._runners.push(a),this._runners.sort((e,t)=>e.start-t.start),this._runnerIds=this._runners.map(e=>e.runner.id),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return null==e?this._timeSource:(this._timeSource=e,this)}speed(e){return null==e?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return null==e?this._time:(this._time=e,this._continue(!0))}unschedule(e){const t=this._runnerIds.indexOf(e.id);return t<0||(this._runners.splice(t,1),this._runnerIds.splice(t,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return Pn.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=Pn.frame(this._step)),this)}_stepFn(e=!1){const t=this._timeSource();let n=t-this._lastSourceTime;e&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=t,e||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let o=this._runners.length;o--;){const e=this._runners[o],t=e.runner,n=this._time-e.start;n<=0&&t.reset()}let i=!1;for(let o=0,a=this._runners.length;o0?this._continue():(this.pause(),this.fire("finished")),this}}o({Element:{timeline:function(e){return null==e?(this._timeline=this._timeline||new jn,this._timeline):(this._timeline=e,this)}}});class Qn extends nt{constructor(e){super(),this.id=Qn.id++,e=null==e?it.duration:e,e="function"===typeof e?new Zt(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"===typeof e&&e,this._isDeclarative=e instanceof Zt,this._stepper=this._isDeclarative?e:new Jt,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Ne,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,t,n){let r=1,i=!1,o=0;return e=e||it.duration,t=t||it.delay,n=n||"last","object"!==typeof e||e instanceof Xt||(t=e.delay||t,n=e.when||n,i=e.swing||i,r=e.times||r,o=e.wait||o,e=e.duration||it.duration),{duration:e,delay:t,swing:i,times:r,wait:o,when:n}}active(e){return null==e?this.enabled:(this.enabled=e,this)}addTransform(e,t){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,t,n){const r=Qn.sanitise(e,t,n),i=new Qn(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Ne,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(e=>!e.isTransform))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new Jt(e),this}element(e){return null==e?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,t,n){return"object"===typeof e&&(t=e.swing,n=e.wait,e=e.times),this._times=e||1/0,this._swing=t||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(e){const t=this._duration+this._wait;if(null==e){const e=Math.floor(this._time/t),n=this._time-e*t,r=n/this._duration;return Math.min(e+r,this._times)}const n=Math.floor(e),r=e%1,i=t*n+this._duration*r;return this.time(i)}persist(e){return null==e?this._persist:(this._persist=e,this)}position(e){const t=this._time,n=this._duration,r=this._wait,i=this._times,o=this._swing,a=this._reverse;let s;if(null==e){const e=function(e){const t=o*Math.floor(e%(2*(r+n))/(r+n)),i=t&&!a||!t&&a,s=Math.pow(-1,i)*(e%(r+n))/n+i,l=Math.max(Math.min(s,1),0);return l},l=i*(r+n)-r;return s=t<=0?Math.round(e(1e-5)):t=0;this._lastPosition=t;const r=this.duration(),i=this._lastTime<=0&&this._time>0,o=this._lastTime=r;this._lastTime=this._time,i&&this.fire("start",this);const a=this._isDeclarative;this.done=!a&&!o&&this._time>=r,this._reseted=!1;let s=!1;return(n||a)&&(this._initialise(n),this.transforms=new Ne,s=this._run(a?e:t),this.fire("step",this)),this.done=this.done||s&&a,o&&this.fire("finished",this),this}time(e){if(null==e)return this._time;const t=e-this._time;return this.step(t),this}timeline(e){return"undefined"===typeof e?this._timeline:(this._timeline=e,this)}unschedule(){const e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let t=0,n=this._queue.length;te.lmultiplyO(t),zn=e=>e.transforms;function Vn(){const e=this._transformationRunners.runners,t=e.map(zn).reduce($n,new Ne);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class qn{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;const t=e.id+1;return this.runners.push(e),this.ids.push(t),this}clearBefore(e){const t=this.ids.indexOf(e+1)||1;return this.ids.splice(0,t,0),this.runners.splice(0,t,new Hn).forEach(e=>e.clearTransformsFromQueue()),this}edit(e,t){const n=this.ids.indexOf(e+1);return this.ids.splice(n,1,e+1),this.runners.splice(n,1,t),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let t=0;tt.id<=e.id).map(zn).reduce($n,new Ne)},_addRunner(e){this._transformationRunners.add(e),Pn.cancelImmediate(this._frameId),this._frameId=Pn.immediate(Vn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new qn).add(new Hn(new Ne(this))))}}});const Kn=(e,t)=>e.filter(e=>!t.includes(e));M(Qn,{attr(e,t){return this.styleAttr("attr",e,t)},css(e,t){return this.styleAttr("css",e,t)},styleAttr(e,t,n){if("string"===typeof t)return this.styleAttr(e,{[t]:n});let r=t;if(this._tryRetarget(e,r))return this;let i=new vn(this._stepper).to(r),o=Object.keys(r);return this.queue((function(){i=i.from(this.element()[e](o))}),(function(t){return this.element()[e](i.at(t).valueOf()),i.done()}),(function(t){const n=Object.keys(t),a=Kn(n,o);if(a.length){const t=this.element()[e](a),n=new xn(i.from()).valueOf();Object.assign(n,t),i.from(n)}const s=new xn(i.to()).valueOf();Object.assign(s,t),i.to(s),o=n,r=t})),this._rememberMorpher(e,i),this},zoom(e,t){if(this._tryRetarget("zoom",e,t))return this;let n=new vn(this._stepper).to(new st(e));return this.queue((function(){n=n.from(this.element().zoom())}),(function(e){return this.element().zoom(n.at(e),t),n.done()}),(function(e,r){t=r,n.to(e)})),this._rememberMorpher("zoom",n),this},transform(e,t,n){if(t=e.relative||t,this._isDeclarative&&!t&&this._tryRetarget("transform",e))return this;const r=Ne.isMatrixLike(e);n=null!=e.affine?e.affine:null!=n?n:!r;const i=new vn(this._stepper).type(n?yn:Ne);let o,a,s,l,c;function u(){a=a||this.element(),o=o||m(e,a),c=new Ne(t?void 0:a),a._addRunner(this),t||a._clearTransformRunnersBefore(this)}function h(u){t||this.clearTransform();const{x:h,y:f}=new Te(o).transform(a._currentTransform(this));let d=new Ne({...e,origin:[h,f]}),A=this._isDeclarative&&s?s:c;if(n){d=d.decompose(h,f),A=A.decompose(h,f);const e=d.rotate,t=A.rotate,n=[e-360,e,e+360],r=n.map(e=>Math.abs(e-t)),i=Math.min(...r),o=r.indexOf(i);d.rotate=n[o]}t&&(r||(d.rotate=e.rotate||0),this._isDeclarative&&l&&(A.rotate=l)),i.from(A),i.to(d);const p=i.at(u);return l=p.rotate,s=new Ne(p),this.addTransform(s),a._addRunner(this),i.done()}function f(t){(t.origin||"center").toString()!==(e.origin||"center").toString()&&(o=m(t,a)),e={...t,origin:o}}return this.queue(u,h,f,!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(e,t){return this._queueNumber("x",e)},y(e){return this._queueNumber("y",e)},dx(e=0){return this._queueNumberDelta("x",e)},dy(e=0){return this._queueNumberDelta("y",e)},dmove(e,t){return this.dx(e).dy(t)},_queueNumberDelta(e,t){if(t=new st(t),this._tryRetarget(e,t))return this;const n=new vn(this._stepper).to(t);let r=null;return this.queue((function(){r=this.element()[e](),n.from(r),n.to(r+t)}),(function(t){return this.element()[e](n.at(t)),n.done()}),(function(e){n.to(r+new st(e))})),this._rememberMorpher(e,n),this},_queueObject(e,t){if(this._tryRetarget(e,t))return this;const n=new vn(this._stepper).to(t);return this.queue((function(){n.from(this.element()[e]())}),(function(t){return this.element()[e](n.at(t)),n.done()})),this._rememberMorpher(e,n),this},_queueNumber(e,t){return this._queueObject(e,new st(t))},cx(e){return this._queueNumber("cx",e)},cy(e){return this._queueNumber("cy",e)},move(e,t){return this.x(e).y(t)},center(e,t){return this.cx(e).cy(t)},size(e,t){let n;return e&&t||(n=this._element.bbox()),e||(e=n.width/n.height*t),t||(t=n.height/n.width*e),this.width(e).height(t)},width(e){return this._queueNumber("width",e)},height(e){return this._queueNumber("height",e)},plot(e,t,n,r){if(4===arguments.length)return this.plot([e,t,n,r]);if(this._tryRetarget("plot",e))return this;const i=new vn(this._stepper).type(this._element.MorphArray).to(e);return this.queue((function(){i.from(this._element.array())}),(function(e){return this._element.plot(i.at(e)),i.done()})),this._rememberMorpher("plot",i),this},leading(e){return this._queueNumber("leading",e)},viewbox(e,t,n,r){return this._queueObject("viewbox",new Ue(e,t,n,r))},update(e){return"object"!==typeof e?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",e.offset),this)}}),M(Qn,{rx:Ct,ry:kt,from:It,to:Dt}),F(Qn,"Runner");class Wn extends yt{constructor(e,t=e){super(S("svg",e),t),this.namespace()}defs(){return this.isRoot()?T(this.node.querySelector("defs"))||this.put(new wt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof x.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:g,version:"1.1"}).attr("xmlns:xlink",y,b).attr("xmlns:svgjs",w,b):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,b).attr("xmlns:svgjs",null,b)}root(){return this.isRoot()?this:super.root()}}o({Container:{nested:P((function(){return this.put(new Wn)}))}}),F(Wn,"Svg",!0);class Gn extends yt{constructor(e,t=e){super(S("symbol",e),t)}}function Yn(e){return!1===this._build&&this.clear(),this.node.appendChild(x.document.createTextNode(e)),this}function Xn(){return this.node.getComputedTextLength()}function Jn(e,t=this.bbox()){return null==e?t.x:this.attr("x",this.attr("x")+e-t.x)}function Zn(e,t=this.bbox()){return null==e?t.y:this.attr("y",this.attr("y")+e-t.y)}function er(e,t,n=this.bbox()){return this.x(e,n).y(t,n)}function tr(e,t=this.bbox()){return null==e?t.cx:this.attr("x",this.attr("x")+e-t.cx)}function nr(e,t=this.bbox()){return null==e?t.cy:this.attr("y",this.attr("y")+e-t.cy)}function rr(e,t,n=this.bbox()){return this.cx(e,n).cy(t,n)}function ir(e){return this.attr("x",e)}function or(e){return this.attr("y",e)}function ar(e,t){return this.ax(e).ay(t)}function sr(e){return this._build=!!e,this}o({Container:{symbol:P((function(){return this.put(new Gn)}))}}),F(Gn,"Symbol");var lr={__proto__:null,plain:Yn,length:Xn,x:Jn,y:Zn,move:er,cx:tr,cy:nr,center:rr,ax:ir,ay:or,amove:ar,build:sr};class cr extends xt{constructor(e,t=e){super(S("text",e),t),this.dom.leading=new st(1.3),this._rebuild=!0,this._build=!1}leading(e){return null==e?this.dom.leading:(this.dom.leading=new st(e),this.rebuild())}rebuild(e){if("boolean"===typeof e&&(this._rebuild=e),this._rebuild){const e=this;let t=0;const n=this.dom.leading;this.each((function(r){const i=x.window.getComputedStyle(this.node).getPropertyValue("font-size"),o=n*new st(i);this.dom.newLined&&(this.attr("x",e.attr("x")),"\n"===this.text()?t+=o:(this.attr("dy",r?o+t:0),t=0))})),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new st(e.leading||1.3),this}text(e){if(void 0===e){const t=this.node.childNodes;let n=0;e="";for(let r=0,i=t.length;r{let i;try{i=n.bbox()}catch(l){return}const o=new Ne(n),a=o.translate(e,t).transform(o.inverse()),s=new Te(i.x,i.y).transform(a);n.move(s.x,s.y)}),this}function pr(e){return this.dmove(e,0)}function mr(e){return this.dmove(0,e)}function gr(e,t=this.bbox()){return null==e?t.height:this.size(t.width,e,t)}function vr(e=0,t=0,n=this.bbox()){const r=e-n.x,i=t-n.y;return this.dmove(r,i)}function br(e,t,n=this.bbox()){const r=p(this,e,t,n),i=r.width/n.width,o=r.height/n.height;return this.children().forEach((e,t)=>{const r=new Te(n).transform(new Ne(e).inverse());e.scale(i,o,r.x,r.y)}),this}function yr(e,t=this.bbox()){return null==e?t.width:this.size(e,t.height,t)}function wr(e,t=this.bbox()){return null==e?t.x:this.move(e,t.y,t)}function xr(e,t=this.bbox()){return null==e?t.y:this.move(t.x,e,t)}o({Container:{foreignObject:P((function(e,t){return this.put(new dr).size(e,t)}))}}),F(dr,"ForeignObject");var Cr={__proto__:null,dmove:Ar,dx:pr,dy:mr,height:gr,move:vr,size:br,width:yr,x:wr,y:xr};class kr extends yt{constructor(e,t=e){super(S("g",e),t)}}M(kr,Cr),o({Container:{group:P((function(){return this.put(new kr)}))}}),F(kr,"G");class _r extends yt{constructor(e,t=e){super(S("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,y)}}M(_r,Cr),o({Container:{link:P((function(e){return this.put(new _r).to(e)}))},Element:{unlink(){const e=this.linker();if(!e)return this;const t=e.parent();if(!t)return this.remove();const n=t.index(e);return t.add(this,n),e.remove(),this},linkTo(e){let t=this.linker();return t||(t=new _r,this.wrap(t)),"function"===typeof e?e.call(t,t):t.to(e),this},linker(){const e=this.parent();return e&&"a"===e.node.nodeName.toLowerCase()?e:null}}}),F(_r,"A");class Er extends yt{constructor(e,t=e){super(S("mask",e),t)}remove(){return this.targets().forEach((function(e){e.unmask()})),super.remove()}targets(){return Ve('svg [mask*="'+this.id()+'"]')}}o({Container:{mask:P((function(){return this.defs().put(new Er)}))},Element:{masker(){return this.reference("mask")},maskWith(e){const t=e instanceof Er?e:this.parent().mask().add(e);return this.attr("mask",'url("#'+t.id()+'")')},unmask(){return this.attr("mask",null)}}}),F(Er,"Mask");class Br extends ft{constructor(e,t=e){super(S("stop",e),t)}update(e){return("number"===typeof e||e instanceof st)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new st(e.offset)),this}}function Sr(e,t){if(!e)return"";if(!t)return e;let n=e+"{";for(const r in t)n+=d(r)+":"+t[r]+";";return n+="}",n}o({Gradient:{stop:function(e,t,n){return this.put(new Br).update(e,t,n)}}}),F(Br,"Stop");class Tr extends ft{constructor(e,t=e){super(S("style",e),t)}addText(e=""){return this.node.textContent+=e,this}font(e,t,n={}){return this.rule("@font-face",{fontFamily:e,src:t,...n})}rule(e,t){return this.addText(Sr(e,t))}}o("Dom",{style(e,t){return this.put(new Tr).rule(e,t)},fontface(e,t,n){return this.put(new Tr).font(e,t,n)}}),F(Tr,"Style");class Or extends cr{constructor(e,t=e){super(S("textPath",e),t)}array(){const e=this.track();return e?e.array():null}plot(e){const t=this.track();let n=null;return t&&(n=t.plot(e)),null==e?n:this}track(){return this.reference("href")}}o({Container:{textPath:P((function(e,t){return e instanceof cr||(e=this.text(e)),e.path(t)}))},Text:{path:P((function(e,t=!0){const n=new Or;let r;if(e instanceof En||(e=this.defs().path(e)),n.attr("href","#"+e,y),t)while(r=this.node.firstChild)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:P((function(e){return e instanceof cr||(e=(new cr).addTo(this.parent()).text(e)),e.path(this)})),targets(){return Ve("svg textPath").filter(e=>(e.attr("href")||"").includes(this.id()))}}}),Or.prototype.MorphArray=mn,F(Or,"TextPath");class Fr extends xt{constructor(e,t=e){super(S("use",e),t)}use(e,t){return this.attr("href",(t||"")+"#"+e,y)}}o({Container:{use:P((function(e,t){return this.put(new Fr).use(e,t)}))}}),F(Fr,"Use");const Nr=B;M([Wn,Gn,Rt,Ut,Wt],a("viewbox")),M([Kt,In,Ln,En],a("marker")),M(cr,a("Text")),M(En,a("Path")),M(wt,a("Defs")),M([cr,ur],a("Tspan")),M([Dn,Nt,Pt,Qn],a("radius")),M(nt,a("EventTarget")),M(ht,a("Dom")),M(ft,a("Element")),M(xt,a("Shape")),M([yt,Lt],a("Container")),M(Pt,a("Gradient")),M(Qn,a("Runner")),$e.extend(s()),kn([st,Se,Ue,Ne,at,jt,mn,Te]),_n()},"8af8":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"8b1a":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"8bbc":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=132)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},132:function(e,t,n){"use strict";n.r(t);var r,i,o={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},a=o,s=n(0),l=Object(s["a"])(a,r,i,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},"8c4f":function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}n.d(t,"a",(function(){return xt}));var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,o).replace(a,",")};function l(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,n){void 0===t&&(t={});var r,i=n||h;try{r=i(e||"")}catch(s){r={}}for(var o in t){var a=t[o];r[o]=Array.isArray(a)?a.map(u):u(a)}return r}var u=function(e){return null==e||"object"===typeof e?e:String(e)};function h(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=l(n.shift()),i=n.length>0?l(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function f(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(s(t)):r.push(s(t)+"="+s(e)))})),r.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var d=/\/?$/;function A(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=p(o)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:v(t,i),matched:e?g(e):[]};return n&&(a.redirectedFrom=v(n,i)),Object.freeze(a)}function p(e){if(Array.isArray(e))return e.map(p);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=p(e[n]);return t}return e}var m=A(null,{path:"/"});function g(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function v(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||f;return(n||"/")+o(r)+i}function b(e,t,n){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(d,"")===t.path.replace(d,"")&&(n||e.hash===t.hash&&y(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&y(e.query,t.query)&&y(e.params,t.params))))}function y(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var o=e[n],a=r[i];if(a!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?y(o,s):String(o)===String(s)}))}function w(e,t){return 0===e.path.replace(d,"/").indexOf(t.path.replace(d,"/"))&&(!t.hash||e.hash===t.hash)&&x(e.query,t.query)}function x(e,t){for(var n in t)if(!(n in e))return!1;return!0}function C(e){for(var t=0;t=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function T(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var O=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},F=Y,N=P,L=U,I=Q,D=G,M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function P(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=M.exec(e))){var l=n[0],c=n[1],u=n.index;if(a+=e.slice(o,u),o=u+l.length,c)a+=c[1];else{var h=e[o],f=n[2],d=n[3],A=n[4],p=n[5],m=n[6],g=n[7];a&&(r.push(a),a="");var v=null!=f&&null!=h&&h!==f,b="+"===m||"*"===m,y="?"===m||"*"===m,w=n[2]||s,x=A||p;r.push({name:d||i++,prefix:f||"",delimiter:w,optional:y,repeat:b,partial:v,asterisk:!!g,pattern:x?$(x):g?".*":"[^"+H(w)+"]+?"})}}return o1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)C.on=x,C.attrs={href:l,"aria-current":v};else{var _=ae(this.$slots.default);if(_){_.isStatic=!1;var E=_.data=r({},_.data);for(var B in E.on=E.on||{},E.on){var S=E.on[B];B in x&&(E.on[B]=Array.isArray(S)?S:[S])}for(var T in x)T in E.on?E.on[T].push(x[T]):E.on[T]=y;var O=_.data.attrs=r({},_.data.attrs);O.href=l,O["aria-current"]=v}else C.on=x}return e(this.tag,C,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n-1&&(s.params[h]=n.params[h]);return s.path=J(c.path,s.params,'named route "'+l+'"'),f(c,s,a)}if(s.path){s.params={};for(var d=0;d-1}function qe(e,t){return Ve(e)&&e._isRouter&&(null==t||e.type===t)}function Ke(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function We(e){return function(t,n,r){var i=!1,o=0,a=null;Ge(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var l,c=Ze((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,o--,o<=0&&r()})),u=Ze((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=Ve(e)?e:new Error(t),r(a))}));try{l=e(c,u)}catch(f){u(f)}if(l)if("function"===typeof l.then)l.then(c,u);else{var h=l.component;h&&"function"===typeof h.then&&h.then(c,u)}}})),i||r()}}function Ge(e,t){return Ye(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ye(e){return Array.prototype.concat.apply([],e)}var Xe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Xe&&"Module"===e[Symbol.toStringTag]}function Ze(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=Ie&&n;r&&this.listeners.push(xe());var i=function(){var n=e.current,i=ht(e.base);e.current===m&&i===e._startLocation||e.transitionTo(i,(function(e){r&&Ce(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){De(T(r.base+e.fullPath)),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Me(T(r.base+e.fullPath)),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ht(this.base)!==this.current.fullPath){var t=T(this.base+this.current.fullPath);e?De(t):Me(t)}},t.prototype.getCurrentLocation=function(){return ht(this.base)},t}(et);function ht(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(T(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ft=function(e){function t(t,n,r){e.call(this,t,n),r&&dt(this.base)||At()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Ie&&n;r&&this.listeners.push(xe());var i=function(){var t=e.current;At()&&e.transitionTo(pt(),(function(n){r&&Ce(e.router,n,t,!0),Ie||vt(n.fullPath)}))},o=Ie?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){gt(e.fullPath),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){vt(e.fullPath),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;pt()!==t&&(e?gt(t):vt(t))},t.prototype.getCurrentLocation=function(){return pt()},t}(et);function dt(e){var t=ht(e);if(!/^\/#/.test(t))return window.location.replace(T(e+"/#"+t)),!0}function At(){var e=pt();return"/"===e.charAt(0)||(vt("/"+e),!1)}function pt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function mt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function gt(e){Ie?De(mt(e)):window.location.hash=e}function vt(e){Ie?Me(mt(e)):window.location.replace(mt(e))}var bt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){qe(e,Pe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),yt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=de(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ie&&!1!==e.fallback,this.fallback&&(t="hash"),le||(t="abstract"),this.mode=t,t){case"history":this.history=new ut(this,e.base);break;case"hash":this.history=new ft(this,e.base,this.fallback);break;case"abstract":this.history=new bt(this,e.base);break;default:0}},wt={currentRoute:{configurable:!0}};yt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},wt.currentRoute.get=function(){return this.history&&this.history.current},yt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof ut||n instanceof ft){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Ie&&i;o&&"fullPath"in e&&Ce(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},yt.prototype.beforeEach=function(e){return Ct(this.beforeHooks,e)},yt.prototype.beforeResolve=function(e){return Ct(this.resolveHooks,e)},yt.prototype.afterEach=function(e){return Ct(this.afterHooks,e)},yt.prototype.onReady=function(e,t){this.history.onReady(e,t)},yt.prototype.onError=function(e){this.history.onError(e)},yt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},yt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},yt.prototype.go=function(e){this.history.go(e)},yt.prototype.back=function(){this.go(-1)},yt.prototype.forward=function(){this.go(1)},yt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},yt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=Z(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=kt(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},yt.prototype.getRoutes=function(){return this.matcher.getRoutes()},yt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},yt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(yt.prototype,wt);var xt=yt;function Ct(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function kt(e,t,n){var r="hash"===n?"#"+t:t;return e?T(e+"/"+r):r}yt.install=se,yt.version="3.6.5",yt.isNavigationFailure=qe,yt.NavigationFailureType=Pe,yt.START_LOCATION=m,le&&window.Vue&&window.Vue.use(yt)},"8d5c":function(e,t,n){var r=n("8af8");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"8ea1":function(e,t){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:r}},"8eb7":function(e,t){var n,r,i,o,a,s,l,c,u,h,f,d,A,p,m,g=!1;function v(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),A=/\b(iP[ao]d)/.exec(e),h=/Android/i.exec(e),p=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),f=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);s=b?parseFloat(b[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(v){if(v[1]){var y=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!y||parseFloat(y[1].replace("_","."))}else l=!1;c=!!v[2],u=!!v[3]}else l=c=u=!1}}var b={ie:function(){return v()||n},ieCompatibilityMode:function(){return v()||s>n},ie64:function(){return b.ie()&&f},firefox:function(){return v()||r},opera:function(){return v()||i},webkit:function(){return v()||o},safari:function(){return b.webkit()},chrome:function(){return v()||a},windows:function(){return v()||c},osx:function(){return v()||l},linux:function(){return v()||u},iphone:function(){return v()||d},mobile:function(){return v()||d||A||h||m},nativeApp:function(){return v()||p},android:function(){return v()||h},ipad:function(){return v()||A}};e.exports=b},"90d8":function(e,t,n){var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},"90e3":function(e,t,n){var r=n("e330"),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9141:function(e,t,n){var r=n("ef08").document;e.exports=r&&r.documentElement},9152:function(e,t){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ +t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,A=r?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+h>=1?f/l:f*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=A,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=A,a/=256,c-=8);e[n+d-A]|=128*p}},"916c":function(e,t,n){var r=n("424c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"91d2":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r0?i(r(e),9007199254740991):0}},9431:function(e,t,n){var r=n("b257");e.exports=r("navigator","userAgent")||""},9440:function(e,t,n){var r=n("933e");e.exports=function(e){return r(e.length)}},"94ca":function(e,t,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:o=new Array(s-1),a=0;while(a"}function h(e,t,n){if(t.ignoreInstruction)return"";var o;for(o in e)if(e.hasOwnProperty(o))break;var a="instructionNameFn"in t?t.instructionNameFn(o,e[o],i,r):o;if("object"===typeof e[o])return r=e,i=a,"";var s=e[o]?e[o]:"";return"instructionFn"in t&&(s=t.instructionFn(s,o,i,r)),""}function f(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,i,r):e)+"--\x3e"}function d(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function A(e,t){return t.ignoreDoctype?"":""}function p(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,i,r):e)}function m(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n"),e[t.elementsKey]&&e[t.elementsKey].length&&(o.push(v(e[t.elementsKey],t,n+1)),r=e,i=e.name),o.push(t.spaces&&m(e,t)?"\n"+Array(n+1).join(t.spaces):""),o.push("")):o.push("/>"),o.join("")}function v(e,t,n,r){return e.reduce((function(e,i){var o=l(t,n,r&&!e);switch(i.type){case"element":return e+o+g(i,t,n);case"comment":return e+o+f(i[t.commentKey],t);case"doctype":return e+o+A(i[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?o:"")+d(i[t.cdataKey],t);case"text":return e+(t.indentText?o:"")+p(i[t.textKey],t);case"instruction":var a={};return a[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?o:"")+h(a,t,n)}}),"")}function b(e,t,n){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function y(e,t,n,o,a){r=e,i=t;var s="elementNameFn"in n?n.elementNameFn(t,e):t;if("undefined"===typeof e||null===e||""===e)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+s+">":"<"+s+"/>";var u=[];if(t){if(u.push("<"+s),"object"!==typeof e)return u.push(">"+p(e,n)+""),u.join("");e[n.attributesKey]&&u.push(c(e[n.attributesKey],n,o));var h=b(e,n,!0)||e[n.attributesKey]&&"preserve"===e[n.attributesKey]["xml:space"];if(h||(h="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(t,e):n.fullTagEmptyElement),!h)return u.push("/>"),u.join("");u.push(">")}return u.push(w(e,n,o+1,!1)),r=e,i=t,t&&u.push((a?l(n,o,!1):"")+""),u.join("")}function w(e,t,n,r){var i,o,s,c=[];for(o in e)if(e.hasOwnProperty(o))for(s=a(e[o])?e[o]:[e[o]],i=0;i1?t-1:0),a=1;a=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[r];r()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(e){return C.number(e)&&parseInt(e,10)===e},float:function(e){return C.number(e)&&!C.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!C.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function k(e,t,n,r,i){if(e.required&&void 0===t)b(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?C[s](t)||r.push(c(i.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(c(i.messages.types[s],e.fullField,e.type))}}var _=k;function E(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,h=null,f="number"===typeof t,d="string"===typeof t,A=Array.isArray(t);if(f?h="number":d?h="string":A&&(h="array"),!h)return!1;A&&(u=t.length),d&&(u=t.replace(l,"_").length),o?u!==e.len&&r.push(c(i.messages[h].len,e.fullField,e.len)):a&&!s&&ue.max?r.push(c(i.messages[h].max,e.fullField,e.max)):a&&s&&(ue.max)&&r.push(c(i.messages[h].range,e.fullField,e.min,e.max))}var B=E,S="enum";function T(e,t,n,r,i){e[S]=Array.isArray(e[S])?e[S]:[],-1===e[S].indexOf(t)&&r.push(c(i.messages[S],e.fullField,e[S].join(", ")))}var O=T;function F(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var N=F,L={required:b,whitespace:w,type:_,range:B,enum:O,pattern:N};function I(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t,"string")&&!e.required)return n();L.required(e,t,r,o,i,"string"),h(t,"string")||(L.type(e,t,r,o,i),L.range(e,t,r,o,i),L.pattern(e,t,r,o,i),!0===e.whitespace&&L.whitespace(e,t,r,o,i))}n(o)}var D=I;function M(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&L.type(e,t,r,o,i)}n(o)}var P=M;function U(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var R=U;function j(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&L.type(e,t,r,o,i)}n(o)}var Q=j;function H(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),h(t)||L.type(e,t,r,o,i)}n(o)}var $=H;function z(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var V=z;function q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var K=q;function W(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t,"array")&&!e.required)return n();L.required(e,t,r,o,i,"array"),h(t,"array")||(L.type(e,t,r,o,i),L.range(e,t,r,o,i))}n(o)}var G=W;function Y(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),void 0!==t&&L.type(e,t,r,o,i)}n(o)}var X=Y,J="enum";function Z(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();L.required(e,t,r,o,i),t&&L[J](e,t,r,o,i)}n(o)}var ee=Z;function te(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t,"string")&&!e.required)return n();L.required(e,t,r,o,i),h(t,"string")||L.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(h(t)&&!e.required)return n();if(L.required(e,t,r,o,i),!h(t)){var s=void 0;s="number"===typeof t?new Date(t):t,L.type(e,s,r,o,i),s&&L.range(e,s.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);L.required(e,t,r,o,i,s),n(o)}var ae=oe;function se(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(h(t,o)&&!e.required)return n();L.required(e,t,r,a,i,o),h(t,o)||L.type(e,t,r,a,i)}n(a)}var le=se,ce={string:D,method:P,number:R,boolean:Q,regexp:$,integer:V,float:K,array:G,object:X,enum:ee,pattern:ne,date:ie,url:le,hex:le,email:le,required:ae};function ue(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var he=ue();function fe(e){this.rules=null,this._messages=he,this.define(e)}fe.prototype={messages:function(e){return e&&(this._messages=g(ue(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=e,s=n,u=r;if("function"===typeof s&&(u=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===he&&(h=ue()),g(h,s.messages),s.messages=h}else s.messages=this.messages();var f=void 0,d=void 0,A={},v=s.keys||Object.keys(this.rules);v.forEach((function(n){f=t.rules[n],d=o[n],f.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===e&&(o=i()({},o)),d=o[n]=a.transform(d)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(A[n]=A[n]||[],A[n].push({rule:a,value:d,source:o,field:n}))}))}));var b={};p(A,s,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function u(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=a;if(Array.isArray(u)||(u=[u]),u.length&&l("async-validator:",u),u.length&&n.message&&(u=[].concat(n.message)),u=u.map(m(n)),s.first&&u.length)return b[n.field]=1,t(u);if(r){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(m(n)):s.error?[s.error(n,c(s.messages.required,n.field))]:[],t(u);var h={};if(n.defaultField)for(var f in e.value)e.value.hasOwnProperty(f)&&(h[f]=n.defaultField);for(var d in h=i()({},h,e.rule.fields),h)if(h.hasOwnProperty(d)){var A=Array.isArray(h[d])?h[d]:[h[d]];h[d]=A.map(o.bind(null,d))}var p=new fe(h);p.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),p.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var h=n.validator(n,e.value,u,e.source,s);h&&h.then&&h.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){y(e)}))}else u&&u();function y(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;tn)switch(i[o]){case"textNode":O(e);break;case"cdata":T(e,"oncdata",e.cdata),e.cdata="";break;case"script":T(e,"onscript",e.script),e.script="";break;default:N(e,"Max buffer length exceeded: "+i[o])}r=Math.max(r,s)}var l=t.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=l+e.position}function s(e){for(var t=0,n=i.length;t"===e||w(e)}function k(e,t){return e.test(t)}function _(e,t){return!k(e,t)}var E=0;for(var B in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var n=t.ENTITIES[e],r="number"===typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r})),t.STATE)t.STATE[t.STATE[B]]=B;function S(e,t,n){e[t]&&e[t](n)}function T(e,t,n){e.textNode&&O(e),S(e,t,n)}function O(e){e.textNode=F(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function F(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function N(e,t){return O(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function L(e){return e.sawRoot&&!e.closedRoot&&I(e,"Unclosed root tag"),e.state!==E.BEGIN&&e.state!==E.BEGIN_WHITESPACE&&e.state!==E.TEXT&&N(e,"Unexpected end"),O(e),e.c="",e.closed=!0,S(e,"onend"),o.call(e,e.strict,e.opt),e}function I(e,t){if("object"!==typeof e||!(e instanceof o))throw new Error("bad call to strictFail");e.strict&&N(e,t)}function D(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,T(e,"onopentagstart",n)}function M(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),i=r[0],o=r[1];return t&&"xmlns"===e&&(i="xmlns",o=""),{prefix:i,local:o}}function P(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=M(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==A)I(e,"xml: prefix must be bound to "+A+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==p)I(e,"xmlns: prefix must be bound to "+p+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,T(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function U(e,t){if(e.opt.xmlns){var n=e.tag,r=M(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(I(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach((function(t){T(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var o=0,a=e.attribList.length;o",e.tagName="",void(e.state=E.SCRIPT);T(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var i=e.tags[t];if(i.name===r)break;I(e,"Unexpected close tag")}if(t<0)return I(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=E.TEXT);e.tagName=n;var o=e.tags.length;while(o-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,T(e,"onclosetag",e.tagName);var s={};for(var l in a.ns)s[l]=a.ns[l];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach((function(t){var n=a.ns[t];T(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=E.TEXT}function j(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==n?(I(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function Q(e,t){"<"===t?(e.state=E.OPEN_WAKA,e.startTagPosition=e.position):w(t)||(I(e,"Non-whitespace before first tag."),e.textNode=t,e.state=E.TEXT)}function H(e,t){var n="";return t"===r?(T(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=E.TEXT):x(r)?(t.state=E.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case E.SGML_DECL_QUOTED:r===t.q&&(t.state=E.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case E.DOCTYPE:">"===r?(t.state=E.TEXT,T(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=E.DOCTYPE_DTD:x(r)&&(t.state=E.DOCTYPE_QUOTED,t.q=r));continue;case E.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=E.DOCTYPE:x(r)&&(t.state=E.DOCTYPE_DTD_QUOTED,t.q=r);continue;case E.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=E.DOCTYPE_DTD,t.q="");continue;case E.COMMENT:"-"===r?t.state=E.COMMENT_ENDING:t.comment+=r;continue;case E.COMMENT_ENDING:"-"===r?(t.state=E.COMMENT_ENDED,t.comment=F(t.opt,t.comment),t.comment&&T(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==r?(I(t,"Malformed comment"),t.comment+="--"+r,t.state=E.COMMENT):t.state=E.TEXT;continue;case E.CDATA:"]"===r?t.state=E.CDATA_ENDING:t.cdata+=r;continue;case E.CDATA_ENDING:"]"===r?t.state=E.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===r?(t.cdata&&T(t,"oncdata",t.cdata),T(t,"onclosecdata"),t.cdata="",t.state=E.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=E.CDATA);continue;case E.PROC_INST:"?"===r?t.state=E.PROC_INST_ENDING:w(r)?t.state=E.PROC_INST_BODY:t.procInstName+=r;continue;case E.PROC_INST_BODY:if(!t.procInstBody&&w(r))continue;"?"===r?t.state=E.PROC_INST_ENDING:t.procInstBody+=r;continue;case E.PROC_INST_ENDING:">"===r?(T(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=E.TEXT):(t.procInstBody+="?"+r,t.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:k(v,r)?t.tagName+=r:(D(t),">"===r?U(t):"/"===r?t.state=E.OPEN_TAG_SLASH:(w(r)||I(t,"Invalid character in tag name"),t.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===r?(U(t,!0),R(t)):(I(t,"Forward-slash in opening tag not followed by >"),t.state=E.ATTRIB);continue;case E.ATTRIB:if(w(r))continue;">"===r?U(t):"/"===r?t.state=E.OPEN_TAG_SLASH:k(g,r)?(t.attribName=r,t.attribValue="",t.state=E.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===r?t.state=E.ATTRIB_VALUE:">"===r?(I(t,"Attribute without value"),t.attribValue=t.attribName,P(t),U(t)):w(r)?t.state=E.ATTRIB_NAME_SAW_WHITE:k(v,r)?t.attribName+=r:I(t,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=E.ATTRIB_VALUE;else{if(w(r))continue;I(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",T(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?U(t):k(g,r)?(t.attribName=r,t.state=E.ATTRIB_NAME):(I(t,"Invalid attribute name"),t.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(w(r))continue;x(r)?(t.q=r,t.state=E.ATTRIB_VALUE_QUOTED):(I(t,"Unquoted attribute value"),t.state=E.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case E.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=E.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}P(t),t.q="",t.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:w(r)?t.state=E.ATTRIB:">"===r?U(t):"/"===r?t.state=E.OPEN_TAG_SLASH:k(g,r)?(I(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=E.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!C(r)){"&"===r?t.state=E.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}P(t),">"===r?U(t):t.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(t.tagName)">"===r?R(t):k(v,r)?t.tagName+=r:t.script?(t.script+=""===r?R(t):I(t,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var s,l;switch(t.state){case E.TEXT_ENTITY:s=E.TEXT,l="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:s=E.ATTRIB_VALUE_QUOTED,l="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:s=E.ATTRIB_VALUE_UNQUOTED,l="attribValue";break}";"===r?(t[l]+=j(t),t.entity="",t.state=s):k(t.entity.length?y:b,r)?t.entity+=r:(I(t,"Invalid character in entity name"),t[l]+="&"+t.entity+r,t.entity="",t.state=s);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&a(t),t} +/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */E=t.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,i=16384,o=[],a=-1,s=arguments.length;if(!s)return"";var l="";while(++a1114111||t(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?o.push(c):(c-=65536,n=55296+(c>>10),r=c%1024+56320,o.push(n,r)),(a+1===s||o.length>i)&&(l+=e.apply(null,o),o.length=0)}return l};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})(t)}).call(this,n("b639").Buffer)},a925:function(e,t,n){"use strict"; +/*! + * vue-i18n v8.28.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */var r=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],i=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function o(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function a(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}var s=Array.isArray;function l(e){return null!==e&&"object"===typeof e}function c(e){return"boolean"===typeof e}function u(e){return"string"===typeof e}var h=Object.prototype.toString,f="[object Object]";function d(e){return h.call(e)===f}function A(e){return null===e||void 0===e}function p(e){return"function"===typeof e}function m(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,r=null;return 1===e.length?l(e[0])||s(e[0])?r=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(l(e[1])||s(e[1]))&&(r=e[1])),{locale:n,params:r}}function g(e){return JSON.parse(JSON.stringify(e))}function v(e,t){if(e.delete(t))return e}function b(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function y(e,t){return!!~e.indexOf(t)}var w=Object.prototype.hasOwnProperty;function x(e,t){return w.call(e,t)}function C(e){for(var t=arguments,n=Object(e),r=1;r/g,">").replace(/"/g,""").replace(/'/g,"'")}function E(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=_(e[t]))})),e}function B(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}function S(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n)if(e.i18n instanceof Ee){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{},n=e.__i18nBridge||e.__i18n;n.forEach((function(e){t=C(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(l){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(d(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ee?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var i=e.i18n&&e.i18n.messages?e.i18n.messages:{},o=e.__i18nBridge||e.__i18n;o.forEach((function(e){i=C(i,JSON.parse(e))})),e.i18n.messages=i}catch(l){0}var a=e.i18n,s=a.sharedMessages;s&&d(s)&&(e.i18n.messages=C(e.i18n.messages,s)),this._i18n=new Ee(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ee?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Ee&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof Ee||d(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Ee||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Ee)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}var T={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,i=t.props,o=t.slots,a=r.$i18n;if(a){var s=i.path,l=i.locale,c=i.places,u=o(),h=a.i(s,l,O(u)||c?F(u.default,c):u),f=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return f?e(f,n,h):h}}};function O(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}function F(e,t){var n=t?N(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(D);return e.reduce(r?L:I,n)}function N(e){return Array.isArray(e)?e.reduce(I,{}):Object.assign({},e)}function L(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function I(e,t,n){return e[n]=t,e}function D(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var M,P={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,i=t.parent,o=t.data,a=i.$i18n;if(!a)return null;var s=null,c=null;u(n.format)?s=n.format:l(n.format)&&(n.format.key&&(s=n.format.key),c=Object.keys(n.format).reduce((function(e,t){var i;return y(r,t)?Object.assign({},e,(i={},i[t]=n.format[t],i)):e}),null));var h=n.locale||a.locale,f=a._ntp(n.value,h,s,c),d=f.map((function(e,t){var n,r=o.scopedSlots&&o.scopedSlots[e.type];return r?r((n={},n[e.type]=e.value,n.index=t,n.parts=f,n)):e.value})),A=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return A?e(A,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},d):d}};function U(e,t,n){Q(e,n)&&$(e,t,n)}function R(e,t,n,r){if(Q(e,n)){var i=n.context.$i18n;H(e,n)&&k(t.value,t.oldValue)&&k(e._localeMessage,i.getLocaleMessage(i.locale))||$(e,t,n)}}function j(e,t,n,r){var i=n.context;if(i){var a=n.context.$i18n||{};t.modifiers.preserve||a.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else o("Vue instance does not exists in VNode context")}function Q(e,t){var n=t.context;return n?!!n.$i18n||(o("VueI18n instance does not exists in Vue instance"),!1):(o("Vue instance does not exists in VNode context"),!1)}function H(e,t){var n=t.context;return e._locale===n.$i18n.locale}function $(e,t,n){var r,i,a=t.value,s=z(a),l=s.path,c=s.locale,u=s.args,h=s.choice;if(l||c||u)if(l){var f=n.context;e._vt=e.textContent=null!=h?(r=f.$i18n).tc.apply(r,[l,h].concat(V(c,u))):(i=f.$i18n).t.apply(i,[l].concat(V(c,u))),e._locale=f.$i18n.locale,e._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else o("`path` is required in v-t directive");else o("value type not supported")}function z(e){var t,n,r,i;return u(e)?t=e:d(e)&&(t=e.path,n=e.locale,r=e.args,i=e.choice),{path:t,locale:n,args:r,choice:i}}function V(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||d(t))&&n.push(t),n}function q(e,t){void 0===t&&(t={bridge:!1}),q.installed=!0,M=e;M.version&&Number(M.version.split(".")[0]);B(M),M.mixin(S(t.bridge)),M.directive("t",{bind:U,update:R,unbind:j}),M.component(T.name,T),M.component(P.name,P);var n=M.config.optionMergeStrategies;n.i18n=function(e,t){return void 0===t?e:t}}var K=function(){this._caches=Object.create(null)};K.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=Y(e),this._caches[e]=n),X(n,t)};var W=/^(?:\d)+/,G=/^(?:\w)+/;function Y(e){var t=[],n=0,r="";while(n0)h--,u=ae,f[J]();else{if(h=0,void 0===n)return!1;if(n=me(n),!1===n)return!1;f[Z]()}};while(null!==u)if(c++,t=e[c],"\\"!==t||!d()){if(i=pe(t),s=he[u],o=s[i]||s["else"]||ue,o===ue)return;if(u=o[0],a=f[o[1]],a&&(r=o[2],r=void 0===r?t:r,!1===a()))return;if(u===ce)return l}}var ve=function(){this._cache=Object.create(null)};ve.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=ge(e),t&&(this._cache[e]=t)),t||[]},ve.prototype.getPathValue=function(e,t){if(!l(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var r=n.length,i=e,o=0;while(o/,we=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,xe=/^@(?:\.([a-zA-Z]+))?:/,Ce=/[()]/g,ke={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},_e=new K,Ee=function(e){var t=this;void 0===e&&(e={}),!M&&"undefined"!==typeof window&&window.Vue&&q(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),i=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||_e,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new ve,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex){var i=r.getChoiceIndex;return i.call(t,e,n)}var o=function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):o(e,n)},this._exist=function(e,n){return!(!e||!n)&&(!A(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])})),this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:a})},Be={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};Ee.prototype._checkLocaleMessage=function(e,t,n){var r=[],i=function(e,t,n,r){if(d(n))Object.keys(n).forEach((function(o){var a=n[o];d(a)?(r.push(o),r.push("."),i(e,t,a,r),r.pop(),r.pop()):(r.push(o),i(e,t,a,r),r.pop())}));else if(s(n))n.forEach((function(n,o){d(n)?(r.push("["+o+"]"),r.push("."),i(e,t,n,r),r.pop(),r.pop()):(r.push("["+o+"]"),i(e,t,n,r),r.pop())}));else if(u(n)){var l=ye.test(n);if(l){var c="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?o(c):"error"===e&&a(c)}}};i(t,e,n,r)},Ee.prototype._initVM=function(e){var t=M.config.silent;M.config.silent=!0,this._vm=new M({data:e,__VUE18N__INSTANCE__:!0}),M.config.silent=t},Ee.prototype.destroyVM=function(){this._vm.$destroy()},Ee.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},Ee.prototype.unsubscribeDataChanging=function(e){v(this._dataListeners,e)},Ee.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=b(e._dataListeners),n=t.length;while(n--)M.nextTick((function(){t[n]&&t[n].$forceUpdate()}))}),{deep:!0})},Ee.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},Ee.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Be.vm.get=function(){return this._vm},Be.messages.get=function(){return g(this._getMessages())},Be.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},Be.numberFormats.get=function(){return g(this._getNumberFormats())},Be.availableLocales.get=function(){return Object.keys(this.messages).sort()},Be.locale.get=function(){return this._vm.locale},Be.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Be.fallbackLocale.get=function(){return this._vm.fallbackLocale},Be.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Be.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Be.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Be.missing.get=function(){return this._missing},Be.missing.set=function(e){this._missing=e},Be.formatter.get=function(){return this._formatter},Be.formatter.set=function(e){this._formatter=e},Be.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Be.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Be.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Be.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Be.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Be.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Be.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Be.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},Be.postTranslation.get=function(){return this._postTranslation},Be.postTranslation.set=function(e){this._postTranslation=e},Be.sync.get=function(){return this._sync},Be.sync.set=function(e){this._sync=e},Ee.prototype._getMessages=function(){return this._vm.messages},Ee.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Ee.prototype._getNumberFormats=function(){return this._vm.numberFormats},Ee.prototype._warnDefault=function(e,t,n,r,i,o){if(!A(n))return n;if(this._missing){var a=this._missing.apply(null,[e,t,r,i]);if(u(a))return a}else 0;if(this._formatFallbackMessages){var s=m.apply(void 0,i);return this._render(t,o,s.params,t)}return t},Ee.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:A(e))&&!A(this._root)&&this._fallbackRoot},Ee.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},Ee.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},Ee.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},Ee.prototype._interpolate=function(e,t,n,r,i,o,a){if(!t)return null;var l,c=this._path.getPathValue(t,n);if(s(c)||d(c))return c;if(A(c)){if(!d(t))return null;if(l=t[n],!u(l)&&!p(l))return null}else{if(!u(c)&&!p(c))return null;l=c}return u(l)&&(l.indexOf("@:")>=0||l.indexOf("@.")>=0)&&(l=this._link(e,t,l,r,"raw",o,a)),this._render(l,i,o,n)},Ee.prototype._link=function(e,t,n,r,i,o,a){var l=n,c=l.match(we);for(var u in c)if(c.hasOwnProperty(u)){var h=c[u],f=h.match(xe),d=f[0],A=f[1],p=h.replace(d,"").replace(Ce,"");if(y(a,p))return l;a.push(p);var m=this._interpolate(e,t,p,r,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;m=g._translate(g._getMessages(),g.locale,g.fallbackLocale,p,r,i,o)}m=this._warnDefault(e,p,m,r,s(o)?o:[o],i),this._modifiers.hasOwnProperty(A)?m=this._modifiers[A](m):ke.hasOwnProperty(A)&&(m=ke[A](m)),a.pop(),l=m?l.replace(h,m):l}return l},Ee.prototype._createMessageContext=function(e,t,n,r){var i=this,o=s(e)?e:[],a=l(e)?e:{},c=function(e){return o[e]},u=function(e){return a[e]},h=this._getMessages(),f=this.locale;return{list:c,named:u,values:e,formatter:t,path:n,messages:h,locale:f,linked:function(e){return i._interpolate(f,h[f]||{},e,null,r,void 0,[e])}}},Ee.prototype._render=function(e,t,n,r){if(p(e))return e(this._createMessageContext(n,this._formatter||_e,r,t));var i=this._formatter.interpolate(e,n,r);return i||(i=_e.interpolate(e,n,r)),"string"!==t||u(i)?i:i.join("")},Ee.prototype._appendItemToChain=function(e,t,n){var r=!1;return y(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},Ee.prototype._appendLocaleToChain=function(e,t,n){var r,i=t.split("-");do{var o=i.join("-");r=this._appendItemToChain(e,o,n),i.splice(-1,1)}while(i.length&&!0===r);return r},Ee.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i0)o[a]=arguments[a+4];if(!e)return"";var s=m.apply(void 0,o);this._escapeParameterHtml&&(s.params=E(s.params));var l=s.locale||t,c=this._translate(n,l,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(o))}return c=this._warnDefault(l,e,c,r,o,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,e)),c},Ee.prototype.t=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},Ee.prototype._i=function(e,t,n,r,i){var o=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}return this._warnDefault(t,e,o,r,[i],"raw")},Ee.prototype.i=function(e,t,n){return e?(u(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},Ee.prototype._tc=function(e,t,n,r,i){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];if(!e)return"";void 0===i&&(i=1);var l={count:i,n:i},c=m.apply(void 0,a);return c.params=Object.assign(l,c.params),a=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((o=this)._t.apply(o,[e,t,n,r].concat(a)),i)},Ee.prototype.fetchChoice=function(e,t){if(!e||!u(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},Ee.prototype.tc=function(e,t){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},Ee.prototype._te=function(e,t,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var o=m.apply(void 0,r).locale||t;return this._exist(n[o],e)},Ee.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},Ee.prototype.getLocaleMessage=function(e){return g(this._vm.messages[e]||{})},Ee.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},Ee.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,C("undefined"!==typeof this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},Ee.prototype.getDateTimeFormat=function(e){return g(this._vm.dateTimeFormats[e]||{})},Ee.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},Ee.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,C(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},Ee.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Ee.prototype._localizeDateTime=function(e,t,n,r,i,o){for(var a=t,s=r[a],l=this._getLocaleChain(t,n),c=0;c0)t[n]=arguments[n+1];var r=this.locale,o=null,a=null;return 1===t.length?(u(t[0])?o=t[0]:l(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)),a=Object.keys(t[0]).reduce((function(e,n){var r;return y(i,n)?Object.assign({},e,(r={},r[n]=t[0][n],r)):e}),null)):2===t.length&&(u(t[0])&&(o=t[0]),u(t[1])&&(r=t[1])),this._d(e,r,o,a)},Ee.prototype.getNumberFormat=function(e){return g(this._vm.numberFormats[e]||{})},Ee.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},Ee.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,C(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},Ee.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Ee.prototype._getNumberFormatter=function(e,t,n,r,i,o){for(var a=t,s=r[a],l=this._getLocaleChain(t,n),c=0;c0)t[n]=arguments[n+1];var i=this.locale,o=null,a=null;return 1===t.length?u(t[0])?o=t[0]:l(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(o=t[0].key),a=Object.keys(t[0]).reduce((function(e,n){var i;return y(r,n)?Object.assign({},e,(i={},i[n]=t[0][n],i)):e}),null)):2===t.length&&(u(t[0])&&(o=t[0]),u(t[1])&&(i=t[1])),this._n(e,i,o,a)},Ee.prototype._ntp=function(e,t,n,r){if(!Ee.availabilities.numberFormat)return[];if(!n){var i=r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t);return i.formatToParts(e)}var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),a=o&&o.formatToParts(e);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return a||[]},Object.defineProperties(Ee.prototype,Be),Object.defineProperty(Ee,"availabilities",{get:function(){if(!be){var e="undefined"!==typeof Intl;be={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return be}}),Ee.install=q,Ee.version="8.28.2",t["a"]=Ee},ab36:function(e,t,n){var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ac5f:function(e,t,n){var r=n("cc50"),i=n("8300"),o=n("8109"),a=n("9440"),s=TypeError,l=function(e){return function(t,n,l,c){r(n);var u=i(t),h=o(u),f=a(u),d=e?f-1:0,A=e?-1:1;if(l<2)while(1){if(d in h){c=h[d],d+=A;break}if(d+=A,e?d<0:f<=d)throw s("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=A)d in h&&(c=n(c,h[d],d,u));return c}};e.exports={left:l(!1),right:l(!0)}},acc5:function(e,t,n){var r=n("8d5c"),i=n("8af8"),o=n("b957");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ad71:function(e,t,n){"use strict";(function(t,r){var i=n("966d");e.exports=x;var o,a=n("e3db");x.ReadableState=w;n("faa1").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n("429b"),c=n("8707").Buffer,u=t.Uint8Array||function(){};function h(e){return c.from(e)}function f(e){return c.isBuffer(e)||e instanceof u}var d=Object.create(n("3a7c"));d.inherits=n("3fb5");var A=n(1),p=void 0;p=A&&A.debuglog?A.debuglog("stream"):function(){};var m,g=n("5e1a"),v=n("4681");d.inherits(x,l);var b=["error","close","destroy","pause","resume"];function y(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function w(e,t){o=o||n("b19a"),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=n("7d72").StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function x(e){if(o=o||n("b19a"),!(this instanceof x))return new x(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function C(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,O(e,a)):(i||(o=_(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=h(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):k(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?k(e,a,t,!1):L(e,a)):k(e,a,t,!1))):r||(a.reading=!1));return E(a)}function k(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&F(e)),L(e,t)}function _(e,t){var n;return f(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function E(e){return!e.ended&&(e.needReadable||e.length=B?e=B:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=S(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,F(e)}}function F(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(N,e):N(e))}function N(e){p("emit readable"),e.emit("readable"),R(e)}function L(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=Q(e,t.buffer,t.decoder),n);var n}function Q(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function $(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,0===e){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function z(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(V,t,e))}function V(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function q(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?z(this):F(this),null;if(e=T(e,t),0===e&&t.ended)return 0===t.length&&z(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e0?j(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&z(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,l=a?u:w;function c(e,t){p("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){p("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var h=D(n);e.on("drain",h);var f=!1;function d(){p("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",h),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",w),n.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h()}var A=!1;function m(t){p("ondata"),A=!1;var r=e.write(t);!1!==r||A||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!f&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,A=!0),n.pause())}function g(t){p("onerror",t),w(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),w()}function b(){p("onfinish"),e.removeListener("close",v),w()}function w(){p("unpipe"),n.unpipe(e)}return n.on("data",m),y(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;or)throw n("Maximum allowed index exceeded");return e}},afc0:function(e,t,n){var r=n("8af8"),i=n("5e8c"),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},b19a:function(e,t,n){"use strict";var r=n("966d"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=h;var o=Object.create(n("3a7c"));o.inherits=n("3fb5");var a=n("ad71"),s=n("dc14");o.inherits(h,a);for(var l=i(s.prototype),c=0;c0?r:n)(t)}},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),c=i("wks"),u=r.Symbol,h=u&&u["for"],f=l?u:u&&u.withoutSetter||a;e.exports=function(e){if(!o(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&o(u,e)?c[e]=u[e]:c[e]=l&&h?h(t):f(t)}return c[e]}},b636:function(e,t){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:r}},b639:function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function y(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return F(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return I(r)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return f(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),h=0;hi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return B(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Q(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function $(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,r,o){return o||$(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||$(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Q(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Q(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Q(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Q(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Z(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b671:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},b7ba:function(e,t,n){var r=n("10ad"),i=n("fb24"),o=n("9826"),a=n("eec5");e.exports={xml2js:r,xml2json:i,js2xml:o,json2xml:a}},b7d1:function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b895:function(e,t,n){var r=n("46ab"),i=n("4d80"),o=n("44c7"),a=n("0965").indexOf,s=n("6797"),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);while(t.length>c)i(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},b923:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return fe})),n.d(t,"f",(function(){return $})),n.d(t,"g",(function(){return Q})),n.d(t,"h",(function(){return W})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return V})),n.d(t,"k",(function(){return F})),n.d(t,"l",(function(){return G}));var r=n("6f27");const i=65535,o=Math.pow(2,16);function a(e,t){return e+t*o}function s(e){return e&i}function l(e){return(e-(e&i))/o}const c=1,u=2,h=4,f=8;class d{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&f)>0}get deletedBefore(){return(this.delInfo&(c|h))>0}get deletedAfter(){return(this.delInfo&(u|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class A{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&A.empty)return A.empty}recover(e){let t=0,n=s(e);if(!this.inverted)for(let r=0;re)break;let A=this.ranges[s+i],p=this.ranges[s+o],m=l+A;if(e<=m){let i=A?e==l?-1:e==m?1:t:t,o=l+r+(i<0?0:p);if(n)return o;let g=e==(t<0?l:m)?null:a(s/3,e-l),v=e==l?u:e==m?c:h;return(t<0?e!=l:e!=m)&&(v|=f),new d(o,v,g)}r+=p-A}return n?e+r:new d(e+r,0,null)}touches(e,t){let n=0,r=s(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;ae)break;let s=this.ranges[a+i],l=t+s;if(e<=l&&a==3*r)return!0;n+=this.ranges[a+o]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new p;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;ni&&te.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,o)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new y(t.pos,n.pos,this.mark)}merge(e){return e instanceof y&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new y(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new y(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("addMark",y);class w extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r["Slice"](b(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,n)}invert(){return new y(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new w(t.pos,n.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("removeMark",w);class x extends g{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return v.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return v.fromReplace(e,this.pos,this.pos+1,new r["Slice"](r["Fragment"].from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;nn.pos?null:new _(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new _(t.from,t.to,t.gapFrom,t.gapTo,r["Slice"].fromJSON(e,t.slice),t.insert,!!t.structure)}}function E(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;while(i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));while(i>0){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function B(e,t,n,r){let i,o,a=[],s=[];e.doc.nodesBetween(t,n,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),h=Math.min(l+e.nodeSize,n),f=r.addToSet(u);for(let e=0;ee.step(t)),s.forEach(t=>e.step(t))}function S(e,t,n,i){let o=[],a=0;e.doc.nodesBetween(t,n,(e,s)=>{if(!e.isInline)return;a++;let l=null;if(i instanceof r["MarkType"]){let t,n=e.marks;while(t=i.isInSet(n))(l||(l=[])).push(t),n=t.removeFromSet(n)}else i?i.isInSet(e.marks)&&(l=[i]):l=e.marks;if(l&&l.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;ee.step(new w(t.from,t.to,t.style)))}function T(e,t,n,i=n.contentMatch){let o=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l=0;r--)e.step(a[r])}function O(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function F(e){let t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let t=e.$from.node(r),i=e.$from.index(r),o=e.$to.indexAfter(r);if(rn;p--)m||i.index(p)>0?(m=!0,h=r["Fragment"].from(i.node(p).copy(h)),f++):c--;let d=r["Fragment"].empty,A=0;for(let p=a,m=!1;p>n;p--)m||o.after(p+1)=0;s--){if(i.size){let e=n[s].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r["Fragment"].from(n[s].type.create(n[s].attrs,i))}let o=t.start,a=t.end;e.step(new _(o,a,o,a,new r["Slice"](i,0,0),n.length,!0))}function U(e,t,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{if(t.isTextblock&&!t.hasMarkup(i,o)&&R(e.doc,e.mapping.slice(a).map(n),i)){e.clearIncompatible(e.mapping.slice(a).map(n,1),i);let s=e.mapping.slice(a),l=s.map(n,1),c=s.map(n+t.nodeSize,1);return e.step(new _(l,c,l+1,c-1,new r["Slice"](r["Fragment"].from(i.create(o,null,t.marks)),0,0),1,!0)),!1}})}function R(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function j(e,t,n,i,o){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(i,null,o||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new _(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new r["Slice"](r["Fragment"].from(s),0,0),1,!0))}function Q(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let e=i.node(c),t=i.index(c);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),o=r&&r[u]||e;if(o!=e&&(n=n.replaceChild(0,o.type.create(o.attrs))),!e.canReplace(t+1,e.childCount)||!o.type.validContent(n))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function H(e,t,n=1,i){let o=e.doc.resolve(t),a=r["Fragment"].empty,s=r["Fragment"].empty;for(let l=o.depth,c=o.depth-n,u=n-1;l>c;l--,u--){a=r["Fragment"].from(o.node(l).copy(a));let e=i&&i[u];s=r["Fragment"].from(e?e.type.create(e.attrs,s):o.node(l).copy(s))}e.step(new k(t,t,new r["Slice"](a.append(s),n,n),!0))}function $(e,t){let n=e.resolve(t),r=n.index();return z(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function z(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function V(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let e,o,a=r.index(i);if(i==r.depth?(e=r.nodeBefore,o=r.nodeAfter):n>0?(e=r.node(i+1),a++,o=r.node(i).maybeChild(a)):(e=r.node(i).maybeChild(a-1),o=r.node(i+1)),e&&!e.isTextblock&&z(e,o)&&r.node(i).canReplace(a,a+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function q(e,t,n){let i=new k(t-n,t+n,r["Slice"].empty,!0);e.step(i)}function K(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let i=r.depth-1;i>=0;i--){let e=r.index(i);if(r.node(i).canReplaceWith(e,e,n))return r.before(i+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let e=r.indexAfter(i);if(r.node(i).canReplaceWith(e,e,n))return r.after(i+1);if(e=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),a=r.node(e),s=!1;if(1==o)s=a.canReplace(n,n,i);else{let e=a.contentMatchAt(n).findWrapping(i.firstChild.type);s=e&&a.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function G(e,t,n=t,i=r["Slice"].empty){if(t==n&&!i.size)return null;let o=e.resolve(t),a=e.resolve(n);return Y(o,a,i)?new k(t,n,i):new X(o,a,i).fit()}function Y(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}g.jsonID("replaceAround",_);class X{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r["Fragment"].empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let i=e.depth;i>0;i--)this.placed=r["Fragment"].from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){while(this.unplaced.size){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,a=n.depth,s=i.depth;while(a&&s&&1==o.childCount)o=o.firstChild.content,a--,s--;let l=new r["Slice"](o,a,s);return e>-1?new _(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new k(n.pos,i.pos,l):null}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let n,i=null;t?(i=ee(this.unplaced.content,t-1).firstChild,n=i.content):n=this.unplaced.content;let o=n.firstChild;for(let a=this.depth;a>=0;a--){let n,{type:s,match:l}=this.frontier[a],c=null;if(1==e&&(o?l.matchType(o.type)||(c=l.fillBefore(r["Fragment"].from(o),!1)):i&&s.compatibleContent(i.type)))return{sliceDepth:t,frontierDepth:a,parent:i,inject:c};if(2==e&&o&&(n=l.findWrapping(o.type)))return{sliceDepth:t,frontierDepth:a,parent:i,wrap:n};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=ee(e,t);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new r["Slice"](e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=ee(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r["Slice"](J(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r["Slice"](J(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){while(this.depth>t)this.closeFrontierNode();if(o)for(let r=0;r1||0==l||e.content.size)&&(h=t,u.push(te(e.mark(f.allowedMarks(e.marks)),1==c?l:0,c==s.childCount?d:-1)))}let A=c==s.childCount;A||(d=-1),this.placed=Z(this.placed,t,r["Fragment"].from(u)),this.frontier[t].match=h,A&&d<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,p=s;r1&&r==this.$to.end(--n))++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t=0;n--){let{match:t,type:r}=this.frontier[n],i=ne(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=Z(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Z(this.placed,this.depth,r["Fragment"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop(),t=e.match.fillBefore(r["Fragment"].empty,!0);t.childCount&&(this.placed=Z(this.placed,this.frontier.length,t))}}function J(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(J(e.firstChild.content,t-1,n)))}function Z(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Z(e.lastChild.content,t-1,n)))}function ee(e,t){for(let n=0;n1&&(i=i.replaceChild(0,te(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(r["Fragment"].empty,!0)))),e.copy(i)}function ne(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!re(n,o.content,a)?s:null}function re(e,t,n){for(let r=n;r0;r--,d--){let e=o.node(r).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;s.indexOf(r)>-1?l=r:o.before(r)==d&&s.splice(1,0,-r)}let c=s.indexOf(l),u=[],h=i.openStart;for(let r=i.content,d=0;;d++){let e=r.firstChild;if(u.push(e),d==i.openStart)break;r=e.content}for(let r=h-1;r>=0;r--){let e=u[r].type,t=ie(e);if(t&&o.node(c).type!=e)h=r;else if(t||!e.isTextblock)break}for(let d=i.openStart;d>=0;d--){let t=(d+h+1)%(i.openStart+1),l=u[t];if(l)for(let u=0;u=0;r--){if(e.replace(t,n,i),e.steps.length>f)break;let l=s[r];l<0||(t=o.before(l),n=a.after(l))}}function ae(e,t,n,i,o){if(ti){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r["Fragment"].empty,!0))}return e}function se(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=K(e.doc,t,i.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r["Slice"](r["Fragment"].from(i),0,0))}function le(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=ce(r,i);for(let a=0;a0&&(n||r.node(t-1).canReplace(r.index(t-1),i.indexAfter(t-1))))return e.delete(r.before(t),i.after(t))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a)return e.delete(r.before(a),n);e.delete(t,n)}function ce(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(rt.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class ue extends g{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return v.fail("No node at attribute step's position");let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return v.fromReplace(e,this.pos,this.pos+1,new r["Slice"](r["Fragment"].from(i),0,t.isLeaf?0:1))}getMap(){return A.empty}invert(e){return new ue(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ue(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new ue(t.pos,t.attr,t.value)}}g.jsonID("attr",ue);let he=class extends Error{};he=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},he.prototype=Object.create(Error.prototype),he.prototype.constructor=he,he.prototype.name="TransformError";class fe{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new p}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new he(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r["Slice"].empty){let i=G(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r["Slice"](r["Fragment"].from(n),0,0))}delete(e,t){return this.replace(e,t,r["Slice"].empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return oe(this,e,t,n),this}replaceRangeWith(e,t,n){return se(this,e,t,n),this}deleteRange(e,t){return le(this,e,t),this}lift(e,t){return N(this,e,t),this}join(e,t=1){return q(this,e,t),this}wrap(e,t){return P(this,e,t),this}setBlockType(e,t=e,n,r=null){return U(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r=[]){return j(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new ue(e,t,n)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){if(!(t instanceof r["Mark"])){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t=t.isInSet(n.marks),!t)return this}return this.step(new C(e,t)),this}split(e,t=1,n){return H(this,e,t,n),this}addMark(e,t,n){return B(this,e,t,n),this}removeMark(e,t,n){return S(this,e,t,n),this}clearIncompatible(e,t,n){return T(this,e,t,n),this}}},b957:function(e,t,n){var r=n("1a89"),i=n("feb8"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},b980:function(e,t,n){var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},ba01:function(e,t,n){e.exports=n("051b")},bac8:function(e,t,n){var r=n("b257"),i=n("46ab"),o=n("51a6"),a=n("8515"),s=n("cf4b"),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},bbea:function(e,t,n){var r=n("46ab"),i=n("cf4b"),o=n("77be");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},c04e:function(e,t,n){var r=n("c65b"),i=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c098:function(e,t,n){e.exports=n("d4af")},c284:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=104)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},104:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px",backgroundColor:e.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:e.textColor}},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:e.defineBackColor,"stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px",color:e.textColor}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},i=[];r._withStripped=!0;var o={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;ne)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},a=o,s=n(0),l=Object(s["a"])(a,r,i,!1,null,null,null);l.options.__file="packages/progress/src/progress.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},c2ae:function(e,t,n){e.exports=n("e372").PassThrough},c430:function(e,t){e.exports=!1},c444:function(e,t,n){ +/*! + * html2canvas 1.4.1 + * Copyright (c) 2022 Niklas von Hertzen + * Released under MIT License + */ +(function(t,n){e.exports=n()})(0,(function(){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=55296&&i<=56319&&n>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"===typeof Uint8Array?[]:new Uint8Array(256),d=0;d>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c},v=function(e){for(var t=e.length,n=[],r=0;r>y,_=1<>y,S=k+B,T=S,O=32,F=T+O,N=65536>>w,L=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>y],t=(t<>y)],t=(t<>w),t=this.index[t],t+=e>>y&I,t=this.index[t],t=(t<$?(i.push(!0),a-=$):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(ie);if(a===K||a===Z){if(0===o)return r.push(o),n.push(ve);var s=n[o-1];return-1===Qe.indexOf(s)?(r.push(r[o-1]),n.push(s)):(r.push(o),n.push(ve))}return r.push(o),a===be?n.push("strict"===t?ce:_e):a===Oe||a===ge?n.push(ve):a===Fe?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(_e):n.push(ve):void n.push(a)})),[r,n,i]},Ve=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i){var o=n;while(o<=r.length){o++;var a=r[o];if(a===t)return!0;if(a!==J)break}}if(i===J){o=n;while(o>0){o--;var s=r[o];if(Array.isArray(e)?-1!==e.indexOf(s):e===s){var l=n;while(l<=r.length){l++;a=r[l];if(a===t)return!0;if(a!==J)break}}if(s!==J)break}}return!1},qe=function(e,t){var n=e;while(n>=0){var r=t[n];if(r!==J)return r;n--}return 0},Ke=function(e,t,n,r,i){if(0===n[r])return Ie;var o=r-1;if(Array.isArray(i)&&!0===i[o])return Ie;var a=o-1,s=o+1,l=t[o],c=a>=0?t[a]:0,u=t[s];if(l===V&&u===q)return Ie;if(-1!==Ue.indexOf(l))return Le;if(-1!==Ue.indexOf(u))return Ie;if(-1!==Re.indexOf(u))return Ie;if(qe(o,t)===Y)return De;if(Me.get(e[o])===Z)return Ie;if((l===ye||l===we)&&Me.get(e[s])===Z)return Ie;if(l===G||u===G)return Ie;if(l===X)return Ie;if(-1===[J,te,re].indexOf(l)&&u===X)return Ie;if(-1!==[oe,ae,se,fe,me].indexOf(u))return Ie;if(qe(o,t)===ue)return Ie;if(Ve(he,ue,o,t))return Ie;if(Ve([oe,ae],ce,o,t))return Ie;if(Ve(ee,ee,o,t))return Ie;if(l===J)return De;if(l===he||u===he)return Ie;if(u===ie||l===ie)return De;if(-1!==[te,re,ce].indexOf(u)||l===ne)return Ie;if(c===ke&&-1!==$e.indexOf(l))return Ie;if(l===me&&u===ke)return Ie;if(u===le)return Ie;if(-1!==Pe.indexOf(u)&&l===de||-1!==Pe.indexOf(l)&&u===de)return Ie;if(l===pe&&-1!==[_e,ye,we].indexOf(u)||-1!==[_e,ye,we].indexOf(l)&&u===Ae)return Ie;if(-1!==Pe.indexOf(l)&&-1!==je.indexOf(u)||-1!==je.indexOf(l)&&-1!==Pe.indexOf(u))return Ie;if(-1!==[pe,Ae].indexOf(l)&&(u===de||-1!==[ue,re].indexOf(u)&&t[s+1]===de)||-1!==[ue,re].indexOf(l)&&u===de||l===de&&-1!==[de,me,fe].indexOf(u))return Ie;if(-1!==[de,me,fe,oe,ae].indexOf(u)){var h=o;while(h>=0){var f=t[h];if(f===de)return Ie;if(-1===[me,fe].indexOf(f))break;h--}}if(-1!==[pe,Ae].indexOf(u)){h=-1!==[oe,ae].indexOf(l)?a:o;while(h>=0){f=t[h];if(f===de)return Ie;if(-1===[me,fe].indexOf(f))break;h--}}if(Ee===l&&-1!==[Ee,Be,xe,Ce].indexOf(u)||-1!==[Be,xe].indexOf(l)&&-1!==[Be,Se].indexOf(u)||-1!==[Se,Ce].indexOf(l)&&u===Se)return Ie;if(-1!==He.indexOf(l)&&-1!==[le,Ae].indexOf(u)||-1!==He.indexOf(u)&&l===pe)return Ie;if(-1!==Pe.indexOf(l)&&-1!==Pe.indexOf(u))return Ie;if(l===fe&&-1!==Pe.indexOf(u))return Ie;if(-1!==Pe.concat(de).indexOf(l)&&u===ue&&-1===Ne.indexOf(e[s])||-1!==Pe.concat(de).indexOf(u)&&l===ae)return Ie;if(l===Te&&u===Te){var d=n[o],A=1;while(d>0){if(d--,t[d]!==Te)break;A++}if(A%2!==0)return Ie}return l===ye&&u===we?Ie:De},We=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=ze(e,t.lineBreak),r=n[0],i=n[1],o=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map((function(e){return-1!==[de,ve,Oe].indexOf(e)?_e:e})));var a="keep-all"===t.wordBreak?o.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[r,i,a]},Ge=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===Le,this.start=n,this.end=r}return e.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ye=function(e,t){var n=c(e),r=We(n,t),i=r[0],o=r[1],a=r[2],s=n.length,l=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};var e=Ie;while(u=$t&&e<=57},tn=function(e){return e>=55296&&e<=57343},nn=function(e){return en(e)||e>=Gt&&e<=Xt||e>=zt&&e<=qt},rn=function(e){return e>=zt&&e<=Wt},on=function(e){return e>=Gt&&e<=Zt},an=function(e){return rn(e)||on(e)},sn=function(e){return e>=St},ln=function(e){return e===tt||e===it||e===ot},cn=function(e){return an(e)||sn(e)||e===At},un=function(e){return cn(e)||en(e)||e===pt},hn=function(e){return e>=Mt&&e<=Pt||e===Ut||e>=Rt&&e<=jt||e===Qt},fn=function(e,t){return e===rt&&t!==tt},dn=function(e,t,n){return e===pt?cn(t)||fn(t,n):!!cn(e)||!(e!==rt||!fn(e,t))},An=function(e,t,n){return e===Ft||e===pt?!!en(t)||t===Dt&&en(n):en(e===Dt?t:e)},pn=function(e){var t=0,n=1;e[t]!==Ft&&e[t]!==pt||(e[t]===pt&&(n=-1),t++);var r=[];while(en(e[t]))r.push(e[t++]);var i=r.length?parseInt(u.apply(void 0,r),10):0;e[t]===Dt&&t++;var o=[];while(en(e[t]))o.push(e[t++]);var a=o.length,s=a?parseInt(u.apply(void 0,o),10):0;e[t]!==Yt&&e[t]!==Vt||t++;var l=1;e[t]!==Ft&&e[t]!==pt||(e[t]===pt&&(l=-1),t++);var c=[];while(en(e[t]))c.push(e[t++]);var h=c.length?parseInt(u.apply(void 0,c),10):0;return n*(i+s*Math.pow(10,-a))*Math.pow(10,l*h)},mn={type:2},gn={type:3},vn={type:4},bn={type:13},yn={type:8},wn={type:21},xn={type:9},Cn={type:10},kn={type:11},_n={type:12},En={type:14},Bn={type:23},Sn={type:1},Tn={type:25},On={type:24},Fn={type:26},Nn={type:27},Ln={type:28},In={type:29},Dn={type:31},Mn={type:32},Pn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(c(e))},e.prototype.read=function(){var e=[],t=this.consumeToken();while(t!==Mn)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case at:return this.consumeStringToken(at);case lt:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(un(t)||fn(n,r)){var i=dn(t,n,r)?Je:Xe,o=this.consumeName();return{type:5,value:o,flags:i}}break;case ct:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),bn;break;case ht:return this.consumeStringToken(ht);case ft:return mn;case dt:return gn;case Ot:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),En;break;case Ft:if(An(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Nt:return vn;case pt:var a=e,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(An(a,s,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(dn(a,s,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===pt&&l===vt)return this.consumeCodePoint(),this.consumeCodePoint(),On;break;case Dt:if(An(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case nt:if(this.peekCodePoint(0)===Ot){this.consumeCodePoint();while(1){var c=this.consumeCodePoint();if(c===Ot&&(c=this.consumeCodePoint(),c===nt))return this.consumeToken();if(c===Ht)return this.consumeToken()}}break;case Lt:return Fn;case It:return Nn;case gt:if(this.peekCodePoint(0)===mt&&this.peekCodePoint(1)===pt&&this.peekCodePoint(2)===pt)return this.consumeCodePoint(),this.consumeCodePoint(),Tn;break;case bt:var h=this.peekCodePoint(0),f=this.peekCodePoint(1),d=this.peekCodePoint(2);if(dn(h,f,d)){o=this.consumeName();return{type:7,value:o}}break;case yt:return Ln;case rt:if(fn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case wt:return In;case xt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),yn;break;case Ct:return kn;case _t:return _n;case Kt:case Jt:var A=this.peekCodePoint(0),p=this.peekCodePoint(1);return A!==Ft||!nn(p)&&p!==kt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Et:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),xn;if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),wn;break;case Bt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),Cn;break;case Ht:return Mn}return ln(e)?(this.consumeWhiteSpace(),Dn):en(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):cn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:u(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){var e=[],t=this.consumeCodePoint();while(nn(t)&&e.length<6)e.push(t),t=this.consumeCodePoint();var n=!1;while(t===kt&&e.length<6)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(u.apply(void 0,e.map((function(e){return e===kt?$t:e}))),16),i=parseInt(u.apply(void 0,e.map((function(e){return e===kt?Xt:e}))),16);return{type:30,start:r,end:i}}var o=parseInt(u.apply(void 0,e),16);if(this.peekCodePoint(0)===pt&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var a=[];while(nn(t)&&a.length<6)a.push(t),t=this.consumeCodePoint();i=parseInt(u.apply(void 0,a),16);return{type:30,start:o,end:i}}return{type:30,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===ft?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ft?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ht)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===ht||t===at){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ht||this.peekCodePoint(0)===dt)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Bn)}while(1){var r=this.consumeCodePoint();if(r===Ht||r===dt)return{type:22,value:u.apply(void 0,e)};if(ln(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ht||this.peekCodePoint(0)===dt?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Bn);if(r===at||r===ht||r===ft||hn(r))return this.consumeBadUrlRemnants(),Bn;if(r===rt){if(!fn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Bn;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){while(ln(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===dt||e===Ht)return;fn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){var t=5e4,n="";while(e>0){var r=Math.min(t,e);n+=u.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){var t="",n=0;do{var r=this._value[n];if(r===Ht||void 0===r||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===tt)return this._value.splice(0,n),Sn;if(r===rt){var i=this._value[n+1];i!==Ht&&void 0!==i&&(i===tt?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):fn(r,i)&&(t+=this.consumeStringSlice(n),t+=u(this.consumeEscapedCodePoint()),n=-1))}n++}while(1)},e.prototype.consumeNumber=function(){var e=[],t=Ze,n=this.peekCodePoint(0);n!==Ft&&n!==pt||e.push(this.consumeCodePoint());while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Dt&&en(r)){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===Yt||n===Vt)&&((r===Ft||r===pt)&&en(i)||en(r))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=et;while(en(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[pn(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(dn(r,i,o)){var a=this.consumeName();return{type:15,number:t,flags:n,unit:a}}return r===ut?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(nn(e)){var t=u(e);while(nn(this.peekCodePoint(0))&&t.length<6)t+=u(this.consumeCodePoint());ln(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||tn(n)||n>1114111?Tt:n}return e===Ht?Tt:e},e.prototype.consumeName=function(){var e="";while(1){var t=this.consumeCodePoint();if(un(t))e+=u(t);else{if(!fn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=u(this.consumeEscapedCodePoint())}}},e}(),Un=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Pn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){var e=this.consumeToken();while(31===e.type)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){var e=[];while(1){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){var t={type:e,values:[]},n=this.consumeToken();while(1){if(32===n.type||Kn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){var t={name:e.value,values:[],type:18};while(1){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?Mn:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Rn=function(e){return 15===e.type},jn=function(e){return 17===e.type},Qn=function(e){return 20===e.type},Hn=function(e){return 0===e.type},$n=function(e,t){return Qn(e)&&e.value===t},zn=function(e){return 31!==e.type},Vn=function(e){return 31!==e.type&&4!==e.type},qn=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},Kn=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},Wn=function(e){return 17===e.type||15===e.type},Gn=function(e){return 16===e.type||Wn(e)},Yn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Xn={type:17,number:0,flags:Ze},Jn={type:16,number:50,flags:Ze},Zn={type:16,number:100,flags:Ze},er=function(e,t,n){var r=e[0],i=e[1];return[tr(r,t),tr("undefined"!==typeof i?i:r,n)]},tr=function(e,t){if(16===e.type)return e.number/100*t;if(Rn(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},nr="deg",rr="grad",ir="rad",or="turn",ar={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case nr:return Math.PI*t.number/180;case rr:return Math.PI/200*t.number;case ir:return t.number;case or:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},sr=function(e){return 15===e.type&&(e.unit===nr||e.unit===rr||e.unit===ir||e.unit===or)},lr=function(e){var t=e.filter(Qn).map((function(e){return e.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xn,Xn];case"to top":case"bottom":return cr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xn,Zn];case"to right":case"left":return cr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Zn,Zn];case"to bottom":case"top":return cr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Zn,Xn];case"to left":case"right":return cr(270)}return 0},cr=function(e){return Math.PI*e/180},ur={name:"color",parse:function(e,t){if(18===t.type){var n=vr[t.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return dr(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);var a=t.value.substring(3,4);return dr(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(a+a,16)/255)}if(6===t.value.length){r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6);return dr(parseInt(r,16),parseInt(i,16),parseInt(o,16),1)}if(8===t.value.length){r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),a=t.value.substring(6,8);return dr(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(a,16)/255)}}if(20===t.type){var s=yr[t.value.toUpperCase()];if("undefined"!==typeof s)return s}return yr.TRANSPARENT}},hr=function(e){return 0===(255&e)},fr=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},dr=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},Ar=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},pr=function(e,t){var n=t.filter(Vn);if(3===n.length){var r=n.map(Ar),i=r[0],o=r[1],a=r[2];return dr(i,o,a,1)}if(4===n.length){var s=n.map(Ar),l=(i=s[0],o=s[1],a=s[2],s[3]);return dr(i,o,a,l)}return 0};function mr(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var gr=function(e,t){var n=t.filter(Vn),r=n[0],i=n[1],o=n[2],a=n[3],s=(17===r.type?cr(r.number):ar.parse(e,r))/(2*Math.PI),l=Gn(i)?i.number/100:0,c=Gn(o)?o.number/100:0,u="undefined"!==typeof a&&Gn(a)?tr(a,1):1;if(0===l)return dr(255*c,255*c,255*c,1);var h=c<=.5?c*(l+1):c+l-c*l,f=2*c-h,d=mr(f,h,s+1/3),A=mr(f,h,s),p=mr(f,h,s-1/3);return dr(255*d,255*A,255*p,u)},vr={hsl:gr,hsla:gr,rgb:pr,rgba:pr},br=function(e,t){return ur.parse(e,Un.create(t).parseComponentValue())},yr={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},wr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Qn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},xr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cr=function(e,t){var n=ur.parse(e,t[0]),r=t[1];return r&&Gn(r)?{color:n,stop:r}:{color:n,stop:null}},kr=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Xn),null===r.stop&&(r.stop=Zn);for(var i=[],o=0,a=0;ao?i.push(l):i.push(o),o=l}else i.push(null)}var c=null;for(a=0;ae.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Tr=function(e,t,n,r,i){var o=0,a=0;switch(e.size){case 0:0===e.shape?o=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===e.shape)o=a=Math.min(Br(t,n),Br(t,n-i),Br(t-r,n),Br(t-r,n-i));else if(1===e.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=Sr(r,i,t,n,!0),c=l[0],u=l[1];o=Br(c-t,(u-n)/s),a=s*o}break;case 1:0===e.shape?o=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===e.shape)o=a=Math.max(Br(t,n),Br(t,n-i),Br(t-r,n),Br(t-r,n-i));else if(1===e.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var h=Sr(r,i,t,n,!1);c=h[0],u=h[1];o=Br(c-t,(u-n)/s),a=s*o}break}return Array.isArray(e.size)&&(o=tr(e.size[0],r),a=2===e.size.length?tr(e.size[1],i):o),[o,a]},Or=function(e,t){var n=cr(180),r=[];return qn(t).forEach((function(t,i){if(0===i){var o=t[0];if(20===o.type&&"to"===o.value)return void(n=lr(t));if(sr(o))return void(n=ar.parse(e,o))}var a=Cr(e,t);r.push(a)})),{angle:n,stops:r,type:1}},Fr=function(e,t){var n=cr(180),r=[];return qn(t).forEach((function(t,i){if(0===i){var o=t[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=lr(t));if(sr(o))return void(n=(ar.parse(e,o)+cr(270))%cr(360))}var a=Cr(e,t);r.push(a)})),{angle:n,stops:r,type:1}},Nr=function(e,t){var n=cr(180),r=[],i=1,o=0,a=3,s=[];return qn(t).forEach((function(t,n){var o=t[0];if(0===n){if(Qn(o)&&"linear"===o.value)return void(i=1);if(Qn(o)&&"radial"===o.value)return void(i=2)}if(18===o.type)if("from"===o.name){var a=ur.parse(e,o.values[0]);r.push({stop:Xn,color:a})}else if("to"===o.name){a=ur.parse(e,o.values[0]);r.push({stop:Zn,color:a})}else if("color-stop"===o.name){var s=o.values.filter(Vn);if(2===s.length){a=ur.parse(e,s[1]);var l=s[0];jn(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:a})}}})),1===i?{angle:(n+cr(180))%cr(360),stops:r,type:i}:{size:a,shape:o,stops:r,position:s,type:i}},Lr="closest-side",Ir="farthest-side",Dr="closest-corner",Mr="farthest-corner",Pr="circle",Ur="ellipse",Rr="cover",jr="contain",Qr=function(e,t){var n=0,r=3,i=[],o=[];return qn(t).forEach((function(t,a){var s=!0;if(0===a){var l=!1;s=t.reduce((function(e,t){if(l)if(Qn(t))switch(t.value){case"center":return o.push(Jn),e;case"top":case"left":return o.push(Xn),e;case"right":case"bottom":return o.push(Zn),e}else(Gn(t)||Wn(t))&&o.push(t);else if(Qn(t))switch(t.value){case Pr:return n=0,!1;case Ur:return n=1,!1;case"at":return l=!0,!1;case Lr:return r=0,!1;case Rr:case Ir:return r=1,!1;case jr:case Dr:return r=2,!1;case Mr:return r=3,!1}else if(Wn(t)||Gn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),s)}if(s){var c=Cr(e,t);i.push(c)}})),{size:r,shape:n,stops:i,position:o,type:2}},Hr=function(e,t){var n=0,r=3,i=[],o=[];return qn(t).forEach((function(t,a){var s=!0;if(0===a?s=t.reduce((function(e,t){if(Qn(t))switch(t.value){case"center":return o.push(Jn),!1;case"top":case"left":return o.push(Xn),!1;case"right":case"bottom":return o.push(Zn),!1}else if(Gn(t)||Wn(t))return o.push(t),!1;return e}),s):1===a&&(s=t.reduce((function(e,t){if(Qn(t))switch(t.value){case Pr:return n=0,!1;case Ur:return n=1,!1;case jr:case Lr:return r=0,!1;case Ir:return r=1,!1;case Dr:return r=2,!1;case Rr:case Mr:return r=3,!1}else if(Wn(t)||Gn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),s)),s){var l=Cr(e,t);i.push(l)}})),{size:r,shape:n,stops:i,position:o,type:2}},$r=function(e){return 1===e.type},zr=function(e){return 2===e.type},Vr={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=Wr[t.name];if("undefined"===typeof r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function qr(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!Wr[e.name])}var Kr,Wr={"linear-gradient":Or,"-moz-linear-gradient":Fr,"-ms-linear-gradient":Fr,"-o-linear-gradient":Fr,"-webkit-linear-gradient":Fr,"radial-gradient":Qr,"-moz-radial-gradient":Hr,"-ms-radial-gradient":Hr,"-o-radial-gradient":Hr,"-webkit-radial-gradient":Hr,"-webkit-gradient":Nr},Gr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return Vn(e)&&qr(e)})).map((function(t){return Vr.parse(e,t)}))}},Yr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Qn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Xr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return qn(t).map((function(e){return e.filter(Gn)})).map(Yn)}},Jr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return qn(t).map((function(e){return e.filter(Qn).map((function(e){return e.value})).join(" ")})).map(Zr)}},Zr=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(e){e["AUTO"]="auto",e["CONTAIN"]="contain",e["COVER"]="cover"})(Kr||(Kr={}));var ei,ti={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return qn(t).map((function(e){return e.filter(ni)}))}},ni=function(e){return Qn(e)||Gn(e)},ri=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ii=ri("top"),oi=ri("right"),ai=ri("bottom"),si=ri("left"),li=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Yn(t.filter(Gn))}}},ci=li("top-left"),ui=li("top-right"),hi=li("bottom-right"),fi=li("bottom-left"),di=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ai=di("top"),pi=di("right"),mi=di("bottom"),gi=di("left"),vi=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Rn(t)?t.number:0}}},bi=vi("top"),yi=vi("right"),wi=vi("bottom"),xi=vi("left"),Ci={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ki={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},_i={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Qn).reduce((function(e,t){return e|Ei(t.value)}),0)}},Ei=function(e){switch(e){case"block":case"-webkit-box":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},Bi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Si={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(function(e){e["NORMAL"]="normal",e["STRICT"]="strict"})(ei||(ei={}));var Ti,Oi={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return ei.STRICT;case"normal":default:return ei.NORMAL}}},Fi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ni=function(e,t){return Qn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Gn(e)?tr(e,t):t},Li={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Vr.parse(e,t)}},Ii={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Di={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Mi=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Pi=Mi("top"),Ui=Mi("right"),Ri=Mi("bottom"),ji=Mi("left"),Qi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Qn).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Hi={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},$i=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},zi=$i("top"),Vi=$i("right"),qi=$i("bottom"),Ki=$i("left"),Wi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Gi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Yi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&$n(t[0],"none")?[]:qn(t).map((function(t){for(var n={color:yr.TRANSPARENT,offsetX:Xn,offsetY:Xn,blur:Xn},r=0,i=0;i1?1:0],this.overflowWrap=No(e,Hi,t.overflowWrap),this.paddingTop=No(e,zi,t.paddingTop),this.paddingRight=No(e,Vi,t.paddingRight),this.paddingBottom=No(e,qi,t.paddingBottom),this.paddingLeft=No(e,Ki,t.paddingLeft),this.paintOrder=No(e,Eo,t.paintOrder),this.position=No(e,Gi,t.position),this.textAlign=No(e,Wi,t.textAlign),this.textDecorationColor=No(e,uo,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=No(e,ho,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=No(e,Yi,t.textShadow),this.textTransform=No(e,Xi,t.textTransform),this.transform=No(e,Ji,t.transform),this.transformOrigin=No(e,io,t.transformOrigin),this.visibility=No(e,oo,t.visibility),this.webkitTextStrokeColor=No(e,Bo,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=No(e,So,t.webkitTextStrokeWidth),this.wordBreak=No(e,ao,t.wordBreak),this.zIndex=No(e,so,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return hr(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return vo(this.display,4)||vo(this.display,33554432)||vo(this.display,268435456)||vo(this.display,536870912)||vo(this.display,67108864)||vo(this.display,134217728)},e}(),Oo=function(){function e(e,t){this.content=No(e,bo,t.content),this.quotes=No(e,Co,t.quotes)}return e}(),Fo=function(){function e(e,t){this.counterIncrement=No(e,yo,t.counterIncrement),this.counterReset=No(e,wo,t.counterReset)}return e}(),No=function(e,t,n){var r=new Pn,i=null!==n&&"undefined"!==typeof n?n.toString():t.initialValue;r.write(i);var o=new Un(r.read());switch(t.type){case 2:var a=o.parseComponentValue();return t.parse(e,Qn(a)?a.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return ar.parse(e,o.parseComponentValue());case"color":return ur.parse(e,o.parseComponentValue());case"image":return Vr.parse(e,o.parseComponentValue());case"length":var s=o.parseComponentValue();return Wn(s)?s:Xn;case"length-percentage":var l=o.parseComponentValue();return Gn(l)?l:Xn;case"time":return lo.parse(e,o.parseComponentValue())}break}},Lo="data-html2canvas-debug",Io=function(e){var t=e.getAttribute(Lo);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Do=function(e,t){var n=Io(e);return 1===n||t===n},Mo=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Do(t,3),this.styles=new To(e,window.getComputedStyle(t,null)),Os(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),Do(t,4)&&(this.flags|=16)}return e}(),Po="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Uo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ro="undefined"===typeof Uint8Array?[]:new Uint8Array(256),jo=0;jo>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c},Ho=function(e){for(var t=e.length,n=[],r=0;r>zo,Go=1<>zo,Jo=Wo+Xo,Zo=Jo,ea=32,ta=Zo+ea,na=65536>>Vo,ra=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>zo],t=(t<>zo)],t=(t<>Vo),t=this.index[t],t+=e>>zo&ia,t=this.index[t],t=(t<=55296&&i<=56319&&n>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},Ta=sa(Po),Oa="×",Fa="÷",Na=function(e){return Ta.get(e)},La=function(e,t,n){var r=n-2,i=t[r],o=t[n-1],a=t[n];if(o===Aa&&a===pa)return Oa;if(o===Aa||o===pa||o===ma)return Fa;if(a===Aa||a===pa||a===ma)return Fa;if(o===ba&&-1!==[ba,ya,xa,Ca].indexOf(a))return Oa;if((o===xa||o===ya)&&(a===ya||a===wa))return Oa;if((o===Ca||o===wa)&&a===wa)return Oa;if(a===ka||a===ga)return Oa;if(a===va)return Oa;if(o===da)return Oa;if(o===ka&&a===_a){while(i===ga)i=t[--r];if(i===_a)return Oa}if(o===Ea&&a===Ea){var s=0;while(i===Ea)s++,i=t[--r];if(s%2===0)return Oa}return Fa},Ia=function(e){var t=Ba(e),n=t.length,r=0,i=0,o=t.map(Na);return{next:function(){if(r>=n)return{done:!0,value:null};var e=Oa;while(ra.x||i.y>a.y;return a=i,0===t||s}));return e.body.removeChild(t),s},Ua=function(){return"undefined"!==typeof(new Image).crossOrigin},Ra=function(){return"string"===typeof(new XMLHttpRequest).responseType},ja=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),n.toDataURL()}catch(Vt){return!1}return!0},Qa=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ha=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=t.toDataURL();i.src=o;var a=$a(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),za(a).then((function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=e.createElement("div");return a.style.backgroundImage="url("+o+")",a.style.height=n+"px",Qa(i)?za($a(n,n,0,0,a)):Promise.reject(!1)})).then((function(e){return r.drawImage(e,0,0),Qa(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},$a=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(i),a},za=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Va={get SUPPORT_RANGE_BOUNDS(){var e=Ma(document);return Object.defineProperty(Va,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Va.SUPPORT_RANGE_BOUNDS&&Pa(document);return Object.defineProperty(Va,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=ja(document);return Object.defineProperty(Va,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?Ha(document):Promise.resolve(!1);return Object.defineProperty(Va,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Ua();return Object.defineProperty(Va,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Ra();return Object.defineProperty(Va,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Va,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Va,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},qa=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Ka=function(e,t,n,r){var i=Ja(t,n),o=[],s=0;return i.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Va.SUPPORT_RANGE_BOUNDS){var i=Ga(r,s,t.length).getClientRects();if(i.length>1){var l=Ya(t),c=0;l.forEach((function(t){o.push(new qa(t,a.fromDOMRectList(e,Ga(r,c+s,t.length).getClientRects()))),c+=t.length}))}else o.push(new qa(t,a.fromDOMRectList(e,i)))}else{var u=r.splitText(t.length);o.push(new qa(t,Wa(e,r))),r=u}else Va.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));s+=t.length})),o},Wa=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var o=s(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return a.EMPTY},Ga=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},Ya=function(e){if(Va.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return Da(e)},Xa=function(e,t){if(Va.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return es(e,t)},Ja=function(e,t){return 0!==t.letterSpacing?Ya(e):Xa(e,t)},Za=[32,160,4961,65792,65793,4153,4241],es=function(e,t){var n,r=Ye(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),i=[],o=function(){if(n.value){var e=n.value.slice(),t=c(e),r="";t.forEach((function(e){-1===Za.indexOf(e)?r+=u(e):(r.length&&i.push(r),i.push(u(e)),r="")})),r.length&&i.push(r)}};while(!(n=r.next()).done)o();return i},ts=function(){function e(e,t,n){this.text=ns(t.data,n.textTransform),this.textBounds=Ka(e,this.text,n,t)}return e}(),ns=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(rs,is);case 2:return e.toUpperCase();default:return e}},rs=/(^|\s|:|-|\(|\))([a-z])/g,is=function(e,t,n){return e.length>0?t+n.toUpperCase():e},os=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(Mo),as=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(Mo),ss=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=s(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(Mo),ls=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Mo),cs=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"===typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(Mo),us=[{type:15,flags:0,unit:"px",number:3}],hs=[{type:16,flags:0,number:50}],fs=function(e){return e.width>e.height?new a(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)n.textNodes.push(new ts(e,i,n.styles));else if(Ts(i))if(qs(i)&&i.assignedNodes)i.assignedNodes().forEach((function(t){return Cs(e,t,n,r)}));else{var a=ks(e,i);a.styles.isVisible()&&(Es(i,a,r)?a.flags|=4:Bs(a.styles)&&(a.flags|=2),-1!==xs.indexOf(i.tagName)&&(a.flags|=8),n.elements.push(a),i.slot,i.shadowRoot?Cs(e,i.shadowRoot,a,r):zs(i)||Ms(i)||Vs(i)||Cs(e,i,a,r))}},ks=function(e,t){return js(t)?new os(e,t):Us(t)?new as(e,t):Ms(t)?new ss(e,t):Ns(t)?new ls(e,t):Ls(t)?new cs(e,t):Is(t)?new vs(e,t):Vs(t)?new bs(e,t):zs(t)?new ys(e,t):Qs(t)?new ws(e,t):new Mo(e,t)},_s=function(e,t){var n=ks(e,t);return n.flags|=4,Cs(e,t,n,n),n},Es=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Ps(e)&&n.styles.isTransparent()},Bs=function(e){return e.isPositioned()||e.isFloating()},Ss=function(e){return e.nodeType===Node.TEXT_NODE},Ts=function(e){return e.nodeType===Node.ELEMENT_NODE},Os=function(e){return Ts(e)&&"undefined"!==typeof e.style&&!Fs(e)},Fs=function(e){return"object"===typeof e.className},Ns=function(e){return"LI"===e.tagName},Ls=function(e){return"OL"===e.tagName},Is=function(e){return"INPUT"===e.tagName},Ds=function(e){return"HTML"===e.tagName},Ms=function(e){return"svg"===e.tagName},Ps=function(e){return"BODY"===e.tagName},Us=function(e){return"CANVAS"===e.tagName},Rs=function(e){return"VIDEO"===e.tagName},js=function(e){return"IMG"===e.tagName},Qs=function(e){return"IFRAME"===e.tagName},Hs=function(e){return"STYLE"===e.tagName},$s=function(e){return"SCRIPT"===e.tagName},zs=function(e){return"TEXTAREA"===e.tagName},Vs=function(e){return"SELECT"===e.tagName},qs=function(e){return"SLOT"===e.tagName},Ks=function(e){return e.tagName.indexOf("-")>0},Ws=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var o=[];return i&&r.forEach((function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),o},e}(),Gs={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"]},Ys={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Xs={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Js={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Zs=function(e,t,n,r,i,o){return en?fl(e,i,o.length>0):r.integers.reduce((function(t,n,i){while(e>=n)e-=n,t+=r.values[i];return t}),"")+o},el=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},tl=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+(el(Math.abs(e),o,r,(function(e){return u(Math.floor(e%o)+t)}))+i)},nl=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return el(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},rl=1,il=2,ol=4,al=8,sl=function(e,t,n,r,i,o){if(e<-9999||e>9999)return fl(e,4,i.length>0);var a=Math.abs(e),s=i;if(0===a)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var c=a%10;0===c&&vo(o,rl)&&""!==s?s=t[c]+s:c>1||1===c&&0===l||1===c&&1===l&&vo(o,il)||1===c&&1===l&&vo(o,ol)&&e>100||1===c&&l>1&&vo(o,al)?s=t[c]+(l>0?n[l-1]:"")+s:1===c&&l>0&&(s=n[l-1]+s),a=Math.floor(a/10)}return(e<0?r:"")+s},ll="十百千萬",cl="拾佰仟萬",ul="マイナス",hl="마이너스",fl=function(e,t,n){var r=n?". ":"",i=n?"、":"",o=n?", ":"",a=n?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=tl(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return nl(e,"〇一二三四五六七八九",i);case 6:return Zs(e,1,3999,Gs,3,r).toLowerCase();case 7:return Zs(e,1,3999,Gs,3,r);case 8:return tl(e,945,969,!1,r);case 9:return tl(e,97,122,!1,r);case 10:return tl(e,65,90,!1,r);case 11:return tl(e,1632,1641,!0,r);case 12:case 49:return Zs(e,1,9999,Ys,3,r);case 35:return Zs(e,1,9999,Ys,3,r).toLowerCase();case 13:return tl(e,2534,2543,!0,r);case 14:case 30:return tl(e,6112,6121,!0,r);case 15:return nl(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return nl(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return sl(e,"零一二三四五六七八九",ll,"負",i,il|ol|al);case 47:return sl(e,"零壹貳參肆伍陸柒捌玖",cl,"負",i,rl|il|ol|al);case 42:return sl(e,"零一二三四五六七八九",ll,"负",i,il|ol|al);case 41:return sl(e,"零壹贰叁肆伍陆柒捌玖",cl,"负",i,rl|il|ol|al);case 26:return sl(e,"〇一二三四五六七八九","十百千万",ul,i,0);case 25:return sl(e,"零壱弐参四伍六七八九","拾百千万",ul,i,rl|il|ol);case 31:return sl(e,"영일이삼사오육칠팔구","십백천만",hl,o,rl|il|ol);case 33:return sl(e,"零一二三四五六七八九","十百千萬",hl,o,0);case 32:return sl(e,"零壹貳參四五六七八九","拾百千",hl,o,rl|il|ol);case 18:return tl(e,2406,2415,!0,r);case 20:return Zs(e,1,19999,Js,3,r);case 21:return tl(e,2790,2799,!0,r);case 22:return tl(e,2662,2671,!0,r);case 22:return Zs(e,1,10999,Xs,3,r);case 23:return nl(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return nl(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return tl(e,3302,3311,!0,r);case 28:return nl(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return nl(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return tl(e,3792,3801,!0,r);case 37:return tl(e,6160,6169,!0,r);case 38:return tl(e,4160,4169,!0,r);case 39:return tl(e,2918,2927,!0,r);case 40:return tl(e,1776,1785,!0,r);case 43:return tl(e,3046,3055,!0,r);case 44:return tl(e,3174,3183,!0,r);case 45:return tl(e,3664,3673,!0,r);case 46:return tl(e,3872,3881,!0,r);case 3:default:return tl(e,48,57,!0,r)}},dl="data-html2canvas-ignore",Al=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ws,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,o=ml(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=o.contentWindow,c=l.document,u=bl(o).then((function(){return r(n,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(kl),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,n=this.clonedReferenceElement,"undefined"===typeof n?[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:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,vl(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(c,n)})).then((function(){return o}))]:[2,o]}}))}))}));return c.open(),c.write(xl(document.doctype)+""),Cl(this.referenceElement.ownerDocument,a,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(Do(e,2),Us(e))return this.createCanvasClone(e);if(Rs(e))return this.createVideoClone(e);if(Hs(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return js(t)&&(js(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ks(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return wl(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(Vt){if(this.context.logger.error("Unable to access cssRules property",Vt),"SecurityError"!==Vt.name)throw Vt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(Vt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),o=r.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var s=a.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return r}catch(Vt){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(Vt){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){Ts(t)&&($s(t)||t.hasAttribute(dl)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Ts(t)&&Hs(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(Ts(i)&&qs(i)&&"function"===typeof i.assignedNodes){var o=i.assignedNodes();o.length&&o.forEach((function(e){return r.appendChildNode(t,e,n)}))}else this.appendChildNode(t,i,n)},e.prototype.cloneNode=function(e,t){if(Ss(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Ts(e)&&(Os(e)||Fs(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&Os(r)&&(this.clonedReferenceElement=r),Ps(r)&&Ol(r);var s=this.counters.parse(new Fo(this.context,i)),l=this.resolvePseudoContent(e,r,o,fa.BEFORE);Ks(e)&&(t=!0),Rs(e)||this.cloneChildNodes(e,r,t),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(e,r,a,fa.AFTER);return c&&r.appendChild(c),this.counters.pop(s),(i&&(this.options.copyStyles||Fs(e))&&!Qs(e)||t)&&wl(i,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(zs(e)||Vs(e))&&(zs(r)||Vs(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var o=n.content,a=t.ownerDocument;if(a&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Fo(this.context,n));var s=new Oo(this.context,n),l=a.createElement("html2canvaspseudoelement");wl(n,l),s.content.forEach((function(t){if(0===t.type)l.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Qn);r.length&&l.appendChild(a.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Vn),c=o[0],u=o[1];if(c&&Qn(c)){var h=i.counters.getCounterValue(c.value),f=u&&Qn(u)?Di.parse(i.context,u.value):3;l.appendChild(a.createTextNode(fl(h,f,!1)))}}else if("counters"===t.name){var d=t.values.filter(Vn),A=(c=d[0],d[1]);u=d[2];if(c&&Qn(c)){var p=i.counters.getCounterValues(c.value),m=u&&Qn(u)?Di.parse(i.context,u.value):3,g=A&&0===A.type?A.value:"",v=p.map((function(e){return fl(e,m,!1)})).join(g);l.appendChild(a.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(a.createTextNode(ko(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(a.createTextNode(ko(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(a.createTextNode(t.value))}})),l.className=Bl+" "+Sl;var c=r===fa.BEFORE?" "+Bl:" "+Sl;return Fs(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(function(e){e[e["BEFORE"]=0]="BEFORE",e[e["AFTER"]=1]="AFTER"})(fa||(fa={}));var pl,ml=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(dl,"true"),e.body.appendChild(n),n},gl=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},vl=function(e){return Promise.all([].slice.call(e.images,0).map(gl))},bl=function(e){return new Promise((function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))}),50)}}))},yl=["all","d","content"],wl=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===yl.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},xl=function(e){var t="";return e&&(t+=""),t},Cl=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},kl=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},_l=":before",El=":after",Bl="___html2canvas___pseudoelement_before",Sl="___html2canvas___pseudoelement_after",Tl='{\n content: "" !important;\n display: none !important;\n}',Ol=function(e){Fl(e,"."+Bl+_l+Tl+"\n ."+Sl+El+Tl)},Fl=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},Nl=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Ll=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:jl(e)||Pl(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,a=this;return i(this,(function(i){switch(i.label){case 0:return t=Nl.isSameOrigin(e),n=!Ul(e)&&!0===this._options.useCORS&&Va.SUPPORT_CORS_IMAGES&&!t,r=!Ul(e)&&!t&&!jl(e)&&"string"===typeof this._options.proxy&&Va.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Ul(e)||jl(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Rl(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout((function(){return e(r)}),500),a._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")}),a._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(i,o){var a=Va.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===a)i(s.response);else{var e=new FileReader;e.addEventListener("load",(function(){return i(e.result)}),!1),e.addEventListener("error",(function(e){return o(e)}),!1),e.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+r)}}s.send()}))},e}(),Il=/^data:image\/svg\+xml/i,Dl=/^data:image\/.*;base64,/i,Ml=/^data:image\/.*/i,Pl=function(e){return Va.SUPPORT_SVG_DRAWING||!Ql(e)},Ul=function(e){return Ml.test(e)},Rl=function(e){return Dl.test(e)},jl=function(e){return"blob"===e.substr(0,4)},Ql=function(e){return"svg"===e.substr(-3).toLowerCase()||Il.test(e)},Hl=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),$l=function(e,t,n){return new Hl(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},zl=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=$l(this.start,this.startControl,t),i=$l(this.startControl,this.endControl,t),o=$l(this.endControl,this.end,t),a=$l(r,i,t),s=$l(i,o,t),l=$l(a,s,t);return n?new e(this.start,r,a,l):new e(l,s,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Vl=function(e){return 1===e.type},ql=function(){function e(e){var t=e.styles,n=e.bounds,r=er(t.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],a=er(t.borderTopRightRadius,n.width,n.height),s=a[0],l=a[1],c=er(t.borderBottomRightRadius,n.width,n.height),u=c[0],h=c[1],f=er(t.borderBottomLeftRadius,n.width,n.height),d=f[0],A=f[1],p=[];p.push((i+s)/n.width),p.push((d+u)/n.width),p.push((o+A)/n.height),p.push((l+h)/n.height);var m=Math.max.apply(Math,p);m>1&&(i/=m,o/=m,s/=m,l/=m,u/=m,h/=m,d/=m,A/=m);var g=n.width-s,v=n.height-h,b=n.width-u,y=n.height-A,w=t.borderTopWidth,x=t.borderRightWidth,C=t.borderBottomWidth,k=t.borderLeftWidth,_=tr(t.paddingTop,e.bounds.width),E=tr(t.paddingRight,e.bounds.width),B=tr(t.paddingBottom,e.bounds.width),S=tr(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Kl(n.left+k/3,n.top+w/3,i-k/3,o-w/3,pl.TOP_LEFT):new Hl(n.left+k/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Kl(n.left+g,n.top+w/3,s-x/3,l-w/3,pl.TOP_RIGHT):new Hl(n.left+n.width-x/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?Kl(n.left+b,n.top+v,u-x/3,h-C/3,pl.BOTTOM_RIGHT):new Hl(n.left+n.width-x/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||A>0?Kl(n.left+k/3,n.top+y,d-k/3,A-C/3,pl.BOTTOM_LEFT):new Hl(n.left+k/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Kl(n.left+2*k/3,n.top+2*w/3,i-2*k/3,o-2*w/3,pl.TOP_LEFT):new Hl(n.left+2*k/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Kl(n.left+g,n.top+2*w/3,s-2*x/3,l-2*w/3,pl.TOP_RIGHT):new Hl(n.left+n.width-2*x/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?Kl(n.left+b,n.top+v,u-2*x/3,h-2*C/3,pl.BOTTOM_RIGHT):new Hl(n.left+n.width-2*x/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||A>0?Kl(n.left+2*k/3,n.top+y,d-2*k/3,A-2*C/3,pl.BOTTOM_LEFT):new Hl(n.left+2*k/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=i>0||o>0?Kl(n.left+k/2,n.top+w/2,i-k/2,o-w/2,pl.TOP_LEFT):new Hl(n.left+k/2,n.top+w/2),this.topRightBorderStroke=i>0||o>0?Kl(n.left+g,n.top+w/2,s-x/2,l-w/2,pl.TOP_RIGHT):new Hl(n.left+n.width-x/2,n.top+w/2),this.bottomRightBorderStroke=u>0||h>0?Kl(n.left+b,n.top+v,u-x/2,h-C/2,pl.BOTTOM_RIGHT):new Hl(n.left+n.width-x/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=d>0||A>0?Kl(n.left+k/2,n.top+y,d-k/2,A-C/2,pl.BOTTOM_LEFT):new Hl(n.left+k/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||o>0?Kl(n.left,n.top,i,o,pl.TOP_LEFT):new Hl(n.left,n.top),this.topRightBorderBox=s>0||l>0?Kl(n.left+g,n.top,s,l,pl.TOP_RIGHT):new Hl(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?Kl(n.left+b,n.top+v,u,h,pl.BOTTOM_RIGHT):new Hl(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||A>0?Kl(n.left,n.top+y,d,A,pl.BOTTOM_LEFT):new Hl(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Kl(n.left+k,n.top+w,Math.max(0,i-k),Math.max(0,o-w),pl.TOP_LEFT):new Hl(n.left+k,n.top+w),this.topRightPaddingBox=s>0||l>0?Kl(n.left+Math.min(g,n.width-x),n.top+w,g>n.width+x?0:Math.max(0,s-x),Math.max(0,l-w),pl.TOP_RIGHT):new Hl(n.left+n.width-x,n.top+w),this.bottomRightPaddingBox=u>0||h>0?Kl(n.left+Math.min(b,n.width-k),n.top+Math.min(v,n.height-C),Math.max(0,u-x),Math.max(0,h-C),pl.BOTTOM_RIGHT):new Hl(n.left+n.width-x,n.top+n.height-C),this.bottomLeftPaddingBox=d>0||A>0?Kl(n.left+k,n.top+Math.min(y,n.height-C),Math.max(0,d-k),Math.max(0,A-C),pl.BOTTOM_LEFT):new Hl(n.left+k,n.top+n.height-C),this.topLeftContentBox=i>0||o>0?Kl(n.left+k+S,n.top+w+_,Math.max(0,i-(k+S)),Math.max(0,o-(w+_)),pl.TOP_LEFT):new Hl(n.left+k+S,n.top+w+_),this.topRightContentBox=s>0||l>0?Kl(n.left+Math.min(g,n.width+k+S),n.top+w+_,g>n.width+k+S?0:s-k+S,l-(w+_),pl.TOP_RIGHT):new Hl(n.left+n.width-(x+E),n.top+w+_),this.bottomRightContentBox=u>0||h>0?Kl(n.left+Math.min(b,n.width-(k+S)),n.top+Math.min(v,n.height+w+_),Math.max(0,u-(x+E)),h-(C+B),pl.BOTTOM_RIGHT):new Hl(n.left+n.width-(x+E),n.top+n.height-(C+B)),this.bottomLeftContentBox=d>0||A>0?Kl(n.left+k+S,n.top+y,Math.max(0,d-(k+S)),A-(C+B),pl.BOTTOM_LEFT):new Hl(n.left+k+S,n.top+n.height-(C+B))}return e}();(function(e){e[e["TOP_LEFT"]=0]="TOP_LEFT",e[e["TOP_RIGHT"]=1]="TOP_RIGHT",e[e["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",e[e["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(pl||(pl={}));var Kl=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,a=n*o,s=r*o,l=e+n,c=t+r;switch(i){case pl.TOP_LEFT:return new zl(new Hl(e,c),new Hl(e,c-s),new Hl(l-a,t),new Hl(l,t));case pl.TOP_RIGHT:return new zl(new Hl(e,t),new Hl(e+a,t),new Hl(l,c-s),new Hl(l,c));case pl.BOTTOM_RIGHT:return new zl(new Hl(l,t),new Hl(l,t+s),new Hl(e+a,c),new Hl(e,c));case pl.BOTTOM_LEFT:default:return new zl(new Hl(l,c),new Hl(l-a,c),new Hl(e,t+s),new Hl(e,t))}},Wl=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Gl=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Yl=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Xl=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Jl=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Zl=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),ec=function(e){return 0===e.type},tc=function(e){return 1===e.type},nc=function(e){return 2===e.type},rc=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},ic=function(e,t,n,r,i){return e.map((function(e,o){switch(o){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e}))},oc=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),ac=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ql(this.container),this.container.styles.opacity<1&&this.effects.push(new Zl(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Xl(n,r,i))}if(0!==this.container.styles.overflowX){var o=Wl(this.curves),a=Yl(this.curves);rc(o,a)?this.effects.push(new Jl(o,6)):(this.effects.push(new Jl(o,2)),this.effects.push(new Jl(a,4)))}}return e.prototype.getEffects=function(e){var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);while(n){var i=n.effects.filter((function(e){return!tc(e)}));if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var o=Wl(n.curves),a=Yl(n.curves);rc(o,a)||r.unshift(new Jl(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(t){return vo(t.target,e)}))},e}(),sc=function(e,t,n,r){e.container.elements.forEach((function(i){var o=vo(i.flags,4),a=vo(i.flags,2),s=new ac(i,e);vo(i.styles.display,2048)&&r.push(s);var l=vo(i.flags,8)?[]:r;if(o||a){var c=o||i.styles.isPositioned()?n:t,u=new oc(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var f=0;c.negativeZIndex.some((function(e,t){return h>e.element.container.styles.zIndex.order?(f=t,!1):f>0})),c.negativeZIndex.splice(f,0,u)}else if(h>0){var d=0;c.positiveZIndex.some((function(e,t){return h>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0})),c.positiveZIndex.splice(d,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);sc(s,u,o?u:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),sc(s,t,n,l);vo(i.flags,8)&&lc(i,l)}))},lc=function(e,t){for(var n=e instanceof cs?e.start:1,r=e instanceof cs&&e.reversed,i=0;i0&&e.intrinsicHeight>0){var r=gc(e),i=Yl(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var t,r,o,s,l,c,u,h,f,d,A,p,m,g,v,b,y,w,x;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,o=t.styles,s=0,l=t.textNodes,i.label=1;case 1:return s0&&k>0&&(v=r.ctx.createPattern(p,"repeat"),r.renderRepeat(y,v,E,B))):zr(n)&&(b=yc(e,t,[null,null,null]),y=b[0],w=b[1],x=b[2],C=b[3],k=b[4],_=0===n.position.length?[Jn]:n.position,E=tr(_[0],C),B=tr(_[_.length-1],k),S=Tr(n,E,B,C,k),T=S[0],O=S[1],T>0&&O>0&&(F=r.ctx.createRadialGradient(w+E,x+B,0,w+E,x+B,T),kr(n.stops,2*T).forEach((function(e){return F.addColorStop(e.stop,fr(e.color))})),r.path(y),r.ctx.fillStyle=F,T!==O?(N=e.bounds.left+.5*e.bounds.width,L=e.bounds.top+.5*e.bounds.height,I=O/T,D=1/I,r.ctx.save(),r.ctx.translate(N,L),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-N,-L),r.ctx.fillRect(w,D*(x-L)+L,C,k*D),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}}))},r=this,o=0,a=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,a,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,a,e.curves)];case 10:i.sent(),i.label=11;case 11:a++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,o,a){return r(this,void 0,void 0,(function(){var r,s,l,c,u,h,f,d,A,p,m,g,v,b,y,w;return i(this,(function(i){return this.ctx.save(),r=dc(o,n),s=uc(o,n),2===a&&(this.path(s),this.ctx.clip()),Vl(s[0])?(l=s[0].start.x,c=s[0].start.y):(l=s[0].x,c=s[0].y),Vl(s[1])?(u=s[1].end.x,h=s[1].end.y):(u=s[1].x,h=s[1].y),f=0===n||2===n?Math.abs(l-u):Math.abs(c-h),this.ctx.beginPath(),3===a?this.formatPath(r):this.formatPath(s.slice(0,2)),d=t<3?3*t:2*t,A=t<3?2*t:t,3===a&&(d=t,A=t),p=!0,f<=2*d?p=!1:f<=2*d+A?(m=f/(2*d+A),d*=m,A*=m):(g=Math.floor((f+A)/(d+A)),v=(f-g*d)/(g-1),b=(f-(g+1)*d)/g,A=b<=0||Math.abs(A-v)2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},c65b:function(e,t,n){var r=n("40d5"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(e,t,n){var r=n("e330"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("6374"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c82c:function(e,t,n){ +/*! + * Viewer.js v1.11.2 + * https://fengyuanchen.github.io/viewerjs + * + * Copyright 2015-present Chen Fengyuan + * Released under the MIT license + * + * Date: 2023-01-01T10:14:49.638Z + */ +(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n
',h="undefined"!==typeof window&&"undefined"!==typeof window.document,f=h?window:{},d=!(!h||!f.document.documentElement)&&"ontouchstart"in f.document.documentElement,A=!!h&&"PointerEvent"in f,p="viewer",m="move",g="switch",v="zoom",b="".concat(p,"-active"),y="".concat(p,"-close"),w="".concat(p,"-fade"),x="".concat(p,"-fixed"),C="".concat(p,"-fullscreen"),k="".concat(p,"-fullscreen-exit"),_="".concat(p,"-hide"),E="".concat(p,"-hide-md-down"),B="".concat(p,"-hide-sm-down"),S="".concat(p,"-hide-xs-down"),T="".concat(p,"-in"),O="".concat(p,"-invisible"),F="".concat(p,"-loading"),N="".concat(p,"-move"),L="".concat(p,"-open"),I="".concat(p,"-show"),D="".concat(p,"-transition"),M="click",P="dblclick",U="dragstart",R="focusin",j="keydown",Q="load",H="error",$=d?"touchend touchcancel":"mouseup",z=d?"touchmove":"mousemove",V=d?"touchstart":"mousedown",q=A?"pointerdown":V,K=A?"pointermove":z,W=A?"pointerup pointercancel":$,G="resize",Y="transitionend",X="wheel",J="ready",Z="show",ee="shown",te="hide",ne="hidden",re="view",ie="viewed",oe="move",ae="moved",se="rotate",le="rotated",ce="scale",ue="scaled",he="zoom",fe="zoomed",de="play",Ae="stop",pe="".concat(p,"Action"),me=/\s\s*/,ge=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function ve(e){return"string"===typeof e}var be=Number.isNaN||f.isNaN;function ye(e){return"number"===typeof e&&!be(e)}function we(e){return"undefined"===typeof e}function xe(e){return"object"===n(e)&&null!==e}var Ce=Object.prototype.hasOwnProperty;function ke(e){if(!xe(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&Ce.call(n,"isPrototypeOf")}catch(r){return!1}}function _e(e){return"function"===typeof e}function Ee(e,t){if(e&&_e(t))if(Array.isArray(e)||ye(e.length)){var n,r=e.length;for(n=0;n1?t-1:0),r=1;r0&&n.forEach((function(t){xe(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},Se=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Te(e,t){var n=e.style;Ee(t,(function(e,t){Se.test(t)&&ye(e)&&(e+="px"),n[t]=e}))}function Oe(e){return ve(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">"):e}function Fe(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function Ne(e,t){if(e&&t)if(ye(e.length))Ee(e,(function(e){Ne(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Le(e,t){e&&t&&(ye(e.length)?Ee(e,(function(e){Le(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Ie(e,t,n){t&&(ye(e.length)?Ee(e,(function(e){Ie(e,t,n)})):n?Ne(e,t):Le(e,t))}var De=/([a-z\d])([A-Z])/g;function Me(e){return e.replace(De,"$1-$2").toLowerCase()}function Pe(e,t){return xe(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Me(t)))}function Ue(e,t,n){xe(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Me(t)),n)}var Re=function(){var e=!1;if(h){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});f.addEventListener("test",n,r),f.removeEventListener("test",n,r)}return e}();function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(me).forEach((function(t){if(!Re){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function Qe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(me).forEach((function(t){if(r.once&&!Re){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;ls?h=s/o:u=l*o,a=ye(a)?a:.9,u=Math.min(u*a,t),h=Math.min(h*a,i);var f=(s-u)/2,d=(l-h)/2,A={left:f,top:d,x:f,y:d,width:u,height:h,oldRatio:1,ratio:u/t,aspectRatio:o,naturalWidth:t,naturalHeight:i},p=Be({},A);r.rotatable&&(A.rotate=c.rotate||0,p.rotate=0),r.scalable&&(A.scaleX=c.scaleX||1,A.scaleY=c.scaleY||1,p.scaleX=1,p.scaleY=1),n.imageData=A,n.initialImageData=p,e&&e()}))},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(Te(n,Be({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},ze(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&Fe(n,D)){var i=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){je(n,Y,i)}},Qe(n,Y,i,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},Ze={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;Qe(t,M,this.onClick=this.click.bind(this)),Qe(t,U,this.onDragStart=this.dragstart.bind(this)),Qe(n,q,this.onPointerDown=this.pointerdown.bind(this)),Qe(r,K,this.onPointerMove=this.pointermove.bind(this)),Qe(r,W,this.onPointerUp=this.pointerup.bind(this)),Qe(r,j,this.onKeyDown=this.keydown.bind(this)),Qe(window,G,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Qe(t,X,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&Qe(n,P,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;je(t,M,this.onClick),je(t,U,this.onDragStart),je(n,q,this.onPointerDown),je(r,K,this.onPointerMove),je(r,W,this.onPointerUp),je(r,j,this.onKeyDown),je(window,G,this.onResize),e.zoomable&&e.zoomOnWheel&&je(t,X,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&je(n,P,this.onDblclick)}},et={click:function(e){var t=this.options,n=this.imageData,r=e.target,i=Pe(r,pe);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(r=r.parentElement,i=Pe(r,pe)),d&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(Pe(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(d&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;Le(r,O),n.loading&&Le(this.canvas,F),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage((function(){Ie(r,N,n.movable),Ie(r,D,n.transition),e.renderImage((function(){e.viewed=!0,e.viewing=!1,_e(n.viewed)&&Qe(t,ie,n.viewed,{once:!0}),He(t,ie,{originalImage:e.images[i],index:i,image:r},{cancelable:!1})}))}))},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!Pe(t,"filled");Ke(t,this.options,(function(e,n){var a=e/n,s=r,l=i;i*a>r?o?s=i*a:l=r/a:o?l=r/a:s=i*a,Te(t,Be({width:s,height:l},ze({translateX:(r-s)/2,translateY:(i-l)/2})))}))},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;switch(n){case 13:this.viewer.contains(e.target)&&this.click(e);break}if(this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle());break}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,r=e.buttons,i=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(ye(r)&&1!==r||ye(i)&&0!==i||e.ctrlKey))){e.preventDefault(),e.changedTouches?Ee(e.changedTouches,(function(e){n[e.identifier]=Ye(e)})):n[e.pointerId||0]=Ye(e);var o=!!t.movable&&m;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?o=v:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o=g),!t.transition||o!==m&&o!==v||Le(this.image,D),this.action=o}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),this.pointerMoved=!0,e.changedTouches?Ee(e.changedTouches,(function(e){Be(t[e.identifier]||{},Ye(e,!0))})):Be(t[e.pointerId||0]||{},Ye(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,o=this.pointers;e.changedTouches?Ee(e.changedTouches,(function(e){t=o[e.identifier],delete o[e.identifier]})):(t=o[e.pointerId||0],delete o[e.pointerId||0]),i&&(e.preventDefault(),!r.transition||i!==m&&i!==v||Ne(this.image,D),this.action=!1,d&&i!==v&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){He(n.image,P,{originalEvent:e})}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){n.imageClicked=!1}),500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){He(n.canvas,M,{originalEvent:e})}),50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();Ee(this.player.getElementsByTagName("img"),(function(t){Qe(t,Q,e.loadImage.bind(e),{once:!0}),He(t,Q)}))}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50);var n=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,!0,null,e)}}},tt={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(_e(n.show)&&Qe(t,Z,n.show,{once:!0}),!1===He(t,Z)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(Le(r,_),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!e){var i=this.shown.bind(this);this.transitioning={abort:function(){je(r,Y,i),Le(r,T)}},Ne(r,D),r.initialOffsetWidth=r.offsetWidth,Qe(r,Y,i,{once:!0}),Ne(r,T)}else Ne(r,T),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;if(_e(r.hide)&&Qe(n,te,r.hide,{once:!0}),!1===He(n,te))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,o=this.image,a=function(){Le(i,T),e.hidden()};if(r.transition&&!t){var s=function t(n){n&&n.target===i&&(je(i,Y,t),e.hidden())},l=function(){Fe(i,D)?(Qe(i,Y,s),Le(i,T)):a()};this.transitioning={abort:function(){e.viewed&&Fe(o,D)?je(o,Y,l):Fe(i,D)&&je(i,Y,s)}},this.viewed&&Fe(o,D)?(Qe(o,Y,l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}else a();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,o=this.canvas,a=this.items[t],s=a.querySelector("img"),l=Pe(s,"originalUrl"),c=s.getAttribute("alt"),u=document.createElement("img");if(Ee(r.inheritedAttributes,(function(e){var t=s.getAttribute(e);null!==t&&u.setAttribute(e,t)})),u.src=l,u.alt=c,_e(r.view)&&Qe(n,re,r.view,{once:!0}),!1===He(n,re,{originalImage:this.images[t],index:t,image:u})||!this.isShown||this.hiding||this.played)return this;var h=this.items[this.index];h&&(Le(h,b),h.removeAttribute("aria-selected")),Ne(a,b),a.setAttribute("aria-selected",!0),r.focus&&a.focus(),this.image=u,this.viewed=!1,this.index=t,this.imageData={},Ne(u,O),r.loading&&Ne(o,F),o.innerHTML="",o.appendChild(u),this.renderList(),i.innerHTML="";var f,d,A=function(){var t=e.imageData,n=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=Oe(_e(n)?n.call(e,u,t):"".concat(c," (").concat(t.naturalWidth," × ").concat(t.naturalHeight,")"))};return Qe(n,ie,A,{once:!0}),this.viewing={abort:function(){je(n,ie,A),u.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(u.src="",je(u,Q,f),e.timeout&&clearTimeout(e.timeout))}},u.complete?this.load():(Qe(u,Q,f=function(){je(u,H,d),e.load()},{once:!0}),Qe(u,H,d=function(){je(u,Q,f),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),Le(u,O),r.loading&&Le(e.canvas,F)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){Le(u,O),e.timeout=!1}),1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(we(e)?e:n.x+Number(e),we(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,l=a.y,c=!1;if(ye(e)?c=!0:e=s,ye(n)?c=!0:n=l,c){if(_e(o.move)&&Qe(i,oe,o.move,{once:!0}),!1===He(i,oe,{x:e,y:n,oldX:s,oldY:l,originalEvent:r}))return this;a.x=e,a.y=n,a.left=e,a.top=n,this.moving=!0,this.renderImage((function(){t.moving=!1,_e(o.moved)&&Qe(i,ae,o.moved,{once:!0}),He(i,ae,{x:e,y:n,oldX:s,oldY:l,originalEvent:r},{cancelable:!1})}))}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(e=Number(e),ye(e)&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate;if(_e(r.rotate)&&Qe(n,se,r.rotate,{once:!0}),!1===He(n,se,{degree:e,oldDegree:o}))return this;i.rotate=e,this.rotating=!0,this.renderImage((function(){t.rotating=!1,_e(r.rotated)&&Qe(n,le,r.rotated,{once:!0}),He(n,le,{degree:e,oldDegree:o},{cancelable:!1})}))}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(ye(e)?l=!0:e=a,ye(n)?l=!0:n=s,l){if(_e(i.scale)&&Qe(r,ce,i.scale,{once:!0}),!1===He(r,ce,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=e,o.scaleY=n,this.scaling=!0,this.renderImage((function(){t.scaling=!1,_e(i.scaled)&&Qe(r,ue,i.scaled,{once:!0}),He(r,ue,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s},{cancelable:!1})}))}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.imageData;return e=Number(e),e=e<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,n,r),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.element,s=this.options,l=this.pointers,c=this.imageData,u=c.x,h=c.y,f=c.width,d=c.height,A=c.naturalWidth,p=c.naturalHeight;if(e=Math.max(0,e),ye(e)&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var m=Math.max(.01,s.minZoomRatio),g=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,m),g)}if(i)switch(i.type){case"wheel":s.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1);break}var v=A*e,b=p*e,y=v-f,w=b-d,x=c.ratio;if(_e(s.zoom)&&Qe(a,he,s.zoom,{once:!0}),!1===He(a,he,{ratio:e,oldRatio:x,originalEvent:i}))return this;if(this.zooming=!0,i){var C=$e(this.viewer),k=l&&Object.keys(l).length>0?Xe(l):{pageX:i.pageX,pageY:i.pageY};c.x-=y*((k.pageX-C.left-u)/f),c.y-=w*((k.pageY-C.top-h)/d)}else ke(r)&&ye(r.x)&&ye(r.y)?(c.x-=y*((r.x-u)/f),c.y-=w*((r.y-h)/d)):(c.x-=y/2,c.y-=w/2);c.left=c.x,c.top=c.y,c.width=v,c.height=b,c.oldRatio=x,c.ratio=e,this.renderImage((function(){t.zooming=!1,_e(s.zoomed)&&Qe(a,fe,s.zoomed,{once:!0}),He(a,fe,{ratio:e,oldRatio:x,originalEvent:i},{cancelable:!1})})),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(_e(r.play)&&Qe(n,de,r.play,{once:!0}),!1===He(n,de))return this;var i=this.player,o=this.loadImage.bind(this),a=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=o,t&&this.requestFullscreen(t),Ne(i,I),Ee(this.items,(function(e,t){var n=e.querySelector("img"),c=document.createElement("img");c.src=Pe(n,"originalUrl"),c.alt=n.getAttribute("alt"),c.referrerPolicy=n.referrerPolicy,s+=1,Ne(c,w),Ie(c,D,r.transition),Fe(e,b)&&(Ne(c,T),l=t),a.push(c),Qe(c,Q,o,{once:!0}),i.appendChild(c)})),ye(r.interval)&&r.interval>0){var c=function t(){clearTimeout(e.playing.timeout),Le(a[l],T),l-=1,l=l>=0?l:s-1,Ne(a[l],T),e.playing.timeout=setTimeout(t,r.interval)},u=function t(){clearTimeout(e.playing.timeout),Le(a[l],T),l+=1,l=l1&&(this.playing={prev:c,next:u,timeout:setTimeout(u,r.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(_e(n.stop)&&Qe(t,Ae,n.stop,{once:!0}),!1===He(t,Ae))return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Ee(r.getElementsByTagName("img"),(function(t){je(t,Q,e.onLoadWhenPlay)})),Le(r,I),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),Ne(this.button,k),t.transition&&(Le(i,D),this.viewed&&Le(r,D)),Ne(n,x),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),Te(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Be({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Ne(r,D),Ne(i,D)}),0)}))}))),this},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),Le(this.button,k),t.transition&&(Le(i,D),this.viewed&&Le(r,D)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),Le(n,x),Te(n,{zIndex:t.zIndexInline}),this.viewerData=Be({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Ne(r,D),Ne(i,D)}),0)}))})),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&He(n,Y),Ne(n,I),Ne(n,w),Ne(n,D),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,Ne(n,T)):(Ne(n,I),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){t.transition?(Qe(n,Y,(function(){Le(n,I),Le(n,w),Le(n,D),n.setAttribute("aria-hidden",!0),e.fading=!1}),{once:!0}),Le(n,T),e.fading=!0):(Le(n,I),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1}),1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Be({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,r=this.isImg;if(r&&!t.parentNode)return this.destroy();var i=[];if(Ee(r?[t]:t.querySelectorAll("img"),(function(t){_e(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)})),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var o=[];if(Ee(this.items,(function(e,t){var n=e.querySelector("img"),r=i[t];r&&n&&r.src===n.src&&r.alt===n.alt||o.push(t)})),Te(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];Ne(s,b),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[p]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||je(e,M,this.onStart),e[p]=void 0,this):this}},nt={getImageURL:function(e){var t=this.options.url;return t=ve(t)?e.getAttribute(t):_e(t)?t.call(this,e):"",t},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Qe(document,R,this.onFocusin=function(t){var n=e.viewer,r=t.target;if(r!==document&&r!==n&&!n.contains(r)){while(r){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(je(document,R,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;Ne(e,L),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;Le(e,L),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),_e(t.shown)&&Qe(e,ee,t.shown,{once:!0}),!1!==He(e,ee)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),Ne(n,_),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(_e(t.hidden)&&Qe(e,ne,t.hidden,{once:!0}),He(e,ne,null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?ke(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var i=r.endX-r.startX,o=r.endY-r.startY;switch(this.action){case m:this.move(i,o,e);break;case v:this.zoom(Ge(n),!1,null,e);break;case g:this.action="switched";var a=Math.abs(i);a>1&&a>Math.abs(o)&&(this.pointers={},i>1?this.prev(t.loop):i<-1&&this.next(t.loop));break}Ee(n,(function(e){e.startX=e.endX,e.startY=e.endY}))}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},rt=f.Viewer,it=function(e){return function(){return e+=1,e}}(-1),ot=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Be({},c,ke(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=it(),this.init()}return o(e,[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[p]){t[p]=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(Ee(r?[t]:t.querySelectorAll("img"),(function(t){_e(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)})),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),we(document.createElement(p).style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var t;(o+=1,o===e.length)&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout((function(){e.delaying=!1,e.build()}),0))};this.initializing={abort:function(){Ee(i,(function(e){e.complete||(je(e,Q,a),je(e,H,a))}))}},Ee(i,(function(e){var t,n;e.complete?a():(Qe(e,Q,t=function(){je(e,H,n),a()},{once:!0}),Qe(e,H,n=function(){je(e,Q,t),a()},{once:!0}))}))}else Qe(t,M,this.onStart=function(t){var r=t.target;"img"!==r.localName||_e(n.filter)&&!n.filter.call(e,r)||e.view(e.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,r=document.createElement("div");r.innerHTML=u;var i=r.querySelector(".".concat(p,"-container")),o=i.querySelector(".".concat(p,"-title")),a=i.querySelector(".".concat(p,"-toolbar")),s=i.querySelector(".".concat(p,"-navbar")),l=i.querySelector(".".concat(p,"-button")),c=i.querySelector(".".concat(p,"-canvas"));if(this.parent=n,this.viewer=i,this.title=o,this.toolbar=a,this.navbar=s,this.button=l,this.canvas=c,this.footer=i.querySelector(".".concat(p,"-footer")),this.tooltipBox=i.querySelector(".".concat(p,"-tooltip")),this.player=i.querySelector(".".concat(p,"-player")),this.list=i.querySelector(".".concat(p,"-list")),i.id="".concat(p).concat(this.id),o.id="".concat(p,"Title").concat(this.id),Ne(o,t.title?We(Array.isArray(t.title)?t.title[0]:t.title):_),Ne(s,t.navbar?We(t.navbar):_),Ie(l,_,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(Ne(i,"".concat(p,"-backdrop")),t.inline||"static"===t.backdrop||Ue(c,pe,"hide")),ve(t.className)&&t.className&&t.className.split(me).forEach((function(e){Ne(i,e)})),t.toolbar){var h=document.createElement("ul"),f=ke(t.toolbar),d=ge.slice(0,3),A=ge.slice(7,9),m=ge.slice(9);f||Ne(a,We(t.toolbar)),Ee(f?t.toolbar:ge,(function(e,n){var r=f&&ke(e),i=f?Me(n):e,o=r&&!we(e.show)?e.show:e;if(o&&(t.zoomable||-1===d.indexOf(i))&&(t.rotatable||-1===A.indexOf(i))&&(t.scalable||-1===m.indexOf(i))){var a=r&&!we(e.size)?e.size:e,s=r&&!we(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),Ne(l,"".concat(p,"-").concat(i)),_e(s)||Ue(l,pe,i),ye(o)&&Ne(l,We(o)),-1!==["small","large"].indexOf(a)?Ne(l,"".concat(p,"-").concat(a)):"play"===i&&Ne(l,"".concat(p,"-large")),_e(s)&&Qe(l,M,s),h.appendChild(l)}})),a.appendChild(h)}else Ne(a,_);if(!t.rotatable){var g=a.querySelectorAll('li[class*="rotate"]');Ne(g,O),Ee(g,(function(e){a.appendChild(e)}))}if(t.inline)Ne(l,C),Te(i,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&Te(n,{position:"relative"}),n.insertBefore(i,e.nextSibling);else{Ne(l,y),Ne(i,x),Ne(i,w),Ne(i,_),Te(i,{zIndex:t.zIndex});var v=t.container;ve(v)&&(v=e.ownerDocument.querySelector(v)),v||(v=this.body),v.appendChild(i)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,_e(t.ready)&&Qe(e,J,t.ready,{once:!0}),!1!==He(e,J)?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=rt,e}},{key:"setDefaults",value:function(e){Be(c,ke(e)&&e)}}]),e}();return Be(ot.prototype,Je,Ze,et,tt,nt),ot}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c901:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},ca84:function(e,t,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);while(t.length>c)i(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},cb2d:function(e,t,n){var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},cc15:function(e,t,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},cc50:function(e,t,n){var r=n("5e8c"),i=n("cda9"),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},cda9:function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},cdce:function(e,t,n){var r=n("da84"),i=n("1626"),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},ce2e:function(e,t,n){var r=n("5e8c"),i=n("feb8"),o=n("bbea");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},ce7a:function(e,t,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},cf4b:function(e,t,n){var r=n("feb8"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},d010:function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){var o=i.$options.componentName;o===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("da84"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d0dc:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},d16a:function(e,t,n){var r=n("fc5e"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},d17b:function(e,t,n){e.exports=n("e372").Transform},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d2bb:function(e,t,n){var r=n("e330"),i=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},d397:function(e,t,n){"use strict";function r(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=r,t.isKorean=i},d485:function(e,t,n){e.exports=o;var r=n("faa1").EventEmitter,i=n("3fb5");function o(){r.call(this)}i(o,r),o.Readable=n("e372"),o.Writable=n("2c63"),o.Duplex=n("0960"),o.Transform=n("d17b"),o.PassThrough=n("c2ae"),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function l(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},d665:function(e,t,n){var r=n("8d5c"),i=n("4d80"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},d7d1:function(e,t,n){"use strict";var r;(function(i){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",l="\\d{3}",c="\\d{4}",u="[^\\s]+",h=/\[([^]*?)\]/gm,f=function(){};function d(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function A(e,t){for(var n=[],r=0,i=e.length;r3?0:(e-e%10!==10)*e%10]}};var w={D:function(e){return e.getDay()},DD:function(e){return m(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return m(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return m(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return m(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return m(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return m(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return m(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return m(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return m(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return m(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return m(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+m(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},x={d:[s,function(e,t){e.day=t}],Do:[s+u,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?r-1:r)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[c,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[l,function(e,t){e.millisecond=t}],D:[s,f],ddd:[u,f],MMM:[u,p("monthNamesShort")],MMMM:[u,p("monthNames")],a:[u,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,t,n){var r=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var i=[];return t=t.replace(h,(function(e,t){return i.push(t),"@@@"})),t=t.replace(a,(function(t){return t in w?w[t](e,r):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(e,t,n){var r=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return null;var i={},s=[],l=[];t=t.replace(h,(function(e,t){return l.push(t),"@@@"}));var c=d(t).replace(a,(function(e){if(x[e]){var t=x[e];return s.push(t[1]),"("+t[0]+")"}return e}));c=c.replace(/@@@/g,(function(){return l.shift()}));var u=e.match(new RegExp(c,"i"));if(!u)return null;for(var f=1;f1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return p(n,0===r?7:r)},t.getWeekNumber=function(e){if(!f(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(c(t[0],t[1]))})),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return g(t).map((function(e,n){return r-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return g(n).map((function(e,t){return t+1}))};function m(e,t,n,r){for(var i=t;i0?e.forEach((function(e){var r=e[0],i=e[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),l=i.getMinutes();o===t&&s!==t?m(n,a,60,!0):o===t&&s===t?m(n,a,l+1,!0):o!==t&&s===t?m(n,0,l+1,!0):ot&&m(n,0,60,!0)})):m(n,0,60,!0),n};var g=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},v=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},b=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},y=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=d(t,"HH:mm:ss"),b(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return i.default.parse(i.default.format(e,n),n)},o=r(e),a=t.map((function(e){return e.map(r)}));if(a.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var s=a[0][0],l=a[0][0];a.forEach((function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}));var c=o1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return w(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return w(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},d9b5:function(e,t,n){var r=n("d066"),i=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},d9e2:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=i[s],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dacf:function(e,t,n){var r=n("8d5c"),i=n("6632"),o=n("b671"),a=n("0259"),s=n("44c7"),l=n("4f65"),c=n("4d80"),u=n("acc5"),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=s(e),t=l(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},dc14:function(e,t,n){"use strict";(function(t,r){var i=n("966d");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){M(t,e)}}e.exports=b;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=v;var l=Object.create(n("3a7c"));l.inherits=n("3fb5");var c={deprecate:n("b7d1")},u=n("429b"),h=n("8707").Buffer,f=r.Uint8Array||function(){};function d(e){return h.from(e)}function A(e){return h.isBuffer(e)||e instanceof f}var p,m=n("4681");function g(){}function v(e,t){a=a||n("b19a"),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){B(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(a=a||n("b19a"),!p.call(b,this)&&!(this instanceof a))return new b(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function y(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}function w(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}function x(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,n)),t}function C(e,t,n,r,i,o){if(!n){var a=x(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||D(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dc4a:function(e,t,n){var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},dcdc:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=91)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},91:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckbox",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.lengththis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},l=s,c=n(0),u=Object(c["a"])(l,r,i,!1,null,null,null);u.options.__file="packages/checkbox/src/checkbox.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},dcfb:function(e,t,n){"use strict";n.d(t,"b",(function(){return W})),n.d(t,"a",(function(){return G}));var r=Uint8Array,i=Uint16Array,o=Uint32Array,a=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&g)<<1;v=(52428&v)>>>2|(13107&v)<<2,v=(61680&v)>>>4|(3855&v)<<4,m[g]=((65280&v)>>>8|(255&v)<<8)>>>1}var b=function(e,t,n){for(var r=e.length,o=0,a=new i(t);o>>c]=u}else for(s=new i(r),o=0;o>>15-e[o];return s},y=new r(288);for(g=0;g<144;++g)y[g]=8;for(g=144;g<256;++g)y[g]=9;for(g=256;g<280;++g)y[g]=7;for(g=280;g<288;++g)y[g]=8;var w=new r(32);for(g=0;g<32;++g)w[g]=5;var x=b(y,9,0),C=b(y,9,1),k=b(w,5,0),_=b(w,5,1),E=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},B=function(e,t,n){var r=t/8>>0;return(e[r]|e[r+1]<<8)>>>(7&t)&n},S=function(e,t){var n=t/8>>0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},T=function(e){return(e/8>>0)+(7&e&&1)},O=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var a=new(e instanceof i?i:e instanceof o?o:r)(n-t);return a.set(e.subarray(t,n)),a},F=function(e,t,n){var i=e.length,o=!t||n,c=!n||n.i;n||(n={}),t||(t=new r(3*i));var u=function(e){var n=t.length;if(e>n){var i=new r(Math.max(2*n,e));i.set(t),t=i}},f=n.f||0,d=n.p||0,p=n.b||0,m=n.l,g=n.d,v=n.m,y=n.n,w=8*i;do{if(!m){n.f=f=B(e,d,1);var x=B(e,d+1,3);if(d+=3,!x){var k=T(d)+4,F=e[k-4]|e[k-3]<<8,N=k+F;if(N>i){if(c)throw"unexpected EOF";break}o&&u(p+F),t.set(e.subarray(k,N),p),n.b=p+=F,n.p=d=8*N;continue}if(1==x)m=C,g=_,v=9,y=5;else{if(2!=x)throw"invalid block type";var L=B(e,d,31)+257,I=B(e,d+10,15)+4,D=L+B(e,d+5,31)+1;d+=14;for(var M=new r(D),P=new r(19),U=0;Uw)break;var Q=b(P,R,1);for(U=0;U>>4;if(k<16)M[U++]=k;else{var $=0,z=0;16==k?(z=3+B(e,d,3),d+=2,$=M[U-1]):17==k?(z=3+B(e,d,7),d+=3):18==k&&(z=11+B(e,d,127),d+=7);while(z--)M[U++]=$}}var V=M.subarray(0,L),q=M.subarray(L);v=E(V),y=E(q),m=b(V,v,1),g=b(q,y,1)}if(d>w)throw"unexpected EOF"}o&&u(p+131072);var K=(1<>>4;if(d+=15&$,d>w)throw"unexpected EOF";if(!$)throw"invalid length/literal";if(Y<256)t[p++]=Y;else{if(256==Y){m=null;break}var X=Y-254;if(Y>264){U=Y-257;var J=a[U];X=B(e,d,(1<>>4;if(!Z)throw"invalid distance";d+=15&Z;q=A[ee];if(ee>3){J=s[ee];q+=S(e,d)&(1<w)throw"unexpected EOF";o&&u(p+131072);for(var te=p+X;p>0;e[r]|=n,e[r+1]|=n>>>8},L=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},I=function(e,t){for(var n=[],o=0;oA&&(A=s[o].s);var p=new i(A+1),m=D(n[f-1],p,0);if(m>t){o=0;var g=0,v=m-t,b=1<t))break;g+=b-(1<>>=v;while(g>0){var w=s[o].s;p[w]=0&&g;--o){var x=s[o].s;p[x]==t&&(--p[x],++g)}m=t}return[new r(p),m]},D=function(e,t,n){return-1==e.s?Math.max(D(e.l,t,n+1),D(e.r,t,n+1)):t[e.s]=n},M=function(e){var t=e.length;while(t&&!e[--t]);for(var n=new i(++t),r=0,o=e[0],a=1,s=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==o&&l!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}while(a--)s(o);a=1,o=e[l]}return[n.subarray(0,r),t]},P=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o4&&!Q[l[$-1]];--$);var z,V,q,K,W=d+5<<3,G=P(o,y)+P(c,w)+u,Y=P(o,m)+P(c,C)+u+14+3*$+P(D,Q)+(2*D[16]+3*D[17]+7*D[18]);if(W<=G&&W<=Y)return U(t,A,e.subarray(f,f+d));if(N(t,A,1+(Y15&&(N(t,A,ee[R]>>>5&127),A+=ee[R]>>>12)}}}else z=x,V=y,q=k,K=w;for(R=0;R255){te=r[R]>>>18&31;L(t,A,z[te+257]),A+=V[te+257],te>7&&(N(t,A,r[R]>>>23&31),A+=a[te]);var ne=31&r[R];L(t,A,q[ne]),A+=K[ne],ne>3&&(L(t,A,r[R]>>>5&8191),A+=s[ne])}else L(t,A,z[r[R]]),A+=V[r[R]];return L(t,A,z[256]),A+V[256]},j=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Q=new r(0),H=function(e,t,n,l,c,u){var h=e.length,d=new r(l+h+5*(1+Math.floor(h/7e3))+c),A=d.subarray(l,d.length-c),m=0;if(!t||h<8)for(var g=0;g<=h;g+=65535){var v=g+65535;v>>13,w=8191&b,x=(1<7e3||D>24576)&&V>423){m=R(e,A,0,S,F,N,I,D,P,g-P,m),D=L=I=0,P=g;for(var q=0;q<286;++q)F[q]=0;for(q=0;q<30;++q)N[q]=0}var K=2,W=0,G=w,Y=$-z&32767;if(V>2&&H==B(g-Y)){var X=Math.min(y,V)-1,J=Math.min(32767,g),Z=Math.min(258,V);while(Y<=J&&--G&&$!=z){if(e[g+K]==e[g+K-Y]){for(var ee=0;eeK){if(K=ee,W=Y,ee>X)break;var te=Math.min(Y,ee-2),ne=0;for(q=0;qne&&(ne=oe,z=re)}}}$=z,z=C[$],Y+=$-z+32768&32767}}if(W){S[D++]=268435456|f[K]<<18|p[W];var ae=31&f[K],se=31&p[W];I+=a[ae]+s[se],++F[257+ae],++N[se],M=g+K,++L}else S[D++]=e[g],++F[e[g]]}}m=R(e,A,u,S,F,N,I,D,P,g-P,m),u||(m=U(A,m,Q))}return O(d,0,l+T(m)+c)},$=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},z=function(e,t,n,r,i){return H(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},V=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},q=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},K=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function W(e,t){void 0===t&&(t={});var n=$();n.p(e);var r=z(e,t,2,4);return q(r,t),V(r,r.length-4,n.d()),r}function G(e,t){return F((K(e),e.subarray(2,-4)),t)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfe5:function(e,t){},e198:function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},e219:function(e,t,n){var r=n("6053"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},e2cd9:function(e,t,n){var r=n("e219"),i=n("5e8c"),o=n("424c"),a=n("6053"),s=a("toStringTag"),l=Object,c="Arguments"==o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=l(e),s))?n:c?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},e330:function(e,t,n){var r=n("40d5"),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},e34a:function(e,t,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("4b8b")((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},d=function(e){return c&&A.NEED&&l(e)&&!o(e,r)&&u(e),e},A=e.exports={KEY:r,NEED:!1,fastKey:h,getWeak:f,onFreeze:d}},e372:function(e,t,n){t=e.exports=n("ad71"),t.Stream=t,t.Readable=t,t.Writable=n("dc14"),t.Duplex=n("b19a"),t.Transform=n("27bf"),t.PassThrough=n("780f")},e391:function(e,t,n){var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e3ca:function(e,t,n){var r=n("6632"),i=n("feb8"),o=n("fd50"),a=n("4eb4"),s=n("9eda"),l=n("6053"),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},e3da:function(e,t,n){"use strict";n.r(t),n.d(t,"keydownHandler",(function(){return v})),n.d(t,"keymap",(function(){return g}));for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),a=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=a||o&&+o[1]<57,c=0;c<10;c++)r[48+c]=r[96+c]=String(c);for(c=1;c<=24;c++)r[c+111]="F"+c;for(c=65;c<=90;c++)r[c]=String.fromCharCode(c+32),i[c]=String.fromCharCode(c);for(var u in r)i.hasOwnProperty(u)||(i[u]=r[u]);function h(e){var t=l&&(e.ctrlKey||e.altKey||e.metaKey)||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key,n=!t&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var f=n("6ffb");const d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function A(e){let t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(let s=0;s127)&&(i=r[n.keyCode])&&i!=o){let r=t[m(i,n,!0)];if(r&&r(e.state,e.dispatch,e))return!0}else if(a&&n.shiftKey){let r=t[m(o,n,!0)];if(r&&r(e.state,e.dispatch,e))return!0}return!1}}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e444:function(e,t){e.exports=!0},e450:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},2:function(e,t){e.exports=n("5924")},22:function(e,t){e.exports=n("12f2")},31:function(e,t,n){"use strict";var r=n(2);t["a"]={bind:function(e,t,n){var i=null,o=void 0,a=function(){return n.context[t.expression].apply()},s=function(){Date.now()-o<100&&a(),clearInterval(i),i=null};Object(r["on"])(e,"mousedown",(function(e){0===e.button&&(o=Date.now(),Object(r["once"])(document,"mouseup",s),clearInterval(i),i=setInterval(a,100))}))}}},87:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},i=[];r._withStripped=!0;var o=n(10),a=n.n(o),s=n(22),l=n.n(s),c=n(31),u={name:"ElInputNumber",mixins:[l()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:c["a"]},components:{ElInput:a.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},h=u,f=n(0),d=Object(f["a"])(h,r,i,!1,null,null,null);d.options.__file="packages/input-number/src/input-number.vue";var A=d.exports;A.install=function(e){e.component(A.name,A)};t["default"]=A}})},e452:function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t=0;t--){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(e){if(!r.Utils.isFocusable(e))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},r.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;ab&&f(r,arguments[b]),r}));if(_.prototype=C,"Error"!==w?s?s(_,k):l(_,k,{name:!0}):p&&v in x&&(c(_,x,v),c(_,x,"prepareStackTrace")),l(_,x),!m)try{C.name!==w&&o(C,"name",w),C.constructor=_}catch(E){}return _}}},e62d:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==a)return a;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),a=t-r,a};var r=n("2b0e"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=void 0},e6a3:function(e,t,n){"use strict";var r=n("8d5c"),i=n("916c"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},e772:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=54)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},3:function(e,t){e.exports=n("8122")},34:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,h=n(0),f=Object(h["a"])(u,r,i,!1,null,null,null);f.options.__file="packages/select/src/option.vue";t["a"]=f.exports},4:function(e,t){e.exports=n("d010")},54:function(e,t,n){"use strict";n.r(t);var r=n(34);r["a"].install=function(e){e.component(r["a"].name,r["a"])},t["default"]=r["a"]}})},e893:function(e,t,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t,n){for(var s=i(t),l=a.f,c=o.f,u=0;u-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},ea34:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},ec82:function(e,t){e.exports=!1},ed00:function(e,t,n){var r=n("14cc");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},eec5:function(e,t,n){(function(t){var r=n("9826");e.exports=function(e,n){e instanceof t&&(e=e.toString());var i=null;if("string"===typeof e)try{i=JSON.parse(e)}catch(o){throw new Error("The JSON structure is invalid")}else i=e;return r(i,n)}}).call(this,n("b639").Buffer)},eedf:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return r}))},96:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},i=[];r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},a=o,s=n(0),l=Object(s["a"])(a,r,i,!1,null,null,null);l.options.__file="packages/button/src/button.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},ef08:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},ef7a:function(e,t,n){var r=n("6e16").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},f059:function(e,t,n){ +/*! + * @toast-ui/editor + * @version 3.2.1 | Thu Sep 29 2022 + * @author NHN Cloud FE Development Lab + * @license MIT + */ +(function(t,r){e.exports=r(n("72a8"),n("e3da"),n("6f27"),n("6ffb"),n("703f"))})(self,(function(e,t,n,r,i){return function(){var o={368:function(e){ +/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */ +(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),i=1;i/gm),j=s(/^data-[\-\w.\u00B7-\uFFFF]/),Q=s(/^aria-[\-\w]+$/),H=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=s(/^(?:\w+script|data):/i),z=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:K(),t=function(e){return G(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,h=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,x=e.Text,C=e.Comment,Y=e.DOMParser,X=e.trustedTypes,J=l.prototype,Z=E(J,"cloneNode"),ee=E(J,"nextSibling"),te=E(J,"childNodes"),ne=E(J,"parentNode");if("function"===typeof o){var re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}var ie=W(X,n),oe=ie&&Pe?ie.createHTML(""):"",ae=r,se=ae.implementation,le=ae.createNodeIterator,ce=ae.createDocumentFragment,ue=ae.getElementsByTagName,he=n.importNode,fe={};try{fe=_(r).documentMode?r.documentMode:{}}catch(xt){}var de={};t.isSupported="function"===typeof ne&&se&&"undefined"!==typeof se.createHTMLDocument&&9!==fe;var Ae=U,pe=R,me=j,ge=Q,ve=$,be=z,ye=H,we=null,xe=k({},[].concat(q(B),q(S),q(T),q(F),q(L))),Ce=null,ke=k({},[].concat(q(I),q(D),q(M),q(P))),_e=null,Ee=null,Be=!0,Se=!0,Te=!1,Oe=!1,Fe=!1,Ne=!1,Le=!1,Ie=!1,De=!1,Me=!0,Pe=!1,Ue=!0,Re=!0,je=!1,Qe={},He=null,$e=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ze=null,Ve=k({},["audio","video","img","source","image","track"]),qe=null,Ke=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Xe=Ye,Je=!1,Ze=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",nt=void 0,rt=null,it=r.createElement("form"),ot=function(e){rt&&rt===e||(e&&"object"===("undefined"===typeof e?"undefined":V(e))||(e={}),e=_(e),we="ALLOWED_TAGS"in e?k({},e.ALLOWED_TAGS):xe,Ce="ALLOWED_ATTR"in e?k({},e.ALLOWED_ATTR):ke,qe="ADD_URI_SAFE_ATTR"in e?k(_(Ke),e.ADD_URI_SAFE_ATTR):Ke,ze="ADD_DATA_URI_TAGS"in e?k(_(Ve),e.ADD_DATA_URI_TAGS):Ve,He="FORBID_CONTENTS"in e?k({},e.FORBID_CONTENTS):$e,_e="FORBID_TAGS"in e?k({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?k({},e.FORBID_ATTR):{},Qe="USE_PROFILES"in e&&e.USE_PROFILES,Be=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=e.SAFE_FOR_TEMPLATES||!1,Fe=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Me=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ue=!1!==e.SANITIZE_DOM,Re=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,Xe=e.NAMESPACE||Ye,Ze=Ze=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,nt="application/xhtml+xml"===Ze?function(e){return e}:p,Oe&&(Se=!1),De&&(Ie=!0),Qe&&(we=k({},[].concat(q(L))),Ce=[],!0===Qe.html&&(k(we,B),k(Ce,I)),!0===Qe.svg&&(k(we,S),k(Ce,D),k(Ce,P)),!0===Qe.svgFilters&&(k(we,T),k(Ce,D),k(Ce,P)),!0===Qe.mathMl&&(k(we,F),k(Ce,M),k(Ce,P))),e.ADD_TAGS&&(we===xe&&(we=_(we)),k(we,e.ADD_TAGS)),e.ADD_ATTR&&(Ce===ke&&(Ce=_(Ce)),k(Ce,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&k(qe,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(He===$e&&(He=_(He)),k(He,e.FORBID_CONTENTS)),Re&&(we["#text"]=!0),Fe&&k(we,["html","head","body"]),we.table&&(k(we,["tbody"]),delete _e.tbody),a&&a(e),rt=e)},at=k({},["mi","mo","mn","ms","mtext"]),st=k({},["foreignobject","desc","title","annotation-xml"]),lt=k({},S);k(lt,T),k(lt,O);var ct=k({},F);k(ct,N);var ut=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=p(e.tagName),r=p(t.tagName);if(e.namespaceURI===Ge)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===We?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(lt[n]);if(e.namespaceURI===We)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===Ge?"math"===n&&st[r]:Boolean(ct[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===Ge&&!st[r])return!1;if(t.namespaceURI===We&&!at[r])return!1;var i=k({},["title","style","font","a","script"]);return!ct[n]&&(i[n]||!lt[n])}return!1},ht=function(e){A(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(xt){try{e.outerHTML=oe}catch(xt){e.remove()}}},ft=function(e,n){try{A(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(xt){A(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!Ce[e])if(Ie||De)try{ht(n)}catch(xt){}else try{n.setAttribute(e,"")}catch(xt){}},dt=function(e){var t=void 0,n=void 0;if(Le)e=""+e;else{var i=m(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===Ze&&(e=''+e+"");var o=ie?ie.createHTML(e):e;if(Xe===Ye)try{t=(new Y).parseFromString(o,Ze)}catch(xt){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?"":o}catch(xt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Xe===Ye?ue.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:a},At=function(e){return le.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},pt=function(e){return!(e instanceof x||e instanceof C)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof h&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},mt=function(e){return"object"===("undefined"===typeof s?"undefined":V(s))?e instanceof s:e&&"object"===("undefined"===typeof e?"undefined":V(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},gt=function(e,n,r){de[e]&&f(de[e],(function(e){e.call(t,n,r,rt)}))},vt=function(e){var n=void 0;if(gt("beforeSanitizeElements",e,null),pt(e))return ht(e),!0;if(m(e.nodeName,/[\u0080-\uFFFF]/))return ht(e),!0;var r=nt(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!mt(e.firstElementChild)&&(!mt(e.content)||!mt(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===r&&y(/